/* フジの紹介ページ（Claude Sonnet 5.5 版）
   色の考え方：夜明けの赤 → 工場の夜 → 陽だまりの紙 → 夕方の葡萄色 → 赤で終わる。赤は本人の好きな色。 */
:root {
  --paper: #fbf6ee;
  --paper2: #f5ecdf;
  --ink: #2b2220;
  --ink2: #6a5852;
  --line: rgba(43, 34, 32, .14);
  --red: #b5333f;
  --red-d: #7b1d2c;
  --gold: #d8a345;
  --night: #0b0c11;
  --night2: #14161f;
  --cream: #f6efe6;
  --wrap: min(1120px, 100% - 2 * clamp(20px, 5vw, 56px));
  --ff: "Rounded", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --ff-hand: "Klee", "Klee One", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ff-mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: .5em 1em; border-radius: 8px; }
.skip:focus { left: 8px; }
.pc { display: inline; }
.wrap { width: var(--wrap); margin-inline: auto; position: relative; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: #fff3d6; color: #4a3500; padding: .6em 1em; font-size: 14px; z-index: 60; }

/* ───────── 固定の上の帯 ───────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) clamp(16px, 3vw, 36px) 10px;
  color: var(--cream);
  transition: color .4s, background-color .4s;
}
.top[data-theme="light"] { color: var(--ink); background: rgba(251, 246, 238, .72); backdrop-filter: blur(10px); }
.top__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.top__brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.top__nav { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.top__nav a { text-decoration: none; opacity: .82; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s, opacity .3s; }
.top__nav a:hover { opacity: 1; background-size: 100% 1.5px; }
.top__peak { display: grid; place-items: center; color: inherit; }
@media (max-width: 860px) { .top__nav { display: none; } }

/* ───────── 見出しまわりの共通 ───────── */
.kicker { font-size: 13px; letter-spacing: .22em; font-weight: 700; color: var(--red); margin-bottom: .9em; }
.kicker b { font-family: var(--ff-mono); font-weight: 400; letter-spacing: .1em; margin-right: 1em; opacity: .75; }
h2 { font-size: clamp(26px, 3.5vw, 48px); font-weight: 800; line-height: 1.3; letter-spacing: .01em; text-wrap: balance; }
.sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.sec-lead { margin-top: 1.1em; max-width: 38em; color: var(--ink2); }

/* ───────── 0 はじめまして ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #2a1b45; color: #fff6ec; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { opacity: 0; transition: opacity .8s; }
@media (max-aspect-ratio: 4/5) { .hero__poster { top: 30%; height: 70%; } }
.hero.is-ready .hero__canvas { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 12, 44, .42) 0, rgba(24, 12, 44, 0) 24%), linear-gradient(0deg, var(--night) 0, rgba(11, 12, 17, 0) 24%); pointer-events: none; }
.hero__copy { position: absolute; left: clamp(20px, 6vw, 96px); top: clamp(80px, 14vh, 160px); right: 20px; }
.hero__kicker { font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .5em; font-weight: 700; opacity: .85; padding-left: .3em; }
.hero__name { font-size: clamp(104px, 18vw, 250px); font-weight: 800; line-height: .98; letter-spacing: .03em; margin: .02em 0 .06em -.04em; text-shadow: 0 8px 50px rgba(70, 10, 40, .4); }
.hero__lead { font-size: clamp(18px, 2.1vw, 28px); font-weight: 700; line-height: 1.7; text-shadow: 0 2px 20px rgba(40, 8, 40, .55); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.hero__tags li { font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: .35em 1em; border: 1px solid rgba(255, 246, 236, .55); border-radius: 999px; background: rgba(255, 246, 236, .08); backdrop-filter: blur(6px); }
.hero__cue { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px); transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: #fff6ec; text-decoration: none; font-size: 13px; letter-spacing: .14em; font-weight: 700; white-space: nowrap; }
.hero__cue i { width: 1px; height: 38px; background: linear-gradient(#fff6ec, rgba(255, 246, 236, 0)); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.rise { opacity: 0; transform: translateY(14px); animation: rise 1s var(--ease) var(--d, 0s) forwards; }
.hero__cue.rise { transform: translate(-50%, 14px); animation-name: riseC; }
.drop { display: inline-block; opacity: 0; transform: translateY(-.45em) rotate(-5deg); animation: drop 1s cubic-bezier(.2, .9, .25, 1.15) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes riseC { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes drop { to { opacity: 1; transform: none; } }

/* ───────── 巻物（ピン留めして、スクロールで進む場面）の共通 ───────── */
.story { position: relative; height: calc(var(--len, 400) * 1vh); }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story--gear { background: var(--night); color: #f4eee6; }
.stage__poster, .stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__canvas { opacity: 0; transition: opacity .5s; }
.story.is-ready .stage__canvas { opacity: 1; }
.stage__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 95% at 14% 100%, rgba(4, 5, 8, .88) 0, rgba(4, 5, 8, 0) 62%), linear-gradient(90deg, rgba(4, 5, 8, .55), rgba(4, 5, 8, 0) 55%), linear-gradient(180deg, rgba(4, 5, 8, .5), rgba(4, 5, 8, 0) 22%); }

