/* くらしあぷり ゲームズ — 夜祭りの境内をイメージした、藍の夜空 × 金 × 朱 */
:root {
  color-scheme: dark;
  --bg: #0d0b1a;
  --bg-2: #141127;
  --card: rgba(30, 26, 56, 0.72);
  --card-solid: #1b1833;
  --text: #f1edf9;
  --sub: #b0a9c8;
  --faint: #7d7699;
  --line: rgba(231, 195, 118, 0.16);
  --line-strong: rgba(231, 195, 118, 0.42);
  --gold: #e7c376;
  --gold-2: #f6dfa6;
  --shu: #e0574a;
  --violet: #8f7bff;
  --radius: 18px;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.9;
  letter-spacing: 0.02em;
  background-color: var(--bg);
  /* 星空と、上から差す月明かり */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(143, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(224, 87, 74, 0.10), transparent 60%),
    radial-gradient(1.2px 1.2px at 20% 30%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 40% 80%, rgba(246, 223, 166, 0.5), transparent 60%),
    radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 10% 70%, rgba(255, 255, 255, 0.35), transparent 60%);
  background-size: auto, auto, 340px 340px, 260px 260px, 420px 420px, 300px 300px, 380px 380px;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
::selection { background: rgba(231, 195, 118, 0.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card-solid); padding: 6px 12px; z-index: 50; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.page { padding-bottom: 72px; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.muted, .note { color: var(--sub); }
.note { font-size: 14px; }

/* ── ヘッダー ── */
header.site { position: sticky; top: 0; z-index: 30; background: rgba(13, 11, 26, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .mark {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 800; font-size: 19px; color: #1a1206;
  background: linear-gradient(145deg, var(--gold-2), var(--gold) 55%, #b98d3e);
  border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 6px 18px rgba(231, 195, 118, 0.25);
  transform: rotate(-4deg);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.25; font-family: var(--display); font-weight: 800; font-size: 17px; }
.brand-name small { font-family: var(--font); font-size: 9.5px; letter-spacing: 0.3em; color: var(--faint); font-weight: 700; }
nav.site { display: flex; gap: 4px; flex-wrap: wrap; }
nav.site a { color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
nav.site a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ── ボタン・タグ ── */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; border-radius: 999px; padding: 10px 22px; cursor: pointer; border: 0; transition: transform .15s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 24px rgba(231, 195, 118, 0.28); }
.btn.primary:hover { color: #1a1206; box-shadow: 0 10px 30px rgba(231, 195, 118, 0.42); }
.btn.ghost, .btn.secondary { color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn.ghost:hover, .btn.secondary:hover { color: var(--gold-2); background: rgba(231, 195, 118, 0.08); }
.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 700; color: var(--gold-2); border: 1px solid var(--line-strong); background: rgba(231, 195, 118, 0.07); border-radius: 999px; padding: 1px 11px; line-height: 1.9; }

/* ── トップ：ヒーロー ── */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--art) center / cover no-repeat; filter: blur(28px) saturate(1.2); opacity: 0.45; transform: scale(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 26, 0.1), var(--bg) 98%), linear-gradient(90deg, rgba(13, 11, 26, 0.8), rgba(13, 11, 26, 0.05)); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.9vw, 40px); line-height: 1.45; margin: 4px 0 18px; letter-spacing: 0.04em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.nb { display: inline-block; }
.hero-lead { color: var(--sub); margin: 0; max-width: 34em; }
.feature { position: relative; display: block; text-decoration: none; color: var(--text); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); transform: rotate(1.2deg); transition: transform .35s ease, box-shadow .35s; }
.feature:hover { color: var(--text); transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow), 0 0 0 1px var(--gold), 0 0 50px rgba(231, 195, 118, 0.18); }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-label { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: 0.25em; color: #fff; background: var(--shu); padding: 3px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(224, 87, 74, 0.4); }
.feature-body { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; display: grid; gap: 2px; background: linear-gradient(180deg, transparent, rgba(8, 6, 18, 0.92) 55%); }
.feature-body strong { font-family: var(--display); font-size: 24px; letter-spacing: 0.06em; }
.feature-body span { font-size: 13px; color: var(--sub); line-height: 1.7; }
.feature-body .feature-go { color: var(--gold); font-weight: 700; margin-top: 4px; }

/* ── セクション ── */
.sec-block { margin-top: 64px; }
.sec-head { display: flex; flex-direction: column; margin-bottom: 20px; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 28px); margin: 0; letter-spacing: 0.06em; position: relative; padding-bottom: 12px; }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--shu), var(--gold)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }

.game-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.game-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line) inset; transition: transform .25s, box-shadow .25s; }
.game-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow); }
.game-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.game-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.game-card:hover img { transform: scale(1.05); }
.play-chip { position: absolute; right: 12px; bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #1a1206; background: var(--gold); padding: 3px 12px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.game-card:hover .play-chip { opacity: 1; transform: none; }
.game-card .body { padding: 16px 18px 20px; }
.game-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 21px; letter-spacing: 0.05em; line-height: 1.4; }
.game-card h3 small { display: block; font-family: var(--font); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; font-weight: 500; }
.game-card p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.75; }

