/* =========================================================
   ガジェットくらべ帳 スタイル
   ========================================================= */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1b2233;
  --muted: #5b6478;
  --line: #e2e6ef;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --accent-soft: #eaf1ff;
  --good: #16a34a;
  --warn: #d97706;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 6px 24px rgba(20, 30, 60, .06);
  --shadow-hover: 0 2px 4px rgba(20, 30, 60, .06), 0 14px 36px rgba(20, 30, 60, .12);
  --max: 1080px;
  --article: 780px;

  /* カテゴリの色（記事一覧のサムネイルとタグ） */
  --c-power: linear-gradient(135deg, #f59e0b, #f97316);
  --c-audio: linear-gradient(135deg, #8b5cf6, #ec4899);
  --c-pc: linear-gradient(135deg, #2563eb, #06b6d4);
  --c-net: linear-gradient(135deg, #10b981, #0ea5e9);
  --c-phone: linear-gradient(135deg, #6366f1, #3b82f6);
  --c-other: linear-gradient(135deg, #64748b, #94a3b8);
}

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

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

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .04em;
}
.logo::before {
  content: "";
  margin-right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6M8 8h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2z'/%3E%3Cpath d='M12 11l-2 3h4l-2 3'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  margin-left: 18px;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover { color: var(--accent); }

/* ---------- 共通レイアウト ---------- */
main {
  max-width: var(--article);
  margin: 0 auto;
  padding: 28px 16px 64px;
}
main.home { max-width: var(--max); padding-top: 0; }

/* ---------- トップページ：ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin: 24px 0 36px;
  padding: 48px 36px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .22), transparent 40%),
    radial-gradient(circle at 10% 110%, rgba(6, 182, 212, .55), transparent 45%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #06b6d4 100%);
  box-shadow: 0 20px 50px rgba(37, 99, 235, .25);
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.4;
  margin: 0 0 12px;
  max-width: 640px;
}
.hero p { margin: 0; opacity: .92; max-width: 560px; }
.hero .points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.hero .points li {
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #1e3a8a;
}
.hero .points li::before { content: "✓ "; color: var(--good); font-weight: 800; }

/* ---------- セクション見出し（トップ） ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.3rem;
  margin: 40px 0 16px;
}
.section-title small { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .1em; }

/* ---------- カテゴリ ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.categories li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: .95rem;
}
.categories li small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.cat-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

/* ---------- 記事一覧（カード） ---------- */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-list li a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-list li a:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* サムネイル：li の data-cat でカテゴリの色とアイコンが変わる */
.post-list li a::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 8;
  background-color: #64748b;
}
.post-list .title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 18px;
  margin-top: 6px;
}
.post-list .desc {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.7;
  padding: 8px 18px 20px;
}
.post-list .tag {
  align-self: flex-start;
  margin: 16px 18px 0;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-other);
}

/* カテゴリ別の色とアイコン */
[data-cat="power"] .tag, [data-cat="power"] .cat-icon, [data-cat="power"] a::before { background: var(--c-power); }
[data-cat="audio"] .tag, [data-cat="audio"] .cat-icon, [data-cat="audio"] a::before { background: var(--c-audio); }
[data-cat="pc"] .tag, [data-cat="pc"] .cat-icon, [data-cat="pc"] a::before { background: var(--c-pc); }
[data-cat="net"] .tag, [data-cat="net"] .cat-icon, [data-cat="net"] a::before { background: var(--c-net); }
[data-cat="phone"] .tag, [data-cat="phone"] .cat-icon, [data-cat="phone"] a::before { background: var(--c-phone); }

.post-list li[data-cat] a::before,
.categories li[data-cat] .cat-icon {
  background-repeat: no-repeat;
  background-position: center;
}

/* アイコン（白い線画）を背景に重ねる */
[data-cat="power"] a::before, [data-cat="power"] .cat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"), var(--c-power);
}
[data-cat="audio"] a::before, [data-cat="audio"] .cat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z'/%3E%3C/svg%3E"), var(--c-audio);
}
[data-cat="pc"] a::before, [data-cat="pc"] .cat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"), var(--c-pc);
}
[data-cat="net"] a::before, [data-cat="net"] .cat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5a10 10 0 0 1 14 0M1.5 9a15 15 0 0 1 21 0M8.5 16a5 5 0 0 1 7 0M12 20h.01'/%3E%3C/svg%3E"), var(--c-net);
}
[data-cat="phone"] a::before, [data-cat="phone"] .cat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"), var(--c-phone);
}
.post-list li[data-cat] a::before { background-size: 64px, cover; }
.categories li[data-cat] .cat-icon { background-size: 24px, cover; }

/* ---------- サイトの特徴（トップ） ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.features div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.features b { display: block; font-size: 1rem; margin-bottom: 6px; }
.features b::before {
  content: attr(data-num);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 8px;
  color: #fff;
  font-size: .8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.features p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }

/* ---------- 記事ページ ---------- */
.pr-label {
  display: inline-block;
  font-size: .76rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 40px 48px;
  box-shadow: var(--shadow);
}

article h1 {
  font-size: 1.75rem;
  line-height: 1.5;
  margin: 0 0 10px;
}
.meta { color: var(--muted); font-size: .82rem; margin-bottom: 22px; }

