/* =========================
  mobi-news main.css  (FINAL)
  - ベース/ユーティリティ
  - ヘッダー/フッター/共通レイアウト
  - フロント（pc_front / sp_front）
  - コンテンツ詳細（pc_contents / sp_contents）
  - PCサイド（比較/コラム）
  - 目次/帯デザイン
  - ランキング：PC=大テーブル / SP=1ランク1カード（バッジ画像対応）
  - ポイントまとめ（店名/画像/強調/CTA）
  - バグ回避（iPhone覆い/はみ出し）
========================= */

/* -------- CSS変数 -------- */
:root{
  --c-bg:#ffffff;
  --c-text:#1a1a1a;
  --c-muted:#666;
  --c-line:#e6e6e6;
  --c-key:#2f80ed;
  --c-key-weak:#eaf3ff;

  --c-header-bg:#ffffff;
  --c-footer-bg:#0f1115;
  --c-footer-text:#cfd3dc;

  --radius:16px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --container:1200px;
}

/* -------- Reset -------- */
*,
*::before,
*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; color:var(--c-text); background:var(--c-bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN","メイリオ",Meiryo,sans-serif;
  line-height:1.7; font-size:16px;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--c-key); text-decoration:none; }
a:hover{ opacity:.85; }
ul,ol{ margin:0; padding-left:1.2em; }
h1,h2,h3,h4,h5,h6{ margin:0 0 .6em; line-height:1.35; }
p{ margin:0 0 1em; }

