@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --background: #ffffff;
  --foreground: #1f3344;
  --muted: #6f7d89;
  --muted-soft: #f7f8f8;
  --line: #e7ebef;
  --line-strong: #dce2e7;
  --button: #1f3344;
  --button-hover: #172838;
  --content-width: 760px;
  --wide-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--foreground);
}

.site-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(231, 235, 239, 0.78);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(calc(100% - 48px), var(--wide-width));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(31, 51, 68, 0.15);
  border-radius: 4px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.small {
  width: 20px;
  height: 20px;
}

.brand-name,
.footer-brand-name {
  color: rgba(31, 51, 68, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--foreground);
}

.nav-cta {
  min-height: 32px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--button);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.primary-link:hover,
.primary-link:focus-visible {
  background: var(--button-hover);
  color: #ffffff;
}

.nav-cta:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

.nav-cta.mobile {
  display: none;
}

.page-main {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 144px 0 104px;
}

.page-hero {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.page-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.page-hero p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 2;
}

.page-hero .updated {
  margin-top: 22px;
  color: rgba(111, 125, 137, 0.82);
  font-size: 0.82rem;
  line-height: 1.6;
}

.legal-content {
  display: grid;
  gap: 0;
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--foreground);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 2;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p {
  margin-top: 16px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 1.15rem;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.soft-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted-soft);
}

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

.footer-cta {
  width: min(calc(100% - 48px), var(--wide-width));
  margin: 0 auto;
  padding: 78px 0;
  text-align: center;
}

.footer-cta h2 {
  margin: 0 0 12px;
  color: var(--foreground);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.footer-cta p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.8;
}

.primary-link {
  min-height: 48px;
  padding: 0 32px;
  border-radius: 6px;
  background: var(--button);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 160ms ease, transform 160ms ease;
}

.footer-bottom {
  width: min(calc(100% - 48px), var(--wide-width));
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  flex-wrap: wrap;
}

.footer-copy {
  color: rgba(111, 125, 137, 0.8);
  font-size: 0.76rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-links a {
  position: relative;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: color 160ms ease;
}

.footer-links a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--line-strong);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links a:focus-visible,
.nav-cta:focus-visible,
.primary-link:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid rgba(31, 51, 68, 0.18);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .nav-inner {
    width: min(calc(100% - 32px), var(--wide-width));
  }

  .nav-links {
    display: none;
  }

  .nav-cta.mobile {
    display: inline-flex;
  }

  .page-main {
    width: min(calc(100% - 36px), var(--content-width));
    padding: 118px 0 76px;
  }

  .page-hero {
    padding-bottom: 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .page-hero p,
  .legal-section p,
  .legal-section li {
    font-size: 0.94rem;
    line-height: 1.9;
  }

  .legal-section {
    padding: 28px 0;
  }

  .footer-cta {
    width: min(calc(100% - 36px), var(--wide-width));
    padding: 60px 0;
  }

  .footer-bottom {
    width: min(calc(100% - 36px), var(--wide-width));
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    padding: 0;
  }

  .footer-links a + a::before {
    content: none;
  }
}
