/* =========================================================
   暮らしと空気研究所 / style.css
   デザイントークン → 全体レイアウト → コンポーネント の順に整理しています。
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  /* Color */
  --color-white: #FFFFFF;
  --color-offwhite: #F7F6F2;
  --color-mist: #F1EFE9;      /* セクション背景などに使う淡いベージュグレー */
  --color-line: #E4E1D9;      /* 罫線・境界線 */
  --color-gray: #8C8A82;      /* 補足テキスト */
  --color-charcoal: #2B2B28;  /* 本文・見出し */
  --color-charcoal-soft: #4A4842;
  --color-accent: #6B7D63;    /* 落ち着いたグリーン */
  --color-accent-light: #E8EDE4;
  --color-accent-dark: #55654F;

  /* Type */
  --font-display: "Shippori Mincho", "Zen Old Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --article-width: 860px;
  --header-height: 68px;
  --radius-s: 6px;
  --radius-m: 12px;
  --shadow-card: 0 1px 2px rgba(43, 43, 40, 0.04), 0 6px 20px rgba(43, 43, 40, 0.05);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- リセット ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.8;
  font-feature-settings: "palt";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* 視認できるフォーカスリング（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.visually-hidden:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--color-charcoal);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 200;
  font-size: 13px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-accent-dark);
  font-weight: 600;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  font-weight: 600;
  white-space: nowrap;
}

.site-logo span {
  color: var(--color-accent);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav a {
  font-size: 14px;
  color: var(--color-charcoal-soft);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s var(--ease);
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.global-nav a:hover {
  color: var(--color-charcoal);
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-charcoal);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- パンくずリスト ---------- */
.breadcrumb {
  padding-block: 14px;
  font-size: 12px;
  color: var(--color-gray);
  border-bottom: 1px solid var(--color-line);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-gray);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--color-accent-dark);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--color-line);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding-block: 96px 80px;
  background: var(--color-offwhite);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin-top: 24px;
  font-size: 15.5px;
  color: var(--color-charcoal-soft);
  line-height: 2;
  max-width: 46ch;
}

.hero-visual {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スクロールで少し浮き上がるフェードイン共通クラス */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- セクション共通 ---------- */
.section {
  padding-block: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-note {
  font-size: 13px;
  color: var(--color-gray);
}

/* ---------- 記事カード ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.article-card__thumb {
  aspect-ratio: 4 / 2.6;
  background: var(--color-mist);
  overflow: hidden;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}

.article-card__body {
  padding: 20px 22px 24px;
}

.article-card__cat {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}

.article-card__title {
  margin-top: 12px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
}

.article-card__desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--color-gray);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__date {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}

.article-card--featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.article-card--featured .article-card__thumb {
  aspect-ratio: auto;
}

.article-card--featured .article-card__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card--featured .article-card__title {
  font-size: 20px;
  margin-top: 16px;
}

.article-card--featured .article-card__desc {
  font-size: 14px;
  -webkit-line-clamp: 4;
}

@media (max-width: 720px) {
  .article-card--featured {
    grid-template-columns: 1fr;
  }
}

/* ---------- 三本柱 / サイト紹介 ---------- */
.pillars {
  background: var(--color-mist);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  background: var(--color-white);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  border: 1px solid var(--color-line);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-accent-dark);
  letter-spacing: 0.08em;
}

.pillar h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

.pillar p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--color-charcoal-soft);
  line-height: 1.85;
}

/* ---------- カテゴリー導線 ---------- */
.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-pill {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.category-pill:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.category-pill span {
  display: block;
}

.category-pill .cat-name {
  font-weight: 700;
  font-size: 15px;
}

.category-pill .cat-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--color-gray);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: #E9E7E1;
  padding-block: 56px 28px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 17px;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 12.5px;
  color: #B8B6AE;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: #D8D6CE;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  margin-top: 24px;
  font-size: 12px;
  color: #92908A;
  letter-spacing: 0.02em;
}

/* =========================================================
   記事詳細ページ
   ========================================================= */

.article-header {
  padding-block: 40px 0;
  background: var(--color-offwhite);
}

.article-header .container {
  max-width: var(--article-width);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--color-gray);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article-meta-row .cat-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 5px 12px;
  border-radius: 100px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.article-lead {
  margin-top: 18px;
  font-size: 15px;
  color: var(--color-charcoal-soft);
  line-height: 1.95;
  padding-bottom: 32px;
}

.article-eyecatch {
  max-width: var(--article-width);
  margin: 0 auto;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1200 / 630;
}