.hud { position: absolute; top: clamp(76px, 12vh, 110px); right: clamp(16px, 4vw, 48px); width: 188px; font-family: var(--ff-mono); font-size: 11.5px; line-height: 1.7; color: rgba(244, 238, 230, .78); border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 14px; letter-spacing: .04em; }
.hud__title { font-family: var(--ff); font-weight: 800; letter-spacing: .12em; color: var(--gold); margin-bottom: 6px; }
.hud dl div { display: flex; justify-content: space-between; gap: 12px; }
.hud dt { opacity: .7; }
.hud dd { font-variant-numeric: tabular-nums; }
.hud__bar { height: 3px; background: rgba(255, 255, 255, .18); margin: 10px 0 6px; border-radius: 3px; overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0b95a, #ff7a4a); }
.hud__cut b { font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }

.beats { position: absolute; left: clamp(20px, 6vw, 96px); bottom: clamp(60px, 11vh, 120px); width: min(38rem, calc(100% - 40px)); pointer-events: none; }
.beats--top { top: clamp(84px, 14vh, 150px); bottom: auto; }
.beat { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(26px); will-change: opacity, transform; text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.beats--top .beat { top: 0; bottom: auto; }
.beat .kicker { color: var(--gold); }
.beat h2 { font-size: clamp(24px, 2.9vw, 40px); margin-bottom: .55em; }
.beat p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.95; color: rgba(244, 238, 230, .88); }
.beat--quiet p { font-size: clamp(16px, 1.55vw, 20px); line-height: 2.1; color: rgba(244, 238, 230, .92); }
.feedhint { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(20px, 4vh, 40px); font-size: 12px; letter-spacing: .12em; color: rgba(244, 238, 230, .55); }

/* 歯から山へ */
.story--turn { background: var(--night); color: #f4eee6; }
.turn__bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--t1, #0b0c11) 0, var(--t2, #14161f) 100%); }
.turn__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.turn__svg.is-portrait { inset: 170px 0 0 0; height: calc(100% - 170px); }
.beats--top .beat h2 { color: #fff; }

/* ───────── 紙の面（陽だまり）の共通 ───────── */
.paper { position: relative; overflow: hidden; background: var(--paper) url(assets/img/paper.webp) 0 0 / 420px; color: var(--ink); }
.paper--warm { background-color: var(--paper2); }
.komorebi { position: absolute; inset: 0; pointer-events: none; background: url(assets/img/komorebi.webp) top right / 110% auto no-repeat; mix-blend-mode: multiply; opacity: .5; animation: sway 16s ease-in-out infinite alternate; transform-origin: 90% 0; }
.komorebi--b { transform: scaleX(-1); transform-origin: 50% 0; background-position: top right; animation-name: swayB; opacity: .42; }
.komorebi--c { background-position: top right; opacity: .38; animation-duration: 20s; }
@keyframes sway { from { transform: rotate(-.8deg) translateX(-1%); } to { transform: rotate(1deg) translateX(1.2%) scale(1.02); } }
@keyframes swayB { from { transform: scaleX(-1) rotate(-.8deg) translateX(-1%); } to { transform: scaleX(-1) rotate(1deg) translateX(1.2%) scale(1.02); } }

/* ───────── 3 AI と ───────── */
.ai { padding: clamp(86px, 12vw, 170px) 0; }
.ai::before { content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(120px, 18vw, 240px); background: linear-gradient(#f4a07a, rgba(244, 160, 122, .55) 40%, rgba(244, 160, 122, 0)); z-index: 0; pointer-events: none; }
.ai > .wrap { z-index: 1; }
.ai__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ai__text > p { margin-top: 1.2em; max-width: 36em; }
.quote { margin-top: 2em; padding: 1.1em 1.4em; border-left: 4px solid var(--red); background: rgba(255, 255, 255, .55); border-radius: 0 16px 16px 0; }
.quote blockquote { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; line-height: 1.8; }
.quote figcaption { margin-top: .4em; font-size: 12px; letter-spacing: .14em; color: var(--ink2); }
.ai__art { position: relative; }
.tilt { perspective: 900px; }
.tilt__img { width: min(100%, 460px); margin-inline: auto; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); filter: drop-shadow(0 28px 34px rgba(80, 40, 20, .28)); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }
.chat { display: grid; gap: 10px; margin: 26px auto 0; max-width: 460px; }
.chat__b { max-width: 86%; padding: .7em 1.1em; border-radius: 20px; font-size: 15px; line-height: 1.7; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); font-weight: 700; }
.chat__b--l { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__b--r { justify-self: end; background: var(--red); color: #fff; border-bottom-right-radius: 6px; }
.chat.is-in .chat__b { opacity: 1; transform: none; }
.chat.is-in .chat__b:nth-child(2) { transition-delay: .9s; }
.chat.is-in .chat__b:nth-child(3) { transition-delay: 1.8s; }
.chat.is-in .chat__b:nth-child(4) { transition-delay: 2.7s; }

/* ───────── 4 つくっているもの ───────── */
.apps { padding: clamp(80px, 11vw, 150px) 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card { position: relative; overflow: hidden; background: rgba(255, 252, 246, .88); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 38px); box-shadow: 0 1px 0 #fff inset, 0 26px 60px -34px rgba(90, 40, 20, .45); }
.card--tsuzu, .card--shiori { grid-column: 1 / -1; }
.card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: relative; }
.card__head img, .tsumu__mark { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 6px 16px -6px rgba(60, 30, 10, .5); }
.card__head h3 { font-size: 24px; font-weight: 800; line-height: 1.3; }
.card__head p { font-size: 14px; color: var(--ink2); font-weight: 700; }
.card--tsuzu .card__head p { color: #AE7630; }
.card--shiori .card__head p { color: #941731; }
.card__desc { margin-top: 20px; max-width: 40em; font-size: 15px; position: relative; }
.card__link { display: inline-flex; align-items: center; gap: .5em; margin-top: 14px; font-weight: 800; font-size: 15px; text-decoration: none; padding: .45em 1.1em; border-radius: 999px; border: 1.5px solid currentColor; position: relative; transition: transform .25s var(--ease), background-color .25s, color .25s; }
.card--tsuzu .card__link { color: #8a5a1f; }
.card--shiori .card__link { color: #941731; }
.card__link:hover { transform: translateY(-2px); background: currentColor; }
.card__link:hover { color: #fff; }
.card--tsuzu .card__link:hover { background: #AE7630; }
.card--shiori .card__link:hover { background: #941731; }

/* 綴Photo */
.tsuzu { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.tsuzu__photo { position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #d9c06a; box-shadow: 0 18px 40px -22px rgba(60, 40, 10, .6); }
.tsuzu__photo > img:first-child { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: blur(var(--b, 16px)) saturate(var(--s, .65)) brightness(var(--br, 1.06)); transition: filter .5s var(--ease); }
.tsuzu__words { position: absolute; left: 6%; right: 26%; bottom: 8%; font-family: var(--ff-hand); font-size: clamp(18px, 2.4vw, 30px); line-height: 1.5; color: #fffdf6; text-shadow: 0 1px 2px rgba(40, 30, 0, .55), 0 0 18px rgba(40, 30, 0, .45); min-height: 1.5em; word-break: break-all; }
.tsuzu__words::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: currentColor; vertical-align: -.12em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tsuzu__stamp { position: absolute; right: 6%; bottom: 7%; width: clamp(60px, 9vw, 96px); transform: scale(2.2) rotate(-18deg); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .2s; filter: drop-shadow(0 4px 6px rgba(80, 30, 40, .35)); mix-blend-mode: multiply; }
.tsuzu__photo.is-focus .tsuzu__stamp { transform: scale(1) rotate(-8deg); opacity: 1; }
.tsuzu__side { display: grid; gap: 10px; }
.tsuzu__label { font-size: 13px; font-weight: 700; color: var(--ink2); line-height: 1.6; }
.tsuzu__input { width: 100%; font: inherit; font-family: var(--ff-hand); font-size: 17px; padding: .65em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fffdf8; color: var(--ink); }
.tsuzu__input:focus { outline: none; border-color: #AE7630; box-shadow: 0 0 0 4px rgba(174, 118, 48, .18); }
.tsuzu__meter { position: relative; height: 22px; border-radius: 11px; background: rgba(174, 118, 48, .14); overflow: hidden; }
.tsuzu__meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #e9c17a, #AE7630); transition: width .3s var(--ease); }
.tsuzu__meter span { position: relative; display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; line-height: 22px; padding-left: 10px; color: #4a2f0c; }
.tsuzu__shelf { width: 118px; height: auto; align-self: start; border-radius: 16px; border: 4px solid #2b2220; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); justify-self: end; margin-top: 6px; }

/* 栞Video */
.shiori { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.shiori__phone { position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; border: 6px solid #1b1517; background: #1b1517; box-shadow: 0 26px 50px -24px rgba(60, 10, 20, .6); }
.shiori__phone video { width: 100%; height: 100%; object-fit: cover; }
.shiori__tag { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: .55em .9em; background: rgba(251, 246, 238, .95); border-radius: 12px; border-left: 5px solid #941731; font-size: 13px; line-height: 1.5; color: var(--ink); transform: translateY(130%); transition: transform .5s cubic-bezier(.2, 1.1, .3, 1); }
.shiori__tag.is-on { transform: none; }
.shiori__tag span { font-family: var(--ff-mono); font-size: 11px; opacity: .6; }
.shiori__help { font-size: 14.5px; color: var(--ink2); margin-bottom: 18px; }
.shiori__help b { color: #941731; }
.strip { position: relative; aspect-ratio: 1152 / 170; border-radius: 10px; background: #1b1517; margin-top: 30px; cursor: ew-resize; touch-action: none; user-select: none; }
.strip__frames { position: absolute; inset: 0; border-radius: 10px; background: url(assets/video/strip.webp) 0 0 / 100% 100%; box-shadow: 0 0 0 5px #1b1517; filter: saturate(.9); }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, rgba(251, 246, 238, .75) 0 5px, transparent 5px 12px); z-index: 2; opacity: .85; }
.strip::before { top: -7px; }
.strip::after { bottom: -7px; }
.strip__head { position: absolute; top: -12px; bottom: -12px; width: 2px; left: 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 12px rgba(255, 255, 255, .7); z-index: 4; pointer-events: none; }
.strip__head::before { content: ""; position: absolute; left: -5px; top: -2px; border: 6px solid transparent; border-top-color: #fff; }
.strip__ribbons { position: absolute; inset: 0; z-index: 3; }
.rib { position: absolute; top: -10px; width: 20px; height: 64px; margin-left: -10px; padding: 0; border: 0; background: url(assets/img/ribbon.webp) center top / 100% 100% no-repeat; cursor: pointer; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); animation: ribDrop .7s cubic-bezier(.3, 1.5, .5, 1) both; transform-origin: top; }
.rib:hover, .rib.is-sel { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)) brightness(1.2); }
@keyframes ribDrop { from { transform: translateY(-70px) rotate(8deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
.shiori__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { appearance: none; font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .06em; padding: .65em 1.3em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .5); }
.btn:disabled { opacity: .4; cursor: default; }
.btn--red { background: #941731; border-color: transparent; color: #fff; }
.btn--line { background: transparent; border-color: currentColor; }

/* くるリスト・紡Book */
.card--kuru, .card--tsumu { min-height: 270px; }
.kuru__blobs i { position: absolute; border-radius: 50%; filter: blur(26px); opacity: .55; animation: blob 9s ease-in-out infinite alternate; }
.kuru__blobs i:nth-child(1) { width: 150px; height: 150px; right: -30px; top: -30px; background: #3BB1EE; }
.kuru__blobs i:nth-child(2) { width: 120px; height: 120px; right: 70px; bottom: -40px; background: #4CC79A; animation-delay: -3s; }
.kuru__blobs i:nth-child(3) { width: 110px; height: 110px; left: 40%; top: 20%; background: #F28CA6; animation-delay: -5s; opacity: .4; }
.kuru__blobs i:nth-child(4) { width: 90px; height: 90px; right: 16%; top: 38%; background: #FC9D1D; animation-delay: -7s; opacity: .4; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(-22px, 16px) scale(1.15); } }
.tsumu__mark { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7a6a64, #4b3f3b); }
.tsumu__line { width: min(100%, 320px); margin-top: 6px; overflow: visible; }
.tsumu__thread { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.card--tsumu.is-in .tsumu__thread { stroke-dashoffset: 0; }

/* ───────── 5 書いたもの ───────── */
.notes { position: relative; overflow: hidden; padding: clamp(84px, 11vw, 150px) 0; color: #f6e9e4; background: linear-gradient(180deg, #1a0f1c 0, #2a1126 42%, #4d1830 100%); }
.notes__glow { position: absolute; left: 50%; bottom: -30%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 120, 80, .28), rgba(255, 120, 80, 0)); pointer-events: none; }
.sec-head--dark .kicker { color: #f0b95a; }
.sec-head--dark .sec-lead { color: rgba(246, 233, 228, .78); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(24px, 4vw, 44px); }
.stats li { padding: 14px 18px; border-left: 2px solid rgba(240, 185, 90, .5); }
.stats b { display: block; white-space: nowrap; font-size: clamp(21px, 3.2vw, 40px); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats .nb { display: block; white-space: nowrap; }
.stats b.sm { font-size: clamp(15px, 1.7vw, 21px); line-height: 1.55; padding-top: .2em; }
.stats span { font-size: 12.5px; letter-spacing: .1em; color: rgba(246, 233, 228, .7); }
.sky { position: relative; margin: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.sky svg { width: 100%; min-width: 860px; height: auto; display: block; }
.sky__legend { position: sticky; left: 0; }
.sky__hint { display: none; position: sticky; left: 0; margin-top: 6px; font-size: 12px; letter-spacing: .1em; color: rgba(246, 233, 228, .55); }
@media (max-width: 860px) { .sky__hint { display: block; } }
.sky__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: 12.5px; letter-spacing: .08em; color: rgba(246, 233, 228, .78); }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: -6px; }
.lg--a { background: #f0b95a; } .lg--b { background: #ff7a7a; } .lg--c { height: 2px; background: #fff; }
.sky .col { cursor: pointer; }
.sky .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.sky.is-in .col rect.bar { transform: scaleY(1); transition: transform .8s var(--ease) calc(var(--i, 0) * 8ms), opacity .25s, filter .25s; }
.sky.has-sel .col:not(.is-on) rect.bar { opacity: .7; }
.sky .col.is-on rect.bar { filter: brightness(1.3) saturate(1.1); }
.ridge { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 8px rgba(255, 190, 140, .8)); pointer-events: none; }
.sky.is-in .ridge { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s var(--ease) .5s; }
.ridge-fill { fill: url(#gRidge); opacity: 0; pointer-events: none; }
.sky.is-in .ridge-fill { opacity: 1; transition: opacity 1.8s ease 1.4s; }
.pick { margin-top: 24px; padding: 18px 22px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); min-height: 130px; }
.pick__date { font-family: var(--ff-mono); font-size: 14px; letter-spacing: .08em; color: #f0b95a; margin-bottom: 8px; }
.pick__list { display: grid; gap: 4px; }
.pick__list a { display: block; padding: .35em 0; text-decoration: none; font-size: 15px; line-height: 1.6; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.pick__list a:hover { color: #f0b95a; }
.pick__list small { font-size: 11.5px; letter-spacing: .08em; opacity: .65; margin-right: .6em; }
.notes__link { margin-top: 26px; font-weight: 800; }
.notes__link a { text-decoration: none; border-bottom: 2px solid #f0b95a; padding-bottom: 3px; }

/* ───────── 6 この頁について ───────── */
.about { padding: clamp(80px, 11vw, 150px) 0; }
.about h2 { font-size: clamp(25px, 2.75vw, 38px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about__main > p { margin-top: 1.1em; max-width: 36em; }
.req { margin: 1.6em 0; padding: 1.2em 1.5em; background: rgba(255, 255, 255, .72); border-left: 4px solid var(--red); border-radius: 0 18px 18px 0; font-size: 14.5px; line-height: 1.85; box-shadow: 0 18px 40px -30px rgba(90, 30, 20, .5); }
.req p { padding: .25em 0; }
.req p + p { border-top: 1px dashed var(--line); }
.made { font-size: 19px; }
.made b { color: var(--red-d); }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em !important; }
.about__how h3 { font-size: 20px; font-weight: 800; margin-bottom: .8em; letter-spacing: .06em; }
.how { counter-reset: h; display: grid; gap: 4px; }
.how li { counter-increment: h; position: relative; padding: .9em 0 .9em 3em; border-top: 1px solid var(--line); }
.how li::before { content: counter(h, decimal-leading-zero); position: absolute; left: 0; top: 1.05em; font-family: var(--ff-mono); font-size: 13px; color: var(--red); }
.how b { display: block; font-size: 16px; font-weight: 800; }
.how span { display: block; font-size: 14.5px; line-height: 1.8; color: var(--ink2); }
.about__note { margin-top: 1.4em; font-size: 12.5px; color: var(--ink2); line-height: 1.8; }

/* ───────── 終わり ───────── */
.foot { background: linear-gradient(180deg, #5c1325 0, #310a16 100%); color: var(--cream); padding: clamp(70px, 9vw, 120px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.foot__big { font-size: clamp(24px, 4vw, 44px); font-weight: 800; line-height: 1.4; text-wrap: balance; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 2em 0; }
.foot__links a { display: inline-block; text-decoration: none; font-weight: 800; padding: .6em 1.4em; border: 1.5px solid rgba(246, 239, 230, .6); border-radius: 999px; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.foot__links a:hover { background: var(--cream); color: var(--red-d); transform: translateY(-2px); }
.foot__links small { font-weight: 400; opacity: .75; margin-left: .3em; }
.foot__small { font-size: 12.5px; letter-spacing: .08em; opacity: .65; }

/* ───────── スマホ ───────── */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .ai__grid, .about__grid { grid-template-columns: 1fr; }
  .tsuzu { grid-template-columns: 1fr; }
  .tsuzu__shelf { display: none; }
  .shiori { grid-template-columns: 1fr; justify-items: center; }
  .shiori__phone { width: min(260px, 70%); }
  .shiori__side { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc { display: none; }
  .hud { top: auto; bottom: auto; width: 150px; font-size: 10.5px; top: 68px; right: 12px; }
  .hud dl { display: none; }
  .hud__title { margin-bottom: 0; }
  .beats { bottom: clamp(48px, 9vh, 90px); }
  .feedhint { display: none; }
  .beats--top { top: 76px; }
  .tsuzu__words { right: 24%; }
}
@media (max-width: 520px) {
  .notes h2 { font-size: 5.7vw; }
  .hero__name { margin-left: -.02em; }
  .hero__copy { top: clamp(72px, 12vh, 130px); }
  .hero__cue { font-size: 12px; }
  .card { padding: 18px; border-radius: 22px; }
  .ai__grid { gap: 8px; }
  .beat h2 { font-size: 24px; }
}

/* ───────── 動きを減らす設定 ───────── */
.is-reduced .story { height: auto; }
.is-reduced .story__stage { position: relative; height: auto; min-height: 100vh; padding: 120px 0 60px; }
.is-reduced .beats { position: relative; left: 0; bottom: auto; top: auto; margin: 0 auto; padding: 0 20px; }
.is-reduced .beat { position: relative; opacity: 1 !important; transform: none !important; margin-bottom: 36px; }
.is-reduced .hud { display: none; }
.is-reduced .stage__vignette { background: rgba(4, 5, 8, .72); }
.is-reduced .beat { text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .drop { animation: none; opacity: 1; transform: none; }
  .hero__cue.rise { transform: translateX(-50%); }
  .komorebi, .tilt__img, .kuru__blobs i, .hero__cue i { animation: none; }
  .chat__b { opacity: 1; transform: none; }
}
