* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.logo-area {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-text {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1.1;
    font-family: var(--font-ui);
    font-weight: 900;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: var(--color-text-primary);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.app-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.app-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.filter-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
    top: 96px;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    top: calc(var(--app-header-height) + 16px);
    height: auto;
    max-height: calc(100dvh - var(--app-header-height) - 32px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
    height: calc(100dvh - var(--app-header-height) - 32px);
    max-height: none;
    overflow: hidden;
    scrollbar-color: var(--color-border-strong) transparent;
}

.filter-collapse-summary {
    display: none;
    cursor: pointer;
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    list-style: none;
}

.filter-collapse-summary::-webkit-details-marker {
    display: none;
}

.filter-summary-count {
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.filter-body {
    padding: 12px 14px;
}

.filter-item {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.filter-item:last-of-type {
    border-bottom: none;
    margin-bottom: 4px;
    padding-bottom: 0;
}

.filter-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-xs);
    background: #1e293b;
    outline: none;
    margin: 4px 0 0;
    /* バー部分を意図せず触って値が変わってしまうとの指摘のため、
       スライダー本体の反応を無効化し、つまみ側だけ::-webkit-slider-thumb/
       ::-moz-range-thumbでpointer-events:autoに戻して再度有効化する。
       キーボード操作(フォーカス後の矢印キー)はpointer-eventsの影響を
       受けないため維持される。マルチOS対応を見据えffやSafari系の
       疑似要素にも同様に適用するが、実機確認できているのは現状
       Windows Chrome/Android Chromeのみ。 */
    pointer-events: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: none;
    pointer-events: auto;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    pointer-events: auto;
}

.radio-tile-group {
    display: flex;
    gap: 8px;
}

.radio-tile-vertical {
    flex-direction: column;
    gap: var(--space-2);
}

.radio-tile-label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-tile-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-tile-text {
    display: flex;
    align-items: center;
    background-color: var(--bg-inset);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    min-height: 30px;
    font-family: var(--font-ui);
    font-weight: 600;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
}

.radio-tile-input:checked+.radio-tile-text {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    background-color: rgba(213, 70, 28, 0.1);
}

.radio-tile-input:focus-visible+.radio-tile-text {
    outline: 2px solid var(--accent-blue);
    outline-offset: 1px;
}

.select-box, .select-box-small {
    background-color: var(--bg-inset);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-2) 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.select-box-small {
    width: auto;
}

.select-box:focus, .select-box-small:focus {
    border-color: var(--accent-blue);
}

.shop-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 6px;
}

.shop-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-1) 4px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.shop-checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.shop-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-3);
}

.btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background-color: #1e293b;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-border-strong);
}

.results-count-area {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    color: var(--color-text-secondary);
    font-weight: 600;
}

.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    /* 上(sort-controlとの間、12px)と下(価格注記との間、旧16px)で
       間隔が異なると実機指摘。周辺の間隔と揃えて--space-3(12px)に統一。 */
    margin-bottom: var(--space-3);
    min-height: 0;
}

/* 絞り込み条件が0件の時は#active-chipsが空要素になるが、その場合も
   margin-bottomが乗り、「並び替え」〜「表示価格は...」の間だけ他の間隔より
   広く見えていた(実機指摘)。空の時はmarginを詰める。 */
.active-chips:empty {
    margin-bottom: 0;
}

.chip-remove {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 2px;
}

.chip-remove:hover {
    color: var(--text-primary);
}

.pc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* 0件・読込中の状態行は<tr>/<td>のまま出力しているが、.pc-listが
   table化されない1280px未満ではTBODYがブロック化される一方<tr>/<td>は
   内部テーブル表示値のままのため、ブラウザのテーブル修復アルゴリズムが
   この孤立した<tr>を包む匿名テーブルを生成し、table-layout:autoの
   shrink-to-fitで幅が内容分まで縮んでしまう(実機指摘)。<tr>/<td>に
   非テーブル値のdisplayを明示し、匿名テーブル生成自体を回避する。 */
.pc-list-state-row {
    display: block;
}

.pc-list-state-cell {
    display: block;
    width: 100%;
}

.pc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: var(--transition-smooth);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

/* モバイル/タブレットのスペックカードで、ショップ名バッジ・お気に入り
   ボタン・商品名が同じ行に詰め込まれ窮屈だったため、flexのorderと
   flex-basis:100%で視覚順序のみ並べ替える(HTML出現順・app.js側は無変更)。
   1行目=ショップ名+お気に入り、2行目=商品名という構成にする。1280px以上の
   台帳では.card-headerがdisplay:table-cellになりflexプロパティは無視される
   ため、この指定は1280px未満にのみ影響する。 */
.card-header > .shop-badge {
    order: 1;
}

.card-header > .favorite-btn {
    order: 2;
}

.card-header > .pc-name {
    order: 3;
    flex-basis: 100%;
    margin-top: var(--space-1);
}

.shop-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ショップ別バッジ色 (公式カラー: 変更禁止)。2026-07-22にマネージャーが
   一時撤回したが、各社の公式カラーとして固定すべきとの結論に至り撤回を
   取り消して復元した。docs/design.md 改訂メモ4参照。 */
.badge-dospara {
    background-color: #014DA1;
    color: #FEFEFE;
}

.badge-tsukumo {
    background-color: #00AC97;
    color: #FFFFFF;
}

.badge-pckoubou {
    background-color: #147FCD;
    color: #FFFFFF;
}

.badge-mouse {
    background-color: #FFF100;
    color: #3F3B3A;
}

.badge-frontier {
    background-color: #D40E1F;
    color: #FFFFFF;
}

.badge-sycom {
    background-color: #000000;
    color: #FFFFFF;
}

.badge-storm {
    background-color: #269640;
    color: #FFF100;
}

.pc-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-ui);
    font-weight: 800;
    color: var(--color-text-primary);
}

.pc-name-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.pc-name-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
    color: var(--color-accent-strong);
}

.spec-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.9fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: var(--space-2) var(--space-4);
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.spec-cell, .spec-cell-value {
    margin: 0;
}

.spec-cell-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: break-word;
    line-height: 1.35;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
}

/* 従来.card-footer自体がflexコンテナだったが、1280px以上の台帳では
   colspan解決のためdisplay:table-cellにする必要があり、価格・ボタンを
   float:rightで右寄せする回避策を使っていた。price-breakdownがDOM上float
   より先に来るため、floatは効かず折り返しがカスタマイズ説明欄に効いて
   いなかった(実機指摘: 金額の左端で折り返さない)。内側に専用のflexラッパー
   .card-footer-innerを追加し、.card-footerはtable-cell/block等の外枠のみ
   を担う。 */
/* .card-footerは実体が<td>のため、明示的なdisplay指定がないと
   ブラウザのUAデフォルト(display:table-cell)にフォールバックし、1280px
   未満(タブレット/モバイル)では親<tr>がdisplay:blockのため孤立した
   table-cellとして自動的に匿名テーブルでラップされ、幅いっぱいに広がらず
   内容量ぶんだけに収縮していた(価格・ボタンが右寄せされず左に固まって
   見える実機指摘の原因)。 */
.card-footer {
    display: block;
    width: 100%;
}

.card-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.pc-card-spacer {
    display: none;
}

/* <table>/<tr>/<td>ベースの台帳(1280px以上)を実現するため、.pc-card
   (旧div)は各行の<tr>(pc-card-row-main/pc-card-row-footer)に付与している。
   <tbody>でラップして共通の背景・枠線・paddingを持たせる案は、HTMLフラグメント
   解析の仕様上<tbody>コンテキストへの挿入時に入れ子<tbody>が無視されるため
   採用できず、2つの<tr>それぞれに背景・枠線を分割して継ぎ目なく見えるように
   している(上側=pc-card-row-mainで上3辺、下側=pc-card-row-footerで下3辺)。
   <tr>の直接の子はHTML仕様上<td>/<th>のみ許可されるため、1280px未満では
   旧来の入れ子div(spec-grid-primary等)の代わりにCSS Gridを<tr>自体に
   適用して同等の視覚レイアウトを再現する。 */
.pc-card-row-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "header header"
        "gpu cpu"
        "mobiledetails mobiledetails";
    gap: var(--space-2) var(--space-4);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: 0;
    padding: 12px 16px 0;
    transition: var(--transition-smooth);
}

.pc-card-row-main > .card-header {
    grid-area: header;
    margin-bottom: 8px;
}

.pc-card-row-main > .spec-cell--gpu,
.pc-card-row-main > .spec-cell--cpu {
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid var(--border-color);
}

.pc-card-row-main > .spec-cell--gpu {
    grid-area: gpu;
}

.pc-card-row-main > .spec-cell--cpu {
    grid-area: cpu;
}

.pc-card-row-main > .spec-cell.ledger-only {
    display: none;
}

.pc-card-row-main > .mobile-spec-cell {
    grid-area: mobiledetails;
}

.pc-card-row-footer {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 0;
    padding: 0 16px 12px;
    /* カードとカードの間が詰まりすぎているとの実機指摘のため、
       商品ごとに小さな隙間を追加する(1280px以上のtable-row表示では
       marginは無効化されるため、下のブロックで明示的に0へ戻す)。 */
    margin-bottom: var(--space-2);
}

