@charset "UTF-8";
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 220, 84, .22), transparent 28%),
    radial-gradient(circle at top right, rgba(68, 214, 255, .22), transparent 32%),
    linear-gradient(180deg, #eaf7ff 0%, #f8fbff 42%, #fff7e6 100%);
  color: #16213e;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.site {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  background: #f7fbff;
  min-height: 100vh;
}

/* -- Header -- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(8, 16, 48, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 200, 0, .18);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.logo {
  margin: 0;
  line-height: 1;
}

.logo-img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
}

/* ログインボタン（ゴールド） */
.header-btn--login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  background: linear-gradient(135deg, #ffd200 0%, #ffaa00 50%, #ff8000 100%);
  color: #1a0800;
  box-shadow: 0 3px 0 #904000, 0 5px 14px rgba(255,130,0,.4);
  transition: transform .1s;
}
.header-btn--login:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #904000;
}

/* ログアウトボタン（アウトライン） */
.header-btn--logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.25);
  transition: opacity .1s;
}
.header-btn--logout:active { opacity: .6; }

.hero {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #102653;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}


.hero-inner {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}

.hero-title {
  margin: 12px 0 8px;
  font-size: 35px;
  line-height: 1.22;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 2px 10px rgba(10,30,80,.5);
}

.hero-title span {
  color: #ffdf5a;
}

.hero-copy {
  margin: 0 0 4px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(10,30,80,.4);
}

.hero-visual {
  display: none;
}

.phone {
  position: relative;
  z-index: 2;
  width: 235px;
  margin: 0 auto;
  padding: 16px 14px 18px;
  border-radius: 30px;
  background: #102653;
  box-shadow: 0 18px 34px rgba(24, 61, 130, .28);
  border: 5px solid #234a92;
}

.phone-screen {
  min-height: 210px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eaf8ff 0%, #ffffff 100%);
  padding: 14px;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  color: #173b82;
  margin-bottom: 12px;
}

.level {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffdf5a;
  color: #5a3500;
}

.mission-card {
  display: block;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2b7fff 0%, #34c9ff 100%);
  color: #fff;
  box-shadow: 0 8px 0 #185bb9;
}

.mission-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.mission-card span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  opacity: .9;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.mini-stat {
  padding: 9px 4px;
  border-radius: 14px;
  background: #f2f7ff;
  text-align: center;
  font-weight: 900;
  font-size: 11px;
  color: #163a80;
}

.mini-stat b {
  display: block;
  color: #ff9f1a;
  font-size: 15px;
}

.treasure {
  position: absolute;
  left: 12px;
  bottom: 14px;
  width: 70px;
  height: 56px;
  border-radius: 13px 13px 18px 18px;
  background: linear-gradient(180deg, #ffcf4d 0%, #d98319 100%);
  box-shadow: 0 8px 0 #9f5811;
  transform: rotate(-8deg);
  z-index: 3;
}

.treasure::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 22px;
  height: 6px;
  background: #7a4515;
  border-radius: 999px;
}

.treasure::after {
  content: "\2605 ";
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff3a6;
  color: #b86a00;
  font-size: 14px;
  text-align: center;
  line-height: 25px;
}

.bulb {
  position: absolute;
  right: 16px;
  top: 20px;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffdf5a;
  box-shadow: 0 7px 0 #d28a00;
}

.bulb::before {
  content: "!";
  display: block;
  text-align: center;
  line-height: 54px;
  font-size: 30px;
  font-weight: 900;
  color: #634000;
}

/* hero reg-wrap の幅制御 */
.hero-inner .reg-wrap--twoline {
  width: 92%;
  max-width: 420px;
  margin: 20px auto 0;
}
.start-body .reg-wrap--twoline {
  width: 100%;
  max-width: 100%;
}

/* 2行ボタン共通レイアウト */
.reg-wrap--twoline .reg-inner > span {
  flex-direction: column;
  gap: 2px;
  padding: .8rem 1.6rem;
}
/* キャプション行（小） */
.reg-line-main {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(50, 15, 0, .8);
}
/* メインCTA行（大） */
.reg-line-sub {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .05em;
  color: #1a0800;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.section {
  padding: 30px 18px;
}

.section-head {
  margin-bottom: 16px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #173b82 0%, #2258c0 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  box-shadow: 0 4px 0 #0c2050, 0 6px 18px rgba(10,40,120,.2);
}

/* * 装飾 */
.kicker::before,
.kicker::after {
  content: "\25C6 ";
  font-size: 6px;
  opacity: .7;
}

/* --- 共通 section-head h2 --- */
.section-head h2 {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .01em;
  /* 濃紺->青のグラデーションテキスト */
  background: linear-gradient(145deg, #0a1e50 0%, #2264cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ゴールドアンダーライン */
.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd200 0%, #ff8000 100%);
  box-shadow: 0 2px 10px rgba(255,140,0,.45);
  margin: 12px auto 0;
}

.section-head p {
  margin: 12px 0 0;
  font-size: 13px;
  color: #53617e;
}

/* ========================================
   MEMORY QUEST -- FANTASY RPG WORLD MAP
======================================== */

.rq-section { padding: 0; }

/* -- 青空ワールドマップ背景 -- */
.rq-wrap {
  position: relative;
  padding: 16px 18px 20px;
  overflow: hidden;
  background: linear-gradient(175deg,
    #3d9ed8 0%,
    #5ab8e8 18%,
    #82ceee 38%,
    #b8e4f5 58%,
    #e8f6e0 78%,
    #fff5cc 100%
  );
}

/* 雲の装飾 */
.rq-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80px 35px at 12% 22%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(ellipse 60px 28px at 80% 14%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(ellipse 50px 22px at 55% 30%, rgba(255,255,255,.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* 光の粒子（星） */
.rq-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,220,0,.7) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,220,0,.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px, 60px 60px;
  background-position: 15px 20px, 55px 50px, 30px 70px;
  pointer-events: none;
  z-index: 0;
}

.rq-face {
  position: relative;
  z-index: 2;
  animation: rqFadeIn .22s ease-out both;
}
.rq-face--hidden { display: none; }

@keyframes rqFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- スタート画面 -- */

@keyframes rq-kicker-shine {
  0%   { background-position: -200% center; }
  100% { background-position: 300% center; }
}
@keyframes rq-border-pulse {
  0%, 100% { opacity: .45; }
  50%       { opacity: 1; }
}
@keyframes rq-title-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

/* - ヘッダーラッパー（フレーム囲み） - */
.rq-header {
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  padding: 16px 14px 14px;
  background: rgba(4, 14, 48, .78);
  border: 1.5px solid rgba(255, 200, 0, .65);
  border-radius: 16px;
  box-shadow:
    0 0 24px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 0 0 3px rgba(255, 200, 0, .1);
  backdrop-filter: blur(6px);
}

/* 上部にきらり光る細いハイライト */
.rq-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,230,100,.85) 50%, transparent);
  animation: rq-border-pulse 2.5s ease-in-out infinite;
}

