:root {
  --ink: #1f2328;
  --blue: #e8590c;
  --blue-dark: #c94d09;
  --paper: #f8f8f7;
  --muted: #6b7178;
  --line: #e7e9ec;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 82px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(231, 233, 236, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 118px; height: auto; }

.global-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav a {
  position: relative;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.global-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--blue);
  transition: right .25s ease;
}

.global-nav a:not(.nav-cta):hover::after,
.global-nav a:not(.nav-cta):focus-visible::after { right: 0; }

.nav-cta {
  padding: 11px 20px;
  color: var(--white);
  background: var(--blue);
  border-radius: 4px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  display: block;
  content: "";
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: .25s;
}

.menu-btn[aria-expanded="true"] span { opacity: 0; }
.menu-btn[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.page-hero {
  position: relative;
  padding: 180px 0 92px;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  top: -38vmax;
  right: -20vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 113, 28, .16), rgba(242, 113, 28, .05) 46%, transparent 72%);
}

.page-hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.updated { margin: 24px 0 0; color: var(--muted); font-size: .86rem; }

.legal { padding: 96px 0 128px; }
.legal-inner { width: min(100%, 880px); margin: 0 auto; }

.policy-intro {
  margin: 0 0 72px;
  padding: 30px 32px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  background: var(--paper);
}

.policy-section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 22px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.policy-section h2 .number {
  display: inline-block;
  min-width: 42px;
  color: var(--blue);
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .06em;
}

.policy-section p { margin: 0; color: var(--muted); }

.policy-section ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.policy-section li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.policy-section li::before {
  content: "";
  position: absolute;
  top: .88em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.contact-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

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

.contact-table th {
  width: 180px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
}

.contact-table td { color: var(--muted); }
.contact-table a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.site-footer {
  padding: 64px 0 30px;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand { max-width: 330px; }
.footer-brand .brand-logo { width: 236px; }
.footer-brand p { margin: 20px 0 0; color: var(--muted); font-size: .85rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #9aa0a6;
  font-size: .72rem;
}

.to-top { color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .container { width: min(calc(100% - 40px), var(--max)); }
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-btn { position: relative; z-index: 2; display: block; }
  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 12vw;
    background: var(--white);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .global-nav.open { transform: none; }
  .global-nav a { font-size: 1.2rem; }
  .nav-cta { margin-top: 10px; color: var(--white); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .page-hero { padding: 142px 0 68px; }
  .page-hero h1 { font-size: 2rem; }
  .legal { padding: 64px 0 88px; }
  .policy-intro { margin-bottom: 48px; padding: 24px 20px; }
  .policy-section { padding: 40px 0; }
  .policy-section h2 .number { display: block; min-width: 0; margin-bottom: 6px; }
  .contact-table,
  .contact-table tbody,
  .contact-table tr,
  .contact-table th,
  .contact-table td { display: block; width: 100%; }
  .contact-table th { padding: 16px 4px 4px; border-bottom: 0; }
  .contact-table td { padding: 0 4px 16px; }
  .footer-top,
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
