@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ================= Template scope ================= */
.hp-article{
  --text:#222; --muted:#667085; --accent:#0E7AFE; --bg:#fff;
  --soft:#f6f7f9; --border:#e6e8ee; --radius:14px; --shadow:0 2px 12px rgba(0,0,0,.04);
  --ok:#12805a; --warn:#b42318; --info:#155e75;
  --tint-blue:#eef5ff; --tint-amber:#fff7e6; --tint-green:#e9f8f0; --tint-red:#ffefef;
  --maxw:980px; --space:24px; --space-sm:16px; --space-xs:10px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic UI","Meiryo",sans-serif;
  color:var(--text); line-height:1.75;
}

.hp-article article{
  max-width:var(--maxw); margin:0 auto; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow);
}

.hp-article h1{font-size:clamp(1.1rem,3.8vw,1.6rem); margin:0 0 6px}
.hp-article h2{font-size:clamp(1.05rem,3.3vw,1.25rem); margin:0 0 14px; position:relative; padding-left:12px}
.hp-article h2::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:.9em;background:var(--accent);border-radius:3px}
.hp-article .subtitle{color:var(--muted); font-size:.95rem; margin:0 0 6px}
.hp-article .meta{color:#8a8f99; font-size:.9rem}
.hp-article .ok{color:var(--ok); font-weight:800}
.hp-article .warn{color:var(--warn); font-weight:800}
.hp-article .info{color:var(--info); font-weight:800}
.hp-article .hl{background:linear-gradient(transparent 60%, rgba(14,122,254,.15) 0); font-weight:700}

.hp-article header{padding:var(--space) var(--space) var(--space-xs); border-bottom:1px solid var(--border); background:linear-gradient(180deg,#fff,#fafbfc)}
.hp-article section{padding:var(--space); border-top:1px solid var(--border); background:#fff}
.hp-article .card{background:#fff; border:1px solid var(--border); border-radius:12px; padding:var(--space-sm)}
.hp-article .badges{margin-top:8px; display:flex; flex-wrap:wrap; gap:8px}
.hp-article .badge{display:inline-block; background:#eef2ff; color:#3246b5; border:1px solid #dfe6ff; border-radius:8px; padding:4px 8px; font-size:.82rem}

.hp-article .grid, .hp-article .proscons, .hp-article .compare {display:grid; grid-template-columns:1fr; gap:16px}
.hp-article .grid > .card { min-width:0 }

.hp-article .note{background:var(--tint-blue); border-left:4px solid #93c5fd; padding:12px 14px; border-radius:10px; font-size:.95rem}
.hp-article .tip{background:var(--tint-amber); border-left:4px solid #fbbf24; padding:12px 14px; border-radius:10px; font-size:.95rem}
.hp-article .good{background:var(--tint-green); border-left:4px solid #22c55e; padding:10px 12px; border-radius:10px}
.hp-article .bad{background:var(--tint-red); border-left:4px solid #ef4444; padding:10px 12px; border-radius:10px}
.hp-article ul{margin:8px 0 0 18px} .hp-article li{margin:6px 0}
.hp-article .kicker{font-weight:800; font-size:.95rem; margin-bottom:6px; color:#334155}
.hp-article .checklist li{list-style:"☑  "; padding-left:4px}
.hp-article .em{font-weight:800}

/* Product card */
.hp-article .product-wrap{padding:var(--space-sm) var(--space); border-top:1px solid var(--border); background:linear-gradient(180deg,#fff,#f7fbff)}
.hp-article .product-card{
  display:flex; flex-direction:column; gap:12px;
  border:1px solid #e8ecf4; border-radius:14px; padding:14px; background:#fcfdff
}
.hp-article .product-card img{width:100%; height:auto; border-radius:10px; border:1px solid #eef1f4; object-fit:contain; background:#fff}
.hp-article .product-title{font-size:1rem; margin:0 0 6px; line-height:1.5}
.hp-article .product-title a{color:#0a4db3; text-decoration:none}
.hp-article .product-title a:hover{text-decoration:underline}
.hp-article .product-meta{font-size:.92rem; color:#445}
.hp-article .product-price{font-weight:800; margin-left:8px}
.hp-article .cta-row{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:8px}
.hp-article .btn-amz{
  display:inline-block; background:#ff9900; color:#111; font-weight:800; width:100%;
  padding:12px 14px; border-radius:10px; text-decoration:none; border:1px solid #e08800; text-align:center; box-shadow:0 1px 0 rgba(0,0,0,.06)
}

/* Spec table: scrollable + sticky head-col (desktop) */
/* ==== fix: sticky TH should be above fade ==== */
.hp-article .table-wrap.is-scrollable .spec-table th{
  z-index: 3;               /* フェード(=2)より前面へ */
}

/* ついでにフェードの z-index を明示しておく（安全策） */
.hp-article .table-wrap.is-scrollable::before,
.hp-article .table-wrap.is-scrollable::after{
  z-index: 2;
}

.hp-article .table-wrap{
  position:relative; max-width:100%; display:block; overflow-x:auto; border:1px solid var(--border);
  border-radius:12px; background:linear-gradient(180deg,#fff,#fbfbfd); -webkit-overflow-scrolling:touch; touch-action:pan-x;
}
.hp-article .table-wrap.is-scrollable::before,
.hp-article .table-wrap.is-scrollable::after{
  content:""; position:absolute; top:0; bottom:0; width:28px; pointer-events:none;
  background:linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); z-index:2;
}
.hp-article .table-wrap.is-scrollable::after{ right:0; transform:scaleX(-1) }

.hp-article table.spec-table{
  table-layout:auto; width:max-content; min-width:880px; border-collapse:separate; border-spacing:0; font-size:.95rem;
}
.hp-article .spec-table th, .hp-article .spec-table td{
  border-bottom:1px solid var(--border); padding:12px 10px; vertical-align:top; white-space:nowrap;
}
.hp-article .spec-table td{ white-space:normal }
.hp-article .spec-table th{
  width:1%; white-space:nowrap; text-align:left; background:#f7f9fe; position:sticky; left:0; z-index:1;
  font-weight:800; color:#334155; border-right:1px solid var(--border);
}
.hp-article .spec-table tr:first-child th{border-top-left-radius:12px}
.hp-article .spec-table tr:last-child  th{border-bottom-left-radius:12px}
.hp-article .spec-table td{background:#fff}

/* Pros/Cons */
.hp-article .proscons .card h3{margin:0 0 8px;font-size:1.04rem}
.hp-article .proscons .card:first-child h3{background:var(--tint-green); display:inline-block; padding:2px 8px; border-radius:8px}
.hp-article .proscons .card:last-child h3{background:var(--tint-red); display:inline-block; padding:2px 8px; border-radius:8px}

/* Responsive */
@media (min-width: 720px){
  .hp-article .proscons{grid-template-columns:1fr 1fr}
  .hp-article .compare{grid-template-columns:1fr 1fr}
  .hp-article .product-card{display:grid; grid-template-columns:180px 1fr; gap:16px}
  .hp-article .btn-amz{width:auto; padding:10px 14px}
  /* このページはSPECを縦積み維持（順序入れ替え） */
  .hp-article #spec .grid{ grid-template-columns:1fr; }
}
@media (max-width: 719px){
  .hp-article .spec-table th{
    position: static; left:auto; width:200px; white-space:normal;
  }
  .hp-article .spec-table tr:first-child th,
  .hp-article .spec-table tr:last-child  th{ border-radius:0; }
}

/* details(展開ボックス) */
.hp-article .spec-details{
  border:1px solid var(--border); border-radius:12px; padding:0; background:#fff;
}
.hp-article .spec-details > summary{
  list-style:none; cursor:pointer; padding:12px 14px; font-weight:700; display:flex; align-items:center; gap:8px;
}
.hp-article .spec-details > summary::-webkit-details-marker{display:none}
.hp-article .spec-summary-icon{display:inline-block; transition:transform .2s ease}
.hp-article .spec-details[open] .spec-summary-icon{ transform:rotate(90deg) }
.hp-article .spec-panel{ padding:12px 14px 14px }
.hp-article .spec-note{ margin-top:8px; color:#8a8f99; font-size:.9rem }

/* Badge container spacing */
.hp-article { margin:0 }  /* もしくは body .hp-article { margin:0 } */


/* ========== おすすめ表（who-table） ========== */
.hp-article .who-legend{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:6px 0 10px; color:#475569; font-size:.92rem;
}
.hp-article .pill{
  display:inline-block; border:1px solid var(--border); border-radius:999px; padding:2px 10px; font-weight:700; font-size:.88rem;
  line-height:1.9;
}
.hp-article .pill.good{ background:var(--tint-green); color:#065f46; border-color:#b7efd4 }
.hp-article .pill.ok{ background:#fffbe6; color:#8a6d1a; border-color:#f3e5ab } /* うすい黄 */
.hp-article .pill.warn{ background:var(--tint-red); color:#7f1d1d; border-color:#f3c2c2 }

.hp-article .who-wrap{ border:1px solid var(--border); border-radius:12px; overflow:hidden; background:#fff }
.hp-article .who-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:.95rem }
.hp-article .who-table th, .hp-article .who-table td{
  padding:12px 10px; border-bottom:1px solid var(--border); vertical-align:top;
}
.hp-article .who-table thead th{
  background:#f7f9fe; color:#334155; font-weight:800; text-align:left;
}
.hp-article .who-table tbody tr:nth-child(even) td{ background:var(--soft) }

/* 列幅（デスクトップ） */
@media (min-width: 720px){
  .hp-article .who-table th.col-what{ width:28% }
  .hp-article .who-table th.col-rate{ width:16% }
  .hp-article .who-table th.col-why{  width:56% }
}

/* モバイル：行カード化（見出しラベルを表示） */
@media (max-width: 719px){
  .hp-article .who-table thead{ display:none }
  .hp-article .who-table, .hp-article .who-table tbody, .hp-article .who-table tr, .hp-article .who-table td{ display:block; width:100% }
  .hp-article .who-table tbody tr{ border-bottom:1px solid var(--border) }
  .hp-article .who-table td{ border:none; border-bottom:1px dashed var(--border) }
  .hp-article .who-table td:last-child{ border-bottom:none }
  .hp-article .who-table td::before{
    content:attr(data-label); display:block; font-size:.82rem; color:#667085; margin-bottom:4px;
  }
}
/* ===== who表：モバイルを省スペース化 ===== */

/* 行自体のパディングを少しだけ詰める */
@media (max-width: 719px){
  .hp-article .who-table td,
  .hp-article .who-table th{ padding:8px 10px }

  /* 1行表示を意識：目的・おすすめ度を横並びワンライン化 */
  .hp-article .who-table tbody tr{
    display:grid; grid-template-columns: 1fr auto; align-items:center; gap:6px;
  }
  .hp-article .who-table td[data-label="理由 / コツ（初心者向けに一言）"]{
    grid-column: 1 / -1; padding-top:2px;
  }

  /* 理由は折りたたみUIに（後述のHTMLに合わせる） */
  .hp-article details.who-why{
    border:0; padding:0; margin:0;
  }
  .hp-article details.who-why > summary{
    list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
    font-size:.9rem; color:#475569; padding:6px 10px; border:1px solid var(--border);
    border-radius:999px; background:#fff; user-select:none;
  }
  .hp-article details.who-why > summary::-webkit-details-marker{ display:none }
  .hp-article details.who-why[open] > summary{ background:#f7f9fe }
  .hp-article details.who-why .why-body{ margin:8px 2px 2px; color:#334155; line-height:1.6 }

  /* ピルをやや小さくして高さ圧縮 */
  .hp-article .pill{ padding:1px 8px; font-size:.82rem; line-height:1.7 }
  /* ラベル色を少し落としてコントラスト確保しつつ軽く */
  .hp-article .who-table td:first-child{ color:#1f2937; font-weight:600 }
}

/* デスクトップでは理由を常時展開（JSでopenを付与するが、念のための見た目調整） */
@media (min-width: 720px){
  .hp-article details.who-why > summary{ display:none }  /* 要約行はPCでは非表示 */
  .hp-article details.who-why .why-body{ margin:0 }      /* 余白を通常化 */
}

/* 凡例の圧縮（モバイル） */
@media (max-width: 719px){
  .hp-article .who-legend{ gap:6px; font-size:.86rem; margin:4px 0 8px }
}
/* ===== who表：スマホの視認性＆圧縮強化 ===== */
@media (max-width: 719px){

  /* テーブル見出しは非表示のまま */
  .hp-article .who-table thead{ display:none }

  /* 各行を“ミニカード”化して区切り明確に */
  .hp-article .who-table tbody tr{
    display:grid;
    grid-template-columns: 1fr auto;        /* 左=目的 右=おすすめ度 */
    grid-template-areas:
      "what rate"
      "why  why";                           /* 2段目に理由（折りたたみ） */
    gap:6px 10px;
    margin:8px 0;
    padding:10px 12px;
    background:linear-gradient(180deg,#fff,#fbfbfd);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow: var(--shadow);
  }

  /* 既存のセル装飾をオフにして高さを詰める */
  .hp-article .who-table td{
    border:0; padding:0; background:transparent;
  }

  /* “目的・シーン / おすすめ度”のラベルを消して行の高さを削減 */
  .hp-article .who-table td::before{ display:none }

  /* セルの配置 */
  .hp-article .who-table td:first-child{        /* 目的・シーン */
    grid-area: what; font-weight:700; color:#1f2937;
  }
  .hp-article .who-table td:nth-child(2){       /* おすすめ度 */
    grid-area: rate; justify-self:end;
  }
  .hp-article .who-table td:nth-child(3){       /* 理由 */
    grid-area: why;
  }

  /* ピルを小さめに（縦寸法ダイエット） */
  .hp-article .pill{ padding:0 8px; font-size:.82rem; line-height:1.6 }

  /* 理由のsummaryを“テキストリンク”化して高さ最小に */
  .hp-article details.who-why{ margin:0; }
  .hp-article details.who-why > summary{
    list-style:none; cursor:pointer; display:inline; padding:0; margin:0;
    border:0; background:none; color:#0a4db3; text-decoration:underline; font-size:.9rem;
  }
  .hp-article details.who-why > summary::-webkit-details-marker{ display:none }
  .hp-article details.who-why[open] > summary{ text-decoration:none }
  .hp-article details.who-why .why-body{ margin-top:6px; line-height:1.6; color:#334155 }
  
  /* 凡例も少し圧縮 */
  .hp-article .who-legend{ gap:6px; font-size:.86rem; margin:4px 0 8px }
}

/* PCでは今まで通り理由は開いたまま（任意：表示一貫性のため） */
@media (min-width: 720px){
  .hp-article details.who-why > summary{ display:none }
  .hp-article details.who-why .why-body{ margin:0 }
}

/* 左右フェードの出し分け（スクロール位置で非表示） */
.hp-article .table-wrap.is-scrollable::before{ opacity: 0; transition: opacity .15s; }
.hp-article .table-wrap.is-scrollable::after { opacity: 0; transition: opacity .15s; }
.hp-article .table-wrap.is-scrollable.show-left::before{  opacity: 1; }
.hp-article .table-wrap.is-scrollable.show-right::after{  opacity: 1; }

/* 基本スペック：外側の .card 枠をなくす（= 枠を1つ減らす） */
.hp-article #spec .grid > .card:first-child{
  border: 0;
  background: transparent;
  padding: 0;        /* 余白も外して表示幅を広げる */
  box-shadow: none;  /* 念のため */
}

/* details 本体はそのままフル幅で */
.hp-article #spec .grid > .card:first-child .spec-details{
  margin: 0;         /* 見た目を詰める */
}

/* === モバイルは左右フェードを無効化（白い縦線対策） === */
@media (max-width: 719px){
  .hp-article .table-wrap{
    background:#fff;                /* 下地は白で統一 */
  }
  .hp-article .table-wrap.is-scrollable::before,
  .hp-article .table-wrap.is-scrollable::after{
    content:none !important;        /* 疑似要素自体を作らない */
    display:none !important;
  }
}


/* ===== Cocoon ヘッダーメニュー（PC）：背景なし＋黒枠＋縦中央 ===== */
@media (min-width: 768px) {
  /* アンカーをFlexにして縦横センター */
  ul.menu-header.menu-pc > li > a {
    display: flex;
    align-items: center;     /* ← 縦中央 */
    justify-content: center; /* ← 横中央（左寄せにしたいなら remove） */
    gap: .4em;
    padding: 10px 14px;
    margin: 0 6px;
    border: 1px solid #8c8c8c;
    border-radius: 8px;
    background: transparent;
    color: #111;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    min-height: 40px;        /* ボタン高さの基準。必要に応じて調整 */
  }

  /* Cocoon側のline-heightや余白の影響を打ち消す */
  ul.menu-header.menu-pc .caption-wrap,
  ul.menu-header.menu-pc .item-label {
    line-height: 1.2;
    margin: 0;
  }

  /* 文字サイズ（お好みで16–18px） */
  ul.menu-header.menu-pc .item-label {
    font-size: 22px;
    font-weight: 400;
  }

  /* ホバー */
  ul.menu-header.menu-pc > li > a:hover {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,.06);
  }

  /* 現在ページは枠を太く */
  ul.menu-header.menu-pc > li.current-menu-item > a,
  ul.menu-header.menu-pc > li.current_page_item > a {
    border-width: 2px;
    font-weight: 700;
  }

  /* フォーカス可視化 */
  ul.menu-header.menu-pc > li > a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
  }
}

/* もしモバイル（.menu-sp）の文字も少し大きくしたい場合は任意で */
@media (max-width: 767.98px) {
  .menu-sp .item-label { font-size: 16px; }
}

/* 文字の下が切れないように余白と行高を確保 */
ul.menu-header.menu-pc > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;          /* 高さの基準。40–48pxで調整可 */
  padding: 10px 16px 12px;   /* 下側を少し多めに（←ココが効きます） */
  overflow: visible;         /* 念のため、はみ出しを許可 */
}

/* テキストの行高を十分に */
ul.menu-header.menu-pc .caption-wrap,
ul.menu-header.menu-pc .item-label {
  line-height: 1.35;         /* 1.3〜1.5で調整。normalでもOK */
  margin: 0;
}

/* もし .caption-wrap に overflow:hidden が当たっていたら無効化 */
ul.menu-header.menu-pc .caption-wrap {
  overflow: visible !important;
}


/* ==========================================================================
   PC 検索ページ CSS（再整理版）
   - 変数で色/余白/角丸を集中管理
   - スマホ/タブレット/PCで責務を分離
   ========================================================================== */

/* ========== トークン（必要に応じて色だけ調整） ========== */
:root {
  --hp-accent: #3b82f6;         /* アクセント（ボタン/強調） */
  --hp-accent-600: #2563eb;     /* ホバー用にやや濃く */
  --hp-accent-50: #eff6ff;      /* 薄い面色（背景） */
  --hp-muted: #6b7280;          /* 補助テキスト */
  --hp-border: #e5e7eb;         /* 境界線 */
  --hp-card-bg: #fff;           /* カード/テーブル背景 */
  --hp-shadow: 0 2px 6px rgba(0,0,0,.05);
  --hp-radius: 12px;            /* 標準角丸 */
  --hp-gap: 16px;               /* グリッド間隔 */
}

/* ==========================================================================
   パンくず
   ========================================================================== */
.hp-breadcrumb { margin: 8px 0 16px; }
.hp-breadcrumb__list {
  display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .9rem;
}
.hp-breadcrumb__list li::after { content: "›"; margin: 0 6px; color: #999; }
.hp-breadcrumb__list li:last-child::after { content: ""; }

/* ==========================================================================
   レイアウト
   ========================================================================== */
.hp-search__inner {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width:1024px){
  .hp-search__inner { grid-template-columns: 320px 1fr; }
}

/* ==========================================================================
   フィルター（検索パネル）
   - PCのみ sticky（重なり対策）
   - 色味を足して可読性UP
   ========================================================================== */
@media (min-width:1024px){
  .hp-search__filters {
    position: sticky; top: 1rem; z-index: 2; align-self: start;
  }
}
@media (max-width:1023.98px){
  .hp-search__filters { position: static; top: auto; z-index: auto; }
}

.hp-filters{
  background:
    linear-gradient(180deg, var(--hp-accent-50, #eff6ff), #fff 120px);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 16px;
  box-shadow: var(--hp-shadow);
}
.hp-filters .fld{ margin-bottom: 16px; }
.hp-filters label{ display:block; font-weight: 700; margin-bottom: 6px; }
.hp-filters .grid-2{ display:grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.hp-filters .mini{ display:block; font-size: .8rem; color: var(--hp-muted); margin-bottom: 4px; }

/* 入力群 */
.hp-filters select,
.hp-filters input[type="number"],
.hp-filters input[type="search"],
.hp-filters input[type="text"]{
  width: 100%; padding: .5rem .6rem; border: 1px solid var(--hp-border);
  border-radius: 8px; background: #fff; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hp-filters select:focus,
.hp-filters input:focus{
  outline: none;
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* ボタン */
.hp-filters .actions{ display:flex; gap: 8px; }
.hp-filters .button{
  display:inline-block; padding:.55rem .9rem; border-radius: 8px;
  background: var(--hp-accent); color: #fff; text-decoration: none; border: none; cursor: pointer;
}
.hp-filters .button:hover{ background: var(--hp-accent-600); }
.hp-filters .button.secondary{
  background: #f3f4f6; color: #111; border: 1px solid var(--hp-border);
}
.hp-filters .button.secondary:hover{ background:#e5e7eb; }

/* 詳細セクション */
.hp-filters details.adv summary{ cursor:pointer; color:#444; }
.hp-filters details.adv[open] summary{ color:#111; }

/* ブラン ドセレクト（idの修正：brand_select） */
#brand_select{ background:#fff; }

/* ==========================================================================
   表示切替（カード / 表）
   ========================================================================== */
.hp-view-toggle{ display:flex; gap:8px; margin:6px 0 12px; }
.hp-view-toggle button{
  padding:.4rem .7rem; border:1px solid var(--hp-border); border-radius:8px; background:#fff; cursor:pointer;
}
.hp-view-toggle button.is-active{
  background: var(--hp-accent-50); border-color: #b9d6ff;
}

/* ==========================================================================
   メタ情報 / 結果エリア
   ========================================================================== */
.hp-search__results .meta{ color: #666; margin-bottom: 8px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.chip{
  background: var(--hp-accent-50); border:1px solid #d8e8ff; border-radius: 999px;
  padding:.15rem .6rem; font-size:.8rem;
}
.chip .x{ cursor:pointer; margin-left:.35rem; }

/* ページャ */
.pager{ display:flex; justify-content:center; margin: 16px 0; }
.pager .button{ min-width: 220px; }

/* ==========================================================================
   カードビュー（縦カード）
   - 全体のフォントサイズをやや小さく
   - タイトル2行、省略
   - CPU/GPUはさらに小さめ
   ========================================================================== */
.grid-cards{
  display:grid; gap: var(--hp-gap); grid-template-columns: 1fr 1fr;
}
@media (min-width:900px){
  .grid-cards{ grid-template-columns: repeat(3, 1fr); }
}
.grid-cards .card{
  background: var(--hp-card-bg); border: 1px solid #ececec;
  border-radius: 14px; padding: 12px; box-shadow: var(--hp-shadow);
  transition: transform .06s ease, box-shadow .1s ease;
  font-size: .92rem;              /* ← 全体を少しだけ小さく */
  line-height: 1.5;
}
.grid-cards .card:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }

/* 画像上 / テキスト下の縦型 */
.grid-cards .card.card-vert{
  display:flex; flex-direction: column; gap: 10px; padding: 12px;
}
.grid-cards .card.card-vert .thumb{
  position:relative; width:100%; aspect-ratio: 16 / 10;
  overflow:hidden; border-radius: 10px; background: #fafafa;
}
.grid-cards .card.card-vert .thumb img{
  width:100%; height:100%; object-fit: cover; display:block;
}
.grid-cards .card.card-vert img{ width:100% !important; height:100% !important; } /* 旧指定の打消し */

/* テキスト部分 */
.grid-cards .card .ttl{ margin: 0 0 4px; font-weight: 800; }
.grid-cards .card .ttl a{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow: hidden;
}
.grid-cards .card .sub{ color:#777; font-size:.85rem; margin-top: 2px; }
.grid-cards .card .kv{
  margin-top: 8px;
  display:grid; grid-template-columns: auto 1fr auto 1fr;
  row-gap: 4px; column-gap: 8px; color: #333;
}
.grid-cards .card .kv .k{ font-size: .76rem; color: #667; }
.grid-cards .card .kv .v{ font-weight: 700; }

/* CPU/GPUはさらに小さめ＆行間を詰める */
.grid-cards .card .kv .v.v-cpu,
.grid-cards .card .kv .v.v-gpu{
  font-size: .82rem;
  line-height: 1.25;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* CTA */
.card .cta{ display:flex; gap:8px; flex-wrap: wrap; margin-top: 8px; }
.card .cta a.cta-article{
  display:inline-block; padding:.5rem .8rem; border-radius:8px;
  background: var(--hp-accent); color:#fff; text-decoration:none;
}
.card .cta a.cta-article:hover{ background: var(--hp-accent-600); }
.card .cta a.cta-buy{
  display:inline-block; padding:.5rem .8rem; border-radius:8px; background:#ff9900; color:#fff; text-decoration:none;
}
.card .cta a.cta-buy:hover{ filter: brightness(0.95); }

/* 旧：横カード用のスタイルは不要になったため省略（top/img幅など） */

/* ==========================================================================
   テーブルビュー
   ========================================================================== */
.hp-table-wrap{ margin-bottom: 12px; }
.hp-table{
  width:100%; border-collapse: separate; border-spacing: 0;
  background: var(--hp-card-bg); border:1px solid #ececec; border-radius: var(--hp-radius); overflow:hidden;
}
.hp-table thead th{
  position: sticky; top: 0; background: #f8fafc; font-weight: 700;
  padding: .6rem .7rem; border-bottom: 1px solid #eaeef3;
}
.hp-table td, .hp-table th{ padding: .55rem .7rem; }
.hp-table tbody tr:nth-child(odd){ background: #fcfdff; }
.hp-table td.num{ text-align: right; }
.hp-table td.title a{ font-weight: 700; }
.hp-table td .brand{ font-size: .8rem; color: #667; }

/* スマホ：行を縦並びに崩す */
@media (max-width: 720px){
  .hp-table{ display: block; }
  .hp-table thead{ display: none; }
  .hp-table tbody{ display: block; }
  .hp-table tbody tr{
    display: block; width: 100%;
    border-bottom:1px solid #eef2f7;
    padding: .6rem .5rem;
  }
  .hp-table tbody td{ display: block; width: 100%; padding: .2rem 0; }
  .hp-table td.num{ text-align: left; }
}

/* ==========================================================================
   共通ユーティリティ / トーン
   ========================================================================== */
.hp-search{ font-variant-numeric: tabular-nums; }

/* ピル（凡例など流用） */
.pill{ display:inline-flex; align-items:center; justify-content:center; border-radius: 999px; padding: .1rem .55rem; font-weight: 700; }
.pill.good{ background:#e7f9ef; color:#167c3a; }
.pill.ok{ background:#fff8e6; color:#a06000; }
.pill.warn{ background:#fdecec; color:#c0392b; }

/* アクセシビリティ：フォーカスリング */
:where(a, button, input, select):focus-visible {
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}


/* 検索ページ内のカードタイトル */
.hp-search .grid-cards .card .ttl{
  font-size: 1.0rem;      /* ←ここをお好みで。例: 0.95rem, 1.05rem など */
  line-height: 1.35;
  margin: 0 0 4px;
}
.hp-search .grid-cards .card .ttl a{
  font-size: inherit;     /* a が別ルールで大きくならないように */
}

/* 縦カード（.card-vert）でも同じにしたい場合は任意で上書き */
.hp-search .grid-cards .card.card-vert .ttl{ font-size: 1.0rem; }
.hp-search .grid-cards .card.card-vert .ttl a{ font-size: inherit; }

/* モバイルだけ更に少し小さく（任意） */
@media (max-width: 720px){
  .hp-search .grid-cards .card .ttl{ font-size: .98rem; }
}

/* ====== モバイル最適化（～720px）====== */
@media (max-width: 720px){
  /* レイアウト間隔を少し詰める */
  .hp-search .grid-cards{ gap: 12px; }
  .hp-search .grid-cards .card{ padding: 10px; border-radius: 12px; }

  /* 画像は少し横長・軽快に */
  .hp-search .grid-cards .card.card-vert .thumb{ aspect-ratio: 16/9; }

  /* タイトル（2行想定） */
  .hp-search .grid-cards .card .ttl{
    font-size: .98rem;   /* ←ご指定ベース */
    line-height: 1.35;
    margin: 0 0 4px;
  }
  .hp-search .grid-cards .card .ttl a{ font-size: inherit; }

  /* 価格や補助テキスト（サブ） */
  .hp-search .grid-cards .card .sub{
    font-size: .86rem;
    line-height: 1.35;
    margin-top: 2px;
  }
  .hp-search .grid-cards .card .sub strong{
    font-size: .92rem;   /* 価格だけ気持ち大きく */
  }

  /* スペックのラベル＆値（CPU/GPUは更に小さめ） */
  .hp-search .grid-cards .card .kv{
    row-gap: 3px; column-gap: 8px;
  }
  .hp-search .grid-cards .card .kv .k{
    font-size: .74rem; color: #68707b;
  }
  .hp-search .grid-cards .card .kv .v{
    font-size: .74rem;  font-weight: 700;
  }
  .hp-search .grid-cards .card .kv .v.v-cpu,
  .hp-search .grid-cards .card .kv .v.v-gpu{
    font-size: .84rem;      /* CPU/GPUは詰める */
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  /* ボタン（タップしやすさは維持） */
  .hp-search .grid-cards .card .cta{ gap: 6px; margin-top: 8px; }
  .hp-search .grid-cards .card .cta a{
    font-size: .9rem; padding: .45rem .7rem; border-radius: 9px;
  }

  /* 絞り込みチップ */
  .hp-search .chips{ gap: 6px; }
  .hp-search .chip{ font-size: .76rem; padding: .12rem .5rem; }

  /* 表ビュー全体の文字サイズも少し縮小 */
  .hp-search .hp-table{ font-size: .92rem; }
  .hp-search .hp-table td, 
  .hp-search .hp-table th{ padding: .5rem .6rem; }

  /* フィルタ（ラベル/入力） */
  .hp-search .hp-filters label{ font-size: .92rem; }
  .hp-search .hp-filters .mini{ font-size: .76rem; }
  .hp-search .hp-filters input,
  .hp-search .hp-filters select{ font-size: .95rem; }

  /* ページャ */
  .hp-search .pager .button{ min-width: 180px; font-size: .95rem; }
}
/* ===== モバイル時の検索結果カードのはみ出し防止 ===== */
@media (max-width: 720px){
  /* グリッド全体を収まるように */
  .hp-search .grid-cards {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* 念のためスクロール防止 */
  }

  /* 各カードも幅制限＆中央寄せ */
  .hp-search .grid-cards .card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* 外側のラッパーにもはみ出し防止を適用 */
  .hp-search__results {
    overflow-x: hidden;
    width: 100%;
  }
}

/* ========== PC Home ========== */
.pc-home{ --gap: 16px; }
.pch-hero{ padding: 16px 0 8px; }
.pch-hero h1{ font-size: clamp(1.5rem, 2.3vw, 2.1rem); margin:0 0 .25rem; }
.pch-hero .muted{ color:#6b7280; margin:0 0 .75rem; }

/* 用途ナビ（横スクロールのピル） */
.pch-scene-nav{ position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.5rem; margin:.5rem 0 1rem; }
.pch-scene-track{ overflow:auto hidden; white-space:nowrap; scroll-behavior:smooth; scrollbar-width:thin; }
.pch-scene-track .pill{
  display:inline-block; margin:.25rem .35rem; padding:.38rem .65rem;
  border:1px solid #e5e7eb; border-radius:999px; background:#fff; color:#374151;
  font-size:.92rem; text-decoration:none;
}
.pch-scene-track .pill:hover{ background:#f9fafb; }
.pch-nav-arrow{ border:1px solid #e5e7eb; background:#fff; border-radius:10px; width:34px; height:34px; font-size:20px; }
.pch-nav-arrow:hover{ background:#f3f4f6; }

/* セクション */
.pch-section{ margin: 24px 0 28px; }
.pch-section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:.5rem; }
.pch-section h2{ font-size: clamp(1.1rem, 2vw, 1.35rem); margin:0; }
.link-more{ font-size:.95rem; color:#2563eb; text-decoration:none; }
.link-more:hover{ text-decoration:underline; }

/* ブランド見出し＋ミニリンク */
.pch-brand-row{ margin: 8px 0 18px; }
.pch-brand-head{ display:flex; align-items:center; justify-content:space-between; margin:6px 0; }
.pch-brand{ font-size:1rem; font-weight:700; margin:0; }
.link-mini{ font-size:.9rem; color:#2563eb; text-decoration:none; }
.link-mini:hover{ text-decoration:underline; }

/* 3カード＝1行グリッド（レスポンシブで2列→1列） */
.pch-grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin:0; padding:0; list-style:none;
}
@media (max-width: 980px){ .pch-grid3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .pch-grid3{ grid-template-columns: 1fr; } }

/* カード */
.pch-card{ background:#fff; border:1px solid #eef1f5; border-radius:14px; overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease; }
.pch-card:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.06); }
.pch-card__link{ display:block; text-decoration:none; color:inherit; height:100%; padding:12px; }

.pch-thumb{ aspect-ratio: 16 / 10; background:#f3f4f6; border-radius:10px; overflow:hidden; }
.pch-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.pch-title{
  font-size: 1rem; line-height: 1.35; margin:8px 2px 4px;
  display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient:vertical; overflow:hidden;
}

.pch-meta{ display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin:2px 2px 0; }
.pch-price{ font-weight:700; color:#1f2937; }
.pch-spec{ color:#6b7280; font-size:.9rem; }

/* 小さめ画面の微調整 */
@media (max-width: 480px){
  .pch-title{ font-size: .98rem; }
  .pch-meta{ gap:4px 10px; }
  .pch-spec{ font-size:.88rem; }
}
/* =========================
   PC Home：スマホ3列の“ミニカード”表示
   ※ 既存PC Home用CSSの末尾に追加
   ========================= */
@media (max-width: 560px){
  /* グリッドを常に3列に（既存の2列/1列ルールを上書き） */
  .pc-home .pch-grid3{
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;                 /* 余白も詰める */
  }

  /* カードをコンパクトに */
  .pc-home .pch-card{
    padding: 8px;
    border-radius: 10px;
  }

  /* サムネをやや低めに（縦長になりすぎないよう調整） */
  .pc-home .pch-thumb{
    aspect-ratio: 4 / 3;      /* 既存の 16/10 → 4/3 にして高さを少し抑える */
    border-radius: 8px;
  }
  .pc-home .pch-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* タイトルとメタ情報を縮小 */
  .pc-home .pch-title{
    font-size: .82rem;        /* 既存より小さく */
    line-height: 1.3;
    margin: 6px 2px 2px;
    -webkit-line-clamp: 2;    /* 2行に収める */
  }
  .pc-home .pch-meta{
    gap: 2px 6px;
    margin-top: 2px;
  }
  .pc-home .pch-price{
    font-size: .85rem;
  }
  .pc-home .pch-spec{
    font-size: .75rem;        /* さらに小さめ */
    color: #6b7280;
  }

  /* セクション内の見出しやリンクもやや小さく */
  .pc-home .pch-section h2{
    font-size: 1rem;
  }
  .pc-home .pch-brand{
    font-size: .95rem;
  }
  .pc-home .link-more,
  .pc-home .link-mini{
    font-size: .85rem;
  }

  /* ヒーローの余白と文字も最適化（任意） */
  .pc-home .pch-hero{
    padding: 10px 0 6px;
  }
  .pc-home .pch-hero h1{
    font-size: 1.2rem;
  }
  .pc-home .pch-hero .muted{
    font-size: .9rem;
  }
}

/* さらに小さい端末（～360px）での微調整（任意） */
@media (max-width: 360px){
  .pc-home .pch-grid3{ gap: 6px; }
  .pc-home .pch-card{ padding: 6px; }
  .pc-home .pch-title{ font-size: .78rem; }
  .pc-home .pch-price{ font-size: .82rem; }
  .pc-home .pch-spec{ font-size: .72rem; }
}

/* ========== PC記事：同ブランド×同タイプのPC一覧 ========== */
.pch-rel { margin: 22px 0 8px; }
.pch-rel .pch-section-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin-bottom: 8px;
}
.pch-rel h2{ font-size: clamp(1.05rem, 2vw, 1.3rem); margin:0; }
.pch-rel .pch-submeta .muted{ color:#6b7280; font-size:.9rem; }

.pch-grid3{
  --gap: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);  /* 常に3列 */
  gap: var(--gap);
  list-style:none; margin:0; padding:0;
}
.pch-card{
  background:#fff; border:1px solid #eef1f5; border-radius:14px;
  overflow:hidden; transition: transform .15s ease, box-shadow .15s ease;
  display:flex; flex-direction:column; gap:8px; padding:10px;
}
.pch-card:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.pch-card-link{ color:inherit; text-decoration:none; display:block; height:100%; }

.pch-thumb{
  aspect-ratio: 16 / 10;
  background:#f3f4f6; border-radius:10px; overflow:hidden;
}
.pch-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.pch-thumb.ph{ display:flex; align-items:center; justify-content:center; color:#9ca3af; font-size:.9rem; }

.pch-title{
  font-size: .98rem; line-height: 1.35; margin: 2px 2px 0;
  display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden;
  font-weight: 700;
}
.pch-sub{
  margin: 2px 2px 4px; color:#6b7280; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center;
  font-size: .9rem;
}
.pch-price{ font-weight:700; color:#111827; }
.pch-model{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

/* モバイル最適化：カード・文字を小さめ、でも3列のまま */
@media (max-width: 720px){
  .pch-grid3{ gap: 10px; }
  .pch-card{ padding: 8px; }
  .pch-title{ font-size: .9rem; }
  .pch-sub{ font-size: .85rem; }
}
/* ========== 同ブランド×同タイプ：もっと見る ========== */
.pch-section-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin-bottom: 6px;
}
.pch-more{
  display:inline-block;
  padding:.4rem .6rem;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  color:#2563eb;
  font-size:.92rem;
  text-decoration:none;
}
.pch-more:hover{ background:#f3f4f6; text-decoration:none; }
/* 見出し右横 → 見出しの直下に */
@media (max-width: 720px){
  .pch-section-head{
    display:flex;
    flex-direction: column;        /* 縦並びに */
    align-items: flex-start;
    gap: 6px;
  }
  .pch-section-head .pch-actions{
    width: 100%;
  }
  .pch-section-head .pch-more{
    display: block;
    width: 100%;                   /* 横いっぱい（押しやすく） */
    text-align: center;
    padding: .5rem .8rem;
    font-size: .9rem;
  }
}

/* === CPU/GPU 複数選択セレクトの見やすさ改善 === */

/* 箱を大きめに・行間ゆったり・スクロールしやすく */
.hp-filters select[multiple]{
  height: 240px;                 /* 見える行数の確保（必要なら 200–320pxで調整） */
  font-size: .92rem;             /* 少しだけ小さくして情報量UP */
  line-height: 1.3;              /* 行間を詰めすぎない */
  padding: .45rem .55rem;
  border-radius: 10px;
  border: 1px solid #d7dce3;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

/* 長い型番でも読めるように（ブラウザ依存、効く所では折り返し） */
.hp-filters select[multiple] option{
  white-space: normal;           /* Chromeでは折り返さない仕様、Firefox等では有効 */
  line-height: 1.35;
  padding: .25rem .25rem;
}

/* 2列配置の左右に余裕を持たせる */
.hp-filters .grid-2{ column-gap: 12px; }

/* 狭い画面では縦並び（横幅不足で潰れるのを防止） */
@media (max-width: 780px){
  .hp-filters .grid-2{
    grid-template-columns: 1fr;  /* 1カラムに */
    row-gap: 10px;
  }
  .hp-filters select[multiple]{ height: 200px; } /* モバイルは少し低めに */
}

/* スクロールバーの視認性（任意・WebKit系） */
.hp-filters select[multiple]::-webkit-scrollbar{ width: 10px; }
.hp-filters select[multiple]::-webkit-scrollbar-thumb{
  background: #cfd6e3; border-radius: 8px;
}
.hp-filters select[multiple]::-webkit-scrollbar-track{ background: #f4f6fb; border-radius: 8px; }
/* === CPU/GPU セレクト：常に縦並び＆小さめ表示 === */

/* 「性能で探す」ブロックの grid を1カラムに（:has で該当ブロックだけ） */
.hp-filters .grid-2:has(#cpu_names),
.hp-filters .grid-2:has(#gpu_names){
  grid-template-columns: 1fr !important; /* 縦積み */
  row-gap: 10px;
}

/* ボックスの見た目（高さ・文字サイズ・行間） */
#cpu_names[multiple],
#gpu_names[multiple]{
  height: 240px;          /* 必要に応じて 200–320px で調整 */
  font-size: .86rem;      /* 少し小さめ */
  line-height: 1.25;
  padding: .4rem .5rem;
  border-radius: 10px;
  border: 1px solid #d7dce3;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

/* 選択肢の行間＆サイズ（折り返しはブラウザ依存） */
#cpu_names[multiple] option,
#gpu_names[multiple] option{
  font-size: .86rem;
  line-height: 1.3;
  white-space: normal;  /* Firefox 等では折り返し、Chromeは1行のまま */
  padding: .2rem .25rem;
}

/* スクロールバー視認性（任意） */
#cpu_names[multiple]::-webkit-scrollbar,
#gpu_names[multiple]::-webkit-scrollbar{ width: 10px; }
#cpu_names[multiple]::-webkit-scrollbar-thumb,
#gpu_names[multiple]::-webkit-scrollbar-thumb{ background:#cfd6e3; border-radius:8px; }
#cpu_names[multiple]::-webkit-scrollbar-track,
#gpu_names[multiple]::-webkit-scrollbar-track{ background:#f4f6fb; border-radius:8px; }

/* ランク注釈 */
.rank-help summary{ cursor:pointer; color:#445; font-size:.92rem; }
.rank-help[open] summary{ color:#111; }
.rank-help__body{ font-size:.9rem; color:#555; padding:.25rem 0 0; }
.rank-help__body ul{ margin:.25rem 0 .5rem 1.1rem; }

/* “常時縦並び”にするユーティリティ（必要ならHTMLに grid-1@md クラスを） */
.grid-1\@md{ display:grid; grid-template-columns:1fr; gap:8px; }

/* 余白バランス */
.pch-brand-row + .pch-brand-row{ margin-top: 16px; }

/* 端数回避（カードのはみ出し防止） */
.pch-card{ box-shadow: 0 1px 0 rgba(0,0,0,.03); }
/* ページャの横並びを安定化 */
.hp-search__results .pager,
.hp-search__results .pager--top{
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: nowrap;          /* 折り返さない（収まらない原因を断つ） */
}

/* ページャ内のボタンはフル幅にしない */
.hp-search__results .pager .button{
  width: auto !important;     /* モバイルの .button{width:100%} を打ち消す */
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 中央のページ表示は縮んでよい・省スペース */
.hp-search__results .pager .page-info{
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;        /* 可能なら1行で保持 */
  font-size: .9em;
}

/* どうしても折り返したい場合の代替（↑の nowrap を消してこちらを有効に）
@media (max-width: 480px){
  .hp-search__results .pager{ flex-wrap: wrap; }
  .hp-search__results .pager .page-info{ flex-basis:100%; order:2; }
  .hp-search__results .pager .button{ width:auto !important; }  /* 折り返してもボタンは等幅のまま */

/* === Pager: modern pill buttons === */
.hp-search__results .pager,
.hp-search__results .pager--top{
  display:flex; align-items:center; gap:.6rem; justify-content:center;
  margin: 18px 0;
}

.hp-search__results .pager .button{
  --btn-bg: linear-gradient(180deg,#3b82f6,#2563eb);
  --btn-bd: #1e55cf;
  --btn-inset: inset 0 1px 0 rgba(255,255,255,.25);
  --btn-shadow: 0 6px 14px rgba(37,99,235,.22);
  --btn-text: #fff;

  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-bd);
  border-radius: 9999px;
  padding: .55rem 1.05rem;
  min-width: 9rem;                 /* だいたい 144px */
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: var(--btn-inset), var(--btn-shadow);
  transform: translateZ(0);        /* ちらつき防止 */
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  width: auto !important;          /* グローバルの width:100% を打消し */
  white-space: nowrap;
}

.hp-search__results .pager .button:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
  box-shadow: var(--btn-inset), 0 10px 22px rgba(37,99,235,.28);
}

.hp-search__results .pager .button:active{
  transform: translateY(0);
  box-shadow: var(--btn-inset), 0 3px 8px rgba(37,99,235,.25);
}

.hp-search__results .pager .button:focus-visible{
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 2px;
}

/* アウトライン版（Prev など） */
.hp-search__results .pager .button.secondary{
  --btn-bg: linear-gradient(180deg,#ffffff,#f8fafc);
  --btn-bd: #cfd6e3;
  --btn-text: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 0 rgba(0,0,0,.02);
}

.hp-search__results .pager .button.secondary:hover{
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 10px rgba(2,6,23,.06);
}

/* ボタン内の矢印をテキストだけで視認性UP（任意） */
#btnPrev::before, #btnPrevTop::before{
  content:"‹"; display:inline-block; margin-right:.35rem; font-size:1.1em; line-height:1;
}
#btnNext::after, #btnNextTop::after{
  content:"›"; display:inline-block; margin-left:.35rem; font-size:1.1em; line-height:1;
}

/* ページ表示は控えめに */
.hp-search__results .pager .page-info{
  font-size:.92rem; color:#64748b; min-width: 6.25rem; text-align:center;
}

/* 極小端末での詰め */
@media (max-width: 380px){
  .hp-search__results .pager .button{ min-width: 7.5rem; padding:.5rem .85rem; }
  .hp-search__results .pager .page-info{ min-width:auto; }
}
/* === Filters: sectionized cards & clearer headings === */
.hp-filters{
  --fld-bg: #ffffff;
  --fld-ring: rgba(59,130,246,.18);
  --fld-bd: #e5e7eb;
  background: linear-gradient(180deg,#eff6ff,#ffffff 120px);
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(2,6,23,.04);
}

/* 各フィールドを“準カード”に */
.hp-filters .fld{
  background: var(--fld-bg);
  border: 1px solid var(--fld-bd);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

/* 見出しピル */
.hp-filters .fld > label{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.18rem .55rem;
  margin-bottom: 8px;
  border:1px solid #d8e8ff;
  border-radius: 999px;
  background: #eef5ff;
  color:#174ea6; font-weight:800; font-size:.9rem;
}

/* 入力UIの統一 */
.hp-filters select,
.hp-filters input[type="number"],
.hp-filters input[type="search"],
.hp-filters input[type="text"]{
  width:100%;
  padding:.55rem .7rem;
  border:1px solid var(--fld-bd);
  border-radius:10px;
  background:#fff;
  font-size:.95rem;
  transition: border-color .15s, box-shadow .15s;
}
.hp-filters select:focus,
.hp-filters input:focus{
  outline:none;
  border-color:#3b82f6;
  box-shadow:0 0 0 4px var(--fld-ring);
}

/* 2カラムの間隔調整 */
.hp-filters .grid-2{ display:grid; gap:10px; grid-template-columns:1fr 1fr; }
@media (max-width: 780px){
  .hp-filters .grid-2{ grid-template-columns:1fr; }
}

/* フィルタボタンを“控えめ強調”に */
.hp-filters .actions{ display:flex; gap:8px; }
.hp-filters .actions .button{
  border-radius: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 10px rgba(0,0,0,.05);
}
.hp-filters .actions .button.secondary{
  background: linear-gradient(180deg,#ffffff,#f8fafc);
}

/* ランク注釈もカード風に */
.rank-help{
  background:#fcfdff;
  border:1px solid #e7edf7;
  border-radius:12px;
  padding:.25rem .6rem .5rem;
}
.rank-help summary{
  cursor:pointer; font-weight:700; color:#334155;
}
.rank-help__body{ font-size:.92rem; color:#475569; }

/* Cards */
.grid-cards .card{
  border:1px solid #e9eef7;
  box-shadow: 0 2px 8px rgba(2,6,23,.04);
}
.grid-cards .card:hover{
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
}

/* Table */
.hp-table{
  border:1px solid #e9eef7;
  box-shadow: 0 2px 8px rgba(2,6,23,.04);
  border-radius: 12px;
}
.hp-table thead th{
  background:#f3f6fb;
}
/* =========================================================
   PC Home：章区切りとPC一覧区切りを強調する読みやすさ改善
   既存CSSの末尾にそのまま追加
   ========================================================= */

/* 1) テーマ色（アクセント色は章ごとにローテーション） */
.pc-home{
  --accent-1: 220 90% 56%;   /* ブルー */
  --accent-2: 160 70% 42%;   /* グリーン */
  --accent-3: 280 75% 56%;   /* パープル */
  --bd: #e8edf5;
  --ink: #0f172a;
  --muted: #64748b;
  --card: #fff;
}

/* 2) 用途セクションの“章カード化”＋色の割当（1 → 2 → 3色で循環） */
.pch-section{
  position: relative;
  padding: 12px 12px 16px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in oklab, hsl(var(--sec-accent) / .10), #fff), #fff 160px);
  box-shadow: 0 4px 20px rgba(2,6,23,.05);
}

/* 左サイドに薄いカラー帯（章の目印） */
.pch-section::before{
  content:"";
  position:absolute; inset: 0 auto 0 0;
  width: 6px; border-radius: 14px 0 0 14px;
  background: hsl(var(--sec-accent));
  opacity: .85;
}

/* h2 見出しを“淡いグラデのピル”に */
.pch-section-head{
  align-items: center;
  margin-bottom: .85rem;
}
.pch-section h2{
  --tag-bg: color-mix(in oklab, hsl(var(--sec-accent) / .16), #fff);
  --tag-bd: color-mix(in oklab, hsl(var(--sec-accent) / .30), #cfe1ff);
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.28rem .6rem;
  border:1px solid var(--tag-bd);
  border-radius: 999px;
  background: var(--tag-bg);
  color: color-mix(in oklab, hsl(var(--sec-accent)), #0b1220);
  font-weight: 800;
}

/* “もっと見る”を右側で視認性UP */
.link-more{
  color: hsl(var(--sec-accent));
  font-weight: 700;
}

/* 章ごとの色ローテーション */
.pch-section:nth-of-type(3n+1){ --sec-accent: var(--accent-1); }
.pch-section:nth-of-type(3n+2){ --sec-accent: var(--accent-2); }
.pch-section:nth-of-type(3n+3){ --sec-accent: var(--accent-3); }

/* 3) ブランド行をブロック分割（見出しと一覧のかたまりをカード化） */
.pch-brand-row{
  border: 1px solid var(--bd);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.pch-brand-row + .pch-brand-row{           /* 同一章内の区切りを明確に */
  margin-top: 14px;
}

/* ブランド見出しの下に細いカラーライン */
.pch-brand-head{
  position: relative;
  padding-bottom: .4rem;
  margin-bottom: .6rem;
}
.pch-brand-head::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background: linear-gradient(90deg, hsl(var(--sec-accent)) 0%, #fff 60%);
  opacity: .55;
}

/* 4) カード間の視認性：グリッドのギャップを章内だけ少し広く */
.pch-section .pch-grid3{ gap: 18px; }

/* 5) 章見出しへスムーズジャンプ（アンカーの被り防止） */
.pch-section{ scroll-margin-top: 90px; }

/* 6) スティッキーな用途ナビ＋両端フェード（横スクロールの導線強化） */
.pch-scene-nav{
  position: sticky; top: 56px; z-index: 5;
  background: linear-gradient(#ffffffcc, #ffffffcc);
  backdrop-filter: blur(6px);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.pch-scene-track{
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.pch-scene-track .pill{
  font-weight: 700;
  border-color: #dbe3f0;
}
.pch-scene-track .pill:focus-visible{
  outline: 3px solid color-mix(in oklab, hsl(var(--accent-1) / .35), #9ec3ff);
  outline-offset: 2px;
}

/* 7) ヒーローの抑えめグラデで導入部のまとまり感アップ */
.pch-hero{
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(1200px 240px at 20% 0%, #e8f1ff 0%, transparent 70%),
    radial-gradient(1200px 240px at 80% 0%, #f0f3ff 0%, transparent 70%),
    #fff;
}

/* 8) Gutenberg「最新の投稿」をカード一覧っぽく（章と馴染ませる） */
.wp-block-latest-posts{
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
}
@media (max-width: 880px){ .wp-block-latest-posts{ grid-template-columns: 1fr; } }

.wp-block-latest-posts__post-date{ color: var(--muted); font-size:.9rem; }
.wp-block-latest-posts__featured-image{
  border-radius: 10px; overflow: hidden; margin: 0 0 .4rem !important;
}
.wp-block-latest-posts li{
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(2,6,23,.04);
}
.wp-block-latest-posts__post-title{
  font-weight: 800; line-height:1.35; margin-bottom:.25rem;
}
.wp-block-latest-posts__post-title:hover{ text-decoration: underline; }

/* 9) PCカードの視認性を“軽く”強化（情報密度は据え置き） */
.pch-card{
  border-color: #e6ebf3;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.pch-card:hover{
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
}
.pch-price{ color:#0b1220; }
.pch-spec{ color: var(--muted); }

/* 10) モバイル時も区切りが消えないよう微調整 */
@media (max-width: 560px){
  .pch-section{ padding: 10px; }
  .pch-brand-row{ padding: 8px; }
  .pch-section .pch-grid3{ gap: 10px; }
  .wp-block-latest-posts{ gap: 10px; }
}

/* 11) キーボード操作のフォーカスリングを統一（アクセシビリティ） */
.pch-card__link:focus-visible,
.pch-nav-arrow:focus-visible,
.pch-scene-track .pill:focus-visible,
.link-more:focus-visible,
.link-mini:focus-visible{
  outline: 3px solid color-mix(in oklab, hsl(var(--sec-accent) / .35), #9ec3ff);
  outline-offset: 2px;
}
/* =========================================================
   追加パッチ
   1) PC画面：PC一覧カード＆画像を少し小さく
   2) スマホ：カード内の「画面サイズ・メモリ」を非表示
   3) スマホ：ヒーロー（ヘッダー冒頭）の枠線・背景を解除
   ========================================================= */

/* --- 1) デスクトップ（PC画面）でカードをやや小さく --- */
@media (min-width: 981px){
  .pc-home{
    --content-max: 800px;               /* グリッドの最大幅（お好みで 1000–1200px 目安） */
  }

  /* グリッド全体を中央寄せ＆最大幅で抑える → 各カード幅が広がりすぎない */
  .pc-home .pch-brand-row{
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }

  /* 画像の占有を少しだけ低く（高さを抑えて“小さく見せる”） */
  .pc-home .pch-thumb{
    aspect-ratio: 16 / 9;                /* 既存 16/10 → 16/9 にして縦を控えめに */
  }

  /* 文字と余白も軽く圧縮（“少し小さく”の範囲で） */
  .pc-home .pch-card__link{ padding: 10px; }
  .pc-home .pch-title{ font-size: .95rem; }
  .pc-home .pch-meta{ gap: 4px 10px; }
  .pc-home .pch-grid3{ gap: 14px; }      /* カード間の余白もほんの少しだけ詰める */
}

/* --- 2) スマホで「画面サイズ・メモリ」表示を消す --- */
@media (max-width: 560px){
  /* .pch-spec が「画面 〇インチ　メモリ 〇GB」を担っているので非表示に */
  .pc-home .pch-spec{
    display: none !important;
  }
}

/* --- 3) スマホ時、ヒーローの枠・背景を解除して自然に --- */
@media (max-width: 560px){
  .pc-home .pch-hero{
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 12px 0 8px;                 /* 余白は控えめに維持 */
  }
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
	.hp-article .subtitle{color:var(--muted); font-size:.6rem; margin:0 0 6px}
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
