/* 高島ブースター
   ------------------------------------------------------------------
   ファン参加型の成長導線。仕様は docs（発注者から受領）の
   SPEC.md / COPY.md、迷ったらモックアップの挙動が正。

   決めごと：
   ・クラスは全部 tb- 接頭辞（既存と衝突させない）
   ・このファイルは全ページで読み込むが、JS がフラグを見て
     html に .tb-on を付けるまで、何一つ見た目を変えない
   ・色や炎の形はモックアップから写した（SPEC §3.4 / §4.2）      */

/* ---------- ヘッダーの炎 ---------- */

/* 「公式ファンサイト」の行の右隣。ホームへのリンクの中には置けない
   （リンクの中にボタンは入れられないし、押すとホームへ飛んでしまう）
   ので、リンクの外に置いて、下端を副題の行に揃える。 */
.tb-flames {
  position: relative;                /* CLICK の吹き出しの取り付け先 */
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin: 0 0 7px -6px;
  padding: 4px 4px;
  align-self: flex-end;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* 見た目は小さいが、押せる範囲は 24px 角以上を確保する */
  min-width: 24px;
  min-height: 24px;
}
.tb-flames:active { background: rgba(255, 255, 255, .1); }

/* 「超」— 青い炎の並びのいちばん左に置く小さな札（発注者指示 2026-08-28）。
   押すと、いつでも青い幕開けの演出 → ステージ一覧。
   青い炎と同じ光をまとわせて、仲間であることが一目で分かるようにする */
.tb-super-badge {
  align-self: flex-end;
  margin: 0 0 7px 0;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 6px;
  border: 1px solid rgba(88, 156, 255, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 55, 110, .9), rgba(10, 30, 66, .9));
  color: #cfe3ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 6px rgba(43, 125, 255, .45);
}
.tb-super-badge:active { background: rgba(88, 156, 255, .25); }

/* 「神」の札（発注者指示 2026-08-29）。基本色では金の面に濃い字。
   金色モードでは裏返り、紺の面に金の字（金のヘッダーの上でも立つ） */
