@charset "UTF-8";
/* =========================================================
   楓ふうあ × 4TITLES コラボキャンペーン LP

   ■テーマ
     背景画像 images/test_red.jpg（朱赤の中華風ダマスク＋金の回紋フレーム）
     に合わせた「紅 × 金」のトンマナ。
     カードは生成り（象牙色）、罫線・装飾は金、強調色は朱赤で統一する。

   ■ブレイクポイント方針（2パターン構成）
     PC            : 1025px 以上（このファイルのベース記述）
     タブレット/SP : 1024px 以下（末尾の @media で上書き）

     ■例外：報酬紹介（タブ＋ミッション表）のみ
       「タブレットはPCと同じ見た目」という指定のため 767px を境界とし、
       SP専用ブロック @media screen and (max-width:767px) で縦積みにする。
     ※境界を変更する場合は index.html の <link media> と
       ファーストビュー <picture> の <source media> も揃えること。
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root{
  /* 紅（背景画像から採色） */
  --red-900: #59080F;
  --red-800: #7C0D18;
  --red-700: #9A1120;
  --red-600: #B4172A;   /* 背景のベース赤 */
  --red-500: #C62D3E;
  --red-400: #D9505F;   /* ホバー時の明るい紅 */

  /* 金（フレーム罫線から採色） */
  --gold-100:#FDF6E4;
  --gold-200:#F6E6C2;
  --gold-300:#EFCE8E;   /* フレームの金 */
  --gold-400:#DFB067;
  --gold-500:#C6903F;
  --gold-600:#9E6E28;

  /* 生成り・文字 */
  --ivory   : #FFFAF0;
  --ivory-2 : #FBF3E4;
  --ink     : #4A1017;  /* 見出し・強調テキスト（生成り地の上） */
  --text    : #5C2A2E;  /* 本文（生成り地の上） */

  --shadow-s: 0 4px 14px rgba(46,4,9,.22);
  --shadow-m: 0 10px 30px rgba(46,4,9,.30);
  --shadow-l: 0 20px 50px rgba(46,4,9,.40);


  --container: 1080px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:20px; -webkit-text-size-adjust:100%; }
body,h1,h2,h3,h4,p,ul,ol,li,dl,dt,dd,figure,figcaption{ margin:0; padding:0; }
ul,ol{ list-style:none; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

body{
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic Medium","Yu Gothic",
              "Noto Sans JP","Meiryo",system-ui,sans-serif;
  color:var(--text);
  line-height:1.85;
  font-size:16px;
  letter-spacing:.02em;
  background:var(--red-600);
  overflow-x:hidden;
}

/* 背景画像は固定レイヤーとして敷く。
   body に background-attachment:fixed を使うと iOS で固定されないため、
   position:fixed の疑似要素で実装している。 */
body::before{
  content:""; position:fixed; inset:0; z-index:0;
  background:url(../images/test_red2.jpg) center center / cover no-repeat;
  background-color:var(--red-600);
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.sp-only{ display:none; }

/* =========================================================
   PF共通ヘッダー 保護レイヤー
   ---------------------------------------------------------
   css/dmm/pc/dmmheader.css・css/dmm/sp/dmmheader.css は
   ガイドライン提供物のため一切改変しない。
   代わりに、本ファイルのリセット／ベーススタイルが共通ヘッダーへ
   波及しないよう、ここで打ち消してガイドライン通りの表示に戻す。
   ========================================================= */

/* --- PC/SP共通：リセットの波及を打ち消す --- */
.pf-header,
.pf-header *,
.pf-header *::before,
.pf-header *::after{
  box-sizing:content-box;          /* 本LPの border-box を無効化 */
  letter-spacing:normal;           /* body の letter-spacing を無効化 */
}
.pf-header{
  position:relative;
  z-index:110;                     /* 背景・パーティクルより必ず前面（隠さない） */
  line-height:normal;
  background:#fff;                 /* 赤背景に載せても規約通りの見た目を保つ */
}

/* --- PC版固有 ---
   ガイドラインCSSは .navi_right のリンク色を指定していないため、
   a{color:inherit;text-decoration:none} を revert してUA既定表示に戻す。 */
#dmm_ntgnavi{ color:#333; }
#dmm_ntgnavi a{
  color:revert;
  text-decoration:revert;
}
/* ガイドラインCSSが指定している箇所は、その指定を尊重して復元 */
#dmm_ntgnavi .navi_left li > a{ text-decoration:none; }
#dmm_ntgnavi .navi_left li > a span{ color:#333; }

/* --- SP版固有 ---
   色・下線はガイドラインCSS側（header a / .ntg-top / .arrow）が
   本LPのリセットより高い詳細度で指定済みのため、上書きしないこと。 */

/* --- 表示切替（PC / タブレット・SP）--- */
.pf-header--sp{ display:none; }

/* ---------- Layout ---------- */
.container{ width:min(100% - 40px, var(--container)); margin-inline:auto; }
.container--narrow{ width:min(100% - 40px, 820px); }

.section{ position:relative; z-index:2; padding:96px 0 104px; }
.section + .section{ padding-top:72px; }

.section__lead{
  text-align:center; font-size:1.05rem; margin:-8px 0 48px;
  color:var(--gold-200); line-height:2;
  text-shadow:0 2px 8px rgba(46,4,9,.5);
}
.section__lead strong{ color:var(--gold-300); }

/* パーティクル（金粉）キャンバス */
#petals{
  position:fixed; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:1;
}

/* =========================================================
   画像フレーム
   本番画像が未配置でも枠が見えるよう下地を敷いている（配置後は隠れる）
   ========================================================= */
.img-frame{
  position:relative; display:block; overflow:hidden;
  background:#FBF3E4;
}
.img-frame img{ width:100%; height:100%; object-fit:cover; }

/* =========================================================
   1. ファーストビュー
   PF共通ヘッダー直下〜「開催期間」直上までを1枚画像で構成
   ========================================================= */
.fv{ position:relative; z-index:2; }

.fv__image{
  display:block; width:100%;
  aspect-ratio:1600/900;              /* PC用画像の比率 */
  background:#FBF3E4;
}
.fv__image img{
  width:100%; height:100%; object-fit:cover; object-position:center top;
}

/* 開催期間はヒーロービジュアルの下端に少し重ねる。
   負のマージンで食い込ませ、z-index で前面に出す。 */
.fv__foot{
  position:relative; z-index:3;
  margin-top:-28px;
  text-align:center;
  padding:0 20px;
}
.fv__period{
  display:block; width:100%; max-width:450px; height:auto;
  margin-inline:auto;
  filter:drop-shadow(0 8px 18px rgba(46,4,9,.5));
}

/* =========================================================
   見出し
   ========================================================= */
/* セクション見出しは画像。全デバイスで同一リソースを使用する。
   ---------------------------------------------------------
   素材は「全見出し共通で 900 × 200px」の同一規格。
   文字数が異なってもカンバスは同じなので、表示サイズも常に揃う。 */
.heading{
  text-align:center; margin-bottom:48px;
}
.heading img{
  display:block; margin-inline:auto;
  width:100%; max-width:460px; height:auto;
}

