/* =====================================================
   legal.css — リーガル・公的文書ページ共通スタイル
   適用対象: terms.html / privacy.html / tokusho.html
===================================================== */
:root {
  --bg: #f5f4ef;
  --white: #ffffff;
  --navy: #003366;
  --text: #1c2030;
  --text-mid: rgba(28, 32, 48, 0.65);
  --text-low: rgba(28, 32, 48, 0.35);
  --border: rgba(28, 32, 48, 0.12);
  --border-focus: rgba(0, 51, 102, 0.3);
  --font-d: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-b: "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 300;
  line-height: 1.85;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ── 共通ナビゲーション ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-logo img {
  width: 24px;
  height: 24px;
}

.nav-home {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

/* ── 共通ヒーロー見出し ── */
.page-hero {
  padding: 80px 20px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--navy);
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-d);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-date {
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 1px;
}

/* ── ドキュメント共通コンテナ ── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.doc-lead {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 48px;
}

/* ── 利用規約（terms）用スタイル ── */
.article {
  margin-bottom: 44px;
}

.article-title {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article ol {
  list-style: none;
  padding: 0;
  counter-reset: clause;
}

.article ol > li {
  counter-increment: clause;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  padding-left: 26px;
  position: relative;
  margin-bottom: 14px;
}

.article ol > li::before {
  content: counter(clause) ".";
  position: absolute;
  left: 0;
  color: var(--navy);
  opacity: 0.6;
  font-weight: 400;
}

.sub-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.sub-list li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.sub-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--navy);
  opacity: 0.4;
}

/* ── プライバシーポリシー（privacy）用スタイル ── */
.section {
  margin-bottom: 44px;
}

.section-title {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.section p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 12px;
}

.section ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
}

.section ul li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  padding-left: 18px;
  position: relative;
}

.section ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--navy);
  opacity: 0.4;
}

/* ── 特定商取引法（tokusho）用テーブルスタイル ── */
.tokusho-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.tokusho-table tr {
  border-bottom: 1px solid var(--border);
}

.tokusho-table th {
  width: 28%;
  padding: 20px 16px 20px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--navy);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.tokusho-table td {
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.9;
  vertical-align: top;
}

@media (max-width: 640px) {
  .tokusho-table,
  .tokusho-table tbody,
  .tokusho-table tr,
  .tokusho-table th,
  .tokusho-table td {
    display: block;
    width: 100%;
  }
  .tokusho-table th {
    padding-bottom: 4px;
  }
  .tokusho-table td {
    padding-top: 0;
    padding-bottom: 24px;
  }
}

/* ── 共通フッター ── */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 1px;
}
