/*
Theme Name:  ガジェット好きの部屋
Theme URI:   https://gadget.mutsukichi-cooldciel.com/
Description: テレワーカーのためのガジェットレビューブログ専用テーマ。親しみやすく明るいライト基調、ブルーアクセント、モダンゴシック体。
Author:      Sora
Version:     1.0.1
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gadget-room
Tags:        blog, affiliate, japanese, responsive, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   デザインシステム — CSS カスタムプロパティ
   ========================================================= */
:root {
  --accent:      #2a6fdb;
  --accent-dark: #1f57b0;
  --accent-soft: #eaf1fd;
  --accent-ink:  #16407e;

  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;

  --radius:    16px;
  --radius-sm: 10px;

  --bg:        #ffffff;
  --bg-tint:   #f4f6fa;
  --bg-tint2:  #eef1f6;
  --ink:       #1b212c;
  --ink-soft:  #424a59;
  --muted:     #626a78;
  --line:      #e7eaf0;
  --line-soft: #f0f2f7;

  --gold:   #e2a32c;
  --silver: #9aa6b6;
  --bronze: #c8895a;

  --shadow-sm: 0 1px 2px rgba(20,28,46,.05), 0 2px 6px rgba(20,28,46,.05);
  --shadow-md: 0 4px 14px rgba(20,28,46,.08), 0 2px 4px rgba(20,28,46,.04);
  --shadow-lg: 0 14px 40px rgba(20,28,46,.12), 0 4px 10px rgba(20,28,46,.06);

  --maxw: 1160px;
}

/* カテゴリーアクセントカラー */
:root {
  --cat-pc:      #2a6fdb;
  --cat-camera:  #e0603b;
  --cat-watch:   #1f9d74;
  --cat-home:    #8a55e6;
  --cat-battery: #d9a124;
  --cat-charger: #e25b86;
  --cat-tws:     #20a3c2;
}

/* =========================================================
   リセット & ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-tint);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  letter-spacing: .01em;
}
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* =========================================================
   レイアウト
   ========================================================= */
.wrap  { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.shell {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 34px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}
.main { min-width: 0; }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  -webkit-transform: translateZ(0); /* iOS Safari: sticky + overflow:hidden 競合回避 */
  transform: translateZ(0);
}
.hdr-bar {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}
.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  flex: none;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover       { background: var(--accent-soft); color: var(--accent-ink); }
.nav a.current     { background: var(--accent); color: #fff; }
.hdr-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
}
.hdr-search:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 20px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
@media (max-width: 820px) {
  .nav, .hdr-search { display: none; }
  .menu-btn { display: flex; }
  .brand small { display: none; }
  .brand { font-size: 17px; }
}

/* カテゴリーサブバー */
.cat-bar { background: #fff; border-bottom: 1px solid var(--line); width: 100%; }
.cat-bar .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.cat-bar .inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--bg-tint);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: .15s;
}
.cat-chip:hover {
  background: #fff;
  border-color: var(--c, var(--accent));
  color: var(--c, var(--accent));
  box-shadow: var(--shadow-sm);
}
.cat-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }

/* モバイルドロワー */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(20,28,46,.4); }
.drawer .panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(82vw, 320px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.drawer .panel a {
  padding: 13px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
}
.drawer .panel a:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* =========================================================
   プレースホルダー画像
   ========================================================= */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, #e9edf3 0 11px, #eef2f7 11px 22px);
  display: grid;
  place-items: center;
  color: #9aa3b2;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 5px 9px;
  background: rgba(255,255,255,.72);
  border-radius: 6px;
  color: #7b8494;
}
.ph.tinted {
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--c, var(--accent)) 12%, #fff) 0 11px,
    color-mix(in srgb, var(--c, var(--accent))  7%, #fff) 11px 22px
  );
}

