/*
 * SPERA WORKS Landing Page
 * Design tokens are centralized here for easy maintenance.
 */
:root {
  --spera-ivory: #fbf8f1;
  --spera-paper: #fffdf9;
  --spera-cream: #f4ead7;
  --spera-beige: #e7bd82;
  --spera-beige-deep: #c99455;
  --spera-sage: #8fae72;
  --spera-green: #59794b;
  --spera-green-deep: #355330;
  --spera-brown: #5a4032;
  --spera-text: #3f3833;
  --spera-muted: #746b64;
  --spera-coral: #df714b;
  --spera-line: #06c755;
  --spera-border: #e8dfd2;
  --spera-shadow: 0 18px 50px rgba(73, 58, 43, 0.11);
  --spera-shadow-soft: 0 10px 30px rgba(73, 58, 43, 0.07);
  --spera-radius-xl: 34px;
  --spera-radius-lg: 24px;
  --spera-radius-md: 16px;
  --spera-container: 1180px;
  --spera-header-height: 84px;
  --spera-ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
body.spera-lp-active {
  margin: 0;
  overflow-x: hidden;
  background: var(--spera-ivory);
  color: var(--spera-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.spera-lp-active *, body.spera-lp-active *::before, body.spera-lp-active *::after { box-sizing: border-box; }
body.spera-lp-active img { display: block; max-width: 100%; height: auto; image-rendering: auto; }
body.spera-lp-active a { color: inherit; }
body.spera-lp-active button, body.spera-lp-active input, body.spera-lp-active select, body.spera-lp-active textarea { font: inherit; }
body.spera-lp-active .entry-content { margin: 0; max-width: none; }
body.spera-lp-active .wp-block-html { margin: 0; }
body.spera-lp-active .wp-block-group { margin: 0; padding: 0; max-width: none; }
body.spera-lp-active .article, body.spera-lp-active .content, body.spera-lp-active .main { margin: 0; padding: 0; width: auto; max-width: none; background: transparent; box-shadow: none; }

.spera-container { width: min(calc(100% - 40px), var(--spera-container)); margin-inline: auto; }
.spera-main { min-height: 60vh; }
.spera-section { position: relative; padding: 104px 0; isolation: isolate; }
.spera-section--compact { padding: 72px 0; }
.spera-section--paper { background: var(--spera-paper); }
.spera-section--cream { background: linear-gradient(135deg, #fbf5e9 0%, #f7f1e5 52%, #f5f8ec 100%); }
.spera-section--green { background: linear-gradient(135deg, #45643d, #6d8b58); color: #fff; }
.spera-section--soft-bg { background: url('../images/soft-bg.jpg') center/cover no-repeat; }
.spera-section::before, .spera-section::after { pointer-events: none; }

.spera-skip-link { position: fixed; top: -100px; left: 16px; z-index: 99999; padding: 12px 16px; border-radius: 8px; background: #fff; color: #111; box-shadow: var(--spera-shadow); }
.spera-skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.spera-scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 10000; pointer-events: none; }
.spera-scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--spera-sage), var(--spera-coral)); box-shadow: 0 0 12px rgba(223,113,75,.35); }

/* Header */
.spera-site-header { position: sticky; top: 0; z-index: 9000; background: rgba(255,253,249,.93); border-bottom: 1px solid rgba(232,223,210,.75); backdrop-filter: blur(14px); transition: box-shadow .35s ease, background .35s ease; }
.spera-site-header.is-scrolled { background: rgba(255,253,249,.98); box-shadow: 0 10px 30px rgba(73,58,43,.09); }
.spera-site-header__inner { width: min(calc(100% - 36px), 1240px); min-height: var(--spera-header-height); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.spera-site-logo { flex: 0 0 auto; display: inline-flex; align-items: center; text-decoration: none; }
.spera-site-logo img { width: 282px; max-height: 66px; object-fit: contain; object-position: left center; }
.spera-desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.spera-desktop-nav a { position: relative; color: #5e554e; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.spera-desktop-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -8px; height: 2px; background: var(--spera-sage); transition: left .25s ease, right .25s ease; }
.spera-desktop-nav a:hover::after, .spera-desktop-nav a:focus-visible::after { left: 0; right: 0; }
.spera-header-contact { display: flex; align-items: center; gap: 12px; }
.spera-header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; text-align: right; }
.spera-header-phone small { color: var(--spera-muted); font-size: 10px; }
.spera-header-phone strong { color: var(--spera-brown); font-size: 19px; letter-spacing: .03em; }
.spera-menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; margin-left: auto; border: 1px solid var(--spera-border); border-radius: 13px; background: #fff; cursor: pointer; }
.spera-menu-toggle > span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--spera-brown); transition: transform .3s ease, opacity .3s ease; }
.spera-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.spera-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.spera-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.spera-mobile-nav { border-top: 1px solid var(--spera-border); background: #fffdf9; box-shadow: 0 16px 30px rgba(73,58,43,.12); }
.spera-mobile-nav[hidden] { display: none; }
.spera-mobile-nav nav { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--spera-border); }
.spera-mobile-nav nav a { padding: 15px 18px; background: #fff; color: var(--spera-text); font-weight: 700; text-align: center; text-decoration: none; }
.spera-mobile-nav__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px 18px; }
.spera-mobile-nav__cta a { padding: 12px 14px; border-radius: 999px; color: #fff; font-weight: 800; text-align: center; text-decoration: none; background: var(--spera-green); }
.spera-mobile-nav__cta a:last-child { background: var(--spera-line); }

/* Buttons */
.spera-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 13px 24px; border: 0; border-radius: 999px; color: #fff!important; font-weight: 800; letter-spacing: .02em; line-height: 1.2; text-align: center; text-decoration: none!important; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--spera-ease), box-shadow .25s ease, filter .25s ease; }
.spera-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.28) 45%, transparent 68%); transform: translateX(-130%); transition: transform .7s ease; }
.spera-button:hover::before, .spera-button:focus-visible::before { transform: translateX(130%); }
.spera-button:hover, .spera-button:focus-visible { transform: translateY(-2px); filter: saturate(1.05); }
.spera-button--primary { background: linear-gradient(135deg, var(--spera-coral), #e98b59); box-shadow: 0 13px 25px rgba(223,113,75,.24); }
.spera-button--secondary { background: linear-gradient(135deg, var(--spera-green), #76945f); box-shadow: 0 13px 25px rgba(89,121,75,.23); }
.spera-button--line { background: var(--spera-line); box-shadow: 0 12px 24px rgba(6,199,85,.22); }
.spera-button--outline { border: 1px solid var(--spera-green); background: #fff; color: var(--spera-green)!important; box-shadow: none; }
.spera-button--small { min-height: 42px; padding: 9px 16px; font-size: 13px; }
.spera-button--wide { width: 100%; }

/* Heading */
.spera-section-heading { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.spera-section-heading--left { margin-left: 0; text-align: left; }
.spera-section-heading .spera-kicker { display: inline-block; margin-bottom: 10px; color: var(--spera-coral); font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.spera-section-heading h2 { margin: 0; color: var(--spera-green-deep); font-size: clamp(30px, 4vw, 48px); line-height: 1.35; letter-spacing: .01em; }
.spera-section-heading p { margin: 16px auto 0; max-width: 680px; color: var(--spera-muted); font-size: 16px; }
.spera-section--green .spera-section-heading h2, .spera-section--green .spera-section-heading p, .spera-section--green .spera-section-heading .spera-kicker { color: #fff; }
.spera-title-accent { color: var(--spera-coral); }

/* Hero */
.spera-hero { position: relative; min-height: 690px; padding: 84px 0 62px; background: linear-gradient(115deg, #fffaf2 0%, #fbf7ef 48%, #f2f6e9 100%); overflow: hidden; isolation: isolate; }
.spera-hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -150px; top: -210px; border-radius: 50%; background: rgba(143,174,114,.18); filter: blur(2px); z-index: -1; }
.spera-hero::after { content: ""; position: absolute; width: 400px; height: 400px; left: -220px; bottom: -250px; border-radius: 50%; background: rgba(231,189,130,.28); z-index: -1; }
.spera-hero__grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(420px,.98fr); gap: 58px; align-items: center; }
.spera-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 14px; border: 1px solid rgba(89,121,75,.2); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--spera-green); font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(73,58,43,.05); }
.spera-hero__eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--spera-sage); box-shadow: 0 0 0 5px rgba(143,174,114,.16); }
.spera-hero h1 { margin: 0; color: var(--spera-brown); font-size: clamp(40px, 5.2vw, 72px); line-height: 1.25; letter-spacing: .01em; }
.spera-hero h1 span { display: block; color: var(--spera-coral); }
.spera-hero__lead { max-width: 620px; margin: 24px 0 0; color: #5e554e; font-size: clamp(16px, 1.6vw, 19px); line-height: 2; }
.spera-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.spera-hero__actions .spera-button { min-width: 210px; }
.spera-hero__micro { margin: 12px 0 0; color: var(--spera-muted); font-size: 12px; }
.spera-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.spera-hero__badges li { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(143,174,114,.28); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--spera-green-deep); font-size: 12px; font-weight: 800; }
.spera-hero__badges li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(143,174,114,.18); color: var(--spera-green); font-size: 11px; }
.spera-hero__visual { position: relative; }
.spera-hero__photo-wrap { position: relative; aspect-ratio: 4 / 5; border-radius: 46% 46% 38% 38% / 28% 28% 20% 20%; overflow: hidden; background: #edf2e6; box-shadow: 0 32px 70px rgba(83,67,49,.18); transform: rotate(1deg); }
.spera-hero__photo { width: 100%; height: 100%!important; object-fit: cover; object-position: 50% 43%; filter: contrast(1.01) saturate(1.01); }
.spera-hero__photo-wrap::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.75); border-radius: inherit; pointer-events: none; }
.spera-hero__floating-card { position: absolute; left: -36px; bottom: 26px; width: min(260px, 62%); padding: 16px 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: var(--spera-shadow); backdrop-filter: blur(10px); }
.spera-hero__floating-card strong { display: block; color: var(--spera-green-deep); font-size: 15px; }
.spera-hero__floating-card span { display: block; margin-top: 4px; color: var(--spera-muted); font-size: 12px; }
.spera-leaf { position: absolute; width: 34px; height: 18px; border-radius: 100% 0 100% 0; background: var(--spera-sage); opacity: .7; transform-origin: 100% 100%; z-index: -1; }
.spera-leaf--1 { right: 3%; top: 18%; transform: rotate(28deg); animation: speraFloat 5.5s ease-in-out infinite; }
.spera-leaf--2 { left: 48%; bottom: 9%; width: 26px; height: 14px; transform: rotate(-25deg); animation: speraFloat 6.5s ease-in-out infinite reverse; }
.spera-leaf--3 { left: 3%; top: 16%; width: 22px; height: 12px; transform: rotate(62deg); animation: speraFloat 7s ease-in-out infinite .8s; }

.spera-trust-strip { position: relative; z-index: 2; margin-top: -28px; }
.spera-trust-strip__inner { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--spera-border); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--spera-shadow-soft); overflow: hidden; }
.spera-trust-item { display: flex; align-items: center; gap: 18px; min-height: 122px; padding: 20px 22px; border-right: 1px solid var(--spera-border); }
.spera-trust-item:last-child { border-right: 0; }
.spera-trust-item .spera-trust-item__icon { position: relative; display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, #f5f8ef, #e8f0df); color: var(--spera-green); font-size: 0!important; line-height: 1; box-shadow: inset 0 0 0 1px rgba(89,121,75,.08); }
.spera-trust-item__icon::before { content: ""; display: block; width: 43px; height: 43px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.spera-trust-item:nth-child(1) .spera-trust-item__icon::before { background-image: url('../images/trust-camera.svg'); }
.spera-trust-item:nth-child(2) .spera-trust-item__icon::before { background-image: url('../images/trust-estimate.svg'); }
.spera-trust-item:nth-child(3) .spera-trust-item__icon::before { background-image: url('../images/trust-home.svg'); }
.spera-trust-item:nth-child(4) .spera-trust-item__icon::before { background-image: url('../images/trust-chat.svg'); }
.spera-trust-item__icon img.emoji, .spera-trust-item__icon > .emoji { position: absolute!important; width: 1px!important; height: 1px!important; margin: -1px!important; opacity: 0!important; overflow: hidden!important; }
.spera-trust-item strong { display: block; color: var(--spera-green-deep); font-size: 16px; line-height: 1.45; }
.spera-trust-item > div > span { display: block; margin-top: 3px; color: var(--spera-muted); font-size: 12px; }

/* Quick consultation navigator */
.spera-navigator { position: relative; border: 1px solid rgba(231,189,130,.45); border-radius: var(--spera-radius-xl); background: rgba(255,255,255,.91); box-shadow: var(--spera-shadow); overflow: hidden; }
.spera-navigator::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(var(--spera-beige), var(--spera-sage)); }
.spera-navigator__grid { display: grid; grid-template-columns: 1.35fr .65fr; }
.spera-navigator__form { padding: 42px 44px 44px 50px; }
.spera-navigator__result { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: linear-gradient(145deg, #f6f1e6, #eef5e7); }
.spera-step-label { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; color: var(--spera-brown); font-weight: 800; }
.spera-step-label:first-of-type { margin-top: 0; }
.spera-step-label b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--spera-green); color: #fff; font-size: 12px; }
.spera-choice-group { display: flex; flex-wrap: wrap; gap: 9px; }
.spera-choice { padding: 9px 14px; border: 1px solid var(--spera-border); border-radius: 999px; background: #fff; color: #625951; font-weight: 700; cursor: pointer; transition: .22s ease; }
.spera-choice:hover, .spera-choice:focus-visible { border-color: var(--spera-sage); transform: translateY(-1px); }
.spera-choice[aria-pressed="true"] { border-color: var(--spera-green); background: var(--spera-green); color: #fff; box-shadow: 0 7px 18px rgba(89,121,75,.18); }
.spera-navigator__result h3 { margin: 0 0 10px; color: var(--spera-green-deep); font-size: 24px; }
.spera-navigator__summary { min-height: 84px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.85); color: #5f574f; font-size: 14px; white-space: pre-line; }
.spera-navigator__result .spera-button { margin-top: 16px; }
.spera-navigator__note { margin: 10px 0 0; color: var(--spera-muted); font-size: 11px; }

/* Problems */
.spera-problem-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 18px; }
.spera-problem-card { position: relative; min-height: 190px; padding: 28px 24px; border: 1px solid var(--spera-border); border-radius: var(--spera-radius-lg); background: rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(73,58,43,.05); overflow: hidden; transition: transform .3s var(--spera-ease), box-shadow .3s ease, border-color .3s ease; }
.spera-problem-card:hover { transform: translateY(-7px); border-color: rgba(143,174,114,.55); box-shadow: var(--spera-shadow-soft); }
.spera-problem-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 17px; background: #f3f6eb; font-size: 29px; }
.spera-problem-card__icon img.emoji { width: 30px!important; height: 30px!important; margin: 0!important; }
.spera-problem-card h3 { margin: 0; color: var(--spera-green-deep); font-size: 18px; }
.spera-problem-card p { margin: 8px 0 0; color: var(--spera-muted); font-size: 13px; }
.spera-problem-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -42px; bottom: -42px; border-radius: 50%; background: rgba(231,189,130,.16); }

/* Services */
.spera-service-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: -20px 0 34px; }
.spera-filter-button { padding: 9px 16px; border: 1px solid var(--spera-border); border-radius: 999px; background: #fff; color: var(--spera-muted); font-weight: 800; cursor: pointer; transition: .2s ease; }
.spera-filter-button:hover, .spera-filter-button:focus-visible, .spera-filter-button[aria-pressed="true"] { border-color: var(--spera-green); background: var(--spera-green); color: #fff; }
.spera-service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.spera-service-card { position: relative; border: 1px solid var(--spera-border); border-radius: 20px; background: #fff; box-shadow: 0 9px 28px rgba(73,58,43,.07); overflow: hidden; transition: opacity .3s ease, transform .32s var(--spera-ease), box-shadow .3s ease; }
.spera-service-card:hover { transform: translateY(-8px) rotate(.25deg); box-shadow: var(--spera-shadow); }
.spera-service-card.is-filtered-out { display: none; }
.spera-service-card__image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #edf2e7; }
.spera-service-card__image img { width: 100%; height: 100%!important; object-fit: cover; object-position: center; filter: contrast(1.015) saturate(1.02); transition: transform .65s var(--spera-ease); }
.spera-service-card:hover .spera-service-card__image img { transform: scale(1.055); }
.spera-service-card__tag { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--spera-green); font-size: 10px; font-weight: 900; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.spera-service-card__body { padding: 20px; }
.spera-service-card h3 { margin: 0; color: var(--spera-green-deep); font-size: 17px; }
.spera-service-card p { margin: 8px 0 0; color: var(--spera-muted); font-size: 12px; }
.spera-service-card a { display: inline-flex; margin-top: 14px; color: var(--spera-coral); font-size: 12px; font-weight: 900; text-decoration: none; }
.spera-service-note { margin: 24px auto 0; max-width: 880px; padding: 13px 17px; border-radius: 12px; background: #f8f4eb; color: var(--spera-muted); font-size: 12px; text-align: center; }

/* Reasons */
.spera-reason-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: 44px; align-items: center; }
.spera-reason-image { position: relative; max-width: 480px; margin: 0 auto; }
.spera-reason-image img { width: 100%; aspect-ratio: 8 / 11; object-fit: cover; object-position: 50% 38%; border-radius: 180px 180px 28px 28px; box-shadow: var(--spera-shadow); }
.spera-reason-image::before { content: ""; position: absolute; inset: -18px 24px 24px -18px; border: 1px solid rgba(143,174,114,.55); border-radius: 180px 180px 28px 28px; z-index: -1; }
.spera-reason-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.spera-reason-card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 10px 28px rgba(73,58,43,.07); }
.spera-reason-card__number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--spera-beige), #f2d9ad); color: var(--spera-brown); font-weight: 900; }
.spera-reason-card h3 { margin: 0; color: var(--spera-green-deep); font-size: 16px; }
.spera-reason-card p { grid-column: 2; margin: -5px 0 0; color: var(--spera-muted); font-size: 12px; }

/* Price */
.spera-price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.spera-price-card { position: relative; padding: 30px 26px; border: 1px solid var(--spera-border); border-radius: 24px; background: #fff; box-shadow: var(--spera-shadow-soft); overflow: hidden; }
.spera-price-card--featured { border-color: rgba(143,174,114,.7); transform: translateY(-8px); box-shadow: var(--spera-shadow); }
.spera-price-card--featured::before { content: "おすすめ"; position: absolute; top: 14px; right: -36px; width: 130px; padding: 5px 0; background: var(--spera-green); color: #fff; font-size: 10px; font-weight: 900; text-align: center; transform: rotate(38deg); }
.spera-price-card__icon { font-size: 34px; }
.spera-price-card__icon img.emoji { width: 34px!important; height: 34px!important; margin: 0!important; }
.spera-price-card h3 { margin: 10px 0 0; color: var(--spera-green-deep); font-size: 19px; }
.spera-price-card__price { margin: 14px 0; color: var(--spera-brown); font-size: 18px; font-weight: 800; }
.spera-price-card__price strong { font-size: clamp(32px,4vw,45px); line-height: 1; }
.spera-price-card__price small { margin-left: 4px; color: var(--spera-muted); font-size: 11px; font-weight: 700; }
.spera-price-card ul { padding: 0; margin: 0; list-style: none; }
.spera-price-card li { position: relative; padding-left: 17px; color: var(--spera-muted); font-size: 12px; }
.spera-price-card li + li { margin-top: 7px; }
.spera-price-card li::before { content: "•"; position: absolute; left: 2px; color: var(--spera-sage); }
.spera-price-notes { margin-top: 24px; padding: 18px 22px; border: 1px dashed rgba(89,121,75,.35); border-radius: 16px; background: rgba(247,250,241,.78); color: var(--spera-muted); font-size: 12px; }

/* Area */
.spera-area-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 38px; align-items: stretch; }
.spera-area-panel { padding: 38px; border: 1px solid var(--spera-border); border-radius: var(--spera-radius-xl); background: #fff; box-shadow: var(--spera-shadow-soft); }
.spera-area-panel h3 { margin: 0 0 8px; color: var(--spera-green-deep); font-size: 25px; }
.spera-area-panel > p { margin: 0; color: var(--spera-muted); }
.spera-area-group { margin-top: 24px; }
.spera-area-group strong { display: block; margin-bottom: 10px; color: var(--spera-brown); font-size: 13px; }
.spera-area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spera-area-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #f4f7ee; color: var(--spera-green-deep); font-size: 12px; font-weight: 800; }
.spera-area-chip--main { background: var(--spera-green); color: #fff; }
.spera-area-map { position: relative; min-height: 430px; border-radius: var(--spera-radius-xl); background: linear-gradient(145deg, #eaf1e2, #f7ebd6); box-shadow: inset 0 0 0 1px rgba(89,121,75,.15); overflow: hidden; }
.spera-area-map::before { content: ""; position: absolute; width: 290px; height: 290px; left: 50%; top: 50%; border: 2px dashed rgba(89,121,75,.32); border-radius: 48% 52% 45% 55%; transform: translate(-50%,-50%) rotate(-12deg); }
.spera-area-map__center { position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; display: grid; place-items: center; border: 10px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--spera-green); color: #fff; font-weight: 900; text-align: center; transform: translate(-50%,-50%); box-shadow: 0 18px 35px rgba(89,121,75,.25); z-index: 2; }
.spera-area-map__point { position: absolute; display: grid; place-items: center; min-width: 74px; height: 34px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--spera-brown); font-size: 11px; font-weight: 800; box-shadow: 0 7px 18px rgba(73,58,43,.1); animation: speraMapPulse 4s ease-in-out infinite; }
.spera-area-map__point:nth-child(2){left:12%;top:20%}.spera-area-map__point:nth-child(3){right:9%;top:22%;animation-delay:.5s}.spera-area-map__point:nth-child(4){left:9%;bottom:22%;animation-delay:1s}.spera-area-map__point:nth-child(5){right:10%;bottom:20%;animation-delay:1.5s}.spera-area-map__point:nth-child(6){left:37%;top:9%;animation-delay:2s}.spera-area-map__point:nth-child(7){right:34%;bottom:8%;animation-delay:2.5s}

/* Flow */
.spera-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: spera-flow; }
.spera-flow-card { position: relative; padding: 28px 22px; border: 1px solid rgba(255,255,255,.26); border-radius: 22px; background: rgba(255,255,255,.11); backdrop-filter: blur(8px); }
.spera-flow-card::before { counter-increment: spera-flow; content: "0" counter(spera-flow); display: inline-flex; margin-bottom: 18px; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .15em; }
.spera-flow-card:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--spera-green); font-weight: 900; transform: translateY(-50%); }
.spera-flow-card__icon { font-size: 36px; line-height: 1; }
.spera-flow-card__icon img.emoji { width: 36px!important; height: 36px!important; margin: 0!important; }
.spera-flow-card h3 { margin: 12px 0 0; color: #fff; font-size: 17px; }
.spera-flow-card p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 12px; }
.spera-flow-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.spera-flow-foot span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-size: 11px; }

/* FAQ */
.spera-faq-list { max-width: 900px; margin: 0 auto; }
.spera-faq-item { border-bottom: 1px solid var(--spera-border); }
.spera-faq-item:first-child { border-top: 1px solid var(--spera-border); }
.spera-faq-item summary { position: relative; display: flex; align-items: center; gap: 15px; padding: 23px 56px 23px 4px; color: var(--spera-green-deep); font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.spera-faq-item summary::-webkit-details-marker { display: none; }
.spera-faq-item summary::before { content: "Q"; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #eef4e8; color: var(--spera-green); font-weight: 900; }
.spera-faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f6f1e8; color: var(--spera-brown); font-size: 20px; transform: translateY(-50%); transition: transform .28s ease; }
.spera-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.spera-faq-answer { display: grid; grid-template-columns: 36px 1fr; gap: 15px; padding: 0 48px 24px 4px; color: var(--spera-muted); }
.spera-faq-answer::before { content: "A"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f9ece4; color: var(--spera-coral); font-weight: 900; }
.spera-faq-answer p { margin: 4px 0 0; }

/* Company */
.spera-company { display: grid; grid-template-columns: .76fr 1.24fr; gap: 44px; align-items: center; }
.spera-company__image { position: relative; }
.spera-company__image img { width: 100%; border-radius: 28px; box-shadow: var(--spera-shadow); }
.spera-company__content h2 { margin: 0; color: var(--spera-green-deep); font-size: clamp(30px,4vw,46px); }
.spera-company__content > p { color: var(--spera-muted); }
.spera-company-table { margin-top: 24px; border-top: 1px solid var(--spera-border); }
.spera-company-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--spera-border); }
.spera-company-row dt { color: var(--spera-brown); font-weight: 800; }
.spera-company-row dd { margin: 0; color: var(--spera-muted); }
.spera-company-row a { color: var(--spera-green); font-weight: 700; }

/* CTA */
.spera-cta { position: relative; padding: 76px 0; background: linear-gradient(135deg, #fff8e9, #eef5e7); overflow: hidden; }
.spera-cta::before, .spera-cta::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.spera-cta::before { width: 380px; height: 380px; left: -180px; top: -180px; background: rgba(231,189,130,.22); }
.spera-cta::after { width: 320px; height: 320px; right: -150px; bottom: -180px; background: rgba(143,174,114,.22); }
.spera-cta__box { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; padding: 42px 48px; border: 1px solid rgba(255,255,255,.82); border-radius: var(--spera-radius-xl); background: rgba(255,255,255,.82); box-shadow: var(--spera-shadow); backdrop-filter: blur(12px); }
.spera-cta__box h2 { margin: 0; color: var(--spera-green-deep); font-size: clamp(30px,4vw,46px); }
.spera-cta__box p { margin: 10px 0 0; color: var(--spera-muted); }
.spera-cta__actions { display: grid; gap: 10px; min-width: 310px; }
.spera-cta__phone { display: block; color: var(--spera-brown); font-size: 32px; font-weight: 900; text-decoration: none; text-align: center; }
.spera-cta__hours { display: block; margin-top: -6px; color: var(--spera-muted); font-size: 11px; text-align: center; }

/* Contact form */
.spera-contact-form-wrap { width: min(calc(100% - 40px), 920px); margin: 0 auto 110px; padding: 46px; border: 1px solid var(--spera-border); border-radius: 30px; background: #fff; box-shadow: var(--spera-shadow); }
.spera-contact-form-wrap .spera-section-heading { margin-bottom: 30px; }
.spera-form-message { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.spera-form-message.is-success { background: #eaf6e7; color: #365d31; }
.spera-form-message.is-error { background: #fff0eb; color: #994a32; }
.spera-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.spera-form-field { display: grid; gap: 7px; }
.spera-form-field--wide { grid-column: 1 / -1; }
.spera-form-field > span { color: var(--spera-brown); font-size: 13px; font-weight: 800; }
.spera-form-field em { padding: 2px 6px; border-radius: 6px; background: #faece6; color: var(--spera-coral); font-size: 9px; font-style: normal; }
.spera-form-field input, .spera-form-field select, .spera-form-field textarea { width: 100%; border: 1px solid #dcd5ca; border-radius: 12px; background: #fffdf9; color: var(--spera-text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.spera-form-field input, .spera-form-field select { min-height: 52px; padding: 11px 13px; }
.spera-form-field textarea { padding: 13px; resize: vertical; }
.spera-form-field input:focus, .spera-form-field select:focus, .spera-form-field textarea:focus { border-color: var(--spera-sage); box-shadow: 0 0 0 4px rgba(143,174,114,.14); }
.spera-form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: var(--spera-muted); font-size: 12px; }
.spera-form-consent input { margin-top: 6px; }
.spera-form-consent a { color: var(--spera-green); }
.spera-form-honeypot { position: absolute!important; left: -9999px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }

/* Footer */
.spera-footer { padding: 56px 0 0; background: #354331; color: rgba(255,255,255,.82); }
.spera-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 44px; align-items: start; }
.spera-footer__logo { width: 290px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.94); }
.spera-footer p { font-size: 12px; }
.spera-footer nav { display: grid; gap: 8px; }
.spera-footer nav a, .spera-footer__company a { color: rgba(255,255,255,.82); font-size: 13px; text-decoration: none; }
.spera-footer nav a:hover { color: #fff; }
.spera-footer__company { display: grid; gap: 7px; font-size: 13px; }
.spera-footer__company strong { color: #fff; }
.spera-footer__bottom { margin-top: 42px; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }

/* Fixed mobile CTA */
.spera-mobile-cta { display: none; }
.spera-back-to-top { position: fixed; right: 22px; bottom: 24px; z-index: 8800; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--spera-brown); color: #fff; box-shadow: var(--spera-shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s ease; }
.spera-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Reveal */
.spera-motion-ready [data-spera-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--spera-ease), transform .75s var(--spera-ease); }
.spera-motion-ready [data-spera-reveal="left"] { transform: translateX(-28px); }
.spera-motion-ready [data-spera-reveal="right"] { transform: translateX(28px); }
.spera-motion-ready [data-spera-reveal].is-visible { opacity: 1; transform: none; }
.spera-service-card, .spera-problem-card, .spera-reason-card, .spera-price-card, .spera-flow-card { --spera-delay: 0ms; transition-delay: var(--spera-delay); }

@keyframes speraFloat { 0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -13px;rotate:4deg} }
@keyframes speraMapPulse { 0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)} }

/* Tablet */
@media (max-width: 1100px) {
  :root { --spera-header-height: 74px; }
  .spera-site-logo img { width: 235px; }
  .spera-desktop-nav { display: none; }
  .spera-header-contact { margin-left: auto; }
  .spera-menu-toggle { display: block; }
  .spera-hero__grid { grid-template-columns: 1fr 430px; gap: 32px; }
  .spera-service-grid { grid-template-columns: repeat(3,1fr); }
  .spera-price-card--featured { transform: none; }
}

@media (max-width: 900px) {
  .spera-section { padding: 84px 0; }
  .spera-hero { min-height: auto; padding-top: 62px; }
  .spera-hero__grid { grid-template-columns: 1fr; }
  .spera-hero__content { text-align: center; }
  .spera-hero__lead { margin-inline: auto; }
  .spera-hero__actions, .spera-hero__badges { justify-content: center; }
  .spera-hero__visual { width: min(100%, 540px); margin: 0 auto; }
  .spera-hero__floating-card { left: 18px; }
  .spera-trust-strip__inner { grid-template-columns: repeat(2,1fr); }
  .spera-trust-item:nth-child(2) { border-right: 0; }
  .spera-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--spera-border); }
  .spera-navigator__grid { grid-template-columns: 1fr; }
  .spera-navigator__result { padding: 32px 44px 38px 50px; }
  .spera-problem-grid { grid-template-columns: repeat(2,1fr); }
  .spera-service-grid { grid-template-columns: repeat(2,1fr); }
  .spera-reason-layout, .spera-company { grid-template-columns: 1fr; }
  .spera-reason-image, .spera-company__image { max-width: 520px; }
  .spera-price-grid { grid-template-columns: 1fr; max-width: 660px; margin: 0 auto; }
  .spera-area-layout { grid-template-columns: 1fr; }
  .spera-flow { grid-template-columns: repeat(2,1fr); }
  .spera-flow-card:nth-child(2)::after { display: none; }
  .spera-cta__box { grid-template-columns: 1fr; text-align: center; }
  .spera-cta__actions { min-width: 0; width: min(100%, 420px); margin: 0 auto; }
  .spera-footer__grid { grid-template-columns: 1fr 1fr; }
  .spera-footer__company { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --spera-header-height: 64px; }
  body.spera-lp-active { padding-bottom: 74px; font-size: 15px; }
  .spera-container { width: min(calc(100% - 28px), var(--spera-container)); }
  .spera-section { padding: 68px 0; }
  .spera-section--compact { padding: 52px 0; }
  .spera-site-header__inner { width: calc(100% - 20px); gap: 8px; }
  .spera-site-logo img { width: 205px; max-height: 55px; }
  .spera-header-contact { display: none; }
  .spera-menu-toggle { width: 42px; height: 42px; }
  .spera-mobile-nav nav { grid-template-columns: 1fr; }
  .spera-mobile-nav nav a { padding: 12px 16px; }
  .spera-hero { padding: 42px 0 44px; }
  .spera-hero h1 { font-size: clamp(37px, 11.5vw, 54px); }
  .spera-hero__eyebrow { font-size: 11px; }
  .spera-hero__lead { font-size: 15px; line-height: 1.9; }
  .spera-hero__actions { display: grid; grid-template-columns: 1fr; }
  .spera-hero__actions .spera-button { min-width: 0; width: 100%; }
  .spera-hero__badges { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
  .spera-hero__badges li { justify-content: center; padding: 8px 7px; font-size: 10px; }
  .spera-hero__photo-wrap { aspect-ratio: 4 / 5; border-radius: 34px; transform: none; }
  .spera-hero__photo { object-position: 50% 43%; }
  .spera-hero__floating-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .spera-trust-strip { margin-top: -12px; }
  .spera-trust-strip__inner { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .spera-trust-item { min-height: 108px; padding: 14px 12px; gap: 11px; }
  .spera-trust-item .spera-trust-item__icon { flex-basis: 58px; width: 58px; height: 58px; }
  .spera-trust-item__icon::before { width: 34px; height: 34px; }
  .spera-trust-item strong { font-size: 13px; }
  .spera-trust-item > div > span { display: none; }
  .spera-section-heading { margin-bottom: 34px; }
  .spera-section-heading h2 { font-size: 30px; }
  .spera-section-heading p { font-size: 14px; }
  .spera-navigator { border-radius: 22px; }
  .spera-navigator__form { padding: 30px 22px 30px 28px; }
  .spera-navigator__result { padding: 28px 22px 30px 28px; }
  .spera-choice { padding: 8px 11px; font-size: 12px; }
  .spera-problem-grid { grid-template-columns: 1fr; }
  .spera-problem-card { min-height: 0; }
  .spera-service-filter { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; scrollbar-width: none; }
  .spera-service-filter::-webkit-scrollbar { display: none; }
  .spera-filter-button { flex: 0 0 auto; }
  .spera-service-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 4px 22px; margin-inline: -4px; scrollbar-width: none; }
  .spera-service-grid::-webkit-scrollbar { display: none; }
  .spera-service-card { flex: 0 0 82%; scroll-snap-align: center; }
  .spera-reason-list { grid-template-columns: 1fr; }
  .spera-reason-card { grid-template-columns: 42px 1fr; padding: 18px; }
  .spera-reason-card p { grid-column: 2; }
  .spera-price-card { padding: 26px 22px; }
  .spera-area-panel { padding: 28px 22px; }
  .spera-area-map { min-height: 360px; }
  .spera-area-map__center { width: 104px; height: 104px; border-width: 8px; font-size: 13px; }
  .spera-area-map__point { min-width: 62px; height: 30px; padding: 0 8px; font-size: 9px; }
  .spera-flow { grid-template-columns: 1fr; }
  .spera-flow-card:not(:last-child)::after { content: "↓"; display: grid; left: 50%; right: auto; top: auto; bottom: -17px; transform: translateX(-50%); }
  .spera-faq-item summary { padding-right: 44px; font-size: 14px; }
  .spera-faq-answer { padding-right: 10px; font-size: 13px; }
  .spera-company-row { grid-template-columns: 1fr; gap: 2px; }
  .spera-cta { padding: 56px 0; }
  .spera-cta__box { padding: 30px 20px; border-radius: 24px; }
  .spera-cta__phone { font-size: 27px; }
  .spera-contact-form-wrap { width: calc(100% - 28px); margin-bottom: 80px; padding: 28px 20px; border-radius: 24px; }
  .spera-form-grid { grid-template-columns: 1fr; }
  .spera-form-field--wide { grid-column: auto; }
  .spera-footer { padding-top: 42px; }
  .spera-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .spera-footer__company { grid-column: auto; }
  .spera-mobile-cta { position: fixed; inset: auto 0 0; z-index: 9500; display: grid; grid-template-columns: .9fr 1.25fr .9fr; height: 70px; padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -10px 30px rgba(73,58,43,.14); transform: translateY(105%); transition: transform .35s var(--spera-ease); }
  .spera-mobile-cta.is-visible { transform: none; }
  .spera-mobile-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--spera-green-deep); font-weight: 900; text-decoration: none; }
  .spera-mobile-cta a + a { border-left: 1px solid var(--spera-border); }
  .spera-mobile-cta__line { background: var(--spera-line); color: #fff!important; }
  .spera-mobile-cta small { font-size: 10px; line-height: 1.2; }
  .spera-back-to-top { right: 14px; bottom: 84px; width: 43px; height: 43px; }
}

@media (max-width: 390px) {
  .spera-site-logo img { width: 180px; }
  .spera-hero__badges { grid-template-columns: 1fr; }
  .spera-trust-strip__inner { grid-template-columns: 1fr; }
  .spera-trust-item { border-right: 0!important; border-bottom: 1px solid var(--spera-border); }
  .spera-trust-item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; scroll-behavior: auto!important; transition-duration: .01ms!important; }
  .spera-motion-ready [data-spera-reveal] { opacity: 1; transform: none; }
}
body.spera-motion-off [data-spera-reveal] { opacity: 1; transform: none; transition: none; }
body.spera-motion-off .spera-leaf, body.spera-motion-off .spera-area-map__point { animation: none; }

/* v1.0.5: restored AI-generated Japanese visuals, high-resolution rendering and cache-safe polish */
.spera-hero__photo,
.spera-service-card__image img,
.spera-reason-image img,
.spera-company__image img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* v1.1.0: polished headline, accurate area map, crisp generated illustrations */
.spera-hero h1 {
  max-width: none;
  color: var(--spera-brown);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: clamp(39px, 3.55vw, 50px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: .015em;
  font-feature-settings: "palt" 1;
}
.spera-hero h1 .spera-hero__headline-line {
  display: block;
  color: var(--spera-brown);
  white-space: nowrap;
}
.spera-hero h1 .spera-hero__headline-line--accent {
  margin-top: .05em;
  color: var(--spera-coral);
  font-size: 1.12em;
  letter-spacing: .035em;
}
.spera-hero__lead { text-wrap: pretty; }
.spera-problem-card__icon--digital { position: relative; font-size: 0; }
.spera-problem-card__icon--digital::before {
  content: "";
  width: 36px;
  height: 36px;
  background: url('../images/problem-digital.svg') center/contain no-repeat;
}
.spera-service-card__image img {
  filter: none;
  image-rendering: auto;
}
.spera-area-layout { grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); align-items: center; }
.spera-area-group strong { display: flex; align-items: center; gap: 8px; }
.spera-area-legend-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(90,64,50,.22); }
.spera-area-legend-dot--priority { background: #e4a364; }
.spera-area-legend-dot--available { background: #a8c88a; }
.spera-area-legend-dot--consult { background: #e8dfce; }
.spera-area-chip--priority { background: #e4a364; color: #4e3528; }
.spera-area-chip--available { background: #dcebcf; color: #355330; }
.spera-area-chip--consult { background: #eee7da; color: #5a5048; }
.spera-area-map-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--spera-border);
  border-radius: var(--spera-radius-xl);
  background: #fff;
  box-shadow: var(--spera-shadow-soft);
  overflow: hidden;
}
.spera-area-map-figure img {
  width: 100%;
  height: auto!important;
  border-radius: 24px;
  object-fit: contain;
}
.spera-area-map-figure figcaption {
  padding: 10px 8px 2px;
  color: var(--spera-muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}
@media (max-width: 900px) {
  .spera-area-layout { grid-template-columns: 1fr; }
  .spera-area-map-figure { order: -1; }
}
@media (max-width: 680px) {
  .spera-hero h1 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.38;
    letter-spacing: -.005em;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    font-size: 1.08em;
    letter-spacing: .015em;
  }
  .spera-hero__eyebrow { white-space: nowrap; max-width: 100%; }
  .spera-area-map-figure { padding: 8px; border-radius: 22px; }
  .spera-area-map-figure img { border-radius: 16px; }
}
@media (max-width: 340px) {
  .spera-hero h1 { font-size: 24px; }
  .spera-hero__eyebrow { font-size: 9.5px; padding-inline: 10px; }
}


/* v1.1.2: timeout-safe media, map-first responsive area layout and beige footer */
.spera-service-card__image {
  background: linear-gradient(145deg, #f8f2e7, #eef4e6);
}
.spera-service-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.spera-price-card__price--estimate {
  display: flex;
  min-height: 58px;
  align-items: center;
}
.spera-price-card__price--estimate strong {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: .02em;
}

#area .spera-area-layout {
  display: block;
}
.spera-area-map-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--spera-radius-xl);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(89,121,75,.45) transparent;
}
.spera-area-map-scroll::-webkit-scrollbar {
  height: 9px;
}
.spera-area-map-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(89,121,75,.42);
}
.spera-area-map-figure {
  width: 100%;
  margin: 0;
  padding: 12px;
}
.spera-area-map-figure img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto!important;
  object-fit: contain;
}
.spera-area-map-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 4px 0;
  color: var(--spera-muted);
  font-size: 12px;
}
.spera-area-map-open {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(89,121,75,.28);
  border-radius: 999px;
  background: #fff;
  color: var(--spera-green-deep)!important;
  font-weight: 800;
  text-decoration: none!important;
}
.spera-area-map-open:hover,
.spera-area-map-open:focus-visible {
  background: #f2f7eb;
}
.spera-area-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 28px;
}
.spera-area-guide .spera-area-group {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--spera-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--spera-shadow-soft);
}
.spera-area-guide .spera-area-group--priority {
  border-top: 5px solid #e4a364;
}
.spera-area-guide .spera-area-group--available {
  border-top: 5px solid #a8c88a;
}
.spera-area-guide .spera-area-group--consult {
  border-top: 5px solid #d8cbb6;
}
.spera-area-guide .spera-area-group strong {
  margin-bottom: 14px;
  color: var(--spera-brown);
  font-size: 15px;
}
.spera-area-guide .spera-area-chip {
  padding: 7px 11px;
  font-size: 12px;
}