.sub-heading{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  margin:76px 0 36px; text-align:center;
}
.sub-heading__en{
  font-size:.8rem; font-weight:800; letter-spacing:.3em; color:var(--gold-400);
}
.sub-heading__ja{
  position:relative; font-size:clamp(1.15rem,3.4vw,1.5rem); font-weight:900;
  color:var(--gold-100); padding:2px 0 12px;
  text-shadow:0 2px 10px rgba(46,4,9,.55);
}
/* 金の二重罫（背景フレームの意匠に合わせる） */
.sub-heading__ja::after{
  content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:100%; min-width:140px; height:5px;
  border-top:1px solid var(--gold-400);
  border-bottom:1px solid var(--gold-400);
}

/* =========================================================
   ボタン
   ========================================================= */
.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 34px; border-radius:6px;
  font-weight:800; font-size:.95rem; letter-spacing:.06em; line-height:1.4;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  text-align:center;
}
.btn:hover{ transform:translateY(-3px); }
.btn:active{ transform:translateY(-1px); }
.btn__arrow{
  width:18px; height:18px; border-radius:50%; flex-shrink:0;
  background:rgba(255,255,255,.22); position:relative;
}
.btn__arrow::after{
  content:""; position:absolute; top:50%; left:47%;
  width:5px; height:5px; border-top:2px solid currentColor; border-right:2px solid currentColor;
  transform:translate(-50%,-50%) rotate(45deg);
}

/* 主導線：紅地＋金の二重縁。サイト内で最も訴求を強くする階層。
   弾タブと同じ表現（内側の金線／上面の光沢／ホバーで抜ける光）で揃える */
.btn--primary{
  overflow:hidden;
  background:linear-gradient(180deg,var(--red-600) 0%,var(--red-800) 100%);
  color:var(--gold-200);
  border:1px solid var(--gold-400);
  box-shadow:
    inset 0 0 0 1px rgba(253,246,228,.26),
    inset 0 2px 0 rgba(255,255,255,.16),
    inset 0 -6px 12px rgba(46,4,9,.28),
    0 8px 20px rgba(46,4,9,.4);
  text-shadow:0 1px 2px rgba(46,4,9,.4);
}
.btn--primary::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 52%);
}
.btn--primary::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%;
  pointer-events:none; transform:skewX(-18deg);
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.3),rgba(255,255,255,0));
  transition:left .55s var(--ease);
}
.btn--primary:hover::after{ left:120%; }
.btn--primary .btn__arrow{ background:rgba(253,246,228,.3); }
.btn--primary > *{ position:relative; z-index:1; }
.btn--primary:hover{
  color:var(--gold-100);
  border-color:var(--gold-200);
  box-shadow:
    inset 0 0 0 1px rgba(253,246,228,.42),
    inset 0 2px 0 rgba(255,255,255,.22),
    0 14px 30px rgba(46,4,9,.5);
}
.btn--lg{ padding:18px 52px; font-size:1.05rem; }

/* 副導線：生成り地＋金縁 */
/* 副導線：主導線を邪魔しないよう、内側の金線と軽い光沢まで */
.btn--outline{
  background:linear-gradient(180deg,var(--ivory),var(--ivory-2));
  color:var(--red-700);
  border:1px solid var(--gold-400);
  box-shadow:inset 0 0 0 1px rgba(198,144,63,.26), var(--shadow-s);
}
.btn--outline .btn__arrow{ background:var(--gold-200); }
.btn--outline:hover{
  background:var(--ivory);
  border-color:var(--gold-500); color:var(--red-800);
  box-shadow:var(--shadow-m);
}

