/* ==================================================
   生態系ウォーズ - 領域戦 / Territory Battle
   Roulette + 4 territory pages
   ================================================== */

@import url('main.css');

/* ====== 共通 ====== */
body.tb-body {
  background: var(--bg);
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
}

.tb-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(15, 11, 7, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.tb-nav a.tb-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DotGothic16', monospace; font-size: 12px;
  letter-spacing: 0.12em; color: var(--accent-yellow);
  text-decoration: none;
  border: 1.5px solid rgba(255,194,26,0.5);
  padding: 8px 14px; border-radius: 999px;
  transition: all 0.15s ease;
}
.tb-nav a.tb-back:hover { background: var(--accent-yellow); color: var(--ink); }
.tb-nav-title {
  font-family: 'DotGothic16', monospace;
  font-size: 12px; letter-spacing: 0.2em;
  color: rgba(245,239,224,0.7);
}
.tb-nav-title strong { color: var(--accent-yellow); }

/* ====== ルーレットページ ====== */
.tb-roulette-stage {
  min-height: calc(100vh - 60px);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,194,26,0.10), transparent 60%),
    radial-gradient(ellipse at 50% 90%, rgba(255,122,26,0.10), transparent 50%),
    linear-gradient(180deg, #14100C 0%, #1F1812 60%, #0F0B07 100%);
  color: #F5EFE0;
  padding: 60px 5vw 120px;
  overflow: hidden;
  position: relative;
}
.tb-roulette-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,194,26,0.10) 1.2px, transparent 1.8px);
  background-size: 14px 14px;
  pointer-events: none;
  opacity: 0.6;
}

.tb-roulette-inner {
  position: relative; max-width: 1100px; margin: 0 auto;
}
.tb-r-header { text-align: center; margin-bottom: 50px; }
.tb-r-label {
  font-family: 'DotGothic16', monospace;
  font-size: 13px; letter-spacing: 0.25em;
  color: var(--accent-yellow);
  margin-bottom: 14px;
}
.tb-r-title {
  font-family: 'Zen Antique', serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05; margin: 0 0 18px;
  color: #F5EFE0;
}
.tb-r-title .accent { color: var(--accent-yellow); }
.tb-r-sub {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px; line-height: 1.85;
  color: rgba(245,239,224,0.75);
  max-width: 560px;
  margin: 0 auto;
}

/* スロット */
.tb-slot-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin: 30px auto 60px;
  position: relative;
}
.tb-slot-pointer {
  font-family: 'DotGothic16', monospace;
  font-size: 28px; color: var(--accent-yellow);
  filter: drop-shadow(2px 2px 0 var(--line));
}
.tb-slot-pointer.right { transform: scaleX(-1); }

.tb-slot {
  width: clamp(260px, 38vw, 380px);
  height: 540px;
  background: var(--paper);
  border: 4px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-hard-lg), 0 0 0 8px rgba(255,194,26,0.10);
  position: relative;
  overflow: hidden;
}
.tb-slot-window {
  position: absolute; inset: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #0F0B07 0%, #1F1812 100%);
}
.tb-slot-reel {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column;
  will-change: transform;
}
.tb-slot-item {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  border-bottom: 2px dashed rgba(255,255,255,0.08);
  padding: 0 16px;
  text-align: center;
}
.tb-slot-item-bg {
  position: absolute; inset: 0;
  opacity: 0.85;
  z-index: 0;
}
.tb-slot-item-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.tb-slot-item .emoji {
  font-size: 64px; line-height: 1; margin-bottom: 6px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.4));
}
.tb-slot-item .ja {
  font-family: 'Zen Antique', serif;
  font-size: 32px; color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  line-height: 1;
}
.tb-slot-item .en {
  font-family: 'DotGothic16', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
}

