/* aquallc.jp/game/ … 会社ページと同じ夜の色。紫は使わない */
@font-face { font-family: "Inter"; src: url("/fonts/inter-v20-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #04070a;
  --navy: #0a1826;
  --card: rgba(12, 26, 40, 0.72);
  --line: rgba(127, 228, 255, 0.14);
  --line-hi: rgba(127, 228, 255, 0.5);
  --fg: #ffffff;
  --dim: rgba(255, 255, 255, 0.78);
  --lead: #93abb9;
  --cyan: #7fe4ff;
  --blue: #00b4ff;
  --warm: #e9b872;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 80% 0%, #0d2235 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--fg);
  font-family: "Inter", var(--jp);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bar, main, .foot { position: relative; z-index: 1; }

/* 上の帯 */
.bar {
  max-width: 1120px; margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 600; letter-spacing: 0.32em; text-decoration: none; font-size: 15px; }
.bar nav { display: flex; gap: 22px; font-size: 13px; }
.bar nav a { color: var(--lead); text-decoration: none; transition: color .3s; }
.bar nav a:hover { color: var(--fg); }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em; color: var(--cyan);
}
.rule { width: 36px; height: 1px; background: currentColor; opacity: .7; }

/* はじめの画面 */
.hero { padding: 72px 0 56px; }
.hero h1 {
  margin: 0; font-family: var(--jp); font-weight: 700;
  font-size: clamp(34px, 6.2vw, 68px); line-height: 1.25; letter-spacing: 0.02em;
}
.lead { margin: 24px 0 0; color: var(--dim); font-size: clamp(15px, 1.6vw, 17px); }
.sp { display: none; }

/* 今日の1本 */
.today {
  display: grid; grid-template-columns: 1.25fr 1fr;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--card); backdrop-filter: blur(6px);
  transition: border-color .4s var(--ease);
}
.today:hover { border-color: var(--line-hi); }
.today-art { display: block; overflow: hidden; background: var(--navy); }
.today-art img { width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform 1.2s var(--ease); }
.today:hover .today-art img { transform: scale(1.03); }
.today-body { padding: 34px 36px; display: flex; flex-direction: column; }
.kicker { margin: 0 0 10px; font-size: 12px; color: var(--warm); letter-spacing: 0.16em; font-weight: 600; }
.today h2 { margin: 0; font-family: var(--jp); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; }
.desc { margin: 12px 0 0; color: var(--dim); font-size: 15px; }
.how { margin: 14px 0 0; color: var(--cyan); font-size: 13px; }
.how:empty { display: none; }
.actions { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  font-family: inherit; border: 0; cursor: pointer;
  background: var(--blue); color: #02101c;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0, 180, 255, .7); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-hi); }
.btn.ghost:hover { background: rgba(127, 228, 255, .08); box-shadow: none; }
.btn.small { padding: 9px 18px; font-size: 14px; }
.link { color: var(--lead); font-size: 14px; text-underline-offset: 4px; }
.link:hover { color: var(--fg); }

/* 棚 */
.shelf { padding: 88px 0 0; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.shelf-head h2, .more h2 { margin: 0; font-family: var(--jp); font-size: clamp(22px, 2.6vw, 28px); }
.tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4, 12, 20, .6); }
.chip {
  font: inherit; font-size: 13px; color: var(--lead); background: none; border: 0; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; transition: color .25s, background .25s;
}
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--cyan); color: #02101c; font-weight: 600; }

