/* ============================================
   single.css - 記事・会社詳細ページ
   サイドバー付き2カラムレイアウト
   サイトカラーに合わせた見出し・強調スタイル
============================================ */

/* ========================================
   2カラムレイアウト
======================================== */
.single-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  align-items: start;
}

@media (max-width: 1023px) {
  .single-wrap {
    grid-template-columns: 1fr;
  }
}

.single-main {
  min-width: 0;
}

/* ========================================
   記事ヘッダー
======================================== */
.article-header {
  margin-bottom: 32px;
}

.article-header__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--color-text-lt);
}

.article-header__meta .cat-item a {
  background: var(--color-main);
  color: #fff;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.article-header__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-header__author {
  font-size: 0.82rem;
  color: var(--color-text-lt);
}

.article-header__author-label {
  background: var(--color-warm);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  font-size: 0.75rem;
}

.article-eyecatch {
  margin-bottom: 32px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.article-eyecatch img {
  width: 100%;
  height: auto;
}

/* ========================================
   記事本文スタイル（見出し・強調など）
======================================== */
.article-body {
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--color-text);
}

/* h2見出し（サイトカラーに合わせた強調） */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 12px 16px 12px 20px;
  background: var(--color-warm);
  border-left: 4px solid var(--color-main);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 48px 0 24px;
  line-height: 1.5;
}

/* h3見出し */
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-main);
  margin: 36px 0 18px;
  line-height: 1.5;
}

/* h4見出し */
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main);
  padding-left: 12px;
  border-left: 3px solid var(--color-point2);
  margin: 28px 0 14px;
  line-height: 1.5;
}

/* h5・h6 */
.article-body h5,
.article-body h6 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 24px 0 12px;
}

/* 段落 */
.article-body p {
  margin-bottom: 20px;
}

/* 太字（修正：アンダーラインを引く） */
.article-body strong,
.article-body b {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* イタリック */
.article-body em {
  font-style: italic;
  color: var(--color-text-mid);
}

/* リンク */
.article-body a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  opacity: 0.75;
}

/* リスト */
.article-body ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.article-body ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
}

.article-body ol {
  padding-left: 0;
  margin: 0 0 20px;
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
  padding-left: 32px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--color-main);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* テーブル */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-body th {
  background: var(--color-main);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}

.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.article-body tr:nth-child(even) td {
  background: var(--color-warm);
}

/* 引用 */
.article-body blockquote {
  background: var(--color-warm);
  border-left: 4px solid var(--color-point2);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.92rem;
  color: var(--color-text-mid);
}

/* コード */
.article-body code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: monospace;
}

.article-body pre {
  background: #f0f0f0;
  padding: 16px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  margin: 20px 0;
}

/* 画像 */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  margin: 16px 0;
}

/* マーカー（蛍光ペン風） */
.article-body mark {
  background: linear-gradient(transparent 50%, rgba(183,139,62,0.3) 50%);
  padding: 0 2px;
}

/* ポイントボックス（記事内で使えるクラス） */
.article-body .point-box {
  background: var(--color-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.article-body .point-box__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 10px;
}

/* 警告ボックス */
.article-body .warn-box {
  background: #fff8f0;
  border: 1px solid var(--color-point2);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}

/* ========================================
   記事フッター
======================================== */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.article-footer__tags {
  font-size: 0.82rem;
  color: var(--color-text-lt);
}

.article-footer__tags .tag-links a {
  background: var(--color-warm);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 4px;
  margin: 0 4px 4px 0;
  font-size: 0.78rem;
  color: var(--color-text-mid);
  display: inline-block;
}

/* ========================================
   前後の記事ナビ
======================================== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.post-nav__prev,
.post-nav__next {
  background: var(--color-warm);
  border-radius: var(--r-md);
  padding: 16px 20px;
}

.post-nav__next {
  text-align: right;
}

.post-nav__prev a,
.post-nav__next a {
  color: var(--color-text);
  display: block;
}

.post-nav__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-lt);
  margin-bottom: 4px;
}

.post-nav__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ========================================
   会社詳細ページ
======================================== */
.co-single {
  background: var(--color-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.co-single__header {
  background: var(--color-main);
  padding: 28px 32px;
}

.co-single__name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

/* 修正：コピーを大きく・太く */
.co-single__copy {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 12px;
}

.co-single__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

/* 修正：HP画像は枠なし・大きく */
.co-single__hp-img {
  padding: 0;
}

.co-single__hp-img img {
  width: 100%;
  border-radius: 0;
  border: none;
}

.co-single__ext-btns {
  padding: 16px 32px;
  background: var(--color-warm);
  display: flex;
  gap: 12px;
}

.co-single__section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--color-border);
}

.co-single__section:last-child {
  border-bottom: none;
}

.co-single__section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-main);
  margin-bottom: 20px;
}