/* 公式X：副次的な導線なので、質感だけ上げて訴求は上げない */
.btn--x{
  width:100%; background:linear-gradient(180deg,#20222a 0%,#14151a 100%); color:#fff;
  border:1px solid rgba(239,206,142,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 6px 16px rgba(0,0,0,.34);
  font-size:.92rem; padding:12px 24px;
}
.btn--x:hover{ background:#26282f; border-color:var(--gold-400); box-shadow:0 12px 24px rgba(0,0,0,.4); }
.btn__x-icon{ font-size:1.1em; line-height:1; }

/* =========================================================
   2. コラボイベント概要
   ========================================================= */
.about__card{
  position:relative;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border-radius:8px;
  padding:56px 48px 48px;
  box-shadow:var(--shadow-l);
  border:1px solid var(--gold-500);
}
/* 背景フレームと同じ「二重の金罫」を内側に引く */
.about__card::before{
  content:""; position:absolute; inset:10px; border-radius:3px;
  border:1px solid var(--gold-400); pointer-events:none;
}
/* キャッチコピー画像（PC / タブレット・SP の2種を picture で出し分け） */
.about__catch{ display:block; margin:0 auto 22px; }
.about__catch img{
  width:100%; height:auto; margin-inline:auto;
  border-radius:4px;
}

.about__text{
  max-width:760px; margin:0 auto 44px; text-align:center; color:var(--text);
}
.about__text strong{ color:var(--red-700); font-weight:800; }

/* ポイント01〜03：カード全体が1枚の画像。
   height:auto なので画像本来の比率が保たれ、切れ・伸びが発生しない */
.about__points{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:44px;
  align-items:start;
}
.about__point{
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
  border-radius:6px;
}
.about__point img{
  width:100%; height:auto;
  border-radius:6px;
}
/* 画像側に枠・影を含める場合は下記2行を削除 */
.about__point{ box-shadow:0 0 0 1px rgba(198,144,63,.35), var(--shadow-s); }
.about__point:hover{
  transform:translateY(-6px);
  box-shadow:0 0 0 1px var(--gold-400), var(--shadow-m);
}

.about__meta{ border-top:1px solid var(--gold-400); }
.about__meta-row{
  display:flex; gap:20px; padding:16px 4px; border-bottom:1px solid var(--gold-300);
  font-size:.96rem;
}
.about__meta-row dt{
  flex:0 0 120px; font-weight:800; color:var(--red-700);
  position:relative; padding-left:18px;
}
/* 回紋（菱形）マーカー */
.about__meta-row dt::before{
  content:""; position:absolute; left:0; top:.78em; width:8px; height:8px;
  background:var(--gold-500); transform:rotate(45deg);
}
.about__meta-row dd{ flex:1; color:var(--text); }

/* =========================================================
   3. 参加タイトルの紹介
   1カード＝ 正方形画像／説明文／導線ボタン
   PC：4カラム横並び
   ========================================================= */
.titles{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  align-items:stretch;
}
.title-card{
  position:relative;
  display:flex; flex-direction:column;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border-radius:8px;
  overflow:hidden; box-shadow:var(--shadow-m);
  border:1px solid var(--gold-500);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* 上端の金帯。「ゲームプレイはこちら」のカードと同じ語彙で揃える */
.title-card::before{
  content:""; position:absolute; top:0; left:0; right:0; z-index:2; height:4px;
  background:linear-gradient(90deg,var(--gold-500),var(--gold-300),var(--gold-500));
}
.title-card:hover{
  transform:translateY(-8px);
  border-color:var(--gold-300);
  box-shadow:var(--shadow-l), 0 0 0 2px rgba(239,206,142,.3);
}

/* 正方形サムネイル（キャラクター＋ロゴのセット画像） */
.title-card__thumb{
  aspect-ratio:1/1;
  width:100%;
  border-bottom:1px solid var(--gold-400);
}
.title-card__thumb img{ transition:transform .5s var(--ease); }
.title-card:hover .title-card__thumb img{ transform:scale(1.05); }

.title-card__body{
  flex:1;
  display:flex; flex-direction:column;
  padding:20px 18px 22px;
}
/* 説明文はPCで3行を基準にし、min-heightで4枚のボタン位置を揃える */
.title-card__desc{
  font-size:.9rem; color:var(--text); line-height:1.8;
  text-align:left;
  min-height:calc(.9rem * 1.8 * 3);
  margin-bottom:18px;
}
.title-card__btns{
  margin-top:auto;
  display:flex; flex-direction:column; gap:9px;
}
.title-card__btn{
  width:100%;
  padding:12px 14px; font-size:.9rem; gap:7px;
}
.title-card__btn .btn__arrow{ width:16px; height:16px; }

/* 「このタイトルで遊ぶ」は画像ボタン。
   画像の比率が固定なので、4枚のボタン高さは自動的に揃う */
.title-card__btn-img{
  display:block; width:100%;
  transition:transform .25s var(--ease), filter .25s var(--ease);
  filter:drop-shadow(0 4px 10px rgba(46,4,9,.3));
}
.title-card__btn-img img{
  width:100%; height:auto;
  border-radius:6px; background:#FBF3E4;
}
/* カードのどこにホバーしてもボタンが反応し、押せる場所だと分かるようにする */
.title-card:hover .title-card__btn-img{
  filter:drop-shadow(0 8px 16px rgba(46,4,9,.4)) drop-shadow(0 0 7px rgba(239,206,142,.4));
}
.title-card__btn-img:hover{
  transform:translateY(-3px);
  filter:drop-shadow(0 10px 20px rgba(46,4,9,.45)) drop-shadow(0 0 10px rgba(246,230,194,.6)) brightness(1.06);
}
.title-card__btn-img:active{ transform:translateY(-1px); }

/* =========================================================
   4. コラボミッション紹介
   ========================================================= */
/* STEPは2枚構成。grid固定列だと枚数が変わったとき中央から外れるため、
   flex＋justify-content:center で「枚数にかかわらず常に中央」に揃える */
.steps{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch;
  gap:28px;
}
.steps > .step{ flex:0 1 344px; }
.step{
  position:relative;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border-radius:8px; padding:40px 26px 30px;
  box-shadow:var(--shadow-m); border:1px solid var(--gold-500);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover{ transform:translateY(-6px); box-shadow:var(--shadow-l); }
/* 背景フレームと同じ「二重の金罫」を内側に引く */
.step::before{
  content:""; position:absolute; inset:8px; border-radius:4px;
  border:1px solid rgba(198,144,63,.35); pointer-events:none;
}
.step:not(:last-child)::after{
  content:""; position:absolute; top:50%; right:-17px; z-index:3;
  width:0; height:0;
  border-left:11px solid var(--gold-300);
  border-top:9px solid transparent; border-bottom:9px solid transparent;
}
/* STEP番号：紅地＋金縁のメダル */
.step__num{
  position:absolute; top:-18px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:60px; height:60px; border-radius:50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.34), rgba(255,255,255,0) 58%),
    linear-gradient(180deg,var(--red-600),var(--red-800));
  color:var(--gold-200); font-size:1.35rem; font-weight:900; line-height:1;
  box-shadow:inset 0 0 0 1px rgba(253,246,228,.3), 0 8px 18px rgba(46,4,9,.42);
  text-shadow:0 1px 2px rgba(46,4,9,.45);
  border:2px solid var(--gold-300);
  outline:2px solid var(--ivory);
}
.step__num small{ font-size:.36em; letter-spacing:.14em; font-weight:800; opacity:.9; }
.step__body{ padding-top:14px; }
.step__img{
  width:100%; height:auto; margin-bottom:16px;
  border-radius:6px; background:#FBF3E4;
}
.step__ttl{
  text-align:center; font-size:1.02rem; font-weight:900; color:var(--red-700);
  margin-bottom:8px;
}
.step__txt{ font-size:.93rem; color:var(--text); }
.step__txt strong{ color:var(--red-700); font-weight:800; }

/* --- 報酬紹介：弾（フェーズ）切り替えタブ --- */
.tabs{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:24px;
}
.tab{
  /* 「第○弾」ラベルそのものを大きくしてボタンにしたもの。外側に別枠は重ねない */
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  padding:19px 24px; border-radius:999px;
  background:linear-gradient(180deg,var(--red-600) 0%,var(--red-800) 100%);
  color:var(--gold-200);
  border:1px solid var(--gold-400);
  /* 内側の金線（二重枠）＋上面のハイライト＋落ち影 */
  box-shadow:
    inset 0 0 0 1px rgba(253,246,228,.26),
    inset 0 2px 0 rgba(255,255,255,.16),
    inset 0 -6px 12px rgba(46,4,9,.3),
    0 6px 14px rgba(46,4,9,.3);
  transition:all .28s var(--ease);
}
/* 上半分の光沢 */
.tab::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 52%);
}
/* ホバーで左から右へ抜ける光。押せることを伝える */
.tab::after{
  content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%;
  border-radius:inherit; pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.34),rgba(255,255,255,0));
  transform:skewX(-18deg); transition:left .55s var(--ease);
}
.tab:hover::after{ left:120%; }
.tab__phase{
  font-size:1.24rem; font-weight:900; letter-spacing:.18em; line-height:1;
  text-shadow:0 1px 2px rgba(46,4,9,.45);
}
.tab:hover{
  transform:translateY(-3px); border-color:var(--gold-200);
  box-shadow:
    inset 0 0 0 1px rgba(253,246,228,.4),
    inset 0 2px 0 rgba(255,255,255,.2),
    0 12px 22px rgba(46,4,9,.38);
}
.tab:active{ transform:translateY(-1px); }
/* 選択中はラベルの仕様どおり金地に反転（文字色は color の継承で切り替わる） */
.tab.is-active{
  background:linear-gradient(180deg,var(--gold-200) 0%,var(--gold-400) 52%,var(--gold-500) 100%);
  color:var(--red-800);
  border-color:var(--gold-100);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.65),
    inset 0 2px 0 rgba(255,255,255,.5),
    0 0 0 3px rgba(239,206,142,.22),
    0 10px 24px rgba(46,4,9,.38);
}
.tab.is-active .tab__phase{ text-shadow:0 1px 0 rgba(255,255,255,.5); }
/* 選択中は下向きの矢羽根で、直下のコンテンツへ視線を送る */
.tab.is-active{ overflow:visible; }
.tab.is-active::after{
  content:""; left:50%; top:auto; bottom:-9px; width:auto;
  border-left:9px solid transparent; border-right:9px solid transparent;
  border-top:10px solid var(--gold-400);
  transform:translateX(-50%); transition:none; border-radius:0;
  background:none;
}
/* 開催ステータスの表示は持たない。
   開催期間後も各ゲームで報酬の受け取り期間があるため、
   終了した弾も同じ見た目で閲覧できるようにしている */

