/* ============================================
   Article Page Styles
   AIO WP Coder Template
   ============================================
   Design tokens applied from client.yaml (nishitetsu-care):
   ============================================ */

/* --- Column container（中央寄せの読み幅・左右余白を担保） --- */

.column-article {
  box-sizing: border-box;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  color: #333;
  font-size: 16px;
  line-height: 2;
}

.column-article *, .column-article *::before, .column-article *::after { box-sizing: border-box; }

@media (max-width: 767px) {
  .column-article { padding: 24px 18px 56px; }
}

/* --- Article Hero --- */

.article-hero {
  margin-bottom: 48px;
}

.article-hero__image {
  display: block;
  width: 100%;
  margin-top: 20px;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

@media (max-width: 767px) {
  .article-hero__image {
    margin-top: 4vw;
    border-radius: 8px;
  }
}

/* --- Article Introduction --- */

.article-intro {
  margin-inline: 0;
  margin-bottom: 48px;
}

.article-intro__text {
  font-size: 16px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.04em;
}

/* --- Article Section --- */

.article-section {
  margin-inline: 0;
  margin-bottom: 64px;
}

.article-section:last-of-type {
  margin-bottom: 0;
}

/* --- Section Titles (h2) --- */

.article-section__title {
  margin-bottom: 20px;
  padding-left: 15px;
  color: #333;
  font-weight: normal;
  font-size: 26px;
  line-height: 1.5;
  border-left: 2px solid #388370;
}

/* --- Section Subtitle (h3) --- */

.article-section__subtitle {
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  border-bottom: 1px solid #d6d3c7;
}

/* --- Body Text --- */

.article-section__text {
  font-size: 16px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.04em;
}

.article-section__text + .article-section__text {
  margin-top: 1.5em;
}

/* --- Section Images --- */

.article-section__image {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 32px auto;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .article-section__image {
    border-radius: 8px;
    margin: 5vw auto;
  }
}

/* --- Q&A Section --- */

.article-qa {
  margin-top: 20px;
}

.article-qa__item {
  margin-bottom: 2.5em;
  padding: 1.8em 2em;
  background: #f8f6f2;
  border-radius: 12px;
  border-left: 4px solid #398472;
}

@media (max-width: 767px) {
  .article-qa__item {
    padding: 1.2em 1.2em;
  }
}

.article-qa__question {
  margin-bottom: 0.8em;
  color: #398472;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
}

.article-qa__question::before {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.15em 0.6em;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1;
  background: #398472;
  border-radius: 4px;
  content: "Q";
  vertical-align: middle;
}

.article-qa__answer {
  padding-left: 0;
  color: #333;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.article-qa__answer::before {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.15em 0.6em;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1;
  background: #7e7b6c;
  border-radius: 4px;
  content: "A";
  vertical-align: middle;
}

/* --- Company Info Table --- */

.article-company {
  margin-inline: 0;
  margin-bottom: 64px;
}

.article-company__title {
  margin-bottom: 14px;
  color: #398472;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.6;
}

.article-company__table {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
}

.article-company__table th,
.article-company__table td {
  padding: 1em 1.2em;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
  border-bottom: 1px solid #d6d3c7;
}

.article-company__table th {
  width: 30%;
  color: #398472;
  font-weight: 600;
  background: #f8f6f2;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .article-company__table th,
  .article-company__table td {
    display: block;
    width: 100%;
    padding: 0.6em 1em;
  }

  .article-company__table th {
    border-bottom: none;
    padding-bottom: 0.2em;
  }

  .article-company__table td {
    padding-top: 0.2em;
  }
}

/* --- Fadeup Animation --- */

.fadeup {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.fadeup.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Spacing Utilities --- */

/* ============================================
   テスト環境補助：コラム用パンくず・コンテナ
   （column-styles 固有の追記分）
   ============================================ */

.column-breadcrumb {
  margin-inline: 0;
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  letter-spacing: 0.03em;
}

.column-breadcrumb a { color: #398472; text-decoration: none; }

.column-breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .column-breadcrumb { margin-top: 20px; font-size: 13px; }
}

/* ===== 追記: 本文リスト・表・CTA・参照/関連リンク（記事流し込み用 2026-07-03） ===== */

.article-section ul { list-style:none; margin:1.2em 0; padding:0; }

.article-section ul li { position:relative; padding:0.6em 0 0.6em 1.4em; border-bottom:1px solid #d6d3c7; line-height:1.9; }

.article-section ul li:last-child { border-bottom:none; }

.article-section ul li::before { content:""; position:absolute; top:1.05em; left:0; width:8px; height:8px; background:#398472; border-radius:50%; }

.article-table { width:100%; border-collapse:collapse; margin:1.5em 0; font-size:0.95em; line-height:1.8; }

.article-table th, .article-table td { padding:0.7em 1em; border:1px solid #d6d3c7; text-align:left; vertical-align:top; }

.article-table thead th { background:#398472; color:#fff; font-weight:600; }

.article-table tbody th { background:#f8f6f2; font-weight:600; white-space:nowrap; }

.article-table tbody tr:nth-child(even) td { background:#faf9f6; }

@media (max-width:767px){ .article-table{ font-size:0.86em; } .article-table th,.article-table td{ padding:0.5em 0.6em; }
}

.article-cta { margin:1.5em 0; text-align:center; }

.article-cta__link { display:inline-flex; align-items:center; justify-content:center; gap:0.4em; max-width:460px; width:100%; padding:0.9em 1.6em; color:#fff; font-weight:600; text-decoration:none; background:#398472; border-radius:100vh; transition:opacity .3s; }

.article-cta__link:hover { opacity:0.8; }

.article-cta__link::after { content:"→"; }

.article-related { margin:2.5em 0 0; padding-top:1.5em; border-top:2px solid #398472; }

.article-related__title { margin:0 0 0.8em; font-weight:600; font-size:1.15em; color:#398472; }

.article-related ul { list-style:none; margin:0; padding:0; }

.article-related li { border-bottom:1px solid #d6d3c7; }

.article-related li:last-child { border-bottom:none; }

.article-related a { display:block; padding:0.8em 0 0.8em 1.2em; position:relative; color:#333; text-decoration:none; }

.article-related a::before { content:""; position:absolute; left:0; top:1.15em; width:7px; height:7px; border-top:2px solid #388370; border-right:2px solid #388370; transform:rotate(45deg); }

.article-related a:hover { color:#398472; }

/* コラム一覧ページ */

.column-index { max-width:1000px; margin:0 auto; padding:2em 3em 4em; }

.column-index__list { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5em; margin-top:1.5em; }

@media (max-width:767px){ .column-index__list{ grid-template-columns:1fr; } .column-index{ padding:1.5em 1em 3em; }
}

.column-index__card { display:block; border:1px solid #d6d3c7; border-radius:10px; overflow:hidden; text-decoration:none; color:#333; transition:box-shadow .3s; background:#fff; }

.column-index__card:hover { box-shadow:0 6px 20px rgba(57,132,114,0.12); }

.column-index__card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }

.column-index__card-body { padding:1em 1.2em 1.4em; }

.column-index__card-title { font-weight:600; line-height:1.6; color:#398472; }