/* Footer uses the same calm beige family as the header. */
.spera-footer {
  border-top: 1px solid #e7dac7;
  background: linear-gradient(135deg, #f4eadb 0%, #fbf8f1 58%, #edf3e5 100%);
  color: var(--spera-text);
}
.spera-footer__logo {
  border: 1px solid rgba(201,148,85,.18);
  background: rgba(255,255,255,.72);
}
.spera-footer p {
  color: var(--spera-muted);
}
.spera-footer nav a,
.spera-footer__company a {
  color: var(--spera-brown);
}
.spera-footer nav a:hover,
.spera-footer nav a:focus-visible,
.spera-footer__company a:hover,
.spera-footer__company a:focus-visible {
  color: var(--spera-green-deep);
}
.spera-footer__company strong {
  color: var(--spera-green-deep);
}
.spera-footer__bottom {
  border-top-color: rgba(90,64,50,.12);
  color: var(--spera-muted);
}

@media (max-width: 900px) {
  .spera-area-guide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .spera-area-map-scroll {
    width: calc(100vw - 14px);
    margin-left: calc(50% - 50vw + 7px);
    border-radius: 20px;
  }
  .spera-area-map-figure {
    width: 820px;
    min-width: 820px;
    padding: 7px;
    border-radius: 20px;
  }
  .spera-area-map-figure img {
    width: 820px;
    border-radius: 14px;
  }
  .spera-area-map-tools {
    align-items: flex-start;
    margin-top: 12px;
    font-size: 11px;
  }
  .spera-area-map-hint {
    max-width: 210px;
  }
  .spera-area-map-open {
    padding: 7px 11px;
    font-size: 11px;
  }
  .spera-area-guide {
    gap: 12px;
    margin-top: 22px;
  }
  .spera-area-guide .spera-area-group {
    padding: 20px 18px;
    border-radius: 18px;
  }
}

/* v1.2.0: approved photo-led visual direction and natural custom icons */
.spera-hero h1 {
  max-width: none;
  color: #5b3f31;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: clamp(34px, 3.9vw, 54px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .025em;
  font-feature-settings: "palt" 1;
  text-shadow: 0 2px 0 rgba(255,255,255,.55);
}
.spera-hero h1 .spera-hero__headline-line {
  display: block;
  color: #5b3f31;
  white-space: nowrap;
}
.spera-hero__photo-wrap {
  background: linear-gradient(145deg, #fffaf2, #eef4e8);
}
.spera-hero__photo {
  filter: saturate(.96) contrast(1.02) brightness(1.015);
}

/* The approved early mockup uses soft photo-like AI visuals, not flat people illustrations. */
.spera-service-card__image {
  background: #f8f3e9;
}
.spera-service-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(77,55,40,.045));
}
.spera-service-card__image img {
  display: block!important;
  width: 100%!important;
  height: 100%!important;
  object-fit: cover!important;
  object-position: 50% 50%;
  opacity: 1!important;
  visibility: visible!important;
  filter: saturate(.98) contrast(1.035) brightness(1.01);
}
.spera-service-card:hover .spera-service-card__image img {
  transform: scale(1.035);
}
.spera-service-card__tag {
  border: 1px solid rgba(143,174,114,.25);
  background: rgba(255,253,249,.94);
}

