@charset "utf-8";

/* ==============================================
   template.css — ページテンプレート用スタイル
   参照: totonou-onlineclinic.jp レイアウト準拠
   ============================================== */

:root {
  --color-primary:      #7a7a8e;   /* 明るめブルーグレー */
  --color-primary-dark: #5a5a6e;   /* フッター用 */
  --color-accent:       #a89bb5;   /* さらに薄めのパープルグレー */
  --color-bg:           #f8f8fa;   /* ほぼ白 */
  --color-white:        #ffffff;
  --color-text:         #333333;
  --color-text-sub:     #8a8a98;   /* 少し薄め */
  --color-border:       #e5e4ec;   /* より薄く */
  --color-notice-bg:    #f4f4f7;   /* ほぼ白に近い */
  --font-base: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Meiryo', 'メイリオ', sans-serif;
  --max-width: 750px;
  --spacing-section: 30px;
}

/* ============================================
   ベース
   ============================================ */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 14px;
  line-height: 1.8;
}

.wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  background: var(--color-white);
}

/* ============================================
   ページヘッダー（タイトルエリア）
   ============================================ */
.page-header {
  background-color: var(--color-primary);
  padding: 32px 20px 28px;
  text-align: center;
}

.page-title {
  color: var(--color-white);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.page-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ============================================
   メインコンテンツ
   ============================================ */
.page-content {
  padding: 0 20px 40px;
}

/* ============================================
   セクション共通
   ============================================ */
.section {
  padding: var(--spacing-section) 0 0;
  /* border-bottom: 1px solid var(--color-border); */
  padding-bottom: var(--spacing-section);
}

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

h2.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee; /* 全体の細い下線 */
    position: relative;
}

h2.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px; /* 親のborderと重ねる */
    left: 0;
    width: 60px; /* アクセント線の長さ */
    height: 2px;
    background: var(--color-accent);
}

h3.section-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding: 6px 0 6px 12px;
  margin-top: 30px;
  margin-bottom: 16px;
  line-height: 1.5;
}

h2.section-title:first-child,
h3.section-title:first-child {
  margin-top: 0;
}

.section-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.9;
  padding-bottom: 30px;
}

.section-text:last-child {
  padding-bottom: 0;
}

/* ============================================
   番号付きリスト
   ============================================ */
.content-list {
  padding-left: 0;
}

.content-list--numbered {
  counter-reset: list-counter;
}

.content-list--numbered > li {
  counter-increment: list-counter;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--color-border);
  font-size: 14px;
  line-height: 1.7;
}

.content-list--numbered > li:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}

.content-list--numbered > li::before {
  content: counter(list-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   定義リスト（dl / dt / dd）
   ============================================ */
.definition-list {
  width: 100%;
  padding-bottom: 30px;
}

.definition-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
}

.definition-row:first-child {
  border-top: 1px solid var(--color-border);
}

.definition-term {
  flex-shrink: 0;
  width: 38%;
  padding: 12px 12px 12px 0;
  font-weight: bold;
  font-size: 13px;
  color: var(--color-text-sub);
  background-color: #f3f7fb;
  padding-left: 14px;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.definition-desc {
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

/* ============================================
   注意書き・補足ボックス
   ============================================ */
.notice-box {
  background-color: var(--color-notice-bg);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.notice-box p {
  margin: 0;
}

/* ============================================
   ページ内ナビゲーション（フッター上）
   ============================================ */
/* フッターナビ センタリング */
footer {
  background-color: var(--color-primary);
}
.page-nav {
  max-width: var(--max-width); /* 750px */
  margin: 0 auto;
  padding: 24px 20px;
}
.page-nav {
  background-color: var(--color-primary);
  padding: 24px 20px;
}

.page-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-nav__list li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.page-nav__list li:last-child {
  border-bottom: none;
}

.page-nav__list a {
  display: block;
  padding: 14px 8px 14px 0;
  color: var(--color-white);
  font-size: 14px;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
}

.page-nav__list a::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
}

.page-nav__list a:hover {
  opacity: 0.75;
}

.copyright {
  text-align: center;
  padding: 14px 20px;
  background-color: var(--color-primary-dark);
}

.copyright small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}
/* フッター 相談窓口 */
.footer-contact {
  background-color: var(--color-white);
  text-align: center;
  padding: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer-contact__label {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.footer-contact__email {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-accent);
  text-decoration: underline;
}
/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 480px) {
  .page-title {
    font-size: 17px;
  }

  .definition-row {
    flex-direction: column;
  }

  .definition-term {
    width: 100%;
    padding: 8px 14px;
  }

  .definition-desc {
    padding: 8px 14px 12px;
  }
}