/* スロット内の領域カラー */
.tb-slot-item.t-land  .tb-slot-item-bg { background: linear-gradient(135deg, #1E6B4F 0%, #0B3D2E 100%); }
.tb-slot-item.t-sky   .tb-slot-item-bg { background: linear-gradient(135deg, #4FA3D9 0%, #1B4A78 100%); }
.tb-slot-item.t-sea   .tb-slot-item-bg { background: linear-gradient(135deg, #1A6FBF 0%, #0B2E4B 100%); }
.tb-slot-item.t-eco   .tb-slot-item-bg { background: linear-gradient(135deg, #8E5BB4 0%, #3F2956 100%); }

/* スロットの中央ライン（当たり位置）と上下グラデ */
.tb-slot-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 170px;
  transform: translateY(-50%);
  border-top: 3px solid var(--accent-yellow);
  border-bottom: 3px solid var(--accent-yellow);
  box-shadow: inset 0 0 30px rgba(255,194,26,0.18);
  pointer-events: none;
  z-index: 2;
}
.tb-slot-fade {
  position: absolute; left: 0; right: 0;
  height: 90px; pointer-events: none; z-index: 2;
}
.tb-slot-fade.top { top: 0; background: linear-gradient(180deg, rgba(15,11,7,1) 0%, rgba(15,11,7,0) 100%); }
.tb-slot-fade.bot { bottom: 0; background: linear-gradient(0deg, rgba(15,11,7,1) 0%, rgba(15,11,7,0) 100%); }

/* SPINボタン */
.tb-spin-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Zen Antique', serif;
  font-size: 28px;
  background: var(--accent-yellow);
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 999px;
  padding: 22px 56px;
  cursor: pointer;
  box-shadow: var(--shadow-hard-lg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tb-spin-btn:hover:not(:disabled) {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--line);
}
.tb-spin-btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--line);
}
.tb-spin-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tb-spin-btn .mono {
  font-family: 'DotGothic16', monospace; font-size: 14px;
  letter-spacing: 0.18em; color: rgba(15,11,7,0.6);
}

.tb-actions { text-align: center; margin-top: 30px; }
.tb-prob-row {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.tb-prob {
  background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(245,239,224,0.25);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'DotGothic16', monospace;
  font-size: 12px;
  color: rgba(245,239,224,0.85);
}
.tb-prob .sw {
  width: 14px; height: 14px; border-radius: 4px;
  display: inline-block;
}

/* 結果オーバーレイ */
.tb-result-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,11,7,0.86);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 5vw;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.tb-result-overlay.is-open { opacity: 1; pointer-events: auto; }

.tb-result-card {
  width: 100%; max-width: 640px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--line);
  border-radius: 24px;
  box-shadow: 14px 14px 0 var(--line);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.18, 1, 0.3, 1);
}
.tb-result-overlay.is-open .tb-result-card { transform: translateY(0) scale(1); }

.tb-result-banner {
  padding: 36px 32px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tb-result-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: 0.7;
}
.tb-result-banner > * { position: relative; }
.tb-result-banner .label {
  font-family: 'DotGothic16', monospace;
  font-size: 12px; letter-spacing: 0.25em;
  margin-bottom: 12px; opacity: 0.85;
}
.tb-result-banner .emoji {
  font-size: 88px; line-height: 1; margin-bottom: 10px;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.25));
}
.tb-result-banner .ja {
  font-family: 'Zen Antique', serif;
  font-size: 56px; line-height: 1;
}
.tb-result-banner .en {
  font-family: 'DotGothic16', monospace;
  font-size: 12px; letter-spacing: 0.2em;
  margin-top: 8px; opacity: 0.85;
}

.tb-result-body { padding: 28px 32px 32px; }
.tb-result-body p {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px; line-height: 1.85;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 24px;
}
.tb-result-actions {
  display: flex; gap: 12px; flex-direction: column;
}
.tb-result-actions .pop-btn { width: 100%; justify-content: center; }
.tb-result-actions .pop-btn.ghost {
  background: transparent; color: var(--ink);
  border: 2.5px solid var(--ink);
}

/* バナー色 */
.banner-land  { background: linear-gradient(135deg, #1E6B4F 0%, #0B3D2E 100%); }
.banner-sky   { background: linear-gradient(135deg, #4FA3D9 0%, #1B4A78 100%); }
.banner-sea   { background: linear-gradient(135deg, #1A6FBF 0%, #0B2E4B 100%); }
.banner-eco   { background: linear-gradient(135deg, #8E5BB4 0%, #3F2956 100%); }

/* ====== 領域詳細ページ ====== */
body.tb-page-land  { --tt-c: #1E6B4F; --tt-c-dark: #0B3D2E; --tt-c-light: #B8D9C9; --tt-c-text: #F5EFE0; }
body.tb-page-sky   { --tt-c: #4FA3D9; --tt-c-dark: #1B4A78; --tt-c-light: #CEE5F4; --tt-c-text: #F5EFE0; }
body.tb-page-sea   { --tt-c: #1A6FBF; --tt-c-dark: #0B2E4B; --tt-c-light: #C0D6EA; --tt-c-text: #F5EFE0; }
body.tb-page-eco   { --tt-c: #8E5BB4; --tt-c-dark: #3F2956; --tt-c-light: #D8C7E6; --tt-c-text: #F5EFE0; }

/* キービジュアル・バナー（領域ページ最上部の写真） */
.tt-kv-banner {
  width: 100%;
  height: clamp(360px, 56vh, 620px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 3px solid var(--line);
}
.tt-kv-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,11,7,0.18) 0%, rgba(15,11,7,0) 30%, rgba(15,11,7,0) 70%, rgba(15,11,7,0.35) 100%);
  pointer-events: none;
}
.tt-kv-back {
  position: absolute; top: 22px; left: 5vw; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DotGothic16', monospace; font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  background: rgba(15,11,7,0.55);
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}
.tt-kv-back:hover { background: rgba(15,11,7,0.85); }

.tt-hero {
  position: relative;
  padding: 70px 5vw 110px;
  color: var(--tt-c-text);
  background: linear-gradient(160deg, var(--tt-c) 0%, var(--tt-c-dark) 100%);
  overflow: hidden;
  border-bottom: 3px solid var(--line);
}
.tt-hero.has-kv {
  background-color: var(--tt-c-dark);
  background-image:
    linear-gradient(180deg, rgba(15,11,7,0.45) 0%, rgba(15,11,7,0.25) 40%, rgba(15,11,7,0.55) 100%),
    var(--kv);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  min-height: 520px;
}
.tt-hero.has-kv::after { display: none; } /* 大絵文字ウォーターマークは消す */
.tt-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.4px, transparent 1.8px);
  background-size: 14px 14px;
  opacity: 0.6;
}
.tt-hero::after {
  /* 大きな淡い絵文字 */
  content: attr(data-emoji);
  position: absolute;
  right: -40px; bottom: -80px;
  font-size: clamp(280px, 38vw, 460px);
  opacity: 0.12;
  filter: blur(0.5px);
  line-height: 1;
  pointer-events: none;
}
.tt-hero-inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
}
.tt-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DotGothic16', monospace; font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--tt-c-text);
  text-decoration: none;
  border: 1.5px solid rgba(245,239,224,0.5);
  padding: 8px 14px; border-radius: 999px;
  margin-bottom: 36px;
  transition: all 0.15s ease;
}
.tt-back:hover { background: rgba(245,239,224,0.15); }

.tt-eyebrow {
  font-family: 'DotGothic16', monospace;
  font-size: 13px; letter-spacing: 0.22em;
  opacity: 0.85; margin-bottom: 12px;
}
.tt-hero-title {
  font-family: 'Zen Antique', serif;
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.95; margin: 0 0 6px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.tt-hero-title .emoji {
  font-size: clamp(72px, 10vw, 140px);
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.2));
}
.tt-hero-sub {
  font-family: 'DotGothic16', monospace;
  font-size: 14px; letter-spacing: 0.18em;
  opacity: 0.85; margin-top: 8px;
}
.tt-hero-desc {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px; line-height: 1.9;
  max-width: 640px;
  margin-top: 28px;
  color: rgba(245,239,224,0.92);
}

/* メイン本文 */
.tt-main {
  max-width: 1240px; margin: 0 auto;
  padding: 80px 5vw 120px;
}

.tt-section { margin-bottom: 60px; }
.tt-section-label {
  display: inline-block;
  font-family: 'DotGothic16', monospace;
  font-size: 12px; letter-spacing: 0.2em;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 18px;
}
.tt-section h2 {
  font-family: 'Zen Antique', serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0 0 24px;
}

/* パワー補正テーブル */
.tt-power-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tt-power-card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.tt-power-card.up { background: #EDF7EC; }
.tt-power-card.down { background: #FBEBE5; }
.tt-power-card.flat { background: var(--paper); }
.tt-power-card h3 {
  font-family: 'Zen Antique', serif;
  font-size: 22px; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.tt-power-card.up h3 .icon  { color: #2C7A2C; }
.tt-power-card.down h3 .icon { color: var(--accent-red); }

.tt-power-list {
  display: flex; flex-direction: column; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.tt-power-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.6);
  border: 1.5px dashed rgba(15,11,7,0.18);
  border-radius: 10px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
}
.tt-power-list .label { display: flex; align-items: center; gap: 12px; }
.tt-power-list .label .e {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.tt-power-list .label .e img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.tt-power-list .val {
  font-family: 'DotGothic16', monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.tt-power-list .val.plus { background: #2C7A2C; color: #fff; }
.tt-power-list .val.minus { background: var(--accent-red); color: #fff; }
.tt-power-list .val.flat { background: var(--ink); color: var(--accent-yellow); }
.tt-power-empty {
  font-family: 'DotGothic16', monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 22px;
  border: 1.5px dashed rgba(15,11,7,0.2);
  border-radius: 10px;
}

/* 特殊効果 */
.tt-effect {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
}
.tt-effect-icon {
  background: linear-gradient(160deg, var(--tt-c) 0%, var(--tt-c-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tt-effect-icon::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1.2px, transparent 1.6px);
  background-size: 12px 12px; opacity: 0.6;
}
.tt-effect-icon .e {
  font-size: 64px; line-height: 1; margin-bottom: 6px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.25));
  position: relative;
}
.tt-effect-icon .l {
  font-family: 'DotGothic16', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  position: relative; opacity: 0.85;
}
.tt-effect-body { padding: 26px 28px; }
.tt-effect-body h4 {
  font-family: 'Zen Antique', serif;
  font-size: 24px; margin: 0 0 10px;
}
.tt-effect-body p {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px; line-height: 1.9;
  color: var(--ink-soft);
}
.tt-effect-flat {
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  text-align: center;
}
.tt-effect-flat .e { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.tt-effect-flat h4 {
  font-family: 'Zen Antique', serif;
  font-size: 22px; margin: 0 0 8px;
}
.tt-effect-flat p {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px; line-height: 1.85;
  color: var(--ink-soft);
}

/* BGM */
.tt-bgm {
  background: linear-gradient(160deg, var(--tt-c) 0%, var(--tt-c-dark) 100%);
  color: var(--tt-c-text);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  position: relative;
}
.tt-bgm::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.2px, transparent 1.6px);
  background-size: 12px 12px; opacity: 0.6;
  pointer-events: none;
}
.tt-bgm > * { position: relative; }
.tt-bgm .info { display: flex; flex-direction: column; gap: 6px; }
.tt-bgm .tag {
  font-family: 'DotGothic16', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: rgba(245,239,224,0.85);
}
.tt-bgm .title {
  font-family: 'Zen Antique', serif;
  font-size: 24px; line-height: 1.2;
}
.tt-bgm .meta {
  font-family: 'DotGothic16', monospace;
  font-size: 12px;
  color: rgba(245,239,224,0.75);
}
.tt-bgm-pill {
  font-family: 'DotGothic16', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(245,239,224,0.18);
  border: 1.5px dashed rgba(245,239,224,0.5);
  color: var(--tt-c-text);
  white-space: nowrap;
}

/* BGMプレーヤー（実ファイル組込時） */
.tt-bgm.has-audio { grid-template-columns: 1fr; gap: 18px; }
.tt-bgm-player {
  display: flex; align-items: center; gap: 14px;
  background: rgba(15,11,7,0.45);
  border: 1.5px solid rgba(245,239,224,0.25);
  border-radius: 14px;
  padding: 10px 14px;
  width: 100%;
}
.tt-bgm-play {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: var(--ink);
  border: 2px solid var(--line);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: transform 0.12s ease;
  box-shadow: 2px 2px 0 var(--line);
}
.tt-bgm-play:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.tt-bgm-play:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.tt-bgm-progress {
  flex: 1; height: 6px;
  background: rgba(245,239,224,0.2);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.tt-bgm-bar {
  height: 100%;
  background: var(--accent-yellow);
  width: 0%;
  border-radius: 999px;
  transition: width 0.1s linear;
}
.tt-bgm-time {
  font-family: 'DotGothic16', monospace;
  font-size: 11px;
  color: rgba(245,239,224,0.85);
  letter-spacing: 0.08em;
  min-width: 78px; text-align: right;
}
.tt-bgm-loop {
  font-family: 'DotGothic16', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1.5px solid rgba(245,239,224,0.35);
  border-radius: 999px;
  color: rgba(245,239,224,0.85);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tt-bgm-loop.is-on {
  background: rgba(255,194,26,0.25);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* 風景イメージ */
.tt-scene.has-image .img {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
.tt-scene.has-image .img .placeholder-emoji { display: none; }
.tt-scene {
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.tt-scene .img {
  min-height: 240px;
  background: linear-gradient(135deg, var(--tt-c-light) 0%, var(--tt-c) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-right: 3px solid var(--line);
}
.tt-scene .img .placeholder-emoji {
  font-size: 120px; opacity: 0.85;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.18));
}
.tt-scene .txt { padding: 24px 26px; }
.tt-scene .txt h4 {
  font-family: 'Zen Antique', serif;
  font-size: 22px; margin: 0 0 10px;
}
.tt-scene .txt p {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px; line-height: 1.9;
  color: var(--ink-soft);
}

/* CTA / footer */
.tt-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}

/* ナビ間で他領域へ */
.tt-other {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 2px dashed var(--line);
}
.tt-other h5 {
  font-family: 'DotGothic16', monospace;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 22px;
}
.tt-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.tt-other-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tt-other-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.tt-other-link.is-current { opacity: 0.55; pointer-events: none; }
.tt-other-link .e { font-size: 28px; }
.tt-other-link .ja {
  font-family: 'Zen Antique', serif;
  font-size: 20px; line-height: 1;
}
.tt-other-link .en {
  display: block;
  font-family: 'DotGothic16', monospace;
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 780px) {
  .tt-effect { grid-template-columns: 1fr; }
  .tt-effect-icon { padding: 18px; }
  .tt-effect-icon .e { font-size: 48px; }
  .tt-scene { grid-template-columns: 1fr; }
  .tt-scene .img { border-right: none; border-bottom: 3px solid var(--line); min-height: 200px; }
  .tt-bgm { grid-template-columns: 1fr; }
  .tb-slot-pointer { display: none; }
}
