/* ===========================================================
   ジッソク — WPブログ風テーマ（Cocoon系レイアウト）
   =========================================================== */
:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --text: #333333;
  --text-mute: #777777;
  --line: #e3e6e8;
  --accent: #1a73e8;
  --accent-dark: #1558b8;
  --header: #2c3e50;
  --warn: #fff8db;
  --warn-line: #e8d98a;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
               Meiryo, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- PR表記（ステマ規制対応・削除しないこと） ---------- */
.pr-bar {
  background: #e9ecef;
  font-size: .75rem;
  color: var(--text-mute);
  text-align: center;
  padding: 5px 16px;
}

/* ---------- ヘッダー（WP風の色帯） ---------- */
.site-header {
  background: var(--header);
  padding: 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: #fff;
}
.logo span { color: #7db9ff; }
.site-desc { color: #b8c4cf; font-size: .72rem; margin: -6px 0 8px; }
.nav { display: flex; gap: 4px; font-size: .85rem; flex-wrap: wrap; }
.nav a {
  color: #e8eef4;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
}
.nav a:hover { background: rgba(255,255,255,.12); }

/* ---------- 2カラムレイアウト ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 24px;
  margin: 24px auto;
  max-width: var(--max);
  padding: 0 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0,1fr); }
}
.layout > main, .layout > .sidebar { min-width: 0; }

/* ---------- カード ---------- */
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
main .box:last-child { margin-bottom: 0; }

/* ---------- 見出し（WP風：背景帯つき） ---------- */
h2 {
  font-size: 1.15rem;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #f2f5f8;
  border-left: 5px solid var(--accent);
  border-radius: 3px;
}
article h2 { margin-top: 34px; }
h3 {
  font-size: 1.02rem;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.lead { color: var(--text-mute); font-size: .92rem; margin: 0 0 16px; }

/* ---------- 記事カード一覧（WPトップの定番） ---------- */
.entry-list { display: flex; flex-direction: column; gap: 14px; }
.entry-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fff;
  transition: box-shadow .15s;
}
.entry-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.thumb {
  flex: 0 0 150px;
  height: 100px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  padding: 8px;
  line-height: 1.4;
}
.thumb.t1 { background: linear-gradient(135deg,#1a73e8,#5c9dff); }
.thumb.t2 { background: linear-gradient(135deg,#e8710a,#ffb45c); }
.thumb.t3 { background: linear-gradient(135deg,#188038,#5bc476); }
.entry-body { min-width: 0; }
.entry-title { font-weight: 700; font-size: 1rem; margin: 0 0 6px; line-height: 1.5; }
.entry-excerpt { font-size: .84rem; color: var(--text-mute); margin: 0 0 6px; }
.entry-meta { font-size: .74rem; color: #999; }
.entry-meta .cat {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 1px 8px;
  margin-right: 8px;
  font-size: .7rem;
}
@media (max-width: 600px) {
  .entry-card { flex-direction: column; }
  .thumb { flex-basis: auto; width: 100%; }
}

/* ---------- サイドバー ---------- */
.sidebar .box { padding: 0; overflow: hidden; }
.widget-title {
  background: var(--header);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: 10px 16px;
  margin: 0;
}
.widget-body { padding: 16px; font-size: .88rem; }
.widget-body ul { margin: 0; padding: 0; list-style: none; }
.widget-body li { border-bottom: 1px dashed var(--line); }
.widget-body li:last-child { border-bottom: none; }
.widget-body li a {
  display: block;
  padding: 9px 2px;
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
  line-height: 1.5;
}
.widget-body li a:hover { color: var(--accent); }
.profile-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg,#2c3e50,#1a73e8);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
  margin: 0 auto 10px;
}
.profile-name { text-align: center; font-weight: 700; margin: 0 0 8px; }
.profile-text { font-size: .82rem; color: var(--text-mute); margin: 0; }

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: .86rem;
}
table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.compare thead th { background: #f2f5f8; font-weight: 600; white-space: nowrap; }
table.compare tbody th { background: #fafbfc; font-weight: 600; }
.rank {
  display: inline-block;
  background: #e8710a;
  color: #fff;
  border-radius: 3px;
  font-size: .7rem;
  padding: 1px 7px;
  margin-right: 6px;
  vertical-align: 2px;
}
.scroll-hint { font-size: .76rem; color: var(--text-mute); margin: 4px 0 0; }

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  background: #e8710a;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: .95rem;
  box-shadow: 0 2px 0 #b55606;
}
.cta:hover { background: #f8821b; }
.cta-note { font-size: .74rem; color: var(--text-mute); margin-top: 8px; }
.cta-box {
  background: #fff7ef;
  border: 1px solid #f5ddc4;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  margin: 22px 0;
}

/* ---------- 差し替え箇所ハイライト（公開前に外す） ---------- */
.todo {
  background: var(--warn);
  border-bottom: 1px dashed var(--warn-line);
  padding: 0 3px;
}

/* ---------- 記事ページ（白カード1カラム） ---------- */
main.wrap {
  display: block;
  max-width: 800px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 24px auto;
}
@media (max-width: 600px) { main.wrap { padding: 20px 16px; } }

/* ---------- 記事本文 ---------- */
article p { margin: 14px 0; }
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
.hero-meta, .entry-info { font-size: .78rem; color: var(--text-mute); }
h1.entry-h1 { font-size: 1.45rem; line-height: 1.5; margin: 0 0 10px; }

.toc {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 20px;
  margin: 20px 0;
}
.toc p { margin: 0 0 6px; font-weight: 700; font-size: .9rem; }
.toc ol { margin: 0; padding-left: 20px; font-size: .86rem; }
.toc a { color: var(--accent); text-decoration: none; }

.pros-cons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 18px 0; }
.pros, .cons { border-radius: 6px; padding: 16px 18px; font-size: .88rem; }
.pros { background: #f0f9f2; border: 1px solid #cfe8d6; }
.cons { background: #fdf3f2; border: 1px solid #f0d4d1; }
.pros h4, .cons h4 { margin: 0 0 8px; font-size: .92rem; }
.pros ul, .cons ul { margin: 0; padding-left: 20px; }

blockquote {
  margin: 18px 0;
  padding: 10px 18px;
  background: #f8f9fa;
  border-left: 4px solid #ccc;
  color: var(--text-mute);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--header);
  margin-top: 40px;
  padding: 28px 0 36px;
  font-size: .82rem;
  color: #b8c4cf;
}
.site-footer .fnav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; justify-content: center; }
.site-footer a { color: #dfe7ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { font-size: .76rem; text-align: center; margin: 0; }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .box { padding: 18px 16px; }
}