.co-single__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-single__points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-single__desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text);
}

.co-single__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.co-single__btns {
  display: flex;
  gap: 12px;
  padding: 24px 32px;
  background: var(--color-warm);
}

/* ========================================
   サイドバー
======================================== */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta {
  background: var(--color-main);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}

.sidebar-cta__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-cta__text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  line-height: 1.6;
}

.sidebar-cta__btn {
  display: block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-align: center;
  transition: background 0.2s;
}

.sidebar-cta__btn:hover {
  background: #9a7232;
  opacity: 1;
}

.sidebar-section {
  background: var(--color-white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.sidebar-section__title {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 16px;
  background: var(--color-warm);
  border-bottom: 2px solid var(--color-main);
}

.sidebar-section__title a {
  color: var(--color-text);
}

.sidebar-posts {
  padding: 8px 0;
}

.sidebar-post {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.sidebar-post:last-child {
  border-bottom: none;
}

.sidebar-post__img {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  display: block;
  background: var(--color-warm);
}

.sidebar-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post__body {
  flex: 1;
  min-width: 0;
}

.sidebar-post__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-post__title:hover {
  color: var(--color-main);
}

.sidebar-post__date {
  font-size: 0.72rem;
  color: var(--color-text-lt);
}

.sidebar-post__sub {
  font-size: 0.75rem;
  color: var(--color-text-lt);
  margin-top: 2px;
}

.sidebar-section__more {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-main);
  padding: 10px;
  background: var(--color-warm);
  border-top: 1px solid var(--color-border);
}

.sidebar-section__more:hover {
  background: var(--color-border);
  opacity: 1;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
  .single-wrap {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .single-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .co-single__section {
    padding: 20px;
  }

  .co-single__header {
    padding: 20px;
  }

  .co-single__btns {
    flex-direction: column;
    padding: 16px 20px;
  }

  .co-single__info-grid {
    grid-template-columns: 1fr;
  }

  .co-single__ext-btns {
    padding: 12px 20px;
  }
}

/* ==========================================
   アイキャッチ引用元
   ========================================== */
.article-eyecatch {
  position: relative;
  margin-bottom: 32px;
}
.article-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.article-eyecatch__cite {
  font-size: 0.75rem;
  color: #999;
  margin-top: 6px;
  text-align: right;
}
.article-eyecatch__cite a {
  color: #999;
  text-decoration: underline;
}
.article-eyecatch__cite a:hover { color: #c8102e; }

/* ==========================================
   自動目次
   ========================================== */
.toc-box {
  background: #fafaf8;
  border: 1px solid #e5ddd0;
  border-radius: 10px;
  padding: 16px 24px 20px;
  margin-bottom: 36px;
}
.toc-box__list[hidden] { display: none; }
.toc-box__header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #e5ddd0;
  padding: 0 0 12px;
  margin-bottom: 0;
  cursor: pointer;
  text-align: left;
}
.toc-box__header[aria-expanded="true"] + .toc-box__list {
  margin-top: 14px;
}
.toc-box__toggle {
  margin-left: auto;
  font-size: 0.75rem;
  color: #0f1b3d;
}
.toc-box__icon {
  font-size: 1.1rem;
  color: #0f1b3d;
}
.toc-box__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: #0f1b3d;
}
.toc-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc-counter;
}
.toc-box__item {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #e5ddd0;
}
.toc-box__item:last-child { border-bottom: none; }
.toc-box__item::before {
  content: counter(toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: #0f1b3d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}
.toc-box__item a {
  font-size: 0.88rem;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.5;
}
.toc-box__item a:hover { color: #c8102e; text-decoration: underline; }

@media (max-width: 600px) {
  .toc-box { padding: 16px; }
}

/* ==========================================
   サイドバー（single・archive共通）
   ========================================== */
.archive-sidebar,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.archive-sidebar .sidebar-widget,
.sidebar .sidebar-section,
.sidebar-widget {
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(15,27,61,0.08) !important;
  padding: 22px !important;
  border: 1px solid #e5ddd0 !important;
}

.archive-sidebar .sidebar-section__title,
.sidebar .sidebar-section__title,
.sidebar-widget-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f1b3d;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0f1b3d;
}

.archive-sidebar .sidebar-section__title a,
.sidebar .sidebar-section__title a {
  color: #0f1b3d;
  text-decoration: none;
}
.archive-sidebar .sidebar-section__title a:hover,
.sidebar .sidebar-section__title a:hover { color: #c8102e; }

.archive-sidebar .sidebar-posts,
.sidebar .sidebar-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.archive-sidebar .sidebar-post,
.sidebar .sidebar-post {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece6;
}
.archive-sidebar .sidebar-post:first-child,
.sidebar .sidebar-post:first-child { padding-top: 0; }
.archive-sidebar .sidebar-post:last-child,
.sidebar .sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }

.archive-sidebar .sidebar-post__img,
.sidebar .sidebar-post__img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: #f0ece6;
}
.archive-sidebar .sidebar-post__img img,
.sidebar .sidebar-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-sidebar .sidebar-post__body,
.sidebar .sidebar-post__body { flex: 1; min-width: 0; }

.archive-sidebar .sidebar-post__title,
.sidebar .sidebar-post__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 4px;
}
.archive-sidebar .sidebar-post__title:hover,
.sidebar .sidebar-post__title:hover { color: #c8102e; }

.archive-sidebar .sidebar-post__date,
.sidebar .sidebar-post__date { font-size: 0.72rem; color: #aaa; }

.archive-sidebar .sidebar-section__more,
.sidebar .sidebar-section__more {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f1b3d;
  text-decoration: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5ddd0;
}
.archive-sidebar .sidebar-section__more:hover,
.sidebar .sidebar-section__more:hover { color: #c8102e; }

/* ========================================
   記事本文：見出し装飾を強化
======================================== */

/* h2：背景つきで大見出しとして判別しやすく */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  background: #0f1b3d;
  padding: 14px 18px;
  border-left: 6px solid #c8102e;
  border-radius: 6px;
  margin: 52px 0 24px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(15, 27, 61, 0.12);
}

/* h3：薄い背景＋左線で中見出しとして区別 */
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f1b3d;
  background: #eee6d8;
  padding: 12px 16px;
  border-left: 5px solid #0f1b3d;
  border-bottom: none;
  border-radius: 5px;
  margin: 38px 0 18px;
  line-height: 1.5;
}

/* h4：小見出しも少し装飾 */
.article-body h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f1b3d;
  background: #fafaf8;
  padding: 9px 12px 9px 14px;
  border-left: 4px solid #c8102e;
  border-radius: 4px;
  margin: 30px 0 14px;
  line-height: 1.5;
}

/* ========================================
   記事本文：表の罫線を黒で統一
======================================== */

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border: 1px solid #1a1a1a;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid #1a1a1a;
  vertical-align: top;
}

