/* サイト全体の見た目（2026-11-12 作り直し）。
   参考：docs/design/anokoro-002.jpg（写真を全面に敷いたヒーロー、白い明朝の大見出し、すりガラスの箱、金の線の入った白いカード）。
   ヒーローの写真は site/img/hero/。年ページは5年ごとの写真、トップは top-img-001・002 を js/hero.js が順に切り替える。 */
:root {
  --bg: #f4f3ef;          /* ページの地：わずかに暖かい白 */
  --card: #ffffff;
  --ink: #1e2433;         /* 文字：紺がかった墨 */
  --soft: #646a74;
  --rule: #e5e1d6;
  --navy: #182b56;        /* ボタン・強調 */
  --gold: #c6a05a;        /* カードの上の線・節目 */
  --gold-soft: #f7efdc;
  --sky: #b0d5e5;
  --amber: #e29a12;
  /* ジャンルごとの色（年ページの棚の見分け） */
  --c-news: #0e5b6f;
  --c-song: #8e3236;
  --c-drama: #3b6d88;
  --c-movie: #a8690a;
  --c-book: #55683e;
  --c-trend: #77506c;
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ui: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --shadow: 0 12px 34px rgba(24, 34, 60, .10);
  --head-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: hidden; container-type: inline-size; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.85; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- ヘッダー：写真の上ではすりガラス、写真のないページでは白 ---- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229, 225, 214, .7); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
/* ロゴの印：紺の地にカレンダーと「？」（元の絵は docs/design/logo-calendar.png、表示用に縮小した img/logo-64.png） */
.brand i { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--navy) url("../img/logo-64.png") center / cover no-repeat; }
.top nav { display: flex; gap: 8px; }
.pill { font-family: var(--ui); font-weight: 700; font-size: 13.5px; text-decoration: none; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(30, 36, 51, .16); background: rgba(255, 255, 255, .72); cursor: pointer; color: var(--ink); white-space: nowrap; }
.pill:hover { border-color: var(--ink); background: #fff; }
/* 広告の表示（仕様書 7-4）：ヘッダーのすぐ下の細い帯。写真のあるページでは写真の上に重ねる */
.prnote { position: relative; z-index: 2; margin: 0; padding: 0; background: rgba(255, 255, 255, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(229, 225, 214, .6); font-family: var(--ui); font-weight: 500; font-size: 12px; line-height: 22px; color: var(--ink); text-align: center; }
.prnote .wrap { display: block; }

/* ---- ヒーロー：写真を画面いっぱいに。左に文字、写真の人物は右側 ---- */
/* 画面いっぱいの帯。100vw だとスクロールバーの幅だけはみ出すので、body の幅（cqw）を使う */
.hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); width: 100cqw; margin-left: calc(50% - 50cqw); margin-top: calc(var(--head-h) * -1); color: #fff; isolation: isolate; overflow: hidden; background: #2b2f3a; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo picture { display: block; width: 100%; height: 100%; }
/* トップ：写真を重ねておき、.on の1枚だけ見せる。ふわっと切り替える */
.hero-photo.slides picture { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo.slides picture.on { opacity: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; display: block; }
/* 文字を読みやすくする影：左側と下側を少し暗く */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 20, 38, .62) 0%, rgba(14, 20, 38, .40) 34%, rgba(14, 20, 38, .08) 58%, rgba(14, 20, 38, 0) 72%),
    linear-gradient(180deg, rgba(14, 20, 38, .18) 0%, rgba(14, 20, 38, 0) 22%, rgba(14, 20, 38, 0) 70%, rgba(14, 20, 38, .30) 100%); }
.hero-in { position: relative; max-width: 1120px; min-height: min(86vh, 760px); margin: 0 auto; padding: calc(var(--head-h) + 64px) 20px 150px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-left { max-width: 620px; text-shadow: 0 2px 18px rgba(10, 14, 28, .45); }
.eyebrow { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .08em; opacity: .95; }
.site-title { margin: 14px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.18; letter-spacing: .02em; }
.site-title span { display: inline-block; }
.site-sub { margin: 12px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.3vw, 27px); line-height: 1.5; letter-spacing: .06em; word-break: auto-phrase; }
.hero-lead { margin: 18px 0 0; font-family: var(--ui); font-weight: 500; font-size: 16.5px; line-height: 2; max-width: 31em; }