.tab-panel[hidden]{ display:none; }
.tab-panel.is-active{ animation:panelIn .45s var(--ease) both; }
@keyframes panelIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

/* --- パネル本体：上からロゴ×2 → 表 → 導線 --- */
.phase{
  --phase-pad-x:32px;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border:1px solid var(--gold-500); border-radius:8px;
  box-shadow:var(--shadow-l);
  padding:0 32px 32px;
}
.phase__head{ text-align:center; }
/* タブの選択中バッジと同一仕様に揃える（金地＋濃紅文字） */
.phase__badge{
  display:inline-block; margin-bottom:14px;
  padding:9px 28px; border-radius:999px;
  font-size:1.24rem; font-weight:900; letter-spacing:.18em; line-height:1;
  background:linear-gradient(180deg,var(--gold-200) 0%,var(--gold-400) 52%,var(--gold-500) 100%);
  color:var(--red-800);
  border:1px solid var(--gold-100);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.65),
    inset 0 2px 0 rgba(255,255,255,.5),
    0 0 0 3px rgba(239,206,142,.22),
    0 6px 14px rgba(46,4,9,.26);
  text-shadow:0 1px 0 rgba(255,255,255,.5);
}
.phase__note{
  margin:32px 0 20px; display:inline-block; padding:5px 16px; border-radius:6px;
  background:rgba(89,8,15,.08); border:1px solid var(--gold-400);
  font-size:.86rem; font-weight:800; color:var(--red-700);
}
.phase__note[hidden]{ display:none; }

/* --- ミッションバナー（タイトル2種＋開催期間を1枚画像で表示） ---
     画像は .phase のpaddingを打ち消して tab-panel いっぱいの幅まで
     フルブリード表示（枠なし）。ミッション表はその下端に重ねて配置する。
     開催期間の文字は、画像内の黒バー（高さ比率で約60〜65%の位置）に重ねる。 */
.mission-banner{
  position:relative; line-height:0;
  width:calc(100% + (var(--phase-pad-x) * 2));
  margin:0 calc(var(--phase-pad-x) * -1);
}
.mission-banner picture,
.mission-banner img{ display:block; width:100%; height:auto; }
.mission-banner__period{
  position:absolute; left:50%; top:62%; transform:translate(-50%,-50%);
  width:83%; margin:0;
  text-align:center; white-space:nowrap;
  color:#fff; font-weight:800; letter-spacing:.01em;
  font-size:clamp(.44rem, 2.3vw, 1.02rem);
  text-shadow:0 1px 3px rgba(0,0,0,.45);
}

.phase__ctas{
  display:flex; gap:14px; justify-content:center; margin-top:26px; flex-wrap:wrap;
}
.phase__cta{ flex:0 1 340px; }

/* パネル内タブはSP専用（PC・タブレットでは非表示） */
.side-tabs{ display:none; }

/* =========================================================
   ゲーム別カラー
   ---------------------------------------------------------
   各タイトルロゴから抽出した色を基準に、UI用として
   ・head  … 見出し帯（文字が乗るので明度を落とす）
   ・ink   … 明るい地の上に置く文字色
   ・t1/t2 … リストの交互色（現在のトーンに合わせて淡く）
   ・t3    … 最終行用にもう一段濃く
   へ調整したもの。
   ========================================================= */
:root{
  /* ハーレムオブトーキョー：紫（ロゴのシルエット320-330°を紫側へ寄せて分離） */
  --g-haretou-head:#5F3A80;  --g-haretou-head2:#6E4890;  --g-haretou-tx:#F6E6C2;
  --g-haretou-ink:#4A2A63;   --g-haretou-line:#C9B3DF;
  --g-haretou-t1:#F8F3FC;    --g-haretou-t2:#EDE4F6;     --g-haretou-t3:#E1D2F0;

  /* 先生、学校でしようよ！：黄色（ロゴ50° #FFE97F 由来） */
  --g-sengaku-head:#EDB91F;  --g-sengaku-head2:#F5C942;  --g-sengaku-tx:#4A2A00;
  --g-sengaku-ink:#7A5200;   --g-sengaku-line:#E0C77E;
  --g-sengaku-t1:#FDF9EC;    --g-sengaku-t2:#F9EFD0;     --g-sengaku-t3:#F3E4B4;

  /* 美少女全鑑☆キャンパス編：水色（ロゴ200° #32BAFF 由来） */
  --g-bikyan-head:#1B7BA8;   --g-bikyan-head2:#2790BF;   --g-bikyan-tx:#F0FAFF;
  --g-bikyan-ink:#0F4F6E;    --g-bikyan-line:#9DCFE6;
  --g-bikyan-t1:#F0F8FC;     --g-bikyan-t2:#DDEFF9;      --g-bikyan-t3:#C9E5F4;

  /* 特命！ハメまくりカンパニー：ピンク（ロゴ330° #E50072 由来） */
  --g-hamekan-head:#C21762;  --g-hamekan-head2:#D62B76;  --g-hamekan-tx:#FFF0F7;
  --g-hamekan-ink:#8E1149;   --g-hamekan-line:#EDA9C7;
  --g-hamekan-t1:#FDF1F6;    --g-hamekan-t2:#FAE1ED;     --g-hamekan-t3:#F7D0E2;
}

/* ホストは常にハーレムオブトーキョー。ゲスト側は data-guest で切り替える */
.phase{
  --host-head:var(--g-haretou-head);   --host-head2:var(--g-haretou-head2);
  --host-tx:var(--g-haretou-tx);       --host-ink:var(--g-haretou-ink);
  --host-line:var(--g-haretou-line);
  --host-t1:var(--g-haretou-t1);       --host-t2:var(--g-haretou-t2);  --host-t3:var(--g-haretou-t3);
}
.phase[data-guest="sengaku"]{
  --guest-head:var(--g-sengaku-head);  --guest-head2:var(--g-sengaku-head2);
  --guest-tx:var(--g-sengaku-tx);      --guest-ink:var(--g-sengaku-ink);
  --guest-line:var(--g-sengaku-line);
  --guest-t1:var(--g-sengaku-t1);      --guest-t2:var(--g-sengaku-t2);  --guest-t3:var(--g-sengaku-t3);
}
.phase[data-guest="bikyan"]{
  --guest-head:var(--g-bikyan-head);   --guest-head2:var(--g-bikyan-head2);
  --guest-tx:var(--g-bikyan-tx);       --guest-ink:var(--g-bikyan-ink);
  --guest-line:var(--g-bikyan-line);
  --guest-t1:var(--g-bikyan-t1);       --guest-t2:var(--g-bikyan-t2);   --guest-t3:var(--g-bikyan-t3);
}
.phase[data-guest="hamekan"]{
  --guest-head:var(--g-hamekan-head);  --guest-head2:var(--g-hamekan-head2);
  --guest-tx:var(--g-hamekan-tx);      --guest-ink:var(--g-hamekan-ink);
  --guest-line:var(--g-hamekan-line);
  --guest-t1:var(--g-hamekan-t1);      --guest-t2:var(--g-hamekan-t2);  --guest-t3:var(--g-hamekan-t3);
}

