/* ふみかの部屋 LP — standalone styles.
   Colours, typefaces and the button treatment follow the Shining corporate site
   (gold #8B7040, hover #70582f, paper #faf8f2), but nothing here is loaded from that site. */
:root{
  --gold:#8B7040;
  --gold-dark:#70582f;
  --ink:#34382f;
  --muted:#5f5b4e;
  --paper:#faf8f2;
  --band:#f0eee5;
  --line:#ded8ca;
  --serif:"Noto Serif CJK JP","Noto Serif JP","Yu Mincho","YuMincho","Hiragino Mincho ProN",serif;
  --sans:"Noto Sans CJK JP","Noto Sans JP","Yu Gothic","YuGothic","Hiragino Sans",sans-serif;
  --story-band:0px; /* height of the sticky illustration band on phones (set by scenes.js) */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:2.1;letter-spacing:.02em}
img{display:block;width:100%;height:auto}
a{color:inherit}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:.06em;word-break:auto-phrase}
h2{font-size:clamp(24px,6.4vw,36px);line-height:1.7}
h3{font-size:clamp(20px,5.2vw,26px);line-height:1.75}
p{text-wrap:pretty}
p+p{margin-top:1.4em}
.phrase{display:inline-block}
.br-wide{display:none}
@media(min-width:768px){.br-wide{display:inline}}
:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.skip{position:absolute;top:-100px;left:16px;z-index:10;background:#fff;padding:10px 14px}
.skip:focus{top:10px}

.section{padding:88px 7%}
.narrow{max-width:34em;margin:0 auto}
.narrow>h2{margin-bottom:40px}
.eyebrow{color:var(--gold);font-size:12px;font-weight:600;letter-spacing:.24em;line-height:1.6}
.voice{font-family:var(--serif);color:var(--gold);font-size:clamp(19px,5vw,23px);line-height:1.9;letter-spacing:.04em}
p+.voice{margin-top:2.4em}
.voice+p{margin-top:1em}
.voice-pair{margin:2em 0}

/* Photos */
.photo{margin:44px 0;overflow:hidden;border-radius:4px;background:#eee9de}
.photo picture{display:contents}
.photo img{aspect-ratio:4/3;object-fit:cover}

/* 1. First view */
.fv{max-width:1200px;margin:0 auto;padding:36px 7% 64px;display:grid;grid-template-columns:1fr;grid-template-areas:"head" "photo" "body"}
.fv-head{grid-area:head}
.fv h1{font-size:clamp(34px,9.6vw,58px);line-height:1.4;letter-spacing:.1em;margin-top:10px}
.fv-catch{margin-top:14px;font-family:var(--serif);color:var(--gold);font-size:clamp(19px,5.2vw,27px);line-height:1.8;letter-spacing:.04em}
.fv-photo{grid-area:photo;margin-top:24px;overflow:hidden;border-radius:72px 4px 4px 4px;background:#eee9de}
.fv-photo picture{display:contents}
.fv-photo img{aspect-ratio:5/4;object-fit:cover;object-position:30% 30%}
.fv-body{grid-area:body;margin-top:28px;font-size:17px;word-break:auto-phrase}
@media(min-width:900px){
  .fv{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-areas:"head photo" "body photo";column-gap:64px;padding-top:64px;padding-bottom:96px;align-items:end}
  .fv-body{align-self:start}
  .fv-photo{margin-top:0;align-self:center;border-radius:160px 4px 4px 4px}
  .fv-photo img{aspect-ratio:4/5;object-position:35% 30%}
}

/* LINE button */
.line-action{margin-top:36px}
.line-button{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:60px;padding:14px 24px;border:2px solid var(--gold);background:var(--gold);color:#fff;font:inherit;font-weight:600;font-size:16px;line-height:1.6;text-align:center;text-decoration:none;letter-spacing:.04em;transition:background-color .22s ease,border-color .22s ease}
.line-button::before{content:"";position:absolute;inset:-45% auto -45% -60%;width:35%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-22deg);pointer-events:none}
@media(hover:hover){
  a.line-button:hover{background:var(--gold-dark);border-color:var(--gold-dark)}
  a.line-button:hover::before{animation:gold-sweep .55s ease-out 1}
}
a.line-button:focus-visible{background:var(--gold-dark);border-color:var(--gold-dark)}
@keyframes gold-sweep{from{left:-60%}to{left:125%}}
.line-button.is-preview{cursor:default}
.line-preview-note{margin-top:10px!important;font-size:13px;line-height:1.8;color:var(--muted)}
@media(min-width:600px){.line-button{display:inline-flex;width:auto;padding:14px 36px}}

/* 2. Empathy */
.empathy{background:var(--band)}
.empathy-close{margin-top:3em!important;padding-top:2em;border-top:1px solid var(--line)}

/* 3. Story — sticky illustration + four scenes */
.story-title{text-align:center;margin:0 auto 56px}
.story-layout{display:block}
.story-visual{position:sticky;top:0;z-index:2;margin:0 -8% 0;padding:14px 8% 18px;background:linear-gradient(var(--paper) 86%,rgba(250,248,242,0))}
.scene-frame{position:relative;aspect-ratio:4/3;width:min(58vw,250px,calc(30svh * 4 / 3));margin:0 auto;border-radius:4px;background:#fce8cd;box-shadow:0 0 0 1px var(--line)}
.scene-layer{position:absolute;inset:0;opacity:0;transition:opacity 2s ease-in-out;border-radius:4px;overflow:hidden}
.scene-layer:first-child{opacity:1}
.js .scene-layer:first-child:not(.is-active){opacity:0}
.js .scene-layer.is-active{opacity:1}
.scene-layer picture{display:contents}
.scene-layer img{width:100%;height:100%;object-fit:cover}
.scene-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:100%;padding:8px;border:2px dashed #c9b994;border-radius:4px;background:#f4efe3;color:var(--gold);text-align:center;line-height:1.5}
.scene-placeholder strong{font-family:var(--serif);font-weight:500;font-size:clamp(18px,4.6vw,28px);letter-spacing:.1em}
.scene-placeholder span{font-size:11px;color:var(--muted);word-break:break-all}
.story-text{max-width:30em;margin:0 auto;padding-bottom:22vh;font-size:16.5px}
.scene{scroll-margin-top:calc(var(--story-band) + 24px)}
.scene+.scene{margin-top:28vh}
.scene h3{margin:8px 0 1.6em;padding-top:40px}
.scene h3::before{content:"";display:block;width:32px;height:1px;background:var(--gold);margin-bottom:22px}
.pause{margin:2.6em 0!important;font-family:var(--serif);color:var(--gold);font-size:1.08em;line-height:1.9;word-break:auto-phrase;text-wrap:balance}
.pause+p{margin-top:0!important}
@media(min-width:900px){
  .story-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,30em);column-gap:72px;max-width:1120px;margin:0 auto}
  .story-visual{top:max(48px,calc(50vh - 220px));align-self:start;margin:0;padding:0;background:none}
  .scene-frame{width:100%;max-width:520px}
  .story-text{margin:0;padding-bottom:36vh;font-size:17px}
  .scene+.scene{margin-top:36vh}
  .scene h3{padding-top:0}
}
@media(prefers-reduced-motion:reduce){
  .scene-layer{transition:none}
  .line-button{transition:none}
  .line-button::before{animation:none!important}
}

/* 4. Why ohagi */
.why-ohagi{padding-top:72px}
.wide-photo{max-width:1040px;margin:0 auto 64px}
.wide-photo img{aspect-ratio:16/10}

/* 5. Time */
.time{background:var(--band)}
.time-photo{max-width:1040px;margin:64px auto 0}
.time-photo img{aspect-ratio:3/2;object-position:50% 40%}

/* 6. LINE */
.line-box{max-width:40em;margin:0 auto;text-align:center}
.line-box h2{margin-bottom:32px}
.line-box p{text-align:left}
@media(min-width:600px){.line-box p{text-align:center}}
.line-box .line-action{display:flex;flex-direction:column;align-items:center}

/* Footer */
.footer{border-top:1px solid var(--line);padding:40px 7% 48px;text-align:center;font-size:14px;line-height:1.9;color:var(--muted)}
.footer-logo{width:200px;margin:0 auto 12px}
.footer p{margin:0}
.footer a{color:var(--gold)}
.footer small{display:block;margin-top:8px;font-size:12px}