article h2 {
  position: relative;
  font-size: 1.32rem;
  line-height: 1.5;
  margin: 52px 0 18px;
  padding: 14px 18px 14px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-soft), rgba(234, 241, 255, 0));
}
article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
article h3 {
  font-size: 1.08rem;
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--line);
}

article ul, article ol { padding-left: 1.4em; }
article li { margin: 4px 0; }
article strong { background: linear-gradient(transparent 62%, #fff3a3 62%); }

.summary {
  position: relative;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 20px 22px 18px;
  margin: 24px 0;
}
.summary > strong {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .85rem;
  color: #fff;
  padding: 2px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.summary ul { margin: 0; padding-left: 0; list-style: none; }
.summary li { position: relative; padding-left: 1.6em; margin: 6px 0; }
.summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.toc {
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .94rem;
}
.toc > strong { font-size: .95rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.note {
  border: 1px solid #fde4b8;
  background: #fffaf0;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  margin: 18px 0;
  font-size: .93rem;
  position: relative;
}
.note::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  line-height: 20px;
  text-align: center;
}

/* 比較表（スマホでは横スクロール） */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: .9rem;
  background: var(--card);
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
thead th {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
}
tbody th { background: #f5f8ff; white-space: nowrap; color: #1e3a8a; }
tbody tr:nth-child(even) td { background: #fbfcff; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* 商品カード */
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.product h3 { margin-top: 0; border-bottom: none; }
.product .pros, .product .cons { margin: 8px 0; padding-left: 1.4em; }
.product .pros li::marker { content: "○ "; color: var(--good); }
.product .cons li::marker { content: "△ "; color: var(--warn); }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn {
  flex: 1 1 180px;
  text-align: center;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amazon { background: linear-gradient(135deg, #f59e0b, #e47911); }
.btn-rakuten { background: linear-gradient(135deg, #e11d48, #bf0000); }

/* ---------- フッター ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: .85rem;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px;
}
.site-footer a { color: #cbd5e1; margin-right: 18px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 14px 0 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 34px 22px; border-radius: 18px; }
  .hero h1 { font-size: 1.5rem; }
  .post-list { grid-template-columns: 1fr; }
  article { padding: 26px 18px 32px; border-radius: 16px; }
  article h1 { font-size: 1.35rem; }
  article h2 { font-size: 1.15rem; }
  .site-nav a { margin-left: 12px; }
}

/* ---------- このサイトについて（トップ） ---------- */
.about-box {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.about-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.about-box p { margin: 0 0 10px; color: #374151; font-size: .95rem; }
.about-box p:last-child { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

/* ---------- ショップで探す（楽天など） ---------- */
.shop-box {
  margin: 36px 0;
  padding: 22px 22px 20px;
  border-radius: 16px;
  border: 1px solid #f3d0d7;
  background: linear-gradient(135deg, #fff5f7, #fffaf5);
}
.shop-box .shop-title { margin: 0 0 4px; font-weight: 800; font-size: 1.02rem; }
.shop-box .shop-note { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.shop-box .buttons { margin-top: 0; }

/* ---------- セールのお知らせ（トップ） ---------- */
.sale-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -12px 0 8px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.sale-banner:hover { background: #1f2937; }
.sale-label {
  flex: none;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
}
.sale-text { flex: 1; font-weight: 700; font-size: .95rem; line-height: 1.6; }
.sale-arrow { flex: none; font-weight: 800; }

/* ===== プレゼントのくらべ帳 の色 ===== */
:root { --accent: #9f1239; --accent-2: #e11d48; --accent-soft: #f4f4f5; }
.logo::before { background: linear-gradient(135deg, #9f1239, #e11d48); }
.hero { background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.22), transparent 40%), linear-gradient(135deg, #9f1239 0%, #e11d48 60%, #f59e0b 100%); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.hero::after { display: none; }
thead th { background: linear-gradient(135deg, #9f1239, #e11d48); }
tbody th { color: #9f1239; background: #fafafa; }
.summary { background: #fafafa; border-color: #e5e7eb; }
.summary > strong { background: linear-gradient(135deg, #9f1239, #e11d48); }
article h2 { background: linear-gradient(90deg, #f4f4f5, rgba(244,244,245,0)); }
article h2::before { background: linear-gradient(180deg, #9f1239, #e11d48); }
.features b::before { background: linear-gradient(135deg, #9f1239, #e11d48); }
[data-cat="kids"] .tag, [data-cat="kids"] .cat-icon, .post-list li[data-cat="kids"] a::before { background: linear-gradient(135deg, #e11d48, #f59e0b); }
[data-cat="adult"] .tag, [data-cat="adult"] .cat-icon, .post-list li[data-cat="adult"] a::before { background: linear-gradient(135deg, #9f1239, #e11d48); }
[data-cat="family"] .tag, [data-cat="family"] .cat-icon, .post-list li[data-cat="family"] a::before { background: linear-gradient(135deg, #f59e0b, #9f1239); }
[data-cat="petit"] .tag, [data-cat="petit"] .cat-icon, .post-list li[data-cat="petit"] a::before { background: linear-gradient(135deg, #9f1239, #f59e0b); }

/* ---------- セールのお知らせ（トップ） ---------- */
.sale-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -12px 0 8px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.sale-banner:hover { background: #1f2937; }
.sale-label {
  flex: none;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
}
.sale-text { flex: 1; font-weight: 700; font-size: .95rem; line-height: 1.6; }
.sale-arrow { flex: none; font-weight: 800; }
