* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #243149;
  background: #f4f6f8;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: #67c7cf;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif JP", serif;
  font-size: 21px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.menu-pill {
  border: none;
  border-radius: 999px;
  background: #2f3652;
  color: #ffffff;
  font-family: "Noto Serif JP", serif;
  font-size: 19px;
  padding: 16px 38px;
  cursor: pointer;
}

.legacy-menu {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(22, 26, 36, 0.55);
  z-index: 30;
}

.legacy-menu.is-open {
  display: block;
}

.legacy-menu__panel {
  margin-left: auto;
  width: min(360px, 88vw);
  height: 100%;
  background: #ffffff;
  padding: 28px;
}

.legacy-menu__close {
  border: none;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
}

.legacy-menu__links {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.legacy-menu__links a {
  text-decoration: none;
  color: #2f3652;
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  overflow: hidden;
  background: #dbe4f2;
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    url("https://images.unsplash.com/photo-1528360983277-13d401cdc186?auto=format&fit=crop&w=1600&q=80")
    center center / cover no-repeat;
  filter: saturate(1.05);
}

.hero__glass {
  position: absolute;
  top: 14%;
  left: 25%;
  width: 33%;
  height: 42%;
  background: rgba(255, 255, 255, 0.14);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 12vh 8vw 10vh 30vw;
  max-width: 1100px;
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 1.28;
  font-weight: 700;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero__lead {
  max-width: 560px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 17px;
  line-height: 1.9;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.hero__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #3f3f3f;
  font-size: 13px;
}

.legacy-section {
  padding: 88px 7vw;
}

.legacy-section--plain {
  background: #ffffff;
}

.legacy-section--aqua {
  background: #c9eef0;
}

.legacy-heading {
  text-align: center;
  margin-bottom: 34px;
}

.legacy-heading p,
.legacy-copy__eyebrow {
  margin: 0 0 8px;
  color: #4f91a0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legacy-heading h2,
.legacy-copy h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.4;
  color: #243149;
}

.legacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.legacy-card {
  background: #f3f7f9;
  border: 1px solid #dfe8ec;
  padding: 28px 24px;
  min-height: 200px;
}

.legacy-card h3 {
  margin-top: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
}

.legacy-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.legacy-copy p:last-child {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.95;
}

.contact-box {
  max-width: 540px;
  margin: 0 auto;
  background: #f3f7f9;
  border: 1px solid #d7e2e5;
  padding: 26px;
  text-align: center;
}

.legacy-footer {
  padding: 24px;
  text-align: center;
  background: #eef2f5;
  color: #5a6673;
}

@media (max-width: 900px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .menu-pill {
    padding: 13px 24px;
    font-size: 16px;
  }

  .hero__glass {
    left: 12%;
    width: 56%;
    height: 32%;
  }

  .hero__content {
    padding: 16vh 8vw 12vh;
  }

  .legacy-cards {
    grid-template-columns: 1fr;
  }
}