/* Natural icon system: no platform-dependent emoji. */
.spera-trust-item__icon,
.spera-problem-card__icon,
.spera-price-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.spera-trust-item__icon img {
  width: 44px!important;
  height: 44px!important;
  object-fit: contain;
}
.spera-problem-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 17px;
  border: 1px solid rgba(143,174,114,.18);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fffdf8 0 18%, #eef4e7 70%, #e6eedc 100%);
  box-shadow: 0 8px 18px rgba(73,58,43,.06);
}
.spera-problem-card__icon img {
  width: 43px!important;
  height: 43px!important;
  object-fit: contain;
}
.spera-price-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f4f6ec;
}
.spera-price-card__icon img {
  width: 39px!important;
  height: 39px!important;
  object-fit: contain;
}
.spera-flow-card__icon img {
  width: 42px!important;
  height: 42px!important;
  object-fit: contain;
}
.spera-reason-image img {
  filter: saturate(.96) contrast(1.025) brightness(1.01);
}

@media (max-width: 680px) {
  .spera-hero h1 {
    font-size: clamp(22px, 7.4vw, 31px);
    line-height: 1.45;
    letter-spacing: -.012em;
  }
  .spera-hero h1 .spera-hero__headline-line {
    white-space: nowrap;
  }
  .spera-trust-item__icon img {
    width: 38px!important;
    height: 38px!important;
  }
  .spera-problem-card__icon {
    width: 58px;
    height: 58px;
  }
  .spera-problem-card__icon img {
    width: 39px!important;
    height: 39px!important;
  }
}