/* 下部の装飾テキスト */
.rq-header::after {
  content: "\2726  \2500 \2500  \2726  \2500 \2500  \2726 ";
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255, 200, 0, .55);
  margin-top: 10px;
}

/* - バッジ：メタリックゴールド - */
.rq-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  color: #2a0800;
  background: linear-gradient(180deg,
    #fff0a0 0%,
    #ffd200 20%,
    #ffaa00 50%,
    #ff8000 75%,
    #ffc030 100%);
  background-size: 200% auto;
  padding: 6px 22px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow:
    0 5px 0 #804000,
    0 8px 22px rgba(255,120,0,.45),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 0 rgba(0,0,0,.12);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
  animation: rq-kicker-shine 3s linear infinite;
}

/* - タイトル - */
.rq-title {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 2px 0 #c07000,
    0 4px 0 rgba(80,40,0,.5),
    0 0 24px rgba(255,200,50,.65),
    0 0 60px rgba(255,130,0,.3);
  animation: rq-title-float 3.5s ease-in-out infinite;
}

/* タイトル下 ゴールドバー */
.rq-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd200 0%, #ff8000 100%);
  box-shadow: 0 2px 14px rgba(255,170,0,.7);
  margin: 8px auto 0;
}

/* - 説明リスト - */
.rq-desc {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
/* ツートーンピル型：左アイコン帯 + 右テキスト帯 */
.rq-desc li {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.rq-desc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  padding: 10px 0;
  font-size: 18px;
  background: rgba(255, 200, 0, .2);
  border-right: 1px solid rgba(255,200,0,.25);
}
.rq-desc-text {
  display: block;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* 難易度グリッド */
.rq-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

/* ゾーンカード：デフォルト（緑ゾーン：見習い） */
.rq-diff {
  padding: 10px 6px;
  background: linear-gradient(180deg, #e8f8e0 0%, #d0f0c0 100%);
  border: 2px solid #5ab840;
  border-bottom: 4px solid #3a8820;
  color: #246012;
  cursor: pointer;
  text-align: center;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 5px 0 #246012, inset 0 1px 0 rgba(255,255,255,.7);
  transition: none;
}

.rq-diff:active { transform: translateY(4px); box-shadow: 0 1px 0 #246012; border-bottom-width: 2px; }

/* ゾーン2：勇者（青ゾーン）*/
.rq-diff:nth-child(2) {
  background: linear-gradient(180deg, #ddeeff 0%, #c0dcff 100%);
  border-color: #4090e0;
  border-bottom-color: #1a60c0;
  color: #0a3a80;
  box-shadow: 0 5px 0 #0a3a80, inset 0 1px 0 rgba(255,255,255,.7);
}
.rq-diff:nth-child(2):active { box-shadow: 0 1px 0 #0a3a80; }

/* ゾーン3：賢者（紫ゾーン）*/
.rq-diff:nth-child(3) {
  background: linear-gradient(180deg, #eeddf8 0%, #ddc0f4 100%);
  border-color: #9060d8;
  border-bottom-color: #6030a8;
  color: #4a1880;
  box-shadow: 0 5px 0 #4a1880, inset 0 1px 0 rgba(255,255,255,.7);
}
.rq-diff:nth-child(3):active { box-shadow: 0 1px 0 #4a1880; }

/* 選択中：明るく白枠追加 */
.rq-diff.is-active {
  filter: brightness(1.08);
  box-shadow: 0 5px 0 currentColor, 0 0 0 3px #ffe060, inset 0 1px 0 rgba(255,255,255,.7);
}

.rq-diff-rank { font-size: 20px; font-weight: 900; line-height: 1; color: inherit; }
.rq-diff-name { font-size: 12px; font-weight: 900; margin-top: 5px; color: inherit; }
.rq-diff-sub  { font-size: 10px; margin-top: 3px; opacity: .7; }

/* ゾーン4：魔王（赤ゾーン） */
.rq-diff--boss {
  background: linear-gradient(180deg, #ffe0d0 0%, #ffc0a0 100%);
  border-color: #e05030;
  border-bottom-color: #a02010;
  color: #6a1000;
  box-shadow: 0 5px 0 #6a1000, inset 0 1px 0 rgba(255,255,255,.7);
}
.rq-diff--boss:active { box-shadow: 0 1px 0 #6a1000; }
.rq-diff--boss.is-active {
  filter: brightness(1.08);
  box-shadow: 0 5px 0 #6a1000, 0 0 0 3px #ffe060, inset 0 1px 0 rgba(255,255,255,.7);
}

/* ベストスコア */
.rq-best-disp {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  color: #c05800;
  letter-spacing: .14em;
  min-height: 18px;
  margin-bottom: 14px;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}

/* -- ファンタジーボタン -- */

.rq-cmd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ゴールドボタン：宝箱カラー */
.rq-cmd-btn--gold {
  background: linear-gradient(180deg, #ffe840 0%, #ffa800 60%, #ff8800 100%);
  color: #5a2800;
  border: 2px solid #c86400;
  border-bottom: 5px solid #884000;
  box-shadow:
    0 7px 0 #5a2800,
    inset 0 1px 0 rgba(255,255,255,.6);
  text-shadow: 1px 1px 0 rgba(255,255,255,.3);
}

.rq-cmd-btn--gold:active {
  border-bottom-width: 2px;
  box-shadow: 0 3px 0 #5a2800, inset 0 2px 4px rgba(0,0,0,.15);
  transform: translateY(4px);
}

.rq-cmd-btn:disabled { opacity: .4; cursor: default; }

.rq-cmd-btn--dark {
  background: linear-gradient(180deg, #7a90aa 0%, #5a7090 100%);
  color: #fff;
  border: 2px solid #405060;
  border-bottom: 5px solid #2a3848;
  box-shadow: 0 7px 0 #2a3848, inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}
.rq-cmd-btn--dark:active { border-bottom-width: 2px; transform: translateY(4px); box-shadow: 0 3px 0 #2a3848; }

/* 青ボタン：水の神殿カラー */
.rq-cmd-btn--blue {
  background: linear-gradient(180deg, #60c8ff 0%, #1890e0 60%, #1060c0 100%);
  color: #fff;
  border: 2px solid #0860b0;
  border-bottom: 5px solid #044080;
  box-shadow:
    0 7px 0 #044080,
    inset 0 1px 0 rgba(255,255,255,.5);
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
}
.rq-cmd-btn--blue:active { border-bottom-width: 2px; transform: translateY(4px); box-shadow: 0 3px 0 #044080; }

/* -- ゲーム画面 -- */

/* モードバナー */
.rq-mode-banner {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
  color: #1a4a7a;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}

/* HUD：白いステータスパネル */
.rq-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 252, 235, 0.9);
  border: 2px solid #e8c040;
  border-top: 4px solid #ffa000;
  border-radius: 10px;
  box-shadow:
    0 5px 0 #c07800,
    0 8px 12px rgba(0,0,0,.12);
  margin-bottom: 12px;
}

.rq-lives { display: flex; gap: 5px; align-items: center; }

.rq-heart {
  font-size: 18px;
  line-height: 1;
  transition: transform .15s, opacity .15s;
  filter: drop-shadow(0 2px 0 #900010) drop-shadow(0 0 3px rgba(255,60,60,.5));
}

.rq-heart.is-lost {
  opacity: .2;
  transform: scale(.6);
  filter: grayscale(1);
}

.rq-round {
  font-size: 10px;
  font-weight: 900;
  color: #7a8890;
  letter-spacing: .14em;
}

.rq-score-wrap { text-align: right; }
.rq-score-label { display: block; font-size: 8px; font-weight: 900; color: #aaa088; letter-spacing: .18em; }
.rq-score {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #c06000;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(255,255,255,.7), 2px 2px 0 rgba(0,0,0,.1);
}

/* コンボ */
.rq-combo {
  text-align: center;
  min-height: 22px;
  font-size: 13px;
  font-weight: 900;
  color: #2a8a30;
  letter-spacing: .14em;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity .2s;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}
.rq-combo.is-visible { opacity: 1; }

/* -- 魔法封印ボックス（羊皮紙風パネル） -- */

.rq-magic-box {
  position: relative;
  padding: 20px 14px 18px;
  text-align: center;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,252,230,.96) 0%, rgba(255,242,200,.96) 100%);
  border: 2px solid #e8b840;
  border-top: 4px solid #ffa000;
  border-radius: 12px;
  box-shadow:
    0 6px 0 #b07800,
    0 10px 16px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* 上部の輝きライン */
.rq-magic-box::before {
  content: "";
  position: absolute;
  top: 6px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  border-radius: 50%;
}

.rq-magic-box::after { content: none; }

.rq-magic-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .26em;
  color: #8a6010;
  margin-bottom: 14px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(255,255,255,.7);
}

/* 数字スロット行 */
.rq-magic-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 68px;
  padding: 0 4px;
}

/* ファンタジー宝石ディスプレイ */
.rq-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 60px;
  background: linear-gradient(180deg, #1a3870 0%, #0e2250 100%);
  border: 2px solid #4a80d8;
  border-bottom: 3px solid #0a1840;
  border-radius: 8px;
  box-shadow:
    0 5px 0 #060e28,
    inset 0 1px 0 rgba(120,180,255,.3),
    inset 0 0 12px rgba(0,0,0,.5);
  font-size: 28px;
  font-weight: 900;
  color: #ffe840;
  text-shadow:
    0 0 8px rgba(255,220,0,.8),
    0 0 16px rgba(255,200,0,.4),
    2px 2px 0 rgba(0,0,0,.5);
  flex-shrink: 0;
}

/* 封印スロット（? 点滅） */
@keyframes rqSlotPulse {
  0%, 100% {
    background: linear-gradient(180deg, #2a1060 0%, #180840 100%);
    border-color: #6030a0;
    box-shadow: 0 5px 0 #060418, inset 0 0 12px rgba(100,0,200,.2);
  }
  50% {
    background: linear-gradient(180deg, #381870 0%, #220e50 100%);
    border-color: #9050d0;
    box-shadow: 0 5px 0 #060418, inset 0 0 14px rgba(140,40,255,.3), 0 0 10px rgba(120,40,220,.2);
  }
}

.rq-digit--hidden {
  color: rgba(180,100,255,.35);
  text-shadow: 0 0 6px rgba(160,80,255,.3);
  animation: rqSlotPulse 1.5s ease-in-out infinite;
  font-size: 22px;
}

/* カウントダウンバー */
.rq-countdown-bar {
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 3px;
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
}

.rq-countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6820, #ffa800, #ffe840);
  width: 100%;
  border-radius: 3px;
}

/* メッセージ */
.rq-magic-msg {
  margin-top: 12px;
  font-size: 12px;
  color: #8a7040;
  letter-spacing: .05em;
  min-height: 18px;
}

/* -- 入力エリア -- */

.rq-input-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .24em;
  color: #7a8a50;
  text-align: center;
  margin-bottom: 7px;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}

.rq-input {
  display: block;
  width: 100%;
  height: 62px;
  background: linear-gradient(180deg, #1a3870 0%, #0e2250 100%);
  border: 2px solid #4a80d8;
  border-bottom: 5px solid #0a1840;
  border-radius: 10px;
  box-shadow:
    0 6px 0 #060e28,
    inset 0 1px 0 rgba(120,180,255,.25),
    inset 0 0 12px rgba(0,0,0,.4);
  color: #ffe840;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .22em;
  outline: none;
  text-shadow: 0 0 8px rgba(255,220,0,.7), 2px 2px 0 rgba(0,0,0,.4);
}

.rq-input:focus {
  border-color: #70a8ff;
  box-shadow: 0 6px 0 #060e28, 0 0 0 3px rgba(255,220,0,.3), inset 0 1px 0 rgba(120,180,255,.3);
}
.rq-input:disabled { opacity: .3; }

/* -- フラッシュ演出 -- */

@keyframes rqFlashOk {
  0%, 100% { border-top-color: #ffa000; box-shadow: 0 6px 0 #b07800, 0 10px 16px rgba(0,0,0,.12); }
  35%      { border-top-color: #40c840; box-shadow: 0 6px 0 #208020, 0 0 24px rgba(60,200,60,.35); }
}

@keyframes rqShakeNg {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-8px); border-top-color: #e03020; }
  30%      { transform: translateX(8px);  border-top-color: #e03020; }
  50%      { transform: translateX(-5px); }
  70%      { transform: translateX(5px); }
}

.rq-magic-box.flash-ok { animation: rqFlashOk .5s ease; }
.rq-magic-box.flash-ng { animation: rqShakeNg .45s ease; }

/* -- 結果画面 -- */

.rq-result-box {
  position: relative;
  text-align: center;
  padding: 26px 16px 22px;
  background: linear-gradient(180deg, rgba(255,252,230,.96) 0%, rgba(255,242,200,.96) 100%);
  border: 2px solid #e8b840;
  border-top: 4px solid #ffa000;
  border-radius: 14px;
  box-shadow:
    0 6px 0 #b07800,
    0 10px 20px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.9);
  margin-bottom: 14px;
}

.rq-result-box::before {
  content: "\2B50 ";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.rq-result-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  color: #c04800;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 rgba(255,255,255,.7);
}

.rq-result-title {
  font-size: 34px;
  font-weight: 900;
  color: #1a3a7a;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow:
    2px 2px 0 rgba(255,255,255,.8),
    0 4px 8px rgba(20,60,160,.2);
}

.rq-result-title--fail {
  color: #880010;
  text-shadow: 2px 2px 0 rgba(255,255,255,.8), 0 4px 8px rgba(180,0,0,.2);
}

.rq-result-msg {
  font-size: 13px;
  color: #5a6a50;
  line-height: 1.7;
}

.rq-result-answer {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 900;
  color: #1a60c0;
  letter-spacing: .1em;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}

.rq-result-scores {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(180,140,0,.3);
}

.rq-result-sc-item { text-align: center; }

.rq-result-sc-label {
  font-size: 8px;
  font-weight: 900;
  color: #aaa070;
  letter-spacing: .18em;
  margin-bottom: 4px;
}

.rq-result-sc-val {
  font-size: 30px;
  font-weight: 900;
  color: #c06000;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(255,255,255,.7), 2px 2px 0 rgba(0,0,0,.08);
}

.rq-result-sc-val--hi { color: #1a3a7a; text-shadow: 1px 1px 0 rgba(255,255,255,.8); }

@keyframes rqNewRec {
  from { opacity: .6; transform: scale(.96) rotate(-1deg); }
  to   { opacity: 1;  transform: scale(1.04) rotate(1deg); }
}

.rq-new-record {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: #c04800;
  letter-spacing: .16em;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8), 0 0 12px rgba(255,140,0,.4);
  animation: rqNewRec .5s ease-in-out infinite alternate;
}

/* -- ジャンル解放カード -- */
/* -- ジャンル解放カード（フレーム囲み） -- */
.rq-genre-unlock {
  margin: 14px 0 12px;
  padding: 14px 16px 16px;
  background: rgba(4, 14, 48, .75);
  border: 1.5px solid rgba(255, 200, 0, .6);
  border-radius: 16px;
  box-shadow:
    0 0 22px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  text-align: center;
}
.rq-genre-unlock-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255,200,0,.2);
  border: 1px solid rgba(255,200,0,.5);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #ffd060;
  text-shadow: 0 0 8px rgba(255,200,0,.5);
  margin-bottom: 12px;
}
.rq-genre-unlock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,220,80,.1);
  border: 1px solid rgba(255,200,0,.3);
  margin-bottom: 14px;
}
.rq-genre-unlock-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rq-genre-tag {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 20px rgba(255,200,0,.8),
    0 2px 0 rgba(0,0,0,.4);
  letter-spacing: .06em;
}

/* -- Wave Separators（::before 絶対配置方式） -- */
/*
  各セクションの ::before を position:absolute で padding 領域に重ねる。
  z-index 競合なし・overflow:hidden の影響なし・隙間ゼロが保証される。
  SVGは「前セクションの色を波形で上部に塗りつぶす」形状。
*/

/* 波を受け取るセクション共通：position:relative と上部スペース */
.time,
.quest-section,
.genre,
.start {
  position: relative;
}

/* 波の ::before 共通スタイル */
.time::before,
.quest-section::before,
.genre::before,
.start::before {
  content: "";
  position: absolute;
  top: -7px;   /* 5px 上に伸ばして前セクションとの隙間を完全につぶす */
  left: -18px;
  right: -18px;
  height: 61px; /* top:-5px 分を足して波の高さを維持 */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* training(#f5f8ff) -> time */
.time::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 61'%3E%3Cpath d='M0,30 C80,8 160,52 240,30 C320,8 400,52 480,30 L480,0 L0,0 Z' fill='%23f5f8ff'/%3E%3C/svg%3E");
}

/* time(#e8f8ff) -> quest */
.quest-section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 61'%3E%3Cpath d='M0,30 C80,8 160,52 240,30 C320,8 400,52 480,30 L480,0 L0,0 Z' fill='%23e8f8ff'/%3E%3C/svg%3E");
}

/* quest(#eef5ff) -> genre */
.genre::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 61'%3E%3Cpath d='M0,30 C80,8 160,52 240,30 C320,8 400,52 480,30 L480,0 L0,0 Z' fill='%231e3a7e'/%3E%3C/svg%3E");
}

/* genre(#102653) -> start */
.start::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 61'%3E%3Cpath d='M0,30 C80,8 160,52 240,30 C320,8 400,52 480,30 L480,0 L0,0 Z' fill='%23102653'/%3E%3C/svg%3E");
}

/* Training */

.training {
  padding-bottom: 24px; /* カード shadow が切れないよう少し残す */
  background: linear-gradient(180deg, #e8f5ff 0%, #f5f8ff 100%);
}

/* フルブリード画像バナー */
.train-visual {
  display: block;
  width: calc(100% + 36px);
  margin: -30px -18px 20px;
}

.train-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* カード共通 */
.train-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 20px;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .1s;
}

.train-card:active { transform: translateY(6px); }

/* 右上の装飾円（奥行き感） */
.train-card::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  pointer-events: none;
}
.train-card::after {
  content: "";
  position: absolute;
  bottom: -20px; right: 30px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}

/* 緑ゾーン：記憶力 */
.train-card--mem {
  background: linear-gradient(135deg, #52d040 0%, #28a820 50%, #167010 100%);
  box-shadow: 0 8px 0 #0a4808, 0 12px 20px rgba(20,100,10,.35);
}

/* 青ゾーン：判断力 */
.train-card--jdg {
  background: linear-gradient(135deg, #58c0ff 0%, #1888e8 50%, #0550c0 100%);
  box-shadow: 0 8px 0 #023080, 0 12px 20px rgba(10,60,180,.35);
}

/* 紫ゾーン：ひらめき */
.train-card--ide {
  background: linear-gradient(135deg, #e070ff 0%, #9030c8 50%, #5810a0 100%);
  box-shadow: 0 8px 0 #300870, 0 12px 20px rgba(100,20,200,.35);
}

/* アイコン共通 */
.icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.2);
  border: 2.5px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.4);
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}

.icon--mem {}
.icon--jdg {}
.icon--ide {}

/* テキスト：白 */
.train-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
}

.train-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

.train-tag {
  display: inline-flex;
  margin-top: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  background: rgba(255,255,255,.22);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}

/* Time */

.time {
  padding-top: 61px; /* ::before の波スペース */
  padding-bottom: 30px;
  background: linear-gradient(180deg, #3fa8e0 0%, #6ec6f0 25%, #b0dcf5 60%, #e8f8ff 100%);
}

/* フルブリード画像：section の padding を相殺 */
.time-visual {
  display: block;
  width: calc(100% + 36px);   /* 18px x 2 */
  margin: 0 -18px;
}

/* カード：画像の真下に配置 */
.time-card {
  margin-top: 20px;
  padding: 24px 18px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(30,100,200,.15), 0 10px 24px rgba(20,80,180,.1);
  text-align: center;
}

/* 達成バッジ風 */
.time-label {
  display: inline-flex;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe840 0%, #ffa800 100%);
  color: #5a2400;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 0 #a06000, inset 0 1px 0 rgba(255,255,255,.5);
  text-shadow: 1px 1px 0 rgba(255,255,255,.3);
}

.time-card h2 {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .01em;
  /* 濃紺->青グラデーションテキスト */
  background: linear-gradient(145deg, #082060 0%, #1a60d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ゴールドアンダーライン */
.time-card h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd200 0%, #ff8000 100%);
  box-shadow: 0 2px 10px rgba(255,140,0,.45);
  margin: 12px auto 0;
}

.time-card > p {
  margin: 14px 0 20px;
  color: #5a7090;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
}

/* -- ステージグリッド -- */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
}

/* ステップ間の点線パス */
.time-grid::before {
  content: "";
  position: absolute;
  top: 42px;
  left: calc(33.33% - 4px);
  right: calc(33.33% - 4px);
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(100,160,240,.4) 0px, rgba(100,160,240,.4) 6px,
    transparent 6px, transparent 12px
  );
  pointer-events: none;
  z-index: 0;
}

/* 各ステップカード */
.time-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 16px;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  gap: 2px;
}

/* 朝：日の出オレンジ */
.time-step--am {
  background: linear-gradient(160deg, #ffee60 0%, #ff8c10 100%);
  box-shadow: 0 6px 0 #b85800;
}

/* 昼：フォレストグリーン */
.time-step--pm {
  background: linear-gradient(160deg, #80ec60 0%, #1ea818 100%);
  box-shadow: 0 6px 0 #0e6808;
}

/* 夜：星空ブルー */
.time-step--night {
  background: linear-gradient(160deg, #8090ff 0%, #1838e0 100%);
  box-shadow: 0 6px 0 #0818a8;
}

/* 絵文字アイコン */
.time-step-circle {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.time-step b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 1px 2px 0 rgba(0,0,0,.25);
}

.time-step span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  line-height: 1.4;
  text-align: center;
}

/* -- Quest Section -- */

.quest-section {
  padding-top: 61px; /* ::before 波スペース */
  padding-bottom: 36px;
  background: linear-gradient(180deg, #0e1c40 0%, #18306a 60%, #1e3a7e 100%);
}

/* 見出しを白系に */
.quest-section .kicker {
  background: rgba(255,210,0,.15);
  color: #ffd200;
  border: 1px solid rgba(255,210,0,.35);
  box-shadow: 0 4px 0 rgba(0,0,0,.3), 0 6px 18px rgba(255,200,0,.15);
}
/* quest: 白->ゴールドグラデーションテキスト */
.quest-section .section-head h2 {
  background: linear-gradient(145deg, #ffffff 0%, #ffd080 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quest-section .section-head h2::after {
  box-shadow: 0 2px 14px rgba(255,210,0,.65);
}
.quest-section .section-head p  { color: rgba(255,255,255,.75); margin-top: 12px; }

/* 挿絵 */
.quest-visual {
  display: block;
  width: calc(100% + 36px);
  margin: 20px -18px 24px;
  border-radius: 16px 16px 0 0;
}

.quest-list {
  display: grid;
  gap: 12px;
}

/* -- 難易度タブ -- */

.qtab-bar {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.qtab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .1s, filter .2s;
}
.qtab-btn:not(.is-active) { filter: brightness(.55) saturate(.6); }
.qtab-btn.is-active { transform: translateY(-2px); }
.qtab-btn:active { transform: translateY(2px); }

.qtab-btn-icon { font-size: 18px; line-height: 1; }
.qtab-btn-label { font-size: 11px; font-weight: 900; }

/* 初級: 緑 */
.qtab-btn--easy {
  background: linear-gradient(145deg, #28be68, #0e8840);
  box-shadow: 0 5px 0 #0a6030, 0 8px 20px rgba(20,160,80,.4);
}
/* 中級: 青紫 */
.qtab-btn--mid {
  background: linear-gradient(145deg, #4898f8, #1058d0);
  box-shadow: 0 5px 0 #0838a0, 0 8px 20px rgba(20,80,220,.4);
}
/* 上級: 赤炎 */
.qtab-btn--hard {
  background: linear-gradient(145deg, #f05838, #b82010);
  box-shadow: 0 5px 0 #801008, 0 8px 20px rgba(200,40,20,.4);
}

/* アクティブ時のglow ring */
.qtab-btn.is-active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.55);
  pointer-events: none;
}

/* タブパネル */
.qtab-panel { animation: rqFadeIn .2s ease-out both; }
.qtab-panel--hidden { display: none; }

/* 難易度ラベル */
.qtab-level-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.8);
  letter-spacing: .08em;
}
.qtab-level-label::before,
.qtab-level-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.2);
}

/* クエストカード */
.quest-card {
  display: block;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 10px 24px rgba(0,0,0,.2);
  text-decoration: none;
  overflow: hidden;
  transition: transform .12s;
}
.quest-card:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }

/* カード上部ゴールドライン */
.quest-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #ffd200 0%, #ffaa00 50%, #ff7800 100%);
}

.quest-card-inner {
  padding: 14px 16px 16px;
}

/* No + 編バッジ行 */
.quest-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.quest-no {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0e1c40;
  color: #ffd200;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.quest-type {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd200 0%, #ffaa00 100%);
  color: #3a1800;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 0 #a06000;
}

/* ジャンルタイトル */
.quest-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 900;
  color: #0e1c40;
  line-height: 1.3;
}

/* 問題文：3行でも崩れない */
.quest-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #4a5870;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 挑戦するボタン */
.quest-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd200 0%, #ff9800 100%);
  color: #3a1800;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 0 #a06000;
  letter-spacing: .04em;
}

.more {
  margin-top: 20px;
  text-align: center;
}

.more a {
  display: inline-flex;
  justify-content: center;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,210,0,.5);
  color: #ffd200;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
}

/* ==============================
   Final CTA (start) -- キラキラ版
   ============================== */

@keyframes glitter-twinkle {
  0%   { opacity: .15; transform: scale(.6) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.3) rotate(15deg); }
  100% { opacity: .2;  transform: scale(.7) rotate(-10deg); }
}

@keyframes btn-shimmer {
  0%   { left: -120%; }
  100% { left: 200%; }
}

@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255,180,0,.3), 0 2px 0 rgba(0,0,0,.5); }
  50%       { text-shadow: 0 0 60px rgba(255,200,0,.9), 0 0 100px rgba(255,120,0,.5), 0 2px 0 rgba(0,0,0,.5); }
}

