/* 夜の部屋・あたたかい灯り・月 ／ 外部読み込みなし ／ スマホ(〜719) → タブレット(720〜1023) → PC(1024〜) */
:root {
  --bg: #fff7f2; --bg2: #ffeef3; --ink: #25284a; --muted: #5d6086;
  --pink: #ff7eb3; --pink-deep: #e0558f; --blue: #6ea8ff; --blue-soft: #e6f0ff; --lamp: #ffd9a0; --lamp-deep: #f0b45c;
  --glass: rgba(255, 255, 255, .72); --line: rgba(37, 40, 74, .1);
  --shadow: 0 10px 30px rgba(120, 90, 150, .14); --radius: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); font-size: 16px; line-height: 1.85;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  background: radial-gradient(circle at 90% -10%, rgba(255, 217, 160, .55), transparent 40%), linear-gradient(180deg, var(--bg) 0, var(--bg2) 55%, var(--blue-soft) 100%);
  background-attachment: fixed; padding-bottom: 84px;
}
a { color: var(--blue); }
.page { max-width: 1200px; margin: 0 auto; padding: 0 16px 24px; }

/* ---------- ヒーロー（画像は後から banner.jpg / png / webp を置くだけ。無くてもグラデーションで崩れない） ---------- */
.hero { position: relative; margin: 14px 0 6px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--pink) 0, #ffb98a 45%, var(--blue) 100%); }
.hero-img { position: relative; aspect-ratio: 16 / 9; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img .moon { position: absolute; right: 8%; top: 12%; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -16px 0 0 0 var(--lamp); opacity: .9; }
.hero-text { padding: 18px 20px 22px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; }
.hero h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.4; color: var(--pink-deep); }
.hero p { margin: 0 0 12px; }
.small-note { font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 28px; font-weight: 700; font-size: 17px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep)); box-shadow: 0 8px 20px rgba(224, 85, 143, .35); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 85, 143, .4); }

/* ---------- 固定ナビ(PC) と 固定ボタン(スマホ) ---------- */
.topnav { display: none; }
.cta-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); text-align: center; }
.cta-fixed .btn { width: 100%; max-width: 480px; }

/* ---------- セクション ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
.sec { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 24px; transition: transform .25s, box-shadow .25s; }
.sec:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(120, 90, 150, .2); }
.sec h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.5; color: var(--pink-deep); display: flex; align-items: center; gap: 10px; }
.sec h2::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset -7px 0 0 0 var(--lamp-deep); }   /* 小さな月 */
.sec h2::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--lamp-deep); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }   /* 小さな星 */
.sec h3 { margin: 16px 0 6px; font-size: 18px; }
.sec p { margin: 0 0 10px; }
.lead { color: var(--muted); }

/* スクロールで下からふわっと（JSが動く時だけ隠す） */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- 大喜利四天王 ---------- */
.rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rank li { position: relative; padding: 16px 8px 14px; text-align: center; font-weight: 700; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; overflow-wrap: anywhere; }
.rank li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rank .no { display: block; font-size: 14px; color: var(--blue); }
.rank li.first { background: linear-gradient(180deg, #fff6e0, #fff); box-shadow: 0 0 0 4px rgba(255, 217, 160, .55), 0 0 28px rgba(255, 217, 160, .9); }   /* 淡い光の輪 */
.rank li.first .no::before { content: "👑"; display: block; font-size: 24px; line-height: 1.2; }

/* ---------- 遊び方 ---------- */
.plays { display: grid; grid-template-columns: 1fr; gap: 12px; }
.play { padding: 14px 16px; border-radius: 20px; background: var(--blue-soft); transition: transform .25s; }
.play:hover { transform: translateY(-3px); }
.play.main { background: linear-gradient(135deg, #ffe1ee, #fff0d6); }
.play h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.play p { margin: 0; }
details.fold { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
details.fold summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.fold p { margin: 6px 0 0; }

/* ---------- みんなの希望 ---------- */
.wishes { list-style: none; margin: 0; padding: 0; }
.wishes li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.wishes .n { font-weight: 700; color: var(--pink-deep); text-align: center; }
.wishes .t { overflow-wrap: anywhere; }
.wishes .v { font-size: 14px; color: var(--muted); white-space: nowrap; }
.wishes .bar { grid-column: 2 / 4; height: 8px; border-radius: 6px; background: var(--blue-soft); overflow: hidden; }
.wishes .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--pink), var(--lamp-deep)); }
.badge { display: inline-block; padding: 1px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--lamp); color: #5a3b00; margin-left: 6px; }
.done-box { margin-top: 14px; padding: 8px 14px 6px; border-radius: 18px; background: linear-gradient(135deg, #fff6e0, #ffe9f1); }
.done-box h3 { margin: 6px 0; }
.empty { color: var(--muted); }
.tea { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--lamp); font-size: 15px; }

/* ---------- 困りごと（PR） ---------- */
.pr { display: inline-block; padding: 1px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; background: #25284a; color: #fff; margin-left: 6px; vertical-align: middle; }
.goods { margin: 8px 0; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.goods:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.goods .gn { font-weight: 700; overflow-wrap: anywhere; }
.goods .gn a { color: var(--pink-deep); }
.goods .gt { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.who { font-size: 15px; color: var(--muted); margin: 0 0 4px; }

/* ---------- FAQ ---------- */
details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details.faq p { margin: 2px 0 10px; }

/* ---------- フッター ---------- */
.foot { margin: 22px 0 8px; padding: 0 4px 24px; text-align: center; font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 8px; }
.foot .disc { text-align: left; background: #fff; border-radius: 14px; padding: 10px 14px; }
[hidden] { display: none !important; }

/* ================= タブレット（720〜1023px） ================= */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .cta-fixed { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sec.wide { grid-column: 1 / -1; }
  .hero-img { aspect-ratio: 21 / 9; }
  .plays { grid-template-columns: 1fr 1fr; }
  .play.main { grid-column: 1 / -1; }
  .rank { grid-template-columns: repeat(4, 1fr); }
}

/* ================= PC（1024px〜） ================= */
@media (min-width: 1024px) {
  .topnav { display: flex; position: sticky; top: 0; z-index: 40; justify-content: center; gap: 6px; padding: 8px 16px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; text-decoration: none; font-weight: 700; color: var(--ink); transition: background .2s; }
  .topnav a:hover { background: var(--lamp); }
  .hero { margin-top: 20px; }
  .hero-img { aspect-ratio: 21 / 8; min-height: 360px; }
  .hero-text { position: absolute; left: 5%; bottom: 10%; max-width: 520px; text-align: left; border-radius: 24px; padding: 24px 28px; }
  .hero h1 { font-size: 36px; }
  .plays { grid-template-columns: repeat(3, 1fr); }
  .play.main { grid-column: auto; }
  .sec { padding: 26px 28px 28px; }
}

/* ================= 動きを減らす設定の人 ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
