:root{
  color-scheme: dark;

  /* ===== 全体：もう一段“明るいネイビー” ===== */
  --bg: #14356f;

  /* 文字 */
  --text: #f6fbff;
  --muted: rgba(246,251,255,.82);

  /* ガラス感を弱める（枠を消す方向） */
  --frameEdge: rgba(0,0,0,0);

  /* ボタン（明るめ） */
  --btnA: rgba(45, 125, 255, .78);
  --btnB: rgba(170, 225, 255, .22);
  --btnEdge: rgba(210, 245, 255, .30);

  /* きらり */
  --shine: rgba(235, 252, 255, .34);

  /* ロゴ色（アイコン寄せ） */
  --gold: #f5c84b;          /* SHOW GEO */
  --questBlue: #d9f2ff;     /* QUEST：白っぽい青白 */
  --questBlueCore: #6bbcff; /* 影の芯 */
}

*{ box-sizing:border-box; }

/* ★修正：html は「単色」だけにして継ぎ目の原因を消す */
html{
  height: 100%;
  min-height: 100%;
  background: var(--bg);
}

body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);

  /* ★修正：body に背景は持たせない（擬似要素で描く） */
  background: transparent;

  /* ★追加：擬似要素の基準 */
  position: relative;
}

/* ★追加：背景を「1枚」に固定して描画 → 下の境目を根絶 */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 760px at 50% 6%,  rgba(165,230,255,.44), transparent 60%),
    radial-gradient(1100px 700px at 50% 40%, rgba(120,200,255,.28), transparent 62%),
    radial-gradient(1100px 680px at 50% 92%, rgba(120,200,255,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 28%),
    var(--bg);
}

/* ===== フレーム（★ガラス板を完全に廃止） ===== */
.frame{
  /* ★修正：PCで左右に出る帯を消すためフル幅に */
  width: 100%;
  max-width: none;

  padding: 26px 22px;

  /* フル画面にするなら角丸は不要（外枠感も消える） */
  border-radius: 0;

  /* 枠線なし */
  border: none;

  /* ★ここが“板”だった：完全に透明へ */
  background: transparent;

  /* ★影とブラーも板感の原因なので撤去 */
  box-shadow: none;
  backdrop-filter: none;

  position: relative;

  /* ★overflow:hidden も「板のエッジ」を強調するので外す */
  overflow: visible;
}

/* ★縁の光（これが“枠”に見える主犯）を完全削除 */
.frame::after{
  content: none;
}

/* ★ここだけ修正：中身は中央寄せ＆最大幅（ボタンが横いっぱいに広がるのを止める） */
.screen{
  width: min(920px, 94vw);
  margin: 0 auto;
  position: relative;
}

/* ===== 背景地図 ===== */
.title-map{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.30;
  filter: drop-shadow(0 0 18px rgba(190,245,255,.28));
}
.title-map .map-svg{
  width: 128%;
  height: 128%;
  position:absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events:none;
}

/* ===== タイトルの“ふわっ”演出（下→上） ===== */
@media (prefers-reduced-motion: no-preference){
  .hero{
    animation: heroUp .8s cubic-bezier(.2,.9,.2,1) both;
  }
  @keyframes heroUp{
    0%{ opacity:0; transform: translateY(14px); filter: blur(1px); }
    100%{ opacity:1; transform: translateY(0); filter: blur(0); }
  }
}

.hero{
  text-align:center;
  padding: 14px 6px 12px;
  position: relative;
  z-index: 1;
}

.logo{
  display:inline-block;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 22px rgba(180,240,255,.40));
  margin-bottom: 10px;
}

.logo-line{
  font-size: clamp(34px, 6vw, 58px);
  white-space: nowrap;
  text-shadow:
    0 0 12px rgba(255,255,255,.35),
    0 0 26px rgba(165,230,255,.34);
}

/* SHOW GEO：金＋縁取り感（アイコン寄せ） */
.logo-line.showgeo{
  color: var(--gold);
  text-shadow:
    0 0 10px rgba(255, 235, 170, .32),
    0 2px 0 rgba(0,0,0,.22),
    0 0 24px rgba(165,230,255,.20);
}