.news { padding: 0; margin: 0; list-style: none; }
.news li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.news li:first-child { padding-top: 0; }
.news time { color: var(--gold); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; padding-top: 2px; }
.howto { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.howto li { counter-increment: step; position: relative; padding: 2px 0 0 52px; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; color: var(--gold); border: 1px solid var(--line-strong); background: rgba(231, 195, 118, 0.06); }
.howto b { display: block; }
.howto span { color: var(--sub); font-size: 14px; }

/* ── ゲームページ：ステージ ── */
.stage { position: relative; isolation: isolate; overflow: hidden; padding: 20px 0 36px; border-bottom: 1px solid var(--line); }
.stage::before { content: ""; position: absolute; inset: -60px; z-index: -2; background: var(--art) center / cover no-repeat; filter: blur(40px) saturate(1.3); opacity: 0.35; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 11, 26, 0.4), var(--bg)); }
.crumbs { font-size: 13px; color: var(--faint); display: flex; gap: 8px; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.game-head { margin: 14px 0 22px; }
.game-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); margin: 0; line-height: 1.3; letter-spacing: 0.08em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.game-head h1 small { display: block; font-family: var(--font); font-size: 12px; color: var(--faint); font-weight: 500; letter-spacing: 0.2em; margin-top: 4px; }
.game-head .lead { margin: 10px 0 0; color: var(--sub); }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(143, 123, 255, 0.12); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 16px; }
.player-bar .btns { margin-top: 0; }
.fan-notice { margin: 0; flex: 1 1 320px; font-size: 13px; color: var(--sub); padding-left: 12px; border-left: 3px solid var(--shu); line-height: 1.7; }

.game-grid { display: grid; gap: 40px; margin-top: 48px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.game-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card h2 { font-family: var(--display); font-size: 17px; margin: 0 0 12px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }
.card p { margin: 0; font-size: 14px; color: var(--sub); }
.game-main h2 { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: 0.06em; margin: 52px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; }
.game-main h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: linear-gradient(90deg, var(--shu), var(--gold)); }
.game-main h2:first-child { margin-top: 0; }
.game-main strong { color: var(--gold-2); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; background: var(--card); border-radius: 14px; padding: 14px 18px 14px 64px; position: relative; box-shadow: 0 0 0 1px var(--line) inset; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.steps b { display: block; font-family: var(--display); color: var(--gold-2); letter-spacing: 0.05em; }
.game-main ul:not(.tags):not(.news) { padding-left: 1.3em; }
.game-main li::marker { color: var(--gold); }

table.info { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.info th { white-space: nowrap; color: var(--gold-2); font-weight: 700; width: 1%; }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }
table.info.compact { font-size: 14px; margin: 0; }
table.info.compact th { color: var(--faint); font-weight: 500; }
table.info.compact th, table.info.compact td { padding: 7px 4px; }

.ranking ol { margin: 0; padding: 0; list-style: none; }
.ranking li { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ranking li:nth-child(-n+3) .rank { color: var(--gold); }
.ranking .rank { font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.ranking .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .score { font-variant-numeric: tabular-nums; color: var(--sub); }
.ranking-body .muted { padding: 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 13px; }

.ad { margin: 32px 0; }
.ad.side { margin: 0; }
.ad-label { display: block; font-size: 11px; color: var(--faint); margin-bottom: 4px; letter-spacing: 0.1em; }

/* ── 固定ページ ── */
article.post { max-width: 760px; margin: 48px auto 0; background: var(--card); border-radius: 24px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 0 0 1px var(--line) inset; }
article.post h1 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 5vw, 32px); line-height: 1.5; margin: 0 0 8px; letter-spacing: 0.06em; }
article.post .meta { color: var(--faint); font-size: 13px; margin: 0; }
article.post h2 { font-family: var(--display); font-size: 19px; margin: 36px 0 10px; letter-spacing: 0.05em; display: flex; align-items: center; gap: 10px; }
article.post h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }
article.post li::marker { color: var(--gold); }

/* ── フッター ── */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 110px; color: var(--faint); font-size: 13px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
footer.site .brand { margin-bottom: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer.site nav a { color: var(--sub); text-decoration: none; }
footer.site nav a:hover { color: var(--gold); }
footer.site p { margin: 10px 0 0; }

/* ── Cookie の案内 ── */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; display: flex; gap: 14px; align-items: center; z-index: 40;
  background: rgba(27, 24, 51, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; padding: 14px 18px; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); font-size: 13px; color: var(--sub); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; line-height: 1.7; }

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 48px; }
  .feature { transform: none; }
  .two-col { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .game-side { position: static; }
}
@media (max-width: 720px) {
  .frame { aspect-ratio: 3 / 4; }
  header.site .wrap { padding-top: 8px; padding-bottom: 8px; }
  nav.site { margin-left: -12px; }
  .news li { grid-template-columns: 1fr; gap: 0; }
  table.info th { white-space: normal; }
  .steps li { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; letter-spacing: 0.02em; }
}