.price-and-action {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.total-price-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.price-summary {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.shipping-fee {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.total-price-value::after {
    content: "円";
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 2px;
}

.btn-card-action {
    display: inline-block;
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-goto-shop {
    background-color: var(--accent-blue);
    color: #0b0f19;
}

.btn-goto-shop:hover {
    background-color: #a02f10;
}

.relax-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-inset);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: 0 8px 8px 0;
}

.relax-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.relax-btn .relax-count {
    color: var(--accent-blue);
    font-weight: 700;
}

.status-section {
    margin-top: var(--space-5);
}

/* 「マウスコンピューター」が1行に収まらずはみ出す(8-25)問題を、
   テキストの折り返しではなくタイル側の余白拡大で解決する。auto-fitでは
   画面幅によって1列あたりの列数(ひいては1タイルの幅)が変動し、狭い時に
   タイルが縮んで文字が見切れていた。7ショップ固定・4列2行(4+3)にすると
   常に十分な幅を確保できる。 */
.status-tile-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

/* 4列固定はモバイル幅ではタイルが狭くなりすぎ、「マウスコンピューター」
   等が2〜3行に折り返してタイルが不揃いに高くなっていたため、狭幅では
   2列に減らして1タイルの幅を確保する。 */
@media (max-width: 560px) {
    .status-tile-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.status-dot {
    /* 7pxは小さく色の差が瞬時に判別しづらいとの指摘のため拡大したが、
       11pxは大きすぎるとの指摘で9pxに調整。 */
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.success {
    background-color: #10b981;
}

.status-dot.failed {
    background-color: #f59e0b;
}

.status-dot.loading {
    background-color: var(--color-text-muted);
    animation: status-pulse-gray 2s infinite;
}

@keyframes status-pulse-gray {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.footer-note {
    /* 重複していたline-height宣言(1.6/1.75/1.45で後勝ち1.45が有効)を
       design.mdの本文基準1.7に統一。 */
    line-height: 1.7;
    font-weight: 500;
}

.footer-ad-notice {
    line-height: 1.5;
    border-left: 2px solid var(--accent-blue);
    padding-left: 12px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    /* フッター内のもう一方の区切り線(.copyright)と比べ非対称
       だったため、区切り線の上下とも--space-3(12px)に統一。 */
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--accent-blue);
}

.guide-banner-container {
    background-color: var(--bg-inset);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: var(--space-5);
}

/* guide-banner-containerは<details>化したため、summary(クリック行)は
   flexで見出し+開閉アイコンを横並びにし、中身のリンク一覧は開いた時だけ
   通常の縦フローで表示する(既存のfilter-collapse-summaryと同じパターン)。 */
.guide-banner-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.guide-banner-summary::-webkit-details-marker {
    display: none;
}

.guide-banner-container[open] .guide-banner-summary {
    margin-bottom: 12px;
}

.guide-banner-container[open] .guide-banner-summary .summary-icon {
    transform: rotate(180deg);
}

/* .guide-banner-linksの明示的なdisplay:flexが<details>のネイティブな
   閉状態コンテンツ非表示を打ち消してしまうため、明示的に非表示にする。 */
.guide-banner-container:not([open]) .guide-banner-links {
    display: none;
}

.guide-banner-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guide-link-badge {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.guide-link-badge:hover {
    transform: translateY(-1px);
}

.badge-game:hover {
    border-color: #d5461c;
    background-color: rgba(213, 70, 28, 0.1);
    color: #d5461c;
}

.badge-ai:hover {
    border-color: #a855f7;
    background-color: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.badge-creator:hover {
    border-color: #ec4899;
    background-color: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.badge-power:hover {
    border-color: #eab308;
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.badge-shop:hover {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.article-container, .static-page-container {
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 24px 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-7);
    font-family: var(--font-ui);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* margin-bottom(48px)がapp-contentのpadding-bottom(24px)と
       積み重なり、フッターとの間隔がトップページ(24px)の3倍(72px)に
       なっていた(実機指摘)。app-content側の余白のみに委ねる。 */
    margin-bottom: 0;
}

.article-header, .static-page-container h1.page-title {
    padding: 32px 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
    position: relative;
    padding: var(--space-4) 0 var(--space-5);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-strong);
}

.article-title, .page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    margin: 0 0 var(--space-3);
    font-family: var(--font-ui);
    /* 900px以上で常に36px(タイプスケール外)に張り付いていたため、
       上下限をタイプスケールの32px/24pxに合わせた(600px未満=24px、
       600〜800pxはフルード、800px以上=32px)。トップページのhero見出しの
       ような一意な演出要素ではなく通常の見出しとして繰り返し使われるため。 */
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-text-primary);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.article-section, .info-section {
    margin-bottom: 32px;
}

.article-section h2, .info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-blue);
    padding-left: 12px;
}

.article-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.article-section p, .info-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-section ul, .info-section ul, .article-section ol {
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.article-section li, .info-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.spec-table, .info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.spec-table th, .spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    background-color: var(--bg-inset);
    color: var(--text-primary);
    font-weight: 600;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table td strong {
    color: var(--accent-blue);
}

.info-table th, .info-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    width: 150px;
    background-color: var(--bg-inset);
    color: var(--text-primary);
    font-weight: 600;
}

.info-table td a {
    color: var(--accent-blue);
    text-decoration: none;
}

.info-table td a:hover {
    text-decoration: underline;
}

.article-action {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.article-action .btn {
    padding: 12px 28px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}


.filter-collapse:not([open]) .filter-body {
    display: block;
}

.results-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    width: min(240px, 42vw);
    min-height: 36px;
    color: var(--text-primary);
    background: var(--bg-inset);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 11px;
    font: inherit;
    font-size: 0.8125rem;
}

.search-input:focus, .select-box:focus, .select-box-small:focus {
    outline: 2px solid rgba(213, 70, 28, 0.45);
    outline-offset: 1px;
}

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

/* gap/padding/background/colorは後方の.favorite-btn定義(デザイン
   トークン版・アイコンレイアウト版)が後勝ちで有効なため、ここでは
   常に上書きされる値を除いた。 */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.favorite-btn:first-letter {
    font-size: 1rem;
}

.total-price-value {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.total-price-value::after {
    content: none;
}

/* right/bottom/color/background/border/border-radius/box-shadow/
   font-weight/transitionは後方の.back-to-top定義(safe-area対応版・
   デザイントークン版)が後勝ちで有効なため、ここでは常に上書きされる
   値を除いた。:hoverも同様に後方の定義が後勝ちで有効なため削除した。 */
.back-to-top {
    position: fixed;
    z-index: 1100;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.75rem;
}

.welcome-copy {
    padding: clamp(14px, 3vw, 48px) 0;
}

.welcome-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    /* 上(eyebrowのmargin-bottom:12px)と下(旧22px)で間隔が異なると
       実機指摘。eyebrowと同じ--space-3に揃えて上下対称にする。 */
    margin-bottom: var(--space-3);
}

.welcome-copy h1 span {
    color: var(--accent-blue);
}

.welcome-lead {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    line-height: 1.75;
    text-wrap: pretty;
    color: var(--color-text-secondary);
    font-weight: 500;
    /* 独自のmax-width(900px)が親.welcome-copy(960px)より狭く、
       ページ幅に余裕があっても「選ぶ」の間で折り返す不自然な改行になって
       いた(実機指摘)。親の幅に委ねる。 */
    max-width: none;
}

.welcome-filter-panel {
    background: var(--bg-card);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%;
    border-color: rgba(213, 70, 28, 0.16);
}

.welcome-filter-heading {
    padding: 24px 24px 4px;
    background: var(--bg-inset);
}

.welcome-filter-heading h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    /* eyebrow→h2(12px)に対しh2→p(旧5px)・p→filter-body(旧4px)が
       バラバラだと実機指摘。--space-2に揃えて一貫したリズムにする。 */
    margin-bottom: var(--space-2);
    /* line-heightが本文用の1.7を継承しており、見出し前後に余分な
       行間の空白が乗ってmargin以上に間隔が広く見えていた(実機指摘)。
       design.mdの見出し基準(1.25〜1.3)に合わせる。 */
    line-height: 1.3;
}

.welcome-filter-heading p:last-child {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.welcome-filter-panel .filter-body {
    padding: 18px 24px 24px;
    padding: 14px 24px var(--space-5);
    /* エリア下端とボタンの間隔が広いとの実機指摘のため、
       --space-5(24px)から--space-3(12px)へ縮める。 */
    padding-bottom: var(--space-3);
}

.btn-wide {
    width: 100%;
    min-height: 44px;
    font-size: 0.875rem;
}

.mobile-menu-content {
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 36px;
}

.mobile-menu-content a, .mobile-menu-title {
    flex-shrink: 0;
}

.menu-section-title {
    margin-top: 16px;
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .results-tools, .sort-control {
        align-items: stretch;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .back-to-top {
        right: 12px;
        bottom: 12px;
        padding: 9px 12px;
    }

    .favorite-btn span {
        display: none;
    }
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: var(--space-1) 20px;
    min-height: var(--app-header-height);
}

.header-right-area {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-secondary {
    background-color: #e8eef6;
    color: var(--color-text-secondary);
}

.btn-secondary:hover {
    background-color: #dbe5f1;
}

.mobile-menu-content {
    width: 270px;
    background-color: #ffffff;
    box-shadow: -8px 0 24px rgba(30, 41, 59, 0.14);
    gap: 7px;
    padding: 68px 20px 20px;
}

.mobile-menu-content a {
    font-size: 0.875rem;
    padding: 6px 0;
}

.mobile-menu-title {
    font-size: 0.75rem;
    margin-bottom: 2px;
    padding-bottom: 5px;
}

.menu-section-title {
    margin-top: 9px;
}

.footer-note, .footer-ad-notice {
    width: min(100%, 940px);
    margin-inline: auto;
}

.footer-ad-notice {
    /* 重複していたline-height宣言(1.65/1.4で後勝ち1.4が有効)を
       design.mdの本文基準1.7に統一。 */
    line-height: 1.7;
    margin-bottom: var(--space-2);
    border-left: 3px solid var(--color-accent);
    font-weight: 500;
}

.welcome-page {
    max-width: 1120px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: start;
    gap: clamp(28px, 6vw, 88px);
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    /* .app-content(padding-top 24px)に加えてここでもmargin-topを
       積んでおり、ヘッダーとの間隔が広くなっていた(実機指摘)。app-content
       の余白のみに委ねる。 */
    margin-top: 0;
}

.welcome-copy {
    width: min(900px, 100%);
    padding: 0;
    width: 100%;
}

.welcome-filter-heading {
    background: var(--bg-inset);
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    /* 上(16px)・左右(24px)・下(8px)がすべて異なり、枠と文字の間隔が
       不揃いに見えるとの実機指摘(画像添付)。--space-4(16px)で四辺を統一。 */
    padding: var(--space-4);
}

.welcome-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 18px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 18px;
}

.welcome-filter-grid .filter-purpose-collapse {
    grid-column: span 2;
}

.welcome-filter-grid .filter-item {
    min-width: 0;
}

.filter-purpose-collapse {
    min-width: 0;
}

.filter-purpose-summary {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-2);
    min-height: 26px;
    cursor: pointer;
    list-style: none;
}

.filter-purpose-summary::-webkit-details-marker {
    display: none;
}

.filter-purpose-summary::after {
    content: none;
    color: var(--accent-blue);
    font-size: 1rem;
    margin-left: auto;
}

.filter-purpose-collapse[open] .filter-purpose-summary::after {
    content: none;
}

.filter-purpose-body {
    margin-top: var(--space-1);
}

.welcome-filter-panel .filter-actions {
    margin-top: 12px;
}

.slider {
    background: var(--color-border-strong);
    accent-color: var(--accent-blue);
    color: var(--accent-blue);
}

.slider::-moz-range-track {
    height: 6px;
    border-radius: var(--radius-xs);
    background: var(--color-border-strong);
}

.btn-goto-shop {
    color: #ffffff;
    font-family: var(--font-ui);
    font-weight: 700;
    background-color: var(--color-accent);
    color: var(--color-accent-ink);
    border-radius: var(--radius-sm);
}

.filter-sidebar::-webkit-scrollbar, .filter-controls-scroll::-webkit-scrollbar {
    width: 8px;
}

.filter-sidebar::-webkit-scrollbar-track, .filter-controls-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar::-webkit-scrollbar-thumb, .filter-controls-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 999px;
}

.filter-sidebar .filter-collapse {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.filter-sidebar .filter-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.filter-controls-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: var(--color-border-strong) transparent;
    padding-right: 8px;
}

.filter-sidebar .filter-actions {
    flex: 0 0 auto;
}

.filter-sidebar .filter-budget {
    border-top: 1px solid var(--color-accent-soft);
    margin-top: 4px;
    padding-top: 12px;
}

.welcome-filter-grid .filter-purpose-control, .welcome-filter-grid .filter-shops {
    grid-column: 1 / -1;
}

/* CPU/GPUメーカー/GPUグレードはfilter-detail-collapse配下の独立グリッド
   (.filter-detail-body、span 4)に実際は配置されるため、ここでの指定は
   welcome-filter-gridの直接の子ではなく効果を持たない。予算スライダーは
   welcome-filter-gridの直接の子で単独行になるため、フルwidth(1/-1)にする
   (span 3のままだと同じ行の残り9列が空白になり、スライダーだけ短く見える)。 */
.welcome-filter-grid .filter-budget {
    grid-column: 1 / -1;
}

.welcome-filter-grid .filter-ram, .welcome-filter-grid .filter-ssd, .welcome-filter-grid .filter-vram {
    grid-column: span 4;
}

.welcome-filter-grid .filter-ram {
    grid-column: 1 / span 4;
}

.welcome-filter-grid .filter-ssd {
    grid-column: 5 / span 4;
}

.welcome-filter-grid .filter-vram {
    grid-column: 9 / span 4;
}

.welcome-filter-grid .filter-ram, .welcome-filter-grid .filter-ssd, .welcome-filter-grid .filter-vram {
    grid-row: 3;
}

.welcome-filter-grid .shop-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.welcome-filter-grid .radio-tile-vertical {
    flex-direction: row;
}

.filter-purpose-static .filter-purpose-summary {
    cursor: default;
}

.filter-purpose-static .filter-purpose-summary::after {
    content: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-nav {
    border-bottom: 1px solid var(--color-border);
}

.filter-controls-scroll::-webkit-scrollbar {
    width: 5px;
}

.filter-sidebar::-webkit-scrollbar {
    width: 5px;
}

.filter-sidebar .shop-checkbox-group {
    grid-template-columns: 1fr;
}

.filter-sidebar .shop-checkbox-label {
    font-size: 0.75rem;
}

.welcome-filter-grid .filter-budget {
    border-top: 1px solid var(--color-accent-soft);
    margin-top: 4px;
    padding-top: 12px;
}

.welcome-filter-grid .shop-checkbox-label {
    font-size: 0.8125rem;
    padding-block: var(--space-1);
}

.welcome-copy h1 {
    line-height: 1.18;
}

.chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    margin: -4px -5px -4px 0;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--color-accent-strong);
}

/* .back-to-topは7-9でニュートラル配色に変更済みのため、この後勝ちの
   宣言からは外し、アクセントカラーのbox-shadowを引き継がせない。
   .btn-goto-shop:hoverのbackground/colorは後続の宣言(var(--color-accent-strong)
   等)で上書きされるためここでは実質box-shadowのみが有効。 */
.btn-goto-shop:hover {
    box-shadow: 0 6px 16px rgba(232, 96, 12, 0.22);
}

.guide-link-badge:hover {
    border-color: rgba(213, 70, 28, 0.35);
    background: #f7e6dd;
    color: var(--accent-blue);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

.slider {
    width: calc(100% - 18px);
    margin: 4px 9px 0;
    background: var(--color-surface-alt);
    accent-color: var(--color-accent);
}

.select-box, .select-box-small {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
        linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%,
        calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    background-clip: padding-box;
    padding-right: 28px;
}

.select-box:focus, .select-box-small:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: inset 0 0 0 1px var(--accent-blue);
}

.radio-tile-label:hover .radio-tile-text {
    border-color: rgba(213, 70, 28, 0.55);
    border-color: var(--color-accent);
}

.favorite-btn:focus {
    outline: none;
}

@media (hover: hover) {
    .favorite-btn:hover {
        color: #a16207;
        border-color: rgba(161, 98, 7, 0.4);
        background: rgba(245, 158, 11, 0.12);
    }
}

@media (hover: none) {
    .favorite-btn:hover:not(.is-favorite) {
        color: var(--text-secondary);
        border-color: var(--color-border);
        background: #ffffff;
    }
}

/* color/background/border-colorは後方の.back-to-top定義(デザイン
   トークン版)が後勝ちで有効、bottomは後方の.back-to-top定義(フッター
   ドッキング対応版)が後勝ちで有効なため、ここではrightのみ残す。 */
.back-to-top {
    right: calc(14px + env(safe-area-inset-right));
}

/* background/transformは後方の.back-to-top:hover定義(デザイントークン
   版)が後勝ちで有効なため、ここではcolorのみ残す。 */
.back-to-top:hover {
    color: #ffffff;
}

.filter-sidebar {
    scrollbar-gutter: auto;
}

.filter-sidebar .shop-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.filter-controls-scroll {
    padding-left: 4px;
    scrollbar-width: thin;
}

.welcome-filter-grid .filter-item {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.welcome-filter-grid .filter-budget {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.welcome-filter-divider {
    grid-column: 1 / -1;
    height: 1px;
    min-height: 1px;
    background: rgba(213, 70, 28, 0.18);
}

.welcome-search-control {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    color: var(--color-text-secondary);
    font-weight: 700;
}

.welcome-search-control .search-input {
    width: 100%;
}

.welcome-filter-panel .filter-body {
    padding-top: 8px;
}

.welcome-copy h1, .welcome-lead {
    text-wrap: normal;
}

.mobile-filter-toggle, .mobile-filter-backdrop {
    display: none;
}

.welcome-status-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
}

/* transitionは後方の.back-to-top定義(デザイントークン版)が後勝ちで
   有効なため、ここではbottomのみ残す。 */
.back-to-top {
    bottom: var(--back-to-top-bottom, calc(9px + env(safe-area-inset-bottom)));
}

.back-to-top.is-footer-docked {
    position: absolute;
    bottom: auto;
}

.welcome-filter-panel .filter-actions {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#welcome-show-results {
    align-self: flex-end;
    display: inline-flex;
    justify-content: center;
    width: min(100%, 240px);
    align-self: center;
    margin-inline: 0;
}

.search-input {
    min-height: 42px;
    padding: var(--space-2) 13px var(--space-2) 34px;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
    cursor: text;
    appearance: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:hover {
    border-color: var(--color-text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(213, 70, 28, 0.16), inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.welcome-search-control .search-input {
    padding-left: 13px;
}

.welcome-filter-panel #reset-filters {
    width: auto;
    min-width: 130px;
}

.welcome-filter-panel #welcome-show-results {
    width: min(100%, 240px);
    margin-inline: 0;
}

.btn {
    min-height: 36px;
    box-sizing: border-box;
}

.search-input {
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.welcome-filter-panel #reset-filters:not([hidden]), .welcome-filter-panel #welcome-show-results {
    display: inline-flex;
    width: min(100%, 240px);
    height: 36px;
    min-width: 0;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    line-height: 18px;
    text-decoration: none;
}

.shop-badge, .favorite-btn {
    height: 24px;
    box-sizing: border-box;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
}

.shop-badge.badge-sycom {
    text-transform: none;
}

/* padding-blockは後方の.favorite-btn定義(タッチターゲット調整版)の
   padding(ショートハンド)で後勝ち上書きされるため除いた。 */
.favorite-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

/* タップ時のフィードバック形状を矩形にする。
   (1) 長押しでテキストが選択されると1行目「BTOptim」と2行目の副題で幅が
       異なるため階段状のいびつな反転になる → user-selectで選択自体を無効化。
   (2) OS標準のタップハイライトは文字にベタ付けで描画される → 透明にして
       :activeで自前の角丸矩形を出す。paddingは同値の負マージンで相殺し、
       通常時のレイアウト・見た目は一切変えない。 */
.logo-link {
    text-decoration: none;
    display: inline-block;
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding: 6px 10px;
    margin: -6px -10px;
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.12s ease;
}

.logo-link:active,
.logo-link:focus-visible {
    background-color: var(--color-accent-soft);
}

.cond-breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.cond-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.cond-breadcrumb a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.cond-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.cond-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    min-width: 760px;
}

.cond-table th, .cond-table td {
    padding: 10px 12px;
    text-align: left;
    border-top: 1px solid var(--border-color, rgba(148, 163, 184, 0.18));
    color: var(--text-primary);
    white-space: nowrap;
}

.cond-table thead th {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: none;
}

.cond-table .cond-name {
    white-space: normal;
    min-width: 220px;
}

.cond-table .cond-name a {
    color: var(--accent-blue);
    text-decoration: none;
}

.cond-table .cond-name a:hover {
    text-decoration: underline;
}

.cond-table .cond-price {
    font-weight: 700;
}

.cond-cta {
    background: var(--bg-inset);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    text-align: center;
    margin-top: var(--space-6);
    /* .cond-page自体に可視の枠がなく、この余白+.cond-pageの
       padding-bottom+.app-contentのpadding-bottomが積み重なって
       フッターまでの間隔が104px(トップページ基準24pxの4倍以上)に
       なっていた(実機指摘)。--space-2(8px)へ縮める。 */
    margin-bottom: var(--space-2);
}

.cond-cta p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.cond-cta .btn {
    text-decoration: none;
}

.cond-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cond-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.3));
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.cond-chip:hover {
    border-color: var(--accent-blue);
}

.cond-chip-more {
    border-style: dashed;
    color: var(--accent-blue);
}

.cond-index-section {
    margin: var(--space-6) 0 var(--space-2);
}

.llm-profile-card {
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.llm-profile-tier {
    display: inline-block;
    padding: 2px 8px;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 800;
}

.llm-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.llm-profile-vram {
    font-weight: 900;
}

.llm-profile-card h3 {
    margin-top: var(--space-3);
    font-size: 1.1rem;
}

.llm-profile-card > p {
    margin-top: var(--space-2);
    color: var(--color-text-secondary);
}

.llm-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.llm-profile-stats div {
    padding: var(--space-3);
    background: var(--color-surface-alt);
}

.llm-profile-stats dt {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.llm-profile-stats dd {
    margin-top: 2px;
    font-weight: 800;
}

.llm-profile-card .llm-missing-note, .llm-data-note {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.llm-product-list {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.llm-product {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px var(--space-3);
    padding: var(--space-3);
    color: var(--color-text-primary);
    background: var(--color-surface-alt);
    border: 1px solid transparent;
    text-decoration: none;
}

.llm-product:hover {
    border-color: var(--color-accent);
}

.llm-product-shop {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.llm-product strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.llm-product-price {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    color: var(--color-accent-strong);
    font-weight: 900;
}

.llm-data-note {
    margin-top: var(--space-4);
}

@media (max-width: 560px) {
    .llm-profile-stats {
        grid-template-columns: 1fr;
    }

    .llm-product {
        grid-template-columns: 1fr;
    }

    .llm-product-price {
        grid-row: auto;
        grid-column: auto;
    }
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding-top: var(--space-3);
    margin-bottom: 0;
}

.article-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.article-decision-card {
    display: block;
    padding: var(--space-4);
    color: var(--color-text-primary);
    background: #f6f5f2;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.article-decision-card:hover {
    border-color: var(--color-accent);
}

.article-decision-card strong, .article-decision-card span {
    display: block;
}

.article-decision-card strong {
    font-weight: 800;
}

.article-decision-card span {
    margin-top: var(--space-1);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.llm-profile-rail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin: var(--space-5) calc(var(--space-6) * -1) 0;
    padding: 0 var(--space-6) var(--space-3);
    overflow-x: auto;
    scroll-padding-inline: var(--space-6);
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--color-border-strong) transparent;
}

.llm-profile-tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    margin-top: var(--space-4);
    overflow-x: auto;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    scrollbar-width: none;
}

.llm-profile-tabs::-webkit-scrollbar {
    display: none;
}

.llm-profile-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-text-secondary);
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
}

.llm-profile-tab span {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
}

.llm-profile-tab:hover {
    color: var(--color-text-primary);
}

.llm-profile-tab.is-active {
    color: var(--color-accent-strong);
    background: var(--color-surface);
    border-color: var(--color-accent);
}

.llm-profile-tab:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.llm-scroll-hint {
    margin-top: var(--space-3);
    color: var(--color-text-muted) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
}

.llm-profile-rail .llm-profile-card {
    display: flex;
    flex: 0 0 min(340px, 82vw);
    flex-direction: column;
    padding-bottom: var(--space-3);
    cursor: pointer;
    background: #f6f5f2;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.llm-profile-rail .llm-profile-card.is-active {
    border-color: var(--color-accent);
    box-shadow: inset 0 0 0 1px var(--color-accent);
}

.llm-profile-rail .llm-profile-card h3 {
    margin-top: var(--space-3);
}

.llm-profile-rail .llm-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--space-3);
}

