:root {
  --bg: #f7f5ef;
  --text: #222222;
  --muted: #6f6a61;
  --line: #e7e2d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.75;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.lang-switch {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--muted);
}

.lang-switch a {
  border-bottom: none;
  color: var(--muted);
  opacity: 0.55;
  text-decoration: none;
}

.lang-switch a.active {
  color: var(--text);
  opacity: 1;
}

.lang-switch span {
  color: var(--muted);
  opacity: 0.45;
  padding: 0 7px;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}

.hero {
  text-align: center;
  margin-top: 0;
  margin-bottom: 64px;
  padding-top: 0;
  border-top: none;
}

h1 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: clamp(60px, 9vw, 100px);
  font-weight: 300;
  letter-spacing: 0.22em;
  margin: 0 0 6px;
}

.hero .tagline {
  max-width: 660px;
  margin: 0 auto 18px;
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
}

.hero img {
  width: min(100%, 500px);
  height: auto;
  display: block;
  margin: 0 auto;
}

section:not(.hero) {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  margin-top: 56px;
}

h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
}

p {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 17px;
  text-align: left;
}

.contact {
  text-align: center;
}

.contact p {
  text-align: center;
}

.email {
  font-size: 20px;
}

@media (max-width: 640px) {
  .page {
    padding: 22px 18px 64px;
  }

  .lang-switch {
    font-size: 13px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 68px);
    letter-spacing: 0.13em;
    margin-bottom: 6px;
  }

  .hero .tagline {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .hero img {
    width: min(100%, 420px);
  }

  .hero {
    margin-bottom: 56px;
  }

  section:not(.hero) {
    padding-top: 44px;
    margin-top: 44px;
  }

  p {
    font-size: 16px;
  }
}