/* ===== パンくずリスト ===== */
.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--green);
  text-decoration: none;
}
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ===== ページヘッダー ===== */
.page-header {
  background: linear-gradient(150deg, #eef6f1 0%, #f5f9f6 50%, #faf8f4 100%);
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-header-label {
  display: inline-block;
  background: var(--green-pale);
  border: 1px solid rgba(90,143,114,0.35);
  color: var(--green-dark);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 500;
}
.page-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.page-header h1 em {
  font-style: normal;
  color: var(--green-dark);
  border-bottom: 2px solid rgba(90,143,114,0.4);
  padding-bottom: 2px;
}
.page-header-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

/* ===== メインレイアウト（2カラム） ===== */
.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ===== 記事本文 ===== */
.article h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 52px 0 18px;
  padding: 14px 18px;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--green-light);
}
.article p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 18px;
}
.article ul,
.article ol {
  padding-left: 1.5em;
  margin-bottom: 18px;
}
.article li {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 6px;
}
.article strong { color: var(--green-dark); font-weight: 700; }
.article a { color: var(--green); text-decoration: underline; }
.article a:hover { color: var(--green-dark); }

/* ===== ボックスコンポーネント ===== */
.point-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
}
.point-box-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.point-box ul,
.point-box ol { padding-left: 1.4em; margin: 0; }
.point-box li {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 4px;
}

.caution-box {
  background: #fff8f5;
  border: 1px solid #f0c8b0;
  border-left: 4px solid var(--terra);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.9;
}
.caution-box strong { color: var(--terra); }

.info-box {
  background: #f0f7ff;
  border: 1px solid #c0d8f0;
  border-left: 4px solid #5a8fbf;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.9;
}
.info-box strong { color: #3a6f9f; }

/* ===== テーブル ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
}
.data-table th {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
.data-table td {
  padding: 11px 16px;
  border: 1px solid var(--border);
  line-height: 1.8;
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--cream); }

/* ===== ステップカード ===== */
.steps-list { margin: 20px 0; }
.step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}
.step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content {
  flex: 1;
}
.step-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 0px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.step-content h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
  line-height: 1.4;
}
.step-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* ===== 子ページカード ===== */
.child-pages { margin-top: 48px; }
.child-pages-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}
.child-pages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.child-page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.child-page-card:hover {
  border-color: var(--green-light);
  box-shadow: 0 4px 14px rgba(90,143,114,0.12);
  transform: translateY(-2px);
}
.child-page-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  align-self: center;
}
.child-page-text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 3px 0;
  border-left: none;
}
.child-page-text p {
  font-size: 0.76rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* ===== 関連記事 ===== */
.related-section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.related-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.6;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.related-card:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
}
.related-card::before {
  content: '›';
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== サイドバー ===== */
.sidebar { position: sticky; top: 90px; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-box-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.toc-list {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}
.toc-list li { counter-increment: toc; }
.toc-list li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 4px;
  font-size: 0.81rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: color 0.2s;
  line-height: 1.5;
}
.toc-list li:last-child a { border-bottom: none; }
.toc-list li a::before {
  content: counter(toc);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green-light);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toc-list li a:hover { color: var(--green-dark); }
.sidebar-nav-list { list-style: none; padding: 0; }
.sidebar-nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: all 0.2s;
}
.sidebar-nav-list li:last-child a { border-bottom: none; }
.sidebar-nav-list li a:hover {
  color: var(--green-dark);
  padding-left: 8px;
}
.sidebar-cta {
  background: linear-gradient(135deg, #eef6f1 0%, #e8f2ec 100%);
  border: 1px solid rgba(90,143,114,0.25);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}
.sidebar-cta .btn-primary {
  padding: 10px 14px;
  font-size: 0.82rem;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  display: block;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .page-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .child-pages-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-header { padding: 40px 20px 56px; }
  .page-body { padding: 36px 20px 56px; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 36px 20px 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .data-table { font-size: 0.8rem; }
  .data-table th,
  .data-table td { padding: 8px 10px; }
}