.llm-profile-rail .llm-profile-stats div {
    padding: var(--space-2);
    background: var(--color-surface);
}

.llm-profile-rail .llm-profile-stats div:nth-child(3) {
    grid-column: 1 / -1;
}

.llm-profile-rail .llm-profile-stats div:nth-child(3) dd {
    font-size: 1rem;
    white-space: nowrap;
}

.llm-profile-rail .llm-product {
    grid-template-columns: minmax(0, 1fr);
}

.llm-profile-rail .llm-product-price {
    grid-row: auto;
    grid-column: auto;
}

.llm-profile-compare {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-3);
    font-size: 0.875rem;
    text-decoration: none;
}

.llm-article-product-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.llm-article-product-group {
    padding: var(--space-4);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.llm-article-product-group h3 {
    margin-top: var(--space-3);
}

.llm-article-product-meta {
    margin-bottom: var(--space-3) !important;
    color: var(--color-text-muted) !important;
    font-size: 0.8125rem !important;
}

.llm-article-product-group .llm-product {
    background: var(--color-surface);
    border-color: var(--color-border);
    border-radius: var(--radius-sm);
}

.llm-article-product-group .llm-product:hover {
    border-color: var(--color-accent);
}

.article-discovery {
    max-width: 1120px;
    margin: var(--space-7) auto 0;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-discovery + .article-discovery {
    margin-top: var(--space-5);
}

.article-discovery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-5);
    margin-bottom: var(--space-3);
}

.article-discovery-heading .eyebrow {
    margin-bottom: var(--space-1);
}

.article-discovery-heading h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.35;
}

.article-discovery-heading > p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.article-discovery-rail {
    display: flex;
    gap: var(--space-4);
    padding: 4px 0 var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--color-border-strong) transparent;
}

.article-discovery-card {
    display: flex;
    flex: 0 0 250px;
    overflow: hidden;
    color: var(--color-text-primary);
    background: #f6f5f2;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-discovery-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-discovery-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--space-4);
}

.article-discovery-category {
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
}

.article-discovery-body strong {
    margin-top: var(--space-2);
    line-height: 1.5;
}

.article-discovery-description {
    margin-top: var(--space-2);
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.65;
}

.article-discovery-body time {
    margin-top: auto;
    padding-top: var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.article-index {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-7);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-index-header {
    /* パンくず→タイトルの間隔を.article-header(通常記事)と揃える
       (space-4)。従来はcond-breadcrumbのmargin-bottom(16px)にこの
       padding-top(旧: space-6=32px)が積み重なり、通常記事の16px相当より
       大幅に広くなっていた(実機指摘)。article-breadcrumbクラス付与に
       よりmargin-bottomは0になったため、ここのpadding-topのみが
       間隔を決める。 */
    padding: var(--space-4) 0 var(--space-6);
    border-bottom: 1px solid var(--color-border-strong);
}

.article-index-header h1 {
    margin-top: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.article-index-header > p:last-child {
    margin-top: var(--space-3);
    color: var(--color-text-secondary);
}

.article-index > section {
    margin-top: var(--space-6);
}

.article-index-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.article-index-section-heading h2 {
    font-size: 1.35rem;
}

.article-index-section-heading p {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.article-index-list {
    display: grid;
    gap: var(--space-2);
}

.article-index-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-5);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-primary);
    background: #f6f5f2;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-index-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.article-index-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    grid-column: 1 / -1;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.article-index-meta > span {
    color: var(--color-accent-strong);
    font-weight: 800;
}

.article-index-card > strong {
    font-size: 1.125rem;
    line-height: 1.45;
}

.article-index-description {
    grid-column: 1;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.article-index-arrow {
    grid-row: 2 / 4;
    grid-column: 2;
    align-self: center;
    color: var(--color-accent-strong);
    font-size: 0.8125rem;
    font-weight: 800;
}

.article-index-more {
    margin-top: var(--space-4);
    text-align: center;
}

.article-index-more .btn {
    text-decoration: none;
}

.article-archive-list {
    border-top: 1px solid var(--color-border);
}

.article-archive-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-2);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

.article-archive-row:hover {
    background: #f6f5f2;
}

.article-archive-group {
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
}

.article-archive-row strong {
    line-height: 1.45;
}

.article-archive-row time {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.article-group-list {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-7);
}

.article-group {
    scroll-margin-top: calc(var(--app-header-height) + var(--space-4));
}

.article-group-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.article-group-heading h2 {
    font-size: 1.35rem;
}

.article-group-heading p {
    margin-top: var(--space-1);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.article-group-heading > span {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.article-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.article-group-card {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-primary);
    background: #f6f5f2;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.article-group-card:hover {
    border-color: var(--color-accent);
}

.article-group-card > span,
.article-group-card > strong,
.article-group-card > small {
    display: block;
}

.article-group-card > span {
    color: var(--color-accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
}

.article-group-card > strong {
    margin-top: var(--space-1);
    line-height: 1.45;
}

.article-group-card > small {
    margin-top: var(--space-1);
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .article-decision-grid, .llm-article-product-groups {
        grid-template-columns: 1fr;
    }

    .llm-profile-rail {
        margin-right: calc(var(--space-4) * -1);
        margin-left: calc(var(--space-4) * -1);
        padding-right: var(--space-4);
        padding-left: var(--space-4);
        scroll-padding-inline: var(--space-4);
    }

    .llm-profile-rail .llm-profile-card {
        flex-basis: 100%;
    }

    .article-decision-grid {
        gap: var(--space-2);
    }

    .article-decision-card {
        padding: var(--space-3);
    }

    .article-action .btn {
        max-width: 100%;
        padding-right: var(--space-3);
        padding-left: var(--space-3);
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .article-discovery {
        margin-top: var(--space-5);
        padding: var(--space-4);
    }

    .article-discovery + .article-discovery {
        margin-top: var(--space-4);
    }

    .article-discovery-heading {
        display: block;
        margin-bottom: var(--space-3);
    }

    .article-discovery-heading > p {
        display: none;
    }

    .article-discovery-rail {
        display: grid;
        gap: var(--space-2);
        padding-bottom: 0;
        overflow: visible;
    }

    .article-discovery-card {
        display: block;
        min-width: 0;
        border-radius: var(--radius-sm);
    }

    .article-discovery-card:nth-child(n+5) {
        display: none;
    }

    .article-discovery-visual,
    .article-discovery-description,
    .article-discovery-body time {
        display: none;
    }

    /* モバイルでも「AI開発用」等の分類ラベルだけは残し、新着ガイド/おすすめ記事の
       区別が付くようにする(カード高さの増加は1行分に抑えるためコンパクト表示)。 */
    .article-discovery-category {
        display: block;
        font-size: 0.6875rem;
        font-weight: 800;
    }

    .article-discovery-body {
        display: block;
        padding: var(--space-3) var(--space-4);
    }

    .article-discovery-body strong {
        display: block;
        margin: 0;
        font-size: 0.9375rem;
    }

    .article-discovery-card:hover {
        box-shadow: none;
        transform: none;
    }

    .article-index {
        padding: 0 var(--space-5) var(--space-6);
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .article-index-card {
        display: block;
        padding: var(--space-3);
    }

    .article-index-meta {
        margin-bottom: var(--space-2);
    }

    .article-index-card > strong,
    .article-index-description,
    .article-index-arrow {
        display: block;
    }

    .article-index-description {
        margin-top: var(--space-2);
    }

    .article-index-arrow {
        margin-top: var(--space-3);
    }

    .article-archive-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--space-1) var(--space-3);
        padding: var(--space-3) 0;
    }

    .article-archive-group {
        grid-column: 1 / -1;
    }

    .article-group-list {
        gap: var(--space-5);
        margin-top: var(--space-6);
    }

    .article-group-heading {
        align-items: baseline;
    }

    .article-group-heading p {
        display: none;
    }

    .article-group-grid {
        grid-template-columns: 1fr;
    }

    .article-group-card > small {
        display: none;
    }
}

.pc-list-sentinel {
    height: 1px;
}

@media (min-width: 901px) {
    .filter-sidebar .filter-collapse {
        position: relative;
        display: block;
    }

    .filter-sidebar .filter-body {
        position: absolute;
        inset: 0;
        display: block;
        height: auto;
        overflow: hidden;
    }

    .filter-sidebar .filter-controls-scroll {
        position: absolute;
        top: 12px;
        right: 14px;
        bottom: 64px;
        left: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        right: 6px;
        padding-right: 10px;
    }

    .filter-sidebar .filter-actions {
        position: absolute;
        right: 14px;
        bottom: 12px;
        left: 14px;
        margin-top: 0;
    }

    .welcome-filter-grid .filter-purpose-control {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .welcome-filter-grid .welcome-filter-divider-preset {
        grid-row: 2;
    }

    .welcome-filter-grid .filter-budget, .welcome-filter-grid .filter-cpu, .welcome-filter-grid .filter-gpu-vendor, .welcome-filter-grid .filter-gpu-grade {
        grid-row: 3;
    }

    .welcome-filter-grid .welcome-filter-divider-criteria {
        grid-row: 4;
    }

    .welcome-filter-grid .filter-ram, .welcome-filter-grid .filter-ssd, .welcome-filter-grid .filter-vram {
        grid-row: 5;
    }

    .welcome-filter-grid .welcome-filter-divider-shops {
        grid-row: 6;
    }

    .welcome-filter-grid .filter-shops {
        grid-column: 1 / -1;
        grid-row: 7;
    }

    /* 従来は#welcome-show-resultsのみflexで中央寄せし、#reset-filters
       はposition:absoluteで右横へ固定オフセット配置していたため、2つの
       ボタンの組全体としては中央に見えず、右にずれて見えていた(実機指摘)。
       絶対配置をやめ、2つのボタンをまとめて中央寄せする。 */
    .welcome-filter-panel .filter-actions {
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: var(--space-3);
    }

    .welcome-filter-panel #welcome-show-results, .welcome-filter-panel #reset-filters {
        height: 36px;
        min-height: 36px;
        box-sizing: border-box;
    }

    .welcome-filter-panel #welcome-show-results {
        position: static;
        margin: 0;
        width: min(100%, 220px);
        /* HTML上はreset-filtersが先だが、絶対配置をやめた際に
           見た目の左右順（従来は結果を表示が左、条件をリセットが右）まで
           入れ替わってしまっていた(実機指摘)。orderで元の見た目の順序に
           戻す。 */
        order: 1;
    }

    .welcome-filter-panel #reset-filters {
        position: static;
        margin: 0;
        width: 130px;
        min-width: 130px;
        order: 2;
    }

    .welcome-filter-panel #welcome-show-results:hover {
        transform: none;
        box-shadow: none;
    }
}

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 32, 53, 0.8);
    --bg-inset: #121b2d;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #d5461c;
    --accent-indigo: #6366f1;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: "M PLUS 1", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
    --font-display: var(--font-primary);
    --bg-header: #172554;
    --bg-header-border: rgba(147, 197, 253, 0.28);
    --accent-gold: #fbbf24;
    --bg-main: #f4f7fb;
    --bg-card: #ffffff;
    --bg-inset: #eef3f9;
    --border-color: rgba(30, 41, 59, 0.12);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #64748b;
    --accent-blue: #d5461c;
    --accent-indigo: #7c3aed;
    --card-shadow: 0 12px 30px rgba(30, 41, 59, 0.08);
    --app-header-height: 58px;
    --app-header-height: 52px;
    /* 広告開示バー(.ad-disclosure-bar、実測37.4px)の高さ。ヘッダーは
       position:stickyでtop:0のため、ページ最上部(未スクロール時)は広告
       バーの分だけ下にずれる。position:fixedの要素がこの分を計算に含めて
       いないとページ最上部でヘッダーと重なる(実機指摘)。 */
    --ad-bar-height: 38px;
    /* フェーズ0.5: 白基調パレット（design.md 改訂メモ3 / Ayu Light参考） */
    /* メインカラーの彩度を上げた(7-6)ことで相対的に他の白系統が沈んで
       見えるとの指摘のため、--color-bg/--color-surface-alt/--color-borderを
       明るめに調整した。--color-border-strongは8-9の商品区切り線等で視認性
       が必要なため据え置き。文字色とのコントラストは再計算済み(text-muted
       でも4.5:1以上を維持)。 */
    --color-bg: #fcfcfb;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f5f2;
    --color-border: #e8e5de;
    --color-border-strong: #cfcbc2;
    --color-text-primary: #24292e;
    --color-text-secondary: #57606a;
    --color-text-muted: #6b6f75;
    /* マネージャー決定によりメインカラーを#E8600Cへ変更。#E8600C自体は
       白文字との組で3.44:1でWCAG AA通常文字基準(4.5:1)を満たさないため、
       ボタン背景など文字を載せる箇所は--color-accent-strong(4.5:1以上を
       確保した深色)を使う。--color-accent-soft/--color-accent-inkは
       #E8600Cを基準に再計算。 */
    --color-accent: #E8600C;
    --color-accent-strong: #B84A08;
    --color-accent-soft: rgba(232, 96, 12, 0.10);
    --color-accent-ink: #fffaf5;
    /* データ取得状況インジケーター(.status-dot)の色が背景との
       コントラストが低く見づらいとの指摘。success/warningを
       彩度・明度を保ったまま濃くし、背景(--color-surface-alt #f6f5f2)との
       コントラストをいずれも4.5:1以上に引き上げた(旧: success 3.89:1、
       warning 2.98:1で実は3:1未達)。 */
    --color-success: #367c49;
    --color-warning: #8a6408;
    --color-danger: #d1383d;
    --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.06);
    --shadow-md: 0 6px 18px rgba(20, 20, 20, 0.10);
    --font-ui: "M PLUS 1", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
    --font-mono: "M PLUS 1", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 999px;
    --duration-fast: 120ms;
    --duration-base: 180ms;
    --duration-slow: 260ms;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --bg-main: var(--color-bg);
    --bg-card: var(--color-surface);
    --bg-inset: var(--color-surface-alt);
    --border-color: var(--color-border);
    --text-primary: var(--color-text-primary);
    --text-secondary: var(--color-text-secondary);
    --text-muted: var(--color-text-muted);
    --accent-blue: var(--color-accent);
    --accent-indigo: var(--color-accent);
    --card-shadow: var(--shadow-md);
    --transition-smooth: all var(--duration-base) var(--ease-out);
    --font-primary: var(--font-ui);
    --font-display: var(--font-ui);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-primary);
    /* design.mdの本文基準1.7に統一(旧1.6)。個別にline-heightを
       指定していない要素はここから継承する。 */
    line-height: 1.7;
    background: var(--bg-main);
    background: var(--color-bg);
}

