:root {
  color-scheme: light;
  --ink: #1a3045;
  --muted: #617184;
  --line: #dce4ed;
  --blue: #245b8e;
  --bg: #f4f7fa;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  max-width: 1040px;
  padding: 0 24px;
  margin: auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 186px;
  height: auto;
}

.lang {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang a {
  font-size: 13px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

.lang a:hover,
.lang a:focus-visible {
  background: #e8f1fa;
  color: var(--blue);
}

.lang a[aria-current=page] {
  background: #e8f1fa;
  font-weight: 700;
  color: var(--blue);
}

main.container {
  width: 100%;
  flex: 1;
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 780px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(31px, 5vw, 52px);
  line-height: 1.22;
  letter-spacing: -.045em;
  margin: 16px 0 20px;
}

.lead {
  color: #526679;
  font-size: 17px;
  margin: 0 auto;
  max-width: 720px;
}

.lead-en {
  text-wrap: balance;
}

.lead-en .brand-name {
  white-space: nowrap;
}

.notice {
  margin: 26px auto 0;
  max-width: 700px;
  padding: 15px 22px;
  background: #eaf1f7;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  color: #435c70;
  font-size: 14px;
}

.section-title {
  text-align: center;
  font-size: 21px;
  margin: 0 0 22px;
  letter-spacing: -.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  padding: 30px 25px;
  border-radius: 16px;
  min-height: 290px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(31, 52, 74, .035);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: #8cafd1;
  box-shadow: 0 14px 34px rgba(31, 52, 74, .1);
  outline: none;
}

.card-icon {
  display: grid;
  place-items: center;
  background: #e9f0f6;
  color: #2d587b;
  height: 58px;
  width: 58px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.card:nth-child(2) .card-icon {
  background: #e7f3ed;
  color: #267454;
}

.card:nth-child(3) .card-icon {
  background: #ecedf7;
  color: #515b92;
}

.card-icon svg {
  height: 29px;
  width: 29px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -.025em;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.visit {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  padding: 25px 12px;
  color: #7d8998;
  font-size: 12px;
}

.footer p {
  margin: 4px 0;
}

/* Keep the translated headlines fluid, with natural wrapping on small screens. */
html:lang(en) .hero h1,
html:lang(ja) .hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -.035em;
  text-wrap: balance;
}

/* Fit typical desktop heights by reducing space, not hiding overflowing content. */
@media (min-width: 741px) {
  html:lang(en) main.container,
  html:lang(ja) main.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(20px, 4vh, 48px);
    padding-bottom: clamp(20px, 4vh, 48px);
  }

  html:lang(en) .hero,
  html:lang(ja) .hero {
    width: 100%;
    max-width: 920px;
    margin-bottom: clamp(20px, 3vh, 36px);
  }

  html:lang(en) .hero h1,
  html:lang(ja) .hero h1 {
    white-space: nowrap;
    margin: 12px 0 14px;
  }

  html:lang(en) .notice,
  html:lang(ja) .notice {
    margin-top: 18px;
    padding: 12px 20px;
  }

  html:lang(en) .section-title,
  html:lang(ja) .section-title {
    margin-bottom: 16px;
  }

  html:lang(en) .card,
  html:lang(ja) .card {
    min-height: 230px;
    padding: 22px;
  }

  html:lang(en) .card-icon,
  html:lang(ja) .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  html:lang(en) .card p,
  html:lang(ja) .card p {
    margin-bottom: 18px;
  }

  html:lang(en) .footer,
  html:lang(ja) .footer {
    padding: 14px 12px;
  }
}

@media (min-width: 741px) and (max-height: 760px) {
  html:lang(en) main.container,
  html:lang(ja) main.container {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  html:lang(en) .hero,
  html:lang(ja) .hero {
    margin-bottom: 16px;
  }

  html:lang(en) .hero h1,
  html:lang(ja) .hero h1 {
    font-size: clamp(28px, 4.2vw, 40px);
    margin: 8px 0 10px;
  }

  html:lang(en) .lead,
  html:lang(ja) .lead,
  html:lang(en) .notice,
  html:lang(ja) .notice {
    line-height: 1.5;
  }

  html:lang(en) .notice,
  html:lang(ja) .notice {
    margin-top: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  html:lang(en) .section-title,
  html:lang(ja) .section-title {
    margin-bottom: 12px;
  }

  html:lang(en) .card,
  html:lang(ja) .card {
    min-height: 200px;
    padding: 16px;
  }

  html:lang(en) .card-icon,
  html:lang(ja) .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  html:lang(en) .card p,
  html:lang(ja) .card p {
    margin-bottom: 14px;
  }

  html:lang(en) .footer,
  html:lang(ja) .footer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media(max-width:740px) {
  .header {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .wordmark img {
    width: 140px;
  }

  .lang a {
    padding: 5px 6px;
    font-size: 12px;
  }

  .container {
    padding: 0 18px;
  }

  main.container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .lead {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    min-height: 0;
    padding: 23px;
  }

  .card-icon {
    margin-bottom: 14px;
  }

  .card p {
    margin-bottom: 14px;
  }

}
