:root {
  --navy: #082448;
  --navy-soft: rgba(8, 36, 72, 0.72);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif CJK SC", "Noto Serif CJK KR", "Times New Roman", serif;
}

body.is-menu-open {
  overflow: hidden;
}

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

.text-link {
  border-bottom: 1px solid currentColor;
  color: #1b6f9b;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #a8752c;
  border-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 33px 43px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand__tagline {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  padding-top: 7px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.global-nav__links {
  display: flex;
  align-items: center;
  gap: 31px;
}

.global-nav__link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 1;
}

.global-nav__label {
  position: relative;
  display: block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}

.global-nav__label-original,
.global-nav__label-hover {
  display: block;
  height: 1em;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-nav__label-hover {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.global-nav__link:hover .global-nav__label-original,
.global-nav__link:focus-visible .global-nav__label-original {
  transform: translateY(-100%);
}

.global-nav__link:hover .global-nav__label-hover,
.global-nav__link:focus-visible .global-nav__label-hover {
  transform: translateY(0);
}

.language-switch a {
  transition: opacity 0.2s ease;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.language-switch a {
  opacity: 0.64;
}

.language-switch a:hover {
  opacity: 1;
}

.language-switch a[aria-current="page"] {
  opacity: 1;
}

.menu-button {
  position: relative;
  z-index: 11;
  width: 27px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: none;
  gap: 6px;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button {
  min-width: 166px;
  min-height: 45px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.button::after {
  content: "→";
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.button--primary {
  background: rgba(255, 255, 255, 0.28);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.28);
}

.button:hover {
  color: var(--white);
  background: var(--navy-soft);
}

@media (max-width: 1120px) {
  .site-header {
    gap: 28px;
  }

  .global-nav {
    gap: 22px;
  }

  .global-nav__links {
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .global-nav__links {
    display: none;
  }

  body.is-menu-open .global-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    width: min(320px, 78vw);
    min-height: 100svh;
    padding: 96px 34px 40px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
    color: var(--white);
    background: var(--navy);
    box-shadow: -24px 0 50px rgba(8, 36, 72, 0.18);
  }

  body.is-menu-open .global-nav__link {
    font-size: 18px;
  }

  body.is-menu-open .menu-button span {
    background: var(--white);
  }

  body.is-menu-open .language-switch {
    color: var(--white);
  }

  body.is-menu-open .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(35deg);
  }

  body.is-menu-open .menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.is-menu-open .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-35deg);
  }

  .menu-button {
    display: grid;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 24px 28px 0;
  }

  .global-nav {
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .brand__name {
    font-size: 25px;
  }

  .brand__tagline {
    font-size: 11px;
  }

  .global-nav__links {
    display: none;
  }

  .button {
    min-width: 156px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 20px 20px 0;
    gap: 18px;
  }

  .brand__name {
    font-size: 22px;
  }

  .global-nav {
    gap: 16px;
  }

  .language-switch {
    gap: 10px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-wrap: wrap;
  }

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

  .button {
    width: min(100%, 220px);
  }
}