/* --- クロス報酬テーブル ---
     画像（.mission-banner）の下端に少し食い込ませて重ねる。
     不透明な背景を敷き、画像の上に浮いたカードに見せる。 */
.mission-table-wrap{
  position:relative; z-index:2;
  margin-top:-9.5%;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border-radius:6px; border:1px solid var(--gold-500); overflow:hidden;
}
.mission-table{
  width:100%; table-layout:fixed; border-collapse:collapse; font-size:.92rem;
}
.mission-table th,
.mission-table td{
  padding:9px 12px; text-align:left; vertical-align:middle;
  overflow-wrap:anywhere; word-break:normal; line-height:1.6;
  /* 固有カラーどうしが直接ぶつからないよう、全セルを同じ罫で囲う */
  border:1px solid var(--gold-400);
}
.mission-table thead th{
  font-size:.8rem; font-weight:900; letter-spacing:.01em;
  padding-block:10px; text-align:center;
  background:linear-gradient(135deg,var(--red-700),var(--red-500));
  color:var(--gold-200);
}
/* 見出し帯は達成側のゲームカラーで塗り分ける */
.mission-table thead th.side-host { background:var(--host-head);  color:var(--host-tx); }
.mission-table thead th.side-guest{ background:var(--guest-head); color:var(--guest-tx); }
/* 2段目（ミッション内容／○○で貰える）は淡色地。
   下辺にゲームカラーの罫を敷いて上の帯と繋げ、視認性を確保する */
.mission-table thead tr:last-child th{
  font-size:.78rem; padding-block:8px; font-weight:900; letter-spacing:.04em;
  border-bottom:2px solid;
}
.mission-table thead tr:last-child th.side-host {
  background:var(--host-t2);  color:var(--host-ink);  border-bottom-color:var(--host-head);
}
.mission-table thead tr:last-child th.side-guest{
  background:var(--guest-t2); color:var(--guest-ink); border-bottom-color:var(--guest-head);
}
.mission-table thead tr:last-child th.col-no{ border-bottom-width:2px; border-bottom-color:var(--gold-500); }
/* 「で貰える」はピル状にして受取先を目立たせる */
.mission-table .th-game{ display:block; line-height:1.45; }
.mission-table .th-get{
  display:inline-block; margin-top:3px; padding:1px 12px; border-radius:999px;
  font-size:.7rem; font-weight:900; line-height:1.6; letter-spacing:.06em;
}
.mission-table th.side-host  .th-get{ background:var(--host-head);  color:var(--host-tx); }
.mission-table th.side-guest .th-get{ background:var(--guest-head); color:var(--guest-tx); }
/* 達成側／受取側のグループ見出し */
/* 1段目（そのゲームのミッション）を主役にする。
   背景フレームの意匠に合わせ、セル内側に二重の罫を回して強調する */
.mission-table .col-group{
  position:relative;
  font-size:1rem; letter-spacing:.04em; padding-block:15px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.34);
}
.mission-table .col-group::after{
  content:""; position:absolute; inset:5px;
  border:1px solid rgba(255,255,255,.42);
  pointer-events:none;
}
/* 黄色地は白罫だと沈むので、暗いほうの罫にする */
.mission-table .col-group--guest.side-guest{ --rule:rgba(255,255,255,.42); }
.phase[data-guest="sengaku"] .col-group--guest::after{ border-color:rgba(74,42,0,.30); }
.phase[data-guest="sengaku"] .col-group--guest{ box-shadow:inset 0 0 0 1px rgba(74,42,0,.22); }
.mission-table .col-group--host{ border-right:1px solid rgba(239,206,142,.45); }
.mission-table .col-no{
  width:6%; text-align:center;
  padding-inline:6px; white-space:nowrap;   /* 「No.」が2行に割れないように */
}
/* No列はどのゲームにも属さないので、地のクリーム色で中立に保つ */
.mission-table thead th.col-no{ background:var(--ivory-2); color:var(--gold-600); }
.mission-table tbody tr:nth-child(odd)  td.col-no{ background:var(--ivory); }
.mission-table tbody tr:nth-child(even) td.col-no{ background:var(--ivory-2); }
.mission-table .col-reward{ width:21%; }
/* ホスト側とゲスト側の境目だけは一段強い罫で塊を分ける */
.mission-table .col-group--host,
.mission-table .col-reward.side-host{ border-right:2px solid var(--gold-500); }
/* 交互色は達成側のゲームカラーの淡色。左右で色が分かれるので
   「どちらのゲームでミッションを達成するか」が一目で分かる */
.mission-table tbody tr:nth-child(odd)  td.side-host { background:var(--host-t1); }
.mission-table tbody tr:nth-child(even) td.side-host { background:var(--host-t2); }
.mission-table tbody tr:nth-child(odd)  td.side-guest{ background:var(--guest-t1); }
.mission-table tbody tr:nth-child(even) td.side-guest{ background:var(--guest-t2); }
.mission-table tbody td{ color:var(--ink); font-weight:700; }
.mission-table tbody td.col-no{
  font-size:.9rem; font-weight:900; color:var(--gold-600); letter-spacing:.04em;
}
/* 最終行も他の行と同じ交互色・同じ罫にする（特別扱いしない） */

/* 報酬セル：画像を左、名称を右に置いて行高を詰める。
   td 自体を flex にすると table-layout:fixed の列幅計算が壊れるため、
   セルの中に flex ラッパー(.rw)を置く */
.rw{ display:flex; align-items:center; gap:9px; }
.mission-table .col-reward .rw-img{
  width:48px; height:48px; flex-shrink:0;
  border-radius:5px; border:1px solid var(--gold-400); background:#FBF3E4;
}
.mission-table .rw-name{
  font-size:.84rem; font-weight:900; color:var(--red-700); line-height:1.55;
}
.mission-table td.side-host  .rw-name{ color:var(--host-ink); }
.mission-table td.side-guest .rw-name{ color:var(--guest-ink); }
/* thead の報酬列見出しは「ゲーム名」／「で貰える」の2段・中央揃え */
.mission-table thead th.col-reward{ text-align:center; }

/* 補足情報ボタン（?）→ ダイアログ */
/* 本文の最後の1文字と ? を nowrap でくくり、アイコンだけが改行するのを防ぐ */
.nw{ white-space:nowrap; }
.info{
  display:inline-flex; align-items:center; justify-content:center;
  width:16px; height:16px; margin-left:5px; border-radius:50%;
  background:var(--gold-500); color:var(--ivory);
  font-size:.68rem; font-weight:900; line-height:1;
  vertical-align:middle; transform:translateY(-1px);   /* 文字の中心に合わせる */
  flex-shrink:0;
  transition:background .2s var(--ease), filter .2s var(--ease);
}
.info:hover{ background:var(--red-600); filter:brightness(1.1); }
.info:focus-visible{ outline:2px solid var(--red-600); outline-offset:2px; }