.ad-disclosure-bar {
    background: #1e293b;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    padding: var(--space-2) var(--space-3);
    letter-spacing: 0.05em;
    background: #e8eff8;
    border-bottom-color: rgba(213, 70, 28, 0.12);
    color: var(--color-text-secondary);
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: var(--font-ui);
    font-weight: 600;
}

.app-header {
    background-color: rgba(11, 15, 25, 0.85);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(23, 37, 84, 0.96);
    border-bottom-color: var(--bg-header-border);
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(213, 70, 28, 0.16);
    box-shadow: 0 3px 16px rgba(30, 41, 59, 0.06);
    background: var(--color-surface);
    backdrop-filter: none;
    border-bottom: 1px solid var(--color-border-strong);
    box-shadow: none;
    font-family: var(--font-ui);
    font-weight: 500;
}

.logo-text::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 0.9em;
    margin-left: 7px;
    background: var(--color-accent);
    align-self: center;
    vertical-align: initial;
}

.mobile-menu-content {
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    font-family: var(--font-ui);
}

.mobile-menu-title {
    font-family: var(--font-mono);
    font-weight: 700;
    /* リンクと見分けづらいとの実機指摘を受け、text-mutedからメイン
       カラー(白背景でAAコントラストを保てるaccent-strong)へ変更。 */
    color: var(--color-accent-strong);
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-content a {
    font-weight: 600;
    color: var(--color-text-primary);
    /* グループ名下の区切り線は維持するが、リンク項目ごとの区切り線は
       実機指摘により削除する。 */
    border-bottom: none;
    /* PC幅を含む全幅でリンク下線を出さない。 */
    text-decoration: none;
}

.mobile-menu-content a:hover {
    color: var(--color-accent-strong);
}

.menu-toggle-btn span {
    background-color: var(--color-text-primary);
}

/* 台帳の「商品ページへ」ボタン(CTA)と同じアクセントカラーだと購買導線と
   紛らわしいとの指摘のため、ページ内ナビゲーションであることが分かる
   ニュートラルな濃色(グラファイト系)に変更した。design.mdが明示的に
   「ピル形状の例外」として名指ししているため、角丸も--radius-pillに統一する。 */
.back-to-top {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--color-surface);
    background: var(--color-text-primary);
    border: 1px solid var(--color-text-primary);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    transition: background var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.back-to-top:hover {
    background: color-mix(in srgb, var(--color-text-primary) 82%, black);
    transform: translateY(-1px);
}

.app-footer {
    background-color: #070a10;
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #e9eff7;
    color: var(--color-text-secondary);
    padding: 14px 24px 10px;
    background: var(--color-surface-alt);
    border-top: 2px solid var(--color-accent);
    color: var(--color-text-secondary);
    font-family: var(--font-ui);
    font-weight: 500;
    padding: var(--space-4) var(--space-5) var(--space-3);
}

.footer-nav a {
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: color var(--duration-base) var(--ease-out);
}

.footer-nav a:hover {
    color: var(--color-accent-strong);
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--color-border);
    /* フッター内のもう一方の区切り線(.footer-nav)と比べ非対称
       (旧: 上0px/下6px)だったため、区切り線の上下とも--space-3(12px)に
       統一。デッドコード化していた旧値(margin-top:10px/20px系の重複宣言)
       も整理した。 */
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    color: var(--color-text-muted);
    font-weight: 600;
}

.filter-sidebar, .welcome-filter-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-ui);
}

.filter-collapse-summary {
    color: var(--color-text-primary);
    font-weight: 700;
}

.custom-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(213, 70, 28, 0.1);
    border: 1px solid rgba(213, 70, 28, 0.25);
    border-radius: var(--radius-xs);
    padding: 1px 8px;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-xs);
}

.filter-item {
    border-bottom-color: var(--color-border);
}

.filter-label, .filter-label-title {
    color: var(--color-text-secondary);
    font-weight: 700;
}

.filter-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-text-primary);
}

.slider::-webkit-slider-thumb {
    background: var(--color-accent);
    box-shadow: none;
    transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.slider::-moz-range-thumb {
    background: var(--color-accent);
}

.slider::-moz-range-track {
    background: var(--color-surface-alt);
}

.radio-tile-input:checked + .radio-tile-text {
    border-color: var(--color-accent);
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
}

.radio-tile-input:focus-visible + .radio-tile-text {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.select-box, .select-box-small {
    font-family: var(--font-ui);
    font-weight: 600;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
        linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
}

.select-box:focus, .select-box-small:focus {
    border-color: var(--color-accent);
    box-shadow: inset 0 0 0 1px var(--color-accent);
}

.shop-checkbox-label {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.shop-checkbox-label:hover {
    background-color: var(--color-accent-soft);
    color: var(--color-text-primary);
}

.shop-checkbox-label input[type="checkbox"] {
    accent-color: var(--color-accent);
}

.filter-actions {
    border-top-color: var(--color-border);
}

.btn {
    font-family: var(--font-ui);
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-accent-ink);
}

.btn-primary:hover {
    background: var(--color-accent-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: var(--color-surface-alt);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-border);
}

.search-input:focus {
    outline: 2px solid var(--color-accent-soft);
    border-color: var(--color-accent);
}

.filter-purpose-summary::after {
    color: var(--color-accent);
}

.mobile-filter-toggle {
    font-family: var(--font-ui);
    font-weight: 700;
    border-color: var(--color-accent);
    color: var(--color-accent-strong);
}

.mobile-filter-toggle:hover, .mobile-filter-toggle:focus-visible {
    background: var(--color-accent-soft);
    color: var(--color-accent-strong);
}

.welcome-filter-heading h2 {
    font-family: var(--font-ui);
    font-weight: 900;
    color: var(--color-text-primary);
}

.welcome-filter-heading p:last-child {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.welcome-filter-divider {
    background: var(--color-border);
}

.eyebrow {
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-accent-strong);
    /* 本文用line-height:1.7を継承し、短いラベル文字の上下に余分な
       空白が乗っていた(実機指摘)。見出しラベルとして詰める。 */
    line-height: 1.2;
}

/* START HEREボックス内はeyebrow→見出し(12px)と見出し→説明文(8px)で
   行間が異なって見えるとの実機指摘(画像添付)。このボックス内だけh2側の
   8pxに揃える(トップ見出しのeyebrow→h1は12pxのまま対称を維持)。 */
.welcome-filter-heading .eyebrow {
    margin-bottom: var(--space-2);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-ui);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-ui);
    font-weight: 900;
    color: var(--color-text-primary);
}

.result-count-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-text-secondary);
}

.missing-diff-notice {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* 除外内訳の開示 (P2-3)。既定は閉じており、除外0件のときは要素ごと非表示にする。 */
.coverage-detail {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2);
    background: var(--color-surface);
    margin: 0 0 12px;
}

.coverage-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    list-style: none;
}

.coverage-summary::-webkit-details-marker {
    display: none;
}

.coverage-detail[open] .coverage-summary .summary-icon {
    transform: rotate(180deg);
}

.coverage-body-wrap {
    padding: 0 12px 12px;
}

.coverage-note {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin: 0 0 8px;
}

/* 狭い画面で表がはみ出さないよう、表だけを横スクロールさせる */
.coverage-table-wrap {
    overflow-x: auto;
    margin: 0 0 8px;
}

.coverage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.coverage-table th,
.coverage-table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.coverage-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

.coverage-shop {
    font-weight: 600;
    color: var(--color-text-primary);
}

.coverage-num {
    font-family: var(--font-mono);
    text-align: right;
}

.coverage-rate {
    display: inline-block;
    margin-left: 6px;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(213, 70, 28, 0.1);
    border: 1px solid rgba(213, 70, 28, 0.25);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 700;
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-strong);
    border-radius: var(--radius-pill);
}

.chip-remove:hover {
    color: var(--color-text-primary);
}

.chip-clear-all {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 3px 4px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.chip-clear-all:hover {
    color: var(--color-accent-strong);
}

.pc-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-ui);
}

/* pc-card-row-main/-footerの<tr>は両方とも.pc-cardクラスも併せ持つ
   (7-3参照)。この.pc-card再定義がborder(4辺)とborder-radius(4隅)を
   後勝ちで上書きし、526行目付近で設定した継ぎ目消し(border-bottom:0/
   border-top:0)を無効化していたため、1商品のカードが上下2枚に分かれて
   見えていた(実機指摘)。ここで再度上書きし、外周だけ角丸の1枚カードに
   見えるようにする。 */
.pc-card-row-main {
    border-bottom: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.pc-card-row-footer {
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.shop-badge {
    border-radius: var(--radius-xs);
}

.spec-grid {
    border-top-color: var(--color-border);
    border-bottom-color: var(--color-border);
}

.spec-cell-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1px;
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.spec-cell-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1px;
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--color-text-muted);
}

.upgrade-tag {
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-strong);
    font-weight: 700;
}

.standard-tag {
    color: var(--text-muted);
    font-size: 0.75rem;
    /* design.mdの下限(UI要素は600以上)を下回るfont-weight:400
       だったため500へ引き上げ。 */
    font-weight: 500;
    color: var(--color-text-muted);
}

.price-breakdown {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 200px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.total-price-value {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
}

.price-unit {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-ui);
    font-weight: 700;
}

.tax-included {
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 3px;
    color: var(--color-accent-strong);
}

.btn-goto-shop:hover {
    background-color: var(--color-accent-strong);
}

/* 同一セレクタの旧デザイン定義(hover/is-favoriteとも複数箇所に散在
   していた)を整理し、最終的に有効なこの定義に一本化した。 */
.favorite-btn:hover, .favorite-btn.is-favorite {
    color: var(--color-accent-strong);
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.no-results {
    text-align: center;
    padding: 48px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.relax-suggestions {
    margin-top: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.relax-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    color: var(--color-text-primary);
    font-weight: 700;
}

.relax-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
}

/* app.js内にfont-size:0.78rem(12.48px、タイプスケール外)の
   インラインスタイルが直書きされていたため、専用クラスへ切り出した。 */
.relax-empty-note {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.relax-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.relax-btn .relax-count {
    color: var(--color-accent-strong);
    font-weight: 700;
}

.status-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* welcomeページのみ: 「データ取得状況」を<details>+<summary>化
   (.filter-detail-summary等と同じ開閉パターン)。デスクトップでは
   常時展開・モバイル(560px以下)では初期閉(app.jsのinit()で制御)。 */
.welcome-status-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    cursor: pointer;
    list-style: none;
}

.welcome-status-summary::-webkit-details-marker {
    display: none;
}

.welcome-status-summary .summary-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    transition: transform var(--duration-base) var(--ease-out);
}