/* -------- 共通はみ出し対策 -------- */
.pc-contents-body { overflow-wrap:anywhere; word-break:break-word; }
.table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* -------- ユーティリティ -------- */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:20px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:.75em 1.1em; color:#fff; font-weight:700; border:none; border-radius:12px;
  background:linear-gradient(135deg,#FFBB00,#FF7700); box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover{ transform:translateY(-2px); opacity:.9; }
.btn--ghost{ background:transparent; color:var(--c-key); border:2px solid var(--c-key); }
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* -------- ヘッダー -------- */
.site-header{ position:sticky; top:0; z-index:50; background:var(--c-header-bg); border-bottom:1px solid var(--c-line); backdrop-filter:saturate(180%) blur(6px); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; min-height:68px; }
.site-logo a{ display:inline-flex; align-items:center; gap:.5rem; font-weight:800; font-size:20px; color:var(--c-text); }
.global-nav .nav-list{ list-style:none; margin:0; padding:0; display:flex; gap:22px; }
.global-nav .nav-list a{ display:inline-block; padding:12px 6px; color:var(--c-text); border-bottom:2px solid transparent; }
.global-nav .nav-list a:hover{ border-color:var(--c-key); }

/* -------- メイン/セクション -------- */
.site-main{ padding-block:32px; }
.section{ padding-block:48px; }
.section--alt{ background:linear-gradient(180deg,#fff,var(--c-key-weak)); border-block:1px solid var(--c-line); }
.section__head{ margin-bottom:24px; }

/* -------- フッター -------- */
.site-footer{ background:var(--c-footer-bg); color:var(--c-footer-text); margin-top:48px; padding-block:40px; }
.footer-inner{ display:flex; flex-wrap:wrap; gap:20px; justify-content:space-between; align-items:center; }
.footer-nav .footer-list{ list-style:none; margin:0; padding:0; display:flex; gap:16px; }
.footer-nav a{ color:var(--c-footer-text); }

/* -------- MV（共通） -------- */
.mv-image picture,.mv-image img{ display:block; width:100%; height:auto; margin:0 auto; }

/* =========================================
   Front（pc_front / sp_front）
========================================= */
.front-hero{ padding-block:24px 8px; border-bottom:1px solid var(--c-line); }
.front-hero__ttl{ font-size:clamp(22px,4.6vw,36px); font-weight:800; }
.front-section{ padding-block:28px 36px; }
.front-sec-ttl{ font-size:clamp(18px,3.4vw,24px); font-weight:800; margin-bottom:16px; }

/* おすすめ */
.front-rec-list{ display:grid; gap:22px; }
.front-rec-item{
  display:grid; grid-template-columns:1fr 220px; gap:16px;
  padding:16px; border:1px solid var(--c-line); border-radius:12px; background:#fff; box-shadow:var(--shadow);
}
.front-rec__title{ font-size:18px; margin:.6em 0 0; }
.front-rec__title a{ color:var(--c-text); }
.front-rec__thumb img{ width:100%; height:100%; object-fit:cover; border-radius:10px; }

/* 最新 */
.front-latest-feature{ padding:16px; border:1px solid var(--c-line); border-radius:12px; background:#fff; box-shadow:var(--shadow); margin-bottom:16px; }
.front-latest-feature__ttl{ font-size:clamp(18px,3.8vw,22px); font-weight:800; margin:0 0 .4em; }
.front-latest-list{ display:grid; gap:22px; }
.front-latest-item{
  display:grid; grid-template-columns:1fr 220px; gap:16px;
  padding:16px; border:1px solid var(--c-line); border-radius:12px; background:#fff; box-shadow:var(--shadow);
}
.front-latest__title{ font-size:18px; margin:.6em 0 0; }
.front-latest__title a{ color:var(--c-text); }
.front-latest__thumb img{ width:100%; height:100%; object-fit:cover; border-radius:10px; }
.front-more{ margin-top:20px; display:flex; justify-content:flex-end; }

/* =========================================
   contents detail（pc_contents / sp_contents）
========================================= */
/* パンくず/ヒーロー */
.breadcrumb{ display:flex; gap:.5em; align-items:center; color:var(--c-muted); margin-bottom:8px; }
.breadcrumb a{ color:inherit; }
.contents-hero{ background:var(--c-key-weak); padding-block:28px 36px; border-bottom:1px solid var(--c-line); margin-bottom:20px; }
.contents-hero__inner{ display:flex; align-items:center; gap:32px; flex-wrap:wrap; }
.contents-hero__text{ flex:1 1 420px; }
.contents-hero__image{ flex:1 1 520px; }
.contents-hero__title{ font-size:clamp(22px,4vw,32px); font-weight:800; margin-bottom:.4em; }
.contents-hero__meta{ color:var(--c-muted); margin-bottom:10px; }
.contents-hero__lead{ color:var(--c-text); font-size:1.05rem; margin-bottom:16px; }
.contents-hero__btns{ display:flex; gap:12px; flex-wrap:wrap; }
.contents-hero__image picture,.contents-hero__image img{ display:block; width:100%; height:auto; border-radius:var(--radius); box-shadow:var(--shadow); }

/* 本文2カラム */
.contents-layout{ padding-block:0 40px; }
.contents-grid{ display:grid; grid-template-columns:1fr 320px; gap:28px; }

/* PCサイド（比較/コラム） */
.side-widget{ background:#fff; border:1px solid var(--c-line); border-radius:12px; padding:14px; box-shadow:var(--shadow); }
.side-widget + .side-widget{ margin-top:16px; }
.side-widget__title{ font-size:16px; font-weight:800; margin:0 0 10px; }
.side-post-list{ list-style:none; margin:0; padding:0; }
.side-post-item{ padding:10px 0; border-bottom:1px solid var(--c-line); }
.side-post-item:last-child{ border-bottom:none; }
.side-post-link{ display:flex; gap:10px; align-items:flex-start; }
.side-thumb{ width:72px; height:72px; flex:0 0 72px; }
.side-thumb img{ width:100%; height:100%; object-fit:cover; border-radius:8px; }
.side-thumb-ph{ width:100%; height:100%; border-radius:8px; background:#ddd; color:#666; font-size:12px; display:flex; align-items:center; justify-content:center; }
.side-post-title{ color:var(--c-text); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* 目次（サマリー） */
#summary.section{
  background:#fff; border:4px solid #d9d9d9; border-radius:8px; padding:22px 24px 20px; box-shadow:0 2px 0 rgba(0,0,0,.03);
}
#summary .section__head{ text-align:center; font-weight:800; font-size:18px; margin-bottom:14px; }
#summary > ol{ list-style:none; margin:0; padding:0; }
#summary > ol > li{ margin:8px 0; }
#summary > ol > li > a{ display:block; font-weight:800; font-size:18px; line-height:1.5; color:var(--c-text); }
#summary > ol > li > ul{ list-style:none; margin:8px 0 0 0; padding:0 0 0 1.2em; }
#summary > ol > li > ul > li{ position:relative; margin:6px 0; padding-left:.2em; line-height:1.7; color:var(--c-text); font-weight:600; }
#summary > ol > li > ul > li::before{ content:"・"; position:absolute; left:-1.2em; top:0; color:var(--c-text); }

/* 帯タイトル（黒帯＋アイコン） */
.band-title{
  display:flex; align-items:center; justify-content:center; gap:12px;
  background:#222; color:#fff; font-weight:800; font-size:clamp(18px,3.6vw,28px);
  padding:14px 18px; border-radius:6px; margin:0 0 16px;
}
.band-title .band-icon{ height:26px; width:auto; display:block; }
.compare-summary__inner{
  display:grid; grid-template-columns:1fr 200px; gap:24px;
  background:#f6f6f6; border-radius:8px; padding:24px; border:1px solid var(--c-line);
}
.store-index{ margin:0; padding-left:.5em; list-style:none; }
.store-index li{ margin:10px 0; font-weight:800; font-size:clamp(16px,2.4vw,16px); }
.store-index a{ color:var(--c-text); text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:4px; }

/* 本文 */
.article-content h2{ scroll-margin-top:96px; }
.article-content h3{ scroll-margin-top:96px; }
.post-nav{ display:flex; justify-content:space-between; gap:16px; margin-top:24px; }

/* spec table（線あり） */
.spec-table{
  width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--c-line);
  border-radius:12px; overflow:hidden; box-shadow:var(--shadow);
}
.spec-table th, .spec-table td{ padding:12px 14px; border-bottom:1px solid var(--c-line); vertical-align:top; }
.spec-table th{ width:32%; background:#f7f9fc; text-align:left; }
.spec-table tr:last-child th, .spec-table tr:last-child td{ border-bottom:none; }

/* pros/cons */
.proscons-block{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; }
.pros, .cons{ background:#fff; border:1px solid var(--c-line); border-radius:12px; padding:16px; box-shadow:var(--shadow); }

/* FAQ */
.faq .faq-q{ width:100%; text-align:left; padding:14px 16px; border:1px solid var(--c-line); background:#fff; border-radius:12px; font-weight:700; transition:box-shadow .2s ease, transform .2s ease; margin-bottom:8px;}
.faq .faq-q[aria-expanded="true"]{ box-shadow:var(--shadow); }
.faq .faq-a{ display:none; padding:12px 16px; border-left:3px solid var(--c-key); margin:0 0 14px 6px; background:#fff; border-radius:8px; }

/* SP最下部リスト */
.sp-bottom-list{ display:none; margin-top:20px; }
.sp-list-block{ margin-bottom:16px; }
.sp-list-title{ font-weight:800; margin:12px 0; }
.sp-post-list{ list-style:none; margin:0; padding:0; }
.sp-post-item{ border-bottom:1px solid var(--c-line); padding:10px 0; }
.sp-post-link{ display:flex; gap:12px; align-items:flex-start; }
.sp-thumb{ width:72px; height:72px; flex:0 0 72px; }
.sp-thumb img{ width:100%; height:100%; object-fit:cover; border-radius:8px; }
.sp-thumb-ph{ width:100%; height:100%; border-radius:8px; background:#ddd; color:#666; font-size:12px; display:flex; align-items:center; justify-content:center; }
.sp-post-title{ color:var(--c-text); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ---- ランキング（PC=大テーブル） ---- */
@media (min-width:751px){
  .compare-table{
    width:100%; table-layout:auto; border-collapse:collapse;
    border:1px solid var(--c-line); background:#fff; box-shadow:var(--shadow);
  }
  .compare-table thead th{ background:#f7f9fc; font-weight:700; border-bottom:1px solid var(--c-line); }
  .compare-table th, .compare-table td{
    padding:12px 14px; border-bottom:1px solid var(--c-line); border-right:1px solid var(--c-line); vertical-align:top;
  }
  .compare-table th:last-child, .compare-table td:last-child{ border-right:none; }
  .compare-table tr:last-child th, .compare-table tr:last-child td{ border-bottom:none; }
  .compare-table th:first-child, .compare-table td:first-child{ width:56px; text-align:center; }
  .compare-table th:nth-child(2), .compare-table td:nth-child(2){ width:28%; }
  .compare-table th:nth-child(4), .compare-table td:nth-child(4){ width:100px; text-align:right; white-space:nowrap; }
  .compare-table th:nth-child(5), .compare-table td:nth-child(5){ width:160px; text-align:right; white-space:nowrap; }
  .vendor-cell{ display:flex; align-items:center; gap:10px; }
  .vendor-logo{ max-height:24px; height:auto; width:auto; display:block; }
  .vendor-name{ font-weight:700; line-height:1.4; }
  .compare-table td.features{ line-height:1.7; }
  .compare-table td.features ul{ margin:.2em 0 0 1.2em; padding:0; }
  .compare-table td.features li{ margin:.2em 0; }
}

/* ---- ランキング（SP=1ランク1カード／バッジ画像） ---- */
@media (max-width:750px){
  .compare-table{ display:none !important; }
  .sp-rank-list{ display:block; }
  .sp-rank-card{ background:#fff; border:1px solid var(--c-line); border-radius:12px; box-shadow:var(--shadow); padding:12px; margin-bottom:14px; max-width:100%; }
  .sp-rank-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
  .sp-rank-badge--img img{ display:block; height:24px; width:auto; }
  .sp-rank-vendor{ font-weight:800; font-size:16px; line-height:1.35; color:var(--c-text); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .sp-rank-vendor img{ max-height:24px; width:auto; height:auto; display:block; }
  .sp-rank-table{ width:100%; border-collapse:collapse; border:1px solid var(--c-line); border-radius:10px; overflow:hidden; }
  .sp-rank-table th, .sp-rank-table td{ padding:12px 14px; border-bottom:1px solid var(--c-line); vertical-align:top; font-size:14px; word-break:break-word; }
  .sp-rank-table tr:last-child th, .sp-rank-table tr:last-child td{ border-bottom:none; }
  .sp-rank-table th{ width:34%; background:#f7f9fc; text-align:left; font-weight:700; }
  .sp-rank-price{ font-weight:800; font-size:20px; }
  .sp-rank-feat{ line-height:1.7; }
  .sp-rank-feat ul{ margin:.2em 0 0 1.2em; padding:0; }
  .sp-rank-feat li{ margin:.2em 0; }
}

/* ---- ポイントまとめ：各店ブロック ---- */
.store-block{
  background:#fff; border:1px solid var(--c-line); border-radius:12px;
  padding:24px; box-shadow:var(--shadow); margin:24px 0;
}
.store-title{ font-weight:800; font-size:clamp(18px,2.2vw,22px); margin:0 0 12px; }

/* 店舗画像：PC=横長cover / SP=別画像をそのまま表示 */
.store-hero{ margin:0 0 14px; border-radius:10px; overflow:hidden; background:#f2f4f7; }
@media (min-width:751px){
  .store-hero img{
    width:100%; height:auto; aspect-ratio:672/300;
    object-fit:cover; object-position:50% 50%;
  }
}
@media (max-width:750px){
  .store-hero img{
    width:100%; height:auto !important; aspect-ratio:auto !important;
    object-fit:unset !important; object-position:center center !important;
  }
}
/* コンテンツ画像：PC=横長cover / SP=別画像をそのまま表示 */
.colum-hero{ margin:0 0 14px; border-radius:10px; overflow:hidden; background:#f2f4f7; }
@media (min-width:751px){
  .colum-hero img{
    width:100%; height:auto; aspect-ratio:720/240;
    object-fit:cover; object-position:50% 50%;
  }
}
@media (max-width:750px){
  .colum-hero img{
    width:100%; height:auto !important; aspect-ratio:auto !important;
    object-fit:unset !important; object-position:center center !important;
  }
}

/* おすすめポイント強調（マーカー） */
.store-subhead{ font-size:16px; font-weight:800; margin:20px 0 8px; }
.store-points-text{ margin:0 0 14px; }
.hl{ background:linear-gradient(transparent 65%, #fff3a3 65%); font-weight:800; padding:0 .05em; }

/* CTA（中央・アイコン付きOK） */
.store-cta{ display:flex; justify-content:center; margin-top:14px; }
.btn--withicon .btn-icon{ width:1.1em; height:auto; display:block; }

/* -------- Responsive -------- */
@media (max-width:1024px){
  .contents-grid{ grid-template-columns:1fr; }
  .front-rec-item, .front-latest-item{ grid-template-columns:1fr; }
  .front-more{ justify-content:center; }
}
@media (max-width:768px){
  .header-inner{ min-height:60px; }
  .site-main{ padding-block:24px; }
  .proscons-block{ grid-template-columns:1fr; gap:12px; }
  .sp-bottom-list{ display:block; }
  .compare-summary__inner{ grid-template-columns:1fr; gap:16px; padding:16px; border-radius:6px; }
  .band-title{ font-size:18px; padding:12px 14px; border-radius:4px; }
  .band-title .band-icon{ height:22px; }
  #summary .section__head{ font-size:16px; margin-bottom:10px; }
  #summary > ol > li > a{ font-size:16px; }
}

/* -------- iPhone真っ白/覆い対策 + 表崩れ対策 -------- */
@media (max-width:750px){
  .contents-main,.article,.article-content{ display:block !important; visibility:visible !important; opacity:1 !important; }
  #aside-drawer[hidden]{ display:none !important; }
  html,body{ overflow-x:hidden; }
  .pc-contents-body img, .pc-contents-body table{ max-width:100%; height:auto; }
  /* SPでも線ありの表 */
  .compare-table, .spec-table{
    width:100%; table-layout:auto; border-collapse:collapse; border:1px solid var(--c-line); background:#fff; box-shadow:var(--shadow);
  }
  .compare-table th, .compare-table td, .spec-table th, .spec-table td{
    padding:12px 14px; border-bottom:1px solid var(--c-line); vertical-align:top; font-size:14px; word-break:break-word;
  }
  .compare-table tr:last-child th, .compare-table tr:last-child td,
  .spec-table tr:last-child th, .spec-table tr:last-child td{ border-bottom:none; }
}
/* ===== PC 2カラム（グリッド領域を固定） ===== */
.contents-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px; /* メイン可変 + 右320px */
  gap:28px;
  align-items:start;
  grid-template-areas: "main side";
}
.contents-main{ grid-area: main; min-width:0; }
.contents-aside{ grid-area: side; position: sticky; top:84px; height: fit-content; }

/* 画面が狭い時だけ縦並び（順番：本文→サイド） */
@media (max-width: 1024px){
  .contents-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
  }
  .contents-aside{ position: static; }
}
/* 帯つき見出し（白抜き）を強制適用 */
.pc-contents-body .section-title{
  display:flex !important;
  align-items:center; justify-content:center; gap:12px;
  width:100%;
  background:#222 !important;   /* 帯色 */
  color:#fff !important;         /* 白文字 */
  padding:14px 18px;
  margin:0 0 16px !important;
  border-radius:6px;
  font-weight:800;
  font-size:clamp(18px, 3.6vw, 28px);
  line-height:1.3;
  text-align:center;
}
.pc-contents-body .section-title .icon{
  display:inline-block; height:1.3em; width:auto; margin:0;
}

/* 余計なH2系の装飾を無効化（テーマ側のボーダー・下線など） */
.pc-contents-body h2.section-title{
  border:0 !important; box-shadow:none !important; text-decoration:none !important;
  background-image:none !important;
}
.cta-button {
  display: inline-flex;          /* アイコンとテキストを横並びに中央揃え */
  align-items: center;           /* 縦中央揃え */
  justify-content: center;       /* 横中央揃え */
  gap: 8px;                      /* アイコンとテキストの間隔 */
  padding: 20px 24px;            /* 均一な余白 */
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #FFBB00, #FF7700);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button img {
  width: 20px;
  height: 20px;
  display: block;                /* アイコンが上下にズレないように */
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/*　トップへ戻るボタン */
.btn-container {
  display: flex;
  justify-content: center; /* 中央寄せ */
  margin-top: 30px;        /* 上に余白（調整可能） */
}

.btn.btn--ghost {
  border: 2px solid #1a73e8;
  color: #1a73e8;
  background: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.btn--ghost:hover {
  background: #1a73e8;
  color: #fff;
}
/* ヘッダーロゴ：アイコン＋ロゴ/テキストを横並びに */
.site-logo .brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
  text-decoration:none;
  color:inherit;
}

.site-logo .brand-icon{
  width:28px;
  height:28px;
  display:block;
}

.site-logo .custom-logo{
  height:32px;          /* 好みで調整 */
  width:auto;
}

.site-logo .brand-text{
  font-weight:800;
  font-size:20px;       /* テキスト fallback のサイズ */
}

/*　コラム用ボックス　*/
.colum-block{
  background:#fff; border:1px solid var(--c-line); border-radius:12px;
  padding:30px; box-shadow:var(--shadow); margin:24px 0;
}
.store-title{ font-weight:800; font-size:clamp(18px,2.2vw,22px); margin:0 0 20px; }