:root {
  --blue:        #005AAB;
  --blue-dark:   #368AD5;
  --blue-deeper: #003F78;
  --blue-vivid:  #0A70E3;
  --blue-light:  #EBF4FC;
  --white:       #ffffff;
  --off-white:   #F9F9F8;
  --gray-100:    #D0D0D9;
  --gray-200:    #9EAAB1;
  --gray-400:    #656568;
  --gray-600:    #5F6368;
  --text:        #191A1C;
  --sans: "Gen Interface JP", Helvetica, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --transition:  0.18s ease;
}

@font-face { font-family: "Gen Interface JP"; src: url("/fonts/gen-interface-jp/GenInterfaceJP-Regular.woff2") format("woff2"), local("Gen Interface JP"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gen Interface JP-Bold"; src: url("/fonts/gen-interface-jp/GenInterfaceJP-Bold.woff2") format("woff2"), local("Gen Interface JP-Bold"); font-weight: 700; font-display: swap; }

a { text-decoration: none; color: inherit; }
html, body { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }

.inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.site-header {
  display: flex; align-items: center; gap: 40px;
  padding: 32px 40px;
  position: relative;
  background: transparent;
  border-bottom: 1px solid #656568;
}
.site-header__logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.site-header__logo-mark {
  position: relative; width: 85px; height: 54.4px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.site-header__logo-text {
  font-family: var(--sans); font-weight: 700; font-size: 24px; color: var(--blue);
  white-space: normal; overflow-wrap: break-word;
}
.site-header__panels { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: 1; }

.header-top { display: flex; align-items: center; justify-content: flex-end; width: 100%; background: var(--white); }
.header-top__nav { display: inline-flex; align-items: center; gap: 0; }
.header-top__list { display: inline-flex; align-items: center; gap: 24px; padding: 0 32px 0 0; }
.header-top__item { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.header-top__link { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; transition: color var(--transition); }
.header-top__item:hover .header-top__link { color: var(--blue); }
.header-top__active-bar { position: absolute; left: 0; bottom: -4px; width: 40px; height: 1px; background-color: var(--blue-vivid); }
.header-top__divider { width: 1px; height: 24px; background-color: var(--gray-100); }

.lang-dropdown { position: relative; display: inline-flex; align-items: center; gap: 32px; padding: 0 0 0 24px; }
.lang-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lang-btn__label { font-family: var(--sans); font-weight: 400; font-size: 16px; color: var(--gray-600); }
.lang-btn__caret { font-size: 14px; color: var(--gray-600); transition: transform var(--transition); }
.lang-dropdown.open .lang-btn__caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; z-index: 300;
  background: var(--white); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu-item {
  all: unset; box-sizing: border-box; display: block; width: 100%;
  padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text);
  cursor: pointer; transition: background-color var(--transition);
}
.lang-menu-item:hover { background-color: var(--off-white); }
.lang-menu-item.selected { color: var(--blue); font-weight: 700; }

.header-bottom { display: flex; align-items: center; justify-content: space-around; gap: 8px; width: 100%; background: var(--white); }
.header-bottom__list { display: flex; align-items: center; justify-content: flex-end; gap: 32px; flex: 1; }
.header-bottom__item { display: inline-flex; align-items: center; gap: 4px; }
.header-bottom__link { font-family: var(--sans); font-weight: 400; font-size: 22px; color: var(--text); text-decoration: none; transition: color var(--transition); }
.header-bottom__item:hover .header-bottom__link { color: var(--blue); }
.header-bottom__external-icon { font-size: 18px; color: var(--text); }

.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px; background-color: var(--blue);
  text-decoration: none;
  transition: background-color var(--transition);
}
.header-cta__label { font-family: var(--sans); font-weight: 400; font-size: 16px; color: #ffffff; }
.header-cta:hover { background-color: var(--blue-dark); }
.header-cta:active { background-color: var(--blue-deeper); }

.hamburger-btn {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.hamburger-btn__icon { display: flex; flex-direction: column; gap: 5px; }
.hamburger-btn__icon span { display: block; width: 22px; height: 1px; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger-btn.open .hamburger-btn__icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.open .hamburger-btn__icon span:nth-child(2) { opacity: 0; }
.hamburger-btn.open .hamburger-btn__icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.hamburger-btn__label { display: none; font-size: 10px; line-height: 1; color: var(--text); margin-top: 10px; white-space: nowrap; }

.drawer-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 490;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.drawer-overlay.visible { opacity: 1; pointer-events: auto; }
.drawer-nav {
  position: fixed; top: 0; right: 0; width: 280px; height: 100%; background: var(--white);
  z-index: 500; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.drawer-nav.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); height: 52px; }
.drawer-title { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--gray-600); text-transform: uppercase; }
.drawer-close { width: 32px; height: 32px; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: 16px; }
.drawer-list { list-style: none; margin: 0; padding: 8px 0; }
.drawer-item { display: block; padding: 15px 24px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gray-100); transition: background var(--transition), color var(--transition); }
.drawer-item:hover { background: var(--off-white); color: var(--blue); }
.drawer-item.active { color: var(--blue); font-weight: 600; }
.drawer-item.nav-btn-primary { color: var(--blue); font-weight: 700; }
.drawer-item .icon-svg { font-size: 11px; color: var(--gray-400); margin-left: 6px; }
.drawer-divider { border-top: 0; }

.drawer-lang { padding: 16px 24px 20px; }
.drawer-lang__title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--gray-600); margin-bottom: 12px; }
.drawer-lang__list { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-lang__item {
  all: unset; box-sizing: border-box; cursor: pointer;
  padding: 8px 16px; border-radius: 100px; border: 1px solid var(--gray-200);
  font-family: var(--sans); font-size: 13px; color: var(--text); text-align: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.drawer-lang__item.selected { background: var(--blue); border-color: var(--blue); color: #fff; }

.icon-svg { font-size: 14px; vertical-align: -2px; }

@media (max-width: 768px) {
  .site-header { padding: 16px 20px; gap: 12px; }
  .site-header__logo { gap: 10px; }
  .site-header__logo-mark { width: 32px; height: 20.5px; flex-shrink: 0; }
  .site-header__logo-text { font-size: clamp(13px, 7vw - 9px, 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header__panels { flex: 0 0 auto; gap: 0; margin-left: auto; }
  .header-top__list, .header-top__divider { display: none; }
  .header-top { justify-content: flex-end; }
  .lang-dropdown { display: none; }
  .header-bottom { display: none; }
  .hamburger-btn { display: flex; align-items: center; height: 52px; flex-shrink: 0; }
  .hamburger-btn__label { display: block; }
  .drawer-overlay { display: block; }
}
