:root {
  --paper: #f4f2ed;
  --ink: #171715;
  --muted: #77736b;
  --line: #c9c5bc;
  --max: 1280px;
  --side: clamp(22px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
    "Yu Gothic", YuGothic, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--side);
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  font-size: 13px;
}

.nav a,
.site-footer a,
.email-link {
  position: relative;
}

.nav a::after,
.site-footer a::after,
.email-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.site-footer a:hover::after,
.site-footer a:focus-visible::after,
.email-link:hover::after,
.email-link:focus-visible::after {
  right: 0;
}

.hero {
  min-height: min(760px, calc(100svh - 88px));
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: end;
  padding-top: 80px;
  padding-bottom: 58px;
}

.hero-number,
.section-index {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville,
    "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(58px, 10.5vw, 146px);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.055em;
}

.disciplines {
  margin-top: clamp(38px, 6vw, 74px);
}

.disciplines p {
  margin: 0;
}

.disciplines-ja {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(18px, 2.1vw, 27px);
  letter-spacing: 0.09em;
}

.disciplines-en {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.045em;
}

.hero-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.section {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  min-height: 440px;
  padding-top: 54px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

.section-body h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville,
    "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.section-ja {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.09em;
}

.coming-soon {
  margin: clamp(86px, 14vw, 155px) 0 0;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  color: var(--muted);
}

.contact-section {
  min-height: auto;
}

.contact-intro {
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.contact-intro p {
  margin: 0;
  max-width: 39ch;
  color: var(--muted);
}

.email-link {
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 28px);
}

.email-link span {
  display: inline-block;
  margin-left: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 0.7em;
  transform: translateY(-0.16em);
}

.contact-form {
  margin-top: 62px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-form label {
  display: block;
  margin-bottom: 34px;
}

.contact-form label > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 0 12px;
  outline: 0;
  transition: border-color 160ms ease;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.form-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

button {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 15px 18px 14px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

button:hover,
button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

button span {
  margin-left: 28px;
}

.site-footer {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
  }

  .wordmark {
    font-size: 10px;
  }

  .nav {
    gap: 15px;
    font-size: 11px;
  }

  .hero {
    min-height: calc(100svh - 74px);
    grid-template-columns: 1fr;
    align-content: end;
    gap: 18px;
    padding-top: 52px;
    padding-bottom: 34px;
  }

  .hero-number {
    order: 2;
    margin-top: 30px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-note {
    order: 3;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 100px);
  }

  .section {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 370px;
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .coming-soon {
    margin-top: 74px;
  }

  .contact-intro {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 52px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  button {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .site-footer {
    min-height: 100px;
  }
}

@media (max-width: 520px) {
  :root {
    --side: 18px;
  }

  .site-header {
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-direction: column;
    gap: 13px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: calc(100svh - 98px);
  }

  .hero h1 {
    font-size: clamp(52px, 19vw, 86px);
  }

  .disciplines-ja {
    font-size: 17px;
    letter-spacing: 0.045em;
  }

  .disciplines-en {
    font-size: 11px;
  }

  .email-link {
    overflow-wrap: anywhere;
  }
}

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

  * {
    transition-duration: 0.001ms !important;
  }
}
