:root {
  color-scheme: light dark;
  --background: #f6f7f5;
  --surface: #fffefc;
  --surface-muted: #f0f2f0;
  --surface-raised: #ffffff;
  --text: #191c1c;
  --muted: #56605e;
  --accent: #0f6b6c;
  --accent-hover: #084f51;
  --accent-soft: #d2efeb;
  --accent-soft-text: #0a3737;
  --border: #d0d7d4;
  --focus: #0f6b6c;
  --shadow: 0 22px 64px rgba(19, 34, 33, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 107, 108, 0.1), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline: 3px solid color-mix(in srgb, var(--focus) 48%, transparent);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.page-shell {
  width: min(100% - 32px, 800px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 79, 81, 0.15);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--accent);
}

.page-shell {
  margin-bottom: 52px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.language-nav a {
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
}

.language-panel {
  padding: clamp(28px, 6vw, 56px);
}

.language-panel[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 740;
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 46px);
  letter-spacing: -0.035em;
}

h2 {
  margin: 42px 0 12px;
  padding-top: 4px;
  font-size: clamp(20px, 5vw, 25px);
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.lead {
  max-width: 42rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.notice,
.contact-card {
  margin-block: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-muted);
}

.contact-card {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 72%),
    var(--surface-muted);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p,
.notice p {
  margin: 0;
}

.contact-card p + p,
.notice p + p {
  margin-top: 8px;
}

.email-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

ol,
ul {
  padding-left: 1.4em;
}

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

.meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.marketing-page {
  background:
    radial-gradient(circle at 8% 4%, rgba(41, 191, 232, 0.14), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(243, 78, 138, 0.1), transparent 28rem),
    var(--background);
}

.marketing-page .site-header,
.marketing-page .site-footer,
.marketing-shell {
  width: min(100% - 32px, 1080px);
}

.marketing-shell {
  overflow: hidden;
}

.marketing-panel {
  padding: clamp(30px, 6vw, 72px);
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
  min-height: 450px;
}

.hero-copy h1 {
  max-width: 13em;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.12;
}

.hero-copy .lead {
  max-width: 36rem;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.primary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover {
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(25, 28, 28, 0.18);
}

.secondary-action {
  color: var(--muted);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(56vw, 220px);
  height: auto;
  border-radius: 48px;
  box-shadow: 0 28px 70px rgba(49, 91, 234, 0.2);
}

.location-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
}

.location-ring-one {
  width: 300px;
  height: 300px;
}

.location-ring-two {
  width: 390px;
  height: 390px;
  border-style: dashed;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(38px, 7vw, 72px);
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-muted);
}

.feature-grid article > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.feature-grid h2 {
  margin: 18px 0 10px;
  padding: 0;
  font-size: 21px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.invitation-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.invitation-shell {
  width: min(100%, 440px);
  padding: clamp(30px, 7vw, 48px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.invitation-shell .brand-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.invitation-shell h1 {
  margin: 22px 0 10px;
  font-size: clamp(24px, 7vw, 32px);
}

.invitation-shell p {
  margin: 0;
  color: var(--muted);
}

.invitation-home-link {
  display: inline-block;
  margin-top: 24px;
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    width: min(100% - 20px, 800px);
    border-radius: 18px;
  }

  .language-nav {
    padding-inline: 18px;
  }

  .language-panel {
    padding-inline: 22px;
  }

  .marketing-page .site-header {
    align-items: center;
    flex-direction: row;
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-art {
    min-height: 280px;
    order: -1;
  }

  .hero-art img {
    width: 150px;
    border-radius: 34px;
  }

  .location-ring-one {
    width: 210px;
    height: 210px;
  }

  .location-ring-two {
    width: 270px;
    height: 270px;
  }

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

  .feature-grid article {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101414;
    --surface: #171b1b;
    --surface-muted: #1b2020;
    --surface-raised: #222827;
    --text: #e7ebe9;
    --muted: #bec7c4;
    --accent: #84d9cc;
    --accent-hover: #b5f1e9;
    --accent-soft: #0f4f50;
    --accent-soft-text: #b5f1e9;
    --border: #3f4846;
    --focus: #84d9cc;
    --shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  }
}