/* =========================================================
   5. 各ゲームへの誘導
   ========================================================= */
/* カード面（背景色＋ロゴ）を1枚の画像にし、
   その前面に「ゲームプレイはこちら」ボタン画像を絶対配置する。
   PCは4カラム横並び。 */
.plays{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; position:relative; }
.play-card{
  position:relative;
  display:flex; flex-direction:column;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border-radius:8px; overflow:hidden;
  border:1px solid var(--gold-500);
  box-shadow:var(--shadow-m);
  transition:transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
  scroll-margin-top:24px;
}
/* 上端の金帯でカードの輪郭を立たせる */
.play-card::before{
  content:""; position:absolute; top:0; left:0; right:0; z-index:2; height:5px;
  background:linear-gradient(90deg,var(--gold-500),var(--gold-300),var(--gold-500));
}
.play-card:hover{
  transform:translateY(-8px);
  border-color:var(--gold-300);
  box-shadow:var(--shadow-l), 0 0 0 2px rgba(239,206,142,.3);
}

/* カード面画像とボタンの重ね合わせ領域 */
.play-card__visual{ position:relative; }
.play-card__face{
  width:100%; height:auto;
  background:#FBF3E4;
}
/* ボタン画像はカード面画像の前面・下寄せ中央に絶対配置 */
.play-card__cta{
  position:absolute; z-index:1;
  left:50%; bottom:12px; transform:translateX(-50%);
  width:86%; max-width:260px;
  /* 最終導線なので、平常時から金のにじみを持たせて浮き上がらせる */
  filter:drop-shadow(0 6px 14px rgba(46,4,9,.45)) drop-shadow(0 0 6px rgba(239,206,142,.4));
  transition:transform .25s var(--ease), filter .25s var(--ease);
}
.play-card__cta img{ width:100%; height:auto; }
/* カードのどこにホバーしてもボタンが光る */
.play-card:hover .play-card__cta{
  filter:drop-shadow(0 9px 18px rgba(46,4,9,.5)) drop-shadow(0 0 11px rgba(246,230,194,.65));
}
.play-card__cta:hover{
  transform:translateX(-50%) translateY(-3px);
  filter:drop-shadow(0 12px 22px rgba(46,4,9,.55)) drop-shadow(0 0 14px rgba(246,230,194,.8)) brightness(1.06);
}
.play-card__cta:active{ transform:translateX(-50%) translateY(-1px); }

/* タイトル名はカード面画像に含めるため、下段は公式Xボタンのみ */
.play-card__body{
  display:flex; flex-direction:column; align-items:center;
  padding:14px 14px 16px;
}
.play-card__body .btn--x{ padding:12px 12px; font-size:.88rem; gap:6px; }

/* =========================================================
   注意事項
   ========================================================= */
.section--notes{ padding:80px 0 88px; }
.notes{
  background:rgba(89,8,15,.46);
  border-radius:6px; padding:32px 34px;
  border:1px solid var(--gold-500);
  box-shadow:var(--shadow-m);
  backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px);
}
.notes__list li{
  position:relative; padding-left:20px; font-size:.9rem; color:var(--gold-200);
  line-height:1.95;
}
.notes__list li + li{ margin-top:6px; }
.notes__list li::before{
  content:"※"; position:absolute; left:0; top:0; color:var(--gold-400); font-weight:800;
}

/* =========================================================
   フッター
   ========================================================= */
.footer{
  position:relative; z-index:2;
  background:var(--red-900); color:var(--gold-200);
  border-top:1px solid var(--gold-500);
  padding:30px 0 28px; text-align:center;
}
.footer__copy{ font-size:.82rem; letter-spacing:.08em; color:rgba(246,230,194,.65); }

/* to top */
.to-top{
  position:fixed; right:22px; bottom:22px; z-index:90;
  width:50px; height:50px; border-radius:50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.28), rgba(255,255,255,0) 60%),
    linear-gradient(180deg,var(--red-600),var(--red-800));
  border:1px solid var(--gold-300);
  box-shadow:inset 0 0 0 1px rgba(253,246,228,.24), 0 8px 20px rgba(46,4,9,.5);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:all .3s var(--ease);
}
.to-top.is-visible{ opacity:1; visibility:visible; transform:none; }
.to-top:hover{ transform:translateY(-4px); }
.to-top span{
  position:absolute; top:54%; left:50%; width:10px; height:10px;
  border-top:2.5px solid var(--gold-200); border-left:2.5px solid var(--gold-200);
  border-radius:1px;
  transform:translate(-50%,-50%) rotate(45deg);
}

/* =========================================================
   追従メニュー（3点リーダー）
   ---------------------------------------------------------
   全デバイス共通。画面右上に固定。
   PF共通ヘッダーを覆わないよう、top は JS が動的に設定する
   （スクロール位置に応じて 12px 〜 ヘッダー下端＋12px を可変）。
   ========================================================= */
.fab{
  position:fixed; right:16px; top:12px; z-index:95;
  display:flex; flex-direction:column; align-items:flex-end; gap:8px;
}
/* 角丸の四角ボタン（MENUテキスト） */
.fab__btn{
  display:grid; place-items:center;
  min-width:76px; padding:12px 18px; border-radius:8px;
  background:linear-gradient(180deg,var(--red-600),var(--red-800));
  border:1px solid var(--gold-300);
  box-shadow:inset 0 0 0 1px rgba(253,246,228,.22), inset 0 1px 0 rgba(255,255,255,.16), 0 6px 18px rgba(46,4,9,.5);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.fab__btn:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg,var(--red-600),var(--red-400));
  box-shadow:0 10px 24px rgba(46,4,9,.6);
}
.fab__btn:focus-visible{ outline:2px solid var(--gold-200); outline-offset:3px; }

.fab__label{
  font-size:.82rem; font-weight:900; line-height:1;
  letter-spacing:.16em; padding-left:.16em;
  color:var(--gold-200);
  transition:color .25s var(--ease);
}
/* 開いている間は金地に反転させて状態を示す */
.fab__btn[aria-expanded="true"]{
  background:linear-gradient(135deg,var(--gold-500),var(--gold-300));
  border-color:var(--gold-200);
}
.fab__btn[aria-expanded="true"] .fab__label{ color:var(--red-800); }