/* サムネイル共通 */
.thumb { overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   バッジ / ピル
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .03em;
  padding: 5px 11px;
  border-radius: 7px;
  line-height: 1;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.solid  { background: var(--c, var(--accent)); color: #fff; }
.tag.ghost  { background: color-mix(in srgb, var(--c, var(--accent)) 13%, #fff); color: var(--c, var(--accent)); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.date {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.badge-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-type.review   { background: #eaf6f0; color: #157a55; }
.badge-type.compare  { background: #fdeee9; color: #bf4a25; }
.badge-type.rank     { background: #fdf3e0; color: #a9761a; }
.badge-type.beginner { background: #eef0fd; color: #3b46c4; }

/* =========================================================
   セクション見出し
   ========================================================= */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.sec-head h2 { font-size: 25px; display: flex; align-items: center; gap: 11px; }
.sec-head h2 .ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.sec-head .more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sec-head .more:hover { gap: 9px; }

/* =========================================================
   ボタン
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: .18s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   記事カード（横長リスト）
   ========================================================= */
.card-list { display: flex; flex-direction: column; gap: 16px; }
.acard {
  display: grid;
  grid-template-columns: 248px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .2s;
  will-change: transform;
}
.acard:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.acard .thumb { aspect-ratio: 16/10; }
.acard .body  { padding: 18px 22px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.acard .meta  { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.acard h3 {
  font-size: 18.5px;
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.acard:hover h3 { color: var(--accent-ink); }
.acard .excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.acard .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.acard .foot .auth {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.acard .foot .auth .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 600px) {
  /* カード一覧をネガティブマージンで画面端まで拡張 */
  .card-list {
    margin-left: -20px;
    margin-right: -20px;
    gap: 0;
  }
  /* カード自体を全幅フラットに */
  .acard {
    grid-template-columns: 1fr;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
  }
  .acard:last-child { border-bottom: none; }
  .acard .thumb { aspect-ratio: 16/7; }
  .acard .body { padding: 14px 16px; }
  .acard h3 { font-size: 16.5px; }
  .acard:hover { transform: none; }

  /* もっと読むボタンはシェルの内側に保つ */
  .card-list + div { padding: 0 4px; }
}

/* コンパクトカード（サイドバー用） */
.mini { display: grid; grid-template-columns: 84px 1fr; gap: 13px; align-items: center; min-width: 0; }
.mini .thumb { aspect-ratio: 1/1; border-radius: 11px; overflow: hidden; flex: none; }
.mini > div { min-width: 0; overflow: hidden; }
.mini h4 {
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.mini .date  { font-size: 12px; margin-top: 5px; }
.mini:hover h4 { color: var(--accent-ink); }

/* =========================================================
   サイドバー
   ========================================================= */
.aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 84px; }
@media (max-width: 920px) {
  .aside { position: static; max-width: 100%; overflow: hidden; }
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
.widget > h3 { font-size: 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.widget > h3 .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.widget .stack { display: flex; flex-direction: column; gap: 15px; }
.divider { height: 1px; background: var(--line-soft); margin: 15px 0; }

/* プロフィールウィジェット */
.profile { text-align: center; }
.profile .pic {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 13px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-md);
}
.profile .name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.profile .role { font-size: 12px; color: var(--accent); font-weight: 700; margin: 3px 0 11px; }
.profile p { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0; text-align: left; word-break: break-word; overflow-wrap: break-word; }

/* ランキングウィジェット */
.rank-list { display: flex; flex-direction: column; }
.rank-row {
  display: grid;
  grid-template-columns: 34px 64px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.rank-row h4 { min-width: 0; }
.rank-row:last-child { border-bottom: none; }
.rank-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.rank-row:nth-child(1) .rank-num { color: var(--gold); }
.rank-row:nth-child(2) .rank-num { color: var(--silver); }
.rank-row:nth-child(3) .rank-num { color: var(--bronze); }
.rank-row .thumb { aspect-ratio: 1/1; border-radius: 9px; overflow: hidden; }
.rank-row h4 {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.rank-row:hover h4 { color: var(--accent-ink); }

/* カテゴリーリンクウィジェット */
.cat-links { display: flex; flex-direction: column; gap: 3px; }
.cat-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: .14s;
}
.cat-links a:hover { background: var(--bg-tint); }
.cat-links a .dot { width: 11px; height: 11px; border-radius: 4px; background: var(--c, var(--accent)); flex: none; }
.cat-links a .n {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-tint);
  padding: 2px 9px;
  border-radius: 999px;
}
.cat-links a:hover .n { background: #fff; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: #171c26; color: #c3cad6; width: 100%; overflow-x: hidden; }
.site-footer .inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 54px 20px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  box-sizing: border-box;
}
.site-footer .brand { color: #fff; }
.site-footer .brand .logo { background: var(--accent); }
.site-footer p { font-size: 13px; color: #8c95a6; line-height: 1.8; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.site-footer ul li { margin: 0; }
.site-footer ul a { font-size: 13.5px; color: #aab2c0; transition: color .15s; }
.site-footer ul a:hover { color: #fff; }
.site-footer .copy {
  border-top: 1px solid #2a3140;
  margin-top: 8px;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #6b7482;
}
@media (max-width: 760px) { .site-footer .inner { grid-template-columns: 1fr; gap: 30px; } }

/* =========================================================
   パンくず
   ========================================================= */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: .5; }

/* =========================================================
   ホーム ヒーロー
   ========================================================= */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); border-bottom: 1px solid var(--line); width: 100%; overflow-x: hidden; }
.hero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 40px 20px 44px; box-sizing: border-box; }
.hero-lead { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.hero-lead h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.32; letter-spacing: .01em; }
.hero-lead h1 .hl { color: var(--accent); }
.hero-lead p { font-size: 15px; color: var(--ink-soft); margin: 14px 0 0; max-width: 54ch; }
.hero-stats { display: flex; gap: 26px; }
.hero-stats div { text-align: center; }
.hero-stats b { font-family: var(--font-head); font-weight: 900; font-size: 28px; color: var(--ink); display: block; }
.hero-stats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .hero-lead { grid-template-columns: 1fr; }
  .hero-stats { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  /* ヒーローセクション：PickUpカードを画面端まで拡張 */
  .hero-inner { padding-left: 0; padding-right: 0; }
  .hero-lead { padding-left: 16px; padding-right: 16px; }
  .hero-stats { padding-left: 16px; padding-right: 16px; gap: 20px; }
  .pick-main { border-radius: 0; border-left: none; border-right: none; }
  .pick-side { padding: 0 16px; }
  .pick-sm { border-radius: var(--radius); } /* サイドカードは維持 */
}

/* PickUpグリッド */
.pick { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.pick-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: .2s;
  will-change: transform;
}
.pick-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pick-main .thumb { aspect-ratio: 16/9; }
.pick-main .pm-body { padding: 22px 26px 24px; }
.pick-main h2 { font-size: 23px; line-height: 1.46; margin: 11px 0 10px; }
.pick-main:hover h2 { color: var(--accent-ink); }
.pick-main .ex {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-side { display: flex; flex-direction: column; gap: 18px; }
.pick-sm {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .2s;
  flex: 1;
}
.pick-sm:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pick-sm .thumb { height: 100%; }
.pick-sm .ps-body { padding: 15px 17px; display: flex; flex-direction: column; justify-content: center; }
.pick-sm h3 {
  font-size: 15.5px;
  line-height: 1.5;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-sm:hover h3 { color: var(--accent-ink); }
.pickup-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .06em;
  padding: 6px 13px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pickup-flag.alt { background: #171c26; }
@media (max-width: 760px) {
  .pick { grid-template-columns: 1fr; }
  .pick-sm { grid-template-columns: 120px 1fr; }
}
body.no-feature .feature-hero { display: none; }

/* =========================================================
   人気記事ランキングストリップ
   ========================================================= */
.pop { background: #171c26; color: #fff; width: 100%; overflow-x: hidden; }
.pop-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 40px 20px 46px; box-sizing: border-box; }
.pop-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.pop-head .tt {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.pop-head .tt .em { color: var(--gold); }
.pop-head .sub { font-size: 12.5px; color: #9aa3b2; margin-left: auto; }
.pop-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pop-card {
  background: #1f2531;
  border: 1px solid #2a3140;
  border-radius: 14px;
  overflow: hidden;
  transition: .2s;
  position: relative;
}
.pop-card:hover { transform: translateY(-4px); border-color: #3a4456; }
.pop-card .thumb { aspect-ratio: 16/10; }
.pop-card .pc-body { padding: 13px 14px 16px; }
.pop-card .rkn {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  width: 40px; height: 40px;
  background: var(--gold);
  color: #171c26;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.pop-card .rkn span { transform: translate(-7px, -7px); }
.pop-card:nth-child(2) .rkn { background: var(--silver); }
.pop-card:nth-child(3) .rkn { background: var(--bronze); color: #fff; }
.pop-card:nth-child(n+4) .rkn { background: #3a4456; color: #cdd5e1; }
.pop-card h4 {
  font-size: 13.5px;
  line-height: 1.55;
  color: #eef1f6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pop-card:hover h4 { color: #fff; }
.pop-card .pc-cat { font-size: 12px; color: #8c95a6; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 900px) { .pop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pop-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  /* ランキングセクション：カードを画面端まで */
  .pop-inner { padding-left: 0; padding-right: 0; }
  .pop-head { padding-left: 16px; padding-right: 16px; }
  .pop-grid { gap: 0; }
  .pop-card { border-radius: 0; border-left: none; border-right: none; border-top: none; border-bottom: 1px solid #2a3140; }
  .pop-card:last-child { border-bottom: none; }
  .pop-card .pc-body { padding-left: 16px; padding-right: 16px; }
}

/* =========================================================
   カテゴリー探索グリッド
   ========================================================= */
.cat-explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ce-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  transition: .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ce-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c) 35%, var(--line));
}
.ce-card .ce-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
}
.ce-card .ce-n { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ce-card .ce-c { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 820px) { .cat-explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .cat-explore { gap: 10px; }
  .ce-card { padding: 14px 12px; }
  .ce-card .ce-ic { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; margin-bottom: 5px; }
  .ce-card .ce-n { font-size: 13px; }
  .ce-card .ce-c { font-size: 11px; }
}

/* =========================================================
   ユーティリティ
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  .acard:hover,
  .pick-main:hover,
  .pick-sm:hover,
  .pop-card:hover,
  .rk-card:hover,
  .rel-card:hover,
  .ce-card:hover { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =========================================================
   カードレイアウト切替（Tweaks互換）
   ========================================================= */
body.lay-grid .card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
body.lay-grid .acard { grid-template-columns: 1fr; }
body.lay-grid .acard .thumb { aspect-ratio: 16/9; }
@media (max-width: 680px) { body.lay-grid .card-list { grid-template-columns: 1fr; } }

body.lay-compact .acard { grid-template-columns: 150px 1fr; }
body.lay-compact .acard .body { padding: 13px 16px; }
body.lay-compact .acard h3 { font-size: 16px; -webkit-line-clamp: 2; }
body.lay-compact .acard .excerpt { display: none; }
body.lay-compact .card-list { gap: 11px; }
@media (max-width: 560px) { body.lay-compact .acard { grid-template-columns: 110px 1fr; } }

/* =========================================================
   記事詳細ページ共通レイアウト (single / ranking / comparison)
   ========================================================= */
.art-wrap {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 26px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}
@media (max-width: 920px) { .art-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  /* 記事ページ：記事カードを画面端まで拡張 */
  .art-wrap { padding-left: 0; padding-right: 0; }
  .article { border-radius: 0; border-left: none; border-right: none; }
  /* サイドバーは 16px マージンで浮かせる */
  .aside { padding: 0 16px; }
  /* 関連記事グリッドも内側に */
  .related { padding: 0 16px; }
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 記事ヘッダー */
.art-head { padding: 26px 40px 24px; }
.art-head .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.art-head h1 { font-size: 31px; font-weight: 900; line-height: 1.42; letter-spacing: .005em; }

.art-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.art-byline .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  flex: none;
}
.art-byline .who b { font-family: var(--font-head); font-size: 14.5px; }
.art-byline .who span { display: block; font-size: 12px; color: var(--muted); }
.art-byline .dates { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.7; }

.art-eyecatch { aspect-ratio: 16/9; overflow: hidden; }
.art-eyecatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-body { padding: 14px 40px 40px; }

@media (max-width: 560px) {
  .art-head, .art-body { padding-left: 22px; padding-right: 22px; }
  .art-head h1 { font-size: 22px; }
}

/* アフィリエイト注記 */
.aff-note {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 14px;
  margin: 18px 0;
}

/* =========================================================
   記事本文タイポグラフィ (.prose)
   ========================================================= */
.prose { font-size: 16px; line-height: 2; color: var(--ink-soft); max-width: 70ch; }
.prose h2 {
  font-size: 24px;
  color: var(--ink);
  margin: 42px 0 18px;
  padding: 0 0 12px 16px;
  position: relative;
  border-bottom: 2px solid var(--line);
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 14px;
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
}
.prose h3 {
  font-size: 19px;
  color: var(--ink);
  margin: 30px 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.prose h3::before { content: "●"; color: var(--accent); font-size: 11px; }
.prose p { margin: 0 0 1.3em; }
.prose strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 22%, #fff) 62%);
  padding: 0 1px;
}
.prose .figure { margin: 26px 0; }
.prose .figure .ph { aspect-ratio: 16/9; border-radius: var(--radius-sm); }
.prose .figure figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 9px; }

/* =========================================================
   目次 (.toc)
   ========================================================= */
.toc {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 26px 0;
}
.toc .tt {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.toc .tt .ic {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 3px; }
.toc ol li { counter-increment: toc; }
.toc ol li a {
  display: flex;
  gap: 11px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.toc ol li a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-family: var(--font-head); font-weight: 800; }
.toc ol li a:hover { background: #fff; color: var(--accent-ink); }

/* =========================================================
   評価スコアボックス (.rating)
   ========================================================= */
.rating {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.rating .score { text-align: center; }
.rating .score b { font-family: var(--font-head); font-weight: 900; font-size: 46px; color: var(--accent); line-height: 1; }
.rating .score b small { font-size: 18px; color: var(--muted); font-weight: 700; }
.rating .score .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-top: 6px; }
.rating .bars { display: flex; flex-direction: column; gap: 9px; }
.rbar { display: grid; grid-template-columns: 84px 1fr 34px; gap: 12px; align-items: center; font-size: 12.5px; font-weight: 600; }
.rbar .track { height: 8px; background: #e2e7ef; border-radius: 99px; overflow: hidden; }
.rbar .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.rbar .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rating { grid-template-columns: 1fr; gap: 18px; } }

/* =========================================================
   良かった点 / 気になった点 (.pc-grid)
   ========================================================= */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.pc-box { border-radius: var(--radius-sm); padding: 20px 22px; border: 1px solid; }
.pc-box.pro { background: #edf7f1; border-color: #bfe4cf; }
.pc-box.con { background: #fdeeee; border-color: #f3cccc; }
.pc-box h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pc-box.pro h4 { color: #177a4e; }
.pc-box.con h4 { color: #bf3d3d; }
.pc-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pc-box li {
  font-size: 13.5px;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
  color: var(--ink-soft);
}
.pc-box.pro li::before { content: "✓"; position: absolute; left: 0; color: #1f9d74; font-weight: 800; }
.pc-box.con li::before { content: "−"; position: absolute; left: 2px; color: #d35454; font-weight: 800; }
@media (max-width: 560px) { .pc-grid { grid-template-columns: 1fr; } }

/* =========================================================
   商品CTAボックス (.product)
   ========================================================= */
.product { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 30px 0; box-shadow: var(--shadow-sm); }
.product .ptop {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px 24px;
  align-items: center;
}
.product .ptop .thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }
.product .pname { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.product .pdesc { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.product .pmeta { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.product .pmeta span { font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); padding: 4px 10px; border-radius: 7px; }
.product .pcta { display: flex; gap: 10px; padding: 0 24px 22px; flex-wrap: wrap; }
.product .pcta .btn { flex: 1; min-width: 160px; }
@media (max-width: 560px) { .product .ptop { grid-template-columns: 110px 1fr; padding: 16px; } }

/* Amazon / 楽天ボタン */
.shop-a { background: #ff9900; color: #1b212c; }
.shop-a:hover { background: #f08c00; }
.shop-r { background: #bf0000; color: #fff; }
.shop-r:hover { background: #a30000; }

/* =========================================================
   著者カード (.author-card)
   ========================================================= */
.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 38px;
  align-items: center;
}
.author-card .pic {
  width: 74px; height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.author-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.author-card .who b { font-family: var(--font-head); font-size: 16px; }
.author-card .who .role { font-size: 12px; color: var(--accent); font-weight: 700; margin: 2px 0 7px; }
.author-card .who p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.7; }
@media (max-width: 480px) { .author-card { grid-template-columns: 1fr; text-align: center; } .author-card .pic { margin: 0 auto; } }

/* =========================================================
   関連記事 (.related)
   ========================================================= */
.related { margin-top: 46px; }
.related .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: .2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rel-card .thumb { aspect-ratio: 16/10; }
.rel-card .rb { padding: 13px 15px 16px; }
.rel-card h4 {
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 680px) { .related .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .related .grid { grid-template-columns: 1fr; } }

/* =========================================================
   ランキングページ
   ========================================================= */
/* ヒーローバナー */
.rk-hero {
  background: #171c26;
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 38px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.rk-hero::before {
  content: "RANKING";
  position: absolute; right: -10px; bottom: -26px;
  font-family: var(--font-head); font-weight: 900;
  font-size: 120px; color: rgba(255,255,255,.04); letter-spacing: -2px;
}
.rk-hero .meta { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.rk-hero .badge-type.rank { background: var(--gold); color: #5c4410; }
.rk-hero h1 { font-size: 30px; font-weight: 900; line-height: 1.42; position: relative; z-index: 1; }
.rk-hero p { font-size: 13.5px; color: #aab2c0; margin: 14px 0 0; max-width: 60ch; position: relative; z-index: 1; }
.rk-hero .upd { font-size: 12px; color: #7b8494; margin-top: 14px; position: relative; z-index: 1; }
@media (max-width: 560px) { .rk-hero { padding: 24px 20px; } .rk-hero h1 { font-size: 23px; } }

/* ランキングジャンプナビ */
.rk-jump {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 26px;
}
.rk-jump .tt { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.rk-jump .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rk-jump a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-tint);
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft);
}
.rk-jump a b { color: var(--accent); font-family: var(--font-head); }
.rk-jump a:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ランキングカードリスト */
.rk-list { display: flex; flex-direction: column; gap: 22px; }
.rk-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .2s;
}
.rk-card:hover { box-shadow: var(--shadow-md); }
.rk-card:nth-child(-n+3) { border-width: 2px; }
.rk-card:nth-child(1) { border-color: var(--gold); }
.rk-card:nth-child(2) { border-color: var(--silver); }
.rk-card:nth-child(3) { border-color: var(--bronze); }

.rk-top { display: grid; grid-template-columns: auto 220px 1fr; gap: 22px; padding: 22px 24px; align-items: start; }
.rk-num {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; font-size: 32px;
  color: #fff;
  background: var(--muted);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}
.rk-card:nth-child(1) .rk-num { background: linear-gradient(160deg, #f6cf6b, #d99a1e); }
.rk-card:nth-child(2) .rk-num { background: linear-gradient(160deg, #cfd8e3, #94a1b2); }
.rk-card:nth-child(3) .rk-num { background: linear-gradient(160deg, #e0a878, #bd7740); }
.rk-card:nth-child(n+4) .rk-num { background: var(--bg-tint2); color: var(--muted); }

.rk-thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.rk-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rk-info .badge-medal {
  font-size: 11px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
  display: inline-block; margin-bottom: 9px;
}
.rk-card:nth-child(1) .badge-medal { background: #fdf3e0; color: #a9761a; }
.rk-card:nth-child(2) .badge-medal { background: #eef1f6; color: #67748a; }
.rk-card:nth-child(3) .badge-medal { background: #f7ece3; color: #a6692f; }
.rk-card:nth-child(n+4) .badge-medal { background: var(--bg-tint); color: var(--muted); }
.rk-info h2 { font-size: 21px; line-height: 1.4; margin-bottom: 6px; }
.rk-info .brand { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rk-info .stars { color: var(--gold); letter-spacing: 1px; font-size: 15px; margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.rk-info .stars b { font-family: var(--font-head); color: var(--ink); }
.rk-info p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; margin: 12px 0 0; }

/* スペックチップス */
.rk-specs { display: flex; gap: 8px; padding: 0 24px 18px; flex-wrap: wrap; }
.rk-specs .sp {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px; min-width: 96px;
}
.rk-specs .sp span { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.rk-specs .sp b { font-family: var(--font-head); font-size: 14px; }

.rk-foot { display: flex; gap: 10px; padding: 0 24px 22px; align-items: center; flex-wrap: wrap; }
.rk-foot .btn { padding: 11px 22px; }
.rk-foot .detail { font-size: 13px; font-weight: 700; color: var(--accent); margin-left: auto; }
.rk-foot .detail:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .rk-top { grid-template-columns: auto 1fr; }
  .rk-thumb { grid-column: 1 / -1; order: 3; aspect-ratio: 16/9; }
  .rk-num { width: 52px; height: 52px; font-size: 25px; }
}
@media (max-width: 420px) {
  .rk-specs .sp { min-width: 80px; }
  .rk-foot { padding: 0 16px 18px; }
}

/* =========================================================
   比較記事ページ
   ========================================================= */
/* VSヒーロー */
.vs-hero {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
  margin: 8px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.vs-side { padding: 24px; text-align: center; }
.vs-side .thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.vs-side .pn { font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.4; }
.vs-side .pp { font-size: 12px; color: var(--muted); margin-top: 5px; }
.vs-side .win {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 11px; font-size: 11.5px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
  background: var(--gold); color: #5c4410;
}
.vs-mid {
  display: grid; place-items: center;
  background: #171c26; color: #fff;
  font-family: var(--font-head); font-weight: 900; font-size: 20px;
}
@media (max-width: 620px) {
  .vs-hero { grid-template-columns: 1fr; }
  .vs-mid { padding: 8px; }
}

/* 比較テーブル */
.cmp-wrap { margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.cmp thead th { background: var(--bg-tint); font-family: var(--font-head); position: sticky; top: 0; }
.cmp thead th:first-child { text-align: left; }
.cmp tbody th {
  text-align: left; font-weight: 700; color: var(--ink);
  background: #fff; font-family: var(--font-head); font-size: 13px; width: 34%;
}
.cmp tbody tr:nth-child(even) th,
.cmp tbody tr:nth-child(even) td { background: var(--line-soft); }
.cmp td.best {
  background: color-mix(in srgb, var(--accent) 10%, #fff) !important;
  font-weight: 700; color: var(--accent-ink); position: relative;
}
.cmp td.best::after { content: "◎"; margin-left: 6px; color: var(--accent); }
.cmp .stars { color: var(--gold); letter-spacing: 1px; }
.cmp tfoot td { background: var(--bg-tint); }
.cmp tfoot .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 620px) { .cmp { font-size: 12px; } .cmp th, .cmp td { padding: 10px 8px; } }

/* 最終評決 */
.verdict {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
}
.verdict .vt { font-family: var(--font-head); font-weight: 900; font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.verdict p { font-size: 14px; line-height: 1.85; margin: 0 0 .9em; color: rgba(255,255,255,.94); }
.verdict .picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.verdict .pick { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 16px 18px; }
.verdict .pick b { font-size: 13.5px; display: block; margin-bottom: 5px; }
.verdict .pick span { font-size: 12.5px; color: rgba(255,255,255,.86); line-height: 1.7; }
@media (max-width: 560px) { .verdict { padding: 22px 20px; } .verdict .picks { grid-template-columns: 1fr; } }

/* =========================================================
   カテゴリーページ
   ========================================================= */
.cat-hero { border-bottom: 1px solid var(--line); }
.cat-hero .inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 34px; }
.cat-hero .ch-top { display: flex; align-items: center; gap: 18px; }
.cat-hero .ic {
  width: 70px; height: 70px;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 34px;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, #fff);
  color: var(--c, var(--accent));
  box-shadow: var(--shadow-sm);
  flex: none;
}
.cat-hero h1 { font-size: 32px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.cat-hero .cnt { font-size: 13px; color: var(--c, var(--accent)); font-weight: 700; background: color-mix(in srgb, var(--c, var(--accent)) 12%, #fff); padding: 4px 12px; border-radius: 999px; }
.cat-hero p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; max-width: 64ch; }
@media (max-width: 560px) { .cat-hero h1 { font-size: 24px; } .cat-hero .ic { width: 54px; height: 54px; font-size: 26px; border-radius: 14px; } }

/* サブタブ */
.subtabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.subtab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: .15s;
  cursor: pointer;
}
.subtab.on { background: var(--c, var(--accent)); color: #fff; border-color: var(--c, var(--accent)); }
.subtab:hover:not(.on) { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); }

/* ツールバー */
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.list-tools .cnt { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.list-tools .sort { display: flex; gap: 6px; background: var(--bg-tint2); padding: 4px; border-radius: 10px; }
.list-tools .sort button {
  border: none; background: none;
  padding: 7px 14px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  font-family: var(--font-head);
}
.list-tools .sort button.on { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }

/* =========================================================
   ページネーション
   ========================================================= */
.pager,
.wp-pagenavi,
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pager a, .pager span,
.wp-pagenavi a, .wp-pagenavi span,
.navigation.pagination .page-numbers {
  min-width: 42px; height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
}
.pager a:hover,
.wp-pagenavi a:hover,
.navigation.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .on, .pager span.current,
.wp-pagenavi .current,
.navigation.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .dots,
.wp-pagenavi .extend,
.navigation.pagination .page-numbers.dots { border: none; background: none; }

/* =========================================================
   WordPress 検索フォーム
   ========================================================= */
.search-form { display: flex; gap: 0; }
.search-form .search-field {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font: inherit; font-size: 14px;
  color: var(--ink);
  background: var(--bg-tint);
  outline: none;
}
.search-form .search-field:focus { border-color: var(--accent); background: #fff; }
.search-form .search-submit {
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* ドロワー内検索フォーム */
.drawer .search-form .search-field { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* =========================================================
   モバイル極小画面 (max-width: 380px) 追加調整
   ========================================================= */
@media (max-width: 380px) {
  .hero-stats { gap: 16px; }
  .hero-stats b { font-size: 22px; }
  .pick-sm { grid-template-columns: 100px 1fr; }
  .pop-head { flex-direction: column; align-items: flex-start; }
  .pop-head .sub { margin-left: 0; }
  .hdr-bar { gap: 8px; }
  .brand { font-size: 15px; }
  .brand .logo { width: 30px; height: 30px; font-size: 15px; }
}

/* =========================================================
   WordPress デフォルトウィジェット スタイル
   ========================================================= */

/* ウィジェットタイトル共通 */
.widget_search h2,
.widget_recent_entries h2,
.widget_recent_comments h2,
.widget_categories h2,
.widget_tag_cloud h2,
.widget_text h2,
.widget_archive h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--ink);
}

/* 検索ウィジェット */
.widget_search .search-form {
  display: flex;
  gap: 0;
  width: 100%;
}
.widget_search .search-field {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-tint);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.widget_search .search-field:focus { border-color: var(--accent); background: #fff; }
.widget_search .search-submit {
  flex: none;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.widget_search .search-submit:hover { background: var(--accent-dark); }

/* Recent Posts / アーカイブ / カテゴリー共通リスト */
.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_categories ul,
.widget_archive ul,
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.widget_recent_entries ul li,
.widget_recent_comments ul li,
.widget_categories ul li,
.widget_archive ul li,
.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.6;
  min-width: 0;
  overflow: hidden;
}
.widget_recent_entries ul li:last-child,
.widget_recent_comments ul li:last-child,
.widget_categories ul li:last-child,
.widget_archive ul li:last-child,
.widget ul li:last-child { border-bottom: none; }

.widget_recent_entries ul li a,
.widget_recent_comments ul li a,
.widget_categories ul li a,
.widget_archive ul li a,
.widget ul li a {
  color: var(--ink-soft);
  font-weight: 600;
  display: block;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.widget_recent_entries ul li a:hover,
.widget_recent_comments ul li a:hover,
.widget ul li a:hover { color: var(--accent-ink); }

/* Recent Comments のコメント本文 */
.widget_recent_comments ul li { overflow-wrap: break-word; word-break: break-word; }

/* テキストウィジェット */
.widget_text .textwidget,
.widget_text p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* タグクラウド */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.widget_tag_cloud .tagcloud a {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.widget_tag_cloud .tagcloud a:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }

/* =========================================================
   WordPress ブロックウィジェット (Gutenberg) スタイル
   ========================================================= */

/* 共通: ブロックウィジェットのコンテナ */
.wp-block-widget-area,
.widget_block {
  overflow: hidden;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ブロック版 検索 */
.wp-block-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}
.wp-block-search__inside-wrapper {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font: inherit;
  font-size: 14px;
  background: var(--bg-tint);
  color: var(--ink);
  box-sizing: border-box;
}
.wp-block-search__button {
  flex: none;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

/* ブロック版 最新投稿 */
.wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
}
.wp-block-latest-posts li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  min-width: 0;
}
.wp-block-latest-posts li:last-child { border-bottom: none; }
.wp-block-latest-posts li a {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
}
.wp-block-latest-posts li a:hover { color: var(--accent-ink); }

/* ブロック版 最新コメント */
.wp-block-latest-comments {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}
.wp-block-latest-comments__comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.wp-block-latest-comments__comment:last-child { border-bottom: none; }
.wp-block-latest-comments__comment a { color: var(--ink-soft); }
.wp-block-latest-comments__comment a:hover { color: var(--accent-ink); }
.wp-block-latest-comments__comment-excerpt p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================================================
   WordPress コアスタイルのリセット調整
   ========================================================= */
.wp-caption { margin: 0; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.alignnone, .alignleft, .alignright { margin: 1em 0; }
.aligncenter { display: block; margin: 1em auto; }
@media (min-width: 560px) {
  .alignleft  { float: left;  margin: .5em 1.5em .5em 0; }
  .alignright { float: right; margin: .5em 0 .5em 1.5em; }
}

/* スクリーンリーダーテキスト（WP標準） */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.screen-reader-text:focus {
  clip: auto; height: auto; left: 6px; top: 6px;
  width: auto; z-index: 100000;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 20px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}


/* Grid item が表のmin-content幅に引っ張られて膨らむのを防ぐ */
.art-wrap > main { min-width: 0; }

/* =========================================================
   記事本文テーブルのモバイル対応
   （横スクロール化・1〜2文字折り返しの防止）
   ========================================================= */
@media (max-width: 680px) {
  .prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prose table th,
  .prose table td {
    min-width: 8em;
  }
  /* 順位・項目名などの先頭列は狭くてよい */
  .prose table th:first-child,
  .prose table td:first-child {
    min-width: 3.5em;
  }
}


/* =========================================================
   表の横スクロール対応をPC含む全幅に拡大
   （8列級の比較表がPCでも本文カラムからはみ出すため）
   ========================================================= */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table th,
.prose table td {
  min-width: 8em;
}
.prose table th:first-child,
.prose table td:first-child {
  min-width: 3.5em;
}