@keyframes kicker-shine {
  0%   { background-position: -200% center; }
  100% { background-position: 300% center; }
}

@keyframes border-glow {
  0%, 100% { border-color: rgba(255,200,0,.2); box-shadow: none; }
  50%       { border-color: rgba(255,220,0,.65); box-shadow: 0 0 12px rgba(255,200,0,.25); }
}

@keyframes icon-pop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.2) rotate(-8deg); }
}

/* - セクション - */
.start {
  padding-top: 61px;
  padding-bottom: 0;
  background: linear-gradient(180deg, #0d0620 0%, #1a0e42 40%, #100828 100%);
  overflow: hidden;
  position: relative;
}

/* フルブリード挿絵 */
.start-visual {
  display: block;
  width: calc(100% + 36px);
  margin: 0 -18px;
}

/* コンテンツボディ */
.start-body {
  padding: 36px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* -- 背景きらきら星 -- */
.spark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: glitter-twinkle 2.4s ease-in-out infinite;
  z-index: 0;
}
.spark-1  { top:  6%; left:  4%; font-size: 16px; color: #ffd200; animation-delay: 0s; }
.spark-2  { top: 10%; right: 7%; font-size: 22px; color: #ffee55; animation-delay: .4s; }
.spark-3  { top: 22%; left:  8%; font-size: 10px; color: rgba(255,220,80,.9); animation-delay: .9s; }
.spark-4  { top: 35%; right: 3%; font-size: 14px; color: #ffe040; animation-delay: .2s; }
.spark-5  { top: 48%; left:  2%; font-size: 18px; color: rgba(255,200,0,.8); animation-delay: 1.1s; }
.spark-6  { top: 62%; right: 9%; font-size: 12px; color: #ffd200; animation-delay: .6s; }
.spark-7  { top: 76%; left: 12%; font-size: 20px; color: rgba(255,230,50,.7); animation-delay: 1.5s; }
.spark-8  { top: 85%; right: 5%; font-size: 10px; color: #ffee55; animation-delay: .3s; }

/* - kicker - */
.start .kicker {
  background: linear-gradient(90deg,
    rgba(255,200,0,.1) 0%,
    rgba(255,240,100,.4) 40%,
    rgba(255,200,0,.1) 80%);
  background-size: 200% auto;
  color: #ffd200;
  border: 1px solid rgba(255,210,0,.5);
  box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 6px 20px rgba(255,200,0,.2);
  animation: kicker-shine 3s linear infinite;
  z-index: 1;
  position: relative;
}

/* - タイトル - */
.start-ttl {
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -.01em;
  animation: title-glow 2.8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* start h2 のゴールドアンダーライン */
.start-ttl::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd200 0%, #ff8000 100%);
  box-shadow: 0 2px 16px rgba(255,200,0,.7);
  margin: 14px auto 18px;
}

/* - リード - */
.start-lead {
  margin: 0 0 28px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* - フィーチャーポイント - */
.start-points {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 1;
}

.start-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,200,0,.2);
  backdrop-filter: blur(6px);
  animation: border-glow 3s ease-in-out infinite;
}
.start-points li:nth-child(2) { animation-delay: 1s; }
.start-points li:nth-child(3) { animation-delay: 2s; }

.sp-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
  animation: icon-pop 2.5s ease-in-out infinite;
}
.start-points li:nth-child(2) .sp-icon { animation-delay: .8s; }
.start-points li:nth-child(3) .sp-icon { animation-delay: 1.6s; }

.start-points strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #ffd200;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255,210,0,.5);
}

.start-points span {
  font-size: 12px;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

/* - 巨大CTAボタン（シマーアニメ付き） - */
/* ======================================
   会員登録ボタン -- 高品質アニメ版
   ====================================== */

/* ======================================
   会員登録ボタン -- Uiverse 刷新版
   ====================================== */

/* 泡がぷくぷく浮き上がる */
@keyframes reg-bubble-a {
  0%   { background-position: 0px 100%,  16px 120%, 8px  80%; }
  100% { background-position: 0px -40px, 16px -30px, 8px -50px; }
}
@keyframes reg-bubble-b {
  0%   { background-position: 6px 110%, 22px 90%, 14px 130%; }
  100% { background-position: 6px -50px, 22px -40px, 14px -30px; }
}
/* 3秒ごとにぐっと押し込んで戻る */
@keyframes reg-press {
  0%, 18%, 100% {
    transform: translate(-5px, -5px);
    box-shadow:
      1px 1px 0 0 #0a0400, 2px 2px 0 0 #0a0400,
      3px 3px 0 0 #0a0400, 4px 4px 0 0 #0a0400,
      5px 5px 0 0 #0a0400,
      0 0 0 2.5px #fff8e0, 1px 1px 0 2.5px #fff8e0,
      2px 2px 0 2.5px #fff8e0, 3px 3px 0 2.5px #fff8e0,
      4px 4px 0 2.5px #fff8e0, 5px 5px 0 2.5px #fff8e0,
      5.5px 5.5px 0 2.5px #fff8e0;
  }
  9% {
    transform: translate(0, 0);
    box-shadow:
      0 0 0 2.5px #fff8e0,
      0 6px 28px rgba(255,180,0,.5);
  }
}
/* inner のドット背景をゆらす */
@keyframes reg-glow {
  0%,100% { box-shadow: inset 0 0 20px rgba(255,200,0,.2); }
  50%      { box-shadow: inset 0 0 40px rgba(255,180,0,.45); }
}

/* - ラッパー - */
.reg-wrap {
  position: relative;
  z-index: 1;
  /* translate(-5px,-5px) 分の余白を確保 */
  padding: 5px 8px 10px 8px;
}

/* - 外枠ボタン（ダーク＋オフセットシャドウ積み） - */
.reg-btn {
  display: block;
  width: 100%;
  padding: 1.5px;
  border-radius: 999px;
  background-color: #0a0400;
  text-decoration: none;
  cursor: pointer;
  /* オフセット積み上げシャドウ */
  transform: translate(-5px, -5px);
  box-shadow:
    1px 1px 0 0 #0a0400, 2px 2px 0 0 #0a0400,
    3px 3px 0 0 #0a0400, 4px 4px 0 0 #0a0400,
    5px 5px 0 0 #0a0400,
    0 0 0 2.5px #fff8e0, 1px 1px 0 2.5px #fff8e0,
    2px 2px 0 2.5px #fff8e0, 3px 3px 0 2.5px #fff8e0,
    4px 4px 0 2.5px #fff8e0, 5px 5px 0 2.5px #fff8e0,
    5.5px 5.5px 0 2.5px #fff8e0;
  animation: reg-press 3.5s ease-in-out infinite;
}
.reg-btn:active {
  transform: translate(0, 0) !important;
  animation: none;
  box-shadow: 0 0 0 2.5px #fff8e0 !important;
}

/* - インナー（ゴールド＋ドットテクスチャ） - */
.reg-inner {
  position: relative;
  pointer-events: none;
  background: linear-gradient(145deg, #ffe040 0%, #ffb800 50%, #ff8800 100%);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.38);
  overflow: hidden;
  animation: reg-glow 2.8s ease-in-out infinite;
}

/* 泡ぷくぷくオーバーレイ（2層で密度・タイミングをずらす） */
.reg-inner::before,
.reg-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.reg-inner::before {
  background-image:
    radial-gradient(circle 5px, rgba(255,255,255,.65) 40%, transparent 70%),
    radial-gradient(circle 3px, rgba(255,255,255,.5)  40%, transparent 70%),
    radial-gradient(circle 4px, rgba(255,255,255,.55) 40%, transparent 70%);
  background-size: 28px 36px, 22px 28px, 32px 42px;
  animation: reg-bubble-a 2.2s linear infinite;
}
.reg-inner::after {
  background-image:
    radial-gradient(circle 4px, rgba(255,255,255,.5)  40%, transparent 70%),
    radial-gradient(circle 6px, rgba(255,255,255,.45) 40%, transparent 70%),
    radial-gradient(circle 3px, rgba(255,255,255,.6)  40%, transparent 70%);
  background-size: 24px 30px, 34px 44px, 20px 26px;
  animation: reg-bubble-b 2.8s linear infinite;
  animation-delay: -.9s;
}

/* テキスト行 */
.reg-inner > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1.25rem 2rem;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .07em;
  color: #1a0800;
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,.3));
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

/* - 補足テキスト - */
.start-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
  position: relative;
  z-index: 1;
}

/* Genre */

.genre {
  padding-top: 61px; /* ::before の波スペース */
  background: #102653;
  color: #fff;
}

/* genre: 白->ゴールドグラデーションテキスト */
.genre .section-head h2 {
  background: linear-gradient(145deg, #ffffff 0%, #ffd080 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.genre .section-head h2::after {
  box-shadow: 0 2px 14px rgba(255,210,0,.65);
}

.genre .section-head p {
  color: rgba(255,255,255,.72);
}

/* -- ジャンルリスト -- */

.genre-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform .12s;
  min-height: 96px;
}
.genre-card:active { transform: scale(.96); }

/* 上部カラーバー */
.genre-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  flex-shrink: 0;
  margin-bottom: 14px;
}

/* 6色サイクル -- カラーバー */
.genre-item:nth-child(6n+1) .genre-card::before { background: linear-gradient(90deg, #8b30ff, #b060ff); }
.genre-item:nth-child(6n+2) .genre-card::before { background: linear-gradient(90deg, #1060e0, #4090ff); }
.genre-item:nth-child(6n+3) .genre-card::before { background: linear-gradient(90deg, #10a050, #40c880); }
.genre-item:nth-child(6n+4) .genre-card::before { background: linear-gradient(90deg, #d03828, #f06048); }
.genre-item:nth-child(6n+5) .genre-card::before { background: linear-gradient(90deg, #cc8800, #ffbb00); }
.genre-item:nth-child(6n+6) .genre-card::before { background: linear-gradient(90deg, #008898, #00b8c8); }

/* 6色サイクル -- カードボーダー */
.genre-item:nth-child(6n+1) .genre-card { border-color: rgba(160,80,255,.35); }
.genre-item:nth-child(6n+2) .genre-card { border-color: rgba(60,130,255,.35); }
.genre-item:nth-child(6n+3) .genre-card { border-color: rgba(40,190,100,.35); }
.genre-item:nth-child(6n+4) .genre-card { border-color: rgba(240,80,60,.35); }
.genre-item:nth-child(6n+5) .genre-card { border-color: rgba(255,185,0,.35); }
.genre-item:nth-child(6n+6) .genre-card { border-color: rgba(0,185,200,.35); }

/* アイコンバッジ（1文字） */
.genre-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 8px;
  font-size: 0; /* テキスト非表示 */
  overflow: hidden;
}
.genre-badge::before {
  content: "\2605";
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.genre-item:nth-child(6n+1) .genre-badge { background: linear-gradient(135deg, #9b40ff, #6010d0); box-shadow: 0 3px 12px rgba(140,40,255,.5); }
.genre-item:nth-child(6n+2) .genre-badge { background: linear-gradient(135deg, #2070f0, #0840c8); box-shadow: 0 3px 12px rgba(30,80,240,.5); }
.genre-item:nth-child(6n+3) .genre-badge { background: linear-gradient(135deg, #20b060, #0a8040); box-shadow: 0 3px 12px rgba(20,160,80,.5); }
.genre-item:nth-child(6n+4) .genre-badge { background: linear-gradient(135deg, #e04838, #b02018); box-shadow: 0 3px 12px rgba(220,60,40,.5); }
.genre-item:nth-child(6n+5) .genre-badge { background: linear-gradient(135deg, #dda000, #aa7000); box-shadow: 0 3px 12px rgba(220,160,0,.5); }
.genre-item:nth-child(6n+6) .genre-badge { background: linear-gradient(135deg, #00a8b8, #007080); box-shadow: 0 3px 12px rgba(0,160,180,.5); }

/* ジャンル名ラベル */
.genre-label {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: .04em;
  line-height: 1.3;
  padding: 0 8px;
}

/* 矢印 */
.genre-arr {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 8px rgba(255,200,0,.5);
}

/* -- 登録CTA -- */
.genre-toroku {
  margin-top: 24px;
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,200,0,.3);
  text-align: center;
}

.genre-toroku-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

/* - ジャンル登録ボタン（reg-btn と同系デザイン、横幅はauto） - */
.genre-toroku-btn {
  display: inline-block;
  padding: 1.5px;
  border-radius: 999px;
  background-color: #0a0400;
  text-decoration: none;
  cursor: pointer;
  transform: translate(-4px, -4px);
  box-shadow:
    1px 1px 0 0 #0a0400, 2px 2px 0 0 #0a0400,
    3px 3px 0 0 #0a0400, 4px 4px 0 0 #0a0400,
    0 0 0 2.5px #fff8e0, 1px 1px 0 2.5px #fff8e0,
    2px 2px 0 2.5px #fff8e0, 3px 3px 0 2.5px #fff8e0,
    4px 4px 0 2.5px #fff8e0, 4.5px 4.5px 0 2.5px #fff8e0;
  animation: reg-press 3.5s ease-in-out infinite;
  animation-delay: 1s;
}
.genre-toroku-btn:active {
  transform: translate(0, 0) !important;
  animation: none;
  box-shadow: 0 0 0 2.5px #fff8e0 !important;
}
.genre-toroku-btn .reg-inner {
  pointer-events: none;
}
.genre-toroku-btn .reg-inner > span {
  padding: .85rem 1.6rem;
  font-size: 15px;
}

.genre-toroku-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}

.footer {
  padding: 0;
  background: #040e28;
}

/* == サイトフッター == */

.ft-body {
  padding: 32px 20px 0;
}

/* ロゴ・キャッチ */
.ft-brand {
  text-align: center;
  margin-bottom: 24px;
}
.ft-logo-img {
  height: 52px;
  width: auto;
  opacity: .9;
  display: block;
  margin: 0 auto 8px;
}
.ft-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
}

/* 仕切り線 */
.ft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,200,0,.3) 30%, rgba(255,200,0,.3) 70%, transparent);
  margin: 0 0 20px;
}

/* リンクリスト */
.ft-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ft-nav li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 10px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.ft-nav li a::before {
  content: "\203A ";
  color: rgba(255,200,0,.6);
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.ft-nav li a:active {
  background: rgba(255,255,255,.07);
  color: #ffd200;
}

/* コピーライト */
.ft-copy {
  text-align: center;
  padding: 16px 20px 40px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* -- Floating CTA -- */


.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(4,10,35,.97) 55%, transparent 100%);
  /* 初期：画面外に隠す */
  opacity: 0;
  transform: translateY(110%);
  transition: opacity .35s ease, transform .42s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}

/* JS でこのクラスを付与すると表示 */
.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* floating-cta 内の reg-wrap を幅いっぱいに */
.fcta-wrap {
  position: relative;
}
.fcta-wrap .reg-wrap {
  padding: 5px 6px 8px;
}



/* ボタン料金表示 */
.reg-line-price{
    display:block;
    margin-top:2px;
    font-size:12px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:0;
    color:rgba(40,20,0,.75);
}
.reg-wrap--twoline .reg-inner .reg-line-price{
  display:block;
  margin-top:2px;
  font-size:12px !important;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0;
}