/* ===== top.css：トップページ（index.astro）用。About・お客様の声の一覧・/parts/・404・準備中のページもこのファイルを読む（Layout の page="top"）=====
   全ページ共通のもの（色・部品・動きの共通ルール）は site.css。ここに書くのは上のページだけで使うもの */

/* ----- このファイルを読むページの共通 ----- */
p,h2,h3,dd{word-break:auto-phrase;line-break:strict}
/* 大きなリンクの文字色はゆっくり変える（トップ側だけの指定） */
.big{transition:color .3s}
@supports (animation-timeline: view()){
  /* スクロールで下から出る（.rv）。自己紹介タイポの行は左右からワイプ（.wipe / .wipe.r） */
  /* .rv（ふわっと出る）は site.css に一本化（JS で .is-in。2026-11-02） */
  .wipe{animation:wipe linear both;animation-timeline:view();animation-range:entry 5% cover 35%}
  .wipe.r{animation-name:wiper}
  @keyframes wipe{from{clip-path:inset(-40% 100% -40% -6%)}to{clip-path:inset(-40% -6% -40% -6%)}}
  @keyframes wiper{from{clip-path:inset(-40% -6% -40% 100%)}to{clip-path:inset(-40% -6% -40% -6%)}}
}
/* 自己紹介タイポ：560px 以下はスマホ用の組み（.wall-sp）に切り替える。文字が小さくなりすぎて一度のスクロールで通り過ぎてしまうため。
   @supports の外に置く（スクロール連動が使えない古いブラウザでも 2 つの組みが両方出ないように。2026-11-02） */
.wall-sp{display:none}
@media (max-width:560px){.wall-pc{display:none}.wall-sp{display:block}}
/* スマホの組み：黄緑の箱が上の行の文字にくっついて見える所と、最後の行の上を少し空ける（8 行目＝Studio Experts、9 行目＝カラフルで…、11 行目＝サカナクション。2026-11-30 Yokoさん） */
@media (max-width:560px){.wall-sp .wall-row:is(:nth-child(8),:nth-child(9)){margin-top:2.2%}.wall-sp .wall-row:nth-child(11){margin-top:3%}}
@media (max-width:820px){
  .g12>*{grid-column:span 12 !important;justify-self:start !important;min-width:0 !important}
}

/* ----- FV ----- */
/* FV：Hello, I am／楕円のポートレート＋点線の楕円／MOYOKO */
/* FV のノイズは ::after を重ねず、背景に直接描き込む（background-blend-mode。濃さは画像 --grain-baked に入っている）。
   ::after の mix-blend-mode だと、点線が描き直されるたびに FV 全体の重ね合わせがやり直され、手前の「Hello! I am」「MOYOKO」がずっとチカチカした（Mac の Chrome。2026-11-17）。見た目は同じ */
.fv::after{content:none}
.fv{position:relative;overflow:hidden;background:var(--grain-baked),var(--bg-blue);background-blend-mode:overlay,normal;height:100vh;height:100svh;min-height:664px;display:flex;flex-direction:column;justify-content:space-between;padding:calc(var(--header-h) + 6px) var(--edge) clamp(8px,1vw,16px)}
.fv-oval{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);height:min(72%,112vw);aspect-ratio:508 / 756;z-index:1}
/* 点線の登場中のちらつきを抑えるため、SVG 全体の transform の描画準備をブラウザに促す。 */
.fv-rings{position:absolute;left:50%;top:50%;width:511.8%;transform:translate(-50%,-50%);pointer-events:none;overflow:visible;will-change:transform}
.fv-rings g{stroke:var(--lime);stroke-opacity:.7}
/* 「Nice to meet you!」：幅 0 の箱の中央に置いて、文字の中心が楕円の左の縁に来るようにする */
.fv-nice-anchor{position:absolute;left:0;top:42%;width:0;display:flex;justify-content:center;overflow:visible;z-index:6}
.fv-nice{margin:0;font-family:var(--font-hand);font-weight:400;font-size:var(--fs-catch);line-height:.95;color:var(--cream);text-align:center;white-space:nowrap}
.fv-line{position:relative;z-index:3;margin:0}
/* 文字の下の切り抜き（.mask）に余裕を持たせる：MOYOKO の O などの下の丸みが、枠の下端で平らに切れていた（iPhone の実機で確認。2026-11-30 Yokoさん）。
   下に余白を足して同じだけ引き戻すので、文字の位置は変わらない */
#hero .fv-line{padding-bottom:clamp(6px,1.4vw,18px);margin-bottom:calc(-1 * clamp(6px,1.4vw,18px))}
/* MOYOKO も Hello, I am と同じくいちばん手前（写真 .fv-oval の上）。点線（.fv-oval.is-rings、z-index:0）は文字と写真の後ろ。
   11/12 に MOYOKO を写真の後ろにしたが、11/13 に Yokoさんの指定で手前に戻した（写真が前に来て見えるため） */
.fv-oval.is-rings{z-index:0;pointer-events:none}
/* .rise（site.css）は inline-block なので、FV の SVG だけはブロックのまま */
.fv-word,.fv-word.rise{display:block;width:100%;height:auto;overflow:visible}
.fv-word.is-late{animation-delay:.25s}
.fv-text{fill:var(--cream);font-family:var(--font-display);font-weight:400}
.fv-text.is-bold{font-weight:900}
/* 点線の楕円は楕円に沿って流れる（--dlen は一周の送り量） */
@keyframes dash{to{stroke-dashoffset:var(--dlen,-440)}}
/* 出方：内側の楕円から順に、少し縮んだところからポンと広がって出る（1 本 .06 秒ずつずらす。2026-11-12、Yokoさん指定「中心に近い点線から順番にばばばっと」）。
   rect は内側 → 外側の順に並んでいるので nth-child で遅らせる（--rk）。流れる動き（dash）は最初からそのまま */
/* 線自体をフェードさせ、SVG 要素全体の opacity は変えない。線の濃さ・拡大率・登場時間は従来と同じ。
   広がる動きは transform を直接アニメーションさせず、数値の変数 --ring-s を動かして .dsh の transform:scale() に渡す。
   transform のアニメーションだと点線 9 本がそれぞれ別の層になり、登場の間じゅう手前の文字（Hello の llo のあたり）がチカチカした（2026-11-17）。
   @property が無い古いブラウザでは、広がりが途中でパッと切り替わるだけで表示は崩れない */
@property --ring-s{syntax:"<number>";inherits:false;initial-value:1}
@keyframes ringIn{from{stroke-opacity:0;--ring-s:.82}to{stroke-opacity:.7;--ring-s:1}}
/* 6 秒に 1 回、内側から外側へ波が走る「脈打つ」動き（11/12 に入れた）は、チカチカして見えるので 11/13 にやめた（Yokoさん指定） */
/* 流れる速さ：スマホ（820px 以下）は楕円が小さいぶん速く見えるので、時間を 1.8 倍に（--ring-slow） */
.fv-rings{--ring-slow:1}
@media(max-width:820px){.fv-rings{--ring-slow:1.8}}
/* スマホのファーストビュー（2026-11-30 Yokoさん）：
   ・「Hello! I am」は字を大きくして、字のあいだを詰める（幅は画面いっぱいのまま。SVG の textLength が、大きくしたぶんだけ字間を詰める。205 → 232）。
     大きくしたぶん上が .mask で切れないよう、文字を下へ 18 ずらす（translate。出てくる動きの transform とは別に効く）
   ・楕円は、アドレスバーが出ているときに見えている範囲（100svh）を基準に、上下の文字のあいだの真ん中に（PC は 56%）。
     前は区画の高さの下限（664px）が、アドレスバーの出ている iPhone の見える高さ（659px 前後）より大きく、真ん中がずれていた。スマホは下限を 560px に */