@media (max-width: 340px) {
  .spera-hero h1 {
    font-size: 21px;
    letter-spacing: -.02em;
  }
}
.spera-mobile-cta__icon img { width: 24px!important; height: 24px!important; object-fit: contain; }


/* v1.2.1: restore the approved original hero copy and typography. */
.spera-hero h1 {
  font-family: "Klee One", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-size: clamp(48px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .01em;
  font-feature-settings: "palt" 1;
  text-shadow: 0 2px 0 rgba(255,255,255,.58);
}
.spera-hero h1 .spera-hero__headline-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.spera-hero h1 .spera-hero__headline-line--main {
  color: #302620;
  font-size: .72em;
  letter-spacing: .015em;
}
.spera-hero h1 .spera-hero__headline-line--accent {
  margin-top: .12em;
  color: #df714b;
  font-size: 1.04em;
  letter-spacing: .035em;
}
.spera-hero__lead {
  max-width: 520px;
  margin-top: 26px;
  color: #3f3934;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: .015em;
}
.spera-hero__lead-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .spera-hero h1 .spera-hero__headline-line {
    margin-inline: auto;
  }
  .spera-hero__lead {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .spera-hero h1 {
    font-size: clamp(30px, 9.7vw, 35px);
    line-height: 1.22;
    letter-spacing: -.012em;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: .72em;
    letter-spacing: -.015em;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    margin-top: .16em;
    font-size: 1.04em;
    letter-spacing: .02em;
  }
  .spera-hero__lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: 0;
  }
}

