/* finish04: 仕上げ（文字・相談票の選択と窓の灯り・担当者・デモ表記・動き） */
:root{--ink-body:#3F464E;--lamp-wash:color-mix(in srgb,var(--c-lamp) 14%,var(--t-morning))}

/* デモ表記：黒い帯をやめ、細く静かに */
.demo-bar{background:var(--t-noon);color:var(--c-ink-sub);border-bottom:1px solid var(--c-line);font-size:12px;letter-spacing:.06em;padding-block:6px}

/* 本文の読みやすさ（相続世代の50〜70代が主な読み手） */
.entry-card p{font-size:14px;line-height:1.8;color:var(--ink-body)}
.process-copy .process-description{font-size:15px;line-height:1.95;color:var(--ink-body)}
.staff-role{font-size:13px;color:var(--ink-body)}
.staff-person blockquote{font-size:15px;line-height:1.95;color:var(--ink-body)}
.staff-fiction{font-size:12px}
.feature-copy dd,.feature-copy dt{font-size:16px}
.faq-answer p,.area-description{font-size:16px;color:var(--ink-body)}
.city-landmark{font-size:12px!important;color:var(--ink-body)}
.city-caption{padding:2px 8px;background:color-mix(in srgb,var(--t-late) 90%,transparent);box-shadow:0 0 10px 6px color-mix(in srgb,var(--t-late) 90%,transparent);border-radius:8px}

/* 相談の流れ：各段階の約束 */
.process-promise{max-width:13em;margin:18px auto 0;padding-top:14px;border-top:1px solid var(--c-line);font-size:14px;line-height:1.85;color:var(--c-ink);text-align:left}
.promise-tag{display:block;font-size:11px;letter-spacing:.24em;color:var(--c-ink-sub);margin-bottom:4px}
.process-copy .process-rest{font-size:14px}

/* 相談票：押せるチェック欄 */
button.entry-card{font:inherit;color:inherit;text-align:left;width:100%;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background-color .4s ease}
button.entry-card:focus-visible{outline:2px solid var(--c-ink);outline-offset:-2px}
.entry-card[aria-pressed="true"]{background:var(--lamp-wash)}
.entry-card[aria-pressed="true"] .ticket-check path{stroke-dashoffset:0}
.entry-card[aria-pressed="true"] .ticket-check path{color:var(--c-ink)}
.entry-card[aria-pressed="true"] h3{color:var(--c-ink)}
.entry-card:hover h3{color:var(--c-ink)}
.entry-action{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}
.entry-status{margin:0;font-size:14px;line-height:1.8;color:var(--ink-body)}
.entry-submit{flex-shrink:0;background:var(--c-ink);border-color:var(--c-ink);color:#fff;border-radius:0}
.entry-submit:hover{background:#000}
.entry-action.has-choice .entry-submit{animation:submit-nudge .5s var(--ease-draw)}
@keyframes submit-nudge{0%{transform:none}40%{transform:translateY(-3px)}100%{transform:none}}
@media(max-width:767px){.entry-action{flex-direction:column;align-items:stretch;gap:12px}.entry-submit{justify-content:space-between}}

/* FVの窓の灯り：選んだ状況の数だけ、店の窓がともる */
.hero-windows{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:multiply}
.hero-windows polygon{fill:var(--c-lamp);opacity:0;transition:opacity .8s ease}
.hero-windows polygon.is-lit{opacity:.55;animation:lamp-on .9s ease}
@keyframes lamp-on{0%{opacity:0}35%{opacity:.7}55%{opacity:.4}100%{opacity:.55}}

/* 担当者：名前の高さをそろえる */
@media(min-width:768px){
 .staff-person{align-items:start}
 .staff-caption{align-self:start;margin-top:48px}
}

/* 夕暮れ：選んだ内容とお店の情報 */
.dusk-selection{min-width:min(22em,100%);font-size:14px!important;line-height:1.8;margin:0 0 20px!important;padding:10px 14px;border:1px solid color-mix(in srgb,var(--c-on-dusk) 35%,transparent);color:var(--c-on-dusk)}
.dusk-selection span{display:block;font-family:var(--ff-serif);font-size:16px}
.store-info{margin:32px 0 0;padding-top:20px;border-top:1px solid color-mix(in srgb,var(--c-on-dusk) 25%,transparent);font-size:13px;line-height:1.9;color:color-mix(in srgb,var(--c-on-dusk) 85%,transparent)}
.store-info div{display:grid;grid-template-columns:3.5em 1fr;gap:8px}
.store-info dt{color:color-mix(in srgb,var(--c-on-dusk) 60%,transparent)}
.store-info dd{margin:0}
.store-map{display:inline-block;margin-top:12px;font-size:13px;color:var(--c-on-dusk);border-bottom:1px solid color-mix(in srgb,var(--c-on-dusk) 50%,transparent);padding-bottom:2px}

/* FVの演出を短く（約6秒 → 約2.5秒） */
@media(prefers-reduced-motion:no-preference){

 /* 担当者：地面の線が引かれ、3人が順に立つ */
 .js .staff-ground path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.4s var(--ease-draw)}
 .js .staff-list.is-shown .staff-ground path{stroke-dashoffset:0}
 .js .staff-person{opacity:0;transform:translateY(14px);transition:opacity .7s ease,transform .7s var(--ease-draw)}
 .js .staff-list.is-shown .staff-person{opacity:1;transform:none}
 .js .staff-list.is-shown .staff-person:nth-of-type(2){transition-delay:.15s}
 .js .staff-list.is-shown .staff-person:nth-of-type(3){transition-delay:.3s}

 /* 事例の写真：ゆっくり焦点が合うように */
 .js .case-photo img{opacity:0;transform:scale(1.04);filter:blur(4px);transition:opacity 1.2s ease,transform 1.6s var(--ease-draw),filter 1.2s ease}
 .js .case-photo.is-shown img{opacity:1;transform:none;filter:none}

 /* 各段階の約束：線が届いたあとに現れる */
 .js .process-promise{opacity:0;transition:opacity .6s ease calc(var(--arrival,0s) + .5s)}
 .js .road-scene.visible .process-promise{opacity:1}
}
@media(prefers-reduced-motion:reduce){
 .hero-windows polygon{transition:none}
 .hero-windows polygon.is-lit{animation:none}
 .entry-action.has-choice .entry-submit{animation:none}
}

/* スマホの夕暮れ：縦組みの見出しを上に置き、行動の要素は全幅で */
@media(max-width:767px){
 .dusk-content{display:flex!important;flex-direction:column;gap:32px}
 .dusk-content h2{align-self:flex-end;order:-1;font-size:32px}
 .dusk-actions{width:100%}
 .dusk-selection{min-width:0;width:100%}
}

/* Preserve the unhurried FV and keep enlarged text within the consultation sheet. */
.entry-card p{white-space:normal}.entry-status{min-width:0}.entry-submit{max-width:100%}.entry-submit-label{white-space:normal}.case-photo{overflow:hidden}.dusk-selection[hidden]{display:none}
@media(max-width:767px){.process-step{min-height:0}.dusk-chapter{padding-bottom:240px}.dusk-content{gap:32px}.store-info{margin-top:24px}.staff-caption{margin-top:0}}
@media(min-width:768px) and (max-width:1023px){.process-description span{white-space:normal}.process-step{padding-inline:8px}.process-copy .process-description{font-size:14px}} @media(min-width:768px) and (max-width:899px){.staff-person,.staff-person .staff-art{height:400px}.staff-caption{margin-top:12px}.staff-person blockquote{font-size:14px}} .hero-windows{z-index:2}.hero-band .figure-layer{z-index:3}
/* Give the consultation sheet a clear instruction and a separate question. */
.entrances>h2{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:26px 0 30px;margin:0;line-height:1.7;letter-spacing:0}
.entrances>h2>.consultation-preface{font:400 14px/1.8 var(--ff-sans);letter-spacing:.025em;color:var(--c-ink-sub);margin:0}
.entrances>h2>span:not(.consultation-preface){font:500 25px/1.7 var(--ff-serif);letter-spacing:.025em;color:var(--c-ink)}
@media(max-width:767px){.entrances>h2{gap:12px;padding:24px 0 28px}.entrances>h2>.consultation-preface{font-size:13px;line-height:1.9}.entrances>h2>span:not(.consultation-preface){font-size:22px;line-height:1.75;letter-spacing:.01em}}
/* Quiet feedback: show the selected topics only after a choice is made. */
.entry-status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.entry-action:not(.has-choice){justify-content:flex-end}
/* Let the vertical label reserve its own height above the road. */
@media(min-width:768px){
 .journey .chapter-heading{align-items:start;margin-bottom:32px}
 .journey .chapter-heading .chapter-pillar{position:static;grid-row:1;align-self:start}
}
/* Introduce the company before asking visitors to choose a consultation. */
.hero-identity{position:absolute;left:max(var(--gutter),calc((100vw - 1200px)/2));top:24px;max-width:28em;margin:0;font:400 16px/2 var(--ff-sans);letter-spacing:.04em;color:var(--c-ink);text-wrap:pretty}
.services-chapter{background:var(--t-morning)}
.services-chapter .chapter-heading{margin-bottom:48px}
.services-chapter .chapter-pillar{position:static;align-self:start}
.services-chapter .chapter-intro>p{max-width:38em;color:var(--c-ink);line-height:2}
.service-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin-left:calc((100% + 24px)/6)}
.service-topics article{border-top:1px solid var(--c-line);padding-top:24px;min-width:0}
.service-topics h3{font:500 24px/1.8 var(--ff-serif);margin:0 0 20px}
.service-topics p{font-size:16px;line-height:2;color:var(--c-ink);margin:0}
@media(min-width:768px) and (max-width:1099px){.hero-identity{font-size:14px;max-width:25em}.service-topics{gap:24px}.service-topics h3{font-size:21px}}
@media(max-width:767px){.hero-copy{height:360px;padding-top:78px}.hero-identity{inset:16px 20px auto;max-width:none;font-size:13px;line-height:1.9;letter-spacing:.025em;text-align:center}.services-chapter .chapter-heading{margin-bottom:32px}.service-topics{display:block;margin-left:0}.service-topics article{padding-block:24px}.service-topics article:last-child{padding-bottom:0}.service-topics h3{font-size:23px;margin-bottom:16px}}

.service-topics .service-detail{display:inline-block;margin-top:24px;padding-bottom:5px;border-bottom:1px solid currentColor;font-size:14px;line-height:1.8;color:var(--c-primary)}
.service-topics .service-detail:focus-visible{outline:2px solid var(--c-primary);outline-offset:6px}