@media(max-width:560px){
  /* 下の余白を広げる（8px → 28px）：実機では、下に浮かぶブラウザのバーに MOYOKO の下が隠れて切れていた（同じ日に直した） */
  .fv{min-height:560px;padding-bottom:28px}
  /* 楕円は「Hello! I am」の下端と「MOYOKO」の上端のちょうどあいだに（実機の画面で、見えている範囲の真ん中＝50% だと Hello に寄って下が空いた。同じ日に直した）。
     上はヘッダーのぶん（70px）、下は余白（28px）のぶん文字が内側にあるので、区画の真ん中より 25px 下がその中間になる（画面の高さが変わっても同じ） */
  .fv-oval{top:calc(50% + 25px)}
  /* 232 は字間が詰まりすぎたので 220 に（同じ日に直した）。上が切れないよう 10 下げる */
  #hero .fv-line:first-of-type .fv-text{font-size:220px;translate:0 10px}
  /* 「Nice to meet you!」：左が画面の外に切れていたので、一段小さく（--fs-catch → --fs-big-link）、少し下へ、楕円の内側へ寄せる（同じ日に直した） */
  .fv-nice-anchor{left:6%;top:52%}  /* 14% は内側に入りすぎたので 6% に（同じ日） */
  .fv-nice{font-size:var(--fs-big-link)}
}
.dsh{transform-box:fill-box;transform-origin:center;transform:scale(var(--ring-s));animation:ringIn .7s var(--ease) calc(.25s + var(--rk,0) * 60ms) both,dash calc(var(--dur,7s) * var(--ring-slow)) linear infinite}  /* 1 本ずつの速さ（--dur）と送り量（--dlen）は index.astro の rect に。外側ほどゆっくり */
.dsh.rev{animation-direction:normal,reverse}
.dsh:nth-child(2){--rk:1}.dsh:nth-child(3){--rk:2}.dsh:nth-child(4){--rk:3}.dsh:nth-child(5){--rk:4}
.dsh:nth-child(6){--rk:5}.dsh:nth-child(7){--rk:6}.dsh:nth-child(8){--rk:7}.dsh:nth-child(9){--rk:8}
/* 書いたように（2026-11-12、Yokoさん指定。前は回転しながらポンと出ていた）：
   傾き（-12°）は最初から。1 行ずつ左から右へ書かれていく（clip-path の幅を広げる）。
   質感のフィルター（鉛筆の粒子）は試して外した。速さは 1.75 秒で書き終わるまで縮めた（同日、Yokoさん「遅すぎる」） */
.nice{transform:rotate(-12deg);transform-origin:left bottom}
.nice-line{display:inline-block;clip-path:inset(-30% 100% -30% -5%);animation:niceWrite var(--w, .4s) cubic-bezier(.45,.05,.55,.95) var(--d, .9s) forwards}
.nice-line+br+.nice-line{--w:.45s;--d:1.3s}
@keyframes niceWrite{to{clip-path:inset(-30% -5% -30% -5%)}}
.motion-paused .nice-line{clip-path:none!important}
@media(prefers-reduced-motion:reduce){html:not(.motion-playing) .nice-line{animation:none!important;clip-path:none!important}}

/* ----- P-19 自己紹介タイポ（#wall） ----- */
/* 自己紹介タイポ（#wall）。行の SVG は tools/wall_html.py の生成物 */
.wall{position:relative;background:var(--bg-navy);padding:clamp(10px,1.4vw,20px) clamp(10px,1.4vw,20px) clamp(160px,16vw,260px)}
.wall-defs{position:absolute}
.wall-body{position:relative}
.wall-row{position:relative;margin-top:.7%}
.wall-row:first-child{margin-top:0}
.wall-row>svg{display:block;width:100%;height:auto;overflow:visible}
#wall .wall-jp900{font-family:var(--font-jp-display);font-weight:900}
#wall .wall-jp700{font-family:var(--font-jp-display);font-weight:700}
#wall .wall-en800{font-family:"Roboto",var(--font-label);font-weight:600}  /* 「INFJ」も日本語の中の英数字と同じ Roboto 600 に（2026-11-17） */
/* 日本語の中の英数字（scripts/site/wall.ts の styleWallLatin が tspan で区切る。大きさ・上下のずれは JS が測って属性で付ける。2026-11-17） */
#wall .wall-latin{font-family:"Roboto",sans-serif;font-weight:600;font-variant-numeric:proportional-nums}
#wall .wall-slash{font-family:"Roboto",sans-serif;font-weight:100}
#wall .wall-paren{font-weight:400}
/* 言葉（ひとかたまり）：押すとモーダル。ホバーで小さく揺れる */
@keyframes wob{0%,100%{transform:rotate(0)}30%{transform:rotate(-4deg) scale(1.05)}70%{transform:rotate(3deg)}}
.kw{transform-box:fill-box;transform-origin:center;cursor:pointer;outline:none}
.kw:hover{animation:wob .5s ease-in-out}
.kw:focus-visible{outline:none;filter:drop-shadow(0 0 4px var(--cream))}
html.wf-ten-mincho-antique-n7-active #wall tspan[stroke]{stroke:none}
/* 自己紹介タイポの黄緑（文字と箱の地）にざらついた質感（2026-11-01）。粒の大きさは scripts/site/wall.ts が画面上で一定に保つ */
#wall :is(text,tspan,rect)[fill="#C6EA52"]:not(pattern *){fill:url(#limeGrit)}
html[data-hover]:not([data-hover=wob]) #wall .kw:hover{animation:none!important}
#wall .hl,#wall .mis{pointer-events:none}
#wall .hl{fill:var(--lime);opacity:0}
#wall .mis{opacity:0}
/* 1 マーカー：黄緑が左から引かれ、文字が紺に */
html[data-hover=marker] #wall .hl{opacity:1;transform-box:fill-box;transform-origin:left center;transform:scaleX(0);transition:transform .45s var(--ease)}
html[data-hover=marker] #wall .kw:hover .hl,html[data-hover=marker] #wall .kw:focus-visible .hl{transform:scaleX(1)}
html[data-hover=marker] #wall .kw :is(text,tspan){transition:fill .2s .05s}
html[data-hover=marker] #wall .kw:is(:hover,:focus-visible) :is(text,tspan):not(.mis *){fill:var(--navy)!important;stroke:var(--navy)}
html[data-hover=marker] #wall .kw:is(:hover,:focus-visible) rect[fill="#C6EA52"]:not(.hl){fill:var(--lime)!important}
/* 2 箱に反転：一瞬で黄緑の箱＋紺の文字（元から箱の言葉は紺の箱＋黄緑の文字に） */
html[data-hover=box] #wall .kw:is(:hover,:focus-visible) .hl{opacity:1}
html[data-hover=box] #wall .kw:is(:hover,:focus-visible) :is(text,tspan):not(.mis *){fill:var(--navy)!important;stroke:var(--navy)}
html[data-hover=box] #wall .kw:is(:hover,:focus-visible) rect[fill="#C6EA52"]:not(.hl){fill:var(--navy)!important}
html[data-hover=box] #wall .kw:is(:hover,:focus-visible) rect[fill="#C6EA52"]:not(.hl) ~ text[fill="#182C86"]{fill:var(--lime)!important}
html[data-hover=box] #wall .kw:has(rect[fill="#C6EA52"]:not(.hl)):is(:hover,:focus-visible) .hl{opacity:0}
/* 3 版ずれ：朱の同じ文字が少しずれて後ろに */
html[data-hover=misreg] #wall .mis :is(text,tspan){fill:var(--ink)!important;stroke:var(--ink)}
html[data-hover=misreg] #wall .mis{transform:translate(0,0);transition:opacity .15s,transform .35s var(--ease)}
html[data-hover=misreg] #wall .kw:is(:hover,:focus-visible) .mis{opacity:1;transform:translate(2.5px,2.5px)}
html[data-hover=misreg] #wall .kw:has(rect[fill="#C6EA52"]:not(.hl)) .mis{display:none}
html[data-hover=misreg] #wall .kw:has(rect[fill="#C6EA52"]:not(.hl)):is(:hover,:focus-visible) rect:not(.hl){transform:translate(-1.5px,-1.5px);transition:transform .35s var(--ease)}
html[data-hover=misreg] #wall .kw:has(rect[fill="#C6EA52"]:not(.hl)):is(:hover,:focus-visible){filter:drop-shadow(2.5px 2.5px 0 #0E0F1A)}
/* 4 ほかが沈む */
html[data-hover=dim] #wall .kw{transition:opacity .35s}
html[data-hover=dim] #wall:has(.kw:hover) .kw:not(:hover){opacity:.22}
/* 自己紹介タイポのホバー（2026-11-01 決定）：乗せた言葉の黄緑（文字・箱）が生成りの白に変わる */
#wall .wh{opacity:0;pointer-events:none}
#wall .wh,#wall .wh :is(text,tspan){fill:url(#creamGrit)!important}
#wall tspan.wh,#wall .wh tspan{stroke:none}
html[data-hover=white] #wall .wh{transition:opacity .7s ease}
html[data-hover=white] #wall .kw:is(:hover,:focus-visible) .wh{opacity:1}
/* 自己紹介タイポ：かなを詰める（カタカナの字間が開いて見えるため） */
#wall text{font-feature-settings:"palt"}

