  *,*::before,*::after{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,sans-serif;background:#f6f7fb;color:#222;line-height:1.6}
  a{text-decoration:none;color:inherit}
  img{max-width:100%;height: auto;display:block}

  /* ===== ヘッダー ===== */
  .site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #e5e7eb}
  .header-inner{display:flex;align-items:center;justify-content:center}
  .brand{display:flex;align-items:center;gap:10px}
  .brand-mark{width:32px;height:32px;background:linear-gradient(135deg,#0b7cff,#6aa6ff)}
  .brand-name{font-weight:900;font-size:18px;letter-spacing:.2px}

  /* ===== ラッパー ===== */
  .wrap{max-width:1000px;margin:0 auto;padding:12px}

  /* ===== トップバナー ===== */
  .top-banner{width:100%;overflow:hidden}
  .banner-ph{width:100%;aspect-ratio:6/1;display:flex;align-items:center;justify-content:center;color:#334;font-weight:700;background:repeating-linear-gradient(45deg,#f7f9ff 0 18px,#edf3ff 18px 36px)}

  /* ===== カテゴリー（上下2px） ===== */
  .category{border:1px solid #e5e7eb;background:#fff;margin:0}
  .category-head{background:#eef2f7;color:#222;font-weight:800;padding:3px 8px;border-bottom:1px solid #e5e7eb}
  .category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0} /* ★2列 */
  .category-item{border-right:1px solid #e5e7eb;border-top:1px solid #e5e7eb;text-align:center;padding:2px 6px;font-weight:700}
  .category-item:nth-child(3n){border-right:none} /* ★2列なので2n */
  .category-item a{display:block;padding:4px 0}
  .category-item a:active{background:#f3f6ff}

  .cat-image {
  margin-top: 4px;
  }

  .cat-image img {
    width: 100%;
    /* max-width: 80px;  */
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* ===== パンくず ===== */
  .breadcrumb{font-size:12px;color:#666;margin:8px 0 12px}

  /* ===== 見出し ===== */
  h1.headline{position:relative;padding:6px 0 8px;margin:12px 0 8px;font-size:20px;font-weight:900;letter-spacing:.2px}
  h1.headline::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#0b7cff,#86b6ff 60%,transparent 60%)}
  .subhead{font-size:13px;color:#6b7280;margin:5px 0 10px}
  h2.section-title{font-size:18px;font-weight:900;margin:18px 0 10px;border-left:4px solid #0b7cff;padding-left:8px}

  /* ===== カード・テーブル ===== */
  .card{background:#fff;margin-bottom:12px;margin-top:-10px}
  .app-list{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e5e7eb}
  .app-list tr+tr{border-top:1px solid #e5e7eb}
  .app-list th,.app-list td{padding:10px;vertical-align:middle}
  .app-list th{width:72px}
  .icon-wrap{display:flex;flex-direction:column;align-items:center;gap:6px}
  .icon-box{width:52px;height:52px;background:#e9eef9;border:1px solid #e5e7eb;text-align: center;border-radius: 15px}
  .icon-pr {
  margin-top: 2px;

  font-size: 10px;
  line-height: 1;
  color: #9ca3af; /* 薄いグレー */
  }
  .app-title{font-weight:800;font-size:15px;margin-bottom:1px}
  .app-desc{font-size:13px;color:#555}
  .app-meta{font-size:12px;color:#6b7280}

  /* ===== toggle-box ===== */
  .toggle-box {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin: 12px 0;
    background: #fafafa;
  }
  .toggle-box summary {
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 700;
    background: #f3f4f6;
    list-style: none;
  }
  .toggle-box summary::-webkit-details-marker { display: none; }
  .toggle-box summary::before { content: "＋ "; font-weight: 900; }
  .toggle-box[open] summary::before { content: "－ "; }

  .toggle-content { padding: 12px; background: #fff; }

  .toggle-box .toggle-content {
    overflow: hidden;
    max-height: 0 !important;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
  }
  .toggle-box[open] .toggle-content {
    max-height: 1200px !important;
    opacity: 1;
    transform: translateY(0);
  }

  .inner-link-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
  }

  .inner-link-text::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #1a73e8;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -2px; /* ← ずれを微調整 */
    left: 1px;
  }

  /* ===== NEWバッジ（鼓動） ===== */
  .badge-new{
    font-size:10px;
    font-weight:900;
    padding:2px 6px;
    line-height:1;
    border:1px solid #ffcc00;
    background:#ff4242;
    color:#fff;
    border-radius:4px;
  }

  /* 鼓動アニメーション */
  @keyframes newPulse{
    0%{
      transform:scale(1);
      box-shadow:0 0 0 rgba(255,66,66,0);
    }
    50%{
      transform:scale(1.15);
      box-shadow:0 0 6px rgba(255,66,66,.6);
    }
    100%{
      transform:scale(1);
      box-shadow:0 0 0 rgba(255,66,66,0);
    }
  }

  /* 既存の .blink をそのまま使える */
  .badge-new.blink{
    animation:newPulse 1s ease-in-out infinite;
  }

  /* ===== HOTバッジ（炎フェード） ===== */
  .badge-hot{
    font-size:10px;
    font-weight:900;
    padding:2px 6px;
    line-height:1;
    color:#fff;
    background:#ff4500;
  }

  @keyframes hotGlow{
    0%   {background:#ff4500}
    50%  {background:#ffb000; color:#7a1c00}
    100% {background:#ff4500}
  }

  .badge-hot.glow{
    animation:hotGlow 1.2s ease-in-out infinite;
  }

  /* ===== 詳細カード（最新ランキング） ===== */
  .detail-card{background:#fff;border:1px solid #e5e7eb;box-shadow:0 4px 12px rgba(0,0,0,.05);padding:14px;margin-bottom:14px}
  .detail-header{display:flex;gap:12px;align-items:center}
  .detail-icon{width:72px;height:72px;background:#e9eef9;border:0px solid #e5e7eb;flex-shrink:0}
  .detail-title{font-size:18px;font-weight:900}
  .stars{font-size:16px;color:#ffb400;letter-spacing:1px}
  .detail-meta{font-size:12px;color:#6b7280;margin-top:4px}
  .store-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
  .btn-store{flex:1;min-width:140px;text-align:center;padding:10px;border:1px solid #cfd6e3;background:#fff;font-weight:800;border-radius:6px}
  .btn-store.apple{background:#111;color:#fff;border-color:#111}
  .btn-store.google{background:#2d7e3f;color:#fff;border-color:#2d7e3f}
  .points{display:grid;margin:10px 0}
  .point{padding:5px;background:#f7f9ff;border:1px solid #e5e7eb;border-radius:6px}
  .match{max-width: none !important;width:100% !important;}
  .media-desc{font-size:14px;color:#444;margin-top:6px}
  .provider{font-size:11px;color:#6b7280;text-align:right;margin-top:8px}

  /* ===== レビュー（枠は広いまま／ナビは下・小さく・丸無し） ===== */
  .review-track{display:flex;transition:transform .3s ease}
  .review{flex:0 0 100%;padding:20px}
  .review p{margin:0;font-size:14px;color:#333}

  /* ナビ：下部・小さめ・丸(円形/枠)なし・端寄せ */
  .review-nav{
    position:absolute;left:0;right:0;bottom:4px;display:flex;justify-content:space-between;align-items:center;
    pointer-events:none;padding:0 6px;
  }
  .review-btn{
    pointer-events:auto;background:none;border:none;border-radius:0; /* ← 丸をなくす */
    font-size:18px;line-height:1;opacity:.9;color:#0b7cff;padding:4px 6px;
  }
  .review-btn:active{transform:scale(.96)}

  /* css移行 */
  /* 最後に読み込んでください（後勝ち） */
:root{
  --am-blue:#0a84ff;
  --am-blue-dark:#0066d6;
  --am-accent:#0a84ff;
  --am-text:#222;
  --am-muted:#6b7280;
  --am-border:#e6e9ef;
  --am-bg:#ffffff;
  --am-bg-soft:#f7f9fc;
}

/* ベース */
body{background:var(--am-bg); color:var(--am-text);}
a{color:var(--am-blue);}
a:hover{color:var(--am-blue-dark);}

/* ヘッダー全体 */
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;  /* 中央寄せ */
}

/* ロゴだけを表示（領域はそのまま） */
.site-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ロゴ画像設定 */
.site-title .logo {
  height: 36px;       /* 高さを既存の文字見出し程度に */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ラッパー幅はそのまま。行間はややタイトに */
.wrap{max-width:1000px}

/* トップバナー画像（横幅いっぱい・レスポンシブ対応） */
.top-banner {
  width: 100%;
  text-align: center;
}

.top-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0; /* 角丸にしたい場合は 8px 等 */
}

/* ===== Gamerch寄せ：タイポグラフィ ===== */
html { font-size: 16px; }  /* ベース */
body {
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3",
               "Yu Gothic Medium","游ゴシック Medium","Meiryo",sans-serif;
  color: #222;
  font-size: 16px;
  line-height: 1.8;          /* 行間ゆったり */
  letter-spacing: 0.01em;    /* 字間はほぼ詰めない */
  -webkit-font-smoothing: antialiased;
}

/* ランキング/カード内のタイトルだけ微調整したい場合 */
.detail-title, .game-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
  letter-spacing: -0.005em; /* ほんの僅かに詰める程度（Gamerch寄り） */
  margin: 0.2em 0 0.4em;
}

/* モバイル：可読性優先（サイズは据え置き、行間維持） */
@media (max-width: 480px) {
  body { font-size: 15px; line-height: 1.4; }
  h1 { font-size: 21px; }
  h2 { font-size: 17px; }
  h3 { font-size: 16px; }
}

/* パンくず：薄グレー＆小さめ */
.breadcrumb{font-size:12px;color:#8a90a2;margin:10px 0 14px}
.breadcrumb a{color:#4f5a6b}
.breadcrumb a:hover{color:var(--am-blue)}

/* 見出し：太字＋左線ブルー、h1は下線無しでスッキリ */
h1.headline {
  margin:14px 0 8px;
  font-size:22px;
  font-weight:900;
  padding:0;
}

h1.headline::after {
  display:none;
}

/* 装飾版（これが適用される） */
.headline {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #1a73e8, #4dafff);
  color: #fff;
  padding: 18px 20px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;

  text-shadow:
     0 2px 4px rgba(0,0,0,0.35),
     0 0 4px rgba(0,0,0,0.25);

  box-shadow:
    0 3px 10px rgba(0,0,0,0.25),
    0 6px 16px rgba(0,0,0,0.15);
}

/* ★ スマホでpaddingを上書き（ここに h1.headline を使う） */
@media (max-width: 480px) {
  h1.headline {
    padding: 7px !important;  /* ← 必要なら !importantを付けると確実 */
  }
}
/* h2：左線アクセント */
h2.section-title{
  border-left:4px solid var(--am-accent);
  padding-left:10px;margin:18px 0 12px;
  font-size:18px;font-weight:900;color:#111
}

/* アプリ一覧テーブル：ボーダー薄めで詰め気味 */
.app-list{border:1px solid var(--am-border)}
.app-list tr+tr{border-top:1px solid var(--am-border)}
.app-list th,.app-list td{padding:10px}
.app-title{font-weight:800;font-size:14px;color:#1a73e8}
.app-desc{font-size:13px;color:#445}
.app-meta{font-size:10px;color:#8a90a2}

/* カテゴリー：フラットなタイル（角丸無しは維持） */
.category{border:1px solid var(--am-border);margin:0;background:#fff}
.category-head{background:#f3f7ff;color:#111;border-bottom:1px solid var(--am-border);padding:2px 10px;font-weight:800;text-align:center}
.category-grid{gap:0}
.category-item{padding:1px 1px;border-color:var(--am-border)}
.category-item a{
  display:block;padding:3px 0;font-weight:700;
  color:#223;background:#fff
}
.category-item a:hover{background:#f6f9ff;color:var(--am-blue)}
.category-item .active{color:#fff;background:var(--am-blue)}

/* 詳細ヘッダー */
.detail-header{gap:12px}
.detail-icon{background:#f2f6ff}
.detail-title{font-size:18px;font-weight:900;color:#111}
.stars{color:#ffb400}
.detail-meta{color:#222}

/* ストアボタン：黒/緑でフラット、角は小さめ */
.store-buttons{gap:8px;margin:12px 0}
.btn-store{border-radius:6px;border:1px solid var(--am-border);background:#fff;color:#111}
.btn-store.apple{background:#111;color:#fff;border-color:#111}
.btn-store.google{background:#2d7e3f;color:#fff;border-color:#2d7e3f}
.btn-store:hover{filter:brightness(.96)}

/* おすすめポイント：薄い青背景でまとめ感 */

.point{background:#f7faff;border:1px solid var(--am-border);border-radius:6px}

.media-desc{color:#2b2f36}

/* ================================
   recommended
   detail-card 専用オーバーライド
   （HTML構成は既存のまま）
================================== */

/* カード枠：白地・極薄ボーダー・わずかな影 */
.detail-card {
  border: none;
  padding: 0;
  box-shadow: none;
  counter-increment: rank;   /* ★ カード1枚ごとに rank++ */
}

/* ▼ 区切り線用：下だけ線を入れる */
.detail-card {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 2px solid #e5e5e5;  /* ← ここだけ残す */
  padding-bottom: 24px;
  margin-bottom: 16px;
}

/* 最後のカードだけ線いらない場合（任意） */
.detail-card:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 非表示用クラス */
.hidden-card {
  display: none !important;
}

/* ヘッダー行：アイコン + タイトル群 */
.detail-header{
  display:flex;
  align-items:center;
  column-gap:12px;
  row-gap:0;
  margin-bottom:12px;
}
.detail-icon{
  width:60px;                     /* アイコンサムネは約60px角 */
  height:60px;
  background:#f4f7fd;
  
  flex-shrink:0;
}

/* タイトル・評価・メタ */
.detail-title{
  margin:0;
  font-size:18px;                 /* 見出しはやや控えめ */
  line-height:26px;               /* 18/26 */
  font-weight:800;
  color:#111;
}
.stars{
  margin-top:2px;
  font-size:18px;                 /* ★の視覚サイズを抑える */
  line-height:20px;
  color:#ffb400;
  letter-spacing:.5px;
}
/* --- 星の左に表示する丸アイコン --- */
.user-icon {
  width: 28px;      /* ← 今設定しているサイズに合わせる */
  height: 28px;
  border-radius: 50%;
  overflow: hidden;            /* ← 丸枠からはみ出さないように */
  display: inline-block;
  background-size: cover;      /* ← 画像を枠いっぱいに表示 */
  background-position: center; /* ← 画像の中央を基準に */
  background-repeat: no-repeat;
  
  /* ★ ここに画像パスを入れるだけで表示されます */
  background-image: url("https://cdn.gamerch.com/contents/wiki/3029/entry/DcONVtdD.png");
}

/* 星と縦中央揃え */
.stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== ジャンル＋配信日 ===== */
.detail-meta{
  display:block;
  width:100%;             /* 横幅いっぱい */
  background:none;        /* 背景装飾なし */
  border:none;            /* ボーダー消去 */
  margin:4px 0 0;
  padding:0;              /* 余白ゼロで詰める */
  font-size:13px;         /* 若干大きめで視認性を確保 */
  line-height:20px;
  color:#222;          /* 薄いグレー文字 */
  letter-spacing:.2px;
}

/* 横並びのときは余白だけ微調整 */
.detail-meta span + span::before{
  content:"｜";
  margin:0 4px;
  color:#c2c6cf;
}

/* ストアボタンの表示 */
.cpi-cta{
  text-align:center;
  margin:14px 0;
  padding:12px;
  border-radius:14px;
  background:#fff8d9;
  border:1px solid #f3e1a6;
}

.cta-label{
  font-weight:900;
  font-size:14px;
  margin-bottom:8px;
}
.store-buttons {
  display: flex;
  justify-content: space-between; /* 均等配置 */
  align-items: center;
  width: 100%; /* 常に画面の95% */
  max-width: 100%;
  margin: 0 auto; /* 中央寄せ */
  gap: 10px; /* 余白不要なら0 */
}

.store-buttons a {
  flex: 1; /* 均等に幅を取る */
}

.store-buttons img {
  width: 100%; /* 親要素にフィット */
  height: auto;
  display: block;
}


/* 画像を正確に収めたい場合（531×158比率を維持） */
.store-button img {
  aspect-ratio: 531 / 158;
  object-fit: contain; /* 画像比率維持で枠いっぱいに収める */
}


/* ===============================
   おすすめポイント：水色枠＋中央揃えチェック
=============================== */
/* ★ 見出し部分（PICKUP） */
.points-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a73e8;

  margin-bottom: 8px;
  position: relative;
  padding-bottom: 6px;

  text-align: center;   /* ←これが中央揃えの本体 */
}

/* PICKUP をど真ん中に固定 */
.points-title .title-text {
  display: inline-block;
  position: relative;
  z-index: 2;
}

/* 下線 */
.points-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 1.5px;
  background: #4dafff;
  opacity: 0.8;
}

/* 指アイコン：中央基準で左側に配置 */
.points-title .icon-hand {
  position: absolute;

  left: 50%;                  /* ←中央基準 */
  top: 50%;
  transform: translate(-250%, -60%);  
  /* ↑ 「中央から左に120%」にズラす → PICKUP の左横に並ぶ */

  width: 24px;
  height: 24px;
  background-image: url('https://cdn.gamerch.com/contents/wiki/3029/entry/0FT4rZRU.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* アイコン画像を使わず emoji にしたい場合（どちらか選択） */
/*
.icon-hand {
  font-size: 18px;
  line-height: 1;

}
.icon-hand::before {
  content: "👉";
}
*/
.points {
  border: 2px solid #4dafff;       /* 太めの水色枠 */
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px 12px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  /* ★ 発光エフェクト */
  box-shadow:
    0 0 4px   rgba(77,175,255,0.6),
    0 0 8px   rgba(77,175,255,0.4),
    0 0 12px  rgba(77,175,255,0.25);
}

/* 各ポイント項目（ボーダーなし） */
.point {
  position: relative;
  padding-left: 28px;              /* チェックマーク分の余白 */
  font-size: 15px;
  line-height: 1.6;
  color: #0a84ff;
  font-weight: 600;
  border: none;                    /* ← 個別ボーダー削除 */
}

/* チェックマーク：テキスト中央に揃える */
.point::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;                        /* 垂直中央 */
  transform: translateY(-50%);     /* 位置調整 */
  color: #0a84ff;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

/* 画像 + 説明：上下マージン調整、細枠 */
.media-block{ margin:14px 0; }
.media-img{
  position: relative;
  width: 100%;
  max-width: 500px;   /* 現状の画像サイズに合わせる */
  aspect-ratio:auto;
  background:#e9eef9;
  border:1px solid #e5e7eb;
  overflow: hidden;   /* 角丸あるならはみ出し防止 */
}

.media-img img,
.media-img video {
  display: block;
  width: 100% !important;
  height: auto !important;  /* ★ 100% をやめる */
}

/* 縦動画用：親コンテナ側の制約を弱める */
.vertical-video {
  height: auto;
}
/* 縦動画そのものの表示ルール */
.vertical-video video {
  width: 100%;           /* 横は100% 伸ばす */
  height: auto;          /* 縦は比率に任せる（切れない） */
  object-fit: contain;   /* 全体を収める（トリミングしない） */
  display: block;
  background: #000;
  max-height: 80vh;      /* 画面より長くなりすぎないようにするなら（お好みで） */
}

/* 横長：通常どおり（必要なら cover にして“映える”でもOK） */
.media-img.is-landscape video{ object-fit: cover; }

/* 正方形：全体表示が基本 */
.media-img.is-square img,
.media-img.is-square video{ object-fit: contain; background:#000; }

/* 縦長：全体表示 + 高さ制限 */
.media-img.is-portrait img,
.media-img.is-portrait video{
  object-fit: contain;
  background:#000;
  max-height: 80vh;
}

/*  h3（赤・太字・16px） */
.media-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ff0000;        /* 赤（Gamerch寄りの落ち着いた赤） */
  margin: 6px 0 -7px 0;     /* 上下の余白は読みやすい範囲に */
  line-height: 1.4;
}
.media-desc{
  margin-top:6px;
  font-size:14px;
  line-height:22px;
  color:#2c3140;
}

/* レビュー：薄枠・小角丸、本文は14/22、ナビは下部に小さく */
.review-slider{
  border:1px solid #e6e9ef;
  border-radius:6px;
  margin:14px 0;
  padding-bottom:28px;            /* 下ナビの分だけ余白を確保 */
}
.review-track{ display:flex; transition:transform .3s ease; }
.review{
  flex:0 0 100%;
  padding:16px;                   /* カード本文の余白感に合わせる */
}
.review p{
  margin:0;
  font-size:14px;
  line-height:22px;
  color:#2c3140;
}

/* 下ナビ：両端・小さめ・丸装飾なし（←過去要望を維持） */
.review-nav{
  position:absolute;
  left:0; right:0; bottom:4px;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 8px;
  pointer-events:none;            /* 本文クリックを邪魔しない */
}
.review-btn{
  pointer-events:auto;
  background:none; border:none; border-radius:0;
  font-size:18px; line-height:1; color:#0a84ff; padding:4px 6px;
}
.review-btn:active{ transform:scale(.96); }

/* 提供表記：右寄せ・極小 */
.provider{
  font-size:11px;
  line-height:16px;
  color:#7b8499;
  text-align:right;
  margin-top:10px;
}

/* ===============================
   詳細ヘッダー（リボンtop:0 / スマホも横並び）
=============================== */

.detail-card { position: relative; }

/* 上下構成 */
.detail-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─ 上段：タイトル ─ */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.detail-title {
  font-size: 22px;
  font-weight: 900;
  color: #0a56c5;
  line-height: 1.4;
  margin: 0;
}
/* スマホ時だけ適用 */
@media (max-width: 480px) {
  .detail-title {
    padding-left: 50px;
  }
}

.pr-label {
  font-size: 13px;
  font-weight: 800;
  color: #7b8499;
  background: none;
  border: none;
  margin-left: auto;
  text-align: right;
}

/* ─ 下段：アイコン＋テキスト群 横並び ─ */
.header-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;          /* ← 折り返さない（横並び維持） */
  justify-content: flex-start;
}

/* アイコン＋星は縦並び */
.icon-stack {
  display: flex;
  flex-direction: column;     /* ← 縦配置 */
  align-items: center;
  gap: 6px;
}
.detail-icon {
  width: 108px; height: 108px;
  
  
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.detail-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.icon-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.icon-stars .stars { color: #ffb400; font-size: 15px; letter-spacing: 1px; }
.icon-stars .score { font-size: 13px; color: #666; }

/* テキスト群（右側・横並び） */
.detail-texts {
  display: flex;
  flex-direction: row;        /* ← 横並び */
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  flex: 1;
}

/* バッジ行 */
.meta-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}
.chip.free { background: #22c55e; color: #fff; }
.chip.type { background: #ff9f3f; color: #fff; }
/* 追加タグ */
.chip.hot{border:1px solid #ffd0d0;background:#fff1f1;color:#b10000}
/* --- PRラベルをラベル群用に新デザイン化 --- */
.chip.pr {
  background: #fef08a;            /* 柔らかい黄色系 (Tailwind amber-200) */
  color: #92400e;                 /* 濃い茶系文字色 */
  font-weight: 800;
  border: 1px solid #facc15;      /* 明るい黄色枠 */
}

/* 旧タイトル横のPRを完全非表示（もし残っていたら） */
.header-top-right,
.pr-label {
  display: none !important;
}

/* ジャンル・配信日も横並び */
.detail-meta, .release {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #222;
  border: none;
  padding: 0;
  margin: 0;
}
.release .label {
  color: #ff6f3e;
  font-weight: 800;
  font-size: 14px;
  margin-right: 6px;
}
.release .date {
  color: #ff6f3e;
  font-weight: 900;
  font-size: 14px;
}

/* --- 順位リボン：タイトルと絶対に重ならない安全配置 --- */

.rank-badge-large {
  position: absolute;
  top: 0px;      /* 位置は微調整可能 */
  left: 0px;

  background: #ff7a5c;  /* 赤×青の相性抜群カラー */
  color: #fff;

  font-size: 15px;
  font-weight: 700;

  padding: 4px 8px;     /* 大きめのタグ感 */
  border-radius: 0;      /* ← 角丸なし */

  z-index: 20;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
}

/* ▼ バッジ内の数字を全てCSSで自動生成 */
.rank-badge-large::before {
  content: counter(rank) "位";
  font-weight: 900;
  font-size: 16px;        /* お好みで調整可能 */
  line-height: 1;
}

/* ─ スマホでも横並び維持 ─ */
@media (max-width: 480px) {
  .header-bottom {
    flex-direction: row;        /* ← 横並び維持 */
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }
  .icon-stack { flex-shrink: 0; }  /* アイコン側の幅確保 */
  .detail-texts {
    flex-direction: row;        /* 横配置 */
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 8px 10px;
  }
  .detail-icon { width: 96px; height: 96px; }
  .detail-title { text-align: center; }
  .pr-label { text-align: center; }
}

/* === PRを右端寄せに固定 === */
.header-top{display:flex; align-items:center;}
.header-top-left{flex:1 1 auto; min-width:0;}         /* タイトル側に余白を持たせる */
.header-top-right{margin-left:auto; display:flex; justify-content:flex-end; flex:0 0 auto;}
.pr-label{background:none; border:none; margin:0; text-align:right;}
@media (max-width:480px){
  .header-top{justify-content:space-between;}
  .header-top-right{margin-left:auto; justify-content:flex-end;}
  .pr-label{text-align:right;}                        /* 以前の“center”指定を上書き */
}

/* --- 星の数字を確実に太字に --- */
.icon-stars .score {
  font-weight: 900 !important;  /* ← 強制上書き */
  color: #333;
}

/* --- テキスト群を左寄せに固定（中央寄せ上書き） --- */
.detail-texts {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
}
@media (max-width: 480px) {
  .header-bottom {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  .detail-texts {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  /* スマホで中央配置（幅100%にしない） */
  .store-button {
    width: 140px;
  }
}


/* ==== ユーザーレビュー ==== */
.review-box {
  position: relative;
  border: 2px solid #4dafff;
  border-radius: 10px;
  background: #f0f7ff;
  padding: 32px 14px 14px;
  margin: 16px 0;
}

/* ===== ラベル部分 ===== */
.review-label {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);

  display: inline-flex;         /* ← アイコン＋文字を横並び */
  align-items: center;          
  gap: 6px;                      /* ← アイコンと文字の間隔 */

  padding: 6px 12px;
  background: transparent;
  color: #555;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;

  white-space: nowrap;           /* 改行させない */
}

/* アイコン（画像は自由に変更可能） */
.review-label .icon-review {
  width: 19px;                  /* ← アイコン大きさ */
  height: 19px;
  background-image: url('https://cdn.gamerch.com/contents/wiki/3029/entry/W8Jih5JM.png');  /* ← あなたの画像に変更 */
  background-size: contain;
  background-repeat: no-repeat;
}

/* テキスト */
.review-label .label-text {
  display: inline-block;
}

/* ビューポート＆トラック（スライド） */
.review-viewport{overflow:hidden}
.review-track{ display:flex; transition:transform .3s ease; }

.review-pane{
  flex:0 0 100%;
  background:#fff;
  border-radius:8px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  padding:10px;
  min-height:170px;
}
.review-pane p{ margin:8px 0 0; line-height:1.7; font-size:14px; color:#2c3140; }

/* ナビ：矢印＋ドット */
.review-dots{
  position:absolute; left:0; right:0; bottom:8px; height:24px;
}
.review-dots .dot-wrap{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:2px; display:flex; gap:6px; align-items:center; justify-content:center;
}
.review-dots .dot-wrap .dot{
  width:8px; height:8px; border-radius:50%;
  background:#b8c7e4; border:none; padding:0; cursor:pointer; transition:background .2s;
}
.review-dots .dot-wrap .dot.is-active{ background:#1a73e8; }

.review-arrow{
  position:absolute; bottom:-4px;
  background:none; border:none; color:#1a73e8;
  font-size:18px; font-weight:800; line-height:1;
  padding:4px 8px; cursor:pointer;
}
.review-arrow[data-dir="prev"]{ left:16px; }
.review-arrow[data-dir="next"]{ right:16px; }
.review-arrow:hover{ opacity:.75; }

/* PC時：トップバナーだけ padding を0に、最大幅は他と同じ500px */
@media (min-width:769px){
  .wrap > .top-banner{
    padding:0 !important;
    margin:0 auto !important;
    max-width:500px !important;
    width:100% !important;
    box-sizing:border-box;
  }
}
/* SP時：これまで通り */
@media (max-width:768px){
  .wrap > .top-banner{
    padding:0 !important;
    width:100% !important;
  }
}

/* 基本 */
body {
  margin: 0;
  background: #ffffff;   /* SPでは白背景 */
}

/* ヘッダー帯は全幅（背景色だけ横いっぱい） */
.site-header {
  background: #fff;
  color: #fff;
}

/* ヘッダー内の中身を中央500pxに収める */
.site-header .header-inner {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* トップバナー：画像は最大1000px、左右はグレーを見せたいならこう */
.top-banner {
  background: #e5e5ea;           /* ここはお好みで（なくてもOK） */
}
.top-banner img {
  display: block;
  width: 100%;
  max-width: 1000px;          /* バナー画像自体の上限幅 */
  margin: 0 auto;
}

/* 中身は従来どおり 500px の wrap を継続使用 */
.wrap {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 14px;
  box-sizing: border-box;
}

/* ★ PC（1000px以上）だけ「グレー背景＋中央に白い箱」にする */
@media (min-width: 1000px) {
  body {
    background: #e5e5ea;    /* 画面全体をグレーに */
  }

  .page-frame {
    max-width: 1000px;      /* 白い箱の横幅 */
    margin: 0px auto 48px;
    background: #ffffff;
    /* box-shadow: 0 4px 16px rgba(0,0,0,0.08); */
    padding: 16px 0 24px;
    box-sizing: border-box;
    counter-reset: rank;
  }
}

/* PC のときモーダル幅をページと完全一致させる */
@media (min-width: 769px) {
  .detail-modal-content {
    max-width: 500px !important; /* wrap と同一幅にする */
    width: 100%;
    padding-left: 10px;            /* ★ 横幅にゆとりを作る */
    padding-right: 10px;           /* ★ 同じく余白 */
  }
}

/* ページ最下部に白帯を絶対残さない */
body::after {
  content: '';
  display: block;
  height: 0; /* ここを0に固定 */
}

.store-buttons .store-button{
  display:block;
  width:160px;
  aspect-ratio:531/158;  /* 高さを比率で自動決定 */
  margin:0; padding:0; border:0;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover; /* 余白ゼロ */
  overflow:hidden;
}

/* それぞれの画像を割り当て */
.store-buttons .store-button.ios{
  background-image:url("images/appstore_button.png");
}
.store-buttons .store-button.android{
  background-image:url("images/googleplay_button.png");
}


/* ゲームタイトル（detail-header 内など） */
.detail-header .game-title,
.detail-card .game-title,
.app-title,
.detail-title {
  letter-spacing: -0.03em;   /* ← 字間を狭める（AppMedia寄せ） */
  font-weight: 700;          /* 太字を維持 */
  line-height: 1.3;          /* 詰まり気味の見せ方 */
}

.app-title {
  border-bottom: 1px solid #1a73e8; /* 下線 */
  display: inline-block;           /* 下線をタイトルにだけ適用 */
}
/* ====== 右下の「ヘッダーに戻る」ボタン ====== */
.back-to-header {
  position: fixed;
  bottom: 22px;     /* 画面下からの距離 */
  right: 18px;      /* 画面右からの距離 */
  width: 42px;
  height: 42px;
  background: #1a73e8;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 9999;
  cursor: pointer;
}

/* hover時 */
.back-to-header:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* スマホ時（少し小さめ） */
@media (max-width: 480px) {
  .back-to-header {
    width: 38px;
    height: 38px;
    font-size: 20px;
    bottom: 18px;
    right: 14px;
  }
}

/* ===== ゲーマチ風 TOPボタン（右下固定） ===== */
.back-to-header.topbtn-gamerch {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 56px;
  height: 56px;

  background: #0b1220;            /* Gamerchの濃紺 */
  border-radius: 50%;
  border: 2px solid #3b7bff;      /* 青い縁取り */

  display: flex;
  flex-direction: column;         /* 矢印 ↑ と TOP を縦並び */
  justify-content: center;
  align-items: center;
  gap: 3px;

  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  z-index: 9999;
  cursor: pointer;
  padding: 4px;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;

  /* ★ 最初は非表示（スクロールしたら表示させる） */
  
}

/* アイコン（SVG） */
.topbtn-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.topbtn-icon .top-arrow {
  width: 100%;
  height: 100%;
  fill: #c9d2e3;                /* Gamerch文字色に寄せた青白 */
}

/* TOPの文字 */
.topbtn-label {
  font-size: 13px;
  font-weight: bold;
  color: #c9d2e3;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* Hover（PCのみ） */
.back-to-header.topbtn-gamerch:hover {
  border-color: #5fa0ff;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

/* スマホ用サイズ調整 */
@media (max-width: 480px) {
  .back-to-header.topbtn-gamerch {
    width: 50px;
    height: 50px;
    bottom: 22px;
    right: 12px;
  }
  .topbtn-icon {
    width: 20px;
    height: 20px;
  }
  .topbtn-label {
    font-size: 11px;
  }
}

/* いったんパディングは素直な値に戻す */
.back-to-header.topbtn-gamerch {
  padding: 4px;              /* 上下左右 4px くらいのままでOK */
}

/* ★ 中身（アイコン＋TOP）をまとめて少し上に持ち上げる */
.back-to-header.topbtn-gamerch .topbtn-icon,
.back-to-header.topbtn-gamerch .topbtn-label {
  transform: translateY(-4px);  /* 上に4px分持ち上げる（値は好みで調整） */
}

/* PCだけもう少し上げたいとき */
@media (min-width: 769px) {
  .back-to-header.topbtn-gamerch .topbtn-icon,
  .back-to-header.topbtn-gamerch .topbtn-label {
    transform: translateY(-6px); /* PCではさらに上へ */
  }
}



/* 2×2 ギャラリー全体 */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 6px;
  margin-top: 10px;
}

/* 各サムネイル */
.media-thumb {
  position: relative;
  overflow: hidden;
  /* border-radius: 6px; */
  cursor: pointer;
  background: #111;
}

/* 横長っぽく見せる（16:9っぽい比率） */
.media-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.media-thumb:hover img {
  transform: scale(1.03);
}

/* 右下の虫眼鏡＋アイコン */
.zoom-icon {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 11px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 2px 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  pointer-events: none; /* クリック判定はサムネ全体 */
}

/* ===== ライトボックス（拡大表示） ===== */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;               /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  z-index: 9990;
}

.lightbox.is-open {
  display: flex;
}

/* 黒半透明の背景 */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

/* 中央の表示枠 */
.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 拡大画像 */
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  /* border-radius: 6px; */
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

/* 拡大表示の閉じるボタン（SVG版） */
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -8px;

  width: 32px;
  height: 32px;

  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* SVG × の表示調整 */
.close-svg {
  width: 22px;   /* ← 線の長さ調整（大きくしたいならここを増やす） */
  height: 22px;
  display: block;
}

/* スマホ時：ギャラリー余白調整 */
@media (max-width: 480px) {
  .media-gallery {
    gap: 4px;
  }
  .lightbox-inner {
    max-width: 94vw;
    max-height: 80vh;
  }
}

/* サムネ右下の「拡大」アイコン */
.zoom-icon {
  position: absolute;
  right: 6px;
  bottom: 6px;

  width: 30px;       /* ボタン自体も少し大きくするとより綺麗 */
  height: 30px;

  background: #1a73e8;      /* ゲーマチ青 */
  border-radius: 6px;       /* 角丸四角。丸にしたければ 50% に */

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;     /* クリック判定はサムネ全体 */
}

/* 中の虫眼鏡SVGをきれいに縮小 */
.zoom-svg {
  width: 80%;               /* ボタンに対して7割くらいの大きさ */
  height: 80%;
  display: block;
}
 
/* スマホで少し小さく */
@media (max-width: 480px) {
  .zoom-icon {
    width: 20px;
    height: 20px;
    right: 3px;
    bottom: 3px;
  }
  .zoom-svg {
    width: 100%;
    height: 100%;
  }
}

/* ▼ 虫眼鏡アイコン（SVG）だけ左上に移動 */
.zoom-svg {
  transform: translate(-1px, -1px); 
}

/* ▼ お問い合わせ部分（上段） */
.footer-contact .footer-links {
  color: #1a73e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 12px 80px; /* 左右にバナー・TOPボタン分の余白 */
}

.footer-links a {
  color: #4dafff;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ▼ ©部分（下段） */
.footer-copy {
  background: #dcdcdc;      /* 指定：dcdcdc */
  color: #444;              /* 濃いグレー（視認性良好） */
  padding: 3px 0;
  font-size: 12px;
}

.footer-copy .copy-text {
  text-align: center;
  color: #444;              /* 文字色濃いグレー */
}

/* ▼ レイアウト維持 */
.site-footer .wrap {
  padding-left: 16px;
  padding-right: 16px;
}

/* ==== ボックス本体 ==== */
.simple-points-box {
  position: relative;
  margin: 20px 0;
  padding: 12px;
  background: #fff;
  overflow: hidden; /* 枠からはみ出さないように */
}

/* ===============================
   上辺（左 → 右）
=============================== */
.simple-points-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: repeating-linear-gradient(
    to right,
    #ff6f3e 0 8px,
    transparent 8px 16px
  );
  background-size: 16px 2px;

  animation: moveRight 2.8s linear infinite;
}

/* ===============================
   下辺（右 → 左）
=============================== */
.simple-points-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: repeating-linear-gradient(
    to right,
    #ff6f3e 0 8px,
    transparent 8px 16px
  );
  background-size: 16px 2px;

  animation: moveLeft 2.8s linear infinite;
}

/* ===============================
   左辺（下 → 上）
=============================== */
.simple-points-box .border-left {
  position: absolute;
  top: 0;
  left: 0;

  width: 2px;
  height: 100%;

  background: repeating-linear-gradient(
    to bottom,
    #ff6f3e 0 8px,
    transparent 8px 16px
  );
  background-size: 2px 16px;

  animation: moveUp 2.8s linear infinite;
}

/* ===============================
   右辺（上 → 下）
=============================== */
.simple-points-box .border-right {
  position: absolute;
  top: 0;
  right: 0;

  width: 2px;
  height: 100%;

  background: repeating-linear-gradient(
    to bottom,
    #ff6f3e 0 8px,
    transparent 8px 16px
  );
  background-size: 2px 16px;

  animation: moveDown 2.8s linear infinite;
}

/* ===============================
   アニメーション定義
=============================== */

/* 上：左 → 右 */
@keyframes moveRight {
  0%   { background-position: 0 0; }
  100% { background-position: 16px 0; }  /* パターン1個分動かす */
}

/* 下：右 → 左 */
@keyframes moveLeft {
  0%   { background-position: 16px 0; }
  100% { background-position: 0 0; }
}

/* 左：下 → 上 */
@keyframes moveUp {
  0%   { background-position: 0 16px; }
  100% { background-position: 0 0; }
}

/* 右：上 → 下 */
@keyframes moveDown {
  0%   { background-position: 0 0; }
  100% { background-position: 0 16px; }
}


/* simple-points-box 内の文字を太字＋色変更 */
.simple-points-box p {
  margin: 0 0 6px 0;
  color: #ff6f3e;  /* ← おすすめ：濃いめの青 (変更OK) */
  font-size: 14px;
  font-weight: 700; /* ← 太字 */
  line-height: 1.6;
}

/* 最後の<p>の余白を消す */
.simple-points-box p:last-child {
  margin-bottom: 0;
}

/* 黄色いマーカー効果 */
.marker {
  background: linear-gradient(transparent 60%, #ffeb3b 60%); /* マーカー */
  padding: 0 2px;
}

.youtube-wrap{
  position: relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  overflow:hidden;
}
.youtube-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.yt-play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-size:40px;
  color:#fff;
  background:transparent;
  border:0;
}
.youtube-wrap.is-playing .yt-play{
  display:none;
}

/* ===== モーダル全体 ===== */
.detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
  box-sizing: border-box;
  z-index: 9000;
}
.detail-modal.is-open {
  display: flex;
}

/* 背景の黒いオーバーレイ */
.detail-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* ★ 枠（カード本体）：ここは overflow: visible にする */
.detail-modal-content {
  position: relative;
  max-width: 980px;
  width: 95%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  box-sizing: border-box;
  overflow: visible;          /* ← ここ重要！ */
}

/* ★ 中身だけをスクロールさせる */
.detail-modal-scroll {
  max-height: calc(100vh - 80px);  /* 上下40pxぶん引いた高さ */
  overflow-y: auto;
  border-radius: 10px;
}

/* ===== カード外ギリギリに白バツだけ表示 ===== */
.detail-modal-close {
  position: absolute;
  top: -25px;        /* カードから少し外側に出す */
  right: 12px;

  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  
  z-index: 30;

  color: #ffffff;
}

.modal-close-svg {
  width: 20px;       /* SVG 自体の大きさ */
  height: 20px;
  pointer-events: none; /* クリック対象を親ボタンに統一 */
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.9)); /* 白が背景に埋もれないよう影 */
}

/* PCホバー */
@media (hover: hover) {
  .detail-modal-close:hover .modal-close-svg {
    transform: scale(1.08);
    transition: transform .15s ease;
  }
}

/* モーダル内の本文エリア */
.detail-modal-body {
  margin-top: 8px;
}

/* SPで少し余白を詰める */
@media (max-width: 480px) {
  .detail-modal-content {
    width: 98%;
    padding: 10px;
    border-radius: 8px;
  }
}

/* モーダル内の順位ラベルは非表示にする */
.detail-modal .rank-badge-large {
  display: none !important;
}

/* article幅に合わせる */
.app-icon-table{
  width:100%;
  max-width:100%;
  margin:24px auto 0;
  border-collapse:collapse;
}

/* 罫線 */
.app-icon-table th,
.app-icon-table td{
  border:1px solid #e5e7eb;
  text-align:center;
  vertical-align:middle;
  padding:8px 4px;
}

/* 左上テキストセル */
.app-icon-head{
  width:120px;
  font-weight:700;
  font-size:13px;
  line-height:1.4;
  background:#f8fafc;
}

/* アイコン */
.app-icon-table img{
  width:48px;        /* 8列でも窮屈にならない */
  height:48px;
  border-radius:10px;
  display:block;
  margin:0 auto;
  object-fit:cover;
}

/* 空th（2段目以降）を目立たせない */
.app-icon-table th:empty{
  background:#fff;
}

/* article-inner がある前提 */
.bottom-app-section .article-inner{
  max-width: 500px;   /* ← Gamerchの本文幅（だいたいこの値） */
  margin: 0 auto;
  
}

/* td内で幅を絶対に広げない */
.app-icon-table td{
  padding:5px 0;        /* 横paddingは0にする */
}

/* buttonを完全リセット */
.app-icon-btn{
  all: unset;            /* ← これが決定打 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;           /* ← アイコンと同サイズ */
  height: 52px;
  cursor: pointer;
}

/* imgを固定サイズに */
.app-icon-btn img{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* ===== この記事を書いた人（枠） ===== */
.author-box{
  width:100%;
  border-collapse:collapse;
  margin:14px 0 0;
  background:#fff;
}

.author-box th,
.author-box td{
  border:1px solid #d1d5db;
}

.author-head{
  background:#f3f4f6;
  font-weight:800;
  text-align:center;
  padding:8px 10px;
  font-size:14px;
}

.author-icon{
  width:88px;
  text-align:center;
  vertical-align:top;
  padding: 10px 0 0 0;
}

.author-icon img{
  width:74px;
  height:74px;
  border-radius:8px;
  display:block;
  margin:0 auto;
  object-fit:cover;
}

.author-body{
  padding:10px 12px;
  vertical-align:top;
}

.author-name{
  font-weight:800;
  color:#1d4ed8; /* AppMediaっぽい青 */
  margin-bottom:6px;
}

.author-text{
  font-size:13px;
  line-height:1.6;
}

.author-text a{
  font-weight:700;
  text-decoration:none;
}
.author-text a:hover{
  text-decoration:underline;
}

#media-lightbox .lightbox-image {
  cursor: pointer;
}

/* ライトボックス全体を基準にする */
/* ===== 矢印だけ表示（既存レイアウトを壊さない版）===== */

/* backdropが上に来てクリック/表示を邪魔しないように順序固定 */
#media-lightbox .lightbox-backdrop { z-index: 1; }

/* 中身はbackdropより上 */
#media-lightbox .lightbox-inner { z-index: 2; }

/* ×は最前面（既存の top:-40px も維持される） */
#media-lightbox .lightbox-close { z-index: 4; }

/* 矢印：画面全体(#media-lightbox)基準で配置するので絶対見える */
#media-lightbox .lightbox-arrow{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  /* ▼ 視認性アップ */
  font-size: 72px;                 /* ← 大きく */
  font-weight: 300;
  color: #ffffff;
  opacity: .9;                      /* ← 常時しっかり表示 */

  /* ▼ どんな背景でも見えるように */
  text-shadow:
    0 0 8px rgba(0,0,0,.8),
    0 2px 6px rgba(0,0,0,.6);

  background: none;
  padding: 14px 18px;
}

#media-lightbox .lightbox-arrow.prev{ left: 5px; }
#media-lightbox .lightbox-arrow.next{ right: 5px; }

/* ホバーでさらに少し強調 */
#media-lightbox .lightbox-arrow:hover{
  transform: translateY(-50%) scale(1.12);
}

#media-lightbox .lightbox-count{
  position: fixed;          /* ← absolute から fixed に変更 */
  left: 12px;               /* 画面左から */
  bottom: 22px;             /* 画面下から */
  z-index: 100000;          /* lightboxより上に */

  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);

  pointer-events: none;     /* クリック邪魔しない */
}

/* =========================
   左下固定の特別訴求バナー
========================= */
.special-promo {
  position: fixed;
   bottom: 20px;   /* ← top → bottom */
  left: 20px;
  width: 110px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.special-promo.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.special-promo.is-hide {
  display: none;
}

.special-promo-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.special-promo-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* 閉じるボタン */
.special-promo-close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.9);
  cursor: pointer;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.special-promo-close::before,
.special-promo-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform-origin: center;
}

.special-promo-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.special-promo-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.special-promo-close:hover {
  background: rgba(0, 0, 0, 0.96);
  transform: scale(1.08);
}

.special-promo-close:active {
  transform: scale(0.96);
}

/* スマホでは少し小さめ */
@media (max-width: 768px) {
  .special-promo {
    bottom: 16px;
    left: 12px;
    width: 70px;
  }

  .special-promo-close {
    width: 24px;
    height: 24px;
    font-size: 27px;
    top: -3px;
    right: -3px;
  }
}

.special-promo {
  animation: promoFadeIn 0.6s ease;
}

@keyframes promoFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-poster img,
.vertical-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
}

.video-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

/* 編集部評価 */
.review-label {
  margin-bottom: 10px;
}

.review-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
}

.review-rating .stars {
  color: #ff9900;
  font-size: 20px;
  letter-spacing: 2px;
}

.review-rating .score {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.review-pane p {
  margin: 0;
  padding: 10px 12px;
  /* background: #f8f8f8; */
  border-radius: 6px;
  line-height: 1.7;
}

.review-box {
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #f8f8f8;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.8),
              0 0 16px rgba(200, 200, 200, 0.4);
}

/* ===== Twenty Twenty-Five Global Styles 上書き ===== */
.page-frame body,
.page-frame,
.page-frame p,
.page-frame .media-desc,
.page-frame .media-desc p,
.page-frame .point,
.page-frame .detail-card p,
.page-frame .editor-comment,
.page-frame .review-pane p {
    font-weight: 400 !important;
}

/* 太字指定がある要素はそのまま維持 */
.page-frame strong,
.page-frame b,
.page-frame .detail-title,
.page-frame .media-heading,
.page-frame h1,
.page-frame h2,
.page-frame h3 {
    font-weight: 700 !important;
}

.footer-copy {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-copy .wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px 14px;
}

/* ===== 表（スマホ横スクロール） ===== */
.reroll-table{ margin:18px 0; border:1px solid #e5e7eb; background:#fff; }
.reroll-table-head{
  padding:10px 12px; font-weight:800; background:#f8fafc;
  border-bottom:1px solid #e5e7eb; display:flex; justify-content:space-between; gap:10px; align-items:center;
}
.reroll-table-hint{ font-size:12px; color:#64748b; font-weight:600; }
.reroll-table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

table.reroll-compare{ border-collapse:collapse; min-width:1100px; width:100%; }
table.reroll-compare th, table.reroll-compare td{
  border:1px solid #e5e7eb; padding:10px; font-size:13px; vertical-align:middle;
}
table.reroll-compare th{ background:#f1f5f9; font-weight:800; white-space:nowrap; }

.col-title{ font-weight:700; min-width:320px; }
.col-score{ min-width:120px; }
.col-title .rb-score{
  margin-right:8px;
}
/* ===== バッジ ===== */
.rb{
  display:inline-block;
  padding:4px 8px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

/* 種別ごとの色 */
.rb-score{ background:#111827; border-color:#111827; color:#fff; }
.rb-time{ background:#eef2ff; border-color:#c7d2fe; color:#3730a3; }
.rb-pull{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.rb-benefit{ background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.rb-stress{ background:#ecfeff; border-color:#a5f3fc; color:#155e75; }
.rb-value{ background:#fdf2f8; border-color:#fbcfe8; color:#9d174d; }

@media (max-width:768px){
  table.reroll-compare th,
  table.reroll-compare td{
    font-size:11px;
    padding:6px;
  }

  .col-title{
    font-size:11px;
  }
}

/* タイトル列の横余白を詰める */
.col-title{
  width:1%;              /* 必須 */
  white-space:nowrap;
}

/* スコア共通 */
.rb-score{
  color:#fff;
  font-weight:800;
  min-width:42px;
  text-align:center;
}

/* スコア共通 */
.rb-score{
  color:#fff;
  font-weight:800;
  min-width:42px;
  text-align:center;
  border-color:transparent;
}

/* Sランク（9点以上） */
.rb-score-s{
  background:linear-gradient(135deg,#facc15,#eab308);
}

/* Aランク（8点以上） */
.rb-score-a{
  background:#9ca3af;
}

/* Bランク（7点以上） */
.rb-score-b{
  background:#d97706;
}

/* Cランク（6点以上） */
.rb-score-c{
  background:#2563eb;
}

/* それ未満 */
.rb-score-low{
  background:#6b7280;
}

/* TOP1 */
tr.rank1 td{
  background:linear-gradient(90deg,#fff9db,#fff);
}

/* TOP2 */
tr.rank2 td{
  background:linear-gradient(90deg,#f1f5f9,#fff);
}

/* TOP3 */
tr.rank3 td{
  background:linear-gradient(90deg,#fff1e6,#fff);
}

/* TOP3だけスコアを強調 */
tr.rank1 .rb-score,
tr.rank2 .rb-score,
tr.rank3 .rb-score{
  font-size:14px;
  padding:5px 10px;
  font-weight:900;
}

/* 特別訴求バナー */
.special-promo {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 110px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.special-promo.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.special-promo.is-hide { display: none; }
.special-promo-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.special-promo-link img { display: block; width: 100%; height: auto; }
.special-promo-close {
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 20px;
  padding: 0; margin: 0; border: none;
  border-radius: 50%;
  background: rgba(34,34,34,0.9);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.special-promo-close::before,
.special-promo-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 2px;
  background: #fff;
  border-radius: 999px;
}
.special-promo-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.special-promo-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.special-promo-close:hover { background: rgba(0,0,0,0.96); transform: scale(1.08); }
@media (max-width: 768px) {
  .special-promo { left: 12px; bottom: 16px; width: 70px; }
  .special-promo-close { width: 24px; height: 24px; top: -3px; right: -3px; }
}