/* =========================================================
   WordPress テーマ化で足した見た目（wp.css）
   試作の main.css・compat-jin.css には無い、WordPress 側の部品だけをここに書く
   ========================================================= */

/* 目次が無い記事・固定ページ：本文を真ん中に */
.article-layout--notoc { grid-template-columns: minmax(0, 720px) 220px; }
.page .article-layout--notoc { grid-template-columns: minmax(0, 720px); }
@media (max-width: 1180px) { .article-layout--notoc { grid-template-columns: minmax(0, 720px); } }

/* 車種タブ（リンク版。試作の button と同じ見た目） */
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 700; }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ブログ内の記事の埋め込み → 関連記事カード（inc/content.php） */
.prose .bt-linkcard-wrap { margin: 1.8em 0; }
.prose .bt-linkcard-wrap + .bt-linkcard-wrap { margin-top: -0.8em; }
.prose .bt-linkcard small, .prose .bt-linkcard b { display: block; }

/* カテゴリ名のタグをリンクにしたとき */
a.tag { text-decoration: none; }

/* 本文へ移動（キーボード操作用） */
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--ink); color: var(--white); z-index: 1000; border-radius: 4px; }

/* 一覧の件数 */
.section-title .count { font-family: var(--font-display); font-size: 15px; letter-spacing: .1em; color: var(--stone); margin-left: 8px; }

/* ページ送り */
.pagination { margin-top: 56px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination .dots { border: 0; background: none; min-width: 20px; padding: 0; }

/* 検索結果・404 の検索欄 */
.search-inline { display: flex; gap: 8px; margin-top: 24px; max-width: 560px; }
.search-inline input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font: inherit; }
.search-inline button { height: 48px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 700; cursor: pointer; }

/* 広告（手動の2か所） */
.ad-slot { margin: 2.4em 0; padding-top: 10px; border-top: 1px solid var(--line); min-height: 280px; }
.ad-slot__label { display: block; font-size: 11px; letter-spacing: .14em; color: var(--stone); text-align: center; margin-bottom: 8px; }

/* ---------- 過去記事の JIN の部品（compat-jin.php が出す HTML） ---------- */
/* 見出し付きの囲み枠 [box02] [box05] など */
.prose .kaisetsu-box { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin: 2em 0; overflow: hidden; }
.prose .kaisetsu-box-title { padding: 10px 20px; background: var(--paper-2); font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); }
.prose .kaisetsu-box5 .kaisetsu-box-title { background: var(--ink); color: var(--white); }
.prose .kaisetsu-box-body { padding: 18px 22px; }
.prose .kaisetsu-box-body > :first-child { margin-top: 0; }
.prose .kaisetsu-box-body > :last-child { margin-bottom: 0; }

/* 星の評価 [jinstar4.5] */
.prose .jin-star { --score: 0; display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.prose .jin-star::before {
  content: "★★★★★"; letter-spacing: 2px; font-size: 18px; line-height: 1;
  background: linear-gradient(90deg, var(--accent) calc(var(--score) / 5 * 100%), var(--line) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose .jin-star__val { font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* 順位 [jin-rank1] */
.prose .jin-rank { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; vertical-align: middle; margin-right: 8px; }
.prose .jin-rank small { font-size: 10px; }
.prose .jin-rank--1 { background: var(--accent); color: var(--accent-ink); }

/* 吹き出し：JIN の線の色の指定は使わない（compat-jin.css の見た目にそろえる） */
.prose .balloon-box { margin: 1.8em 0; }
/* 短いせりふは文字の長さに合わせる（横いっぱいに伸ばさない）。右の吹き出しは右に寄せる */
.prose .balloon-box .balloon-serif { display: flex; min-width: 0; }
.prose .balloon-box.balloon-right .balloon-serif { justify-content: flex-end; }
.prose .balloon-box .balloon-content { width: fit-content; max-width: 100%; }

/* コメント */
.comments { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px; }
.comments__title { font-family: var(--font-display); letter-spacing: .24em; font-weight: 700; color: var(--stone); }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-meta { font-size: 12px; color: var(--stone); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"] { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--white); }
.comment-respond .submit { padding: 12px 28px; border: 0; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 700; cursor: pointer; }