/* ホバーの比較用（URL に ?hover=… を付けたときだけ左下に出る。scripts/site/wall.ts）。案が決まったら消す */
/* ホバー比較用（?hover=…）。決まったら残す案だけにする */
.hover-switch{position:fixed;left:12px;bottom:12px;z-index:60;display:flex;flex-wrap:wrap;gap:6px;align-items:center;max-width:calc(100vw - 120px);padding:8px;background:var(--navy-deep);border:1px solid var(--lime);font-family:var(--font-label),var(--font-jp),sans-serif;font-size:var(--fs-label);font-weight:var(--fw-label-bold)}
.hover-switch span{color:var(--lime);padding:0 6px}
.hover-switch a,.hover-switch a:hover{color:var(--cream);text-decoration:none;padding:8px 10px;border:1px solid #f4ecdc55;min-height:32px;display:inline-flex;align-items:center}
.hover-switch a[aria-current=true]{background:var(--lime);color:var(--navy);border-color:var(--lime)}

/* ----- P-16 帯 2 本 ----- */
@keyframes marq{to{transform:translateX(-50%)}}
.marq{display:flex;width:max-content;animation:marq 40s linear infinite}
.marq.rev{animation-direction:reverse;animation-duration:48s}
/* 帯 2 本（P-16）。登場の動きと位置は site.css の .seam */
.seam-band{transform:rotate(-2.5deg);margin:0 -40px;background:var(--bg-lime-band);color:var(--navy);padding:clamp(20px,2.2vw,32px) 0}
.seam-band.rev{transform:rotate(2deg);margin:-12px -40px 0;background:var(--cream)}
.seam-text{font-family:var(--font-jp-display);font-weight:900;font-size:clamp(26px,3.2vw,48px);line-height:1.2;letter-spacing:-.02em;gap:48px;white-space:nowrap}
/* 帯 2 本（index.astro の .seam）：自己紹介タイポ（紺）と Works（青）の境目にテープのように貼る。
   Works の上余白と帯の半分ぶんだけ上へ引き上げて、境目が帯の真ん中あたりに来るようにする（2026-11-01） */
.seam{position:relative;z-index:2;overflow:hidden;padding:clamp(32px,3.5vw,56px) 0;margin:calc(-1 * var(--section) - clamp(100px,11.5vw,150px)) calc(-1 * var(--pad)) clamp(40px,5vw,80px)}
/* 帯の登場：.is-armed で隠し、.is-in で流れる向きに敷かれる（黄緑＝右から左、生成り＝左から右）。文字は少し遅れて流れ込む */
.seam.is-armed .seam-band{clip-path:inset(0 0 0 100%);transition:clip-path 1.2s cubic-bezier(.2,1.1,.3,1)}
.seam.is-armed .seam-band.rev{clip-path:inset(0 100% 0 0)}
.seam.is-armed .seam-band:nth-child(2){transition-delay:.12s}
.seam.is-armed .marq>span{opacity:0;transform:translateX(120px);transition:opacity .6s ease .45s,transform 1.1s cubic-bezier(.2,1.1,.3,1) .45s}
.seam.is-armed .marq.rev>span{transform:translateX(-120px)}
.seam.is-in .seam-band,.seam.is-in .seam-band.rev{clip-path:inset(0 0 0 0)}
.seam.is-in .marq>span{opacity:1;transform:none}
/* Motion OFF：止まった帯は横スクロールの箱にして、指やマウスのドラッグで読める（scripts/site/marquee.ts の initSeamScroll。2026-11-02、Yokoさん指定）。
   スクロールバーは出さない。ドラッグ中は文字を選択させない */
.motion-paused .seam-band{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;touch-action:pan-x pan-y}
.motion-paused .seam-band::-webkit-scrollbar{display:none}
.motion-paused .seam-band.is-dragging{cursor:grabbing;user-select:none}
.motion-paused .seam-band:focus-visible{outline:2px solid var(--navy);outline-offset:-4px}

/* ----- P-20 ことばのモーダルの開閉の動き（見た目は site.css の .word-*） ----- */
@keyframes sweep{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 0)}}
/* 幕は 3 枚：sw0（1 色目）→ sw1（2 色目）→ sw2（そのカードの色）。毎回 3 色すべてが流れる（2026-11-30） */
.sw0{animation:sweep .5s var(--ease-wipe) both}
.sw1{animation:sweep .55s var(--ease-wipe) .1s both}
.sw2{animation:sweep .7s var(--ease-wipe) .2s both}
/* 上の段（番号と ×）の地も、そのカードの色の幕と一緒に流れ込む（2026-11-30） */
.word-dialog .word-top::after{animation:sweep .7s var(--ease-wipe) .2s both}
@keyframes mimg{from{opacity:0;transform:translateX(18%) rotate(4deg)}to{opacity:1;transform:none}}
.mimg{animation:mimg .9s var(--ease) .5s both}
@keyframes mtxt{from{transform:translateY(105%)}to{transform:none}}
.mtxt{display:block;animation:mtxt 1s var(--ease) .6s both}
@keyframes mfade{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
.mfade{animation:mfade .8s var(--ease) .8s both}
.mbtn{transition:transform .4s var(--ease)}
.mbtn:hover{transform:rotate(90deg) scale(1.08)}
.mnav{transition:transform .3s var(--ease)}
.mnav:hover{transform:translateX(4px)}
.mnav.prev:hover{transform:translateX(-4px)}
/* 閉じる：中身が左へ流れて消え、幕が上から順に右端から左へ縮む */
.closing .mcontent{animation:mout .3s ease both}
@keyframes mout{from{opacity:1;transform:none}to{opacity:0;transform:translateX(-48px)}}
@keyframes sweepout{from{clip-path:inset(0 0 0 0)}to{clip-path:inset(0 100% 0 0)}}
.closing .sw2{animation:sweepout .5s var(--ease-wipe) .1s both}
.closing .word-top::after{animation:sweepout .5s var(--ease-wipe) .1s both}
.closing .sw1{animation:sweepout .55s var(--ease-wipe) .2s both}
.closing .sw0{animation:sweepout .6s var(--ease-wipe) .3s both}

/* ----- Works（青）。カードは site.css の P-12 ----- */
.home-works{padding:var(--section) var(--pad);background:var(--bg-blue)}

/* ----- P-10 Service（紺）とサービスの行：ホバーで黄緑が左から伸びて矢印が回る ----- */
.home-svc{background:var(--bg-navy);color:var(--cream);padding:var(--section) 0}
.home-svc-head{padding:0 var(--pad)}
.svc-list{border-top:1px solid var(--lime-35)}
.svc{display:block;position:relative;text-decoration:none;color:inherit;border-bottom:1px solid var(--lime-35);background:linear-gradient(var(--lime),var(--lime)) 0 0/0 100% no-repeat;transition:background-size .7s var(--ease),color .3s}
.svcg{padding:clamp(28px,3.4vw,48px) var(--pad);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);row-gap:12px;align-items:center}
.svc-title{grid-column:span 5;font-family:var(--font-jp-display);font-weight:900;font-size:var(--fs-catch);line-height:1.15;letter-spacing:-.04em;word-break:keep-all} /* 折り返すときは services.json の titleLines の区切り（wbr）だけで（「広告・SNS／クリエイティブ」。2026-11-23 Yokoさん） */
.svc-summary{grid-column:span 5;font-size:var(--fs-body);line-height:1.7;font-weight:400}
@media(max-width:820px){.svc-summary br{display:none}} /* 説明の改行は PC だけ（2026-11-23 Yokoさん） */
.svc-arrow-cell{grid-column:span 2;display:flex;justify-content:flex-end}
/* 行の矢印は P-03（Arc.astro）。この行の矢印が全サイトの丸い矢印の基準（2026-11-02） */
.all-works.home-svc-more{margin:64px var(--pad) 0}
.svc:hover,.svc:focus-visible{background-size:100% 100%;color:var(--navy)!important}
@media (max-width:820px){
  /* スマホ：見出しと説明を左に縦に並べ、矢印は右側の縦中央に（2026-11-23 Yokoさん。前は説明の下の左） */
  .svcg{grid-template-columns:minmax(0,1fr) auto}
  .svc-title,.svc-summary{grid-column:1;justify-self:start;min-width:0}
  .svc-arrow-cell{grid-column:2;grid-row:1 / span 2;align-self:center}
}

