/* ============================================================
   ゆびさき探偵 ―辻見町事件簿― 公式サイト 共通スタイル
   トンマナ正本: _copy/_design_notes.md
   ============================================================ */

:root {
  --navy: #1E2A44;
  --navy-deep: #141d31;
  --gold: #E8B84B;
  --orange: #F2A65A;
  --cream: #F3ECD8;
  --brick: #A84B3D;
  --font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --font-round: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  font-family: var(--font-round);
  font-weight: 400;
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.5;
}

a { color: var(--gold); }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; }

/* §7-F なぞって光る暗喩 */
::selection { background: #E8B84B; color: #1E2A44; }

.container {
  width: min(100% - 2.5rem, 960px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 29, 49, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(232, 184, 75, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}
.brand:hover { color: var(--gold); }

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.8rem;
  text-decoration: none;
  color: rgba(243, 236, 216, 0.85);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

/* ---------- buttons ---------- */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px; /* 角丸大きめ（手描き感） */
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.btn-store {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(242, 166, 90, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-store:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 166, 90, 0.5);
}

/* 無効状態: 枠線のみ */
.btn-disabled,
.btn-disabled:hover {
  background: transparent;
  border: 1px solid rgba(243, 236, 216, 0.4);
  color: rgba(243, 236, 216, 0.65);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(243, 236, 216, 0.75);
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 3.2rem 0 2.2rem;
  background: var(--navy-deep);
  border-top: 1px solid rgba(232, 184, 75, 0.15);
  text-align: center;
  overflow: hidden;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: rgba(243, 236, 216, 0.85);
}
.footer-nav a:hover { color: var(--gold); }

.footer-credit {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: rgba(243, 236, 216, 0.6);
}

.footer-contact {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: rgba(243, 236, 216, 0.6);
}

/* ============================================================
   法務ページ（terms / privacy / support）――「紙」レイアウト
   夜の中に灯る書類。演出なし、読むためのページ。
   ============================================================ */

.paper-main { padding: 2.6rem 0 0; }

.paper {
  background: var(--cream);
  color: var(--navy);
  border-radius: 14px;
  padding: 2.2rem 1.4rem 2.6rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  max-width: 760px;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .paper { padding: 3rem 3rem 3.4rem; }
}

.paper h1 {
  font-size: 1.65rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.paper h2 {
  font-size: 1.15rem;
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(30, 42, 68, 0.18);
}

.paper h3 {
  font-size: 1rem;
  margin: 1.8rem 0 0.5rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--gold);
}

.paper p, .paper li { font-size: 0.92rem; }

.paper a { color: #8a6210; text-decoration: underline; }
.paper a:hover { color: var(--brick); }

.paper ::selection { background: var(--gold); color: var(--navy); }

.paper .doc-lede {
  font-size: 0.85rem;
  color: rgba(30, 42, 68, 0.7);
  margin-bottom: 1.6rem;
}

.paper ul { padding-left: 1.3rem; }
.paper ol { padding-left: 1.5rem; }
.paper li { margin: 0.3rem 0; }

.paper .h1-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* 読み終えた頃、猫は眠っている */
.watson-sleep {
  display: block;
  width: 96px;
  margin: 2.8rem auto 0;
}

/* support: ポストの装飾 */
.postbox-deco {
  display: block;
  width: 72px;
  margin: 2.4rem auto 0.4rem;
}

/* ---------- reduced motion（全ページ共通の安全網） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