.fab__menu{
  min-width:220px;
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border:1px solid var(--gold-500); border-radius:8px;
  box-shadow:0 14px 34px rgba(46,4,9,.5);
  overflow:hidden;
  transform-origin:top right;
  animation:fabIn .22s var(--ease) both;
}
.fab__menu[hidden]{ display:none; }
@keyframes fabIn{
  from{ opacity:0; transform:translateY(-8px) scale(.96); }
  to  { opacity:1; transform:none; }
}
.fab__list li + li{ border-top:1px solid var(--gold-300); }
.fab__list a{
  display:block; padding:13px 18px;
  font-size:.92rem; font-weight:800; color:var(--ink);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.fab__list a:hover,
.fab__list a:focus-visible{ background:var(--gold-200); color:var(--red-700); }

/* =========================================================
   キャラクター紹介ポップアップ
   ========================================================= */
/* 画面中央に表示する（inset:0 + margin:auto で上下左右とも中央寄せ） */
.modal{
  position:fixed; inset:0; margin:auto;
  width:fit-content; height:fit-content;
  max-width:none; max-height:none;
  padding:0; border:0; background:none;
  overflow:visible;
}
.modal::backdrop{ background:rgba(30,3,7,.78); }
/* showModal 非対応環境向けのフォールバック */
.modal.is-fallback{
  z-index:200;
  width:auto; height:auto; margin:0;
  display:grid; place-items:center;
  background:rgba(30,3,7,.78);
}
.modal[open]{ animation:modalIn .26s var(--ease) both; }
@keyframes modalIn{
  from{ opacity:0; transform:translateY(14px) scale(.97); }
  to  { opacity:1; transform:none; }
}

.modal__inner{ position:relative; }
.modal__img{
  display:block;
  width:auto; height:auto;
  max-width:min(92vw, 560px);
  max-height:82vh;
  border:2px solid var(--gold-400);
  border-radius:8px;
  background:#FBF3E4;
  box-shadow:0 24px 60px rgba(0,0,0,.6);
}
/* ×ボタンはウィンドウの右上に重ねて配置する */
.modal__close{
  position:absolute; top:10px; right:10px;
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg,var(--red-700),var(--red-500));
  border:1px solid var(--gold-300);
  box-shadow:0 6px 16px rgba(0,0,0,.5);
  transition:transform .22s var(--ease), background .22s var(--ease);
}
.modal__close:hover{ transform:rotate(90deg); background:linear-gradient(135deg,var(--red-600),var(--red-400)); }
.modal__close:focus-visible{ outline:2px solid var(--gold-200); outline-offset:3px; }
.modal__close span,
.modal__close span::after{
  position:absolute; top:50%; left:50%;
  width:18px; height:2px; border-radius:2px;
  background:var(--gold-200);
}
.modal__close span{ transform:translate(-50%,-50%) rotate(45deg); }
.modal__close span::after{ content:""; top:0; left:0; transform:rotate(-90deg); }

/* 補足情報ダイアログ（テキストのみ） */
.modal__inner--info{
  width:min(88vw, 460px);
  background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
  border:2px solid var(--gold-400); border-radius:8px;
  box-shadow:0 24px 60px rgba(0,0,0,.6);
  padding:28px 26px 26px;
}
/* 見出し＝該当のミッション名／報酬名 */
.modal__heading{
  font-size:1.06rem; font-weight:900; line-height:1.6;
  color:var(--ink); letter-spacing:.03em;
  padding-bottom:12px; margin-bottom:12px;
  border-bottom:1px solid var(--gold-400);
}
.modal__heading:empty{ display:none; }
/* 「補足説明」の固定ラベル */
.modal__subject{
  font-size:.76rem; font-weight:900; color:var(--gold-600);
  letter-spacing:.16em; margin-bottom:6px;
}
.modal__text{
  font-size:.96rem; line-height:1.9; color:var(--ink); font-weight:700;
}

/* モーダル表示中は背面をスクロールさせない */
html.is-modal-open,
html.is-modal-open body{ overflow:hidden; }

/* =========================================================
   スクロールリベール
   ========================================================= */
