/* ============================================
   スマホ比較.com — 共通スタイル (style.css)
   ============================================ */

/* === Base Reset === */
:root{--primary:#4F46E5;--secondary:#06B6D4;--accent:#F97316;--bg:#F6F7FB;--text:#0F172A;--muted:#64748B;--border:#E8ECF4;--radius:18px;--shadow-sm:0 2px 10px rgba(15,23,42,.05);--shadow:0 12px 32px rgba(15,23,42,.09);--font-display:"M PLUS Rounded 1c","Noto Sans JP","Hiragino Sans",sans-serif;--font-body:"Noto Sans JP","Hiragino Sans",sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);line-height:1.75;letter-spacing:.015em;font-feature-settings:'palt';-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}

/* === Carrier Badges ===
   各社の実ロゴを背景画像で表示する。HTML側は従来どおり <span class="cbadge cb-docomo">docomo</span> のままでよく、
   中の文字は font-size:0 で視覚的にのみ隠す(DOMには残るのでスクリーンリーダーは読み上げる)。
   幅は各ロゴの実アスペクト比から算出(高さ20px相当・上限84px)。画像は assets/img/logos/(白フチをトリムし高さ40px=2倍解像度) */
/* サイズは --cb-h(高さ)と --cb-s(倍率)で表現する。幅は各ロゴの実アスペクト比 --cb-w に倍率を掛ける。
   高さだけ変えると background-size:contain でロゴがレターボックス化して小さいままになるため、幅と連動させる。
   ページ側で style="font-size:10px;height:18px" のように直書きすると font-size:0 が打ち消され
   「ロゴの上に文字が重なる」事故になる(2026-07-15に本番で358箇所発生)。必ず修飾クラスを使うこと。 */
.cbadge{--cb-h:26px;--cb-s:1;display:inline-flex;align-items:center;justify-content:center;height:var(--cb-h);width:calc(var(--cb-w) * var(--cb-s));padding:2px 5px;border-radius:5px;font-size:0;line-height:0;white-space:nowrap;flex-shrink:0;background-color:#fff;border:1px solid #E7EBF0;background-repeat:no-repeat;background-position:center;background-size:contain;box-sizing:border-box}
.cbadge--sm{--cb-h:20px;--cb-s:.77}
.cbadge--lg{--cb-h:30px;--cb-s:1.15}
.cbadge--xl{--cb-h:32px;--cb-s:1.23}
.cb-docomo{background-image:url(/assets/img/logos/docomo.png);--cb-w:84px}
.cb-au{background-image:url(/assets/img/logos/au.png);--cb-w:54px}
.cb-sb{background-image:url(/assets/img/logos/sb.png);--cb-w:84px}
.cb-ahamo{background-image:url(/assets/img/logos/ahamo.png);--cb-w:68px}
.cb-povo{background-image:url(/assets/img/logos/povo.png);--cb-w:46px}
.cb-linemo{background-image:url(/assets/img/logos/linemo.png);--cb-w:84px}
.cb-uq{background-image:url(/assets/img/logos/uq.png);--cb-w:29px}
.cb-ym{background-image:url(/assets/img/logos/ym.png);--cb-w:26px}
.cb-raku{background-image:url(/assets/img/logos/raku.png);--cb-w:35px}
.cb-iij{background-image:url(/assets/img/logos/iij.png);--cb-w:70px}

/* === Header / Navigation === */
.header{background:rgba(255,255,255,.86)!important;backdrop-filter:blur(12px) saturate(1.5);-webkit-backdrop-filter:blur(12px) saturate(1.5);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1000}
.header-inner{max-width:1160px!important;margin:0 auto;padding:0 20px!important;height:64px;display:flex;align-items:center;gap:24px!important}
.logo{font-size:18px;font-weight:900;color:#4F46E5;text-decoration:none;white-space:nowrap}
.logo span{color:#F97316}
.nav-desktop{display:flex;align-items:center;gap:4px;margin-left:auto}
.nav-desktop a{padding:8px 12px;border-radius:8px;font-size:14px;font-weight:600;color:#1E293B;white-space:nowrap;text-decoration:none}
.nav-desktop a:hover{background:#F1F5F9}
.nav-item{position:relative;display:inline-flex;align-items:center}
.nav-drop-btn{padding:8px 12px;border-radius:8px;font-size:14px;font-weight:600;color:#1E293B;cursor:pointer;display:flex;align-items:center;gap:4px;white-space:nowrap;background:none;border:none;font-family:inherit}
.nav-drop-btn:hover{background:#F1F5F9}
.nav-drop-btn::after{content:'▾';font-size:10px;opacity:.6}
.mega-menu{display:none!important;position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#fff;border-radius:14px;border:1px solid #E2E8F0;box-shadow:0 16px 48px rgba(0,0,0,0.14);padding:22px;gap:16px;z-index:1100}
.nav-item.open .mega-menu{display:grid!important}
.mega-col h4{font-size:11px;font-weight:700;color:#64748B;letter-spacing:.08em;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid #F1F5F9}
.mega-col a{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:8px;font-size:13.5px;font-weight:600;color:#1E293B;text-decoration:none}
.mega-col a:hover{background:#F8FAFC}
.nav-cta{background:#F97316!important;color:#fff!important;padding:8px 16px!important;border-radius:8px!important;font-weight:700!important}
.nav-cta:hover{background:#EA6C00!important}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;margin-left:auto;background:none;border:none}
.hamburger span{width:22px;height:2px;background:#1E293B;border-radius:2px;transition:.3s}
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
.mobile-nav{display:none!important;background:#fff;border-bottom:2px solid #E2E8F0;padding:16px 20px}
.mobile-nav.open{display:block!important}
.mobile-nav a{display:flex;align-items:center;gap:10px;padding:11px 8px;font-size:14px;font-weight:600;color:#1E293B;border-bottom:1px solid #F1F5F9;text-decoration:none}
.mobile-nav a:last-child{border-bottom:none}
@media(max-width:768px){.nav-desktop{display:none!important}.hamburger{display:flex!important}}

/* === Footer(2026-07-15統一: index.htmlのinline <style>にしか存在しなかった基本定義をここへ集約。
   background色は下のL4 body:not(#_) .footer{background:#111633} が詳細度で上書きする(意図通り・現状の見た目を維持)) === */
.footer{background:#1E293B;color:#94A3B8;padding:56px 20px 24px}
.footer-inner{max-width:1160px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer h4{color:#fff;font-size:14px;font-weight:700;margin-bottom:16px}
.footer a{color:#94A3B8;font-size:13px;display:block;margin-bottom:10px;line-height:1.5}
.footer a:hover{color:#fff;text-decoration:none}
.foot-brand p{font-size:13px;line-height:1.8;color:#64748B;margin-top:10px}
.foot-brand .brand-name{font-size:18px;font-weight:900;color:#fff}
.foot-disclaimer{font-size:12px;line-height:1.8;padding:20px 0;border-top:1px solid #334155;border-bottom:1px solid #334155;margin-bottom:20px;color:#64748B}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.foot-copy{font-size:12px}
.foot-links{display:flex;gap:20px;flex-wrap:wrap}
.foot-links a{font-size:12px;margin:0}
@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .foot-bottom{flex-direction:column;text-align:center}
}
@media(max-width:480px){
  .footer-grid{grid-template-columns:1fr}
}

/* === Performance === */
html{scroll-behavior:smooth}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* === FAQ Section === */
.faq-section{margin:32px 0;background:#fff;border-radius:14px;padding:28px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.faq-section h2{font-size:20px;font-weight:900;color:var(--text);margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid var(--primary)}
.faq-item{border-bottom:1px solid #F1F5F9;padding:0}
.faq-item:last-child{border-bottom:none}
.faq-q{width:100%;background:none;border:none;text-align:left;padding:16px 8px;font-size:15px;font-weight:700;color:var(--text);cursor:pointer;display:flex;align-items:flex-start;gap:10px;font-family:inherit;line-height:1.5}
.faq-q::before{content:'Q';background:var(--primary);color:#fff;border-radius:6px;padding:1px 7px;font-size:13px;font-weight:800;flex-shrink:0;margin-top:2px}
.faq-q::after{content:'＋';margin-left:auto;font-size:18px;color:var(--muted);flex-shrink:0;transition:transform .2s}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{display:none;padding:4px 8px 18px 38px;font-size:14px;color:#334155;line-height:1.8}
.faq-item.open .faq-a{display:block}

/* === 関連リンクセクション === */
.related-section{margin:32px 0;background:#fff;border-radius:14px;padding:24px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.related-section h2{font-size:18px;font-weight:800;color:var(--text);margin-bottom:16px}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.related-card{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #E2E8F0;border-radius:10px;text-decoration:none;color:var(--text);font-size:14px;font-weight:600;transition:all .15s;background:#FAFBFD}
.related-card:hover{border-color:var(--primary);background:#EEF2FF;text-decoration:none;transform:translateY(-1px);box-shadow:0 4px 12px rgba(26,86,219,.1)}
.related-card .rc-icon{font-size:20px;flex-shrink:0}
.related-col-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.related-col-card{display:block;padding:14px 16px;border:1px solid #E2E8F0;border-radius:10px;text-decoration:none;color:var(--text);background:#FAFBFD;transition:all .15s}
.related-col-card:hover{border-color:var(--primary);background:#EEF2FF;text-decoration:none;transform:translateY(-1px)}
.related-col-card .rc-title{font-size:14px;font-weight:700;margin-bottom:4px;display:block}
.related-col-card .rc-desc{font-size:12px;color:var(--muted)}


/* ============================================
   グローバル・スティッキーCTA（common.jsが注入）
   ============================================ */
.g-sticky{position:fixed;bottom:0;left:0;right:0;z-index:9000;background:linear-gradient(90deg,#0F172A,#4F46E5);padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:14px;box-shadow:0 -4px 20px rgba(0,0,0,.2);transform:translateY(110%);transition:transform .3s ease}
.g-sticky.show{transform:translateY(0)}
.g-sticky-txt{color:#fff;font-size:13px;line-height:1.35;min-width:0}
.g-sticky-txt strong{display:block;font-size:14px;font-weight:800}
.g-sticky-sub{color:rgba(255,255,255,.75);font-size:11.5px}
.g-sticky-btn{background:#F97316;color:#fff;font-size:14px;font-weight:800;padding:11px 20px;border-radius:10px;text-decoration:none;white-space:nowrap;flex-shrink:0}
.g-sticky-btn:hover{background:#EA6C0A;text-decoration:none}
.g-sticky-close{background:none;border:none;color:rgba(255,255,255,.6);font-size:16px;cursor:pointer;padding:6px;flex-shrink:0}
@media(max-width:480px){.g-sticky-txt strong{font-size:13px}.g-sticky-sub{display:none}.g-sticky-btn{font-size:13px;padding:10px 14px}}

/* ============================================
   診断2.0 共通スタイル（index / shindan 両ページで使用）
   ============================================ */
.container{max-width:1100px;margin:0 auto;padding:56px 20px}
.sec-label{display:inline-block;font-size:12px;font-weight:700;color:var(--primary);background:#EEF2FF;padding:4px 12px;border-radius:20px;margin-bottom:12px;letter-spacing:.06em}
.sec-title{font-size:clamp(22px,4vw,30px);font-weight:900;margin-bottom:8px;line-height:1.3}
.sec-sub{color:var(--muted);font-size:15px;margin-bottom:36px;line-height:1.7}
.quiz-wrap{background:#fff;border-radius:20px;border:1px solid #E2E8F0;box-shadow:0 4px 24px rgba(0,0,0,0.06);overflow:hidden}
.prog-wrap{background:#F8FAFC;padding:20px 28px;border-bottom:1px solid #E2E8F0}
.prog-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.prog-step{font-size:13px;font-weight:800;color:var(--primary)}
.prog-topic{font-size:13px;font-weight:600;color:var(--muted)}
.prog-track{height:6px;background:#E2E8F0;border-radius:99px;overflow:hidden}
.prog-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--secondary));border-radius:99px;transition:.4s}
.step{display:none;padding:32px 28px}
.step.active{display:block}
.step-q{font-size:18px;font-weight:800;margin-bottom:6px;line-height:1.4}
.step-hint{font-size:13px;color:var(--muted);margin-bottom:24px}
.opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:24px}
.opts.cols3{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.opt{background:#F8FAFC;border:2px solid #E2E8F0;border-radius:12px;padding:16px 14px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:4px;transition:.2s;font-family:inherit}
.opt:hover{border-color:var(--primary);background:#EEF2FF}
.opt.sel{border-color:var(--primary);background:#EEF2FF}
.opt-ic{font-size:24px;line-height:1;margin-bottom:4px}
.opt-lbl{font-size:14px;font-weight:800;color:var(--text)}
.opt-sub{font-size:12px;color:var(--muted)}
.step-nav{display:flex;gap:12px;justify-content:flex-end;padding-top:8px;border-top:1px solid #F1F5F9}
.btn-prev{background:#F1F5F9;color:var(--muted);border:none;border-radius:10px;padding:12px 24px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}
.btn-prev:hover{background:#E2E8F0}
.btn-next{background:var(--primary);color:#fff;border:none;border-radius:10px;padding:12px 28px;font-size:14px;font-weight:800;cursor:pointer;font-family:inherit;transition:.2s}
.btn-next:disabled{background:#CBD5E1;cursor:not-allowed}
.btn-next:not(:disabled):hover{background:#4338CA}
.btn-show{background:var(--accent);color:#fff;border:none;border-radius:10px;padding:12px 28px;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit;transition:.2s}
.btn-show:disabled{background:#CBD5E1;cursor:not-allowed}
.btn-show:not(:disabled):hover{background:#EA6C0A}
.results{display:none;padding:32px 28px}
.results.active{display:block}
.res-header{text-align:center;margin-bottom:24px}
.res-title{font-size:22px;font-weight:900;color:var(--text)}
.res-sub{font-size:13px;color:var(--muted);margin-top:4px}
.retry-wrap{text-align:center;margin-top:24px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.btn-retry{background:#F1F5F9;color:var(--text);border:none;border-radius:10px;padding:12px 28px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}
.btn-retry:hover{background:#E2E8F0}

/* ── 診断2.0：節約バナー ── */
.save-banner{background:linear-gradient(135deg,#059669,#06B6D4);border-radius:16px;padding:24px 20px;text-align:center;color:#fff;margin-bottom:20px}
.save-banner .sv-lbl{font-size:13px;font-weight:700;opacity:.85;margin-bottom:6px}
.save-banner .sv-main{font-size:clamp(24px,5vw,34px);font-weight:900;line-height:1.2}
.save-banner .sv-main em{font-style:normal;color:#FDE68A}
.save-banner .sv-note{font-size:11.5px;opacity:.75;margin-top:8px}

/* ── 診断2.0：セットカード ── */
.set-card{background:#FFFBEB;border:2px solid #F59E0B;border-radius:16px;overflow:hidden;margin-bottom:16px}
.set-card-head{background:#F59E0B;color:#fff;font-size:14px;font-weight:900;padding:10px 20px;display:flex;align-items:center;gap:8px}
.set-rows{display:flex;flex-direction:column}
.set-row{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #FDE68A;background:#fff;flex-wrap:wrap}
.set-row:last-child{border-bottom:none}
.set-row-ic{font-size:26px;line-height:1;flex-shrink:0;width:34px;text-align:center}
.set-row-body{flex:1;min-width:220px}
.set-row-cat{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.05em;margin-bottom:2px}
.set-row-name{font-size:17px;font-weight:900;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.set-row-price{font-size:15px;font-weight:800;color:var(--primary);margin-top:2px}
.set-row-price small{font-size:12px;font-weight:600;color:var(--muted)}
.set-row-desc{font-size:13px;color:#334155;line-height:1.6;margin-top:6px}
.set-row-disc{display:inline-block;background:#DCFCE7;color:#166534;font-size:12px;font-weight:800;padding:3px 10px;border-radius:6px;margin-top:6px}
.set-row-ctas{display:flex;flex-direction:column;gap:8px;width:200px;flex-shrink:0}
.set-cta{display:block;text-align:center;padding:11px 10px;border-radius:9px;font-weight:800;font-size:13px;text-decoration:none;transition:.2s}
.set-cta.main{background:var(--accent);color:#fff}
.set-cta.main:hover{background:#EA6C0A;text-decoration:none}
.set-cta.sub{background:#F1F5F9;color:var(--text);border:1px solid #E2E8F0}
.set-cta.sub:hover{background:#E2E8F0;text-decoration:none}
@media(max-width:640px){.set-row-ctas{width:100%}}
.set-total{background:#0F172A;color:#fff;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.set-total .tt-lbl{font-size:13px;font-weight:700;opacity:.8}
.set-total .tt-val{font-size:24px;font-weight:900}
.set-total .tt-val small{font-size:12px;font-weight:600;opacity:.7}
.res-reasons{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:10px;padding:14px 16px;margin:12px 20px}
.res-reason-title{font-size:12px;font-weight:800;color:#166534;margin-bottom:8px}
.res-reason-item{font-size:13px;color:#1F2937;line-height:1.6;margin-bottom:4px}
.res-reason-item:last-child{margin-bottom:0}

/* ── 診断2.0：2位・3位（折りたたみ） ── */
.alt-sets{margin-top:8px}
.alt-sets details{background:#fff;border:1px solid #E2E8F0;border-radius:12px;margin-bottom:10px;overflow:hidden}
.alt-sets summary{cursor:pointer;padding:16px 18px;font-size:14.5px;font-weight:800;color:var(--text);display:flex;align-items:center;gap:10px;list-style:none}
.alt-sets summary::-webkit-details-marker{display:none}
.alt-sets summary .alt-price{margin-left:auto;color:var(--primary);font-weight:900}
.alt-sets summary::after{content:'▾';color:var(--muted);font-size:12px;margin-left:6px}
.alt-body{padding:0 18px 16px;border-top:1px solid #F1F5F9}
.alt-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px dashed #F1F5F9;font-size:13.5px;flex-wrap:wrap}
.alt-line:last-child{border-bottom:none}
.alt-line .al-name{font-weight:800}
.alt-line .al-cta{font-size:12px;font-weight:800;color:#fff;background:var(--primary);padding:7px 14px;border-radius:7px;text-decoration:none;white-space:nowrap}
.alt-line .al-cta:hover{background:#4338CA;text-decoration:none}
.aff-note{font-size:11px;color:var(--muted);text-align:center;margin-top:16px;line-height:1.6}
.res-badge{font-size:11px;font-weight:800;color:#fff;padding:2px 8px;border-radius:4px}


/* ============================================
   L3 ページ型ブロック（.p-column / .p-device）
   各セレクタに .p-xxx が前置されているため詳細度が +1 class。
   ページ内 <style> の同名セレクタに「ソース順に関係なく」勝つ。
   → inline を消す前に inline を無効化でき、VR差分ゼロを証明してから安全に削除できる。
   【重要】必ずポリッシュ層(L4)より前に置くこと。後ろに置くと
   .p-column .article-body{border-radius:14px} が body .article-body{border-radius:18px} と
   同詳細度になり後勝ちしてしまう(=無変更のはずのリファクタが見た目を変える)。
   生成: node tools/build-l3.mjs <canonical.html> <p-xxx>
   ============================================ */
/* ===== L3: p-column (column/mnp-guide.html の <style> から機械生成。手で書き換えない) ===== */
:where(.p-column) *,:where(.p-column) *::before,:where(.p-column) *::after{box-sizing:border-box;margin:0;padding:0}
/* C2(2026-07-15): :root の上書きを撤去しトークンを一元化。
   --primary/--secondary/--accent/--muted は :root と同値だったので実質no-op。
   実際に変わるのは --text(#1E293B→#0F172A・本文がわずかに濃くなる)と
   --border(#E2E8F0→#E8ECF4)の2つだけ。--bg は body.p-column が background:#fff を明示しているため未使用。
   これで style.css の :root を変えれば51ページに正しく届く(従来はページ側の再定義に阻まれていた)。 */
/* C1(2026-07-15): font-family の上書きを撤去。
   -apple-system,BlinkMacSystemFont,'Segoe UI' には日本語グリフが1つも無く、
   Windows/Chrome ではOS既定フォントにフォールバックしていた。
   全99ページが Noto Sans JP を読み込んでいるのに、コラム27本の本文だけそれを使っていなかった。
   → style.css の body{font-family:var(--font-body)} を継承させ、本文をNoto Sans JPに戻す。 */
body.p-column{color:var(--text);line-height:1.7;background:#fff}
.p-column .container{max-width:900px;margin:0 auto;padding:40px 20px}
.p-column .breadcrumb{max-width:900px;margin:16px auto 0;padding:0 20px;font-size:13px;color:var(--muted)}
.p-column .breadcrumb a{color:var(--muted);text-decoration:none}
.p-column .breadcrumb a:hover{color:var(--primary)}
.p-column .article-hero{background:linear-gradient(135deg,#0F172A 0%,#4F46E5 100%);border-radius:20px;padding:40px 32px;margin-bottom:28px;color:#fff;position:relative;overflow:hidden}
.p-column .article-hero::before{content:'';position:absolute;top:-40px;right:-40px;width:200px;height:200px;background:rgba(255,255,255,0.05);border-radius:50%}
.p-column .badges{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.p-column .badge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px}
.p-column .badge-new{background:#F97316;color:#fff}
.p-column .badge-cat{background:rgba(255,255,255,0.2);color:#fff}
.p-column .article-hero h1{font-size:clamp(20px,4vw,28px);font-weight:900;line-height:1.35;margin-bottom:10px}
.p-column .article-hero .meta{font-size:13px;color:rgba(255,255,255,0.7)}
.p-column .ken-box{display:flex;align-items:flex-start;gap:14px;background:#F0F7FF;border-radius:14px;padding:18px 20px;margin-bottom:28px;border-left:4px solid var(--primary)}
.p-column .ken-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--secondary));display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.p-column .ken-box h3{font-size:14px;font-weight:800;margin-bottom:4px}
.p-column .ken-box p{font-size:13px;color:var(--muted);line-height:1.6;margin:0}
.p-column .article-body h2{font-size:21px;font-weight:900;margin:36px 0 14px;padding-bottom:8px;border-bottom:3px solid var(--primary)}
.p-column .article-body h3{font-size:17px;font-weight:800;margin:24px 0 10px;color:var(--primary)}
.p-column .article-body p{margin-bottom:14px;font-size:15px;line-height:1.85}
.p-column .article-body ul,.p-column .article-body ol{margin:0 0 14px 22px}
.p-column .article-body li{margin-bottom:8px;font-size:15px;line-height:1.7}
.p-column .article-body strong{font-weight:700}
.p-column .info-box{background:#EEF2FF;border:1px solid #BFDBFE;border-radius:12px;padding:18px 20px;margin:20px 0}
.p-column .info-box h4{font-size:14px;font-weight:800;color:var(--primary);margin-bottom:8px}
.p-column .info-box p{font-size:14px;line-height:1.7;margin:0;color:var(--text)}
.p-column .warn-box{background:#FFF7ED;border:2px solid #F97316;border-radius:12px;padding:18px 20px;margin:20px 0}
.p-column .warn-box h4{font-size:14px;font-weight:800;color:#C2410C;margin-bottom:8px}
.p-column .warn-box p{font-size:14px;line-height:1.7;margin:0;color:#7C2D12}
.p-column .good-box{background:#F0FDF4;border:1px solid #86EFAC;border-radius:12px;padding:18px 20px;margin:20px 0}
.p-column .good-box h4{font-size:14px;font-weight:800;color:#166534;margin-bottom:8px}
.p-column .good-box p{font-size:14px;line-height:1.7;margin:0;color:#14532D}
.p-column .data-table{width:100%;border-collapse:collapse;margin:20px 0;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,0.07)}
.p-column .data-table th{background:var(--primary);color:#fff;padding:12px 14px;font-size:14px;font-weight:700;text-align:left}
.p-column .data-table td{padding:11px 14px;font-size:14px;border-bottom:1px solid #F1F5F9;background:#fff}
.p-column .data-table tr:last-child td{border-bottom:none}
.p-column .data-table tr:nth-child(even) td{background:#F8FAFC}
.p-column .data-table .center{text-align:center}
.p-column .data-table .win{color:#059669;font-weight:800}
.p-column .data-table .warn{color:#DC2626;font-weight:700}
.p-column .check-list{list-style:none;padding:0;margin:0 0 16px 0}
.p-column .check-list li{padding:8px 0 8px 28px;position:relative;font-size:15px;line-height:1.7;border-bottom:1px solid #F1F5F9}
.p-column .check-list li:last-child{border-bottom:none}
.p-column .check-list li::before{content:"✓";position:absolute;left:0}
.p-column .cross-list{list-style:none;padding:0;margin:0 0 16px 0}
.p-column .cross-list li{padding:8px 0 8px 28px;position:relative;font-size:15px;line-height:1.7;border-bottom:1px solid #F1F5F9}
.p-column .cross-list li:last-child{border-bottom:none}
.p-column .cross-list li::before{content:"×";position:absolute;left:0}
.p-column .num-list{list-style:none;padding:0;counter-reset:num}
.p-column .num-list li{counter-increment:num;padding:12px 12px 12px 48px;position:relative;font-size:15px;line-height:1.7;background:#F8FAFC;border-radius:10px;margin-bottom:8px}
.p-column .num-list li::before{content:counter(num);position:absolute;left:12px;top:12px;background:var(--primary);color:#fff;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.p-column .verdict-box{background:linear-gradient(135deg,#4F46E5,#06B6D4);border-radius:16px;padding:28px;margin:32px 0;color:#fff}
.p-column .verdict-box h3{font-size:18px;font-weight:900;margin-bottom:12px;color:#fff}
.p-column .verdict-box a{color:#fff;text-decoration:underline}
.p-column .verdict-box h3 .i{color:#fff}
.p-column .verdict-box p{font-size:15px;line-height:1.8;margin-bottom:10px}
.p-column .verdict-box p:last-child{margin-bottom:0}
.p-column .diag-cta{background:linear-gradient(135deg,#4F46E5,#06B6D4);border-radius:14px;padding:28px;text-align:center;margin:32px 0}
.p-column .diag-cta p.sub{color:rgba(255,255,255,0.85);font-size:13px;font-weight:600;margin-bottom:4px}
.p-column .diag-cta h3{color:#fff;font-size:20px;font-weight:900;margin-bottom:4px}
.p-column .diag-cta p.desc{color:rgba(255,255,255,0.8);font-size:13px;margin-bottom:16px}
.p-column .diag-cta a{display:inline-block;background:#fff;color:var(--primary);font-size:16px;font-weight:800;padding:13px 36px;border-radius:8px;text-decoration:none}
.p-column .faq-section h2{font-size:21px;font-weight:900;margin:36px 0 16px;padding-bottom:8px;border-bottom:3px solid var(--primary)}
.p-column .faq-item{border:1px solid var(--border);border-radius:12px;margin-bottom:10px;overflow:hidden}
/* コラムのFAQは「枠線ボックス型」。style.css:74 の .faq-item:last-child{border-bottom:none}
   は罫線リスト型FAQ(他ページ)のための規則で、コラムに漏れて最後の1件だけ底が開いた箱になっていた。
   ここで明示的に閉じる(VRが27ページ全部で最後のFAQ項目1件の下線欠けとして検出) */
.p-column .faq-item:last-child{border-bottom:1px solid var(--border)}
.p-column .faq-q{width:100%;background:#F8FAFC;border:none;padding:16px 18px;font-size:15px;font-weight:700;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-family:inherit}
.p-column .faq-q::after{content:"＋";font-size:18px;color:var(--primary)}
.p-column .faq-item.open .faq-q::after{content:"－"}
.p-column .faq-a{display:none;padding:16px 18px;font-size:14px;line-height:1.8;color:var(--text)}
.p-column .faq-item.open .faq-a{display:block}
.p-column .related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-top:12px}
.p-column .related-card{border:1px solid var(--border);border-radius:12px;padding:14px;text-decoration:none;color:inherit;display:block;transition:.2s}
.p-column .related-card:hover{border-color:var(--primary);background:#F0F7FF;text-decoration:none}
.p-column .related-card .rc-cat{font-size:11px;color:var(--primary);font-weight:700;margin-bottom:4px}
.p-column .related-card h4{font-size:13px;font-weight:700;line-height:1.5}
.p-column /* Footer */
.footer{background:#1E293B;color:#94A3B8;padding:48px 20px 24px}
.p-column .footer-inner{max-width:1160px;margin:0 auto}
.p-column .footer-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:32px;margin-bottom:40px}
.p-column .footer h4{color:#fff;font-size:14px;font-weight:700;margin-bottom:14px}
.p-column .footer ul{list-style:none;padding:0}
.p-column .footer ul li a{color:#94A3B8;font-size:13px;display:block;margin-bottom:9px;text-decoration:none}
.p-column .footer ul li a:hover{color:#fff}
.p-column .footer-bottom{border-top:1px solid #334155;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.p-column .footer-copy{font-size:12px}
.p-column .footer-aff{font-size:11px;color:#64748B}
@media(max-width:640px){
.p-column .footer-bottom{flex-direction:column}
}


/* ===== L3: p-device (2026-07-20 全面刷新: iphone-17.preview.html プロトタイプをインディゴ化して本番へ移植)
   .p-device{--d-*} でこのブロック専用のローカルトークンを持つ(:root の再定義ではなく新規カスタムプロパティなので
   check-css.mjs R2 には抵触しない)。--d-blue は var(--primary)=#4F46E5 に固定し、プロトタイプのブルー(#2563eb系)は使わない。
   .d-sec / .d-cta / .d-wrap の3クラス名は維持(このファイル下部のL4ポリッシュ層と掲載停止スタブが参照するため)。 */
.p-device{
  --d-blue:var(--primary); --d-blue-d:#4338CA; --d-blue-soft:#EEF2FF;
  --d-line:#E4E9F7; --d-line2:#EEF1FA;
  --d-radius:20px; --d-radius-sm:14px;
  --d-shadow:0 12px 30px rgba(30,41,90,.09); --d-shadow-sm:0 4px 14px rgba(30,41,90,.06);
  --d-green:#16A34A; --d-red:#E11D48;
}
body.p-device{background:linear-gradient(180deg,#EEF2FF 0%,#F5F7FF 30%,#fff 62%)}
.p-device .breadcrumb{max-width:1120px;margin:0 auto;padding:14px 20px 0;font-size:12px;color:var(--muted)}
.p-device .breadcrumb a{color:var(--muted)}

/* ---- ヒーロー: バッジ→特大h1→キャッチ→説明文→4連スペックチップ ｜ 切り抜き画像(グロー+drop-shadow) ---- */
.p-device .d-hero{padding:34px 20px 6px}
.p-device .d-hero-inner{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:1.05fr .95fr;gap:32px;align-items:center}
.p-device .d-hero-body{max-width:600px}
@media(max-width:860px){
  .p-device .d-hero-inner{grid-template-columns:1fr;text-align:left}
  .p-device .d-hero-photo{order:-1}
  .p-device .d-hero-photo img{max-height:240px}
}
.p-device .d-badges{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.p-device .d-badge{display:inline-block;font-size:12px;font-weight:800;padding:5px 14px;border-radius:999px;background:var(--d-blue-soft);color:var(--d-blue-d)}
.p-device .d-hero h1{font-family:var(--font-display);font-weight:900;font-size:clamp(32px,5vw,52px);line-height:1.14;letter-spacing:-.01em;color:var(--text);margin-bottom:10px}
.p-device .d-lede{font-family:var(--font-display);font-weight:800;font-size:clamp(18px,2.2vw,23px);color:var(--d-blue-d);margin-bottom:10px}
.p-device .d-desc{color:var(--muted);font-size:15px;line-height:1.8;max-width:34em;margin-bottom:22px}
.p-device .d-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-width:560px}
.p-device .d-stats .stat{text-align:center;padding:4px 4px;border-right:1px solid var(--d-line)}
.p-device .d-stats .stat:last-child{border-right:0}
.p-device .d-stats .stat .ic{width:44px;height:44px;margin:0 auto 8px;border-radius:13px;background:var(--d-blue-soft);color:var(--d-blue-d);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:900;font-size:13px}
.p-device .d-stats .stat .t{font-weight:800;font-size:12.5px;line-height:1.3;color:var(--text)}
.p-device .d-stats .stat .s{font-size:10.5px;color:var(--muted);margin-top:2px}
@media(max-width:860px){.p-device .d-stats{max-width:none;margin-inline:auto}}
.p-device .d-hero-photo{position:relative;text-align:center}
.p-device .d-hero-photo::before{content:"";position:absolute;inset:6% 8%;background:radial-gradient(60% 55% at 50% 42%,var(--d-blue-soft) 0%,rgba(238,242,255,0) 70%);border-radius:50%}
.p-device .d-hero-photo img{position:relative;margin:0 auto;max-height:360px;width:auto;filter:drop-shadow(0 26px 34px rgba(30,41,90,.16))}

/* ---- 価格カード(ヒーロー直下・.d-wrap内の独立ボックス) ---- */
.p-device .d-pricecard{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:#fff;border:1px solid var(--d-line);border-radius:var(--d-radius);box-shadow:var(--d-shadow);padding:22px 26px;margin:0 0 24px}
.p-device .d-pc-price{display:flex;flex-direction:column;gap:2px}
.p-device .d-pc-price .k{font-size:12.5px;color:var(--muted);font-weight:700}
.p-device .d-pc-price .v{font-family:var(--font-display);font-weight:900;font-size:32px;color:var(--d-blue-d);line-height:1.2}
.p-device .d-pc-price .v small{font-size:12.5px;color:var(--muted);font-weight:600;margin-left:6px}
.p-device .d-pc-cta{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}
.p-device .d-amz-note{font-size:12px;color:var(--muted);margin-top:10px;width:100%}
@media(max-width:640px){
  .p-device .d-pricecard{padding:18px 18px;gap:14px}
  /* 3ボタンを1行に押し込むと1文字ずつ縦折れする(2026-07-20実測)ため縦積み全幅にする */
  .p-device .d-pc-cta{margin-left:0;width:100%;flex-direction:column}
  .p-device .d-pc-cta .d-cta{width:100%;justify-content:center;text-align:center}
  /* 価格注記が「(2026/年時点…」と数字の途中で泣き別れするため注記を独立行へ */
  .p-device .d-pc-price .v small{display:block;margin-left:0;margin-top:2px}
}

/* ---- CTA(.d-cta は名前維持。L4ポリッシュ層とamazon/rakuten配色を踏襲したうえでghost variantを追加) ---- */
.p-device .d-cta{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:13px 22px;border-radius:10px;font-weight:800;font-size:14px;text-decoration:none;border:1px solid transparent}
.p-device .d-cta.amz{background:#FF9900;color:#111}
.p-device .d-cta.amz:hover{background:#E88B00;text-decoration:none}
.p-device .d-cta.rak{background:#BF0000;color:#fff}
.p-device .d-cta.rak:hover{background:#A50000;text-decoration:none}
.p-device .d-cta.ghost{background:#fff;color:var(--text);border-color:var(--d-line)}
.p-device .d-cta.ghost:hover{background:#F8FAFC;text-decoration:none}

/* ---- 本文の幅(.d-wrap は名前維持) と 2カラムグリッド(main+サイドバー320px) ---- */
.p-device .d-wrap{max-width:1120px;margin:0 auto;padding:0 20px 48px}
.p-device .d-grid{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}
.p-device .d-grid>*{min-width:0}
@media(max-width:940px){.p-device .d-grid{grid-template-columns:1fr}}
.p-device .d-side{display:flex;flex-direction:column;gap:20px;position:sticky;top:80px}
@media(max-width:940px){.p-device .d-side{position:static}}

/* ---- セクションカード(.d-sec は名前維持) ---- */
.p-device .d-sec{background:#fff;border:1px solid var(--d-line);border-radius:var(--d-radius);box-shadow:var(--d-shadow-sm);padding:26px 28px;margin-bottom:22px}
.p-device main.d-main .d-sec:last-child{margin-bottom:0}
.p-device .d-sec h2{font-family:var(--font-display);font-weight:900;font-size:20px;margin-bottom:16px;display:flex;align-items:center;gap:10px;color:var(--text)}
.p-device .d-sec h2 .i{color:var(--d-blue-d)}
.p-device .d-sec ul{margin:0;line-height:2}
.p-device .d-lead{color:var(--muted);font-size:14px;margin:-8px 0 16px}

/* ---- 注目ポイント: 写真付き4カード ---- */
.p-device .d-feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:820px){.p-device .d-feat-grid{grid-template-columns:repeat(2,1fr)}}
.p-device .d-feat{background:#fff;border:1px solid var(--d-line);border-radius:var(--d-radius-sm);overflow:hidden;box-shadow:var(--d-shadow-sm);transition:transform .15s,box-shadow .15s}
.p-device .d-feat:hover{transform:translateY(-3px);box-shadow:var(--d-shadow)}
.p-device .d-feat .ph{aspect-ratio:1/1;width:100%;object-fit:cover;display:block;background:var(--d-blue-soft)}
.p-device .d-feat .bd{padding:16px}
.p-device .d-feat .kpi{font-family:var(--font-display);font-weight:900;color:var(--d-blue-d);font-size:15px;margin-bottom:2px}
.p-device .d-feat .ti{font-weight:800;font-size:14.5px;color:var(--text)}
.p-device .d-feat .ds{color:var(--muted);font-size:12.5px;margin-top:5px;line-height:1.65}
@media(max-width:560px){
  .p-device .d-feat-grid{grid-template-columns:1fr;gap:12px}
  .p-device .d-feat{display:flex;align-items:center}
  .p-device .d-feat .ph{flex:0 0 108px;width:108px;max-width:108px;height:108px;aspect-ratio:auto;border-radius:12px;margin:12px 0 12px 12px}
  .p-device .d-feat .bd{padding:10px 14px;display:flex;flex-direction:column;justify-content:center}
  .p-device .d-feat .ds{font-size:12px}
}

/* ---- 良いところ / 注意点 / こんな人におすすめ(既存のul.pros/consl/fitl構造は維持し、見た目だけ刷新) ---- */
.p-device .pros,.p-device .consl,.p-device .fitl{list-style:none;display:grid;gap:10px}
.p-device .pros li,.p-device .consl li,.p-device .fitl li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;font-weight:600;line-height:1.7;color:var(--text)}
.p-device .pros li::before,.p-device .consl li::before,.p-device .fitl li::before{flex:none;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:900;margin-top:1px}
.p-device .pros li::before{content:"✓";background:#E7F7EE;color:var(--d-green)}
.p-device .consl li::before{content:"!";background:#FDEEF0;color:var(--d-red)}
.p-device .fitl li::before{content:"◎";background:var(--d-blue-soft);color:var(--d-blue-d);font-size:11.5px}
.p-device .fitl li strong{color:var(--d-blue-d)}

/* ---- 診断CTA(サイドバー・.d-shindan は名前維持) ---- */
.p-device .d-shindan{background:linear-gradient(135deg,#4F46E5,#06B6D4);border-radius:var(--d-radius);padding:24px;text-align:center;color:#fff}
.p-device .d-shindan h2{font-family:var(--font-display);font-size:17px;font-weight:900;margin-bottom:8px;justify-content:center}
.p-device .d-shindan p{font-size:13px;opacity:.92;margin-bottom:16px;line-height:1.7}
.p-device .d-shindan a{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#fff;color:var(--d-blue-d);font-weight:900;padding:12px 20px;border-radius:10px;text-decoration:none;font-size:14px}

/* ---- 関連機種(サイドバー1カラム。.rel-grid/.rel-card は名前維持) ---- */
.p-device .rel-grid{display:grid;grid-template-columns:1fr;gap:10px}
.p-device .rel-card{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--d-line);border-radius:12px;padding:13px 14px;text-decoration:none;color:var(--text);background:#FAFBFD;transition:.15s}
.p-device .rel-card:hover{border-color:var(--d-blue);background:var(--d-blue-soft);text-decoration:none;transform:translateY(-2px)}
.p-device .rel-name{display:block;font-weight:800;font-size:13.5px}
.p-device .rel-price{font-size:12.5px;color:var(--d-blue-d);font-weight:700}

/* ---- あわせて読みたい(サイドバー1カラム。.related-grid/.related-card は共通クラスなのでサイドバー内だけ上書き) ---- */
.p-device .d-side .related-grid{display:grid;grid-template-columns:1fr;gap:10px}
.p-device .d-side .related-card{padding:12px 13px;font-size:13px}

/* ---- 一覧へ戻るリンク ---- */
.p-device .d-side-back{text-align:center;padding:2px 0}
.p-device .d-side-back a{font-weight:800;font-size:13.5px;color:var(--d-blue-d)}

/* ---- 編集部レビュー: 2カラムスコアバー ---- */
.p-device .d-review{background:#fff;border:1px solid var(--d-line);border-radius:var(--d-radius);box-shadow:var(--d-shadow-sm);padding:26px 28px;margin-bottom:22px}
.p-device .d-review-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.p-device .d-review-head h2{font-family:var(--font-display);font-weight:900;font-size:20px;display:flex;align-items:center;gap:10px;color:var(--text)}
.p-device .d-review-overall{display:flex;align-items:baseline;gap:6px;flex-shrink:0;background:var(--d-blue-soft);padding:7px 16px;border-radius:14px}
.p-device .d-review-overall .num{font-family:var(--font-display);font-weight:900;font-size:30px;color:var(--d-blue-d)}
.p-device .d-review-overall .max{font-size:13px;color:var(--muted)}
.p-device .d-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 26px;margin:14px 0}
@media(max-width:600px){.p-device .d-review-grid{grid-template-columns:1fr}}
.p-device .d-review-row{display:flex;align-items:center;gap:12px}
.p-device .d-review-label{width:84px;font-size:13px;font-weight:700;color:var(--text);flex:none}
.p-device .d-review-bar{flex:1;height:8px;border-radius:99px;background:#EEF0F6;overflow:hidden}
.p-device .d-review-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,var(--d-blue),var(--secondary))}
.p-device .d-review-num{width:34px;text-align:right;font-weight:800;font-size:13px;color:var(--d-blue-d)}
.p-device .d-review-comment{background:#F8FAFC;border-left:4px solid var(--d-blue);border-radius:8px;padding:14px 18px;font-size:14px;color:var(--text);line-height:1.8;margin-top:6px}
.p-device .d-review-link{font-size:12px;font-weight:700;margin-top:10px}

.p-device .data-table{width:100%;border-collapse:collapse}
.p-device .data-table th{background:#F8FAFC;color:var(--text);font-weight:800;font-size:13px;text-align:left;padding:13px 16px;width:32%;border-bottom:1px solid #F1F5F9;vertical-align:top}
.p-device .data-table td{padding:13px 16px;font-size:14px;line-height:1.7;border-bottom:1px solid #F1F5F9;vertical-align:top;background:#fff}
.p-device .data-table tr:last-child th,.p-device .data-table tr:last-child td{border-bottom:none}
.p-device .data-table .center{text-align:center}
.p-device .data-table thead th{background:var(--primary);color:#fff;text-align:center;width:auto}
.p-device .data-table thead th a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.p-device .data-table .rowlabel{background:#F8FAFC;font-weight:700;font-size:13px;color:var(--muted);width:26%}

.p-device .d-carrier-lead{font-size:13.5px;color:var(--muted);line-height:1.85;margin-bottom:18px}
.p-device .d-carrier-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-bottom:18px}
.p-device .d-carrier-card{border:1px solid #E2E8F0;border-radius:12px;padding:18px}
.p-device .d-carrier-card.na{background:#F8FAFC}
.p-device .d-carrier-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.p-device .d-carrier-name{font-weight:900;font-size:14.5px}
.p-device .d-carrier-prog{font-size:12px;font-weight:800;color:var(--primary);margin-bottom:8px}
.p-device .d-carrier-desc{font-size:12.5px;color:var(--muted);line-height:1.75;margin-bottom:12px}
.p-device .d-carrier-avail{font-size:11px;font-weight:800;padding:3px 10px;border-radius:20px;white-space:nowrap}
.p-device .d-carrier-avail.yes{background:#DCFCE7;color:#166534}
.p-device .d-carrier-avail.no{background:#F1F5F9;color:#64748B}
.p-device .d-carrier-link{font-size:12px;font-weight:700}
.p-device .d-carrier-note{font-size:11.5px;color:var(--muted);line-height:1.8;padding-top:14px;border-top:1px dashed #E2E8F0}

.p-device .d-rank-lead{font-size:13.5px;color:var(--muted);line-height:1.85;margin-bottom:18px}
.p-device .d-rank-list{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.p-device .d-rank-item{display:flex;align-items:center;gap:16px;padding:16px 18px;border:1px solid #E2E8F0;border-radius:12px;flex-wrap:wrap}
.p-device .d-rank-num{font-size:22px;font-weight:900;color:#CBD5E1;width:30px;flex-shrink:0;text-align:center}
.p-device .d-rank-num.top{color:#F59E0B}
.p-device .d-rank-info{flex:1;min-width:180px}
.p-device .d-rank-name{font-weight:800;font-size:15px;margin-right:8px}
.p-device .d-rank-desc{font-size:12.5px;color:var(--muted);margin-top:5px;line-height:1.7}
.p-device .d-rank-total{text-align:right}
.p-device .d-rank-total .yen{font-size:17px;font-weight:900;color:var(--primary)}
.p-device .d-rank-total .sub{display:block;font-size:11px;color:var(--muted);font-weight:600;margin-top:2px}
.p-device .d-rank-btn{background:var(--primary);color:#fff;font-weight:800;font-size:12.5px;padding:9px 16px;border-radius:8px;text-decoration:none;white-space:nowrap}
.p-device .d-rank-btn:hover{background:#4338CA;text-decoration:none}
.p-device .d-rank-basis{font-size:11.5px;color:var(--muted);line-height:1.8;padding-top:12px;border-top:1px dashed #E2E8F0}

.p-device .d-compare-lead{font-size:13.5px;color:var(--muted);line-height:1.85;margin-bottom:18px}

.p-device .d-history-list{list-style:none}
.p-device .d-history-item{display:flex;gap:16px;padding:11px 0;border-bottom:1px solid #F1F5F9;font-size:13.5px;line-height:1.7}
.p-device .d-history-item:last-child{border-bottom:none}
.p-device .d-history-date{color:var(--muted);font-weight:700;flex-shrink:0;width:100px}

/* ---- FAQ(.faq-item/.faq-q/.faq-a はcommon.jsのトグルが参照する既存マークアップ。見た目だけ刷新) ---- */
.p-device .faq-item{border:1px solid var(--d-line);border-radius:var(--d-radius-sm);padding:2px 16px;background:#fff;margin-bottom:10px}
.p-device .faq-item:last-child{margin-bottom:0;border-bottom:1px solid var(--d-line)}
.p-device .faq-q{font-weight:800;font-size:14.5px;padding:14px 0;color:var(--text)}
.p-device .faq-q::before{content:none}
.p-device .faq-q::after{content:"＋";color:var(--d-blue-d);font-weight:900;font-size:18px;transform:none}
.p-device .faq-item.open .faq-q::after{content:"−";transform:none}
.p-device .faq-a{padding:0 0 16px;font-size:13.5px;color:var(--muted);line-height:1.8}

/* ===== mobile readability refinements(プロトタイプ末尾の refinements を移植) ===== */
@media(max-width:640px){
.p-device .d-review-row{grid-template-columns:76px 1fr 34px;gap:8px}
.p-device .d-rank-total{text-align:left;width:100%}
.p-device .d-history-item{flex-direction:column;gap:2px}
.p-device .d-history-date{width:auto}
}
@media(max-width:560px){
.p-device .breadcrumb{padding:12px 14px 0}
.p-device .d-hero{padding:24px 14px 4px}
.p-device .d-wrap{padding:0 14px 40px}
.p-device .d-sec,.p-device .d-review{padding:18px 16px;margin-bottom:16px}
.p-device .d-sec h2,.p-device .d-review-head h2{font-size:18px}
.p-device .d-stats{gap:2px}
.p-device .d-stats .stat{padding:4px 2px}
.p-device .d-stats .stat .ic{width:38px;height:38px;font-size:12px;margin-bottom:6px}
.p-device .d-stats .stat .t{font-size:11px;line-height:1.25}
.p-device .d-stats .stat .s{font-size:9.5px}
.p-device .d-pc-price .v{font-size:28px}
.p-device .d-grid{gap:16px}
.p-device .d-side{gap:14px}
}


/* ===== L3: p-carrier (キャリア個別ページ10本のhero刷新・2026-07-15) =====
   docomo/au/softbank/rakuten/ahamo/povo/linemo/uqmobile/ymobile/iijmio 共通。
   各ページの<body>に p-carrier クラスを追加し、hero を新マークアップ(.p-carrier-hero)に差し替える。
   旧 .hero{...} はページ内inlineに残るが .p-carrier-hero とは名前が別なので詳細度の衝突は起きない。
   画像は gpt-image-1 生成の assets/carriers/<slug>.webp(1536x1024)を背景に使う。
   画像が404でも壊れないよう <img onerror="this.remove()"> で自身を消し、
   コンテナの background(ブランド色グラデーション)がそのままフォールバック表示になる設計。
   ブランド色は各ページ既存の --carrier 変数(:root で定義済み)をそのまま使う。

   hero簡素化(2026-07-15オーナー指示): 背景画像とスクリムは維持(背景でありスペースを取らないため)。
   ただし min-height を撤廃し、paddingとmargin-bottomを縮めてテキスト基準の高さに圧縮する
   (モバイルで1画面を占有しない=viewport高の40%以下が目安)。 */
.p-carrier-hero{position:relative;overflow:hidden;border-radius:20px;display:flex;align-items:flex-end;background:linear-gradient(135deg,var(--carrier,#4F46E5) 0%,#0F172A 100%)}
.p-carrier-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.p-carrier-hero-scrim{position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,11,26,.86) 0%,rgba(8,11,26,.55) 45%,rgba(8,11,26,.22) 100%)}
.p-carrier-hero-inner{position:relative;z-index:1;width:100%;padding:22px 28px;color:#fff}
.p-carrier-badge{display:inline-flex;margin-bottom:10px}
.p-carrier-hero-inner h1{font-size:clamp(22px,4vw,32px);font-weight:900;margin-bottom:6px;line-height:1.2;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.p-carrier-hero-sub{font-size:13.5px;line-height:1.6;opacity:.92;max-width:560px;margin-bottom:14px}
.p-carrier-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.p-carrier-chip{background:rgba(255,255,255,.14);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.28);border-radius:12px;padding:7px 14px}
.p-carrier-chip .pc-label{display:block;font-size:11px;font-weight:600;opacity:.85;margin-bottom:2px}
.p-carrier-chip .pc-price{display:block;font-size:17px;font-weight:900;line-height:1.2}
.p-carrier-cta-row{display:flex;gap:10px;flex-wrap:wrap}
.p-carrier-cta{display:inline-block;background:#fff;color:var(--carrier,#4F46E5);font-size:15px;font-weight:800;padding:11px 26px;border-radius:10px;text-decoration:none;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.p-carrier-cta:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.28);text-decoration:none}
@media(max-width:640px){
  .p-carrier-hero-inner{padding:16px 16px 18px}
  .p-carrier-hero-sub{margin-bottom:10px}
  .p-carrier-chips{gap:6px;margin-bottom:10px}
  .p-carrier-chip{padding:6px 12px}
}

/* ============================================
   デザインリフレッシュ 2026 — 全ページ共通ポリッシュ層
   （body前置セレクタでページ内スタイルを上書き）
   ============================================ */
h1,h2,h3,h4,.logo,.sec-title,.res-title,.hero h1,.article-hero h1{font-family:var(--font-display)}
body:not(#_) .btn-primary,body:not(#_) .btn-show,body:not(#_) .nav-cta,body:not(#_) .g-sticky-btn,body:not(#_) .plan-cta.primary,body:not(#_) .res-cta,body:not(#_) .set-cta.main,body:not(#_) .d-cta,body:not(#_) .btn-cta-white,body:not(#_) .card-btn-aff,body:not(#_) .pp-btn{font-family:var(--font-display);letter-spacing:.02em}

/* カード類：深めの角丸＋柔らかい影＋淡いボーダー */
body:not(#_) .plan-card,body:not(#_) .quiz-wrap,body:not(#_) .col-card,body:not(#_) .article-card,body:not(#_) .hikari-card,body:not(#_) .phone-card,body:not(#_) .d-sec,body:not(#_) .article-body,body:not(#_) .ken-box,body:not(#_) .faq-section,body:not(#_) .related-section,body:not(#_) .cat-card,body:not(#_) .s-trust-item,body:not(#_) .table-wrap,body:not(#_) .mvno-card,body:not(#_) .wifi-card{
  border-radius:var(--radius);border-color:var(--border);box-shadow:var(--shadow-sm)}
body:not(#_) .plan-card:hover,body:not(#_) .col-card:hover,body:not(#_) .article-card:hover,body:not(#_) .hikari-card:hover,body:not(#_) .phone-card:hover,body:not(#_) .cat-card:hover,body:not(#_) .mvno-card:hover,body:not(#_) .wifi-card:hover{
  box-shadow:var(--shadow);transform:translateY(-3px);border-color:#D6DCF5}
body:not(#_) .plan-card,body:not(#_) .col-card,body:not(#_) .article-card,body:not(#_) .hikari-card,body:not(#_) .phone-card,body:not(#_) .cat-card,body:not(#_) .mvno-card,body:not(#_) .wifi-card{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}

/* ボタン：立体感と押し心地 */
body:not(#_) .btn-primary,body:not(#_) .btn-show,body:not(#_) .plan-cta.primary,body:not(#_) .set-cta.main,body:not(#_) .g-sticky-btn,body:not(#_) .d-cta.amz{
  border-radius:12px;box-shadow:0 6px 18px rgba(249,115,22,.32);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
body:not(#_) .btn-primary:hover,body:not(#_) .btn-show:not(:disabled):hover,body:not(#_) .plan-cta.primary:hover,body:not(#_) .set-cta.main:hover,body:not(#_) .g-sticky-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(249,115,22,.4)}
body:not(#_) .btn-next,body:not(#_) .res-cta,body:not(#_) .pp-btn,body:not(#_) .al-cta,body:not(#_) .tbl-apply,body:not(#_) .card-btn-aff{border-radius:11px;transition:transform .15s ease,background .15s ease}
body:not(#_) .btn-next:not(:disabled):hover,body:not(#_) .pp-btn:hover{transform:translateY(-1px)}
body:not(#_) .plan-cta.primary{box-shadow:0 6px 18px rgba(79,70,229,.28)}

/* 診断UI */
body:not(#_) .opt{border-radius:14px;transition:border-color .15s ease,background .15s ease,transform .15s ease}
body:not(#_) .opt:hover{transform:translateY(-1px)}
body:not(#_) .opt.sel{box-shadow:0 4px 14px rgba(79,70,229,.18)}
body:not(#_) .prog-fill{background:linear-gradient(90deg,#4F46E5,#06B6D4,#4F46E5);background-size:200% 100%;animation:progShift 3s linear infinite}
@keyframes progShift{to{background-position:200% 0}}

/* 表 */
body:not(#_) .compare-table th{font-family:var(--font-display)}
body:not(#_) .compare-table tr:hover td{background:#F5F6FE}

/* 選択・フォーカス・スクロールバー */
::selection{background:#C7D2FE;color:#1E1B4B}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
@media(min-width:769px){
  ::-webkit-scrollbar{width:10px;height:10px}
  ::-webkit-scrollbar-thumb{background:#C3C9E8;border-radius:99px;border:2px solid var(--bg)}
  ::-webkit-scrollbar-track{background:transparent}
}

/* ヒーロー等の濃紺グラデにわずかな彩り */
body:not(#_) .hero,body:not(#_) .s-hero,body:not(#_) .d-hero{position:relative;overflow:hidden}
body:not(#_) .hero::after,body:not(#_) .s-hero::after,body:not(#_) .d-hero::after{content:'';position:absolute;top:-30%;right:-10%;width:55%;height:160%;background:radial-gradient(closest-side,rgba(99,102,241,.35),transparent 70%);pointer-events:none}
body:not(#_) .hero>*,body:not(#_) .s-hero>*,body:not(#_) .d-hero>*{position:relative;z-index:1}

/* フッター */
body:not(#_) .footer{background:#111633}
body:not(#_) .footer h4{font-family:var(--font-display)}

/* === SVGアイコン(2026-07-07 絵文字置換) === */
.i{width:1.02em;height:1.02em;display:inline-block;vertical-align:-0.13em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sec-title .i,.section-title .i,h2 .i,h3 .i{color:var(--primary)}
.rc-icon .i,.opt-ic .i,.rec-icon .i,.ken-avatar .i{width:1.2em;height:1.2em}
.ken-avatar .i{color:#fff;width:26px;height:26px}
.nav-cta .i,.diag-cta .i,.hero .i{color:currentColor}
.merit-list .i{color:#059669}.demerit-list .i{color:#EA580C}

/* === 実写ヒーロー(2026-07-07) === */
.hero.hero-photo,.page-hero.hero-photo,.s-hero.hero-photo,.d-hero.hero-photo{background:linear-gradient(115deg,rgba(11,16,38,.92) 0%,rgba(49,46,129,.78) 55%,rgba(79,70,229,.55) 100%),var(--hero-img,none) center/cover no-repeat}
.hero.hero-photo::after{display:none}
.photo-band{border-radius:20px;overflow:hidden;margin:0 0 28px;position:relative}
.photo-band img{width:100%;height:240px;object-fit:cover;display:block}
@media(max-width:768px){.photo-band img{height:160px}}
.photo-band .pb-caption{position:absolute;left:0;right:0;bottom:0;padding:14px 18px 10px;background:linear-gradient(transparent,rgba(11,16,38,.72));color:#fff;font-size:12.5px;font-weight:700}

/* === v2: タイポグラフィと質感(2026-07-07 AdSense対策) === */
.cdot{display:inline-block;width:.6em;height:.6em;border-radius:50%;vertical-align:0;margin-right:3px}
body{line-height:1.85}
.article-body p{line-height:2;margin-bottom:1.25em}
.article-body h2{margin-top:2.3em}
.article-body li{line-height:1.9}
.article-hero.ah-photo{background:linear-gradient(110deg,rgba(11,16,38,.93) 20%,rgba(49,46,129,.74) 70%,rgba(79,70,229,.5) 100%),var(--hero-img) center/cover no-repeat}
.i{opacity:.92}
h1,h2,h3,.sec-title,.section-title{letter-spacing:.01em}
/* 見出しの改行はブラウザに任せる。手動 <br> はdesktop幅を前提にしており、
   375pxでは 4vw が clamp の下限に張り付くため、意味のない位置に改行が入っていた(40ページで除去)。
   text-wrap:balance は各行の長さを揃え、最終行に1〜2文字だけ残る"孤立"を防ぐ。 */
h1,h2,h3,.sec-title,.section-title,.hero h1,.article-hero h1{text-wrap:balance}
.data-table td,.data-table th{line-height:1.7}

/* === CTA階層 ===
   このサイトのCTAは暗黙に2階層で運用されている: 橙(--accent)=申込/アフィリエイト、紫(--primary)=内部遷移。
   ところが同じ形のCTAが116箇所インラインstyleでベタ書きされており(フッターの「無料診断」CTAだけで99ファイル)、
   文言や色を変えるのに98ファイルの編集が必要な状態だった。クラス化して意味と見た目を一箇所に集約する。 */
/* :not(#_) で詳細度を上げている理由: このCTAはフッター内にも置かれており、
   .footer ul li a{color:#94A3B8;display:block} (0,1,3) が素の .btn-diag (0,1,0) に勝ってしまう。
   インラインstyleだった頃は問答無用で勝っていたため顕在化していなかった(VRが検出)。
   存在しないIDなので必ずマッチし、ID1個分の詳細度を足す。 */
.btn-diag:not(#_){display:inline-block;background:var(--accent);color:#fff;font-weight:800;padding:10px 22px;border-radius:12px;margin-top:10px;text-decoration:none;width:auto}
.btn-diag:not(#_):hover{background:#EA6C0A;text-decoration:none}
.cta-duo{flex:1 1 220px;display:block;text-align:center;padding:16px 12px;border-radius:12px;font-size:15px;font-weight:800;text-decoration:none;color:#fff}
.cta-duo--aff{background:var(--accent)}   /* 申込(アフィリエイト) */
.cta-duo--nav{background:var(--primary)}  /* 内部遷移 */
.cta-duo:hover{text-decoration:none;opacity:.92}

/* === Content Width と Data Width の分離(2026-07-15) ===
   従来は本文も比較表も同じ .container(900px)に押し込まれており、
   「本文は1行38字で長すぎる/表は狭くて内部スクロールを強いられる」という両方が損をする状態だった。
   読み物(本文)は狭く、データ(表)はコンテナ幅いっぱいに突き抜けさせる。

   踏まない罠:
   - ch は使わない。ch は半角"0"の幅で、68ch は全角34字にしかならない。日本語の版面は em で指定する
   - display:grid の full-bleed パターンは使わない。Gridはマージン相殺を殺すため、
     p{margin-bottom} と h2{margin-top} の相殺が消えて全ページの縦リズムが静かに崩れる
   - margin:0 auto ではなく margin-inline:auto。前者は既存の margin-bottom を潰す
   - データをカードから negative margin で突き抜けさせるのは失敗だった(2026-07-15 オーナー指摘)。
     記事カードに padding が無かったため、突き抜けた表が枠と密着して「枠と文字の距離がほぼ0」に見えた。
     カードに十分な余白を与え、その内側でデータ幅を確保する方が正しい。 */
.p-column .container{max-width:800px}   /* 本文1行 ≒ 全角45字。従来は51字で日本語には長すぎた */
body.p-column{background:var(--bg)}                       /* グレー地 … */
.p-column .article-body{background:#fff;padding:40px 44px} /* … に白い記事カード。本文≒全角46字 */
@media(max-width:768px){
  .p-column .article-body{padding:24px 20px}
  .p-column .container{padding:24px 16px 48px}
}

/* === L5 ユーティリティ === */
/* 数字と単位の分離を防ぐ。「3,278円/月」が「3,278」「円/月」に割れると意味が壊れる。
   ページ全体に無差別適用してはいけない(日本語本文の自然な折返しを殺すため)。表の数値セル等に限定する。 */
.nb{white-space:nowrap}

/* grid/flex の子は既定が min-width:auto = 「中身より小さくなれない」。
   そのため中に min-width:560px の比較表があると、たとえ表が overflow-x:auto のラッパーに
   包まれていても、グリッドの子(=本文カラム)自体が560pxまで広がり、ページ全体が横スクロールする。
   375px/390px で光回線の詳細5ページに発生していた(全ページ×5VPの回帰スイープで検出)。 */
.main > *,.page-layout > *,.c-wrap > *{min-width:0}

/* ランキング項目は flex 一列固定で、375pxでは nowrap の価格が3pxはみ出していた(枠と中身の監査で検出)。
   小画面では折り返す。リボンの余白も狭すぎたので少し広げる。
   ※これらは smartphone/index.html のページ内<style>で定義されているため、詳細度を上げないと勝てない */
@media(max-width:480px){
  body:not(#_) .rank-item{flex-wrap:wrap;padding:16px 18px}
  body:not(#_) .rank-price{text-align:left}
}
body:not(#_) .recommend-ribbon{padding:5px 10px}

/* 表の横スクロール。data-table は幅が足りないと圧縮されてセル内が分断されるため、
   潰さずにスクロールさせる。.table-wrap はポリッシュ層で影と角丸が付き、表自身の影と二重になるので別クラスにする。 */
.tbl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:20px 0;padding:1px}
.tbl-scroll>.data-table{margin:0;min-width:520px}
@media(max-width:600px){.tbl-scroll>.data-table td,.tbl-scroll>.data-table th{padding-left:10px;padding-right:10px}}
