:root {
  --brand: #0aa894;
  --brand-dark: #087867;
  --brand-soft: #eafaf7;
  --ink: #172332;
  --text: #4d5968;
  --muted: #788494;
  --line: #e4e9ee;
  --surface: #ffffff;
  --background: #f7faf9;
  --warning: #fff8e8;
  --warning-border: #f0d58c;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 18px 50px rgba(24, 54, 67, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: min(420px, 52vw);
}

.brand:hover { text-decoration: none; }

.brand-logo {
  width: 100%;
  max-width: 360px;
  min-width: 170px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-link,
.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.header-link {
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
}

.home-link {
  background: #fff;
  border: 1px solid rgba(10, 168, 148, 0.28);
  box-shadow: 0 8px 20px rgba(8, 120, 103, 0.08);
}

.home-link:hover,
.header-link:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

.hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(circle at 5% 10%, rgba(10, 168, 148, 0.16), transparent 28%),
    radial-gradient(circle at 94% 10%, rgba(255, 207, 86, 0.18), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero-content { min-width: 0; }

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-copy {
  max-width: 860px;
  margin: 0;
  font-size: 18px;
  color: #536172;
}

.hero-logo-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf9 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 240px;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
}

.hero-logo-card p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.meta-card {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  box-shadow: 0 10px 24px rgba(24, 54, 67, 0.06);
}

.meta-card > div {
  background: #fff;
  padding: 18px 20px;
}

.meta-card span,
.meta-card strong {
  display: block;
}

.meta-card span {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-card strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.policy-section { padding: 54px 0 74px; }

.policy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
}

.toc-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(24, 54, 67, 0.05);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 800;
}

.toc-links {
  display: grid;
  gap: 4px;
}

.toc-links a {
  display: block;
  padding: 8px 0;
  color: #667382;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.toc-links a:hover { color: var(--brand-dark); }

.policy-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice {
  margin-bottom: 42px;
  padding: 18px 20px;
  border: 1px solid var(--warning-border);
  border-radius: 14px;
  background: var(--warning);
  color: #69562d;
}

.policy-card section { scroll-margin-top: 110px; }

.policy-card section + section {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

p { margin: 0 0 16px; }

ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

li + li { margin-top: 8px; }

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f6fbfa;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td { border-bottom: 0; }

.contact-box {
  padding: 22px;
  border: 1px solid rgba(10, 168, 148, 0.22);
  border-radius: 16px;
  background: var(--brand-soft);
}

.contact-box p { margin: 0 0 8px; }
.contact-box p:last-child { margin-bottom: 0; }

.footer-note {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p { margin: 0; }

/* Tablet */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand {
    max-width: 320px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    order: -1;
    min-height: unset;
  }

  .hero-logo {
    max-width: 280px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc-card {
    overflow-x: auto;
  }

  .toc-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 8px 24px;
    min-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    max-width: 250px;
  }

  .brand-logo {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-link,
  .home-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding: 46px 0 38px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-logo-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-logo {
    max-width: 220px;
  }

  .meta-card {
    grid-template-columns: 1fr;
  }

  .policy-section {
    padding: 28px 0 48px;
  }

  .toc-card {
    padding: 16px;
  }

  .toc-links {
    grid-template-columns: 1fr;
  }

  .policy-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .policy-card section + section {
    margin-top: 36px;
    padding-top: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 17px;
  }

  th,
  td {
    padding: 13px 12px;
    font-size: 14px;
  }

  .footer-inner {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer,
  .header-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    padding: 20px 0;
    background: #fff;
  }

  .hero-layout,
  .policy-layout {
    display: block;
  }

  .hero-logo-card {
    display: none;
  }

  .policy-section {
    padding: 0;
  }

  .policy-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