@media (max-width: 360px) {
  .spera-hero h1 {
    font-size: 29px;
  }
  .spera-hero__lead {
    font-size: 13px;
  }
}

/* v1.2.2: stronger hero, balanced mobile headings and prominent single cute icons */

/* Keep long Japanese section titles from leaving only one or two characters on a final line. */
.spera-section-heading h2 {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}
#problems .spera-problem-heading {
  max-width: none;
  line-height: 1.35;
}
#problems .spera-problem-heading > span {
  display: inline;
  white-space: nowrap;
}

/* Hero: retain the approved wording while giving “まるっと解決！” clear visual impact. */
.spera-hero h1 {
  position: relative;
  isolation: isolate;
  margin: 0;
  line-height: 1;
}
.spera-hero h1 .spera-hero__headline-line {
  max-width: none;
  white-space: nowrap;
}
.spera-hero h1 .spera-hero__headline-line--main {
  display: block;
  width: max-content;
  color: #332720;
  font-size: clamp(34px, 3.15vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .015em;
  text-shadow: 0 2px 0 rgba(255,255,255,.72);
}
.spera-hero h1 .spera-hero__headline-line--accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  width: max-content;
  margin-top: .14em;
  color: #df6f47;
  font-size: clamp(58px, 5.05vw, 74px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .035em;
  text-shadow: 0 3px 0 rgba(255,255,255,.82), 0 10px 24px rgba(199,112,68,.11);
  transform: rotate(-.55deg);
}
.spera-hero h1 .spera-hero__headline-line--accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -.08em;
  bottom: .02em;
  left: -.08em;
  height: .34em;
  border-radius: 45% 55% 46% 54% / 52% 48% 52% 48%;
  background: linear-gradient(90deg, rgba(244,218,171,.28), rgba(238,190,119,.52), rgba(244,218,171,.3));
  transform: rotate(-1deg);
}
.spera-hero h1 .spera-hero__headline-line--accent::after {
  content: "";
  position: absolute;
  top: .02em;
  right: -.34em;
  width: .23em;
  height: .13em;
  border-radius: 100% 0 100% 0;
  background: #91ae72;
  box-shadow: .12em .15em 0 -.025em #bed09f;
  transform: rotate(-24deg);
}

/* Remove the legacy pseudo-icon that caused the visible duplicate. The real SVG is the only icon. */
.spera-trust-item__icon::before {
  content: none!important;
  display: none!important;
  width: 0!important;
  height: 0!important;
  background-image: none!important;
}
.spera-trust-item {
  min-height: 146px;
  gap: 18px;
  padding: 22px 20px;
}
.spera-trust-item .spera-trust-item__icon {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.spera-trust-item__icon > img {
  display: block!important;
  width: 92px!important;
  height: 92px!important;
  max-width: none!important;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(73,58,43,.10));
  transform: translateZ(0);
}
.spera-trust-item__icon > img:not(:first-child) {
  display: none!important;
}
.spera-trust-item strong {
  font-size: 17px;
  line-height: 1.4;
}
.spera-trust-item > div > span {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.55;
}

/* Concern icons are also enlarged so the visual language stays consistent. */
.spera-problem-card__icon {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffaf0, #edf4e4);
  box-shadow: 0 9px 20px rgba(73,58,43,.08), inset 0 0 0 1px rgba(143,174,114,.18);
}
.spera-problem-card__icon img {
  width: 52px!important;
  height: 52px!important;
  object-fit: contain;
}

/* Recommended price cards: large dedicated friendly illustrations, not tiny generic symbols. */
.spera-price-card__icon {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.spera-price-card__icon > img {
  display: block!important;
  width: 98px!important;
  height: 98px!important;
  max-width: none!important;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(73,58,43,.10));
}
.spera-price-card__icon > img:not(:first-child) {
  display: none!important;
}
.spera-price-card h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .spera-hero h1 .spera-hero__headline-line--main,
  .spera-hero h1 .spera-hero__headline-line--accent {
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  #problems .spera-problem-heading {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.32;
    letter-spacing: 0;
  }
  #problems .spera-problem-heading > span {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .spera-hero h1 {
    width: 100%;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: clamp(21px, 6.4vw, 28px);
    line-height: 1.3;
    letter-spacing: -.012em;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    margin-top: .22em;
    font-size: clamp(40px, 11.8vw, 52px);
    line-height: 1.05;
    letter-spacing: .012em;
  }
  .spera-hero h1 .spera-hero__headline-line--accent::after {
    right: -.22em;
  }

  .spera-trust-item {
    min-height: 128px;
    gap: 12px;
    padding: 16px 12px;
  }
  .spera-trust-item .spera-trust-item__icon {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
  }
  .spera-trust-item__icon > img {
    width: 76px!important;
    height: 76px!important;
  }
  .spera-trust-item strong {
    font-size: 14px;
  }

  .spera-problem-card__icon {
    width: 68px;
    height: 68px;
  }
  .spera-problem-card__icon img {
    width: 48px!important;
    height: 48px!important;
  }

  .spera-price-card__icon {
    width: 88px;
    height: 88px;
  }
  .spera-price-card__icon > img {
    width: 86px!important;
    height: 86px!important;
  }
}