/* すりガラスの箱 */
.glass { color: var(--ink); background: rgba(255, 255, 255, .62); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border: 1px solid rgba(255, 255, 255, .6); border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 14, 28, .16); }
/* 「年ごとに振り返れること」：箱にはしない（下の入力カードと見分けるため）。
   写真の上に、金の細い線で区切った白い文字の一覧として置く */
.can { margin-top: 26px; padding: 0 0 0 16px; border-left: 2px solid var(--gold); }
.can h2 { margin: 0 0 6px; font-family: var(--ui); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: #f0dcb0; }
.can ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 26px; }
.can li { font-family: var(--ui); font-weight: 700; font-size: 15px; line-height: 1.85; }
.can li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--gold); vertical-align: middle; }


/* ---- トップ：ヒーローに重なる入力カード ---- */
.start { position: relative; z-index: 2; width: min(680px, 100%); margin: -96px auto 0; padding: 22px 28px 22px; border-radius: 20px; background: rgba(255, 255, 255, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 4px solid var(--gold); box-shadow: 0 18px 44px rgba(24, 34, 60, .16); }
.start-h { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .04em; }
.start-h svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.start-q { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.7; color: var(--soft); }
.start-q em { font-style: normal; color: var(--c-song); }
.start .start-q:has(+ #marks) { color: var(--ink); font-size: 19px; }
.start .birth { margin-top: 12px; }
.start .birth label { font-weight: 500; font-size: 13px; color: var(--soft); }
.start .birth select:first-of-type { flex: 1 1 200px; }
.start-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.start-act .go { display: inline-flex; align-items: center; text-decoration: none; }
/* 生年月の表示と、その変更・削除ボタン（トップ・年ページ共通）。「年別に見る」とは離して置く */
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 22px; }
.who .meta { flex-basis: 100%; }
.marks-h { margin: 12px 0 0; font-family: var(--ui); font-weight: 700; font-size: 13px; color: var(--soft); }
.marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.marks a { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--ui); font-weight: 700; font-size: 13px; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--gold-soft); border: 1px solid #ead9b4; }
.marks a small { font-weight: 500; color: var(--soft); }
.marks a:hover { border-color: var(--gold); }

/* 入力欄（トップ・年ページ共通） */
.birth { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.birth label { font-family: var(--ui); font-weight: 700; font-size: 14px; width: 100%; }
select { font: 500 16px var(--ui); min-height: 50px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); }
.go { font: 700 16px var(--ui); min-height: 50px; padding: 6px 26px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; cursor: pointer; letter-spacing: .04em; }
.go:hover { filter: brightness(1.15); }
.privacy { font-family: var(--ui); font-size: 12.5px; color: var(--soft); margin: 4px 0 0; width: 100%; }

/* ---- トップ：見出しつきの節 ---- */
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 14px; }
.sec-h h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .06em; }
.sec-h p { margin: 0; font-family: var(--ui); font-size: 13.5px; color: var(--soft); }