/* ----- Voice（青）。行は site.css の P-09 ----- */
/* トップの Voice：青の背景（Service の紺 → Voice の青 → About の紺）。文字は生成り、番号と丸ボタンは黄緑 */
.home-voice{padding:var(--section) var(--pad);background:var(--bg-blue);color:var(--cream)}
/* 行の線はトップだけ濃くしていた（cream-40）のをやめ、site.css の P-09（cream-20）に共通化（2026-11-22） */
.home-voice .voice-photo{background:var(--blue-deep)}
/* 番号：青の地の上の黄緑は 4.06:1 で足りないので生成り（4.74:1）。ホバー中は紺のまま（site.css） */
.home-voice .voice-no{color:var(--cream)}
.home-voice .voice-photo-none{background:linear-gradient(160deg,var(--blue-deep),var(--navy))}

/* ----- About（紺） ----- */
/* About（紺）：左に X の投稿画像が流れる楕円（P-31。2026-11-12 にポートレートから替えた）、右に文章と情報の表 */
/* 上の余白は半分（PC・スマホとも）：前の区画（Voice）から楕円までの紺の帯が長く見えるため（2026-11-12、Yokoさん指摘。スマホで先に半分にし、PC も合わせた） */
.home-about{position:relative;overflow:hidden;background:var(--bg-navy);color:var(--cream);padding:calc(var(--section) / 2) var(--pad) var(--section) 0}
.abg{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);row-gap:48px;align-items:center}
/* 余白は 3 か所とも var(--pad) にそろえる：画面の左端〜楕円、楕円〜文章、文章〜画面の右端（2026-11-12、Yokoさん指定。前は楕円〜文章だけ約 2 倍あいていた）。
   楕円〜文章＝カラムの間（--gutter）＋文章の列の左の余白（--pad − --gutter） */
.abp{grid-column:span 6;position:relative;display:flex;justify-content:center;align-items:center;padding-left:var(--pad)}
/* 楕円は左の列の幅いっぱい（2026-11-12、Yokoさん指定）。高さは縦横比 508:756 で決まる（大きい画面では上下が画面からはみ出すが、それでよい）。
   同じ日に試してやめた案：高さの上限をつける／左半分に広げて画面に貼りつける／高さを画面に合わせて縦横比を固定しない（どれも Yokoさん判断で戻した）。
   大きく出す 1 枚は、左は画面の端、右は文章までの余白の半分まではみ出してよい（scripts/site/post-oval.ts。data-po-bounds の次の要素が文章） */
.abp-oval{position:relative;width:100%;aspect-ratio:508 / 756}
.abt{grid-column:7 / span 6;display:flex;flex-direction:column;gap:40px;padding-left:calc(var(--pad) - var(--gutter))}
.abt-text{margin:0;font-size:var(--fs-lead);line-height:2;font-weight:400;max-width:30em}
@media (max-width:820px){
  .abg>*{grid-column:span 12 !important;padding-left:var(--pad) !important}
  .abp{justify-content:center !important;min-height:0 !important;padding:0 0 0 var(--pad) !important}
}

/* ===== About ページ（about.astro） ===== */
/* 冒頭の余白は site.css の .page-hero のまま（ほかの一覧ページと同じ。2026-11-02 に統一） */
.about-hero-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gutter);row-gap:56px;align-items:center}
.about-hero-text{grid-column:span 8;display:flex;flex-direction:column;gap:clamp(32px,4vw,56px)}
/* 添え文はプロフィールの文章の上（冒頭には置かない。2026-11-02） */
.about-catch{margin:0;font-family:var(--font-jp-display);font-weight:700;font-size:var(--fs-big-link);line-height:1.5;letter-spacing:-.02em;white-space:pre-line}
.about-profile .about-catch+.about-lead{margin-top:calc(-1 * clamp(16px,2vw,24px))}
/* 写真は冒頭ではなくプロフィールの左の列（見出しの下）に（2026-11-02、Yokoさん指定。冒頭はほかのページと同じ形に統一） */
.about-portrait{grid-column:1 / span 4;grid-row:2;position:relative;width:min(100%,320px);aspect-ratio:508 / 756}
.about-profile-grid>.side-body{grid-row:1 / span 2}
@media (max-width:820px){
  /* スマホは 1 列（見出し→写真→文章）。行の指定を外さないと写真と文章が同じ場所に重なる */
  .about-profile-grid>.side-body,.about-portrait{grid-row:auto}
  .about-portrait{width:min(64%,300px);margin-inline:auto} /* 1 列のときは真ん中に（2026-11-30 Yokoさん） */
}
.about-profile{display:flex;flex-direction:column;gap:48px}
.about-lead{margin:0;font-size:var(--fs-lead);line-height:2;font-weight:400}
/* 経歴（/about/ の History）：真ん中に横長の楕円、左に時期と見出し、右に本文の 3 列（2026-11-17、Yokoさん指定。前の縦の年表はコミット efed876）。
   ここは止まった形（Motion OFF・JS なし）：時代ごとに同じ 3 列を縦に並べる。楕円は FV・トップの About と同じ形（四角の角を丸めた形。丸い楕円ではない）で、縦横は FV のポートレート（508:756）を横に倒した 756:508。
   3 列は文字・楕円・文字を寄せて、区画の幅いっぱいに置く。楕円も文字も大きく（2026-11-17、Yokoさん：画面に対して余白がありすぎ → 左右の余白をやめ、楕円の列を広げ、文字を 1〜2 段階大きく）。
   列の幅は 文字 1：楕円 1.95：文字 1（楕円を 1.5 のときの 115% に。2026-11-17、Yokoさん）。
   楕円の中はその時代の絵（about.json の image）。無いあいだは仮の色面で、紺・黄緑・朱を順に回す */
