:root {
  --ink: #18202a;
  --muted: #657180;
  --paper: #faf8f3;
  --card: #fff;
  --accent: #b76635;
  --line: #ded9cf;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-underline-offset: .2em;
}

header,
main,
footer {
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

header a {
  color: var(--ink);
  text-decoration: none;
}

.header-tools,
nav,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-size: .5rem;
}

.language-switcher button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 3px 5px;
  cursor: pointer;
  font: inherit;
  line-height: 1.5;
  white-space: nowrap;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

nav {
  font-size: .92rem;
}

.brand {
  font-weight: 750;
  letter-spacing: .04em;
}

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: .2em 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 72px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.page {
  padding: 56px 0 80px;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.2;
}

.page h2 {
  margin-top: 2.4em;
}

.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #fff6ee;
}

.meta {
  color: var(--muted);
  font-size: .9rem;
}

footer {
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .44rem;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.copyright {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

body.home {
  --chrome: rgba(249, 255, 253, .72);
  --chrome-line: rgba(255, 255, 255, .72);
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #72d7d3;
}

body.home header,
body.home footer {
  position: fixed;
  z-index: 10;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  width: auto;
  max-width: none;
  margin: 0;
  border: 1px solid var(--chrome-line);
  border-radius: 14px;
  background: var(--chrome);
  box-shadow: 0 8px 30px rgba(4, 72, 80, .08);
  color: #102d36;
  backdrop-filter: blur(16px) saturate(1.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
}

body.home header {
  top: max(12px, env(safe-area-inset-top));
  min-height: 48px;
  padding: 7px 10px 7px 14px;
}

body.home header a {
  color: #102d36;
}

body.home .brand {
  font-size: .86rem;
}

body.home nav {
  gap: 12px;
  font-size: .68rem;
}

body.home .language-switcher {
  border-color: rgba(16, 45, 54, .16);
  background: rgba(255, 255, 255, .58);
}

body.home footer {
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 7px 11px;
  border-top: 1px solid var(--chrome-line);
  color: #234952;
}

body.home footer a {
  color: #164c56;
}

body.home main {
  width: 100%;
  max-width: none;
}

.experience,
.hero-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scene {
  overflow: hidden;
  isolation: isolate;
  background: #72d7d3;
  touch-action: pan-y;
}

.hero-video,
.hero-glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  background: #72d7d3;
  pointer-events: none;
}

.hero-glass {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(1, 95, 103, .08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%, transparent 72%, rgba(0, 59, 68, .08));
}

.concept-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(62px, 8vh, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 34px);
  width: min(92vw, 900px);
  margin: 0;
  transform: translate3d(calc(-50% + var(--copy-x, 0px)), var(--copy-y, 0px), 0);
  color: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-size: clamp(.72rem, 1.45vw, 1.05rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: .18em;
  text-shadow: 0 2px 13px rgba(0, 60, 68, .46);
  white-space: nowrap;
  pointer-events: none;
  transition: transform .18s ease-out;
}

.concept-word {
  position: relative;
  display: inline-block;
  padding: .72em 1em .68em 1.18em;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 999px;
  background: rgba(21, 141, 148, .2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 8px 24px rgba(0, 85, 92, .14);
  backdrop-filter: blur(7px) saturate(1.16);
  -webkit-backdrop-filter: blur(7px) saturate(1.16);
  animation: concept-float 5.6s ease-in-out infinite;
}

.concept-word:nth-child(2) {
  animation-delay: -.9s;
}

.concept-word:nth-child(3) {
  animation-delay: -1.8s;
}

.concept-word:nth-child(4) {
  animation-delay: -2.7s;
}

.concept-word:not(:last-child)::after {
  content: "・";
  position: absolute;
  top: 50%;
  right: calc(clamp(10px, 2.2vw, 34px) * -.66);
  padding-left: .18em;
  transform: translate(50%, -50%);
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 8px rgba(0, 70, 76, .4);
}

@keyframes concept-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 760px) {
  header {
    display: block;
  }

  .brand {
    display: block;
    margin-bottom: 12px;
  }

  .header-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  body.home header {
    display: flex;
    gap: 8px;
  }

  body.home .brand {
    margin: 0;
  }

  body.home .header-tools {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
  }

  body.home nav {
    display: none;
  }

  .concept-copy {
    bottom: 64px;
    gap: 7px;
    font-size: clamp(.58rem, 2.5vw, .72rem);
    letter-spacing: .1em;
  }

  .concept-word {
    padding: .68em .7em .64em .8em;
  }

  .concept-word:not(:last-child)::after {
    right: -5px;
  }
}

@media (max-width: 430px) {
  nav {
    gap: 10px;
    flex-wrap: wrap;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher button {
    flex: 1;
    padding-inline: 3px;
  }

  body.home .language-switcher {
    width: auto;
    gap: 0;
    padding: 1px;
  }

  body.home .language-switcher button {
    flex: 0 1 auto;
    padding-inline: 2px;
    font-size: .46rem;
  }

  body.home footer {
    padding-inline: 9px;
  }

  body.home .footer-bar {
    gap: 6px;
  }

  body.home .footer-links {
    gap: 5px;
  }

  .concept-copy {
    flex-wrap: wrap;
    row-gap: 7px;
    width: 88vw;
    max-width: 340px;
    white-space: normal;
  }

  .concept-word:not(:last-child)::after {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .concept-copy {
    transition: none;
  }

  .concept-word {
    animation: none;
  }
}