.article-body th {
  background: #ffffff;
  color: #1a1a1a;
  text-align: left;
  font-weight: 700;
}

.article-body td {
  background: #ffffff;
  color: #1a1a1a;
}

/* 偶数行の背景色を消して白で統一 */
.article-body tr:nth-child(even) td {
  background: #ffffff;
}

/* 最終行の下線も黒で固定 */
.article-body table tr:last-child th,
.article-body table tr:last-child td {
  border-bottom: 1px solid #1a1a1a;
}

/* ==========================================================
   下層ページ共通スタイル
   対象: page-about.php / page-privacy.php / page-sitemap.php
   ========================================================== */

/* ── ヒーローセクション ── */
.lower-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--figma-bg, #faf7f0);
}

.lower-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--figma-text, #1a2620);
  line-height: 1.4;
  margin: 16px 0 0;
  letter-spacing: -0.02em;
}

/* ── コンテンツエリア ── */
.lower-content-section {
  padding: 64px 0 96px;
}

.lower-content {
  max-width: 860px;
  margin: 0 auto;
}

/* ── 運営者情報テーブル ── */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 48px;
}

.profile-table th,
.profile-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--figma-border, #e5dfd0);
  vertical-align: top;
  text-align: left;
}

.profile-table th {
  width: 160px;
  font-weight: 700;
  color: var(--figma-sub, #4a574f);
  white-space: nowrap;
  background: var(--figma-warm, #f2ecdb);
}

.profile-table td {
  color: var(--figma-text, #1a2620);
}

.profile-table td a {
  color: var(--figma-green, #1f3d2e);
  word-break: break-all;
}

.profile-table td p {
  margin: 0 0 12px;
}
.profile-table td p:last-child {
  margin-bottom: 0;
}

/* ── 下層ページ内の見出し ── */
.lower-content h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--figma-text, #1a2620);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--figma-border, #e5dfd0);
}

.lower-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--figma-text, #1a2620);
  margin: 32px 0 12px;
}

.lower-content p {
  font-size: 15px;
  line-height: 2;
  color: var(--figma-sub, #4a574f);
  margin-bottom: 20px;
}

.lower-content ul,
.lower-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.lower-content li {
  font-size: 15px;
  line-height: 2;
  color: var(--figma-sub, #4a574f);
  margin-bottom: 6px;
}

/* ── サイトマップ ── */
.sitemap-section {
  margin-bottom: 48px;
}

.sitemap-section h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--figma-text, #1a2620);
  margin: 0 0 16px;
  padding: 14px 20px;
  background: var(--figma-warm, #f2ecdb);
  border-left: 4px solid var(--figma-green, #1f3d2e);
  border-radius: 0 6px 6px 0;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sitemap-list li a {
  display: block;
  padding: 12px 16px;
  color: var(--figma-green, #1f3d2e);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--figma-border, #e5dfd0);
  transition: background .15s;
}

.sitemap-list li a:hover {
  background: var(--figma-warm, #f2ecdb);
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .lower-hero { padding: 48px 0 28px; }
  .lower-content-section { padding: 48px 0 72px; }

  .profile-table th {
    width: 120px;
    font-size: 13px;
    padding: 16px 14px;
    white-space: normal;
  }

  .profile-table td {
    font-size: 14px;
    padding: 16px 14px;
  }

  .lower-content h2 { font-size: 19px; }
}

@media (max-width: 390px) {
  .profile-table {
    display: block;
  }
  .profile-table tbody,
  .profile-table tr {
    display: block;
  }
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .profile-table th {
    background: var(--figma-warm, #f2ecdb);
    border-bottom: none;
    font-size: 12px;
    padding-bottom: 6px;
  }
  .profile-table td {
    padding-top: 6px;
  }
}
/* =========================
   single.php 子ページ調整
========================= */

/* ヘッダー下の余白調整 */
.single-post .site-header,
.single .site-header {
  margin-bottom: 0;
}

/* PRより上の余白を消す候補 */
.single-post .site-pr,
.single-post .header-pr,
.single-post .site-description,
.single-post .site-description-bar,
.single .site-pr,
.single .header-pr,
.single .site-description,
.single .site-description-bar {
  margin-top: 0 !important;
}

/* パンくず：1行・小さめ */
.single-breadcrumb {
  max-width: 1040px;
  margin: 18px auto 34px;
  padding: 0 20px;
  color: rgba(18, 61, 77, 0.68);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-breadcrumb a {
  color: rgba(18, 61, 77, 0.78);
  text-decoration: none;
}

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

.single-breadcrumb span {
  margin: 0 5px;
}

.single-breadcrumb__current {
  color: rgba(18, 61, 77, 0.62);
}

/* 記事全体：記事を主役に */
.single-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
  align-items: start;
}

.single-main {
  min-width: 0;
}

.article-single {
  color: #123d4d;
}

.article-header__meta {
  margin-bottom: 16px;
  color: #2b6473;
  font-size: 13px;
  font-weight: 700;
}

.article-header__meta a {
  color: inherit;
  text-decoration: none;
}

.article-header__title {
  margin: 0 0 18px;
  color: #123d4d;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.article-header__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: rgba(18, 61, 77, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.article-header__date-label {
  margin-right: 4px;
  font-weight: 700;
}

/* アイキャッチ */
.article-eyecatch {
  margin: 0 0 36px;
}

.article-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.article-eyecatch__cite {
  margin: 10px 0 0;
  color: rgba(18, 61, 77, 0.62);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.article-eyecatch__cite a {
  color: inherit;
}

/* 本文 */
.article-body {
  color: #123d4d;
  font-size: 16px;
  line-height: 2.05;
}

.article-body p {
  margin: 0 0 1.8em;
}

.article-body h2 {
  margin: 56px 0 24px;
  padding: 16px 20px;
  border-left: 5px solid #e98d70;
  background: #fff;
  color: #123d4d;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.55;
}

.article-body h3 {
  margin: 42px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 61, 77, 0.14);
  color: #123d4d;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.6;
}

.article-body a {
  color: #2b6473;
  font-weight: 700;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 横並びカラム */
.article-body .wp-block-columns {
  gap: 24px;
  margin: 36px 0;
  align-items: stretch;
}

.article-body .wp-block-column {
  padding: 24px;
  border: 1px solid rgba(18, 61, 77, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 61, 77, 0.05);
}

.article-body .wp-block-column > :last-child {
  margin-bottom: 0;
}

/* 口コミのような画像＋文章ブロック調整 */
.article-body .wp-block-media-text {
  gap: 28px;
  margin: 36px 0;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(18, 61, 77, 0.12);
}

.article-body .wp-block-media-text__media img {
  border-radius: 8px;
}

/* 目次 */
.toc-box {
  margin: 34px 0;
  border: 1px solid rgba(18, 61, 77, 0.14);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.toc-box__header {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 0;
  background: #f7f1e9;
  color: #123d4d;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.toc-box__list {
  margin: 0;
  padding: 18px 24px 22px 44px;
}

.toc-box__item {
  margin: 0 0 10px;
}

.toc-box__item a {
  color: #123d4d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* 前後記事 */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 56px 0 0;
}

.post-nav a {
  display: block;
  padding: 18px;
  border: 1px solid rgba(18, 61, 77, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #123d4d;
  text-decoration: none;
}

.post-nav__label {
  display: block;
  margin-bottom: 8px;
  color: #e98d70;
  font-size: 12px;
  font-weight: 800;
}

.post-nav__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

/* =========================
   sidebar.php 調整
========================= */

/* サイドバー固定解除 */
.article-sidebar,
.archive-sidebar,
.sidebar {
  position: static !important;
  top: auto !important;
  align-self: start;
}

/* サイドバーを控えめに */
.article-sidebar {
  display: grid;
  gap: 24px;
}

.sidebar-widget {
  padding: 20px;
  border: 1px solid rgba(18, 61, 77, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 61, 77, 0.05);
}

.sidebar-widget-title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #123d4d;
  color: #123d4d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.sidebar-widget-title a {
  color: inherit;
  text-decoration: none;
}

/* よく読まれる記事 */
.sidebar-widget--popular {
  padding: 0;
  overflow: hidden;
}

.sidebar-widget--popular .sidebar-widget-title {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(18, 61, 77, 0.12);
  background: #123d4d;
  color: #fff;
}

.popular-posts {
  display: grid;
  gap: 0;
}

.popular-post {
  border-bottom: 1px solid rgba(18, 61, 77, 0.1);
}

.popular-post:last-child {
  border-bottom: 0;
}

.popular-post__link {
  display: block;
  padding: 16px;
  color: #123d4d;
  text-decoration: none;
}

.popular-post__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f1e9;
}

.popular-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post__thumb span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(18, 61, 77, 0.45);
  font-size: 12px;
  font-weight: 800;
}

.popular-post__title {
  margin: 0 0 8px;
  color: #123d4d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.popular-post__excerpt {
  margin: 0;
  color: rgba(18, 61, 77, 0.7);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

/* カテゴリ別記事 */
.sidebar-posts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-post {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
}

.sidebar-post__img {
  display: block;
  width: 76px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f1e9;
}

.sidebar-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post__title {
  display: -webkit-box;
  overflow: hidden;
  color: #123d4d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sidebar-post__date {
  display: block;
  margin-top: 6px;
  color: rgba(18, 61, 77, 0.45);
  font-size: 11px;
  font-weight: 600;
}

.sidebar-section__more {
  display: inline-block;
  margin-top: 16px;
  color: #e98d70;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 960px) {
  .single-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .article-sidebar {
    max-width: 100%;
  }

  .popular-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .single-breadcrumb {
    margin: 14px auto 26px;
    font-size: 11px;
  }

  .article-header__title {
    font-size: 27px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 21px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .article-body .wp-block-columns {
    display: block;
  }

  .article-body .wp-block-column {
    margin-bottom: 18px;
  }
}

@media (max-width: 390px) {
  .single-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .popular-posts {
    grid-template-columns: 1fr;
  }

  .sidebar-post {
    grid-template-columns: 68px 1fr;
  }

  .sidebar-post__img {
    width: 68px;
  }
}
/* 目次：H2 / H3 階層表示 */
.toc-box__item--h2 {
  font-weight: 800;
}

.toc-box__item--h3 {
  padding-left: 28px;
}

.toc-box__item--h3::before {
  min-width: 18px;
  height: 18px;
  font-size: 0.62rem;
  background: #2b6473;
  opacity: 0.85;
}

.toc-box__item--h3 a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(18, 61, 77, 0.86);
}
/* よく読まれる記事：公開日・更新日を小さく控えめに */
.popular-post__dates {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  color: rgba(18, 61, 77, 0.45);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.popular-post__date {
  display: block;
  white-space: nowrap;
}

.popular-post__date-label {
  margin-right: 4px;
  color: rgba(18, 61, 77, 0.42);
  font-weight: 600;
}

.popular-post__date time {
  color: rgba(18, 61, 77, 0.48);
  font-weight: 600;
}

/* ==========================================================
   子ページ：PRバー上部の余白を削除
   ※PR文言はACF管理のまま。表示内容には触らない。
   ========================================================== */

/* body / page / main の上余白をリセット */
html,
body,
#page,
#main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* PRバー自体の上余白を削除 */
.site-pr-bar {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  background: #f8f3ea;
}

/* PRバー内のpタグの余白を削除 */
.site-pr-bar p,
.site-pr-bar__text {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 4px 8px !important;
  line-height: 1.45 !important;
}

/* ヘッダー本体の余白も詰める */
.site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 記事ページだけ念押し */
body.single .site-pr-bar,
body.single-post .site-pr-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single .site-header,
body.single-post .site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* パンくず上の余白を調整 */
body.single .single-breadcrumb,
body.single-post .single-breadcrumb {
  margin-top: 18px !important;
}

/* WordPress管理バー表示時もPRバー上に余白を作らない */
body.admin-bar .site-pr-bar {
  margin-top: 0 !important;
}

/* スマホ時 */
@media (max-width: 768px) {
  .site-pr-bar {
    min-height: 26px !important;
  }

  .site-pr-bar p,
  .site-pr-bar__text {
    padding: 4px 10px !important;
    font-size: 11px;
    line-height: 1.4 !important;
  }

  body.single .single-breadcrumb,
  body.single-post .single-breadcrumb {
    margin-top: 14px !important;
  }
}
/* ==========================================================
   PRバー：表示は残したまま、文字サイズ・背景だけ調整
   ========================================================== */

.site-pr-bar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(18, 61, 77, 0.08);
}

.site-pr-bar__text,
.site-pr-bar p {
  margin: 0 !important;
  padding: 6px 8px !important;
  color: #123d4d;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  letter-spacing: 0.01em;
}

/* PCで少しだけ横位置を整える */
.site-pr-bar__text {
  max-width: none;
}

/* スマホ */
@media (max-width: 768px) {
  .site-pr-bar__text,
  .site-pr-bar p {
    padding: 5px 8px !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
  }
}

/* ==========================================
   子ページ背景色をH1エリア（archive-header）に統一
   figma-full.css の body 背景（#faf7f0）を上書き
   ========================================== */
body.single,
body.page,
body.archive,
body.category,
body.search,
body.error404 {
  background: #fff8f0 !important;
}

/* ==========================================
   サイドバー：公開日・更新日を非表示
   ========================================== */
.sidebar-post__date,
.popular-post__dates,
.popular-post__date {
  display: none !important;
}
