:root {
  color-scheme: light;
  --paper: #f8f8f5;
  --paper-soft: #efefeb;
  --ink: #132033;
  --muted: #667486;
  --line: rgba(19, 32, 51, 0.12);
  --night: #0f1b2a;
  --blue-gray: #8190a1;
  --ember: #d57a36;
  --ember-soft: rgba(213, 122, 54, 0.16);
  --max: 720px;
  --side: clamp(22px, 6vw, 56px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(213, 122, 54, 0.09), transparent 22rem),
    linear-gradient(180deg, #fbfbf8 0%, var(--paper) 44%, var(--paper-soft) 100%);
  font-family:
    "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: #fff;
  background: var(--night);
  border-radius: 4px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px var(--side);
  color: rgba(19, 32, 51, 0.74);
  background: rgba(248, 248, 245, 0.76);
  border-bottom: 1px solid rgba(19, 32, 51, 0.05);
  backdrop-filter: blur(14px);
}

.site-word,
.site-nav,
.lang-switch {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.site-word {
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
}

.site-nav {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

.site-nav a,
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.lang-switch a:hover {
  color: var(--night);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(102, 116, 134, 0.72);
  white-space: nowrap;
}

.lang-switch [aria-current="page"] {
  color: var(--night);
}

main {
  overflow: hidden;
}

.hero,
.intro,
.traces,
.side,
.site-footer {
  width: min(100%, calc(var(--max) + var(--side) * 2));
  margin-inline: auto;
  padding-inline: var(--side);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96svh;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 74px;
}

.hero::after {
  content: "";
  position: absolute;
  right: var(--side);
  bottom: 34px;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0.72;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-gray);
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--blue-gray);
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 28px;
  color: var(--night);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(2.55rem, 13vw, 5.75rem);
  font-weight: 400;
  line-height: 1.08;
}

.hero-title-ja {
  max-width: 9em;
  font-size: clamp(2.34rem, 10.2vw, 5.15rem);
  line-height: 1.12;
}

.hero-title-ja span,
.hero-note-ja span {
  display: block;
}

h2 {
  margin-bottom: 28px;
  color: var(--night);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(1.58rem, 6vw, 2.45rem);
  font-weight: 400;
  line-height: 1.42;
}

.hero-note {
  max-width: 25em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.12rem);
}

.presence-photo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(230px, 62vw);
  max-height: 170px;
  margin: 42px 0 0;
}

.presence-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 170px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(15, 27, 42, 0.08);
  filter: saturate(0.78) contrast(0.95) brightness(0.98);
  object-fit: contain;
  opacity: 0.9;
}

.intro,
.traces,
.side {
  padding-top: 78px;
  padding-bottom: 78px;
}

.intro-lines {
  max-width: 35em;
  color: var(--muted);
  font-size: clamp(1.02rem, 3.9vw, 1.18rem);
}

.intro-lines p {
  margin-bottom: 0.72em;
}

.traces {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trace-list {
  display: grid;
  gap: 0;
}

.trace-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.trace-item:first-child {
  border-top: 0;
}

.trace-item::before {
  content: "";
  position: absolute;
  top: 31px;
  left: -18px;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.trace-name {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 5vw, 1.64rem);
  line-height: 1.24;
}

.trace-text {
  max-width: 34em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.82;
}

.trace-item:hover .trace-name,
.trace-item:focus-visible .trace-name {
  color: #162941;
}

.trace-item:hover::before,
.trace-item:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.side-note {
  max-width: 29em;
  margin-bottom: 34px;
  color: var(--muted);
}

.side-note p {
  margin-bottom: 0.8em;
}

.side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.side-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--night);
  font-size: 0.94rem;
  text-decoration-color: rgba(19, 32, 51, 0.2);
}

.side-links a::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 14px;
  background: rgba(129, 144, 161, 0.38);
  border-radius: 999px;
}

.side-links a:last-child::after {
  display: none;
}

.side-links a:hover {
  color: #2b425e;
  text-decoration-color: var(--ember);
}

.site-footer {
  padding-top: 64px;
  padding-bottom: 38px;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0.3em;
}