/* 背景の青とノイズは、区画ではなく固定される枠（.history-pin）に敷く：区画に敷くと、枠が留まっているあいだ背景だけ流れて、ノイズが上下に動いて見える（2026-11-17、Yokoさん）。
   ノイズの一覧（site.css の --grain-*）にも .history-pin を入れてある。右へはみ出す楕円は枠で切る */
.history-sec{color:var(--cream)}
.history-pin{--history-gap:clamp(20px,2.5vw,48px);padding:var(--section) var(--pad);background:var(--bg-blue);overflow:clip}
.history-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(40px,5vw,72px)}
.history-list{margin:0;padding:0;list-style:none}
.history-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--history-oval-fr,1.95fr)) minmax(0,1fr);column-gap:var(--history-gap);align-items:center;padding:clamp(40px,5vw,72px) 0}
.history-item:first-child{padding-top:0}
.history-item:last-child{padding-bottom:0}
.history-head{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px}
/* 時期は黄緑。英字と数字は大見出しと同じ Ciclo、和文は見出しの明朝 */
.history-year{font-family:"ciclo-display",ChromaticaCicloLocal,"Ciclo Display",var(--font-jp-display);font-weight:400;font-size:var(--history-year-fs,var(--fs-item-title));line-height:1.4;color:var(--lime)}
.history-title{font-family:var(--font-jp-display);font-weight:700;font-size:var(--history-title-fs,var(--fs-footer-nav));line-height:1.35;word-break:auto-phrase;text-wrap:balance}
.history-oval{grid-column:2;grid-row:1;aspect-ratio:756 / 508;border-radius:999px;overflow:hidden;background:var(--bg-navy)}
.history-item:nth-child(3n+2)>.history-oval{background:var(--bg-lime)}
.history-item:nth-child(3n)>.history-oval{background:var(--bg-vermilion)}
.history-oval img{display:block;width:100%;height:100%;object-fit:cover}
/* 背景を切り抜いた画像（about.json の imageFit が contain）：切らずに、少し内側に収めて色の楕円の上に置く */
.history-oval img.is-contain{box-sizing:border-box;padding:8%;object-fit:contain}
/* 本文は --fs-body-sm（一度 --fs-lead に上げたが、見出しとの差をつけるため小さく戻した。2026-11-17、Yokoさん） */
.history-text{grid-column:3;grid-row:1;font-size:var(--history-text-fs,var(--fs-body-sm));line-height:2;font-weight:400}
.history-text p{margin:0}
/* 途中で折り返さない言葉（about.json の本文で [[ ]] で囲んだ所） */
.history-keep{white-space:nowrap}
/* 本文の枠の中の見出し（スマホの画面 1 枚の形のときだけ出す。下の @media の .is-card） */
.history-title.is-in-text{display:none}
.history-text p+p{margin-top:1.2em}
/* 楕円の上に重ねる切り抜きの素材（about.json の cutouts。写真をモノクロの網点にしたもの。2026-11-17、Yokoさん指定）：
   楕円と同じ場所・同じ大きさの枠に、3 枚を少しずつ傾けて置く。楕円からはみ出してよい。楕円に写真を敷いたので、真ん中が見えるよう小さくして端に寄せた（2026-11-17、Yokoさん指定。前は 62%・36%・42%）。位置と大きさは枠に対する割合 */
.history-pops{grid-column:2;grid-row:1;position:relative;aspect-ratio:756 / 508;pointer-events:none}
.history-pop{position:absolute;display:block;height:auto}
.history-pop:nth-child(1){left:-5%;top:44%;width:38%;rotate:-7deg}
.history-pop:nth-child(2){left:70%;top:-9%;width:27%;rotate:10deg}
.history-pop:nth-child(3){left:68%;top:54%;width:32%;rotate:-6deg}
@media (max-width:820px){
  /* スマホは 1 列：楕円 → 時期と見出し → 本文 */
  .history-item{grid-template-columns:minmax(0,1fr);row-gap:20px}
  .history-head,.history-oval,.history-pops,.history-text{grid-column:1}
  .history-head{grid-row:2}
  .history-text{grid-row:3}
  .history-oval,.history-pops{grid-row:1;width:min(100%,420px);justify-self:center}
  .history-year{font-size:var(--fs-card-title)}
  .history-title{font-size:var(--fs-catch)}
  .history-text{font-size:var(--fs-body-sm)}
}
/* 固定して入れ替える形（JS が .is-stage を付ける。scripts/site/history.ts）：
   ・.history-stage の高さは JS が時代の数ぶん取り、.history-pin が画面 1 枚ぶん留まる。時代は全部同じ場所に重ねる
   ・切り替えは全部「右から左へ」流す（2026-11-17、Yokoさん：下から上ではなく横に）
   ・文字（時期と見出し・本文）は、いまの時代だけ出す。次は右から入り、前は左へ抜ける
   ・楕円は「いまの時代まで」を出しておく。次の色（絵）は右から左へ塗り替わって前の上に重なり、戻るときは右へ引いて前が見える。境目はまっすぐな線（ぼかしはやめた）
   ・本文が枠に収まらないときは、枠の中で上へ送る（上下の端は送っている途中だけぼかす）
   ・見出し（History）も枠の中に留める。その右端の数字は「いま何番目か」。枠の上下の余白は画面の高さに合わせる（低い画面で詰まり、高い画面で空きすぎないように） */
.history-stage.is-stage{position:relative}
.is-stage .history-pin{position:sticky;top:0;display:flex;flex-direction:column;box-sizing:border-box;height:100svh;padding-block:calc(var(--header-h) + clamp(8px,2svh,24px)) clamp(20px,4svh,48px)}
.is-stage .history-top{flex:none;margin-bottom:clamp(12px,2.5svh,32px)}
.is-stage .history-top{position:relative;z-index:2}
.is-stage .history-body{position:relative;flex:1;min-height:0;container-type:inline-size}
.is-stage .history-list{position:absolute;inset:0;z-index:1}
/* 楕円の幅 --history-oval-w は 3 列の真ん中の列の幅。文字の大きさ・楕円の列の幅は --history-* の変数にしてある（調整パネルは 2026-11-18 に外した）。
   楕円のまわりの点線は 2026-11-17 に外した（Yokoさん指定。同じ日に入れたが、モチーフを後ろに浮かべたので要らなくなった） */