.welcome-status-section[open] > .welcome-status-summary .summary-icon {
    transform: rotate(180deg);
}

.status-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background-color: var(--bg-inset);
    border: 1px solid var(--border-color);
    padding: var(--space-2) 4px;
    border-radius: 8px;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.status-tile-name {
    font-size: 0.75rem;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--color-text-primary);
    /* 「マウスコンピューター」のはみ出し対策は.status-tile-row側の
       4列2行グリッド化に変更したが、念のためnowrapに戻さず折り返しを
       許可したままにする(通常は各タイルの幅が十分になり1行に収まる)。 */
    white-space: normal;
}

.status-tile-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    /* font-weight未指定でブラウザ既定の400になっていたため、
       design.mdの下限(UI要素は600以上)に合わせ500を明示。 */
    font-weight: 500;
}

.status-dot.success {
    background-color: var(--color-success);
}

.status-dot.failed {
    background-color: var(--color-warning);
}

.status-dot.loading {
    background-color: var(--color-text-muted);
}

.guide-banner-container {
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
}

.guide-banner-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    color: var(--color-text-secondary);
    font-weight: 700;
}

.guide-link-badge {
    font-weight: 600;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
}

.cond-chip {
    font-family: var(--font-ui);
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.cond-chip:hover {
    border-color: var(--color-accent);
}

.cond-chip-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

.cond-chip-more {
    color: var(--color-accent-strong);
}

.cond-index-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: var(--font-ui);
    font-weight: 800;
    color: var(--color-text-primary);
}

.welcome-copy h1 {
    font-family: var(--font-ui);
    font-weight: 900;
    color: var(--color-text-primary);
}

.welcome-copy h1 span {
    color: var(--color-accent);
}

.cond-page {
    max-width: 1080px;
    margin: 0 auto;
    /* 上パディングはmain.app-contentのpadding-top(24px)と積み重なるため0にする
       (docs/design.md 4.1節。ヘッダー下端から本文開始までの基準24〜25px)。
       左右16px・下48pxはそのまま維持する。 */
    padding: 0 16px 48px;
    font-family: var(--font-ui);
    /* .app-contentのpadding-bottomと積み重なりフッターまでの間隔が
       広くなっていたため縮める(実機指摘、8-15のモバイル版と同じ対応を
       PC幅にも適用)。 */
    padding-bottom: var(--space-2);
}

.cond-breadcrumb {
    color: var(--color-text-muted);
    font-weight: 600;
}

.cond-breadcrumb a {
    color: var(--color-text-muted);
}

.cond-breadcrumb a:hover {
    color: var(--color-accent-strong);
}

.cond-header h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-weight: 900;
    color: var(--color-text-primary);
}

.cond-lead {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.cond-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.cond-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    color: var(--color-text-muted);
    font-weight: 600;
}

.cond-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
}

.cond-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.cond-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.cond-table-caption {
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 14px 4px;
    color: var(--color-text-secondary);
    font-weight: 700;
}

