/**
 * 記事（コラム）用の読み物スタイル
 *
 * 固定ページ（page.php）・投稿（single.php）の本文 .entry-content に適用。
 * サウナ/BBQ等の独自テンプレート（page-sauna.php 等）は .entry-content を
 * 使わないため影響しない。
 *
 * カスタムHTMLで貼り付けた素の h2/h3/p/ul/ol/a を、ブランドカラーで
 * 「読みたくなる」体裁に整える。
 */

/* --- パンくずを本文幅に合わせる --- */
.entry-page .breadcrumbs,
.entry-single .breadcrumbs {
  max-width: 46rem;
  margin-inline: auto;
  padding-bottom: var(--space-sm);
}

/* --- 読みやすい1カラム幅に集約 --- */
.entry-page .entry-header,
.entry-single .entry-header,
.entry-page .entry-content,
.entry-single .entry-content {
  max-width: 46rem;          /* 約736px：日本語で読みやすい行長 */
  margin-inline: auto;
}

/* アイキャッチ・タイトル */
.entry-page .entry-thumbnail--large img,
.entry-single .entry-thumbnail--large img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.entry-page .entry-title,
.entry-single .entry-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.4;
  color: var(--color-forest-700);
  letter-spacing: 0.01em;
  margin: var(--space-lg) 0 var(--space-xl);
  text-wrap: balance;
}

/* --- 本文ベース --- */
.entry-page .entry-content,
.entry-single .entry-content {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--color-gray-900);
}
.entry-page .entry-content p,
.entry-single .entry-content p {
  margin: 0 0 var(--space-lg);
}

/* 導入（最初の段落）を少し大きく・落ち着いた色で */
.entry-page .entry-content > p:first-of-type,
.entry-single .entry-content > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--color-gray-700);
}

/* --- 見出し --- */
.entry-page .entry-content h2,
.entry-single .entry-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  line-height: 1.45;
  color: var(--color-forest-700);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-sand-200);
  scroll-margin-top: 90px;
}
/* 見出し左の小さなアクセントバー */
.entry-page .entry-content h2::before,
.entry-single .entry-content h2::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-aqua-500), var(--color-forest-500));
  vertical-align: 0.05em;
}
.entry-page .entry-content h3,
.entry-single .entry-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-aqua-700);
  margin: var(--space-xl) 0 var(--space-sm);
}

/* --- 強調 --- */
.entry-page .entry-content strong,
.entry-single .entry-content strong {
  font-weight: 700;
  color: var(--color-forest-700);
}

/* --- リスト --- */
.entry-page .entry-content ul,
.entry-page .entry-content ol,
.entry-single .entry-content ul,
.entry-single .entry-content ol {
  margin: 0 0 var(--space-lg);
  padding-left: 0;
  list-style: none;
}
.entry-page .entry-content li,
.entry-single .entry-content li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.55em;
  line-height: 1.85;
}
/* ul：森×水のドット */
.entry-page .entry-content ul > li::before,
.entry-single .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--color-aqua-600);
}
/* ol：連番 */
.entry-page .entry-content ol,
.entry-single .entry-content ol {
  counter-reset: li;
}
.entry-page .entry-content ol > li::before,
.entry-single .entry-content ol > li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.5em;
  height: 1.5em;
  font-size: 0.8em;
  font-weight: 700;
  color: #fff;
  background: var(--color-forest-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
.entry-page .entry-content ol > li,
.entry-single .entry-content ol > li {
  padding-left: 2.2em;
}

/* --- 本文リンク --- */
.entry-page .entry-content a,
.entry-single .entry-content a {
  color: var(--color-aqua-700);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.entry-page .entry-content a:hover,
.entry-single .entry-content a:hover {
  color: var(--color-ember-600);
}

/* --- CTAボタン化：<a><strong>…</strong></a> をボタンに --- */
.entry-page .entry-content a:has(> strong),
.entry-single .entry-content a:has(> strong) {
  display: inline-block;
  margin: var(--space-xs) 0;
  padding: 0.85em 1.6em;
  background: var(--color-forest-500);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(30, 67, 56, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.entry-page .entry-content a:has(> strong):hover,
.entry-single .entry-content a:has(> strong):hover {
  background: var(--color-forest-700);
  transform: translateY(-1px);
  color: #fff;
}
.entry-page .entry-content a:has(> strong) strong,
.entry-single .entry-content a:has(> strong) strong {
  color: #fff;
}

/* --- 引用・表（保険）--- */
.entry-page .entry-content blockquote,
.entry-single .entry-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-aqua-500);
  background: var(--color-sand-50);
  border-radius: var(--radius-sm);
  color: var(--color-gray-700);
}
.entry-page .entry-content table,
.entry-single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.95rem;
}
.entry-page .entry-content th,
.entry-page .entry-content td,
.entry-single .entry-content th,
.entry-single .entry-content td {
  border: 1px solid var(--color-sand-200);
  padding: 0.6em 0.8em;
  text-align: left;
}
.entry-page .entry-content th,
.entry-single .entry-content th {
  background: var(--color-sand-100);
}

/* --- 記事内の写真（figure）--- */
.entry-page .entry-content .article-figure,
.entry-single .entry-content .article-figure {
  margin: var(--space-xl) 0;
}
.entry-page .entry-content .article-figure img,
.entry-single .entry-content .article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
.entry-page .entry-content .article-figure figcaption,
.entry-single .entry-content .article-figure figcaption {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-gray-500);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .entry-page .entry-content,
  .entry-single .entry-content {
    font-size: 1rem;
    line-height: 1.9;
  }
}