.is-stage .history-body{--history-oval-w:calc((100cqi - var(--history-gap) * 2) * var(--history-oval-col,1.95) / (var(--history-oval-col,1.95) + 2));--history-oval-x:50%;--history-oval-y:50%}
.is-stage .history-item{position:absolute;inset:0;grid-template-rows:minmax(0,1fr);padding:0;pointer-events:none}
.is-stage .history-item>:is(.history-head,.history-text){opacity:0;transform:translateX(56px);transition:opacity .35s var(--ease),transform .7s var(--ease)}
.is-stage .history-item.is-past>:is(.history-head,.history-text){transform:translateX(-56px)}
.is-stage .history-item.is-active>:is(.history-head,.history-text){opacity:1;transform:none;transition-delay:.18s;pointer-events:auto}
.is-stage .history-text{max-height:100%;overflow:hidden;-webkit-mask-image:linear-gradient(transparent,#000 var(--fade-top,0px),#000 calc(100% - var(--fade-bottom,0px)),transparent);mask-image:linear-gradient(transparent,#000 var(--fade-top,0px),#000 calc(100% - var(--fade-bottom,0px)),transparent)}
.is-stage .history-text-in{will-change:transform}
/* 楕円の出方は 2 つを 1 つの clip-path で合わせている：
   ・History に入ったとき：FV と同じく、真ん中の点から丸が広がって楕円になる（--oval-r 0 → .5。2026-11-18、Yokoさん指定。PC・スマホとも）。
     横長の楕円なので、丸は先に上下に届き（高さ ＝ 幅 × 508/756。縦の割合は --oval-r × 148.8%）、そのあと左右に伸びて楕円になる。動きは FV と同じ 1.1 秒
   ・時代が替わるとき：次の楕円が右から左へ塗り替わる（左の切り抜き --wipe-l 100% → 0）。
   入ったときの楕円は塗り替わりがもう終わっているので丸から開き、そのあとの楕円は丸はもう開いているので塗り替わりだけが動く */
.is-stage .history-oval{--oval-r:0;--wipe-l:100%;
  clip-path:inset(calc(50% - min(var(--oval-r) * 148.8%, 50%)) calc(50% - min(var(--oval-r) * 100%, 50%)) calc(50% - min(var(--oval-r) * 148.8%, 50%)) max(var(--wipe-l), calc(50% - min(var(--oval-r) * 100%, 50%))) round 999px);
  transition:--wipe-l .8s var(--ease-wipe),--oval-r 1.1s cubic-bezier(.5,0,.2,1)}
.is-stage .history-item.is-open>.history-oval{--wipe-l:0%}
.is-stage.is-seen .history-oval{--oval-r:.5}
.is-stage .history-pop:nth-child(2){--pop-i:1}
.is-stage .history-pop:nth-child(3){--pop-i:2}
/* 楕円の下の送り（丸い矢印 ‐ 点 ‐ 丸い矢印。2026-11-17、Yokoさん指定の参考サイトの形。前は「01 / 09」の番号）：画面の下の真ん中に置く。
   矢印は P-03 の丸（回さず、触ると紺に塗って矢印が黄緑）。点は 6px の丸で、いまの時代だけ横長の黄緑。端では先へ行く矢印を薄くする */
.history-nav{display:none}
.is-stage .history-nav{position:absolute;z-index:2;left:50%;bottom:var(--history-nav-bottom);transform:translateX(-50%);display:flex;align-items:center;gap:18px}
.is-stage .history-pin{--history-nav-bottom:clamp(16px,3svh,32px)}
.history-arrow{display:grid;place-items:center;margin:0;padding:0;border:0;background:none;color:inherit;cursor:pointer;border-radius:50%;transition:opacity .3s}
.history-arrow:is(:hover,:focus-visible) .arc{background:var(--navy);color:var(--lime)}
.history-arrow:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.history-arrow:disabled{opacity:.3;cursor:default;pointer-events:none}
.history-dots{display:flex;align-items:center;gap:6px}
.history-dot{width:6px;height:6px;border-radius:3px;background:var(--cream-40);transition:width .3s var(--ease),background .3s}
.history-dot.is-active{width:18px;background:var(--lime)}
/* いまの時代の長い点に、左から右へ黄緑の線が左から伸びる（「横に進める」の合図。白い光は目立たなかったのでやめた。2026-11-23、Yokoさん指定）。Motion OFF・動きを減らす設定では site.css の共通の決まりで止まる */
.history-dot{position:relative;overflow:hidden}
.history-dot.is-active{background:var(--cream-40)}
.history-dot.is-active::after{content:"";position:absolute;inset:0;background:var(--lime);transform-origin:left;animation:historyDotNudge 1.8s var(--ease) infinite}
@keyframes historyDotNudge{0%{transform:scaleX(0)}55%,100%{transform:scaleX(1)}} /* 止めたとき（animation:none）は黄緑の線で埋まったまま */
/* PC は楕円を画面のちょうど真ん中に置く（2026-11-17、Yokoさん：見出しのぶん下にずれていた）：
   見出しを流れの外に出して、中身の枠を上下同じ余白で画面いっぱいに取る。見出しは左上に重なるだけで、中身の位置を押し下げない。
   （番号は 2026-11-17 に矢印と点の送り .history-nav に替えた） */
/* 切り抜きのモチーフの置き方は PC・スマホ共通（後ろに置いて乗算、フェードで出入り、ゆっくりただよう）。スマホでも楕円の手前に出さない（2026-11-17、Yokoさん：手前に来てしまっていた）。
   位置（--pop-x / --pop-y / --pop-w）だけ幅ごとに決める。--pop-cy は枠の中での楕円の中心の高さ（PC は真ん中、スマホは上寄り） */
.is-stage .history-list{z-index:auto}
.is-stage .history-pops{grid-column:1 / -1;position:absolute;inset:-30%;z-index:-1;aspect-ratio:auto;width:auto;justify-self:stretch;mix-blend-mode:multiply}
.is-stage .history-pop{scale:1;left:calc(50% + var(--pop-x) * var(--history-oval-w));top:calc(var(--pop-cy,50%) + var(--pop-y) * var(--history-oval-w));width:calc(var(--pop-w) * var(--history-oval-w))}
/* 後ろのモチーフは、真ん中の楕円より少し遅れて出す（2026-11-18、Yokoさん指定。楕円が出終わるのを待つと遅かったので、塗り替わりの途中の .35 秒あとから .5 秒で）。
   入ったときは、楕円が開き始めて少ししてから JS が .is-ready を付けるので、丸から開く楕円が大きく開いたころに出る */
.is-stage .history-pops{opacity:0;transition:opacity .4s ease}
.is-stage.is-ready .history-item.is-active .history-pops{opacity:1;transition:opacity .5s ease .35s}
.is-stage.is-seen .history-item.is-active .history-pop{animation:historyFloat 7s ease-in-out calc(var(--pop-i,0) * -2.3s) infinite alternate}
.is-stage.is-seen .history-item.is-active .history-pop:nth-child(2){animation-duration:8.5s}
.is-stage.is-seen .history-item.is-active .history-pop:nth-child(3){animation-duration:6s}
@media (min-width:821px){
  .is-stage .history-top{display:contents}
  .is-stage .history-top>.sec-head{position:relative;z-index:2;align-self:flex-start}
  .is-stage .history-body{position:absolute;inset:calc(var(--header-h) + clamp(8px,2svh,24px)) var(--pad);flex:none}
  /* 切り抜きのモチーフ（味噌煮込み・手羽先・エビフライ）は、楕円と文字の後ろ（青い地の上）に大きく浮かべる（2026-11-17、Yokoさん指定。前は楕円の手前に小さく重ねていた）。
     画面からはみ出すくらい大きく、青い地に乗算で重ねる（同日、Yokoさん指定。生成りの面は青に沈み、紺の網点だけが濃く残るので、文字が上に乗っても読める）。
     乗算は同じ重なりの組の中でしか効かないので、この幅では .history-list を重なりの組にしない（z-index:auto）。3 つの角（左下・右上・右下）に置き、楕円の後ろにもぐらせる。出たあとはゆっくり上下にただよう（1 つずつ周期をずらす）。
     位置と大きさは楕円の枠に対する割合 */
  /* 枠は楕円の大きさではなく画面より大きく取る（楕円と同じ大きさだと、枠の端に 1px の線が出た）。真ん中は楕円の中心のまま（枠は 3 列ぶん全部を基準にする。真ん中の列だけだと右にずれる）。
     位置と大きさは楕円の幅（--history-oval-w）の何倍か：left / top は楕円の中心からのずれ */
  .is-stage .history-pop:nth-child(1){--pop-x:-1.28;--pop-y:0;--pop-w:1}
  .is-stage .history-pop:nth-child(2){--pop-x:.36;--pop-y:-.83;--pop-w:.76}
  .is-stage .history-pop:nth-child(3){--pop-x:.24;--pop-y:.05;--pop-w:.9}
  /* 2 つ目の時代（幼少期）のモチーフは縦長のカード 3 枚なので、食べものとは別の位置と大きさにする（同日、Yokoさん指定）：左下・右上・右下に、画面からはみ出して置く */
  .is-stage .history-item:nth-child(2) .history-pop:nth-child(1){--pop-x:-1.22;--pop-y:-.06;--pop-w:.62}
  .is-stage .history-item:nth-child(2) .history-pop:nth-child(2){--pop-x:.42;--pop-y:-.96;--pop-w:.5}
  .is-stage .history-item:nth-child(2) .history-pop:nth-child(3){--pop-x:.56;--pop-y:.12;--pop-w:.56}
  /* 4 つ目の時代（高校時代）は、コンパス（烏口つき）・筆・絵の具のチューブ・人物のデッサンの 4 つ。形がばらばらなので 1 つずつ位置・大きさ・傾きを決める（同日、Yokoさん指定）：
     上は、真ん中から右上にかけてがあかないよう、筆と絵の具を右上の外から左下へ、同じ向きに斜めに 2 本並べて差し込む（左が筆で穂先が下、右が絵の具で出ている絵の具が下。Yokoさんの手描きの指示）（「上から縦に 2 本」は真ん中〜右上がすかすかだった）。あいた右下にコンパスを左へ 45° 回して置く。
     人物は左下で、絵の下の切れ目（まっすぐな端）が見えないよう、画面の下へはみ出させる */
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(1){--pop-x:.3;--pop-y:.28;--pop-w:.9;rotate:-45deg}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(2){--pop-x:-.24;--pop-y:-.82;--pop-w:1.2;rotate:142deg}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(3){--pop-x:.58;--pop-y:-1.0;--pop-w:.34;rotate:-122deg}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(4){--pop-x:-1.05;--pop-y:.17;--pop-w:1;rotate:-4deg}
  /* 出方：その場でふつうにフェードイン・アウト（同日、Yokoさん指定。「ポンと弾ける」「1 つずつ 2 秒かけて濃くなる」「真ん中から円が広がる」は試してやめた）。3 つ同時に 0.7 秒で出て、0.4 秒で消える */
  /* 本文の見える高さは枠の 6 割まで（長い本文を画面の上から下まで見せない。上下の端は広めにぼかす：history.ts の FADE。2026-11-17、Yokoさん） */
  /* 本文は上下の真ん中に置く。枠（6 割）に収まらない長い本文は、枠いっぱい＝上から 2 割の所が頭になる（短いときだけ真ん中に寄る。上端そろえは短い本文が上に浮くのでやめた。2026-11-18、Yokoさん） */
  .is-stage .history-text{max-height:60%}
  /* 矢印と点の送りは楕円のすぐ下（2026-11-17、Yokoさん：画面の下の端から移動）。楕円は枠の真ん中なので、真ん中から楕円の高さの半分だけ下げる */
  .is-stage .history-nav{top:calc(50% + var(--history-oval-w) * 508 / 756 / 2 + clamp(12px,2svh,24px));bottom:auto}
}
@media (max-width:820px){
  /* スマホは画面 1 枚の区画（scripts/site/history.ts の .is-card。2026-11-18、Yokoさん指定）：留めずにふつうに流れ、時代は左右の矢印だけで送る。
     見出しは画面の左上、すぐ下に楕円（幅の 8 割で真ん中）、その下に時期・見出し・本文、いちばん下に矢印と点。
     高さはアドレスバーが縮んだときの画面の高さ（lvh。下に次の区画がのぞかないように）。ただし矢印と点・本文は、アドレスバーが大きいときの画面（svh）の中に収める：
     iPhone は上へ戻るとアドレスバーが大きくなり、画面の下の端に置いた矢印が隠れて押せなかった（2026-11-18、Yokoさん）。--card-bar はその差（アドレスバーが縮んだときは矢印の下が少しあく） */
  .is-card .history-pin{--card-bar:calc(100lvh - 100svh);position:relative;height:100lvh;padding-top:clamp(28px,5svh,44px)}
  .is-stage .history-top{margin-bottom:clamp(32px,5svh,48px)}
  .is-stage .history-top>.sec-head{margin-bottom:0}
  .is-stage .history-body{--history-oval-w:min(80cqi,340px);--history-oval-x:50%;--history-oval-y:calc(var(--history-oval-w) * 508 / 756 / 2)}
  .is-stage .history-oval{width:var(--history-oval-w);justify-self:center}
  /* 下の送りのぶん、本文の枠の下をあける。送りは .history-body の中にあるので、枠の下にあけた余白のところまで下げる */
  .is-stage .history-pin{padding-bottom:calc(var(--card-bar,0px) + var(--hit) + var(--history-nav-bottom) * 2)}
  .is-stage .history-nav{bottom:calc((var(--hit) + var(--history-nav-bottom)) * -1)}
  .is-stage .history-item{grid-template-rows:auto auto minmax(0,1fr);align-items:start;row-gap:18px}
  /* 長い本文は枠の中を縦にスクロールして読む（スクロールバーは出さない。上下の端のぼかしは history.ts の CARD_FADE_*）。
     見出しも本文と一緒にスクロールさせ、時期だけ上に残す（本文を広く読めるように）。時期の下の見出しを隠して、本文の枠の中の同じ見出しを出す */
  .is-card .history-text{overflow-y:auto;scrollbar-width:none}
  .is-card .history-text::-webkit-scrollbar{display:none}
  .is-card .history-head .history-title{display:none}
  .is-card .history-title.is-in-text{display:block;margin:0 0 14px}
  .is-card .history-text{margin-top:-6px}
  /* 後ろのモチーフ：PC と同じく画面いっぱいを使って大きく敷く。位置は楕円の幅の何倍か（--pop-x は真ん中から左端まで、--pop-y は楕円の中心から上端まで）。
     枠は上下に 30% ずつ広げてあるので、楕円の中心は枠の上から 18.75%（＝30 ÷ 160）＋楕円の高さの半分。高校時代の人物は、絵の下の切れ目が見えないよう画面の下へはみ出させる */
  .is-stage .history-pops{--pop-cy:calc(18.75% + var(--history-oval-y))}
  .is-stage .history-pop:nth-child(1){--pop-x:-1.05;--pop-y:.5;--pop-w:1.15}
  .is-stage .history-pop:nth-child(2){--pop-x:-.05;--pop-y:-.98;--pop-w:.95}
  .is-stage .history-pop:nth-child(3){--pop-x:.02;--pop-y:1.08;--pop-w:1.1}
  .is-stage .history-item:nth-child(2) .history-pop:nth-child(1){--pop-x:-1.02;--pop-y:.45;--pop-w:.75}
  .is-stage .history-item:nth-child(2) .history-pop:nth-child(2){--pop-x:.3;--pop-y:-1.15;--pop-w:.62}
  .is-stage .history-item:nth-child(2) .history-pop:nth-child(3){--pop-x:.12;--pop-y:1.05;--pop-w:.72}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(1){--pop-x:-.05;--pop-y:.55;--pop-w:1.15;rotate:-45deg}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(2){--pop-x:-.3;--pop-y:-.92;--pop-w:1.3;rotate:142deg}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(3){--pop-x:.55;--pop-y:-1.2;--pop-w:.38;rotate:-122deg}
  .is-stage .history-item:nth-child(4) .history-pop:nth-child(4){--pop-x:-.82;--pop-y:1.32;--pop-w:1.05;rotate:-4deg}
}
.about-values{margin:0;padding:0;list-style:none;display:grid;column-gap:var(--gutter)}
.value-item{display:flex;flex-direction:column;gap:14px;padding:24px 0;border-top:1px solid var(--navy)}
.value-no{font-family:var(--font-label);font-weight:var(--fw-label-heavy);font-size:var(--fs-label-lg)}
.value-title{font-family:var(--font-jp-display);font-weight:900;font-size:var(--fs-item-title);line-height:1.2;letter-spacing:-.03em}
.value-text{font-size:var(--fs-small);line-height:1.85;font-weight:400}
.words-body{display:flex;flex-direction:column;gap:32px}
.words-text{margin:0;font-size:var(--fs-body-sm);line-height:2;font-weight:400}
/* Gallery（X の投稿の帯）：地はグラデーションなしの紺で、History の最後に広がる紺（.history-cover）と境目なくつなげる（ノイズも敷かない。2026-11-18）。
   見出しと説明文は 1 列に横並びにして（説明文は見出しの下端にそろえる）、流れる画像の上に置く。帯は画面の幅いっぱい（2026-11-18、Yokoさん指定）。
   幅が足りないときは説明文が見出しの下へ回る。見出しの文字（y など）の下は帯の上に少しはみ出すので、帯より手前に置く（z-index。前は帯の地に隠れて y の下が切れていた） */
.gallery-sec{background:var(--navy);color:var(--cream)}
.gallery-head{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:clamp(32px,5vw,96px);row-gap:20px;padding:clamp(64px,8vw,120px) var(--pad) 0}
.gallery-head>.sec-head{flex:none;margin-bottom:0}
/* ハッシュタグは途中で折り返さない（「#も／よこの金曜日」で折れていた） */
.gallery-tag{white-space:nowrap;color:var(--lime);text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1px}
.gallery-tag:hover{color:var(--cream)}
.gallery-tag:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.gallery-side{flex:1 1 22em;display:flex;align-items:center;justify-content:flex-end;gap:clamp(20px,3vw,48px);margin-left:auto} /* 説明文（左揃え）＋右に X のシール。かたまりは右端へ（2026-11-23、Yokoさん指定） */
.gallery-lead{flex:0 1 40em;margin:0;font-size:var(--fs-body-sm);line-height:2;font-weight:400}
.gallery-stk{flex:none;width:clamp(104px,10vw,150px)}
@media(max-width:820px){.gallery-side{flex-wrap:wrap;justify-content:flex-start}.gallery-lead{flex:1 1 100%}.gallery-stk{margin-left:auto}} /* スマホはシールを説明文の下の右へ（重ならないように） */
.words-list{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.words-link{display:inline-flex;align-items:center;min-height:44px;padding:6px 18px;border-radius:var(--radius-pill);background:var(--lime);color:var(--navy);text-decoration:none;font-family:var(--font-jp-display);font-weight:700;font-size:var(--fs-body-sm);transition:background-color .4s var(--ease),color .4s var(--ease)}
/* ホバーは Contact 欄の「お問い合わせはこちら」（.big.is-fill）と同じ：面と文字の色を入れ替える（紺の面に黄緑の文字。2026-11-30 Yokoさん）。
   ここは地も紺なので、札の形が消えないよう内側に黄緑の 1px の線を残す */
.words-link:is(:hover,:focus-visible){background:var(--navy);color:var(--lime);box-shadow:inset 0 0 0 1px var(--lime)}
.about-values{grid-template-columns:repeat(2,minmax(0,1fr))} /* Values は 4 つなので 2 列 × 2 段（2026-11-23、Yokoさん指定。前は 3 列） */
@media(max-width:820px){
  .about-values{grid-template-columns:1fr}
}
@keyframes historyFloat{from{translate:0 -10px}to{translate:0 12px}}
@property --wipe-l{syntax:"<length-percentage>";inherits:false;initial-value:100%}
/* PC：History の最後（.is-outro。scripts/site/history.ts）：楕円がギュッと閉じて点になり、その点から紺の楕円が画面いっぱいにブワンと広がる（2026-11-18、Yokoさん指定）。
   広がりきると画面は紺一色になり、すぐ下に積んである次の帯（X の投稿の画像。紺の地）とつながって、そのままスクロールで下へ移る（重ねずに縦に積む）。
   境目が見えないよう、紺の楕円と帯の地はどちらもグラデーションなしの紺（var(--navy)）にそろえる（site.css の .po.is-band .po-mask）。
   紺の楕円（.history-cover）は枠の真ん中＝楕円の真ん中から広がる。大きさ --hole は 0 → 1（1 で画面の四隅まで届く。縦横比は楕円と同じ 508:756）。時代の文字・モチーフ・送りは閉じるのと一緒に消す。
   上へ戻ると逆向きに、紺の楕円が縮んで楕円がまた開く */
.history-cover{display:none}
@media (min-width:821px){
  /* simple（about.astro の data-outro）：固定が外れて History が上へ流れ始めたら（.is-leaving）、楕円が真ん中へギュッと閉じ（後ろに重なっている前の時代の楕円も一緒に閉じる。いまの楕円だけだと前の絵が見えてしまう）、文字・モチーフ・送りはフェードで消える。下の Gallery の紺が下から見えてくる。
     見出し（History）も消す（.history-top は PC では display:contents なので、中の .sec-head を消す）。
     後ろのモチーフは消さずに残し、History と一緒に上へ流れていく（楕円と文字が消えたあとの画面が空にならないように。2026-11-18、Yokoさん：自動で Gallery へ送るのはやめた）
     戻ってまた留まると、楕円が開き直して中身も戻る */
  .is-stage.is-seen.is-leaving .history-item>.history-oval{--oval-r:0;transition:--wipe-l .8s var(--ease-wipe),--oval-r .5s cubic-bezier(.7,0,.85,.3)}
  .is-stage.is-leaving .history-item.is-active>:is(.history-head,.history-text),.is-stage.is-leaving .history-nav,.is-stage.is-leaving .history-top>.sec-head{opacity:0;transition:opacity .35s ease}
  .is-stage .history-cover{--hole:0;display:block;position:absolute;inset:0;z-index:3;pointer-events:none;background:var(--navy);clip-path:ellipse(calc(var(--hole) * 100vmax) calc(var(--hole) * 67.2vmax) at 50% 50%);transition:--hole .5s ease}
  .is-stage.is-outro .history-cover{--hole:1;transition:--hole 1s cubic-bezier(.5,0,.2,1) .45s}
  .is-stage.is-seen.is-outro .history-item>.history-oval{--oval-r:0;transition:--wipe-l .8s var(--ease-wipe),--oval-r .45s cubic-bezier(.7,0,.85,.3)}
  .is-stage.is-outro .history-item.is-active>:is(.history-head,.history-text),.is-stage.is-outro .history-nav{opacity:0;transition:opacity .3s ease}
  .is-stage.is-outro .history-item.is-active .history-pops{opacity:0;transition:opacity .3s ease}
}
@property --hole{syntax:"<number>";inherits:false;initial-value:0}
