@charset "UTF-8";

/* ===========================
   法的ページ専用CSS（legal.css）
   プライバシーポリシー・特定商取引法ページに適用
=========================== */

/* ===========================
   ヘッダー
=========================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 68px;
  display: flex; justify-content: space-between; align-items: center;
}
header.scrolled { box-shadow: 0 2px 24px rgba(26,39,68,0.08); }
.logo { font-family: 'Shippori Mincho', serif; font-size: 18px; color: var(--navy); text-decoration: none; }
.logo span { color: var(--teal-dark); font-weight: 700; }
nav { display: flex; align-items: center; gap: 36px; }
nav a { color: var(--text-light); text-decoration: none; font-size: 16px; transition: color 0.2s; }
nav a:hover { color: var(--navy); }
.nav-cta { background: var(--teal); color: var(--navy) !important; padding: 10px 24px; border-radius: 100px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; }

/* ===========================
   タブナビゲーション
   「プライバシーポリシー」「特定商取引法」などのタブ切り替え
   ヘッダー直下に固定表示（sticky）
=========================== */
.tab-nav {
  position: sticky; top: 68px; z-index: 90;
  background: var(--white); border-bottom: 2px solid var(--border);
  display: flex; padding: 0 80px;
}
/* 各タブボタン */
.tab-btn {
  padding: 18px 28px; font-size: 16px; font-weight: 700;
  color: var(--text-light); border: none; background: none;
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; white-space: nowrap;
}
/* アクティブなタブ（選択中） */
.tab-btn.active { color: var(--navy); border-bottom-color: var(--teal); }
.tab-btn:hover { color: var(--navy); }

/* ===========================
   タブコンテンツ
   タブ切り替えで表示・非表示が切り替わるエリア
=========================== */
/* 非表示（デフォルト） */
.tab-content { display: none; padding: 80px; padding-top: 64px; max-width: 900px; margin: 0 auto; }
/* 表示中のタブ */
.tab-content.active { display: block; }

/* ===========================
   法的ページのタイトル・本文パーツ
=========================== */
/* ページ内の大見出し（プライバシーポリシー など） */
.legal-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy); margin-bottom: 12px; margin-top: 80px;
  padding-top: 80px;
}
.legal-title:first-child { margin-top: 0; padding-top: 0; }
/* 最終更新日テキスト */
.legal-updated { font-size: 15px; color: var(--text-light); margin-bottom: 48px; font-weight: 300; }

/* 各セクション（条文ブロック） */
.legal-section { margin-bottom: 48px; }
/* 条文の小見出し（左にティール帯） */
.legal-section h2 {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; padding-left: 16px;
  border-left: 4px solid var(--teal);
}
/* 本文テキスト */
.legal-section p { font-size: 18px; color: var(--text-light); line-height: 2.2; font-weight: 300; margin-bottom: 16px; }
.legal-section p strong { color: var(--navy); font-weight: 700; }
/* 箇条書きリスト */
.legal-section ul { list-style: none; margin-left: 0; }
.legal-section ul li {
  font-size: 18px; color: var(--text-light); line-height: 2.2;
  font-weight: 300; padding: 8px 0 8px 24px; position: relative;
  border-bottom: 1px solid var(--border);
}
.legal-section ul li:last-child { border-bottom: none; }
/* リストの点（・） */
.legal-section ul li::before { content: '・'; color: var(--teal-dark); position: absolute; left: 0; font-weight: 700; }

/* ===========================
   テーブル（特定商取引法の表組み）
   左列：項目名 / 右列：内容
=========================== */
.legal-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal-table tr { border-bottom: 1px solid var(--border); }
.legal-table tr:first-child { border-top: 1px solid var(--border); }
/* 左列（項目名・薄ティール背景） */
.legal-table th { width: 200px; padding: 18px 20px; text-align: left; font-size: 16px; font-weight: 700; color: var(--teal-dark); background: var(--teal-pale); vertical-align: top; }
/* 右列（内容） */
.legal-table td { padding: 18px 20px; font-size: 18px; color: var(--text); line-height: 2; font-weight: 300; }
/* 未入力のプレースホルダーテキスト */
.placeholder { color: #ccc; font-style: italic; }

/* 区切り線 */
.legal-divider { border: none; border-top: 2px solid var(--border); margin: 64px 0; }


/* ===========================
   レスポンシブ：タブレット以下（900px以下）
=========================== */
@media (max-width: 900px) {
  .tab-nav { padding: 0 20px; overflow-x: auto; }  /* タブを横スクロール可能に */
  .tab-btn { padding: 16px 18px; font-size: 15px; }
  .tab-content { padding: 48px 28px; }
  header { padding: 0 24px; }
  .legal-table th { width: 120px; font-size: 15px; } /* テーブル左列を狭く */
  nav a:not(.nav-cta) { display: none; }
  footer { padding: 40px 28px 28px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

/* ===========================
   レスポンシブ：スマホ（600px以下）
=========================== */
@media (max-width: 600px) {
  p, li, td { font-size: 18px !important; line-height: 2.2 !important; }
}