/* セクションA（#why 共感→書き換え／#craft つくり＝紙色の帯／#day 一日の流れ）。持ち主=セクションA
   トークン以外に足した値（理由つき）:
   --a-brass-ink #7a5a2c … 紙色の上の真鍮文字。--brass-lo は紙色で 3.49:1 しかなく AA（4.5）に届かないため、同じ色相で暗くした（5.28:1）
   スクリム … 夜の写真の上の文字用。--ink と同じ色(11,9,7)の透明度違いだけ
   通知の光 rgba(170,196,236) … #why だけの青白い光。スマホ画面の光は冷たい色なので、真鍮（暖色）と混ぜずに「通知」と分かる色にした（透明度16%以下・面積は小さく） */
#why, #craft, #day { --a-brass-ink: #7a5a2c; }
/* 1行で済む見出しの空の行を消す（copy-schema の約束） */
#why .ln:has(>span:empty), #craft .ln:has(>span:empty), #day .ln:has(>span:empty) { display: none; }
/* 長い英数字（キー名の仮置き等）でも横にはみ出さない */
#why, #craft, #day { overflow-wrap: anywhere; }

/* 世界の小道具③ 真鍮の軸ピン（小さな円＋点） */
.a-pin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--brass); flex: none;
  background: radial-gradient(circle, var(--brass) 0 1.6px, transparent 2.2px); vertical-align: middle; }
.sec--paper .a-pin { border-color: var(--a-brass-ink); background: radial-gradient(circle, var(--a-brass-ink) 0 1.6px, transparent 2.2px); }

/* ───────── #why ───────── */
.why { padding-bottom: 0; overflow: hidden; }
.why__pain { position: relative; }
.why__h { position: relative; margin-top: 28px; word-break: auto-phrase; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.45rem, 6.2vw, 4rem); line-height: 1.5; letter-spacing: .05em; text-wrap: balance; }
.why__h .ln + .ln > span { color: var(--muted); }

/* 通知の弱い光：暗い部屋でスマホの画面がふっと灯る——「手が伸びる瞬間」を言葉でなく光で思い出させる（控えめ・9秒に1回・opacity だけ） */
.why__glow { position: absolute; z-index: -1; pointer-events: none; right: 4%; top: -6%; width: min(46vw, 520px); aspect-ratio: 1; }
.why__glow > span { position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(170, 196, 236, .16), rgba(170, 196, 236, .05) 55%, transparent 72%); }
.why__glow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 56px; margin: -28px 0 0 -15px; border-radius: 7px; opacity: 0;
  border: 1px solid rgba(200, 216, 240, .28); box-shadow: 0 0 40px 6px rgba(170, 196, 236, .12); }
/* 光は3回で止める（5秒超の自動繰り返しを避ける＝WCAG 2.2.2。ヒーローの光沢を回数で止めた方針とそろえる）。画面外では is-paused で止まるので、3回は見ている間に数える */
.why.is-live .why__glow > span, .why.is-live .why__glow::after { animation: why-ping 9s var(--ease-fn) 1.2s 3 both; }
.why.is-paused .why__glow > span, .why.is-paused .why__glow::after { animation-play-state: paused; }
@keyframes why-ping { 0%, 100% { opacity: 0 } 6% { opacity: 1 } 22% { opacity: .85 } 40% { opacity: 0 } }

.why__ask { margin-top: clamp(40px, 6vw, 72px); max-width: 640px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
.why__ask .a-pin { transform: translateY(-2px); }
.why__q { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--bone); font-weight: 500; }
.why__choices, .why__answer-live { grid-column: 2; }
.why__choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.why__choice { min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--bone); background: rgba(255, 255, 255, .02);
  font-size: .95rem; letter-spacing: .06em; transition: border-color var(--dur-s) var(--ease-fn), background var(--dur-s) var(--ease-fn), color var(--dur-s) var(--ease-fn); }
.why__choice:hover { border-color: var(--brass); color: var(--brass-hi); }
.why__choice[aria-pressed="true"] { border-color: var(--brass); background: rgba(201, 164, 104, .14); color: var(--brass-hi); }
.why__answer { margin-top: 18px; color: var(--muted); font-family: var(--f-display); font-size: clamp(1.02rem, 1.6vw, 1.18rem); letter-spacing: .05em;
  transition: opacity var(--dur-m) var(--ease-sig), transform var(--dur-m) var(--ease-sig); }
/* JSがある時だけ、選ぶまで答えを隠す（JSが無ければ最初から見える） */
.js .why__answer { opacity: 0; transform: translateY(8px); visibility: hidden; }
.js .why__answer.is-on { opacity: 1; transform: none; visibility: visible; }

/* 思い込みの書き換え：夜の写真を全幅で敷く。文字の下だけ左から（スマホは下から）方向のあるスクリム */
.why__shift { position: relative; margin-top: clamp(40px, 6vw, 80px); min-height: clamp(520px, 56.25vw, 860px); display: flex; align-items: center; }
.why__photo { position: absolute; inset: 0; overflow: hidden; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.why__scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, 0) 16%, rgba(11, 9, 7, 0) 84%, var(--ink) 100%),
    linear-gradient(90deg, rgba(11, 9, 7, .82) 0%, rgba(11, 9, 7, .6) 30%, rgba(11, 9, 7, 0) 58%); }