@media (max-width: 390px) {
  #problems .spera-problem-heading {
    font-size: 26px;
  }
  .spera-trust-item {
    min-height: 118px;
    padding: 14px 18px;
  }
  .spera-trust-item .spera-trust-item__icon {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }
  .spera-trust-item__icon > img {
    width: 80px!important;
    height: 80px!important;
  }
  .spera-trust-item > div > span {
    display: block;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  #problems .spera-problem-heading {
    font-size: 24px;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: 20px;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    font-size: 38px;
  }
}

/* Extra-small phone guard: keep decorative accents inside the viewport. */
@media (max-width: 680px) {
  .spera-hero h1 .spera-hero__headline-line--accent::before {
    right: -.03em;
    left: -.03em;
  }
}
@media (max-width: 340px) {
  .spera-hero h1 .spera-hero__headline-line--accent::after {
    display: none;
  }
}

/* v1.3.0: approved original-style first view, no toll-free display. */
.spera-site-header__inner {
  width: min(calc(100% - 44px), 1360px);
  min-height: 80px;
}
.spera-site-logo img {
  width: 292px;
  max-height: 62px;
}
.spera-header-contact {
  flex: 0 0 auto;
}
.spera-header-contact .spera-button--line {
  min-width: 164px;
  min-height: 46px;
  padding-inline: 21px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(6,199,85,.22);
}

.spera-hero {
  min-height: 0;
  padding: 0;
  background: #fffaf3;
  overflow: hidden;
  isolation: isolate;
}
.spera-hero::before,
.spera-hero::after {
  content: none;
  display: none;
}
.spera-hero .spera-container.spera-hero__grid {
  width: min(100%, 1500px);
  max-width: 1500px;
  min-height: 620px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(560px, .9fr) minmax(600px, 1.1fr);
  gap: 0;
  align-items: stretch;
}
.spera-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 36px 44px max(42px, calc((100vw - 1420px) / 2));
  background:
    radial-gradient(circle at 8% 12%, rgba(236,217,180,.24) 0 86px, transparent 88px),
    linear-gradient(90deg, #fffaf3 0%, #fffaf3 84%, rgba(255,250,243,.94) 94%, rgba(255,250,243,0) 100%);
}
.spera-hero__eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 23px;
  padding: 8px 19px;
  border: 1px solid rgba(117,145,89,.28);
  border-radius: 9px;
  background: rgba(255,255,255,.84);
  color: #557447;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .035em;
  box-shadow: 0 8px 20px rgba(73,58,43,.06);
}
.spera-hero__eyebrow::before {
  width: 9px;
  height: 9px;
  background: #91b46d;
  box-shadow: 0 0 0 5px rgba(145,180,109,.16);
}
.spera-hero h1 {
  margin: 0;
  font-family: "Klee One", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1;
  text-shadow: none;
}
.spera-hero h1 .spera-hero__headline-line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  white-space: nowrap;
  transform: none;
}
.spera-hero h1 .spera-hero__headline-line--main {
  color: #352821;
  font-size: clamp(34px, 3.15vw, 48px);
  line-height: 1.28;
  letter-spacing: .012em;
}
.spera-hero h1 .spera-hero__headline-line--accent {
  margin-top: .12em;
  color: #df714b;
  font-size: clamp(58px, 5.2vw, 82px);
  line-height: 1.08;
  letter-spacing: .035em;
  text-shadow: 0 2px 0 rgba(255,255,255,.68);
}
.spera-hero h1 .spera-hero__headline-line--accent::before,
.spera-hero h1 .spera-hero__headline-line--accent::after {
  content: none;
  display: none;
}
.spera-hero__lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: #3f3934;
  font-size: clamp(14px, 1.18vw, 17px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .01em;
}
.spera-hero__lead-line {
  display: block;
  white-space: nowrap;
}
.spera-hero__badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 650px);
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}
.spera-hero__badges li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 62px;
  padding: 7px 9px;
  border: 1px solid rgba(143,174,114,.26);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #48683e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 8px 22px rgba(73,58,43,.07);
}
.spera-hero__badges li::before {
  content: none!important;
  display: none!important;
}
.spera-hero__badges img {
  flex: 0 0 40px;
  width: 40px!important;
  height: 40px!important;
  max-width: none!important;
  object-fit: contain;
}
.spera-hero__badges span {
  display: block;
  min-width: 0;
}
.spera-hero__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
}
.spera-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 19%;
  background: linear-gradient(90deg, #fffaf3 0%, rgba(255,250,243,.82) 34%, rgba(255,250,243,0) 100%);
  pointer-events: none;
}
.spera-hero__photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #f5eee3;
  box-shadow: none;
  transform: none;
  overflow: hidden;
}
.spera-hero__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(243,226,204,.08));
  pointer-events: none;
}
.spera-hero__photo {
  width: 100%;
  height: 100%!important;
  max-width: none!important;
  object-fit: cover;
  object-position: 50% 43%;
  filter: saturate(.96) contrast(1.02) brightness(1.02);
}
.spera-hero__floating-card {
  position: absolute;
  z-index: 4;
  top: 47%;
  right: 26px;
  bottom: auto;
  left: auto;
  width: 198px;
  min-height: 188px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230,193,135,.62);
  border-radius: 48% 52% 46% 54% / 54% 47% 53% 46%;
  background: rgba(255,253,248,.94);
  color: #3d322b;
  text-align: center;
  box-shadow: 0 18px 45px rgba(83,67,49,.14);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}
.spera-hero__floating-card::before,
.spera-hero__floating-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,253,248,.94);
  border: 1px solid rgba(230,193,135,.45);
}
.spera-hero__floating-card::before {
  width: 36px;
  height: 36px;
  left: -10px;
  top: 30px;
}
.spera-hero__floating-card::after {
  width: 28px;
  height: 28px;
  right: 5px;
  bottom: -4px;
}
.spera-hero__floating-card span,
.spera-hero__floating-card strong {
  position: relative;
  z-index: 2;
  display: block;
}
.spera-hero__floating-card span {
  margin: 0;
  color: #3d322b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}
.spera-hero__floating-card strong {
  margin: 3px 0;
  color: #df714b;
  font-family: "Klee One", "Yu Mincho", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}
.spera-trust-strip {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .spera-site-header__inner {
    width: calc(100% - 32px);
  }
  .spera-desktop-nav {
    gap: 17px;
  }
  .spera-hero .spera-container.spera-hero__grid {
    grid-template-columns: minmax(500px, .92fr) minmax(470px, 1.08fr);
  }
  .spera-hero__content {
    padding-left: 38px;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: 36px;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    font-size: 62px;
  }
  .spera-hero__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .spera-hero .spera-container.spera-hero__grid {
    display: block;
    width: 100%;
    min-height: 0;
  }
  .spera-hero__content {
    padding: 44px 30px 36px;
    text-align: left;
    background:
      radial-gradient(circle at 3% 10%, rgba(236,217,180,.23) 0 70px, transparent 72px),
      #fffaf3;
  }
  .spera-hero__eyebrow,
  .spera-hero h1 .spera-hero__headline-line--main,
  .spera-hero h1 .spera-hero__headline-line--accent {
    margin-inline: 0;
  }
  .spera-hero__lead {
    margin-inline: 0;
  }
  .spera-hero__visual {
    width: 100%;
    min-height: 420px;
    margin: 0;
  }
  .spera-hero__visual::before {
    inset: 0 0 auto;
    width: auto;
    height: 16%;
    background: linear-gradient(180deg, #fffaf3 0%, rgba(255,250,243,.35) 54%, rgba(255,250,243,0) 100%);
  }
  .spera-hero__photo {
    object-position: 50% 35%;
  }
  .spera-hero__floating-card {
    top: 46%;
    right: 24px;
    width: 176px;
    min-height: 166px;
  }
}

@media (max-width: 680px) {
  .spera-site-header__inner {
    min-height: 68px;
    width: calc(100% - 20px);
  }
  .spera-site-logo img {
    width: 210px;
    max-height: 56px;
  }
  .spera-header-contact {
    display: none;
  }
  .spera-hero__content {
    padding: 34px 18px 29px;
    text-align: left;
  }
  .spera-hero__eyebrow {
    margin-bottom: 20px;
    padding: 7px 12px;
    font-size: clamp(10.5px, 3vw, 12.5px);
    line-height: 1.45;
    letter-spacing: .01em;
    white-space: normal;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    margin-inline: 0;
    font-size: clamp(23px, 7.3vw, 30px);
    line-height: 1.28;
    letter-spacing: -.01em;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    margin-inline: 0;
    margin-top: .16em;
    font-size: clamp(42px, 13.2vw, 57px);
    line-height: 1.04;
    letter-spacing: .02em;
  }
  .spera-hero__lead {
    margin-top: 22px;
    font-size: 13.5px;
    line-height: 1.85;
  }
  .spera-hero__lead-line {
    white-space: normal;
  }
  .spera-hero__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 23px;
  }
  .spera-hero__badges li {
    min-height: 66px;
    justify-content: flex-start;
    padding: 8px 10px;
    font-size: 11px;
  }
  .spera-hero__badges img {
    flex-basis: 43px;
    width: 43px!important;
    height: 43px!important;
  }
  .spera-hero__visual {
    min-height: 350px;
  }
  .spera-hero__photo {
    object-position: 50% 30%;
  }
  .spera-hero__floating-card {
    top: 49%;
    right: 12px;
    width: 146px;
    min-height: 142px;
    padding: 18px 14px;
  }
  .spera-hero__floating-card span {
    font-size: 10.5px;
    line-height: 1.65;
  }
  .spera-hero__floating-card strong {
    font-size: 21px;
  }
}

@media (max-width: 360px) {
  .spera-site-logo img {
    width: 184px;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: 21px;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    font-size: 38px;
  }
  .spera-hero__badges li {
    font-size: 10.5px;
  }
}

/* ========================================================================
 * SEO detail pages and automatic internal-link section (v1.4.0)
 * ====================================================================== */
.spera-seo-detail-hero {
  position: relative;
  padding: 78px 0 82px;
  overflow: hidden;
  background: linear-gradient(120deg, #fffaf3 0%, #f8f3e8 56%, #edf4e6 100%);
}
.spera-seo-detail-hero::before,
.spera-seo-detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.spera-seo-detail-hero::before {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -180px;
  background: rgba(143,174,114,.18);
}
.spera-seo-detail-hero::after {
  width: 300px;
  height: 300px;
  left: -180px;
  bottom: -170px;
  background: rgba(231,189,130,.25);
}
.spera-seo-detail-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 58px;
  align-items: center;
}
.spera-seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--spera-muted);
  font-size: 13px;
}
.spera-seo-breadcrumb a {
  color: var(--spera-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spera-seo-detail-hero__content .spera-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--spera-coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}
.spera-seo-detail-hero h1 {
  margin: 0;
  color: var(--spera-brown);
  font-family: "Klee One", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.35;
  letter-spacing: .01em;
}
.spera-seo-detail-hero__content > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #5f5750;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 2;
}
.spera-seo-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.spera-seo-detail-hero__image {
  margin: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 9px solid rgba(255,255,255,.82);
  border-radius: 34px;
  background: #edf2e6;
  box-shadow: var(--spera-shadow);
  transform: rotate(.7deg);
}
.spera-seo-detail-hero__image img {
  width: 100%;
  height: 100%!important;
  object-fit: cover;
}
.spera-seo-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spera-seo-check-grid li {
  position: relative;
  min-height: 110px;
  padding: 25px 24px 23px 64px;
  border: 1px solid var(--spera-border);
  border-radius: 20px;
  background: #fff;
  color: var(--spera-green-deep);
  font-weight: 800;
  box-shadow: var(--spera-shadow-soft);
}
.spera-seo-check-grid li::before {
  content: "✓";
  position: absolute;
  left: 22px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf5e6;
  color: var(--spera-green);
  font-weight: 900;
}
.spera-seo-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}
.spera-seo-two-column h2 {
  margin: 7px 0 18px;
  color: var(--spera-green-deep);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.4;
}
.spera-seo-two-column p {
  color: var(--spera-muted);
}
.spera-seo-list,
.spera-seo-steps {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spera-seo-list li,
.spera-seo-steps li {
  position: relative;
  padding: 14px 18px 14px 48px;
  border: 1px solid rgba(143,174,114,.27);
  border-radius: 14px;
  background: rgba(255,255,255,.8);
}
.spera-seo-list li::before {
  content: "●";
  position: absolute;
  left: 20px;
  top: 14px;
  color: var(--spera-sage);
  font-size: 12px;
}
.spera-seo-steps { counter-reset: spera-step; }
.spera-seo-steps li::before {
  counter-increment: spera-step;
  content: counter(spera-step);
  position: absolute;
  left: 14px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--spera-green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.spera-seo-note-card {
  padding: 32px;
  border: 1px solid rgba(201,148,85,.3);
  border-radius: 24px;
  background: rgba(255,253,249,.92);
  box-shadow: var(--spera-shadow-soft);
}
.spera-seo-note-card strong {
  display: block;
  margin-top: 16px;
  color: var(--spera-green-deep);
}
.spera-text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--spera-green)!important;
  font-weight: 800;
  text-decoration: underline!important;
  text-underline-offset: 4px;
}
.spera-related-pages {
  border-top: 1px solid var(--spera-border);
}
.spera-related-pages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.spera-related-page-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--spera-border);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #fbf7ef);
  text-decoration: none!important;
  box-shadow: var(--spera-shadow-soft);
  transition: transform .25s var(--spera-ease), box-shadow .25s ease, border-color .25s ease;
}
.spera-related-page-card:hover,
.spera-related-page-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(89,121,75,.38);
  box-shadow: var(--spera-shadow);
}
.spera-related-page-card strong {
  color: var(--spera-green-deep);
  font-size: 19px;
  line-height: 1.5;
}
.spera-related-page-card span {
  margin-top: 11px;
  color: var(--spera-muted);
  font-size: 13px;
  line-height: 1.75;
}
.spera-related-page-card em {
  margin-top: auto;
  padding-top: 16px;
  color: var(--spera-coral);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 900px) {
  .spera-seo-detail-hero__grid,
  .spera-seo-two-column {
    grid-template-columns: 1fr;
  }
  .spera-seo-detail-hero__grid { gap: 34px; }
  .spera-seo-detail-hero__image { max-width: 700px; }
  .spera-seo-check-grid,
  .spera-related-pages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .spera-seo-detail-hero { padding: 42px 0 54px; }
  .spera-seo-detail-hero h1 { font-size: clamp(31px, 9.2vw, 43px); }
  .spera-seo-detail-hero__content > p { font-size: 15px; line-height: 1.9; }
  .spera-seo-detail-hero__actions { display: grid; grid-template-columns: 1fr; }
  .spera-seo-detail-hero__actions .spera-button { width: 100%; }
  .spera-seo-detail-hero__image { border-width: 6px; border-radius: 24px; }
  .spera-seo-check-grid,
  .spera-related-pages__grid { grid-template-columns: 1fr; }
  .spera-seo-check-grid li { min-height: 0; }
  .spera-seo-note-card { padding: 24px 20px; }
  .spera-related-page-card { min-height: 0; }
}