[data-reveal]{
  opacity:0; transform:translateY(28px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
  will-change:opacity,transform;
}
[data-reveal].is-visible{ opacity:1; transform:none; }


/* =========================================================
   ▼▼▼ タブレット / SP（1024px以下） ▼▼▼
   ========================================================= */
@media screen and (max-width:1024px){

  body{ font-size:15px; }
  .sp-only{ display:inline; }
  br.sp-only{ display:block; }

  /* 背景画像は縦長ビューでも意匠が潰れないよう天地中央で寄せる */
  body::before{ background-position:center center; }

  /* --- PF共通ヘッダー：SP版に切替 --- */
  .pf-header--pc{ display:none; }
  .pf-header--sp{ display:block; }

  /* --- 共通レイアウト --- */
  .section{ padding:72px 0 76px; }
  .section + .section{ padding-top:56px; }
  .section__lead{ font-size:.95rem; margin-bottom:36px; }

  /* --- 1. ファーストビュー --- */
  .fv__image{ aspect-ratio:750/1000; }   /* SP用画像の比率 */
  .fv__image img{ object-position:center center; }
  .fv__foot{ margin-top:-20px; padding:0 20px; }
  .fv__period{ max-width:340px; }

  /* --- 見出し（同一規格の素材のまま表示幅のみ縮小） --- */
  .heading{ margin-bottom:32px; }
  .heading img{ max-width:340px; }
  .sub-heading{ margin:56px 0 28px; }

  /* --- ボタン --- */
  .btn--lg{ padding:16px 30px; font-size:.98rem; width:100%; max-width:420px; }

  /* --- 2. コラボイベント概要 --- */
  .about__card{ padding:40px 22px 34px; }
  .about__catch{ margin-bottom:20px; }
  .about__text{ margin-bottom:36px; text-align:left; }
  /* 01〜03は縦積み。画像が横に伸びすぎないよう上限を設ける */
  .about__points{ grid-template-columns:1fr; gap:18px; max-width:460px; margin-inline:auto; }
  .about__meta-row{ flex-direction:column; gap:2px; }
  .about__meta-row dt{ flex:none; }

  /* --- 3. 参加タイトルの紹介：縦並び --- */
  .titles{ grid-template-columns:1fr; gap:28px; max-width:520px; margin-inline:auto; }
  .title-card__body{ padding:24px 22px 26px; }
  .title-card__desc{
    font-size:.95rem;
    min-height:0;            /* 縦積みでは行数を揃える必要がないため解除 */
    margin-bottom:20px;
  }
  .title-card__btn{ font-size:.95rem; padding-block:14px; }

  /* --- 4. コラボミッション紹介 --- */
  .steps{ flex-direction:column; align-items:center; gap:34px; }
  .steps > .step{ flex:0 0 auto; width:100%; max-width:520px; }
  .step:not(:last-child)::after{
    top:auto; bottom:-22px; right:50%; transform:translateX(50%);
    border-left:9px solid transparent; border-right:9px solid transparent;
    border-top:11px solid var(--gold-300); border-bottom:0;
  }

  /* --- 5. 各ゲームへの誘導：縦並び --- */
  .plays{ grid-template-columns:1fr; gap:16px; max-width:520px; margin-inline:auto; }
  .play-card__cta{ bottom:16px; max-width:320px; }
  .play-card__body{ padding:16px 20px 18px; }
  .play-card__body .btn--x{ padding:13px 16px; font-size:.95rem; }

  /* --- 注意事項 / フッター --- */
  .notes{ padding:24px 20px; }

  .to-top{ right:14px; bottom:14px; width:44px; height:44px; }

  /* --- 追従メニュー / ポップアップ --- */
  .fab{ right:12px; }
  .fab__btn{ min-width:70px; padding:11px 16px; }
  .fab__menu{ min-width:200px; }
  .fab__list a{ padding:12px 16px; font-size:.9rem; }
  .modal__img{ max-width:88vw; max-height:78vh; }
  .modal__close{ top:8px; right:8px; width:36px; height:36px; }
}

/* =========================================================
   ▼▼▼ SP のみ（767px以下） ▼▼▼
   ---------------------------------------------------------
   報酬紹介（タブ＋ミッション表）は「タブレットではPCと同じ見た目」と
   いう指定のため、ここだけ 767px を境界にしている。
   他セクションは 1024px の2パターン構成のまま。
   ========================================================= */
@media screen and (max-width:767px){

  /* --- 外側タブ：第○弾だけを横並び（ゲーム名・期間はパネル内に出る） --- */
  .tabs{ grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:20px; }
  .tab{ padding:14px 6px; }
  .tab__phase{ font-size:.95rem; letter-spacing:.1em; white-space:nowrap; }
  .tab.is-active::after{ bottom:-7px; border-left-width:7px; border-right-width:7px; border-top-width:8px; }

  /* --- パネル --- */
  .phase{ --phase-pad-x:14px; padding:18px 14px 20px; }
  .mission-banner__period{ font-size:clamp(.46rem, calc(3.13vw - 2.1px), .85rem); letter-spacing:0; }
  .phase__ctas{ flex-direction:column; gap:10px; margin-top:20px; }
  .phase__cta{ flex:0 0 auto; width:100%; }

  /* --- パネル内タブ：達成するゲームで切り替える（SPのみ表示） --- */
  .side-tabs{ display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:12px; }
  .side-tab{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
    padding:10px 6px; border-radius:999px;
    background:linear-gradient(180deg,var(--ivory) 0%,var(--ivory-2) 100%);
    border:1px solid var(--gold-500);
    box-shadow:inset 0 0 0 1px rgba(198,144,63,.28), 0 2px 6px rgba(46,4,9,.16);
    transition:background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  /* 選択中は弾タブと同じ語彙（内側の白線＋淡いリング）にし、
     色だけそのゲームのカラーへ置き換える */
  .side-tab.is-active{
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.4),
      inset 0 2px 0 rgba(255,255,255,.22),
      0 0 0 2px rgba(239,206,142,.25),
      0 4px 10px rgba(46,4,9,.24);
  }
  .side-tab__game{ font-size:.78rem; font-weight:900; color:var(--ink); line-height:1.35; text-align:center; }
  .side-tab__sub{ font-size:.66rem; font-weight:800; color:var(--gold-600); letter-spacing:.02em; }
  /* 選択中のタブは、そのゲームのカラーで塗る */
  .side-tab[data-side="host"].is-active { background:var(--host-head);  border-color:var(--host-head2); }
  .side-tab[data-side="guest"].is-active{ background:var(--guest-head); border-color:var(--guest-head2); }
  .side-tab[data-side="host"].is-active  .side-tab__game,
  .side-tab[data-side="host"].is-active  .side-tab__sub { color:var(--host-tx); }
  .side-tab[data-side="guest"].is-active .side-tab__game,
  .side-tab[data-side="guest"].is-active .side-tab__sub{ color:var(--guest-tx); }

  /* --- テーブル：1行＝1カード。選択中の側の2セルだけを表示 --- */
  .mission-table-wrap{ background:transparent; border:0; box-shadow:none; overflow:visible; }
  .mission-table{ display:block; table-layout:auto; font-size:.94rem; }
  .mission-table thead{
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip:rect(0 0 0 0); white-space:nowrap;
  }
  .mission-table tbody{ display:block; }
  .mission-table tbody tr{
    display:block; margin-bottom:10px;
    background:var(--ivory);
    border:1px solid var(--gold-500); border-radius:6px;
    box-shadow:var(--shadow-s);
    overflow:hidden;
  }
  .mission-table tbody tr:nth-child(even){ background:var(--ivory); }
  .mission-table tbody tr:last-child{ margin-bottom:0; }

  /* 非表示側は丸ごと隠す（DOMは1つのまま）。
     基準を .phase に置くことで、表のセルだけでなく
     導線ボタンも「達成する側のゲーム」だけに絞れる */
  .phase[data-side="host"]  .side-guest,
  .phase[data-side="guest"] .side-host{ display:none; }

  /* PC用の列幅（%指定）は display:block のセルに残ると
     幅が潰れて1文字ずつ改行されるため、必ず解除する */
  .mission-table .col-no,
  .mission-table .col-reward{ width:auto; }

  .mission-table tbody td{
    display:block; width:auto; padding:10px 14px; text-align:left;
    border:0;                       /* PC用のセル罫はSPでは使わない */
  }
  /* No. はカードの見出し帯 */
  /* カード見出し帯は、表示中の側のゲームカラー */
  .mission-table tbody td.col-no{
    text-align:left; font-size:.76rem; letter-spacing:.14em; padding:7px 14px;
  }
  .phase[data-side="host"]  .mission-table tbody td.col-no{
    background:var(--host-head);  color:var(--host-tx);
  }
  .phase[data-side="guest"] .mission-table tbody td.col-no{
    background:var(--guest-head); color:var(--guest-tx);
  }
  .mission-table tbody td.col-no::before{ content:"MISSION "; }

  .mission-table tbody td:not(.col-no)::before{
    content:attr(data-label);
    display:block; margin:0 0 3px;
    font-size:.72rem; font-weight:900; letter-spacing:.04em;
    color:var(--red-600); line-height:1.5;
  }
  /* 報酬セルは「↓ ○○で貰える」で流れを示し、淡く敷いて区別する */
  .mission-table tbody td.col-reward{ border-top:1px dashed var(--gold-400); }
  /* PCの「左＝ミッション／右＝報酬」の塗り分けを、SPでは上下に置き換える。
     .phase[data-side] を前置してPC側の交互色ルールより優先させる */
  .phase[data-side] .mission-table tbody td.side-host { background:var(--host-t1); }
  .phase[data-side] .mission-table tbody td.col-reward.side-host { background:var(--host-t2); }
  .phase[data-side] .mission-table tbody td.side-guest{ background:var(--guest-t1); }
  .phase[data-side] .mission-table tbody td.col-reward.side-guest{ background:var(--guest-t2); }
  /* ラベルの「↓ ○○で貰える」も側の色に合わせる */
  .mission-table tbody td.side-host::before { color:var(--host-ink); }
  .mission-table tbody td.side-guest::before{ color:var(--guest-ink); }
  .mission-table tbody td.col-reward::before{ content:"↓ " attr(data-label); }
  .rw{ gap:10px; }
  .mission-table .col-reward .rw-img{ width:48px; height:48px; }
  .mission-table .rw-name{ text-align:left; font-size:.9rem; }

}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  [data-reveal]{ opacity:1; transform:none; }
}
