:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #0f766e;
  --color-primary-light: #14b8a6;
  --color-primary-dark: #0d5c56;
  --color-accent: #e0f2f1;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Noto Sans JP", system-ui, sans-serif;
  --font-display: "Outfit", "Noto Sans JP", system-ui, sans-serif;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-light);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Home marketing page */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 48px) 24px 80px;
  overflow: hidden;
  color: #fff;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(45, 212, 191, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(15, 118, 110, 0.5) 0%, transparent 50%),
    linear-gradient(155deg, #0b3d3a 0%, #134e4a 42%, #0f766e 100%);
  animation: home-bg-shift 14s ease-in-out infinite alternate;
}

@keyframes home-bg-shift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  text-align: center;
}

.home-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: home-fade-up 0.8s ease both;
}

.home-headline {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
  animation: home-fade-up 0.8s ease 0.12s both;
}

.home-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  animation: home-fade-up 0.8s ease 0.24s both;
}

.home-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: home-fade-up 0.8s ease 0.36s both;
}

.home-cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.home-cta:hover {
  transform: translateY(-2px);
}

.home-cta--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.home-cta--primary:hover {
  color: var(--color-primary-dark);
  background: #f0fdfa;
}

.home-cta--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.home-cta--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-about {
  padding: 88px 24px;
  background: var(--color-surface);
  text-align: center;
}

.home-section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.home-section-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.home-links {
  padding: 0 0 100px;
  background: var(--color-surface);
}

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.home-link-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  border-top: 2px solid var(--color-primary);
  color: inherit;
  transition: background 0.2s;
}

.home-link-item:hover {
  color: inherit;
  background: var(--color-bg);
}

.home-link-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.home-link-item strong {
  font-size: 1.1rem;
}

.home-link-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .home-link-grid {
    grid-template-columns: 1fr;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-list a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 48px) 24px 80px;
  background: linear-gradient(160deg, #0f766e 0%, #134e4a 50%, #0d3d3a 100%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.hero-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-decoration {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hide-mobile {
  display: inline;
}

/* Intro */
.intro {
  padding: 80px 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-card {
  background: var(--color-surface);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.intro-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.intro-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.intro-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Policy */
.policy {
  padding: 60px 0 100px;
}

.policy .container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  margin-bottom: 4px;
}

.toc-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.policy-content {
  background: var(--color-surface);
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.policy-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-accent);
}

.policy-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.policy-subheading:first-of-type {
  margin-top: 8px;
}

.external-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.external-links li {
  margin-bottom: 8px;
}

.external-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.external-links a::after {
  content: "↗";
  font-size: 0.85em;
  opacity: 0.6;
}

.policy-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary-light);
}

.contact-cta {
  margin-bottom: 20px;
}

.contact-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.contact-button:hover {
  background: var(--color-primary-light);
  color: #fff !important;
  transform: translateY(-1px);
}

.policy-section p {
  margin-bottom: 16px;
  color: var(--color-text);
}

.policy-section ul,
.policy-section ol {
  margin: 0 0 16px 1.5em;
  color: var(--color-text);
}

.policy-section li {
  margin-bottom: 8px;
}

.contact-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 8px;
}

.contact-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
}

.contact-box dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.contact-box dd {
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
  color: #fff;
}

.nav-list a[aria-current="page"] {
  color: var(--color-primary);
}

.hidden {
  display: none;
}

/* Contact page */
.hero--compact {
  min-height: auto;
  padding: calc(var(--header-height) + 64px) 24px 64px;
}

.container--narrow {
  max-width: 640px;
}

.contact-section {
  padding: 0 0 100px;
  margin-top: -24px;
}

.contact-form-card {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.required {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  margin-left: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.form-submit {
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.intro-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.intro-card--link:hover {
  color: inherit;
}

.intro-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Thanks page */
.thanks-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 24px 80px;
}

.thanks-card {
  background: var(--color-surface);
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 64px;
  border-radius: 50%;
}

.thanks-card h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.thanks-card p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.thanks-card .hero-cta {
  color: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .policy .container {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .policy-content {
    padding: 32px 24px;
  }

  .contact-box dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-box dt {
    margin-top: 12px;
  }

  .contact-box dt:first-child {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hide-mobile {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 100px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-card {
    padding: 28px 20px;
  }
}