/* v1.4.1: display the complete consultation/reason image without forced cropping. */
.spera-reason-image {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  overflow: visible;
}
.spera-reason-image img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  border-radius: 32px;
}
.spera-reason-image::before {
  inset: -14px 18px 18px -14px;
  border-radius: 38px;
}
.spera-reason-image.is-portrait img {
  border-radius: 180px 180px 28px 28px;
}
.spera-reason-image.is-portrait::before {
  border-radius: 180px 180px 28px 28px;
}
.spera-reason-image.is-landscape {
  max-width: 680px;
}
.spera-reason-image.is-landscape img {
  border-radius: 32px;
}
.spera-reason-image.is-landscape::before {
  border-radius: 38px;
}
@media (max-width: 680px) {
  .spera-reason-image,
  .spera-reason-image.is-landscape {
    width: min(100%, 620px);
    max-width: 100%;
  }
}


/* v1.4.2: remove the generated-image label and footer disclaimer. */
.spera-reason-image::after,
.spera-photo-disclaimer {
  content: none !important;
  display: none !important;
}

/* v1.4.4: mobile width stabilization and balanced Japanese line breaks. */
html,
body.spera-lp-active,
body.spera-landing-template {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}
body.spera-lp-active .spera-main,
body.spera-lp-active .entry-content,
body.spera-lp-active .wp-block-html,
body.spera-lp-active .spera-section,
body.spera-lp-active .spera-container {
  min-width: 0;
  max-width: 100%;
}
body.spera-lp-active .spera-section-heading,
body.spera-lp-active .spera-section-heading h2,
body.spera-lp-active .spera-section-heading p {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 680px) {
  body.spera-lp-active {
    width: 100%;
    min-width: 0;
  }
  .spera-main,
  .spera-section,
  .spera-container,
  .spera-navigator,
  .spera-problem-grid,
  .spera-service-filter,
  .spera-service-grid,
  .spera-reason-layout,
  .spera-price-grid,
  .spera-area-layout,
  .spera-flow,
  .spera-company,
  .spera-contact-form-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .spera-section {
    overflow: clip;
  }
  .spera-container {
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
  }

  /* Keep headings inside the viewport and break only at meaningful phrases. */
  .spera-section-heading {
    padding-inline: 2px;
    margin-bottom: 30px;
  }
  .spera-section-heading .spera-kicker {
    font-size: 11px;
    letter-spacing: .18em;
  }
  .spera-section-heading h2 {
    margin-inline: auto;
    font-size: clamp(27px, 8.2vw, 34px) !important;
    line-height: 1.42 !important;
    letter-spacing: -.02em !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
  }
  .spera-section-heading p {
    font-size: 14px;
    line-height: 1.9;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  #quick-consult .spera-section-heading h2 {
    max-width: 12em;
  }
  #quick-consult .spera-section-heading p {
    max-width: 22em;
  }
  #problems .spera-problem-heading {
    max-width: 11em;
    font-size: clamp(27px, 8.2vw, 34px) !important;
    line-height: 1.45 !important;
  }
  #problems .spera-problem-heading > span {
    display: block !important;
    white-space: nowrap !important;
  }
  #problems .spera-section-heading p {
    max-width: 22em;
  }

  /* Horizontal card rows must scroll inside their own area, never widen the page. */
  .spera-service-filter,
  .spera-service-grid {
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
  .spera-service-grid {
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
  .spera-service-card {
    flex-basis: min(86%, 330px) !important;
    max-width: min(86%, 330px) !important;
  }

  /* The map alone may scroll horizontally; it must not affect the document width. */
  .spera-area-map-scroll {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    overflow-x: auto !important;
  }

  /* Full-width consultation photo, without creating horizontal overflow. */
  .spera-reason-image,
  .spera-reason-image.is-landscape,
  .spera-reason-image img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  .spera-section-heading h2,
  #problems .spera-problem-heading {
    font-size: 28px !important;
  }
  #quick-consult .spera-section-heading h2 {
    max-width: 11em;
  }
}

@media (max-width: 340px) {
  .spera-section-heading h2,
  #problems .spera-problem-heading {
    font-size: 25px !important;
  }
}