.tb-super-badge.is-god {
  border-color: rgba(245, 210, 104, .85);
  background: linear-gradient(180deg, #f7df8e, #d9a72a);
  color: #2c2005;
  box-shadow: 0 0 8px rgba(245, 210, 104, .55);
}
.tb-super-badge.is-god:active { background: rgba(245, 210, 104, .5); }
html.tb-gold .tb-super-badge.is-god {
  border-color: rgba(11, 31, 61, .55);
  background: linear-gradient(180deg, #1d3a74, #0a1e42);
  color: #f7df8e;
  box-shadow: 0 0 8px rgba(11, 31, 61, .35);
}

/* 赤い炎の「CLICK」吹き出し（発注者指示 2026-08-28）。
   炎から出ている小さな札がぷかぷか浮いて、押せることを知らせる。
   一度でも炎を押したら出さない（renderFlames が付け外しする）。
   札は炎ボタンの中の子なので、札を押しても炎を押したのと同じに働く
   （同日の追加指示：CLICK も選択領域にする） */
.tb-click {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}
.tb-click i {
  position: relative;                /* 尻尾（::after）の基準はこの札 */
  display: block;
  padding: 2px 7px 1px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffb45e, #f07f2e);
  color: #3a1503;
  font-size: 9px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: .1em;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(240, 127, 46, .5);
  animation: tb-bob 1.5s ease-in-out infinite;
}
.tb-click i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #f07f2e;
  border-bottom-width: 0;
}
@keyframes tb-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media (prefers-reduced-motion: reduce) { .tb-click i { animation: none; } }

/* 380px 未満：炎は 3 行目の横長ボタンなので、吹き出しは炎の右隣に置く
   （上に出すと 2 行目の SNS アイコンに重なってしまう） */
@media (max-width: 379px) {
  html.tb-on .tb-click {
    position: static;
    transform: none;
    margin: 0 0 1px 10px;
    align-self: center;
  }
  html.tb-on .tb-click i::after {
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #f07f2e;
    border-left-width: 0;
  }
}

.tb-fl { display: block; width: 10px; height: 14px; }
.tb-fl svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* 未点灯：白の淡い抜き型 */
.tb-fl use { fill: rgba(255, 255, 255, .16); }

/* 点灯：3 層のグラデーション＋ほのかな光。
   光は drop-shadow（フィルター）ではなく、後ろに敷いた静かな後光で出す。
   フィルターの中で炎が揺れると、そのたびにぼかしを描き直すことになり、
   なぞっているあいだのコマが飛ぶ（2026-08-28 の実測：実績のコマ落ちが
   11.2% → 4%）。後光は一度描けば済み、見た目はこの大きさでは変わらない */
.tb-fl.is-on {
  background: radial-gradient(58% 52% at 50% 62%,
    rgba(255, 122, 26, .5), rgba(255, 122, 26, .16) 55%, rgba(255, 122, 26, 0) 78%);
}
.tb-fl.is-on .tb-fl__o { fill: url(#tb-gO); }
.tb-fl.is-on .tb-fl__m { fill: url(#tb-gM); }
.tb-fl.is-on .tb-fl__c { fill: url(#tb-gC); }

/* 超ステージは青。ヘッダーの炎だけでなく、シートの中に並べた炎にも
   同じ色を出したいので、is-super が付いた入れ物すべてに効かせる */
.is-super .tb-fl.is-on {
  background: radial-gradient(58% 52% at 50% 62%,
    rgba(43, 125, 255, .55), rgba(43, 125, 255, .18) 55%, rgba(43, 125, 255, 0) 78%);
}
.is-super .tb-fl.is-on .tb-fl__o { fill: url(#tb-gBO); }
.is-super .tb-fl.is-on .tb-fl__m { fill: url(#tb-gBM); }
.is-super .tb-fl.is-on .tb-fl__c { fill: url(#tb-gBC); }

/* 神ステージは金（発注者指示 2026-08-29）。ヘッダーの炎にも、
   幕開けの大きな炎にも、is-god の入れ物ごしに同じ色を出す */
.is-god .tb-fl.is-on {
  background: radial-gradient(58% 52% at 50% 62%,
    rgba(245, 200, 66, .55), rgba(245, 200, 66, .18) 55%, rgba(245, 200, 66, 0) 78%);
}
.is-god .tb-fl.is-on .tb-fl__o { fill: url(#tb-gGO); }
.is-god .tb-fl.is-on .tb-fl__m { fill: url(#tb-gGM); }
.is-god .tb-fl.is-on .tb-fl__c { fill: url(#tb-gGC); }

/* ただし「超高島ブースター」の段の炎は、神のシートの中でも青のまま
   （発注者指示 2026-08-30）。上の金の決まりと同じ強さだと後勝ちで
   金になってしまうので、入れ子ぶん強くして青に返す */
.is-god .is-super .tb-fl.is-on {
  background: radial-gradient(58% 52% at 50% 62%,
    rgba(79, 141, 237, .5), rgba(79, 141, 237, .16) 55%, rgba(79, 141, 237, 0) 78%);
}
.is-god .is-super .tb-fl.is-on .tb-fl__o { fill: url(#tb-gBO); }
.is-god .is-super .tb-fl.is-on .tb-fl__m { fill: url(#tb-gBM); }
.is-god .is-super .tb-fl.is-on .tb-fl__c { fill: url(#tb-gBC); }

/* 揺らめき。層ごとに周期をずらすと炎らしくなる（モックの写し） */
.tb-fl.is-on .tb-fl__o { animation: tb-flO 2.1s ease-in-out infinite; transform-origin: 50% 100%; }
.tb-fl.is-on .tb-fl__m { animation: tb-flM 1.7s ease-in-out infinite; transform-origin: 50% 100%; }
.tb-fl.is-on .tb-fl__c { animation: tb-flC 1.3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes tb-flO{0%,100%{transform:scale(1,1) skewX(0)}28%{transform:scale(1.06,.94) skewX(-5deg)}58%{transform:scale(.95,1.08) skewX(4deg)}82%{transform:scale(1.03,.98) skewX(-2deg)}}
@keyframes tb-flM{0%,100%{transform:scale(1,1) skewX(0)}35%{transform:scale(.93,1.1) skewX(5deg)}70%{transform:scale(1.07,.93) skewX(-6deg)}}
@keyframes tb-flC{0%,100%{transform:scale(1,1);opacity:1}40%{transform:scale(1.12,.9) skewX(-4deg);opacity:.85}75%{transform:scale(.9,1.12) skewX(4deg);opacity:1}}

/* 獲得の瞬間のポップ */
.tb-fl.is-pop { animation: tb-pop .5s cubic-bezier(.2, .9, .3, 1.4) 1; transform-origin: 50% 100%; }
@keyframes tb-pop{0%{transform:scale(.2) translateY(6px)}55%{transform:scale(1.45) translateY(-3px)}100%{transform:scale(1) translateY(0)}}

/* 揺れを控える設定では、点灯は残して動きだけ止める */
@media (prefers-reduced-motion: reduce) {
  .tb-fl.is-on .tb-fl__o, .tb-fl.is-on .tb-fl__m, .tb-fl.is-on .tb-fl__c,
  .tb-fl.is-pop { animation: none; }
}

/* 炎のぶん、SNS アイコンを少しだけ詰める（タップ領域 24px は守る）。
   380px 以上だけ。それ未満は 3 行構成にするので、触らない */
@media (min-width: 380px) {
  html.tb-on .siteHeader__social { gap: 3px; }
  html.tb-on .siteHeader__social .social { width: 26px; height: 26px; }
}

/* 青い炎が 5 つ並ぶあいだ（2026-09-30 に 3 → 5）。横に入りきるよう、
   ヘッダーの間と炎どうしの間を少しだけ詰める（「超」の札が
   「公式ファンサイト」に重ならないように）。380px 未満は 3 行構成 */
@media (min-width: 380px) {
  html.tb-on.tb-super .siteHeader { gap: 8px; }
  html.tb-on.tb-super .tb-flames { gap: 1px; }
  /* SNS の絵も一回り詰める（押せる範囲は 24px 角を下回らせない） */
  html.tb-on.tb-super .siteHeader__social { gap: 2px; }
  html.tb-on.tb-super .siteHeader__social .social { width: 24px; height: 24px; }
}

/* 380px 未満では横に入りきらないので、炎を 3 行目に落とす。
   ヘッダーは高くなるが、高さの出どころは --header-h ひとつなので、
   実績・政策の全画面も、アンカーの飛び先も、これだけで追随する。

   1 行目に名前と SNS を収めるため、SNS の絵（svg）は一回り小さくする。
   仕様（SPEC §4.1）も「足りなければ SNS アイコンを縮める」を認めている。
   ただし押せる範囲は 24px 角を下回らせない（指の下限。サイト全体の約束）。
   ボタンの数と並びは変えない。 */
@media (max-width: 379px) {
  html.tb-on { --header-h: 83px; }
  html.tb-on .siteHeader { flex-wrap: wrap; align-content: center; row-gap: 0; gap: 8px; }
  html.tb-on .siteHeader__social { gap: 2px; }
  html.tb-on .siteHeader__social .social { width: 24px; height: 24px; }
  html.tb-on .siteHeader__social .social svg { width: 14px; height: 14px; }
  html.tb-on .tb-flames {
    order: 3;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    align-self: auto;
    margin: -4px 0 0;
    padding: 2px 0 2px 48px;   /* 顔写真 40px ＋ 間 8px に字下げして揃える */
  }
  /* 「超」も炎と同じ 3 行目へ。字下げは炎の並びに揃える */
  html.tb-on .tb-super-badge {
    order: 3;
    align-self: auto;
    margin: -4px 0 0 48px;
  }
  html.tb-on .tb-super-badge:not([hidden]) ~ .tb-flames {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding-left: 6px;
  }
}

/* 横向きのスマホ（背が 500px 以下。発注者指示 2026-10-04）。ヘッダーが 46px と
   低く、炎の上に「CLICK」の札を出すと画面の上端で切れる。380px 未満と同じく
   炎の右隣に出す。ヘッダーは横向きでは画面の端まで伸びるので、横幅は足りる */
@media (orientation: landscape) and (max-height: 500px) {
  .tb-click {
    position: static;
    transform: none;
    margin: 0 0 1px 8px;
    align-self: center;
  }
  .tb-click i::after {
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #f07f2e;
    border-left-width: 0;
  }
}

/* ---------- トースト ---------- */

.tb-toast {
  position: fixed;
  top: calc(var(--header-h, 61px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), calc(var(--column, 520px) - 24px));
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(11, 31, 61, .96);
  border: 1px solid rgba(217, 180, 94, .45);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  color: #f2ead2;
  cursor: pointer;
  text-align: left;
  font: inherit;
  animation: tb-toastIn .38s cubic-bezier(.2, .9, .3, 1.2) 1;
}
/* 高島TV だけは、上に置くとテロップと ON AIR に重なるので下から出す */
body[data-page="tv"] .tb-toast {
  top: auto;
  /* タブの上端から 10px。タブの高さは --nav-h が持つ（横向きでは低くなる） */
  bottom: calc(var(--nav-h, 86px) + 10px + env(safe-area-inset-bottom, 0px));
}
/* ただし横向きのスマホでは、高島TV は左にテレビ・右にリモコン（発注者指示 2026-10-05）。
   下に出すとリモコンの数字に、右に出すとリモコンの 1 段目（電源・番組表…）と番組表（右の列に
   開く）に、ヘッダーに重ねると SNS のしるしにかぶり、出ている数秒のあいだに押すとブースターの
   説明が開いてしまう（10-04 はヘッダーに重ねていて、667px 幅で Facebook・Instagram を隠した）。
   そこでテレビの左上（ON AIR とテロップ。押す場所ではない）に重ね、幅はテレビの中に収める
   （テレビの幅は、リモコンの列 280〜320px を残した残り。assets/takashima-tv.html の fit()） */
@media (orientation: landscape) and (max-height: 500px) {
  body[data-page="tv"] .tb-toast {
    top: calc(var(--header-h, 46px) + 8px);
    bottom: auto;
    left: calc(env(safe-area-inset-left, 0px) + 8px);
    transform: none;
    width: min(380px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 13px - clamp(280px, 36vw, 320px) - 16px));
    padding: 9px 12px;
    animation-name: tb-toastInL;
  }
}
@keyframes tb-toastIn{from{opacity:0;transform:translateX(-50%) translateY(-8px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes tb-toastInL{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce) { .tb-toast { animation: none; } }

.tb-toast__fire { flex: none; width: 20px; height: 27px; }
.tb-toast__body { flex: 1; min-width: 0; }
.tb-toast__title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.tb-toast__note { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: #cfc4a3; }
.tb-toast__chip {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9d07a, #c9ab45);
  color: #24304a;
  font-size: 11.5px;
  font-weight: 700;
}
.tb-toast__close {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #f2ead2;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- 幕とシート ---------- */

.tb-layer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 9, 18, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  /* 背面へスクロールを繋がせない（実績・政策は内側が滑るため、
     html を止めるだけでは足りない。幕で受けて、ここで断ち切る）。
     指二本のつまみ（ピンチ）だけは通す。手順の図の細かい字を
     拡大して読みたい、という声があった（2026-08-27） */
  overscroll-behavior: contain;
  touch-action: pinch-zoom;
}
.tb-layer[hidden] { display: none; }

.tb-sheet {
  width: min(100%, var(--column, 520px));
  max-height: calc(100% - var(--header-h, 61px) - 24px);
  box-sizing: border-box;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #102547 0%, #0b1c38 100%);
  border: 1px solid rgba(217, 180, 94, .35);
  border-bottom: 0;
  color: #f1e9d2;
  padding: 20px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;   /* 縦に滑らせつつ、つまんで拡大もできる */
  animation: tb-sheetIn .34s cubic-bezier(.2, .9, .3, 1.1) 1;
}
@keyframes tb-sheetIn{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
/* 開いているシートからの差し替え（発行確認 → 認証 など）は、滑り込みを
   重ねない。中身だけがすっと替わるほうが、目にはるかに静か */
.tb-layer.is-swap .tb-sheet { animation: none; }
.tb-layer.is-swap { animation: none; }
@media (prefers-reduced-motion: reduce) { .tb-sheet { animation: none; } }

.tb-sheet__title { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.tb-sheet__p { margin: 0 0 10px; font-size: 13px; line-height: 1.85; color: #d9cfae; }
.tb-sheet__p strong { color: #f2e2ac; }

.tb-progress {
  margin: 14px 0;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.tb-progress__slots { display: flex; justify-content: space-between; gap: 4px; }
.tb-progress__slot { flex: 1; text-align: center; }
.tb-progress__slot .tb-fl { margin: 0 auto; width: 14px; height: 19px; }
.tb-progress__name { display: block; margin-top: 5px; font-size: 9.5px; color: #bfb28d; white-space: nowrap; }
.tb-progress__cap { margin: 10px 0 0; font-size: 11px; text-align: center; color: #cfc4a3; }

.tb-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9d07a, #c9ab45);
  color: #24304a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  touch-action: manipulation;
}
.tb-btn:active { transform: translateY(1px); }

/* ---------- 発行のながれ（発行確認・認証・ID）---------- */

.tb-sheet__note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.7; color: #a99e80; }
.tb-center { text-align: center; }

/* 二つ並ぶボタン。「あとで」は控えめに */
.tb-row { display: flex; gap: 10px; margin-top: 14px; }
.tb-row .tb-btn { margin-top: 0; }
.tb-btn--quiet {
  flex: 0 0 38%;
  background: rgba(255, 255, 255, .08);
  color: #d9cfae;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset;
}

/* 炎だけを並べるとき（発行確認の頭）は、枠も名前も出さない */
.tb-progress--plain { background: none; border: 0; padding: 0; margin: 0 0 14px; }
.tb-progress--plain .tb-progress__slots { justify-content: center; gap: 10px; }
.tb-progress--plain .tb-fl { width: 22px; height: 30px; }

/* Google のカード。あちらの画面に似せすぎない（見分けがつかないと困る）。
   色はこのサイトのものを使い、形だけ借りる */
.tb-gcard {
  margin: 14px 0 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
}
.tb-gcard__head {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #e7dfc4;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.tb-gcard__row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; }
.tb-gcard__row + .tb-gcard__row { border-top: 1px solid rgba(255, 255, 255, .08); }
.tb-gcard__av {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #e9d07a, #c9ab45);
  color: #24304a;
  font-size: 13px; font-weight: 800;
}
.tb-gcard__av--plus { background: rgba(255, 255, 255, .1); color: #cfc4a3; font-weight: 400; }
.tb-gcard__who { min-width: 0; display: block; }
.tb-gcard__who b { display: block; font-size: 13px; font-weight: 700; }
.tb-gcard__who small {
  display: block; margin-top: 1px;
  font-size: 11px; color: #b9ad8c;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ID カード。ここが達成の絵になるので、いちばん手をかける */
.tb-idcard {
  position: relative;
  margin: 16px 0 12px;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1b3358 0%, #16294a 40%, #0e1c33 100%);
  border: 1px solid rgba(217, 180, 94, .55);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.tb-idcard__label {
  font-size: 9.5px; letter-spacing: .22em; color: #b9a866;
}
.tb-idcard__badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 9px 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9d07a, #c9ab45);
  color: #24304a;
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
}
.tb-idcard__num {
  margin-top: 8px;
  font-size: 34px; font-weight: 800; letter-spacing: .06em;
  color: #f4e9c6;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(233, 208, 122, .35);
}
/* きらめきが横切る。動きを控える設定では出さない */
.tb-idcard__shine {
  position: absolute; inset: -40% -60%;
  background: linear-gradient(72deg, rgba(255,255,255,0) 44%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 56%);
  animation: tb-shine 2.8s ease-in-out 0.4s infinite;
}
@keyframes tb-shine { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .tb-idcard__shine { animation: none; opacity: 0; } }

/* ---------- 右へスライド ---------- */

.tb-slide {
  position: relative;
  margin-top: 16px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(217, 180, 94, .38);
  overflow: hidden;
  cursor: grab;
  touch-action: none;             /* 引っぱる操作をこちらで受け取る */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tb-slide.is-held { cursor: grabbing; }
.tb-slide:focus-visible { outline: 2px solid #e9d07a; outline-offset: 2px; }
.tb-slide__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 44px;
  background: linear-gradient(90deg, rgba(233, 208, 122, .28), rgba(233, 208, 122, .12));
}
.tb-slide__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding-left: 26px;
  font-size: 12.5px; font-weight: 700; color: #e7dcb8;
  pointer-events: none;
}
.tb-slide__knob {
  position: absolute; left: 4px; top: 4px;
  width: 44px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9d07a, #c9ab45);
  color: #24304a;
  font-size: 13px; font-weight: 800; letter-spacing: -.06em;
}
.tb-slide.is-done { border-color: rgba(233, 208, 122, .9); }
.tb-slide.is-done .tb-slide__label { opacity: .35; }
.tb-slide__cap { margin: 8px 0 0; font-size: 10.5px; text-align: center; color: #a99e80; }

/* ---------- ホーム画面に追加する手順（COPY §6） ---------- */

/* 一段目「Safariで開く」「Chromeで開く」を押して移れる一押し
   （発注者要望 2026-08-28）。手順の箱の上に、少しだけ間を置いて据える */
.tb-jump { margin: 4px 0 16px; }
.tb-jump .tb-sheet__note { margin-top: 6px; }

.tb-steps {
  margin: 12px 0;
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.tb-steps__h {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #bfb28d;
}
.tb-steps ol { margin: 0; padding: 0; list-style: none; }
.tb-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e6dcc0;
}
.tb-steps li i {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 180, 94, .22);
  color: #f2e2ac;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

/* ---------- 高島宗一郎に挑戦（発注者指示 2026-08-29）----------
   ホームの一枚目の右上。超ブースターの人にだけ出る入口。
   金の輪がゆっくり広がり、アイコンがふわりと浮いて、押したくなる。
   使うのは transform と opacity だけ（ぼかしを毎コマ描き直さない） */
.tb-challenge {
  position: absolute;
  z-index: 3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  right: 14px;
  top: calc(var(--header-h, 61px) + 14px);
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tb-challenge__img {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  border: 1px solid rgba(245, 210, 104, .55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  animation: tb-chFloat 2.8s ease-in-out infinite;
}
.tb-challenge__tx {
  position: relative;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 210, 104, .96), rgba(214, 168, 60, .96));
  color: #23304a;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  animation: tb-chBob 2.8s ease-in-out infinite;
}
/* 広がる輪。アイコンの中心から、金と青がかわるがわる */
.tb-challenge__ring {
  position: absolute;
  top: 29px;
  left: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  border: 2px solid rgba(245, 210, 104, .75);
  opacity: 0;
  animation: tb-chRing 2.8s ease-out infinite;
}
.tb-challenge__ring--2 {
  border-color: rgba(96, 160, 255, .75);
  animation-delay: 1.4s;
}
.tb-challenge:active .tb-challenge__img { transform: scale(.94); }
@keyframes tb-chFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}
@keyframes tb-chBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes tb-chRing {
  0% { transform: scale(.85); opacity: .85; }
  70% { opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-challenge__img, .tb-challenge__tx, .tb-challenge__ring { animation: none; }
  .tb-challenge__ring { opacity: .5; }
}
/* 狭い画面では、見出しに重ならないよう少しだけ小さく */
@media (max-width: 359px) {
  .tb-challenge { width: 84px; right: 8px; }
  .tb-challenge__img { width: 50px; height: 50px; }
  .tb-challenge__ring { width: 50px; height: 50px; top: 25px; margin: -25px 0 0 -25px; }
  .tb-challenge__tx { font-size: 9.5px; padding: 3px 7px; }
}

/* ホーム追加の一文を、黄金と青で目立たせる（発注者指示 2026-08-29）。
   「押せばこうなる」というワクワクを、字そのものに持たせたい。
   ・地の文は黄金。光が左から右へゆっくり流れる
   ・「超高島ブースター」は青い炎の色。少し強く光って脈を打つ
   ・「進化します！」は黄金のまま、ひと呼吸おいて弾む
   動きを控える設定の人には、色だけ残して動かさない */
.tb-homelead {
  font-weight: 700;
  background-image: linear-gradient(100deg,
    #dfbe63 0%, #f0cf72 34%, #fff3c4 44%, #f0cf72 54%, #dfbe63 86%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tb-goldflow 5.5s linear infinite;
}
.tb-lead__super {
  font-weight: 900;
  background-image: linear-gradient(100deg,
    #6fb0ff 0%, #a9d2ff 34%, #e8f3ff 46%, #7cb8ff 60%, #4f8ded 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tb-blueflow 3.8s linear infinite;
}
/* 弾ませるために inline-block にすると、親の「文字で切り抜いた背景」の
   外へ出てしまい、色が透明のままになる（＝消える）。自分の黄金を持たせる */
.tb-lead__go {
  font-weight: 900;
  display: inline-block;
  background-image: linear-gradient(100deg,
    #dfbe63 0%, #f0cf72 34%, #fff3c4 44%, #f0cf72 54%, #dfbe63 86%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tb-goldflow 5.5s linear infinite, tb-leadpop 3.8s ease-in-out infinite;
}
@keyframes tb-goldflow { to { background-position: -140% 0; } }
@keyframes tb-blueflow { to { background-position: -140% 0; } }
@keyframes tb-leadpop {
  0%, 72%, 100% { transform: scale(1); }
  80% { transform: scale(1.08); }
  88% { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-homelead, .tb-lead__super, .tb-lead__go { animation: none; }
  .tb-homelead, .tb-lead__go { background-position: 30% 0; }
  .tb-lead__super { background-position: 40% 0; }
}

/* ホーム画面に並ぶアイコンの絵（発注者指示 2026-08-28）。
   本文の上に大きめで一枚、手順の最後の段には小さく添える。
   角丸は iOS のホーム画面と同じ見え方に寄せた */
.tb-homeicon { display: flex; justify-content: center; margin: 2px 0 12px; }
.tb-homeicon__img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .14);
}
.tb-step__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .16);
}

/* 「閉じる」は文字に合わせた大きさで、真ん中に置く（発注者指示 2026-08-28。
   幅いっぱいのボタンは、次へ進む道と見分けがつきにくい） */
.tb-closerow { display: flex; justify-content: center; }
.tb-btn--small {
  width: auto;
  min-width: 132px;
  padding: 12px 28px;
  font-size: 13.5px;
}

/* 詳しい手順のいちばん上の注意書き（発注者指示 2026-08-28）。
   共有の絵を左に添えて、実機のどのボタンかを見比べられるようにする */
.tb-detail__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(217, 180, 94, .1);
  border: 1px solid rgba(217, 180, 94, .3);
  font-size: 11.5px;
  line-height: 1.7;
  color: #f0e3bd;
}
.tb-shareico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #f2e2ac; }
/* 手順の「共有」の段に添える版。丸数字と文字のあいだに、字の高さで置く */
.tb-step__share { width: 17px; height: 17px; margin-top: 0; }
.tb-detail__list .tb-step__share { margin-top: 1px; }

/* 一段目「Safariで開く」「Chromeで開く」は、丸数字ごと押せるリンク
   （発注者指示 2026-08-28。Safari を名乗る Brave のような、見分けられない
   ブラウザでも、ここを押せば炎の荷札ごと本物のブラウザへ移れる） */
.tb-stepgo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tb-stepgo span {
  color: #ffd76a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tb-stepgo::after {
  content: '›';
  color: #ffd76a;
  font-weight: 700;
}
.tb-stepgo:active span { opacity: .7; }
.tb-detail__list .tb-stepgo { align-items: flex-start; }

/* ---------- 超高島ブースター（COPY §7〜§10） ---------- */

/* 段の名札。青い炎の段であることが、ひと目で分かるように */
/* バッジの行。左に称号、右肩にいつでも見える番号札（発注者指示 2026-08-28） */
.tb-badgerow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.tb-badgerow .tb-badge,
.tb-badgerow .tb-back { margin-bottom: 0; }

/* 神のシート（発注者指摘 2026-08-30：神になっても紺地・超000000 のまま
   だった）。地を深い金にし、番号札はより濃く光らせる。中の炎は
   .is-god .tb-fl の決まりで金になる */
.tb-layer.is-god .tb-sheet {
  background: linear-gradient(180deg, #3b2d0a 0%, #241a05 100%);
  border-color: rgba(245, 210, 104, .55);
}
.tb-layer.is-god .tb-sid {
  color: #f7df8e;
  text-shadow: 0 0 10px rgba(245, 210, 104, .55);
}
.tb-layer.is-god .tb-smenu__row {
  background: rgba(245, 210, 104, .08);
  border-color: rgba(245, 210, 104, .28);
}
.tb-layer.is-god .tb-smenu__row.is-next { border-color: rgba(245, 210, 104, .6); }
.tb-sid {
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: .05em;
  color: #e9d07a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(233, 208, 122, .35);
  white-space: nowrap;
}

.tb-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d8dff, #2b5fd9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

/* 次にやること。ひとつの箱にまとめて、迷わせない */
.tb-quest {
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(43, 125, 255, .10);
  border: 1px solid rgba(93, 158, 255, .32);
}
.tb-quest__label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #8fb6ff;
}
.tb-quest__h {
  margin: 6px 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: #f1e9d2;
}
.tb-quest__p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #cfd8ea;
}

.tb-sns__row { display: flex; gap: 8px; margin-top: 12px; }
.tb-sns {
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 11px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #eef2fa;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
}
.tb-sns span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tb-sns:active { transform: translateY(1px); background: rgba(93, 158, 255, .2); }

/* ---------- 超1 の SNS。押して外へ行き、戻ってきたら緑の印 ---------- */

/* 見出しの右に、いまの段の青い炎。炎だけで一行を使うと、
   そのぶん本文が下へ押し出されて、画面に入る量が減る */
.tb-suphead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tb-suphead .tb-sheet__title { margin: 0; min-width: 0; }
.tb-suphead__flames { flex: none; display: flex; align-items: flex-end; gap: 5px; }
.tb-suphead__flames .tb-fl { width: 13px; height: 18px; }

/* 神の見出しは、金の大きな炎ひとつ（発注者指示 2026-08-30）。
   まわりでキラキラが順ぐりに瞬く */
.tb-suphead__flames--god .tb-fl { width: 30px; height: 42px; }
.tb-godfl { position: relative; display: inline-flex; }
.tb-godfl__kira {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 50% 50%,
    #fffdf2 0%, #ffe9a6 38%, rgba(245, 210, 104, .85) 62%, rgba(245, 210, 104, 0) 74%);
  /* 四方に尖った星。丸のままだと「光の玉」に見えてキラキラにならない */
  clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
  opacity: 0;
  pointer-events: none;
  animation: tb-kira 1.9s ease-in-out infinite;
}
.tb-godfl__kira:nth-child(2) { top: -6px;  left: -9px;  animation-delay: 0s; }
.tb-godfl__kira:nth-child(3) { top: 4px;   right: -10px; animation-delay: .38s; }
.tb-godfl__kira:nth-child(4) { top: -10px; right: -2px; width: 7px; height: 7px; animation-delay: .76s; }
.tb-godfl__kira:nth-child(5) { bottom: 2px; left: -11px; width: 7px; height: 7px; animation-delay: 1.14s; }
.tb-godfl__kira:nth-child(6) { bottom: -4px; right: -8px; animation-delay: 1.52s; }
@keyframes tb-kira {
  0%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); }
  18%      { opacity: 1; transform: scale(1) rotate(35deg); }
  42%      { opacity: .25; transform: scale(.7) rotate(70deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-godfl__kira { animation: none; opacity: .85; transform: scale(.9); }
}

/* 「超」から開くステージ一覧。通った段は押せて、先の段は錠前 */
.tb-smenu { display: grid; gap: 8px; margin: 4px 0 12px; }
.tb-smenu__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  /* ボタンは生まれつき border-box だが、ゲームの入口は <a>。
     そろえておかないと、その一段だけ枠のぶん幅が出てしまう */
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid rgba(88, 156, 255, .4);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 48, 96, .55), rgba(10, 28, 60, .55));
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tb-smenu__row:active { background: rgba(88, 156, 255, .2); }
.tb-smenu__row.is-locked {
  cursor: default;
  opacity: .45;
  border-style: dashed;
  background: none;
}
.tb-smenu__fl { flex: none; display: flex; align-items: flex-end; }
.tb-smenu__fl .tb-fl { width: 13px; height: 18px; }
.tb-smenu__tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tb-smenu__tx b { font-size: 10.5px; letter-spacing: .14em; opacity: .75; }
.tb-smenu__tx span { font-size: 14.5px; font-weight: 800; }
.tb-smenu__go { flex: none; font-size: 15px; opacity: .8; }

/* ---------- 会員証（発注者指示 2026-09-30）----------
   ヘッダーの高島宗一郎の名前・炎・「超」「神」の札から開く。上に会員番号の
   札（ID カードと同じ作り）、下に 5 つの段。済んだ段は「クリア済み」、
   次にやる段は金の「NEXT」 */
.tb-idcard__nl {
  margin-right: 2px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #d8c690;
  text-shadow: none;
  vertical-align: 5px;
}
.tb-mcard { margin: 2px 0 14px; padding: 14px 16px 16px; }
.tb-mcard .tb-idcard__num { margin-top: 6px; font-size: 30px; }
.tb-mcard.is-god { border-color: rgba(245, 210, 104, .85); }

.tb-smenu__tx small {
  font-size: 11px;
  font-weight: 700;
  opacity: .8;
}
.tb-smenu__go i { font-style: normal; }
.tb-smenu__ok {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #9be3bf;
  white-space: nowrap;
}
.tb-smenu__next {
  display: inline-block;
  padding: 3px 8px 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9d07a, #c9ab45);
  color: #24304a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.tb-smenu__row.is-done { border-color: rgba(34, 176, 106, .45); }
.tb-smenu__row.is-next {
  border-color: rgba(233, 208, 122, .75);
  box-shadow: 0 0 0 1px rgba(233, 208, 122, .25), 0 0 14px rgba(233, 208, 122, .18);
}
.tb-smenu__row .tb-smenu__go { opacity: 1; }

/* 金色モードの切り替え（神の人だけ。2026-09-30 までは「神」の札の役） */
.tb-goldsw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 210, 104, .55);
  border-radius: 12px;
  background: rgba(245, 210, 104, .1);
  color: #f7df8e;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.tb-goldsw b {
  min-width: 44px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #e8edf6;
  font-size: 12px;
  text-align: center;
}
.tb-goldsw[aria-checked="true"] b { background: linear-gradient(180deg, #f7df8e, #d9a72a); color: #2c2005; }

/* 高島レター（メールマガジン。発注者指示 2026-09-30）
   発行の画面のチェック（はじめから入っている）と、会員証の切り替え */
.tb-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tb-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #f2c14e;
  cursor: pointer;
}
.tb-check b { display: block; font-size: 13.5px; line-height: 1.5; color: #f1e9d2; }
.tb-check small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.7; color: #c9bfa0; }

.tb-lettersw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(143, 182, 255, .45);
  border-radius: 12px;
  background: rgba(143, 182, 255, .08);
  color: #e8edf6;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.tb-lettersw b {
  flex: none;
  min-width: 64px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #e8edf6;
  font-size: 12px;
  text-align: center;
}
.tb-lettersw[aria-checked="true"] b { background: #2b7dff; color: #fff; }
.tb-lettersw[aria-busy="true"] { opacity: .6; }

/* 会員証の高島レター：はじめは閉じたアコーディオン（題だけ）。開くと説明と
   切り替え（発注者指示 2026-10-02）。枠の色は、これまでの切り替えと同じ */
.tb-letteracc {
  margin-top: 8px;
  border: 1px solid rgba(143, 182, 255, .45);
  border-radius: 12px;
  background: rgba(143, 182, 255, .08);
  color: #e8edf6;
  text-align: left;
}
.tb-letteracc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tb-letteracc__head::-webkit-details-marker { display: none; }
.tb-letteracc__head::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid #b8c6e0;
  border-bottom: 2px solid #b8c6e0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.tb-letteracc[open] > .tb-letteracc__head::after { transform: translateY(2px) rotate(-135deg); }
.tb-letteracc__body { padding: 0 16px 14px; }
.tb-letteracc__p { margin: 0; font-size: 12.5px; line-height: 1.75; color: #c8d4ea; }
.tb-letteracc .tb-lettersw { margin-top: 12px; padding: 10px 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .tb-letteracc__head::after { transition: none; }
}

/* ---------- 超5「高島宗一郎に挑戦する」 ---------- */
.tb-gms { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tb-gm {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.tb-gm.is-clear { border-color: rgba(34, 176, 106, .55); background: rgba(34, 176, 106, .12); }
.tb-gm__name { grid-column: 1; font-size: 13.5px; font-weight: 800; color: #f1e9d2; }
.tb-gm__taka, .tb-gm__you { grid-column: 1; font-size: 11.5px; line-height: 1.6; color: #cfd8ea; }
.tb-gm__st {
  grid-column: 2;
  grid-row: 1 / span 3;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #a9b7d2;
  white-space: nowrap;
}
.tb-gm.is-clear .tb-gm__st { color: #9be3bf; }
.tb-btn--game {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
/* サイト全体の a:hover（金色の字）に負けないよう、二つ重ねて明示する。
   iPhone は押したあとも hover が残るので、残ったときに字が消えないように */
.tb-btn.tb-btn--game,
.tb-btn.tb-btn--game:hover { color: #24304a; }
.tb-btn__img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid rgba(36, 48, 74, .35); }

/* 超2「もちのロンをフォローする」。4 つの行き先は 2×2（名前が長いので、
   超3 の SNS のような横一列には並べない）。しるしは /podcast の頁と
   同じ各社の色 */
.tb-pod__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
/* .tb-sns の寸法（このあとに書いてある）より強く */
.tb-sns.tb-pod {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  text-align: left;
}
/* 名前は切らずに折り返す（「Apple Podcasts」が狭い画面で「Apple …」に
   なっていた）。二行になっても、しるしの高さに収まる */
.tb-pod .tb-sns__name {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.tb-pod__ic {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
}
.tb-pod__ic svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.tb-pod__ic--youtube { background: #ff0000; }
.tb-pod__ic--spotify { background: #1ed760; color: #000000; }
.tb-pod__ic--apple { background: linear-gradient(180deg, #b150e2, #872ec4); }
.tb-pod__ic--amazon { background: #25d1da; color: #0b1f3d; }

/* 「あとNつで神高島ブースター！」（ゲームを制覇して、ほかの段が残っている人） */
/* .tb-chip はこのあと（最終ステージの節）で定義されるので、二つ重ねて勝たせる */
.tb-chip.tb-chip--gold {
  background: linear-gradient(180deg, rgba(245, 210, 104, .28), rgba(201, 171, 69, .22));
  border-color: rgba(245, 210, 104, .7);
  color: #fff3c4;
  font-weight: 800;
}

.tb-sns { position: relative; padding: 12px 4px 10px; }
.tb-sns__ic { display: block; width: 26px; height: 26px; margin: 0 auto 6px; }
.tb-sns__ic svg { display: block; width: 100%; height: 100%; }
.tb-sns__name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 済みの印。ふだんは隠しておいて、戻ってきたら現れる */
.tb-sns__check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #22b06a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(11, 28, 56, .95);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, .9, .3, 1.5);
}
.tb-sns.is-done { border-color: rgba(34, 176, 106, .55); background: rgba(34, 176, 106, .14); }
.tb-sns.is-done .tb-sns__check { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .tb-sns__check { transition: none; } }

/* まだ条件がそろっていないスライド。押しても動かないことを、見て分かるように */
.tb-slide.is-locked {
  opacity: .42;
  cursor: not-allowed;
  filter: grayscale(.7);
}
.tb-slide.is-locked .tb-slide__knob { transform: none !important; }

/* ---------- 超2：どちらで広めるかを選ぶ ---------- */

.tb-pick__h {
  margin: 14px 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #dfe7f5;
}
/* 4 つのアイコンを 2×2 の「田」の字に（発注者指示 2026-08-28）。
   文字は出さず、名前は aria-label に持たせている */
.tb-pickgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.tb-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 64px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.tb-pick:active { transform: translateY(1px); background: rgba(93, 158, 255, .2); }
.tb-pick__ic { flex: none; width: 38px; height: 38px; }
.tb-pick__ic svg { display: block; width: 100%; height: 100%; }

/* ---------- シェアの仕方 ---------- */

/* 文字だけだとボタンと分からない（発注者指摘 2026-08-28）ので、
   押せる「錠剤」の形にする。金の「閉じる」より一段控えめな青系 */
.tb-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(143, 182, 255, .55);
  border-radius: 999px;
  background: rgba(93, 158, 255, .16);
  color: #cfe0ff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.tb-back:active { transform: translateY(1px); background: rgba(93, 158, 255, .3); }

.tb-howto { margin: 12px 0 4px; padding: 0; list-style: none; }
.tb-howto li {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.tb-howto li:first-child { border-top: 0; }
.tb-howto li i {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(93, 158, 255, .25);
  color: #dce8ff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.tb-howto li div { flex: 1; min-width: 0; }
.tb-howto li b { display: block; font-size: 13px; font-weight: 700; color: #f1e9d2; }
.tb-howto li small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #c8d2e4;
  word-break: break-word;
}

.tb-step__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(93, 158, 255, .22);
  border: 1px solid rgba(93, 158, 255, .45);
  color: #dce8ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.tb-step__btn:active { transform: translateY(1px); }
/* 行き先ボタンの左に添えるサービスのアイコン。文字と同じくらいの大きさ */
.tb-step__ic { flex: none; width: 1.2em; height: 1.2em; }
.tb-step__ic svg { display: block; width: 100%; height: 100%; }
.tb-step__btn.is-done { background: rgba(34, 176, 106, .25); border-color: rgba(34, 176, 106, .6); color: #b9f0d2; }
/* 写せない端末では、紹介文そのものを出して選んでもらう */
.tb-step__btn--raw {
  display: block;
  border-radius: 10px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  font-weight: 400;
  line-height: 1.7;
  -webkit-user-select: text;
  user-select: text;
}

/* ---------- 超3：最終ステージ ---------- */

.tb-badge--final { background: linear-gradient(180deg, #e9d07a, #c9ab45); color: #24304a; }

.tb-chip {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 176, 106, .18);
  border: 1px solid rgba(34, 176, 106, .5);
  color: #b9f0d2;
  font-size: 11.5px;
  font-weight: 700;
}

.tb-idcard--super { border-color: rgba(93, 158, 255, .5); }
.tb-idcard__rank {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #8fb6ff;
}

/* ---------- Google の認証（フェーズ2） ---------- */

/* Google が描くボタンの置き場。中身の見た目は向こうが決めるので、
   こちらは真ん中に置いて、待っているあいだの一言を出すだけ */
.tb-gsi {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin: 14px 0 4px;
}
.tb-gsi__wait { font-size: 12.5px; color: #cfc4a3; }

/* Google の釦は iframe で来る。素の白い板が一瞬見えてちらつくので
   （発注者報告 2026-08-29・30）、読み終わりの合図（is-ready）まで
   「読み込み中…」を重ねたまま、丸めた釦へクロスフェードする */
.tb-gsi { grid-template: 1fr / 1fr; }
.tb-gsi > * { grid-area: 1 / 1; }
.tb-gsi iframe { border-radius: 999px; }
.tb-gsi__slot { opacity: 0; transition: opacity .22s ease; }
.tb-gsi.is-ready .tb-gsi__slot { opacity: 1; }
/* 消えた「読み込み中…」は、指も通す（重なったままだと釦を押せない） */
.tb-gsi__wait { pointer-events: none; }
.tb-gsi.is-ready .tb-gsi__wait { opacity: 0; transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) {
  .tb-gsi__slot, .tb-gsi.is-ready .tb-gsi__wait { transition: none; }
}

.tb-sheet__err {
  margin: 8px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(200, 16, 46, .16);
  border: 1px solid rgba(200, 16, 46, .45);
  color: #ffd9de;
  font-size: 12px;
  line-height: 1.7;
}
.tb-sheet__err[hidden] { display: none; }

/* ---------- 手順の「詳細はこちら」 ---------- */

.tb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(93, 158, 255, .4);
  border-radius: 999px;
  background: rgba(93, 158, 255, .14);
  color: #dce8ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.tb-more:active { transform: translateY(1px); }
.tb-more__mark { font-size: 10px; line-height: 1; }

.tb-detail {
  margin-top: 10px;
  padding: 10px 12px 4px;
  border-radius: 12px;
  background: rgba(4, 9, 18, .45);
  border: 1px solid rgba(255, 255, 255, .1);
}
.tb-detail[hidden] { display: none; }

/* 詳しいほうは一段ずつ縦に読ませる。短い版より行間を広く取る */
.tb-detail__list li { align-items: flex-start; padding: 6px 0; }
.tb-detail__list li span { line-height: 1.6; }
.tb-detail__list li i { margin-top: 1px; }

/* かつてここに「ホーム画面に追加して…成功です！」の帯（.tb-detail__done）を
   置いていたが、最後の段が同じことを言うので発注者指示（2026-08-28）で外した */

/* 手順の図。発注者が作ったもので、実際の画面をそのまま写している。
   開くまで取りにいかない（loading="lazy"）ので、閉じているあいだは重くならない */
.tb-detail__pic {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
  border-radius: 10px;
  background: #0b1c38;
}

/* ホーム画面の手順の下の注意書き（発注者指示 2026-08-28）。
   開いた先ではログインが要る、を黄色で目立たせる */
.tb-steps__login {
  margin: 9px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd76a;
}
.tb-steps__login::before { content: '⚠ '; }

/* ---------- 変身の確認（発注者指示 2026-08-28）----------
   幕開けの前に出す「超高島ブースターに変身しますか？」。
   黒地に黄金のきらめき。「はい」と「イエス」——どちらを押しても
   変身し、テーマソングと青い幕開けが始まる（この一押しが音の鍵）。 */

.tb-henshin {
  position: fixed;
  inset: 0;
  z-index: 195;                 /* 幕(150)より上、幕開け(200)のすぐ下 */
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% 32%, rgba(84, 62, 10, .5), rgba(0, 0, 0, 0) 62%),
    #060604;
  animation: tb-fxin .3s ease-out 1;
}
.tb-henshin.is-out { opacity: 0; transition: opacity .22s ease; }
.tb-henshin__inner { position: relative; padding: 0 24px; text-align: center; }
.tb-henshin__title {
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #fff3c4, #f5d268 55%, #c99a1d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(245, 210, 104, .35));
}
.tb-henshin__row { display: flex; gap: 14px; justify-content: center; }
.tb-henshin__btn {
  min-width: 116px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 210, 104, .8);
  background: linear-gradient(180deg, rgba(245, 210, 104, .2), rgba(148, 104, 12, .12));
  color: #f7df8e;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 0 20px rgba(245, 210, 104, .18), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.tb-henshin__btn:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, rgba(245, 210, 104, .34), rgba(148, 104, 12, .2));
}
/* 神の確認は金地（発注者指示 2026-08-30：ゴールドの中に、赤い炎と
   青い炎が後ろのほうでそこかしこにメラメラ。題は金のまま手前） */
.tb-henshin.is-god {
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(245, 210, 104, .40), rgba(120, 84, 18, .16) 55%, rgba(0, 0, 0, 0) 76%),
    linear-gradient(180deg, #3a2c08 0%, #241a05 55%, #140e03 100%);
}

/* 炎の海。赤（既定）と青（is-super）が下辺に沿って燃え上がる。
   層の揺らめきは既存の tb-flO/M/C、全体のゆらぎはここで足す */
.tb-hensea {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.tb-hensea__fl {
  position: absolute;
  opacity: .85;
  animation: tb-seaBob 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.tb-hensea__fl .tb-fl { width: 100%; height: 100%; }

/* 海の炎は赤と青のまま。is-god（金）の塗り替えより後に書いて勝たせる */
.tb-hensea .tb-fl.is-on {
  background: radial-gradient(58% 52% at 50% 62%,
    rgba(255, 122, 26, .5), rgba(255, 122, 26, .16) 55%, rgba(255, 122, 26, 0) 78%);
}
.tb-hensea .tb-fl.is-on .tb-fl__o { fill: url(#tb-gO); }
.tb-hensea .tb-fl.is-on .tb-fl__m { fill: url(#tb-gM); }
.tb-hensea .tb-fl.is-on .tb-fl__c { fill: url(#tb-gC); }
.tb-hensea .is-super .tb-fl.is-on {
  background: radial-gradient(58% 52% at 50% 62%,
    rgba(43, 125, 255, .55), rgba(43, 125, 255, .18) 55%, rgba(43, 125, 255, 0) 78%);
}
.tb-hensea .is-super .tb-fl.is-on .tb-fl__o { fill: url(#tb-gBO); }
.tb-hensea .is-super .tb-fl.is-on .tb-fl__m { fill: url(#tb-gBM); }
.tb-hensea .is-super .tb-fl.is-on .tb-fl__c { fill: url(#tb-gBC); }
@keyframes tb-seaBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .tb-hensea__fl { animation: none; } }

/* 黄金のきらめき（星形）。位置と間は JS がその場で散らす */
.tb-henshin__spark {
  position: absolute;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle, #fff6cf 0 26%, rgba(245, 210, 104, .95) 45%, rgba(245, 210, 104, 0) 72%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: tb-spark 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tb-spark { 0%, 100% { opacity: 0; } 45% { opacity: 1; } }

/* ---------- 超高島ブースターの幕開け ----------
   ホーム画面から開いて超1へ上がる、その一度きりの演出。
   画面が真っ黒になり、真ん中で青い光がほとばしり、青い炎が
   メラメラと立ち上がってから、超1のシートが出る。
   押せば飛ばせる。動きを控える設定では、そもそも出さない。 */

.tb-superfx {
  position: fixed;
  inset: 0;
  z-index: 200;                 /* 幕(150)より上。いちばん手前 */
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  animation: tb-fxin .18s ease-out 1;
}
.tb-superfx.is-out { opacity: 0; transition: opacity .26s ease; }
@keyframes tb-fxin { from { opacity: 0; } to { opacity: 1; } }

/* 真ん中でほとばしる光 */
.tb-superfx__glow {
  position: absolute;
  width: 72vmax;
  height: 72vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(166, 236, 255, .95) 0%,
    rgba(86, 193, 255, .55) 22%,
    rgba(43, 125, 255, .28) 45%,
    transparent 70%);
  animation: tb-fxglow 1.9s ease-out 1 forwards;
}
@keyframes tb-fxglow {
  0% { transform: scale(.04); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: scale(.75); }
  100% { transform: scale(1); opacity: .85; }
}

/* 外へ広がる輪。二本、時間差で。
   小さな円を拡大すると縁まで太ってしまうので、逆に「仕上がりの大きさで
   作っておいて、縮めた状態から戻す」。縁は最後でも 3px の細い線のまま */
.tb-superfx__ring {
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  border-radius: 50%;
  border: 3px solid rgba(93, 158, 255, .85);
  opacity: 0;
  animation: tb-fxring 1.5s cubic-bezier(.16, .8, .4, 1) 1 forwards;
  animation-delay: .26s;
}
.tb-superfx__ring--late { animation-delay: .58s; border-color: rgba(166, 236, 255, .7); }
@keyframes tb-fxring {
  0% { transform: scale(.03); opacity: .95; }
  70% { opacity: .55; }
  100% { transform: scale(1); opacity: 0; }
}

/* 立ち上がる青い炎。層の揺らめきは既存の tb-flO/M/C がそのまま効く */
.tb-superfx__fl { position: relative; animation: tb-fxfl 1.9s cubic-bezier(.2, .9, .3, 1.15) 1 forwards; transform-origin: 50% 92%; }
.tb-superfx__fl .tb-fl { display: block; width: 104px; height: 146px; }
.tb-superfx__fl .tb-fl.is-on { filter: drop-shadow(0 0 26px rgba(86, 193, 255, .9)); }
@keyframes tb-fxfl {
  0% { transform: scale(.08); opacity: 0; }
  26% { transform: scale(1.4); opacity: 1; }
  50% { transform: scale(.92); }
  100% { transform: scale(1.06); }
}

/* ---------- 神高島の幕開け（金。発注者指示 2026-08-29） ----------
   仕組みは超と同じ。光・輪・炎が金になり、後光の筋が加わって
   「神々しくゴージャス」に寄せる */
.tb-superfx.is-god .tb-superfx__glow {
  background: radial-gradient(circle,
    rgba(255, 246, 207, .96) 0%,
    rgba(245, 210, 104, .6) 22%,
    rgba(176, 138, 46, .3) 45%,
    transparent 70%);
}
.tb-superfx.is-god .tb-superfx__ring { border-color: rgba(245, 210, 104, .9); }
.tb-superfx.is-god .tb-superfx__ring--late { border-color: rgba(255, 246, 207, .75); }
.tb-superfx.is-god .tb-superfx__fl .tb-fl.is-on {
  filter: drop-shadow(0 0 30px rgba(245, 210, 104, .95));
}

/* 後光の筋。中心から差し、ゆっくり回りながら広がる */
.tb-superfx__rays {
  position: absolute;
  width: 150vmax;
  height: 150vmax;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    rgba(245, 210, 104, .2) 0deg 7deg, rgba(245, 210, 104, 0) 7deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  animation: tb-fxrays 2.6s ease-out 1 forwards;
}
@keyframes tb-fxrays {
  0% { transform: rotate(0deg) scale(.2); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: rotate(38deg) scale(1); opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-superfx, .tb-superfx__glow, .tb-superfx__ring, .tb-superfx__fl,
  .tb-superfx__rays { animation: none; }
}

/* ---------- プライバシーポリシーの小窓 ---------- */

.tb-link { color: #8fb6ff; text-decoration: underline; text-underline-offset: 2px; }

.tb-privacy { margin-top: 4px; }
.tb-privacy h2 {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #f2e2ac;
}
.tb-privacy p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.9;
  color: #d9cfae;
  word-break: break-word;
}
.tb-privacy strong { color: #f1e9d2; }

/* =========================================================================
   金色モード（神高島。発注者指示 2026-08-29）

   基本は「紺の地に、金の差し色」。神の札で裏返し、「金の地に、紺の文字」へ。
   紙一面をまぶしい金にすると本文（白い文字）が読めなくなるので、
     ・地は深い金（上からほのかな金の光が差す）
     ・ヘッダーと下のタブバーは明るい金の面にして、文字と線を紺に返す
   とする。印は js/booster.js が html に付ける tb-gold ひとつ。
   紺のままのカードやシートは、金の地の上でそのまま差し色として立つ。
   ========================================================================= */

html.tb-gold { background: #241a05; }
html.tb-gold body {
  background:
    radial-gradient(120% 55% at 50% -6%, rgba(245, 210, 104, .34), rgba(245, 210, 104, 0) 60%),
    linear-gradient(180deg, #4a390d 0%, #33270a 45%, #241a05 100%);
  background-attachment: fixed;
}

/* 上のヘッダー：明るい金の面に、紺の名前 */
html.tb-gold .siteHeader {
  background: linear-gradient(180deg, rgba(247, 226, 150, .97), rgba(212, 175, 74, .97));
  border-bottom-color: rgba(11, 31, 61, .5);
}
html.tb-gold .siteHeader__title { color: #0b1f3d; }
html.tb-gold .siteHeader__sub { color: #274064; }
html.tb-gold .social { color: #16305e; }
html.tb-gold .siteHeader .siteHeader__home:active,
html.tb-gold .social:active { background-color: rgba(11, 31, 61, .12); }

/* 下のタブバー：明るい金の面に、紺の文字。選び中はいちばん濃い紺 */
html.tb-gold .nav {
  background: linear-gradient(0deg, rgba(206, 166, 58, .97), rgba(238, 209, 120, .97));
  border-top-color: rgba(11, 31, 61, .5);
}
html.tb-gold .nav__link { color: #23406e; }
html.tb-gold .nav__link.is-active { color: #0b1f3d; }
html.tb-gold .nav__link.is-active .nav__label { border-bottom-color: #0b1f3d; }
html.tb-gold .nav__badge { box-shadow: 0 0 0 2px rgba(11, 31, 61, .4); }
@media (hover: hover) {
  html.tb-gold .nav__link:hover { color: #0b1f3d; background-color: rgba(11, 31, 61, .08); }
  html.tb-gold .nav__link.is-active:hover { color: #0b1f3d; }
}
html.tb-gold .nav__link:active,
html.tb-gold .nav__link.is-pressed { background-color: rgba(11, 31, 61, .14); }

/* いまの場所の丸。金の帯の上で金の丸は沈む（発注者指摘 2026-08-30：
   政策の丸がにごって見えた）ので、紺の丸に返して中の印を明るい金に。
   ただし中央の大きな「ホーム」は別（下で金にする）。ここで一緒に
   紺へ塗ってしまい、金色モードでもホームの丸だけ紺のままだった
   （発注者指摘 2026-08-30） */
html.tb-gold .nav__link.is-active:not(.nav__link--center) .nav__badge {
  background: linear-gradient(160deg, #1d3a74, #0b1f3d);
  color: #f2df9e;
  box-shadow: 0 0 0 2px rgba(11, 31, 61, .45);
}

/* 中央の「ホーム」は、帯から半分せり上がった大きな丸。帯より一段濃い
   金で塗れば、金の上でも沈まない。縁と中の家の印は紺に返す
   （金の地に青の差し色、という金色モードの決めごとどおり）。
   いまホームに居るときは、ひときわ明るい金にして居場所を示す */
html.tb-gold .nav__badge--home {
  background: linear-gradient(160deg, #f7e6b4, #c9a038);
  border-color: #0b1f3d;
  color: #0b1f3d;
  box-shadow: 0 8px 20px rgba(11, 31, 61, .4);
}
html.tb-gold .nav__link--center.is-active .nav__badge--home {
  background: linear-gradient(160deg, #fff4d2, #dfb43c);
  border-color: #0b1f3d;
}
/* 家の印は、いまの場所のときだけ HTML に白が焼き込んである。
   金の丸の上では読めないので、CSS で紺に返す */
html.tb-gold .nav__badge--home svg { stroke: #0b1f3d; }

/* クラスで紺に塗ってある小さな札も金の側へ（政策ストーリーの道しるべ・
   豆知識、高島TVの入口ボタン）。本文のインラインの塗りは js が写し替えるが、
   ここだけは CSS の出どころなので CSS で返す */
html.tb-gold .storyGuide__pill,
html.tb-gold .tip {
  background: #ecdcae;
  border-color: rgba(11, 31, 61, .35);
  color: #10224a;
}
html.tb-gold .card__goBtn {
  background: #ecdcae;
  color: #10224a;
}

/* 政策ストーリーの締めのボタン（発注者指摘 2026-08-30：ホームボタンの
   件と同じで、ここも紺のまま取り残されていた）。主は濃いめの金、
   従は淡い金。どちらも紺の字で、主従の差は残す */
html.tb-gold .slide__goBtn {
  background: linear-gradient(180deg, #e8cd80, #cfa63a);
  color: #0b1f3d;
  box-shadow: 0 6px 18px rgba(11, 31, 61, .24);
}
html.tb-gold .slide__goBtn--sub {
  background: #fbf3dd;
  border-color: rgba(11, 31, 61, .3);
  color: #10224a;
  box-shadow: 0 4px 14px rgba(11, 31, 61, .16);
}
html.tb-gold .slide__goBtn span { opacity: .8; }

/* プロフィールの幕開け。写真の下に敷く地が紺のままだと、金色モードで
   ここだけ全画面が紺になる。本文と同じ地に返す（写真の見え方は
   変えたくないので、明るくはしない） */
html.tb-gold .intro {
  background: linear-gradient(180deg, #4a390d 0%, #33270a 45%, #241a05 100%);
}

/* ホームの右上は本棚（css/site.css の .bkshelf）と場所を分け合う。
   本棚は静的な HTML で先に居て、挑戦はこのあと JS が足すので、
   兄弟セレクタで「本棚が居るときだけ」一段下げられる
   （発注者指示 2026-09-14：赤丸の位置に本棚を置く） */
.bkshelf ~ .tb-challenge {
  top: calc(var(--header-h, 61px) + 128px);
}
/* 本棚の下にラジオ（ポッドキャストの入口、css/site.css の .podcast）も
   居るときは、さらにその下へ（発注者指示 2026-09-22） */
.podcast ~ .tb-challenge {
  top: calc(var(--header-h, 61px) + 192px);
}