.article-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 本文レイアウト：本文 + サイドバー */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-width)) 300px;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}

.article-body {
  max-width: var(--article-width);
  font-size: 17px;
  line-height: 2.05;
  color: var(--color-charcoal);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin-top: 64px;
  margin-bottom: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.article-body > h2:first-child {
  border-top: none;
  margin-top: 0;
}

.article-body h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-top: 34px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul {
  margin: 20px 0 24px;
  padding-left: 4px;
}

.article-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.85;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.article-body strong {
  font-weight: 700;
}

/* 強調ボックス */
.callout {
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 20px 24px;
  margin: 28px 0 32px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--color-charcoal-soft);
}

.callout strong {
  color: var(--color-charcoal);
}

.callout-title {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

/* まとめ表 */
.check-list {
  margin: 24px 0 32px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.check-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-line);
  align-items: flex-start;
}

.check-item:last-child {
  border-bottom: none;
}

.check-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.check-text strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 3px;
}

.check-text span {
  font-size: 13.5px;
  color: var(--color-gray);
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: var(--color-line);
  margin: 56px 0;
  border: none;
}

/* ---------- 目次 ---------- */
.toc {
  background: var(--color-mist);
  border-radius: var(--radius-m);
  padding: 26px 26px 22px;
  margin: 36px 0 8px;
}

.toc-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--color-accent);
  display: inline-block;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  display: grid;
  gap: 9px;
}

.toc li {
  counter-increment: toc-counter;
  font-size: 13.5px;
}

.toc a {
  display: flex;
  gap: 10px;
  color: var(--color-charcoal-soft);
  transition: color 0.2s var(--ease);
  line-height: 1.6;
}

.toc a::before {
  content: counter(toc-counter, decimal-leading-zero);
  color: var(--color-accent-dark);
  font-size: 12px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.toc a:hover {
  color: var(--color-accent-dark);
}

/* ---------- サイドバー ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.side-block-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-charcoal-soft);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.side-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 13.5px;
  color: var(--color-charcoal-soft);
  border-bottom: 1px dashed var(--color-line);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.side-cat-list a:hover {
  color: var(--color-accent-dark);
  padding-left: 8px;
}

.side-popular {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-popular-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.side-popular-item .thumb {
  width: 68px;
  height: 52px;
  border-radius: var(--radius-s);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-mist);
}

.side-popular-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-popular-item .title {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}

.side-popular-item:hover .title {
  color: var(--color-accent-dark);
}

/* ---------- 著者プロフィール ---------- */
.author-box {
  max-width: var(--article-width);
  margin: 8px auto 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-offwhite);
  border-radius: var(--radius-m);
  padding: 26px 28px;
}

.author-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 15px;
}

.author-label {
  font-size: 11.5px;
  color: var(--color-gray);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.author-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.author-bio {
  font-size: 13.5px;
  color: var(--color-charcoal-soft);
  line-height: 1.85;
}

/* ---------- 関連記事 ---------- */
.related {
  max-width: var(--article-width);
  margin: 0 auto;
}

.related .article-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    max-width: var(--article-width);
    margin: 24px auto 0;
  }

  .sidebar > div {
    flex: 1 1 240px;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .article-grid,
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding-inline: 20px;
  }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .global-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .global-nav a {
    width: 100%;
    padding-block: 14px;
    border-bottom: 1px solid var(--color-line);
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-block: 56px 48px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .section {
    padding-block: 52px;
  }

  .article-grid,
  .pillar-grid,
  .category-strip,
  .related .article-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.95;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 48px;
  }

  .article-body h3 {
    font-size: 16px;
  }

  .author-box {
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .toc {
    padding: 20px 18px;
  }

  .callout,
  .check-item {
    padding-inline: 16px;
  }
}

/* =========================================================
   追加分：ブログ記事「部屋の空気が悪いと感じる5つの原因」用
   既存のルールは変更せず、新しいクラスのみを追記しています。
   ========================================================= */

/* アイキャッチ画像が読み込めなかった場合の代替背景
   （.article-eyecatch 自体は変更せず、専用クラスのみ追加） */
.article-eyecatch.img-fallback {
  background: linear-gradient(135deg, var(--color-mist) 0%, var(--color-accent-light) 100%);
}

/* 次の記事へ誘導するカード（「空気清浄機を使えば解決する？」など） */
.next-read {
  background: var(--color-accent-light);
  border-radius: var(--radius-m);
  padding: 28px 26px;
  margin: 32px 0 36px;
}

.next-read__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.next-read__lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-charcoal-soft);
}

