/* ============================================
   legal-pages.css
   特商法 / プライバシーポリシー 共通スタイル
   対象サイト: hiv-clinic.com（かぐやクリニック）
   カラー: ミントグリーン × ピンクアクセント
   参考レイアウト: stopstd.jp/privacy/
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- カラー変数 ---------- */
:root {
  --c-green: #3dbf8f; /* メインカラー（サイトのミントグリーン） */
  --c-green-dark: #2aa87a; /* 濃いグリーン */
  --c-green-light: #e8f8f2; /* 薄いグリーン背景 */
  --c-pink: #e8758a; /* ピンクアクセント */
  --c-pink-light: #fdf0f2; /* 薄いピンク背景 */
  --c-bg: #f0faf6; /* ページ全体の背景 */
  --c-surface: #ffffff; /* カード白背景 */
  --c-text: #333333;
  --c-text-sub: #666666;
  --c-border: #d4ede2;
  --c-th-bg: #e8f8f2;
  --c-max-width: 760px;
}

/* ---------- ベースリセット ---------- */
.legal-main *,
.legal-main *::before,
.legal-main *::after {
  box-sizing: border-box;
}

/* ---------- ページ全体 ---------- */
.legal-main {
  background-color: var(--c-bg);
  padding: 56px 20px 80px;
  min-height: 60vh;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--c-text);
  line-height: 1.8;
}

/* ---------- ワンカラム コンテナ ---------- */
.legal-container {
  max-width: var(--c-max-width);
  margin: 0 auto;
  background: var(--c-surface);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(61, 191, 143, 0.12);
  padding: 52px 56px 64px;
}

@media (max-width: 768px) {
  .legal-container {
    padding: 36px 28px 48px;
  }
}

@media (max-width: 480px) {
  .legal-main {
    padding: 28px 12px 56px;
  }
  .legal-container {
    padding: 28px 18px 40px;
    border-radius: 8px;
  }
}

/* ---------- ページタイトルブロック ---------- */
.legal-hero {
  text-align: center;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 2px solid var(--c-green-light);
}

.legal-hero__label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-green-dark);
  background: var(--c-green-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 500;
}

.legal-hero__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2a2a2a;
  margin: 0 0 20px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.legal-hero__line {
  width: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-green), var(--c-pink));
  margin: 0 auto;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .legal-hero__title {
    font-size: 1.45rem;
  }
}

/* ---------- 各セクション ---------- */
.legal-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px dashed var(--c-border);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* ---------- セクション見出し（h2） ---------- */
.legal-section__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-green-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-green-light);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
}

/* 番号バッジ */
.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 本文テキスト ---------- */
.legal-text {
  font-size: 0.93rem;
  color: var(--c-text);
  margin: 0 0 12px;
  line-height: 1.9;
}

.legal-text:last-child {
  margin-bottom: 0;
}

.legal-text--intro {
  color: var(--c-text-sub);
  font-size: 0.92rem;
  line-height: 2;
  padding: 16px 20px;
  background: var(--c-green-light);
  border-radius: 8px;
}

/* ---------- 箇条書き ---------- */
.legal-list {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}

.legal-list li {
  font-size: 0.93rem;
  color: var(--c-text);
  padding: 6px 0 6px 22px;
  border-bottom: 1px dotted var(--c-border);
  position: relative;
  line-height: 1.75;
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-green);
}

/* ---------- 表（特商法） ---------- */
.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 460px;
}

.legal-table th,
.legal-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  text-align: left;
  line-height: 1.8;
}

.legal-table th {
  width: 34%;
  background-color: var(--c-th-bg);
  color: var(--c-green-dark);
  font-weight: 600;
  font-size: 0.87rem;
  white-space: nowrap;
}

.legal-table td {
  color: var(--c-text);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background-color: #fafffe;
  transition: background 0.15s;
}

/* ---------- 注意書きボックス（表下の薬剤一文） ---------- */
.legal-notice {
  font-size: 0.88rem;
  color: #b03d55;
  background: var(--c-pink-light);
  border: 1px solid #f5c6ce;
  border-left: 4px solid var(--c-pink);
  border-radius: 6px;
  padding: 13px 18px;
  margin: 0;
  line-height: 1.8;
}

/* ---------- お問い合わせボックス ---------- */
.legal-contact {
  background: var(--c-green-light);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 20px 24px;
}

.legal-contact__label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--c-green-dark);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.legal-contact__list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 16px;
  font-size: 0.92rem;
}

.legal-contact__list dt {
  font-weight: 600;
  color: var(--c-green-dark);
}

.legal-contact__list dd {
  margin: 0;
  color: var(--c-text);
}