.why__shift-text { position: relative; }
.why__shift-h { word-break: auto-phrase; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.45; letter-spacing: .05em; max-width: 12em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.why__shift-h .ln:first-child > span { color: var(--muted); }
.why__shift-body { margin-top: 22px; max-width: 20em; color: var(--bone); font-size: clamp(.98rem, 1.45vw, 1.1rem); line-height: 2; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

@media (max-width: 760px) {
  .why__glow { right: -18%; top: -4%; width: 78vw; }
  .why__ask { grid-template-columns: 1fr; }
  .why__ask .a-pin { margin-bottom: 10px; }
  .why__choices, .why__answer-live { grid-column: 1; }
  .why__choice { flex: 1 1 auto; }
  /* スマホは写真を上、文字を下に。写真の箱が見える位置に寄せ、スクリムは下からだけ */
  .why__shift { min-height: 0; display: block; }
  .why__photo { position: relative; inset: auto; aspect-ratio: 4 / 3.4; }
  .why__photo img { object-position: 70% 50%; }
  .why__scrim { bottom: auto; height: calc((100vw) * 3.4 / 4);
    background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, 0) 14%, rgba(11, 9, 7, 0) 62%, var(--ink) 100%); }
  .why__shift-text { margin-top: -64px; padding-bottom: 8px; }
  /* 「開けられるから、開く。」が「開く。」だけ次の行に落ちていた（390px）→ 1行11字が320pxでも入る大きさに */
  .why__shift-h { font-size: clamp(1.45rem, 7vw, 1.8rem); }
}

/* ───────── #craft（紙色の帯はここだけ） ───────── */
#craft .eyebrow { color: var(--a-brass-ink); }
.craft__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.craft__detail { aspect-ratio: 6 / 5; }
.craft__detail img { object-position: 50% 0%; }
/* 真鍮の質感の元画像は左端に白い背景が入っている→右に寄せて切る */
.craft__tex--brass img { transform: scale(1.2); transform-origin: 85% 50%; }
.craft__tile:hover .craft__tex--brass img { transform: scale(1.3); }
.craft__grid { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.craft__tex { aspect-ratio: 4 / 5; }
/* ホバーで質感がゆっくり寄る（手に取って目を近づける所作。transform だけ） */
.craft__tex img { transition: transform var(--dur-l) var(--ease-sig); transform-origin: 50% 55%; }
.craft__tile:hover .craft__tex img { transform: scale(1.08); }
.craft__name { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.14rem; letter-spacing: .08em; }
.craft__en { margin-top: 4px; padding-left: 21px; font-family: var(--f-latin); font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; color: var(--a-brass-ink); }
.craft__body { margin-top: 10px; font-size: .9rem; line-height: 1.85; color: var(--paper-muted); }
@media (max-width: 900px) {
  .craft__head { grid-template-columns: 1fr; }
  .craft__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .craft__tex { aspect-ratio: 1; }
  .craft__detail { aspect-ratio: 4 / 3; }
}
/* スマホは #craft を短く（監査 r1: 約−300px）。PC は上のまま。
   ・砂時計の寄りは横長の帯にして、真鍮の軸と柱に寄せる（#how の写真と同じ構図に見せない・高さを約4割に）
   ・質感タイルは 4:3、見出し〜本文の間を詰める */
@media (max-width: 760px) {
  .craft__head { gap: 20px; }
  .craft__detail { aspect-ratio: 16 / 7; }
  .craft__detail img { object-position: 50% 42%; transform: scale(1.18); transform-origin: 50% 46%; }
  .craft__grid { margin-top: 32px; row-gap: 24px; column-gap: 14px; }
  .craft__tex { aspect-ratio: 4 / 3; }
  .craft__name { margin-top: 12px; font-size: 1.05rem; gap: 8px; }
  .craft__en { margin-top: 2px; padding-left: 19px; font-size: .66rem; letter-spacing: .26em; }
  .craft__body { margin-top: 6px; font-size: .86rem; line-height: 1.7; }
}

/* ───────── #day ───────── */
.day__head { max-width: 40em; }
.day__unit { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; color: var(--brass-hi); }
.day__rail { margin-top: clamp(44px, 6vw, 72px); }
.day__rail:focus-visible { outline-offset: 6px; }
.day__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); padding-top: 34px; }
/* 世界の小道具① 3枚をつなぐ細い真鍮の線＋25分ごとの目盛り（線の上に一定間隔の短い縦線） */
.day__list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(201, 164, 104, .55) 0 1px, transparent 1px 28px) 0 0 / 100% 8px no-repeat; }
.day__slot { position: relative; }
/* 時刻の位置に真鍮の点（線の上の刻み） */
.day__slot::before { content: ""; position: absolute; left: 0; top: -30px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--ink); }
.day__time { font-variant-numeric: lining-nums proportional-nums; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--brass-hi); letter-spacing: .02em; }
.day__label { margin-top: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; }
.day__photo { margin-top: 18px; aspect-ratio: 4 / 3; }
.day__caption { margin-top: 16px; font-size: .92rem; line-height: 1.85; color: var(--muted); }
.day__per { margin-top: clamp(32px, 4vw, 48px); }

@media (max-width: 760px) {
  /* 横スクロールはこの枠の中だけ：左右の余白分だけ画面端まで広げ、次の1枚が見切れて「横に続く」と分かるようにする */
  .day__rail { margin-inline: calc(var(--gutter) * -1); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .day__rail::-webkit-scrollbar { display: none; }
  .day__list { grid-template-columns: repeat(3, 76vw); width: max-content; padding-inline: var(--gutter); gap: 16px; }
  .day__list::before { left: var(--gutter); right: var(--gutter); }
  .day__slot { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .why__glow > span, .why__glow::after { animation: none !important; opacity: 0 !important; }
  .why__glow > span { opacity: .6 !important; }
  .craft__tex img, .why__answer { transition: none !important; }
  .craft__tile:hover .craft__tex img { transform: none; }
  .craft__tile:hover .craft__tex--brass img { transform: scale(1.2); }
}