/* 年表：横にスライドする年表（js/timeline.js）。札1枚の見た目は .years、並べ方は .tl-* */
.nenpyo { margin-top: 48px; }
.years li > a, .years li > span { position: relative; display: flex; flex-direction: column; gap: 1px; min-height: 86px; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; text-decoration: none; scroll-margin-top: 90px; }
.years li > a:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(24, 34, 60, .10); }
.years b { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.years small { font-family: var(--ui); font-size: 11px; color: var(--soft); }
.years .lab { font-family: var(--ui); font-weight: 700; font-size: 13.5px; color: var(--navy); margin-top: auto; }
.years .lab:empty { display: none; }
.years i { font-style: normal; font-family: var(--ui); font-size: 11px; color: var(--soft); margin-top: auto; }
.years .lab:not(:empty) + i { margin-top: 0; }
.years li.open > a { background: var(--gold-soft); border-color: #e2cc9c; }
.years li.open i { color: #8a6418; font-weight: 700; }
.years li.soon > span { background: #fafaf8; }
.years li.soon b { color: #9a9ea6; font-size: 19px; }
.years li.ms > a, .years li.ms > span { border: 2px solid var(--gold); }
.years .msname { order: -1; align-self: flex-start; max-width: 100%; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ui); font-weight: 700; font-size: 10px; color: #fff; background: var(--gold); border-radius: 999px; padding: 0 7px; }
.years li.before .lab { color: var(--soft); font-weight: 500; }
.years li.now > a, .years li.now > span { outline: 2px solid var(--navy); outline-offset: -2px; }

/* 年代へ飛ぶボタン */
.tl-jump { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tl-jump::-webkit-scrollbar { display: none; }
.tl-jump a { flex: none; font-family: var(--display); font-weight: 800; font-size: 17px; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); }
.tl-jump a small { font-family: var(--ui); font-size: 11px; font-weight: 700; margin-left: 1px; }
.tl-jump a:hover { border-color: var(--gold); }
.tl-jump a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 舞台：後ろに時代の写真（5年ごと）、その上に年表と、真ん中の年の紹介 */
.tl-stage { position: relative; overflow: hidden; border-radius: 22px; background: #1b2440; box-shadow: var(--shadow); padding: 6px 0 24px; }
.tl-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.tl-bg img.on { opacity: 1; }
.tl-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 38, .55) 0%, rgba(14, 20, 38, .35) 45%, rgba(14, 20, 38, .78) 100%); }
.tl-track { position: relative; z-index: 1; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 56px calc(50% - 68px) 16px; outline: none; }
.tl-track::-webkit-scrollbar { display: none; }
.tl.js .tl-track { cursor: grab; }
.tl-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.tl-track:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.tl-years { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.tl-years li { flex: 0 0 136px; padding: 0 6px; scroll-snap-align: center; }
/* 札は全部同じ高さ（節目の名前が付いても帯の位置がずれない） */
.tl-years li > a, .tl-years li > span { height: 138px; min-height: 0; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, border-color .35s ease; transform-origin: 50% 100%; }
.tl-years li.soon > span { background: rgba(250, 250, 248, .82); }
.tl-years li > a > *, .tl-years li > span > * { flex-shrink: 0; }
/* 真ん中の年：大きく、紺の地に白い字 */
.tl-years li.center > a, .tl-years li.center > span { transform: scale(1.32); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); z-index: 2; background: var(--navy); border-color: var(--gold); }
.tl-years li.center b, .tl-years li.center .lab { color: #fff; }
.tl-years li.center small { color: rgba(255, 255, 255, .75); }
.tl-years li.center i { color: #f0cf8a; }
.tl-years li.soon.center > span { background: #4a5570; }

/* 年表の線。生年月があれば、人生の段階ごとの色の帯になる */
.tl-years .band { display: block; height: 4px; margin: 16px -6px 0; background: rgba(255, 255, 255, .38); overflow: hidden; white-space: nowrap; font-family: var(--ui); font-weight: 700; font-size: 11.5px; line-height: 22px; color: #fff; padding-left: 10px; }
.tl.has-bands .band { height: 22px; background: rgba(255, 255, 255, .16); }
.band.st-pre { background: #7a8fa6 !important; }
.band.st-elem { background: #d0893a !important; }
.band.st-jh { background: #3f8a6e !important; }
.band.st-hs { background: #3b6d9e !important; }
.band.st-univ { background: #8a5a9a !important; }
.band.st-work { background: #a8484c !important; }
.band.st-adult { background: #4d5568 !important; }

/* 左右の矢印（JavaScript があるときだけ） */
.tl-arrow { display: none; position: absolute; z-index: 3; top: 282px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.tl.js .tl-arrow { display: block; }
.tl-arrow.prev { left: 12px; }
.tl-arrow.next { right: 12px; }
.tl-arrow:hover { background: #fff; }

/* 真ん中の年の紹介 */
.tl-info { position: relative; z-index: 1; text-align: center; color: #fff; padding: 8px 20px 0; min-height: 132px; }
.tl-year { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 12px; }
.tl-year b { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.tl-lab { font-family: var(--ui); font-weight: 700; font-size: 14px; background: var(--gold); color: #fff; border-radius: 999px; padding: 2px 12px; }
.tl-facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-family: var(--body); font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tl-facts small { font-family: var(--ui); font-size: 12.5px; opacity: .85; margin-left: 8px; }
.tl-facts .k { display: inline-block; font-family: var(--ui); font-weight: 700; font-size: 12.5px; border-radius: 4px; padding: 1px 7px; margin-right: 8px; vertical-align: 2px; text-shadow: none; }
.tl-facts .k.song { background: var(--c-song); }
.tl-facts .k.trend { background: var(--c-trend); }
.tl-soon { margin: 8px 0 0; font-family: var(--ui); font-size: 14px; opacity: .85; }
.tl-go { display: inline-block; margin-top: 12px; font-family: var(--ui); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--navy); background: #fff; border-radius: 999px; padding: 8px 20px; }
.tl-go:hover { background: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) {
  .tl-bg img, .tl-years li > a, .tl-years li > span { transition: none; }
}

/* 3つの約束 */
/* トップ：作り手の気持ち（年表と3つの約束のあいだ） */
.yorimichi { margin: 56px auto 0; max-width: 34em; }
.yorimichi h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .06em; text-align: center; }
.yorimichi p { margin: 0 0 8px; font-family: var(--ui); font-size: 16px; line-height: 2; }
@media (max-width: 640px) { .yorimichi h2 { font-size: 22px; } }

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 48px 0 52px; }
.promise div { padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); }
.promise b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.promise span { display: block; font-family: var(--ui); font-size: 13.5px; line-height: 1.8; color: var(--soft); }
.promise a { color: var(--navy); font-weight: 700; }

/* ---- 年ページ：ヒーロー ---- */
.yearpage .hero-in { min-height: min(80vh, 700px); padding-bottom: 170px; }
.year { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(96px, 16vw, 168px); line-height: .95; letter-spacing: .01em; }
.summary { margin: 18px 0 0; font-family: var(--ui); font-weight: 500; font-size: 17px; line-height: 2.05; max-width: 31em; }
.you { margin-top: 22px; display: inline-block; max-width: 100%; padding: 13px 20px; border-radius: 16px; color: var(--ink); text-shadow: none; background: rgba(255, 255, 255, .80); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .6); }
.you p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.6; }
.you em { font-style: normal; color: var(--c-song); }
.you small { display: block; font-family: var(--ui); font-size: 13px; color: var(--soft); margin-top: 2px; }
/* 目次：ヒーローの下のほうに、すりガラスの丸ボタンで */
.jump { position: absolute; left: 0; right: 0; bottom: 104px; max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { font-family: var(--ui); font-weight: 700; font-size: 13.5px; text-decoration: none; padding: 7px 15px; border-radius: 999px; color: #fff; background: rgba(14, 20, 38, .32); border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.jump a:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }

/* 共通パネル（年ページの各棚）：白いカード＋上の色線 */
.panel { margin-top: 22px; background: var(--card); border-radius: 20px; padding: 26px 28px 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--g, var(--gold)); }
.yearpage .panel.me { margin-top: -84px; z-index: 2; }
.phead { display: flex; align-items: center; gap: 12px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--g) 12%, #fff); color: var(--g); flex: none; }
.icon svg { width: 22px; height: 22px; }
.phead h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: .05em; }
.psub { margin: 4px 0 18px; font-family: var(--ui); font-size: 13.5px; color: var(--soft); }
.psub b { color: var(--g); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--rule); border-radius: 16px; padding: 18px; background: #fff; }
.card:hover { border-color: color-mix(in srgb, var(--g) 45%, var(--rule)); }
.ch { display: flex; gap: 12px; align-items: flex-start; }
.badge { flex: none; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-family: var(--ui); font-weight: 700; font-size: 12px; color: var(--g); background: color-mix(in srgb, var(--g) 11%, #fff); }
.card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.5; }
.meta { font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.card p { margin: 0; font-size: 15px; line-height: 1.95; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.b { font-family: var(--ui); font-weight: 700; font-size: 13px; text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.b.buy { background: var(--g); color: #fff; }
.b.buy:hover { filter: brightness(1.1); }
.b.sub { border: 1px solid var(--rule); color: var(--ink); }
.b.play { border: 1px solid var(--g); color: var(--g); }
.b small { font-weight: 500; font-size: 10.5px; opacity: .8; margin-left: 3px; }
button.b { font-family: var(--ui); cursor: pointer; background: transparent; }
.card .src { font-family: var(--ui); font-size: 11.5px; color: var(--soft); margin-top: auto; padding-top: 4px; }
.card .src a { color: var(--soft); }
/* お店の検索リンク（Amazon・楽天）：出典の下に右寄せの1行。左の出典と離して押し間違えを防ぐ。押せる範囲を少し広げる */
.card .shop { font-family: var(--ui); font-size: 11.5px; color: var(--soft); text-align: right; margin-top: -4px; }
.card .shop a { color: var(--soft); display: inline-block; padding: 6px 0 2px 14px; }
/* 曲の「聴く」：開いたカードは横いっぱいに広げ、16:9 の動画を入れる */
.card.playing { grid-column: 1 / -1; border-color: var(--g); }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }

.news { --g: var(--c-news); } .song { --g: var(--c-song); } .drama { --g: var(--c-drama); }
.movie { --g: var(--c-movie); } .book { --g: var(--c-book); } .trend { --g: var(--c-trend); }
.me { --g: var(--gold); } .memo { --g: var(--navy); } .rec { --g: var(--c-song); }

/* あなたの○年 */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; background: #fff; }
.tile span { display: block; font-family: var(--ui); font-size: 12px; color: var(--soft); }
.tile b { font-family: var(--display); font-size: 21px; }
.msg { margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: var(--gold-soft); font-family: var(--display); font-weight: 700; font-size: 16.5px; }

/* 思い出 */
.notebook { margin-top: 4px; border-radius: 14px; padding: 18px 22px; background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(24, 43, 86, .12) 33px 34px), #fbf8f0; border: 1px solid var(--rule); }
.notebook .c { font-family: var(--round); font-weight: 500; font-size: 16px; line-height: 34px; margin-bottom: 14px; }
.notebook .n { font-family: var(--ui); font-size: 12px; color: var(--c-song); }
.tiny { font-family: var(--ui); font-size: 12px; color: var(--soft); margin: 8px 0 0; }
.notice { font-family: var(--ui); font-size: 13px; background: #eef2f7; border-radius: 12px; padding: 10px 14px; }
/* 思い出：掲載された投稿と書き込み欄（仕様書 第6章）。年配の方にも読みやすく、文字と欄を大きめに */
.memo-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.memo-filter .pill { font-size: 15px; padding: 9px 18px; }
.memo-filter .pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.memo-post + .memo-post { margin-top: 6px; }
.notebook .c { white-space: pre-line; }
.notebook .n { font-size: 14.5px; line-height: 34px; margin: 0; }
.notebook .c { margin-top: 0; }
/* ほかの年の思い出（js/memo.js の showOthers）：小さな文字だけで控えめに */
.memo-others { margin: 10px 2px 0; font-family: var(--ui); font-size: 13px; color: var(--soft); }
.mo-years { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin: 0; }
.mo-h { font-weight: 700; color: var(--ink); margin-right: 2px; }
.mo-years a { color: var(--ink); padding: 3px 0; }
.mo-more { font: inherit; color: var(--soft); background: none; border: 0; padding: 3px 0; cursor: pointer; text-decoration: underline; }
.mo-more:hover { color: var(--ink); }
.mo-new { list-style: none; margin: 4px 0 0; padding: 0; }
.mo-new li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mo-new a { color: var(--soft); text-decoration: none; padding: 3px 0; display: inline; }
.mo-new a:hover { color: var(--ink); text-decoration: underline; }
.mo-new b { font-weight: 700; color: var(--ink); margin-right: 8px; }
.memo-empty { font-family: var(--ui); font-size: 15px; line-height: 34px; color: var(--soft); margin: 0; }
.memo-form { margin-top: 22px; padding: 22px 24px 24px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.memo-form h3 { margin: 0 0 4px; font-family: var(--display); font-size: 20px; }
.memo-form label { display: block; margin-top: 18px; font-family: var(--ui); font-weight: 700; font-size: 17px; }
.memo-help { margin: 2px 0 8px; font-family: var(--ui); font-size: 14px; color: var(--soft); line-height: 1.6; }
.memo-form select, .memo-form input, .memo-form textarea { width: 100%; font: 500 18px var(--ui); color: var(--ink); background: #fff; border: 1px solid #b9b4a6; border-radius: 12px; padding: 10px 14px; }
.memo-form select { min-height: 54px; }
.memo-form textarea { line-height: 1.7; resize: vertical; min-height: 150px; }
.memo-form input:focus, .memo-form select:focus, .memo-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.memo-err { margin: 6px 0 0; min-height: 0; font-family: var(--ui); font-weight: 700; font-size: 15px; color: #b3261e; }
.memo-err:empty { display: none; }
.memo-err.gone { visibility: hidden; }
.memo-form ::placeholder { color: #a9a49a; }
.memo-terms { margin: 22px 0 0; font-family: var(--ui); font-size: 14px; color: var(--soft); line-height: 1.7; }
.memo-terms a { color: inherit; text-decoration: underline; }
.memo-terms + .memo-send { margin-top: 8px; }
.memo-send { display: block; width: 100%; margin-top: 22px; min-height: 60px; font-size: 19px; }
.memo-note { margin: 12px 0 0; font-family: var(--ui); font-size: 14px; color: var(--soft); line-height: 1.7; }
.memo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.memo-done { margin-top: 22px; padding: 28px 24px; border-radius: 16px; background: var(--gold-soft); text-align: center; font-family: var(--ui); font-size: 16px; }
.memo-done:focus { outline: none; }
.memo-done-t { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.memo-done .pill { margin-top: 10px; font-size: 15px; padding: 9px 20px; }

/* 前後の年・出典 */
/* シェアボタン（年ページは思い出の下、トップは年表の下） */
.share { margin: 28px auto 0; max-width: 560px; padding: 16px 18px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); text-align: center; font-family: var(--ui); }
.share h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .06em; }
.share-lead { margin: 2px 0 10px; font-size: 12.5px; line-height: 1.7; color: var(--soft); }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-b { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 112px; padding: 4px 14px; border-radius: 999px; font: 700 13px var(--ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; letter-spacing: .03em; }
.share-line { background: #06c755; color: #fff; }
.share-x { background: #111; color: #fff; }
.share-copy, .share-native { background: #fff; color: var(--ink); border-color: rgba(30, 36, 51, .22); }
.share-b:hover { filter: brightness(1.08); }
.share-copy:hover, .share-native:hover { border-color: var(--ink); filter: none; }
.share-b[hidden] { display: none; }
.share-msg { min-height: 1.5em; margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--navy); word-break: break-all; }
@media (max-width: 520px) {
  .share { padding: 14px 14px 8px; }
  .share-b { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 4px 8px; }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 40px; }
.pager a, .pager span { border-radius: 16px; padding: 18px 22px; font-family: var(--display); font-weight: 700; font-size: 21px; text-decoration: none; }
.pager a { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.pager a:hover { border-color: var(--gold); }
.pager span { border: 1px dashed var(--rule); color: var(--soft); }
.pager .next { text-align: right; }
.pager small { display: block; font-family: var(--ui); font-weight: 500; font-size: 12.5px; color: var(--soft); }
/* 年ページの下：ほかの年へ直接飛ぶ小さな一覧（build.js の yearList、上のメニューの「年を選ぶ」から飛ぶ、js/year.js で年代を切り替え） */
.yearlist { margin: 0 0 26px; padding: 0 0 18px; border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: 13.5px; color: var(--soft); scroll-margin-top: calc(var(--head-h) + 12px); }
.yl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.yearlist h2 { margin: 0; font-family: var(--ui); font-size: 14px; font-weight: 700; color: var(--ink); }
.yl-decs { display: none; flex-wrap: wrap; gap: 0 12px; }
.yearlist.js .yl-decs { display: flex; }
.yl-dec { font: inherit; color: var(--soft); background: none; border: 0; border-bottom: 2px solid transparent; padding: 4px 0 2px; cursor: pointer; }
.yl-dec:hover { color: var(--ink); }
.yl-dec[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--gold); }
.yl-years { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
.yearlist.js .yl-years { display: none; }
.yearlist.js .yl-years.on { display: flex; }
.yl-lab { font-weight: 700; margin-right: 2px; }
.yearlist.js .yl-lab { display: none; }
.yl-years a, .yl-years .now { display: inline-block; position: relative; padding: 4px 1px; font-size: 14.5px; color: var(--ink); }
.yl-years .now { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sources { font-family: var(--ui); font-size: 12.5px; color: var(--soft); margin: 0 0 30px; }
.sources h2 { font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.sources ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.sources a { color: var(--soft); }

/* ---- フッター ---- */
footer { background: var(--navy); color: #c9d0de; font-family: var(--ui); font-size: 12.5px; padding: 26px 0 36px; }
footer p { margin: 4px 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(201, 208, 222, .25); }
.foot-nav a { color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* ---- 「このサイトについて」「プライバシーポリシー」 ---- */
.doc { max-width: 760px; margin: 22px auto 48px; background: var(--card); border-radius: 20px; border-top: 4px solid var(--gold); padding: 30px 34px 34px; box-shadow: var(--shadow); }
.doc-crumb { margin: 0; font-family: var(--ui); font-size: 12.5px; color: var(--soft); }
.doc-crumb a { color: var(--soft); }
.doc h1 { margin: 6px 0 18px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.5vw, 38px); letter-spacing: .03em; }
.doc-lead { font-size: 16px; }
.doc-sec { margin-top: 26px; }
.doc-sec h2 { margin: 0 0 8px; padding-left: 12px; border-left: 4px solid var(--gold); font-family: var(--display); font-size: 21px; line-height: 1.5; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.95; }
.doc p { margin: 8px 0; }
.doc ul, .doc ol { margin: 8px 0; padding-left: 1.4em; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--navy); }
.doc-box { padding: 12px 16px; border-radius: 12px; background: #eef2f7; font-family: var(--ui); font-size: 14.5px !important; }
.doc-date { font-family: var(--ui); font-size: 13px !important; color: var(--soft); text-align: right; }

/* ---- スマホ ---- */
@media (max-width: 720px) {
  :root { --head-h: 58px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand i { width: 26px; height: 26px; }
  .yearpage .top nav .pill:first-child, .yearpage .top nav .pill:last-child { display: none; }
  .toppage .top nav .pill:last-child { display: none; }
  .pill { padding: 6px 12px; font-size: 12.5px; }
  .hero-photo img { object-position: 74% 50%; }
  .hero::before { background:
    linear-gradient(180deg, rgba(14, 20, 38, .30) 0%, rgba(14, 20, 38, .45) 40%, rgba(14, 20, 38, .55) 72%, rgba(14, 20, 38, .62) 100%); }
  .hero-in { min-height: 0; padding: calc(var(--head-h) + 36px) 16px 132px; }
  .yearpage .hero-in { min-height: 0; }
  .can ul { grid-template-columns: 1fr; }
  .can li { font-size: 14px; }
  .eyebrow { font-size: 16px; }
  .site-title { font-size: clamp(34px, 10vw, 46px); }
  .site-sub { font-size: 17px; }
  .hero-lead { font-size: 15px; }
  .start { margin-top: -84px; padding: 18px 16px; border-radius: 18px; }
  .start-h { font-size: 20px; }
  .start .birth select { flex: 1 1 40%; }
  .start .birth .go { width: 100%; }
  .sec-h h2 { font-size: 24px; }
  .nenpyo { margin-top: 36px; }
  .tl-stage { border-radius: 18px; }
  .tl-years li { flex-basis: 116px; }
  .tl-track { padding-left: calc(50% - 58px); padding-right: calc(50% - 58px); }
  .tl-arrow { width: 36px; height: 36px; font-size: 24px; top: 276px; }
  .tl-arrow.prev { left: 6px; }
  .tl-arrow.next { right: 6px; }
  .tl-year b { font-size: 26px; }
  .tl-facts { flex-direction: column; font-size: 15px; }
  .promise { grid-template-columns: 1fr; }

  .yearpage .hero-in { padding-bottom: 200px; }
  .summary { font-size: 15.5px; line-height: 1.95; }
  .jump { bottom: 100px; padding: 0 16px; gap: 6px; }
  .jump a { font-size: 12.5px; padding: 6px 12px; }
  .yearpage .panel.me { margin-top: -40px; }
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 22px 16px; }
  .sources ul { columns: 1; }
  .yl-dec { padding: 6px 0 3px; }
  .yl-years a, .yl-years .now { padding: 6px 1px; }
  .doc { padding: 22px 18px 26px; border-radius: 16px; }
}


/* ---- 上に戻るボタン（全ページ共通、js/totop.js）：少し下まで読むと右下に出る ---- */
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(24, 34, 60, .25); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; }
.totop.on { opacity: .9; visibility: visible; transform: none; }
.totop:hover { opacity: 1; }
.totop svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .totop { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