.site-footer p:first-child {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.site-footer small {
  display: block;
  margin-top: 26px;
  font-size: 0.78rem;
}

.quiet-door-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  font-size: 0.86rem;
}

.quiet-door-links a {
  color: rgba(102, 116, 134, 0.84);
  text-decoration-color: rgba(19, 32, 51, 0.18);
}

.quiet-door-links a:hover {
  color: var(--night);
  text-decoration-color: rgba(213, 122, 54, 0.52);
}

.language-note {
  position: fixed;
  z-index: 12;
  right: var(--side);
  bottom: 18px;
  left: var(--side);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 360px;
  margin-inline: auto;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(248, 248, 245, 0.9);
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 7px;
  box-shadow: 0 10px 26px rgba(15, 27, 42, 0.08);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
  line-height: 1.5;
}

.language-note a {
  color: var(--night);
  text-decoration-color: rgba(213, 122, 54, 0.48);
}

.language-note button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.language-note button:hover {
  color: var(--night);
  background: rgba(19, 32, 51, 0.04);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.quiet-page {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%),
    radial-gradient(circle at 74% 18%, rgba(213, 122, 54, 0.08), transparent 18rem),
    linear-gradient(180deg, #faf9f5 0%, #f4f1eb 55%, #ece9e2 100%);
}

.move-stage {
  display: grid;
  min-height: 100svh;
  align-content: center;
  width: min(100%, calc(var(--max) + var(--side) * 2));
  margin-inline: auto;
  padding: clamp(42px, 10vw, 96px) var(--side);
}

.move-kicker {
  margin-bottom: 18px;
  color: var(--blue-gray);
  font-size: 0.86rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.move-message {
  max-width: 8.8em;
  margin: 0;
  color: var(--night);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: clamp(2.1rem, 9.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.38;
}

.move-message span,
.move-copy span {
  display: block;
}

.move-copy {
  max-width: 24em;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 3.8vw, 1.14rem);
  line-height: 1.9;
}

.move-link {
  width: fit-content;
  margin-top: 34px;
  color: var(--night);
  font-size: 0.95rem;
  text-decoration-color: rgba(213, 122, 54, 0.48);
}

.quiet-page-footer {
  position: fixed;
  right: var(--side);
  bottom: 22px;
  left: var(--side);
  color: rgba(102, 116, 134, 0.72);
  font-size: 0.78rem;
  pointer-events: none;
}

.quiet-page-footer a {
  color: inherit;
  pointer-events: auto;
  text-decoration-color: rgba(102, 116, 134, 0.24);
}

@media (min-width: 720px) {
  .site-header {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero {
    min-height: 94svh;
    padding-top: 120px;
  }

  .hero-title-ja {
    max-width: 8.6em;
    margin-bottom: 30px;
    font-size: clamp(4rem, 5.4vw, 4.45rem);
    line-height: 1.12;
  }

  .hero-note-ja {
    max-width: 24em;
  }

  .presence-photo {
    position: absolute;
    right: var(--side);
    bottom: 74px;
    width: 260px;
    max-height: 196px;
    margin: 0;
  }

  .presence-photo img {
    max-height: 196px;
  }

  .hero-ja .presence-photo {
    bottom: 92px;
  }

  .trace-item {
    grid-template-columns: minmax(168px, 0.38fr) 1fr;
    align-items: baseline;
    gap: 28px;
    padding: 28px 0;
  }

  .trace-text {
    padding-top: 0.2em;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-top: 15px;
    padding-bottom: 15px;
    gap: 12px;
  }

  .header-right {
    gap: 10px;
  }

  .site-nav {
    gap: 10px;
    font-size: 0.76rem;
  }

  .lang-switch {
    font-size: 0.76rem;
  }

  .hero {
    min-height: 93svh;
    padding-bottom: 58px;
  }

  .presence-photo {
    width: min(204px, 58vw);
    max-height: 154px;
    margin-top: 36px;
  }

  .presence-photo img {
    max-height: 154px;
  }

  .intro,
  .traces,
  .side {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .trace-item::before {
    left: -12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