.cond-table th, .cond-table td {
    border-top-color: var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.cond-table thead th {
    color: var(--color-text-muted);
    font-weight: 700;
    background: var(--color-surface-alt);
}

.cond-table .cond-name {
    font-family: var(--font-ui);
    font-weight: 600;
}

.cond-table .cond-name a {
    color: var(--color-text-primary);
}

.cond-table .cond-name a:hover {
    color: var(--color-accent-strong);
}

.cond-table .cond-price {
    font-weight: 800;
    color: var(--color-accent-strong);
}

.cond-price-state {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.pro-gpu-guide {
    margin-bottom: var(--space-5);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pro-gpu-kicker {
    margin: 0 0 var(--space-2);
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pro-gpu-guide h2 {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.4;
}

.pro-gpu-workload,
.pro-config-reason,
.pro-config-missing,
.pro-source-links,
.pro-cloud-link {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
}

.pro-gpu-workload {
    margin: var(--space-3) 0 0;
}

.pro-config-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.pro-config-summary > div {
    padding: var(--space-4);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.pro-config-summary span,
.pro-config-summary strong {
    display: block;
}

.pro-config-summary span {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.pro-config-summary strong {
    margin-top: var(--space-1);
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.pro-config-reason {
    margin: var(--space-3) 0 0;
}

.pro-config-missing {
    margin: var(--space-2) 0 0;
    padding: var(--space-2) var(--space-3);
    background: var(--color-accent-soft);
    border-left: 3px solid var(--color-accent);
}

.pro-gpu-guide h3 {
    margin: var(--space-6) 0 var(--space-3);
    font-size: 1.125rem;
}

.pro-difference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.pro-difference-grid article {
    padding: var(--space-4);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.pro-difference-grid h4 {
    margin: 0;
    font-size: 0.875rem;
}

.pro-difference-grid p {
    margin: var(--space-2) 0 0;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.75;
}

.pro-source-links {
    margin: var(--space-4) 0 0;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.pro-source-links a,
.pro-cloud-link a {
    color: var(--color-accent-strong);
    font-weight: 700;
    text-underline-offset: 3px;
}

.pro-cloud-link {
    margin: var(--space-3) 0 0;
}

.cond-cta {
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
}

.cond-cta p {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.cond-related h2, .cond-vendor-group h2 {
    font-size: 1rem;
    margin: 24px 0 12px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-weight: 800;
    color: var(--color-text-primary);
}

@media (max-width: 700px) {
    .pro-config-summary,
    .pro-difference-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pro-gpu-guide {
        padding: var(--space-4);
    }
}

.icon {
    display: inline-block;
    width: var(--space-4);
    height: var(--space-4);
    flex: 0 0 auto;
    vertical-align: middle;
    pointer-events: none;
}

.filter-purpose-summary::after, .filter-sidebar .filter-collapse-summary::after {
    content: none;
}

.filter-purpose-summary .summary-icon, .filter-collapse-summary .summary-icon {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--color-accent);
    transition: transform var(--duration-base) var(--ease-out);
}

.filter-purpose-collapse[open] .filter-purpose-summary .summary-icon, .filter-collapse[open] > .filter-collapse-summary .summary-icon {
    transform: rotate(180deg);
}

/* display/align-itemsは前方の.favorite-btn基本定義と同値の重複のため
   除いた(gap/justify-contentのみここで新たに指定)。 */
.favorite-btn {
    justify-content: center;
    gap: var(--space-2);
}

.favorite-btn .favorite-icon {
    width: 15px;
    height: 15px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-width: 44px;
    min-height: 44px;
}

/* hidden属性のUAデフォルト(display:none)と上のdisplay:inline-flexは
   同じ詳細度(0,1,0)だが、author CSSがUA CSSより優先されるため、hidden属性が
   付与されても常にinline-flexのまま表示され続けていた(トップに戻るボタンが
   ページ最上部でも表示される不具合)。属性セレクタで明示的に上書きする。 */
.back-to-top[hidden] {
    display: none;
}

.back-to-top .icon {
    width: 18px;
    height: 18px;
}

.article-header::after, .static-page-container h1.page-title::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    content: "";
    background: var(--color-accent);
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    background-color: rgba(213, 70, 28, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: var(--space-1) var(--space-2);
    margin-bottom: var(--space-3);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-accent-strong);
    /* 他の小型ラベル(shop-badge/eyebrow/spec-cell-label等)は
       0.05〜0.06emで統一されているため、突出していた0.08emを合わせた。 */
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--color-accent-soft);
    border: 1px solid color-mix(in srgb, var(--color-accent) 38%, transparent);
    border-radius: var(--radius-xs);
}

.static-page-container .page-title {
    margin-bottom: var(--space-6);
}

.article-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.article-content, .page-content {
    padding-bottom: 20px;
    padding-bottom: var(--space-2);
}

.article-section, .info-section {
    margin-bottom: var(--space-7);
}

.article-section:last-child, .info-section:last-child {
    margin-bottom: 0;
}

.article-section h2, .info-section h2 {
    padding: 0 0 var(--space-3);
    margin: 0 0 var(--space-4);
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
    border-left: 0;
}

.article-section h2::before, .info-section h2::before {
    display: inline-block;
    width: 4px;
    height: 0.9em;
    margin-right: var(--space-2);
    vertical-align: -0.05em;
    content: "";
    background: var(--color-accent);
}

.article-section h3 {
    margin: var(--space-5) 0 var(--space-3);
    font-family: var(--font-ui);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--color-text-primary);
}

.article-section p, .info-section p, .article-section ul, .info-section ul, .article-section ol {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.article-section p, .info-section p {
    margin-bottom: var(--space-4);
    line-height: 1.85;
}

.article-section ul, .info-section ul, .article-section ol {
    padding-left: var(--space-5);
    margin: 0 0 var(--space-4);
}

.article-section li, .info-section li {
    margin-bottom: var(--space-2);
    line-height: 1.75;
}

.article-section li::marker, .info-section li::marker {
    color: var(--color-accent);
    font-weight: 800;
}

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: var(--space-5) 0;
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.spec-table, .info-table {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-primary);
    border-collapse: collapse;
}

.spec-table th, .spec-table td, .info-table th, .info-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.spec-table th, .info-table th {
    font-weight: 700;
    color: var(--color-text-primary);
    background: var(--color-surface-alt);
}

.spec-table th {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.spec-table td {
    font-weight: 500;
    color: var(--color-text-secondary);
    vertical-align: top;
}

.spec-table tbody tr:last-child td, .info-table tbody tr:last-child th, .info-table tbody tr:last-child td {
    border-bottom: 0;
}

.spec-table td strong {
    font-weight: 800;
    color: var(--color-accent-strong);
}

.info-table th {
    width: 150px;
}

.info-table td {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.info-table td a {
    font-weight: 700;
    color: var(--color-accent-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.info-table td a:hover {
    color: var(--color-accent);
}

.table-note {
    margin-top: calc(var(--space-3) * -1);
    font-size: 0.8125rem !important;
    color: var(--color-text-muted) !important;
}

.article-action {
    padding: var(--space-5);
    margin-top: var(--space-6);
    text-align: center;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.article-action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
    .article-container, .static-page-container {
        padding-right: var(--space-4);
        padding-left: var(--space-4);
    }

    .article-header, .static-page-container h1.page-title {
        padding-top: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .article-title, .page-title {
        font-size: 1.5rem;
    }

    .article-section, .info-section {
        margin-bottom: var(--space-6);
    }

    .article-section h2, .info-section h2 {
        font-size: 1.25rem;
    }

    .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        padding-bottom: var(--space-2);
        border-bottom: 0;
    }

    .info-table td {
        padding-top: 0;
        overflow-wrap: anywhere;
    }

    .article-action {
        padding: var(--space-4);
    }

    .article-action .btn {
        width: 100%;
    }
}

.btn-goto-shop, .mobile-filter-toggle, .menu-toggle-btn {
    min-width: 44px;
    min-height: 44px;
}

.favorite-btn {
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: var(--space-1) var(--space-2);
}

.btn-goto-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle-btn {
    width: 44px;
    height: 44px;
    padding: var(--space-3) 10px;
}

.menu-toggle-btn span {
    width: 24px;
}

/* .favorite-btn:focus-visible単独の旧定義(アンバー系outline)は、
   このグループ定義(var(--color-accent)版)が後勝ちで有効なため削除した
   (outline-offsetは同値のため実質差分なし)。 */
.favorite-btn:focus-visible, .btn-goto-shop:focus-visible, .mobile-filter-toggle:focus-visible, .menu-toggle-btn:focus-visible, .back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

#shop-status-container {
    min-height: 52px;
}

.spec-details-summary {
    display: none;
}

.spec-grid-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* フェーズ3: 比較結果の台帳化(1280px以上のみ)。プロトタイプ検証の結果、
   375pxではテーブル自動レイアウトが列を潰して文字が読めなくなるため、
   ワイド画面限定とした(docs/uiux_refactor_plan.md フェーズ3参照)。
   フェーズ7-3: 「1行目=スペック列、2行目=カスタマイズ内訳・価格・ボタン」の
   2行構成にするため、CSS display:table-cellのみで組んでいた台帳を実HTMLの
   <table>/<tr>/<td>+colspanへ変更した(HTML構造・クラス名を初めて変更)。
   colspan属性は実際の<td>要素でのみ機能するため、CSS display:table-cellを
   dive等の疑似セルに与えるだけでは実現できない。 */
@media (min-width: 1280px) {
    /* table-layout:autoは列幅を「現在DOMにある全行の中で最も内容が長い行」に
       合わせて決定するため、無限スクロールで内容の長い行(カスタマイズ内訳が
       長い商品など)が読み込まれると、既に表示済みの行も含めて表全体が
       コンテナ幅を超えてはみ出す(7-1)。table-layout:fixedで列幅を固定値化し、
       内容の長さに関わらず表の幅を一定に保つ。 */
    .pc-list {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .pc-card-row-main,
    .pc-card-row-footer {
        display: table-row;
    }

    /* 1280px以上では.pc-listが本来のtableになるため、状態行も
       table-row/table-cellへ戻し、他行と同じ列幅計算に参加させる。 */
    .pc-list-state-row {
        display: table-row;
    }

    .pc-list-state-cell {
        display: table-cell;
        width: auto;
    }

    /* table-row化するPC表示ではmarginは本来無効だが、明示的に0へ
       戻して意図を明確にする(モバイル限定の対応のため)。 */
    .pc-card-row-footer {
        margin-bottom: 0;
    }

    .pc-card-row-main > .card-header {
        display: table-cell;
        vertical-align: middle;
        padding: 12px 8px;
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 0;
        width: 12%;
        overflow-wrap: break-word;
    }

    /* ショップ名・商品名より、隣接するスペック列に視線が向くよう控えめにする
       (font-sizeはdesign.mdのタイプスケール最小値0.75remを維持し、padding・
       font-weight・colorのみで視覚的な重みを落とす)
       7-4: フェーズ6のpadding縮小後もまだ大きいとの指摘のため、height(基本
       ルールで24px固定)とletter-spacingも台帳限定でさらに切り詰める。
       8-24: text-secondaryへの控えめ化で商品名が薄く読みづらいとの
       実機指摘のため、色はtext-primaryに戻す(サイズ・太さのみで調整)。 */
    .pc-card-row-main > .card-header .shop-badge {
        height: 18px;
        padding: 0 5px;
        letter-spacing: 0.02em;
    }

    .pc-card-row-main > .card-header .pc-name {
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--color-text-primary);
    }

    /* 7-2でアイコンのみの正方形ボタンに変更したが、マネージャーの
       意図は「文字ラベル付きのまま小さくする」だったため差し戻す。配置は
       card-header列内のまま変更しない(モバイル向けの2段組みは適用しない)。 */
    .pc-card-row-main > .card-header .favorite-btn {
        gap: var(--space-1);
        padding: var(--space-1) var(--space-2);
        font-size: 0.75rem;
    }

    .pc-card-row-main > .card-header .favorite-btn .favorite-icon {
        width: 12px;
        height: 12px;
    }

    /* GPU/CPUは常に独立列(全幅で表示)。メモリ/SSD/電源は台帳限定の複製列
       (spec-cell--ram/ssd/psu、ledger-onlyクラス)を表示し、モバイル/タブレット
       専用の折りたたみ列(.mobile-spec-cell)は列数に含めないよう非表示にする。 */
    .pc-card-row-main > .spec-cell {
        display: table-cell;
        vertical-align: middle;
        padding: 12px 8px;
        border-bottom: 1px solid var(--color-border);
        overflow-wrap: break-word;
    }

    .pc-card-row-main > .spec-cell--gpu,
    .pc-card-row-main > .spec-cell--cpu {
        width: 11.5%;
    }

    .pc-card-row-main > .spec-cell.ledger-only {
        display: table-cell;
        width: 6.5%;
    }

    .pc-card-row-main > .mobile-spec-cell {
        display: none;
    }

    /* 2行目: カスタマイズ内訳・価格・ボタンをcolspan=6(1行目の全列分)で
       まとめて1セルに収める。td自体をdisplay:flexにするとtable-cellとしての
       colspan解決が効かなくなるため、内側に.card-footer-inner(div)を挟んで
       そちらをflexコンテナにする(8-20)。旧float方式はDOM順でprice-breakdown
       がprice-and-actionより先に来ており、floatは自分より後続の要素にしか
       効かない仕様のため、カスタマイズ説明欄が金額の位置を無視して全幅に
       広がり、縦中央揃えも効かない不具合があった(実機指摘)。 */
    .pc-card-row-footer > .card-footer {
        display: table-cell;
        vertical-align: middle;
        padding: 10px 8px;
        border-bottom: 1px solid var(--color-border);
    }

    .pc-card-row-footer > .card-footer > .card-footer-inner {
        flex-wrap: nowrap;
    }

    .pc-card-row-footer > .card-footer > .card-footer-inner > .price-and-action {
        flex-shrink: 0;
        text-align: right;
    }

    .pc-card-row-footer > .card-footer > .card-footer-inner > .price-and-action > .total-price-value {
        display: inline-block;
        min-width: 70px;
        text-align: right;
        /* 通常価格は1行に収まる幅を確保しているが、ワークステーション向けの
           数百万円クラスの一部商品は桁数が多く1行に収まらない。white-space:
           nowrapのままだと列幅を超えて表全体がはみ出すため、折り返しを許容する
           (7-1)。 */
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* 価格・ボタンが行の右下に寄って見え、次の商品の価格と見間違え
       やすいとの指摘だったが、モバイルと同じ「カード間の隙間」方式(8-20の
       .pc-card-spacer)へ移行したため、太い罫線は不要になり通常の1pxへ戻す。 */
    .pc-card-spacer {
        display: table-row;
    }

    .pc-card-spacer > td {
        height: var(--space-2);
        padding: 0;
        border: 0;
        line-height: 0;
    }

    /* 台帳内ではボタンをコンパクトにする(モバイル/カード表示は44pxタップ領域を維持)。
       7-5: `.btn-goto-shop`が持つmin-height/min-width:44px(タッチ端末向けの
       タップ領域規定)は、台帳がマウス操作前提のデスクトップ幅限定のため
       解除し、paddingどおりの実寸にする。 */
    .pc-card-row-footer > .card-footer .btn-card-action {
        padding: var(--space-2) 14px;
        font-weight: 600;
        margin-left: var(--space-2);
        min-height: 0;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .app-layout {
        /* `1fr`は`minmax(auto, 1fr)`と同義で、内部の折り返さない表の固有幅が
           トラック幅へ伝播する。結果カラムがviewportを超えて広がり、ページ全体に
           横スクロールが出るため、デスクトップ側と同じく最小値を0で固定する。
           はみ出す表は表自身のoverflow(.coverage-table-wrap等)で横スクロールさせる。 */
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        scrollbar-gutter: auto;
        max-height: none;
        height: auto;
        max-height: none;
        overflow: visible;
        scrollbar-color: auto;
        position: fixed;
        /* ページ最上部(未スクロール時)は広告バーの分だけヘッダーが
           下にずれるため、position:fixedのtop計算に--ad-bar-heightを
           加算してヘッダーとの重なりを防ぐ(実機指摘)。ヘッダーとの隙間は
           商品カード同士の隙間(--space-2)と揃える(マネージャー指示で
           32px→8pxへ縮小)。 */
        top: calc(var(--ad-bar-height) + var(--app-header-height) + var(--space-2));
        left: 0;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 1002;
        width: min(320px, calc(100vw - 24px));
        height: auto;
        max-height: none;
        overflow: hidden;
        border-radius: 0 16px 16px 0;
        transform: translateX(-105%);
        transition: transform 0.24s ease-out;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
    }

    .filter-collapse-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .filter-collapse:not([open]) .filter-body {
        display: none;
        display: none;
    }

    .spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .card-footer {
        /* 1枚のカードに統合した結果、スペック情報と金額情報が同じ
           グループに見えるとの実機指摘のため、金額行の上部に区切り線を
           追加する(PC向け1280px以上のテーブル表示は対象外)。 */
        border-top: 1px solid var(--color-border);
        padding-top: var(--space-3);
    }

    .price-and-action {
        justify-content: space-between;
    }

    .guide-banner-container {
        padding: var(--space-3);
        /* 折りたたみ済みガイドバナーと最初の商品カードの間が広いとの
           実機指摘のため、24px→12pxへ縮める(PC表示は対象外)。 */
        margin-bottom: var(--space-3);
    }

    .guide-banner-links {
        gap: var(--space-2);
    }

    .menu-toggle-cb {
        display: none;
    }

    .menu-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 44px;
        height: 44px;
        /* .dropdown-btn等と共有する`min-width/min-height:44px`(3545行目)
           が指定幅24px/高さ18pxを上書きし、実際のコンテンツ領域が
           44-2*12=20pxになっていた。開閉時のspan transform(±8px)は
           高さ18pxのコンテンツ領域を前提に計算されているため、2px分の
           ずれがX印の斜線を非対称にしていた(実機で「崩れている」と報告)。
           paddingを13pxにしてコンテンツ領域を18pxに戻し、既存のtransform
           計算と一致させる。 */
        padding: 13px 10px;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }

    .menu-toggle-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle-cb:checked+.menu-toggle-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle-cb:checked+.menu-toggle-btn span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-cb:checked+.menu-toggle-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-menu-content {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        padding: 80px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        transition: right 0.3s ease-in-out;
        border-left: 1px solid var(--border-color);
    }

    .menu-toggle-cb:checked~.mobile-menu-content {
        right: 0;
    }

    /* このブロックはグループ名の下(リンクとの間)だけ margin-bottom:8px
       + padding-bottom:8px が基本ルールのコンテナgap:16pxに上乗せされ、
       グループ名の上(前グループとの間)より明らかに広い空白を作っていた
       (実機指摘)。8-5と同じ旧デザインシステム(v1)時代の重複値のため削除し、
       基本ルール(margin-bottom:2px, padding-bottom:5px)に委ねる。 */

    /* font-size/padding/border-bottomは旧デザインシステム(v1)時代の値
       (border-bottomのrgba(255,255,255,0.03)は白背景では実質見えないダーク
       テーマ時代の名残)で、基本ルール(font-size:0.875rem・padding:6px 0)より
       項目間隔が広くなっていたため削除し、基本ルールに委ねる。 */
    .mobile-menu-content a {
        color: var(--text-primary);
        text-decoration: none;
        transition: var(--transition-smooth);
    }

    .mobile-menu-content a:hover {
        color: var(--accent-blue);
    }

    .article-container, .static-page-container {
        margin: 20px auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0 16px 20px;
        margin-top: 0;
        margin-top: 0;
        margin-bottom: var(--space-5);
        padding: 0 var(--space-5) var(--space-6);
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .results-tools {
        width: 100%;
        justify-content: flex-end;
    }

    .search-input {
        width: min(100%, 280px);
    }

    .welcome-page {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 10px;
    }

    .welcome-copy {
        padding: 14px 0 0;
    }

    .welcome-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
    }

    .welcome-filter-grid .filter-purpose-collapse {
        grid-column: span 2;
    }

    .filter-sidebar .filter-collapse {
        grid-template-rows: none;
        position: static;
        /* 「条件をリセット」が実機(アドレスバー表示時など)で見切れる
           問題を調査した結果、.filter-bodyが親のflexサイジングに頼らず
           `height: calc(100dvh - var(--app-header-height) - 92px - ...)`
           という固定式で自身の高さを算出しており、この92pxという定数は
           8-14/8-15で.filter-sidebarのtop位置に--ad-bar-height等を
           追加した際に追従できていなかった(実測で最大約16px分ずれて
           .filter-sidebarのoverflow:hiddenで下端が切れていた)。
           固定式をやめ、.filter-collapseをdisplay:flexのまま維持して
           .filter-body側をflex:1 1 autoで残り領域いっぱいに広げる方式に
           変更し、topオフセットが今後変わっても自動的に追従するようにする。 */
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    /* Chrome(131+)は<details>の非summary部分を匿名ボックス
       ::details-contentでラップするため、.filter-collapseにdisplay:flexを
       指定しても実際のflexアイテムはこの匿名ボックスであり、.filter-body
       (その子)には縮小制約が伝わらず自然な高さのまま溢れていた。
       ::details-content自体もflexコンテナ化し、縮小を許可する。 */
    .filter-sidebar .filter-collapse::details-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .filter-sidebar .filter-body {
        grid-template-rows: none;
        position: static;
        inset: auto;
        display: flex;
        /* flex-basis:autoだとコンテンツの自然な高さが基準になり、
           flex-shrinkが機能せず親の高さを超えて溢れていたため、
           flex-basis:0で残り領域ぴったりに収まるようにする。 */
        flex: 1 1 0;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        padding: 0 14px calc(10px + env(safe-area-inset-bottom));
    }

    .filter-controls-scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
        overflow: visible;
    }

    .filter-sidebar .filter-controls-scroll {
        flex: none;
    }

    .welcome-filter-grid .filter-purpose-control, .welcome-filter-grid .filter-shops, .welcome-filter-grid .filter-ssd, .filter-controls-scroll .filter-purpose-control, .filter-controls-scroll .filter-shops, .filter-controls-scroll .filter-ssd {
        grid-column: 1 / -1;
    }

    .welcome-filter-grid > *, .filter-controls-scroll > * {
        grid-row: auto;
    }

    .welcome-filter-grid .filter-purpose-control, .filter-controls-scroll .filter-purpose-control {
        order: 1;
    }

    .welcome-filter-grid .filter-budget, .filter-controls-scroll .filter-budget {
        order: 2;
    }

    .welcome-filter-grid .filter-cpu, .filter-controls-scroll .filter-cpu {
        order: 3;
    }

    .welcome-filter-grid .filter-gpu-vendor, .filter-controls-scroll .filter-gpu-vendor {
        order: 4;
    }

    .welcome-filter-grid .filter-gpu-grade, .filter-controls-scroll .filter-gpu-grade {
        order: 5;
    }

    .welcome-filter-grid .filter-vram, .filter-controls-scroll .filter-vram {
        order: 6;
    }

    .welcome-filter-grid .filter-ram, .filter-controls-scroll .filter-ram {
        order: 7;
    }

    .welcome-filter-grid .filter-ssd, .filter-controls-scroll .filter-ssd {
        order: 8;
    }

    .welcome-filter-grid .filter-shops, .filter-controls-scroll .filter-shops {
        order: 9;
    }

    .welcome-filter-grid .filter-ram, .welcome-filter-grid .filter-ssd, .welcome-filter-grid .filter-vram, .filter-controls-scroll .filter-ram, .filter-controls-scroll .filter-ssd, .filter-controls-scroll .filter-vram {
        grid-row: auto;
    }

    .welcome-filter-grid .filter-budget, .welcome-filter-grid .filter-cpu, .welcome-filter-grid .filter-gpu-vendor, .welcome-filter-grid .filter-gpu-grade, .welcome-filter-grid .filter-vram, .welcome-filter-grid .filter-ram, .filter-controls-scroll .filter-budget, .filter-controls-scroll .filter-cpu, .filter-controls-scroll .filter-gpu-vendor, .filter-controls-scroll .filter-gpu-grade, .filter-controls-scroll .filter-vram, .filter-controls-scroll .filter-ram {
        grid-column: auto;
        grid-row: auto;
    }

    .welcome-filter-grid .radio-tile-vertical {
        flex-direction: row;
    }

    .filter-sidebar .filter-controls-scroll {
        position: static;
        inset: auto;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 6px;
        scrollbar-width: thin;
        scrollbar-color: var(--color-border-strong) transparent;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 12px 6px 16px 0;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        display: flex;
        flex-direction: column;
        flex: 1 1 0%;
        min-height: 0;
        max-height: none;
        height: auto;
        overflow-x: hidden;
        overflow-y: scroll;
        padding-right: 8px;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .filter-sidebar .filter-actions {
        position: static;
        margin-top: 8px;
        flex: 0 0 auto;
    }

    .mobile-menu-content {
        right: 0;
        width: min(270px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        height: 100dvh;
        transform: translateX(105%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out, visibility 0s linear 0.3s;
    }

    .menu-toggle-cb:checked ~ .mobile-menu-content {
        right: 0;
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }


    .mobile-filter-toggle {
        display: inline-flex;
        position: fixed;
        /* ページ最上部でヘッダー・「比較結果」「並び替え」に被って
           見づらいとの実機指摘。--ad-bar-height分を加算して重なりを防ぐ。
           ヘッダーとの隙間は商品カード同士の隙間(--space-2)と揃える
           (マネージャー指示で32px→8pxへ縮小)。 */
        top: calc(var(--ad-bar-height) + var(--app-header-height) + var(--space-2));
        left: 0;
        z-index: 1003;
        align-items: center;
        justify-content: center;
        min-height: 92px;
        padding: 12px 8px;
        border: 1px solid var(--accent-blue);
        border-left: 0;
        border-radius: 0 12px 12px 0;
        background: var(--bg-card);
        color: var(--accent-blue);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
        writing-mode: vertical-rl;
        font: inherit;
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .mobile-filter-toggle:hover, .mobile-filter-toggle:focus-visible {
        background: #f7e6dd;
        color: #a02f10;
        outline: none;
    }

    .mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        border: 0;
        background: rgba(15, 23, 42, 0.22);
        cursor: pointer;
        touch-action: none;
    }

    .mobile-filter-backdrop[hidden] {
        display: none !important;
    }

    body.mobile-filter-is-open .mobile-filter-toggle {
        opacity: 0;
        pointer-events: none;
    }

    body.mobile-filter-is-open .filter-sidebar {
        transform: translateX(0);
    }

    .filter-sidebar .filter-collapse-summary {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-card);
        position: relative;
    }

    /* モバイルの条件サイドメニューは閉じる導線を×のみにする(くの字アイコンは非表示) */
    .filter-sidebar .filter-collapse-summary .summary-icon {
        display: none;
    }

    .filter-sidebar .filter-collapse-summary::after {
        content: "×";
        position: absolute;
        top: 50%;
        right: 16px;
        margin: 0;
        transform: translateY(-50%);
        color: var(--color-text-secondary);
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1;
    }

    .welcome-filter-panel .filter-actions {
        align-items: center;
    }

    #welcome-show-results {
        align-self: center;
        margin-inline: auto;
    }

    .mobile-filter-toggle {
        background: #ffffff;
        z-index: 1301;
        background: #ffffff;
        z-index: 1402;
    }

    .filter-sidebar {
        overscroll-behavior: contain;
        z-index: 1300;
        background: var(--bg-card);
        z-index: 1401;
    }

    .filter-sidebar .filter-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
        padding: var(--space-3) 0 0;
        border-top: 1px solid var(--border-color);
        position: relative;
        z-index: 1;
    }

    .filter-sidebar .filter-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .mobile-filter-backdrop {
        display: block;
        z-index: 1299;
        z-index: 1390;
    }

    .menu-toggle-cb:not(:checked) ~ .mobile-menu-content {
        display: none;
    }

    .menu-toggle-cb:checked ~ .mobile-menu-content {
        display: flex;
    }

    .app-header {
        z-index: 1400;
    }

    .filter-sidebar .filter-collapse-summary {
        justify-content: flex-start;
        gap: 8px;
        position: relative;
        justify-content: flex-start;
        gap: 8px;
        padding-right: 48px;
    }

    .filter-sidebar .filter-summary-count {
        margin-left: 0;
        font-size: 0.75rem;
    }

    .welcome-filter-panel .filter-actions {
        width: 100%;
    }

    .ad-disclosure-bar {
        position: relative;
        z-index: 1403;
    }

    .header-container {
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding-inline: 16px;
        align-items: center;
    }

    .header-right-area {
        margin-left: auto;
        min-width: 0;
        gap: 6px;
        display: flex;
        align-items: center;
        align-self: center;
    }

    .mobile-nav {
        display: block;
        position: relative;
        align-self: center;
    }

    /* この折りたたみ(.spec-details)はフェーズ7-3で.pc-card-row-mainの
       末尾要素になったため、既存のborder-bottomがpc-card-row-mainと
       pc-card-row-footerの継ぎ目直前に位置し、1商品のカードが2枚に分かれて
       見える原因になっていた。継ぎ目に区切り線を残さないためborder-bottomを
       削除し、余白はmargin-bottomのみで確保する。 */
    .spec-details {
        margin-bottom: var(--space-2);
    }

    .spec-details:not([open]) > .spec-grid-secondary {
        display: none;
    }

    .spec-details-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2);
        min-height: 44px;
        padding: var(--space-2) 0;
        font-family: var(--font-ui);
        font-size: 0.8125rem;
        font-weight: 700;
        color: var(--color-accent-strong);
        cursor: pointer;
        list-style: none;
    }

    .spec-details-summary::-webkit-details-marker {
        display: none;
    }

    .spec-details-summary .summary-icon {
        width: 18px;
        height: 18px;
        transition: transform var(--duration-base) var(--ease-out);
    }

    .spec-details[open] .spec-details-summary .summary-icon {
        transform: rotate(180deg);
    }

    .spec-grid-secondary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-top: var(--space-2);
        border-top: 1px solid var(--color-border);
        border-bottom: 0;
    }
}

.filter-detail-collapse {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 1px solid var(--color-border);
}

.filter-detail-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) 0;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-strong);
    cursor: pointer;
    list-style: none;
}

.filter-detail-summary::-webkit-details-marker {
    display: none;
}

.filter-detail-summary .summary-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    transition: transform var(--duration-base) var(--ease-out);
}

.filter-detail-collapse[open] > .filter-detail-summary .summary-icon {
    transform: rotate(180deg);
}

.filter-detail-collapse:not([open]) > .filter-detail-body {
    display: none;
}

.filter-detail-body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 18px;
    padding-top: var(--space-2);
}

.filter-detail-body .filter-cpu, .filter-detail-body .filter-gpu-vendor, .filter-detail-body .filter-gpu-grade, .filter-detail-body .filter-vram, .filter-detail-body .filter-ram, .filter-detail-body .filter-ssd, .filter-detail-body .filter-shops, .filter-detail-body .welcome-filter-divider {
    grid-row: auto;
}

.filter-detail-body .filter-cpu, .filter-detail-body .filter-gpu-vendor, .filter-detail-body .filter-gpu-grade, .filter-detail-body .filter-vram, .filter-detail-body .filter-ram, .filter-detail-body .filter-ssd {
    grid-column: span 4;
}

.filter-detail-body .filter-shops, .filter-detail-body .welcome-filter-divider {
    grid-column: 1 / -1;
}

@media (min-width: 561px) and (max-width: 900px) {
    .welcome-filter-grid .filter-budget {
        grid-column: 1 / -1;
        order: 2;
    }

    .welcome-filter-grid .filter-gpu-vendor {
        order: 3;
    }

    .welcome-filter-grid .filter-gpu-grade {
        order: 4;
    }

    .welcome-filter-grid .filter-vram {
        order: 5;
    }

    .welcome-filter-grid .filter-cpu {
        order: 6;
    }

    .welcome-filter-grid .filter-ram {
        order: 7;
    }

    .welcome-filter-grid .filter-ssd {
        grid-column: auto;
        order: 8;
    }

    .welcome-filter-grid .filter-shops {
        order: 9;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .header-right-area {
        margin-left: auto;
        min-width: 0;
        gap: 6px;
    }

    .mobile-nav {
        margin-left: auto;
    }

    .welcome-filter-grid .filter-purpose-control {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .welcome-filter-grid .welcome-filter-divider-preset {
        grid-row: 2;
    }

    .welcome-filter-grid .filter-budget {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .welcome-filter-grid .filter-gpu-vendor {
        grid-column: 1;
        grid-row: 4;
    }

    .welcome-filter-grid .filter-gpu-grade {
        grid-column: 2;
        grid-row: 4;
    }

    .welcome-filter-grid .welcome-filter-divider-criteria {
        grid-row: 5;
    }

    .welcome-filter-grid .filter-vram {
        grid-column: 1;
        grid-row: 6;
    }

    .welcome-filter-grid .filter-cpu {
        grid-column: 2;
        grid-row: 6;
    }

    .welcome-filter-grid .filter-ram {
        grid-column: 1;
        grid-row: 7;
    }

    .welcome-filter-grid .filter-ssd {
        grid-column: 2;
        grid-row: 7;
    }

    .welcome-filter-grid .welcome-filter-divider-shops {
        grid-row: 8;
    }

    .welcome-filter-grid .filter-shops {
        grid-column: 1 / -1;
        grid-row: 9;
    }

    .filter-detail-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap-inline: 14px;
    }

    .filter-detail-body .filter-cpu, .filter-detail-body .filter-gpu-vendor, .filter-detail-body .filter-gpu-grade, .filter-detail-body .filter-vram, .filter-detail-body .filter-ram, .filter-detail-body .filter-ssd {
        grid-column: auto;
    }
}

.loading-skeletons {
    display: grid;
    gap: var(--space-2);
}

.pc-card-skeleton {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-3);
    align-content: space-between;
    min-height: 275px;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.skeleton-block {
    display: block;
    grid-column: auto;
    width: 100%;
    height: 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    animation: skeleton-pulse 1.4s var(--ease-out) infinite alternate;
}

.skeleton-shop {
    width: 40%;
    height: 22px;
}

.skeleton-name, .skeleton-price, .skeleton-action {
    grid-column: 1 / -1;
}

.skeleton-name {
    width: 70%;
    height: 16px;
}

.skeleton-cpu {
    width: 88%;
}

.skeleton-gpu {
    width: 90%;
}

.skeleton-ram {
    width: 72%;
}

.skeleton-ssd {
    width: 68%;
}

.skeleton-power {
    width: 70%;
}

.skeleton-price {
    width: 40%;
    height: 18px;
}

.skeleton-action {
    width: min(100%, 220px);
    height: 32px;
}

@keyframes skeleton-pulse {
    from { opacity: 0.48; }
    to { opacity: 0.92; }
}

@media (max-width: 560px) {
    .welcome-filter-grid {
        grid-template-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .welcome-filter-grid .filter-purpose-collapse {
        grid-column: span 1;
    }

    .filter-controls-scroll, .welcome-filter-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filter-controls-scroll > *, .welcome-filter-grid > * {
        grid-column: auto !important;
    }

    .welcome-filter-grid .radio-tile-vertical {
        flex-direction: column;
    }

    .welcome-copy h1 {
        line-height: 1.25;
        font-size: clamp(1.55rem, 6.7vw, 2rem);
        line-height: 1.24;
        letter-spacing: -0.03em;
    }

    .welcome-filter-grid > * {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .welcome-filter-grid .filter-purpose-control {
        order: 1;
    }

    .welcome-filter-grid .welcome-filter-divider-preset {
        order: 2;
    }

    .welcome-filter-grid .filter-budget {
        order: 3;
    }

    .welcome-filter-grid .filter-cpu {
        order: 4;
    }

    .welcome-filter-grid .filter-gpu-vendor {
        order: 5;
    }

    .welcome-filter-grid .filter-gpu-grade {
        order: 6;
    }

    .welcome-filter-grid .welcome-filter-divider-criteria {
        order: 7;
    }

    .welcome-filter-grid .filter-vram {
        order: 8;
    }

    .welcome-filter-grid .filter-ram {
        order: 9;
    }

    .welcome-filter-grid .filter-ssd {
        order: 10;
    }

    .welcome-filter-grid .welcome-filter-divider-shops {
        order: 11;
    }

    .welcome-filter-grid .filter-shops {
        order: 12;
    }

    .welcome-lead {
        font-size: 0.875rem;
        line-height: 1.75;
    }

    /* GPU別チップ(トップページのみ)。デスクトップはflex-wrapでフルネーム
       (例:「NVIDIA GeForce RTX 5070 12GB」)を表示するが、モバイルでは
       文言が長く1行1チップの全幅縦積みになり約640pxの壁になっていた
       (マネージャー指摘)。2列グリッド化し、.cond-chip-vendor(ベンダー
       接頭辞)をCSSで隠して「RTX 5070 12GB」のような短縮表示にすることで
       セクションの高さを概ね半減させる。セレクタは.cond-index-section配下
       に限定し、GPU個別ページ/GPUハブ(gpu_page.html/gpu_index.html)の
       .cond-chipは対象外とする(現状維持)。 */
    .cond-index-section .cond-chip-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 6px;
    }

    .cond-index-section .cond-chip {
        justify-content: space-between;
        gap: 4px;
        min-height: 40px;
        padding: 8px 6px;
        font-size: 0.7rem;
    }

    .cond-index-section .cond-chip-vendor {
        display: none;
    }

    .cond-index-section .cond-chip-name {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .cond-index-section .cond-chip-count {
        flex-shrink: 0;
        /* .cond-chip-countは基本スタイルでfont-size: 0.75remが指定されて
           おり、親.cond-chipのfont-size変更(rem基準のため無関係)を継承
           しない。台数側も揃えて縮小し、型番側の残り幅を確保する。 */
        font-size: 0.7rem;
    }

    .cond-index-section .cond-chip-more {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        align-items: flex-start;
    }

    /* 560px以下ではcard-headerがdisplay:gridに切り替わり、ショップ名
       バッジ・商品名・お気に入りボタンを1行(3列)に詰め込んでいたため窮屈
       だった。1行目=バッジ+お気に入り、2行目=商品名の2行構成に変更する。 */
    .card-header {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "badge favorite"
            "name name";
        align-items: start;
        gap: 4px 8px;
    }

    .card-header .shop-badge {
        grid-area: badge;
        justify-self: start;
    }

    .card-header .pc-name {
        grid-area: name;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .card-header .favorite-btn {
        grid-area: favorite;
        justify-self: end;
        margin-left: 0;
        align-self: start;
    }

    .back-to-top {
        right: calc(12px + env(safe-area-inset-right));
        bottom: calc(9px + env(safe-area-inset-bottom));
    }

    .welcome-page {
        margin-top: 0;
        gap: var(--space-3);
    }

    .welcome-copy {
        padding-top: 0;
    }

    .welcome-copy h1 {
        font-size: clamp(1.5rem, calc(9.15vw - 5.25px), 3.1rem);
        line-height: 1.18;
        letter-spacing: -0.06em;
    }

    .app-footer {
        padding-bottom: var(--space-4);
    }

    #shop-status-container {
        min-height: 190px;
    }

    .filter-detail-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filter-detail-body > * {
        grid-column: 1 / -1 !important;
    }

    .pc-card-skeleton {
        grid-template-columns: 1fr;
        align-content: space-between;
        min-height: 294px;
    }

    .pc-card-skeleton .skeleton-block {
        grid-column: 1;
    }

    .pc-card-skeleton .skeleton-action {
        width: 100%;
        height: 44px;
    }
}

@media (max-width: 600px) {
    .header-right-area {
        width: 44px;
        height: 44px;
        display: block;
        gap: 0;
    }

    .mobile-nav {
        width: 44px;
        height: 44px;
        margin-left: 0;
        position: relative;
        display: block;
    }

    .article-action .btn {
        padding: var(--space-2) var(--space-3);
        font-size: 0.875rem;
        line-height: 1.4;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top, .mobile-menu-content, .favorite-btn {
        transition: none;
    }

    .back-to-top, .footer-nav a {
        transition: none;
    }

    .slider::-webkit-slider-thumb, .btn-primary, .mobile-filter-toggle {
        transition: none;
    }

    .pc-card, .btn-goto-shop, .favorite-btn, .relax-btn, .cond-chip {
        transition: none;
    }

    .filter-purpose-summary .summary-icon, .filter-collapse-summary .summary-icon {
        transition: none;
    }

    .article-action .btn, .info-table td a {
        transition: none;
    }

    .spec-details-summary .summary-icon {
        transition: none;
    }

    .filter-detail-summary .summary-icon {
        transition: none;
    }

    .skeleton-block {
        animation: none;
        opacity: 0.72;
    }
}

/* トップ導入部は reverse-hero と同じ見出し・補足文の2段構成。既存の
   welcome-copy向け重複定義より後勝ちにして、最終computed値を揃える。 */
.welcome-copy h1,
.reverse-hero h1 {
    margin: 0 0 var(--space-3);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: normal;
}

.welcome-copy .welcome-lead,
.reverse-hero > p:last-child {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    text-wrap: wrap;
}

/* P4-1: 商品名から同等構成を探す */
.reverse-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto var(--space-8);
}

/* .btn のベース定義（style.css内、全ページ共通）には text-decoration が無く、
   <a class="btn"> はブラウザ既定の下線が付く。他ページの a.btn は個別に none を
   指定済みだが、逆引きページだけ漏れていたためここでスコープして補う。 */
.reverse-page .btn {
    text-decoration: none;
}

.reverse-hero {
    /* main.app-content の padding-top: 24px が全ページ共通のヘッダー間隔。
       ここに上パディングを足すとヘッダー〜本文の間隔が広がりすぎるため、
       上は0にし、下(ヒーローと検索パネルの間隔)のみ確保する。 */
    padding: 0 0 var(--space-5);
}

.reverse-kicker,
.reverse-section-label {
    margin: 0 0 var(--space-2);
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.reverse-hero h1 {
    margin: 0 0 var(--space-3);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.25;
}

.reverse-hero > p:last-child {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.reverse-search-panel,
.reverse-reference,
.reverse-results {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.reverse-search-panel {
    padding: var(--space-5);
}

.reverse-search-panel h2 {
    margin: 0 0 var(--space-4);
    font-size: 1.25rem;
}

.reverse-search-panel label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
    font-weight: 700;
}

.reverse-combobox {
    position: relative;
}

.reverse-combobox .search-input {
    width: 100%;
    max-width: none;
    min-height: 48px;
    /* 基底の.search-inputは背景アイコン用に左34pxを確保しているが、
       このコンボボックスにはアイコンが無いためトップページの
       .welcome-search-control .search-input と同様に13pxへ打ち消す。 */
    padding-left: 13px;
}

.reverse-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    /* 入力欄の下端からビューポート下端までの余白に収まるようクランプする。
       入力欄のページ内オフセットは(ビューポート高に依存せず)ほぼ一定のため、
       100vhから固定オフセット分を差し引く形で近似する（極端に低いビューポートでは
       下限200pxを保証し、リスト自体が消えないようにする）。 */
    max-height: min(420px, max(200px, calc(100vh - 550px)));
    margin: 0;
    padding: var(--space-2);
    overflow-y: auto;
    list-style: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.reverse-suggestion {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.reverse-suggestion:hover,
.reverse-suggestion.is-active {
    background: var(--color-accent-soft);
}

.reverse-suggestion-name {
    font-weight: 700;
}

.reverse-suggestion-meta,
.reverse-suggestion-empty,
.reverse-search-help,
.reverse-reference-meta,
.reverse-definition,
.reverse-result-more-note {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
}

.reverse-suggestion-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reverse-suggestion-empty {
    padding: 12px;
}

.reverse-search-help {
    margin: var(--space-2) 0 0;
}

.reverse-error {
    margin-top: var(--space-4);
    padding: var(--space-4);
    color: var(--color-danger, #a62c21);
    background: #fff4f2;
    border: 1px solid #edb6ae;
    border-radius: var(--radius-md);
}

.reverse-reference {
    margin-top: var(--space-5);
    padding: var(--space-5);
}

.reverse-reference-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-2);
}

.reverse-reference-heading h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.4;
}

.reverse-reference-meta {
    margin: 0;
    line-height: 1.7;
}

.reverse-condition-chips {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.reverse-condition-chips span {
    padding: 6px 10px;
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-pill);
}

.reverse-results {
    margin-top: var(--space-5);
    padding: var(--space-5);
}

.reverse-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.reverse-results-header h2 {
    margin: 0;
    font-size: 1.375rem;
}

.reverse-result-count-note {
    margin-left: var(--space-2);
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.reverse-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.reverse-definition {
    margin: var(--space-4) 0;
    padding: var(--space-3);
    line-height: 1.7;
    background: var(--color-surface-alt);
    border-left: 3px solid var(--color-accent);
}

.reverse-result-list {
    display: grid;
    gap: var(--space-3);
}

/* 逆引き結果カードは「上段=商品情報とスペック(差分・構成変更の補足を含む)／
   下段=価格差・総額・CTAのみ」の縦2段構成にしている(比較ページの
   .pc-card-row-main/footerに倣った配置意図)。右側に価格カラムを固定していた
   旧レイアウトでは.reverse-spec-gridが776px幅しか使えずGPU名が2行折り返しで
   カード高が伸びていたため、価格情報を下段へ移してスペック行をカード全幅まで
   広げ、高さを圧縮する。 */
.reverse-result-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.reverse-result-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-2);
}

.reverse-result-heading h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.reverse-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
    margin: 0;
}

.reverse-spec-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 6px var(--space-2);
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
}

.reverse-spec-grid dt {
    color: var(--color-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
}

.reverse-spec-grid dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 0.8125rem;
    font-weight: 700;
}

.reverse-spec-grid small {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* 下段: GPUスコア差・VRAM・CPUクラス・メモリ/SSDの構成変更有無といった補足は
   すべて対応するスペックタイル内(.reverse-spec-grid small)へ統合したため、
   下段には価格差・総額・CTAボタンのみを右端寄せの1段で置く。 */
.reverse-result-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-4);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

.reverse-result-price {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--space-3);
}

.reverse-price-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px var(--space-2);
    line-height: 1.3;
}

.reverse-price-difference {
    color: var(--color-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.reverse-result-price strong {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reverse-result-price strong small {
    margin-left: 3px;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
}

.reverse-result-price .btn {
    text-align: center;
    white-space: nowrap;
}

/* アフィリエイト計測用1x1ピクセルが.reverse-result-price内の最後のflex
   アイテムとして並ぶと、そのgap分だけCTAボタンの右端が左へずれ、
   ピクセルの有無で金額桁数に関係なくCTA位置が揃わなくなる(実機指摘)。
   計測目的のみで表示位置は不要なため、flowから外して右端揃えを固定する。 */
.reverse-result-price .a8-impression-pixel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.reverse-relax {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    background: var(--color-accent-soft);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
}

.reverse-relax > p {
    margin: var(--space-2) 0 0;
}

.reverse-relax > div {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.reverse-result-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    padding: var(--space-4) var(--space-3);
    text-align: center;
}

.reverse-result-more-note {
    margin: 0;
}

@media (max-width: 900px) {
    .reverse-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 900px以下は下段(価格ブロック)を右端寄せのままにせず縦積み・全幅へ戻す
       (旧レイアウトのモバイル表示を維持する)。 */
    .reverse-result-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .reverse-result-price {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        margin-top: var(--space-2);
    }

    .reverse-result-price .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .reverse-page {
        width: min(100% - 24px, 1120px);
    }

    .reverse-hero {
        padding-top: 0;
    }

    .reverse-search-panel,
    .reverse-reference,
    .reverse-results,
    .reverse-result-card {
        padding: var(--space-4);
    }

    .reverse-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .reverse-result-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reverse-result-actions .btn {
        width: 100%;
        text-align: center;
    }

    .reverse-suggestion-meta {
        white-space: normal;
    }
}

/* P3-6: 特定の商品カードに属さない比較全体の補助導線。 */
.comparison-assist {
    display: grid;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-left: var(--space-1) solid var(--color-accent);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.comparison-assist[hidden] {
    display: none;
}

.comparison-assist strong {
    color: var(--color-text-primary);
}

.comparison-assist a {
    width: fit-content;
    color: var(--color-accent-strong);
    font-weight: 700;
}

/* P3-5: 商品固有の交換候補だけは、主CTAの後に置く。 */
.card-supplement {
    width: 100%;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.parts-referral {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-alt);
}

.parts-referral strong {
    color: var(--color-text-primary);
}

.parts-referral-disclosure {
    font-weight: 700;
    color: var(--color-text-muted);
}

.parts-referral .btn {
    width: fit-content;
    margin-top: var(--space-1);
}

@media (max-width: 600px) {
    .comparison-assist {
        padding: var(--space-3);
    }

    .parts-referral .btn {
        width: 100%;
        text-align: center;
    }

    /* 増設差額は6列の表を縦積みにすると見出しと値の対応が失われるため、
       モバイルではショップ／商品単位のスペックカードとして表示する。 */
    .upgrade-cost-page .coverage-table-wrap {
        overflow: visible;
    }

    .upgrade-cost-page .upgrade-cost-table thead,
    .upgrade-cost-page .upgrade-deal-table thead {
        display: none;
    }

    .upgrade-cost-page .upgrade-cost-table tbody,
    .upgrade-cost-page .upgrade-deal-table tbody {
        display: grid;
        gap: var(--space-3);
    }

    .upgrade-cost-page .upgrade-cost-table tbody tr,
    .upgrade-cost-page .upgrade-deal-table tbody tr {
        display: block;
        overflow: hidden;
        border: 1px solid var(--color-border-strong);
        border-radius: var(--radius-md);
        background: var(--color-surface);
    }

    .upgrade-cost-page .upgrade-cost-table th[scope="row"],
    .upgrade-cost-page .upgrade-deal-table th[scope="row"] {
        padding: var(--space-3);
        border-bottom: 1px solid var(--color-border);
        background: var(--color-surface-alt);
        line-height: 1.5;
    }

    .upgrade-cost-page .upgrade-cost-table td,
    .upgrade-cost-page .upgrade-deal-table td {
        display: grid;
        grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
        gap: var(--space-3);
        align-items: start;
        padding: var(--space-2) var(--space-3);
        border-bottom: 1px solid var(--color-border);
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .upgrade-cost-page .upgrade-cost-table td::before,
    .upgrade-cost-page .upgrade-deal-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--color-text-primary);
    }

    .upgrade-cost-page .upgrade-cost-table td:last-child,
    .upgrade-cost-page .upgrade-deal-table td:last-child {
        border-bottom: 0;
    }
}

/* ================================================================
   デスクトップ: 条件指定サイドバーの高さ上限
   ================================================================
   従来はJS(syncFilterSidebarHeight)がサイドバーへ「viewportの残り高さ」を
   inline heightとして直接指定し、CSS側も.filter-body等を絶対配置で親いっぱいに
   広げていた。このため縦長モニタでは設定項目がすべて収まっているのに枠だけが
   viewport下端まで伸び、余白が無駄に長く表示されていた。

   JS側はheightではなくmax-heightを与えるように変更し、CSS側はモバイルと同じ
   flexチェーンへ寄せる。.filter-controls-scrollをflex-grow:0にすることで、
   コンテンツが収まる場合はサイドバーが内容の高さまでしか伸びず、収まらない
   場合だけ縮んでスクロールする。項目の開閉で内容量が変わっても自動追従する。 */
@media (min-width: 901px) {
    .filter-sidebar {
        display: flex;
        flex-direction: column;
        height: auto;
        /* JSがスクロール位置に応じたmax-heightをinlineで上書きする。ここでの値は
           JS未実行時に下端(条件をリセット)が画面外へ出ないためのフォールバック。 */
        max-height: calc(100dvh - var(--app-header-height) - 32px);
        overflow: hidden;
    }

    .filter-sidebar .filter-collapse {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        position: relative;
    }

    /* Chrome(131+)等は<details>の非summary部分を::details-contentでラップする
       ため、この匿名ボックスもflexコンテナ化しないと縮小制約が.filter-bodyへ
       伝わらない(モバイル側と同じ対応)。 */
    .filter-sidebar .filter-collapse::details-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .filter-sidebar .filter-body {
        position: static;
        inset: auto;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        overflow: hidden;
        /* 絶対配置時の inset(top:12 / left:14 / right:6) と同じ内側余白を維持 */
        padding: 12px 6px 12px 14px;
    }

    .filter-sidebar .filter-controls-scroll {
        position: static;
        inset: auto;
        /* grow:0が上限の要。内容が収まる高さで止まり、余った領域を埋めない。 */
        flex: 0 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 10px;
    }

    .filter-sidebar .filter-actions {
        position: static;
        inset: auto;
        flex: 0 0 auto;
        /* 絶対配置時のスクロール領域下端(bottom:64px)とボタン上端の間隔と同値 */
        margin-top: 2px;
        margin-right: 8px;
    }
}

/* ================================================================
   <a class="btn"> の共通補正
   ================================================================
   .btn のベース定義は<button>向けで、display と text-decoration を持たない。
   そのため <a class="btn"> はブラウザ既定の inline + 下線のまま描画され、
   (1) 下線が残る (2) 折り返すとインラインボックスが分割され背景が階段状に
   割れる、という崩れが各ページで個別に発生していた(逆引きページでは
   .reverse-page .btn として個別に対処済み)。ここで一括して補正する。
   display の指定を持つ既存ルール(.btn-wide や個別スコープ)は詳細度が
   同等以上なので従来どおり優先される。 */
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    text-decoration: none;
}

/* 各集計セクション末尾の比較ボタン。a.btnをinline-flex化した結果、
   ボタン幅が文言なりに縮んで左寄せに見えるため、他ページのCTA
   (.cond-cta)と同じく中央揃えにする。 */
.upgrade-pattern-cta {
    margin-top: var(--space-4);
    text-align: center;
}

/* ================================================================
   ヘッダーナビの常時ハンバーガー化
   ================================================================
   .pc-nav(PC幅の横並びリンク列)を廃止し、ヘッダーのナビゲーションは
   ビューポート幅に関わらず常にハンバーガーメニュー(.mobile-nav)のみで
   提供する。以下は元々「@media (max-width: 900px)」等の帯域だけに
   閉じていたトグル関連ルールを、幅に依存しない共通ルールとして
   まとめ直したもの(ファイル末尾に置くことで、同じ詳細度の帯域別
   ルールより後勝ちで優先させる)。 */
.mobile-nav {
    display: block;
    position: relative;
}

.menu-toggle-cb {
    display: none;
}

.menu-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 13px 10px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.menu-toggle-cb:checked + .menu-toggle-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle-cb:checked + .menu-toggle-btn span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-cb:checked + .menu-toggle-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    height: 100dvh;
    z-index: 1001;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid var(--color-border);
    transform: translateX(105%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-base) var(--ease-out), visibility 0s linear var(--duration-slow);
}

.menu-toggle-cb:checked ~ .mobile-menu-content {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

/* 上記の常時ハンバーガー化ブロックがファイル末尾にあるため、既存の
   prefers-reduced-motion指定(6580行目付近)より後勝ちしてしまう。
   同条件をここでも重ねて、モーション低減設定時は必ず無効化されるように
   する。 */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-content,
    .menu-toggle-btn span {
        transition: none;
    }
}
