/* Girl's Paradise 記念館
   今風（既定）と「2000年モード」（html[data-mode="retro"]）の2つの見た目を持つ。
   当時の画像は使わず、チェックの背景もロゴも CSS で作っている。 */

:root {
  --bg: #fdf8f9;
  --surface: #ffffff;
  --text: #2b2326;
  --muted: #6f6266;
  --accent: #c0213a;
  --accent-soft: #fbe4ea;
  --line: #eadde1;
  --link: #b0183a;
  --radius: 14px;
  --font: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --logo-font: "Fredoka", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
}

/* 今風の見た目は「くすんだ桜色」（2026-11-08 ユーザー判断「こっちがよい!」）。経緯: 黒に近い暗さは「黒すぎる」、
   明るいピンク（#fdf8f9）は「明るすぎる」、ワインの赤紫は「すこし怪しいコンテンツな感じ」、夜の紺色も試したうえで、
   まぶしさを抑えた桜色に。見る人のライト／ダークの設定には合わせず、誰にも同じ色で見せる。2000年モードは下の色のまま */
:root:not([data-mode="retro"]) {
  color-scheme: light;
  --bg: #efe3e7;
  --surface: #f8f1f3;
  --text: #2b2326;
  --muted: #665a5f;
  --accent: #b3122e;
  --accent-soft: #e6cfd7;
  --line: #dcc6ce;
  --link: #a5143a;
}
:root[data-mode="retro"] { color-scheme: light; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--link); }
a:hover { text-decoration: none; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---- 上の帯 ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
/* メニューが5つになったので、ヘッダーだけ横幅を広げて1行に収める（狭い画面では折り返す） */
.site-header .wrap { max-width: 1000px; }
@media (min-width: 900px) { .site-header .wrap { flex-wrap: nowrap; } }
.brand { font-family: var(--logo-font); font-weight: 700; color: var(--accent); text-decoration: none; font-size: 1.15rem; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: .92rem; }
.nav a { color: var(--text); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.mode-toggle {
  font: inherit; font-size: .85rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--accent-soft); color: var(--text);
  border-radius: 999px; padding: 4px 14px;
}

/* ---- ロゴ（CSS で作る） ---- */
.logo {
  font-family: var(--logo-font);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 1.1;
  margin: 0;
  color: #b3122e;
  background: linear-gradient(180deg, #e8384f 0%, #b3122e 55%, #7d0a1f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 3px 0 rgba(90, 0, 20, .18));
  letter-spacing: .01em;
}

.hero { text-align: center; padding: 56px 0 36px; }
.tagline { color: var(--muted); margin: 0 0 8px; font-size: .95rem; letter-spacing: .1em; }
.years { font-size: 1.05rem; margin: 10px 0 0; color: var(--muted); }
.preopen { display: inline-block; margin: 18px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .9rem; font-weight: 700; }

/* ---- 本文 ---- */
main { padding-bottom: 48px; }
h2 { font-size: 1.3rem; margin: 44px 0 12px; }
h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.lead { font-size: 1.05rem; }
.muted { color: var(--muted); font-size: .9rem; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 16px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.notice-date { color: var(--accent); font-weight: 700; font-size: .92rem; }

/* カウンタ */
.counter { text-align: center; margin: 28px 0; }
.counter .digits {
  display: inline-flex; gap: 3px; padding: 6px; border-radius: 6px; background: #1a1a1a;
}
.counter .digits span {
  display: inline-block; min-width: 1.05em; padding: 2px 3px;
  background: #000; color: #ff4d6d; font-family: "Courier New", monospace; font-weight: 700;
  font-size: clamp(1.1rem, 4.5vw, 1.6rem); border-radius: 2px; text-align: center;
}
.counter .digits span.sep { background: transparent; min-width: .4em; padding: 0; color: #888; }
.counter p { margin: 6px 0 0; }

/* 年表 */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--accent-soft); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: .55em;
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
}
.timeline time { display: block; font-weight: 700; color: var(--accent); font-size: .92rem; }

/* 3つの時代 */
.eras { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.eras .card { margin: 0; }
.eras h3 { margin-top: 0; }

/* コンテンツ一覧 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; font-size: .92rem;
}
dl.items dt { font-weight: 700; margin-top: 12px; }
dl.items dd { margin: 0 0 0 1em; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: .85rem; color: var(--muted); text-align: center; }

/* 当時のトップページの再現画像（あゆみ） */
.saigen { text-align: center; }
.saigen img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 8px; }
html[data-mode="retro"] .saigen img { border-radius: 0; }

/* 見出しの横の小さな線画（SVG。色は文字色に合わせる） */
.ico { display: inline-block; vertical-align: -4px; margin-right: 8px; color: var(--accent); flex: none; }
h2 .ico { width: 24px; height: 24px; vertical-align: -4px; }
html[data-mode="retro"] .ico { color: #ff6699; }

/* 「思い出を送る」ボタン */
.cta-wrap { text-align: center; margin: 18px 0; }
.cta { display: inline-block; padding: 10px 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
html[data-mode="retro"] a.cta:link, html[data-mode="retro"] a.cta:visited { border-radius: 0; background: #ffffe8; color: #cc0000; border: 2px outset #ffc0d8; text-decoration: none; }
html[data-mode="retro"] .cta-wrap ~ .muted { text-align: center; }

/* ============================================================
   2000年モード
   ============================================================ */
html[data-mode="retro"] body {
  /* ピンクのチェック（当時の cloth1_4.gif の雰囲気を CSS で） */
  background-color: #f9d4dc;
  background-image:
    linear-gradient(90deg, rgba(240, 120, 150, .35) 50%, transparent 50%),
    linear-gradient(0deg, rgba(240, 120, 150, .35) 50%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 4px);
  background-size: 28px 28px, 28px 28px, auto;
  color: #000;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Osaka", var(--font);
  font-size: 15px;
  line-height: 1.6;
}
html[data-mode="retro"] a:link { color: #058ccd; text-decoration: none; }
html[data-mode="retro"] a:visited { color: #a020ff; }
html[data-mode="retro"] a:hover { color: #0000ff; text-decoration: underline; }

html[data-mode="retro"] .site-header { background: #ffe1f0; border-bottom: 2px ridge #ff9ec0; }
html[data-mode="retro"] a.brand:link, html[data-mode="retro"] a.brand:visited { color: #cc0000; text-decoration: none; }
/* メニューの [ ] で幅が増えるので、ヘッダーだけ横幅を広げて切り替えボタンが次の行に落ちないようにする */
html[data-mode="retro"] .site-header .wrap { max-width: 1000px; flex-wrap: nowrap; }
html[data-mode="retro"] .nav { gap: 4px 10px; }
html[data-mode="retro"] .mode-toggle { white-space: nowrap; }
@media (max-width: 760px) { html[data-mode="retro"] .site-header .wrap { flex-wrap: wrap; } }
html[data-mode="retro"] .nav a { color: #058ccd; border: none; }
html[data-mode="retro"] .nav a::before { content: "[ "; color: #000; }
html[data-mode="retro"] .nav a::after { content: " ]"; color: #000; }
html[data-mode="retro"] .nav a[aria-current="page"] { font-weight: 700; }
html[data-mode="retro"] .mode-toggle { background: #ffffe8; border: 2px outset #ffc0d8; border-radius: 0; color: #cc0000; font-weight: 700; }

html[data-mode="retro"] .wrap { max-width: 760px; }
/* 当時のトップの作り: チェックの壁紙の上に白い地、その中に「表」の帯が
   クリーム色と淡いピンクで交互に並び、細いピンクの線で区切られ、文字は中央寄せ */
html[data-mode="retro"] main .wrap { background: #fff; border: 1px solid #f3c4d6; padding: 6px 14px 22px; margin-top: 16px; margin-bottom: 16px; }
html[data-mode="retro"] .site-footer .wrap { background: #fff; border: 1px solid #f3c4d6; padding: 10px 12px; }
html[data-mode="retro"] .hero { padding: 26px 0 8px; }
html[data-mode="retro"] .tagline { color: #1414ff; font-weight: 700; letter-spacing: .05em; }
html:not([data-mode="retro"]) .logo {
  color: #b3122e;
  background: linear-gradient(180deg, #e8384f 0%, #b3122e 55%, #7d0a1f 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(2px 3px 0 rgba(90, 0, 20, .18));
}
html[data-mode="retro"] .logo {
  background: linear-gradient(180deg, #d9452b 0%, #a8261a 55%, #7a1a12 100%);
  -webkit-background-clip: text; background-clip: text; filter: none;
}
html[data-mode="retro"] .years { color: #c0392b; font-weight: 700; }
html[data-mode="retro"] .lead { background: #fbeced; padding: 10px 14px; font-size: 15px; }

html[data-mode="retro"] h2 {
  background: #fbe0ee; color: #a8235a; text-align: center; font-size: 15px; letter-spacing: .05em;
  padding: 6px 8px; margin: 22px 0 0; border: 1px solid #f3c4d6;
}
html[data-mode="retro"] h3 { color: #e0451f; text-align: center; font-size: 15px; }
html[data-mode="retro"] .card {
  border-radius: 0; border: 1px solid #f3c4d6; border-top: none; background: #fffde8;
  padding: 12px 14px; margin: 0; box-shadow: none;
}
html[data-mode="retro"] .card:nth-of-type(even) { background: #fbe9ef; }
html[data-mode="retro"] .counter ~ .card p { text-align: center; }
html[data-mode="retro"] .eras { gap: 0; }
html[data-mode="retro"] .eras .card { text-align: center; }
html[data-mode="retro"] .eras .card + .card { border-left: none; }
html[data-mode="retro"] .notice-date { color: #e0451f; font-weight: 700; }
html[data-mode="retro"] .muted { color: #8b2252; }
html[data-mode="retro"] main a:link, html[data-mode="retro"] main a:visited { font-weight: 700; }

html[data-mode="retro"] .tags { margin: 0; padding: 10px; gap: 6px; justify-content: center; background: #fffde8; border: 1px solid #f3c4d6; border-top: none; }
html[data-mode="retro"] .tags li { border-radius: 0; background: #fff; border: 1px solid #f3c4d6; }
html[data-mode="retro"] .tags li::before { content: "★"; color: #ff6699; margin-right: 2px; }
html[data-mode="retro"] dl.items { margin: 0; padding: 4px 14px 10px; background: #fbe9ef; border: 1px solid #f3c4d6; border-top: none; }
html[data-mode="retro"] dl.items dt { color: #c0392b; }
html[data-mode="retro"] dl.items dd { color: #333; }

/* 年表は表の行のように、1行ずつ交互の色の帯にする */
html[data-mode="retro"] .timeline { border: 1px solid #f3c4d6; border-top: none; }
html[data-mode="retro"] .timeline li { display: grid; grid-template-columns: 9em 1fr; column-gap: .8em; padding: 7px 12px; border-top: 1px solid #f3c4d6; background: #fffde8; }
html[data-mode="retro"] .timeline li:first-child { border-top: none; }
html[data-mode="retro"] .timeline li:nth-child(even) { background: #fbe9ef; }
html[data-mode="retro"] .timeline li::before { content: none; }
html[data-mode="retro"] .timeline time { color: #c0392b; font-size: 15px; }

@media (max-width: 520px) { html[data-mode="retro"] .timeline li { grid-template-columns: 1fr; } }
html[data-mode="retro"] hr { border: none; border-top: 1px solid #ccc; }
html[data-mode="retro"] .site-footer { color: #333; border-top: none; }
html[data-mode="retro"] .retro-only { display: block; }
.retro-only { display: none; }

html[data-mode="retro"] .blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  html[data-mode="retro"] .blink { animation: none; }
}