.grid { margin-top: 28px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.note {
  grid-column: 1 / -1; margin: 0; padding: 36px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: 16px; color: var(--lead); font-size: 14px;
}
.card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 18px 40px -24px rgba(0, 180, 255, .55); }
.card .art { position: relative; display: block; overflow: hidden; background: var(--navy); }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(2, 10, 18, .78); color: var(--fg); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
}
.badge.new { background: var(--cyan); color: #02101c; border-color: transparent; }
.play-ico {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; padding-left: 3px;
  background: var(--blue); color: #02101c; opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .play-ico, .card:focus-visible .play-ico { opacity: 1; transform: none; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: 14px 18px 16px; }
.card .t { font-weight: 700; font-family: var(--jp); line-height: 1.5; }
.card .d { margin-top: 6px; color: var(--dim); font-size: 13.5px; line-height: 1.7; }
.card .m { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.card .who { color: var(--lead); }
.card .how-s { color: var(--cyan); }

/* 遊ぶ画面 */
.play { padding-top: 8px; }
.play > .note { margin-top: 40px; }
.play > .btn { margin-top: 20px; }
.stage {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: #02060c; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%;
  box-shadow: 0 30px 80px -40px rgba(0, 180, 255, .45);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage:fullscreen { border-radius: 0; border: 0; max-height: none; aspect-ratio: auto; }
.ended {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(2, 8, 14, .82); backdrop-filter: blur(6px); text-align: center; padding: 20px;
  animation: fade .4s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.ended-k { margin: 0; color: var(--cyan); letter-spacing: .14em; font-size: 13px; }
.ended-s { margin: 0; font-family: var(--jp); font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.ended-s:empty { display: none; }
.ended-a { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px 0; flex-wrap: wrap; }
.stage-bar h1 { margin: 0; font-family: var(--jp); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; }
.meta { margin: 2px 0 0; color: var(--lead); font-size: 13px; }
.stage-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  font: inherit; font-size: 13px; color: var(--dim); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; transition: border-color .25s, color .25s;
}
.icon-btn:hover { border-color: var(--line-hi); color: var(--fg); }

.reveal-card {
  margin-top: 56px; padding: 40px 44px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(0, 180, 255, .09), rgba(4, 7, 10, 0) 55%), var(--card);
}
.reveal-card h2 { margin: 0; font-family: var(--jp); font-size: clamp(20px, 2.6vw, 28px); }
.prompt {
  position: relative; margin: 24px 0 0; padding: 22px 26px 22px 30px; border-radius: 14px;
  background: rgba(2, 8, 14, .7); border: 1px solid var(--line);
  font-family: var(--jp); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.9; white-space: pre-line;
}
.prompt::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--cyan); }
.nums { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nums div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.nums dt { color: var(--lead); font-size: 12px; }
.nums dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-family: var(--jp); }
.reveal-cta { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.reveal-cta p { margin: 0; color: var(--dim); }
.more { padding-top: 64px; }

/* 作る側へ */
.cta {
  margin: 120px 0 0; padding: 56px 48px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 180, 255, .1), rgba(4, 7, 10, 0) 60%), var(--card);
}
.cta h2 { margin: 0; font-family: var(--jp); font-size: clamp(22px, 3vw, 32px); }
.cta p:not(.eyebrow) { margin: 14px 0 28px; color: var(--dim); max-width: 36em; }

.foot {
  max-width: 1120px; margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: flex; justify-content: space-between; color: var(--lead); font-size: 12px;
}
.foot a { text-decoration: none; }

[hidden] { display: none !important; }

/* 出てくる動き（hub.js が .in を付ける） */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.card.rv.in:hover { transform: translateY(-4px); }

@media (max-width: 820px) {
  .today { grid-template-columns: 1fr; }
  .today-body { padding: 22px 20px 24px; }
  .hero { padding: 40px 0 32px; }
  .shelf { padding-top: 64px; }
  .shelf-head { align-items: start; flex-direction: column; }
  .grid.three { grid-template-columns: 1fr; }
  .stage { aspect-ratio: auto; height: calc(100svh - 190px); min-height: 420px; max-height: none; border-radius: 14px; }
  .reveal-card { padding: 28px 20px; margin-top: 40px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .nums div:last-child { grid-column: 1 / -1; }
  .cta { margin-top: 80px; padding: 36px 22px; }
  .bar nav { gap: 16px; }
  .sp { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, .rv { transition: none !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