.next-read__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-accent-dark);
  border-bottom: 1px solid var(--color-accent-dark);
  padding-bottom: 3px;
  transition: gap 0.2s var(--ease);
}

.next-read__link .arrow {
  transition: transform 0.2s var(--ease);
}

.next-read__link:hover {
  gap: 13px;
}

.next-read__link:hover .arrow {
  transform: translateX(4px);
}

/* まだ公開していない関連記事の案内（リンクにしない） */
.future-link {
  display: inline-block;
  font-size: 13px;
  color: var(--color-gray);
  background: var(--color-mist);
  border-radius: var(--radius-s);
  padding: 9px 14px;
  margin: 2px 0 26px;
  line-height: 1.7;
}

.future-link::before {
  content: "準備中：";
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-right: 2px;
}

/* =========================================================
   追加分：ブログ記事「部屋の換気はどのくらい必要？」用
   既存のルールは変更せず、新しいクラスのみを追記しています。
   ========================================================= */

/* セルフチェック用のチェックボックスリスト
   （番号付きの .check-list とは別に、□形式のチェック項目を表示する） */
.checkbox-list {
  margin: 24px 0 32px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.checkbox-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--color-charcoal-soft);
}

.checkbox-item:last-child {
  border-bottom: none;
}

.checkbox-item .box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--color-accent);
  border-radius: 4px;
}

/* =========================================================
   追加分：ブログ記事「空気清浄機の選び方」（No.10）用
   既存のルールは変更せず、新しいクラスのみを追記しています。
   商品比較・CTA・広告表記・比較表は、今後どの記事でも
   再利用できるよう汎用クラス名にしています。
   ========================================================= */

/* 広告表記（実際にアフィリエイトを掲載する記事でのみ表示する） */
.affiliate-disclosure {
  font-size: 12px;
  color: var(--color-gray);
  background: var(--color-mist);
  border-radius: var(--radius-s);
  padding: 10px 16px;
  margin-bottom: 24px;
  display: inline-block;
}

/* CTAボックス */
.cta-box {
  background: var(--color-accent-light);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  text-align: center;
  margin: 36px 0;
}

.cta-box__text {
  font-size: 14.5px;
  color: var(--color-charcoal-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.cta-box__button {
  display: inline-block;
  background: var(--color-charcoal);
  color: #fff;
  padding: 13px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s var(--ease);
}

.cta-box__button:hover {
  background: var(--color-accent-dark);
}

/* 商品比較エリア（product-comparison / product-card） */
.product-comparison {
  margin: 40px 0;
}

.product-comparison__head {
  margin-bottom: 20px;
}

.product-comparison__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.product-comparison__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-gray);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-line);
}

.product-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-mist);
}

.product-card__body {
  padding: 18px 18px 20px;
}

.product-card__name {
  font-size: 14.5px;
  font-weight: 700;
}

.product-card__point {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-charcoal-soft);
  line-height: 1.7;
}

.product-card__price {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-gray);
}

.product-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-accent-dark);
  border-bottom: 1px solid var(--color-accent-dark);
  padding-bottom: 2px;
}

/* 商品が未登録の状態（ダミーデータを作らず、準備中として表示） */
.product-card--placeholder {
  border: 1.5px dashed var(--color-line);
  background: var(--color-offwhite);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  color: var(--color-gray);
  min-height: 220px;
}

.product-card--placeholder .product-card__media {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  aspect-ratio: auto;
}

.product-card--placeholder .product-card__label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-charcoal-soft);
}

.product-card--placeholder .product-card__status {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-gray);
}

/* 比較表（スマホでは横スクロール） */
.table-scroll {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-line);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compare-table th,
.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  white-space: nowrap;
}

.compare-table td {
  white-space: normal;
}

.compare-table th {
  background: var(--color-mist);
  font-weight: 700;
  color: var(--color-charcoal-soft);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 26px 20px;
  }
}

/* 2026-08-31 追記：スマホでの横方向はみ出し（overflow）修正
   .compare-table に min-width:480px を指定しているため、CSS Gridで
   組んでいる .article-layout の中で .article-body（グリッドアイテム）の
   自動最小幅がそこに引っ張られ、390px前後のスマホ幅でも本文全体が
   480px超まで広がり、右側の文字が見切れる不具合が発生していた
   （空気清浄機の選び方ページ ほか、.compare-table を含む記事で発生）。
   グリッドアイテム側に min-width:0 を指定し、通常どおり画面幅に
   収まるようにする。.compare-table 自体は従来どおり .table-scroll 内で
   横スクロールする仕様のまま変更していない。 */
.article-body {
  min-width: 0;
}