/* v1.5.0 Legal pages */
body.spera-legal-template{margin:0;background:#faf7f0;color:#4d4037;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",sans-serif;overflow-x:hidden}.spera-legal-header{background:#fffdf8;border-bottom:1px solid #e8dfd1;position:sticky;top:0;z-index:20}.spera-legal-header__inner{max-width:1120px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.spera-legal-logo img{display:block;width:260px;max-width:55vw;height:auto}.spera-legal-home{display:inline-flex;padding:10px 18px;border:1px solid #779467;border-radius:999px;color:#44633b;text-decoration:none;font-weight:700;background:#fff}.spera-legal-main{padding:48px 20px 70px}.spera-legal-container{max-width:960px;margin:auto}.spera-legal-breadcrumb{display:flex;gap:10px;align-items:center;font-size:14px;margin-bottom:18px;color:#7d746a}.spera-legal-breadcrumb a{color:#55754a}.spera-legal-article{background:#fff;border:1px solid #e6ddce;border-radius:28px;padding:clamp(28px,5vw,64px);box-shadow:0 18px 50px rgba(77,64,55,.08)}.spera-legal-title{text-align:center;border-bottom:1px solid #e8dfd1;padding-bottom:28px;margin-bottom:36px}.spera-legal-title span{display:block;color:#d97449;font-weight:800;letter-spacing:.18em;font-size:13px}.spera-legal-title h1{margin:10px 0 0;font-family:"Klee One","Yu Mincho",serif;color:#365b32;font-size:clamp(30px,5vw,48px);line-height:1.35}.spera-legal-content{font-size:16px;line-height:2}.spera-legal-content h2{font-size:23px;line-height:1.5;color:#365b32;margin:44px 0 14px;padding:12px 16px;border-left:5px solid #91b278;background:#f4f8ed;border-radius:0 12px 12px 0}.spera-legal-content p,.spera-legal-content ul{margin:0 0 18px}.spera-legal-content li{margin:7px 0}.spera-legal-content a{color:#326e43;text-decoration:underline;text-underline-offset:3px}.spera-legal-lead{font-size:18px;font-weight:600;background:#fbf4e7;border-radius:16px;padding:20px 24px}.spera-legal-note{background:#f5f7ef;border:1px dashed #9eb68f;padding:18px;border-radius:14px}.spera-legal-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.spera-legal-table{border-collapse:collapse;width:100%;min-width:620px}.spera-legal-table th,.spera-legal-table td{border:1px solid #ded6c8;padding:15px 17px;text-align:left;vertical-align:top}.spera-legal-table th{width:180px;background:#f2f6eb;color:#365b32}.spera-legal-updated{text-align:right;font-size:13px;color:#837a70;margin-top:42px}.spera-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px}.spera-legal-links a{padding:9px 14px;border-radius:999px;background:#fff;border:1px solid #ded5c6;color:#4d5d42;text-decoration:none;font-size:14px}.spera-legal-footer{text-align:center;background:#efe5d4;padding:28px 20px;color:#66594c}.spera-footer nav{grid-template-columns:repeat(2,minmax(0,1fr))}.spera-footer nav .spera-footer__legal-label{grid-column:1/-1;margin-top:10px;font-size:12px;color:#846f5e;font-weight:700}
@media(max-width:680px){.spera-legal-header__inner{padding:11px 15px}.spera-legal-logo img{width:200px}.spera-legal-home{font-size:12px;padding:8px 11px}.spera-legal-main{padding:24px 12px 90px}.spera-legal-article{padding:26px 18px;border-radius:20px}.spera-legal-title{margin-bottom:26px}.spera-legal-title h1{font-size:30px}.spera-legal-content{font-size:15px;line-height:1.9}.spera-legal-content h2{font-size:20px;margin-top:34px;padding:10px 12px}.spera-legal-lead{font-size:16px;padding:16px}.spera-legal-table{min-width:560px}.spera-legal-links{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.spera-legal-links a{text-align:center;display:flex;align-items:center;justify-content:center}.spera-footer nav{grid-template-columns:1fr 1fr}}

/* v1.5.1: prevent the mobile hero headline from clipping on the right edge. */
@media (max-width: 680px) {
  .spera-hero__content {
    min-width: 0;
    padding-right: 22px;
    overflow: visible;
  }
  .spera-hero h1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .spera-hero h1 .spera-hero__headline-line {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-right: .08em;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: clamp(21px, 6.75vw, 28px);
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    font-size: clamp(39px, 12.2vw, 53px);
    letter-spacing: .005em;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .spera-hero__content { padding-inline: 16px 19px; }
  .spera-hero h1 .spera-hero__headline-line--main { font-size: 20px; }
  .spera-hero h1 .spera-hero__headline-line--accent { font-size: 37px; }
}


/* v1.5.3: remove the stray underline/link decoration below the 30-second guide heading. */
#quick-consult .spera-section-heading h2,
#quick-consult .spera-section-heading h2 a,
#quick-consult .spera-section-heading > a,
#quick-consult .spera-section-heading .spera-kicker {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  background-image: none !important;
}
#quick-consult .spera-section-heading h2::before,
#quick-consult .spera-section-heading h2::after,
#quick-consult .spera-section-heading h2 a::before,
#quick-consult .spera-section-heading h2 a::after,
#quick-consult .spera-section-heading > a::before,
#quick-consult .spera-section-heading > a::after {
  content: none !important;
  display: none !important;
}


/* v1.5.4: intentional Japanese line breaks for the price heading. */
.spera-price-heading > span {
  display: inline;
}
@media (max-width: 680px) {
  #price .spera-section-heading {
    padding-inline: 8px;
  }
  #price .spera-price-heading {
    max-width: 100% !important;
    font-size: clamp(29px, 8.6vw, 36px) !important;
    line-height: 1.38 !important;
    letter-spacing: -.035em !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
  }
  #price .spera-price-heading > span {
    display: block !important;
    white-space: nowrap !important;
  }
  #price .spera-price-heading > span + span {
    margin-top: .08em;
  }
}
@media (max-width: 360px) {
  #price .spera-price-heading {
    font-size: 28px !important;
  }
}


/* v1.5.4: mobile Japanese line-break and viewport stability fixes. */
body.spera-lp-active,
body.spera-landing-template,
body.spera-lp-active #page,
body.spera-lp-active .spera-page,
body.spera-lp-active .spera-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip !important;
}

/* Do not split Japanese words or punctuation in section headings. */
body.spera-lp-active .spera-section-heading h2,
body.spera-lp-active .spera-company__content h2 {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-break: strict;
  text-wrap: balance;
}
body.spera-lp-active .spera-section-heading h2 > span,
body.spera-lp-active .spera-company__content h2 > span {
  display: block;
}

@media (max-width: 680px) {
  body.spera-lp-active .spera-container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    padding-inline: 0 !important;
  }
  body.spera-lp-active .spera-section-heading {
    width: 100%;
    max-width: 100%;
    padding-inline: 4px;
    box-sizing: border-box;
  }
  body.spera-lp-active .spera-section-heading h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 8.4vw, 36px) !important;
    line-height: 1.38 !important;
    letter-spacing: -.035em !important;
    overflow: visible !important;
  }
  body.spera-lp-active .spera-section-heading p {
    max-width: 24em;
    margin-inline: auto;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-break: strict;
  }

  /* Intentional phrase breaks. */
  #quick-consult .spera-quick-heading {
    max-width: 12em !important;
    margin-inline: auto !important;
    font-size: clamp(30px, 9vw, 38px) !important;
  }
  #quick-consult .spera-quick-heading > span {
    white-space: nowrap;
  }
  #problems .spera-problem-heading {
    max-width: 11.5em !important;
  }
  #problems .spera-problem-heading > span,
  #pricing .spera-price-heading > span,
  #company .spera-about-heading > span {
    white-space: nowrap !important;
  }
  #pricing .spera-price-heading {
    max-width: 9em !important;
    margin-inline: auto !important;
  }
  #flow .spera-flow-heading {
    max-width: none !important;
    font-size: clamp(30px, 9vw, 38px) !important;
  }
  #flow .spera-flow-heading > span {
    white-space: nowrap !important;
  }
  #company .spera-about-heading {
    max-width: 10.5em !important;
    margin-inline: auto !important;
    font-size: clamp(29px, 8.7vw, 37px) !important;
    line-height: 1.45 !important;
  }

  /* Hero: keep both approved lines fully visible. */
  .spera-hero__grid,
  .spera-hero__content,
  .spera-hero h1,
  .spera-hero h1 .spera-hero__headline-line {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .spera-hero__content {
    width: 100%;
    padding-inline: 18px !important;
  }
  .spera-hero h1 .spera-hero__headline-line--main {
    font-size: clamp(20px, 6.1vw, 27px) !important;
    letter-spacing: -.055em !important;
    white-space: nowrap !important;
  }
  .spera-hero h1 .spera-hero__headline-line--accent {
    font-size: clamp(36px, 10.8vw, 49px) !important;
    letter-spacing: -.015em !important;
    white-space: nowrap !important;
  }

  /* Prevent cards and carousels from widening the document. */
  .spera-service-filter,
  .spera-service-grid,
  .spera-area-map-scroll,
  .spera-price-grid,
  .spera-flow,
  .spera-company {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 360px) {
  body.spera-lp-active .spera-container {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }
  #quick-consult .spera-quick-heading,
  #flow .spera-flow-heading,
  #company .spera-about-heading {
    font-size: 28px !important;
  }
  .spera-hero h1 .spera-hero__headline-line--main { font-size: 19px !important; }
  .spera-hero h1 .spera-hero__headline-line--accent { font-size: 34px !important; }
}


/* v1.5.6: reliable, clickable privacy consent link */
.spera-form-consent{display:flex;align-items:center;gap:10px;position:relative;z-index:3}
.spera-form-consent__check{display:inline-flex;align-items:center;flex:0 0 auto;cursor:pointer}
.spera-form-consent__check input{width:20px;height:20px;margin:0;accent-color:#5f8552;cursor:pointer}
.spera-form-consent p{margin:0;line-height:1.7}
.spera-form-consent a{position:relative;z-index:4;color:#496d42;text-decoration:underline;text-underline-offset:3px;pointer-events:auto}
@media(max-width:680px){.spera-form-consent{align-items:flex-start}.spera-form-consent__check input{width:22px;height:22px}}

/* v1.5.7: restore natural Japanese wrapping for mobile descriptions and body copy. */
@media (max-width: 680px) {
  /* Paragraphs must wrap inside the viewport instead of continuing off-screen. */
  body.spera-lp-active .spera-section-heading p,
  body.spera-lp-active .spera-hero__lead,
  body.spera-lp-active .spera-service-card p,
  body.spera-lp-active .spera-service-card li,
  body.spera-lp-active .spera-problem-card p,
  body.spera-lp-active .spera-reason-card p,
  body.spera-lp-active .spera-price-card p,
  body.spera-lp-active .spera-price-card li,
  body.spera-lp-active .spera-flow__item p,
  body.spera-lp-active .spera-company__content p,
  body.spera-lp-active .spera-cta__box p,
  body.spera-lp-active .spera-contact-form-wrap p,
  body.spera-lp-active .spera-area-guide p,
  body.spera-lp-active .spera-area-guide li,
  body.spera-lp-active .spera-faq p {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
    text-wrap: pretty;
    box-sizing: border-box;
  }

  /* Keep section descriptions centered while allowing normal multi-line wrapping. */
  body.spera-lp-active .spera-section-heading p {
    max-width: 30em !important;
    padding-inline: 4px;
    margin-inline: auto !important;
  }

  /* Remove inherited no-wrap constraints from generic content containers. */
  body.spera-lp-active .spera-section-heading,
  body.spera-lp-active .spera-section-heading p,
  body.spera-lp-active .spera-card,
  body.spera-lp-active .spera-card__body,
  body.spera-lp-active .spera-service-card__body,
  body.spera-lp-active .spera-company__content,
  body.spera-lp-active .spera-cta__box {
    min-width: 0 !important;
    overflow: visible;
  }

  /* Headings may wrap at natural Japanese boundaries, but never overflow. */
  body.spera-lp-active .spera-section-heading h2,
  body.spera-lp-active .spera-company__content h2,
  body.spera-lp-active .spera-cta__box h2 {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
    text-wrap: balance;
  }

  /* Preserve only deliberately separated phrase spans. */
  body.spera-lp-active .spera-section-heading h2 > span,
  body.spera-lp-active .spera-company__content h2 > span,
  body.spera-lp-active .spera-cta__box h2 > span {
    max-width: 100%;
    white-space: normal !important;
  }

  /* Approved two-line hero copy remains fixed, scaled to the available width. */
  body.spera-lp-active .spera-hero h1 .spera-hero__headline-line--main,
  body.spera-lp-active .spera-hero h1 .spera-hero__headline-line--accent {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  /* Safety net for any legacy inline width or transform that widens text blocks. */
  body.spera-lp-active p,
  body.spera-lp-active li,
  body.spera-lp-active h2,
  body.spera-lp-active h3 {
    box-sizing: border-box;
  }
}