/* QUEST 行：縮めても⚡が消えにくい */
.logo-boltline{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap: .10em;              /* ⚡横の余白を最小 */
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* QUEST：青白く＋縁取り（“見えにくい”を解消） */
.quest{
  display:inline-block;
  color: var(--questBlue);
  text-shadow:
    0 2px 0 rgba(0,0,0,.26),
    0 0 12px rgba(255,255,255,.38),
    0 0 18px rgba(120,200,255,.38),
    0 0 28px rgba(90,170,255,.22);
}

/* ⚡：常時ほんのり＋たまにキラッ */
.bolt{
  display:inline-block;
  font-size: .9em;
  margin: 0;
  text-shadow:
    0 0 12px rgba(255,255,255,.30),
    0 0 22px rgba(170,240,255,.44),
    0 0 32px rgba(170,240,255,.22);
  animation: boltShine 4.8s ease-in-out infinite;
}
@keyframes boltShine{
  0%, 78%, 100% { filter: brightness(1); opacity: .92; }
  82% { filter: brightness(1.35); opacity: 1; }
  86% { filter: brightness(1.05); opacity: .95; }
}

.jp-title{
  font-size: 18px;
  color: var(--muted);
  margin-top: 2px;
}
.tagline{
  font-size: 16px;
  color: rgba(246,251,255,.78);
  margin-top: 8px;
}

.menu{ margin-top: 18px; position: relative; z-index: 1; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 700px){
  .frame{ padding: 22px 16px; }
  .grid-2{ gap: 12px; }
}

.divider{ height: 18px; }

/* ===== ボタン共通 ===== */
.btn{
  border: 1px solid var(--btnEdge);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 42%),
    linear-gradient(135deg, var(--btnA), var(--btnB));
  border-radius: 22px;

  padding: 18px 16px;
  font-weight: 1000;
  letter-spacing: .3px;
  cursor: pointer;

  box-shadow:
    0 14px 30px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.12);

  transition: transform .08s ease, filter .12s ease;
  text-decoration: none;

  display:flex;
  align-items:center;
  justify-content:center;
}

.btn:hover{ filter: brightness(1.08); }
.btn:active{ transform: translateY(2px); }

.btn.primary{
  background:
    linear-gradient(180deg, rgba(230,252,255,.22), transparent 45%),
    linear-gradient(135deg, rgba(70,150,255,.98), rgba(170,235,255,.30));
  border-color: rgba(220,250,255,.48);
}

/* ===== 地方ボタン：文字の“重心”を絶対中央に固定 ===== */
.region{
  min-height: 92px;
  font-size: 24px;
  opacity: .96;
  text-shadow:
    0 2px 0 rgba(0,0,0,.28),
    0 0 14px rgba(255,255,255,.18);

  display: grid;
  place-items: center;
  text-align:center;
  line-height: 1.06;
}

.region .labelbox{
  display: inline-grid;
  grid-auto-rows: min-content;
  row-gap: 8px;
  justify-items: center;
  min-width: 4.6em;
}
.region .labelbox span{
  display:block;
  line-height: 1.06;
}

/* ===== 制覇モード ===== */
.conquest-wrap{ margin-top: 6px; }
.conquest-title{
  font-weight: 1000;
  color: rgba(246,251,255,.86);
  text-align:center;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 rgba(0,0,0,.22);
}

.conquest-grid{
  display:grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 700px){
  .conquest-grid{ gap: 10px; }
}

.conquest{
  min-height: 78px;
  font-size: 18px;
  opacity: .96;
  text-shadow:
    0 2px 0 rgba(0,0,0,.28),
    0 0 12px rgba(255,255,255,.16);
}

/* 3つとも“2行＆中央揃え”固定 */
.twoline{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height: 1.05;
  gap: 6px;
  text-align:center;
  width: 100%;
}

/* ===== きらり演出 ===== */
.crackle{
  position: relative;
  overflow: hidden;
}
.crackle::after{
  content:"";
  position:absolute;
  inset:-30%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
  opacity: 0;
  animation: crackle 4.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes crackle{
  0%, 70%, 100% { transform: translateX(-40%) rotate(18deg); opacity: 0; }
  76% { opacity: .30; }
  84% { transform: translateX(40%) rotate(18deg); opacity: 0; }
}

/* ===== フッター（見えなさすぎ → taglineと同系色に） ===== */
.site-footer{
  position: static;
  width: 100%;
  margin: 28px 0 0;
  padding-top: 22px;
  text-align: right;

  opacity: 1;
  font-size: 12px;
  letter-spacing: .1px;
}
.footer-link{
  text-decoration: none;
  color: rgba(246,251,255,.78);
}
.footer-link:hover{ opacity: .70; }