:root {
  --primary: #bb1a18;
  --gold: #c8a35a;
  --text: #111111;
  --muted: #5f5a53;
  --line: #e6dccd;
  --surface: #ffffff;
  --bg: #faf7f2;
  --shadow: 0 18px 40px rgba(24, 19, 12, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(200, 163, 90, 0.14), transparent 30%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-text {
  font-family: "Noto Serif JP", serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-main {
  padding: 48px 0 88px;
}

.legal-hero {
  text-align: center;
  padding: 34px 0 42px;
}

.legal-title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.22;
}

.legal-lead {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.legal-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.legal-chip {
  padding: 10px 16px;
  border: 1px solid rgba(200, 163, 90, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3b3125;
  font-size: 0.93rem;
  font-weight: 700;
}

.legal-chip.is-active {
  background: linear-gradient(180deg, #f2d593 0%, var(--gold) 100%);
  color: #2f2417;
  border-color: rgba(200, 163, 90, 0.9);
}

.legal-card {
  background: var(--surface);
  border: 1px solid rgba(200, 163, 90, 0.2);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.legal-card.table-card {
  padding: 18px 28px;
}

.law-table {
  width: 100%;
  border-collapse: collapse;
}

.law-table th,
.law-table td {
  padding: 24px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.9;
}

.law-table tr:last-child th,
.law-table tr:last-child td {
  border-bottom: 0;
}

.law-table th {
  width: 28%;
  padding-left: 12px;
  color: #191511;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.law-table td {
  color: #2f2a24;
}

.law-table td a {
  color: var(--primary);
}

.article-card {
  padding: 40px 44px 46px;
}

.article-intro {
  margin: 0 0 24px;
  color: #2b261f;
  font-size: 1rem;
  line-height: 1.95;
}

.policy-section,
.terms-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.policy-section + .policy-section,
.terms-section + .terms-section {
  margin-top: 24px;
}

.policy-section h2,
.terms-section h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.45;
}

.policy-section h3,
.terms-section h3 {
  margin: 18px 0 10px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.policy-section p,
.terms-section p,
.policy-section li,
.terms-section li,
.contact-block p {
  margin: 0;
  color: #2f2a24;
  font-size: 0.98rem;
  line-height: 1.95;
}

.policy-section p + p,
.terms-section p + p,
.contact-block p + p {
  margin-top: 10px;
}

.policy-list,
.terms-list {
  margin: 12px 0 0;
  padding-left: 1.4em;
}

.policy-list li + li,
.terms-list li + li {
  margin-top: 8px;
}

.contact-block {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fcfaf6;
  border: 1px solid rgba(200, 163, 90, 0.26);
}

.footer {
  padding: 0 0 42px;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
}

.footer-links a {
  color: #3f372f;
  font-size: 0.94rem;
  font-weight: 700;
}

.copyright {
  color: #6f675d;
  font-size: 0.87rem;
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-text {
    font-size: 1.6rem;
  }

  .legal-main {
    padding: 28px 0 60px;
  }

  .legal-hero {
    padding: 20px 0 30px;
  }

  .legal-lead {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .legal-card.table-card {
    padding: 10px 16px;
  }

  .law-table,
  .law-table tbody,
  .law-table tr,
  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
  }

  .law-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .law-table tr:last-child {
    border-bottom: 0;
  }

  .law-table th,
  .law-table td {
    padding: 0;
    border-bottom: 0;
  }

  .law-table th {
    margin-bottom: 8px;
  }

  .article-card {
    padding: 26px 18px 30px;
  }
}
