/* =========================
  リセット最小限
========================= */
button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* アクセシビリティ */
.u-visuallyHidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* =========================
  レイアウト
========================= */
.l-container {
  width: 95.5%;
  margin-inline: auto;
}

/* =========================
  ヘッダー
========================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px; /* SP高さ */
  z-index: 1000;
  color: #fff;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  height: 28px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

/* ====== ナビ（共通オブジェクト） ====== */
.nav {
  font-family: "Montserrat";
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  position: relative;
  display: inline-block;
  color: #d9d9d9;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.nav__link:hover {
  color: #fff;
  opacity: 1;
}

/* ====== CONTACTボタン ====== */
.header__actions {
  display: block;
}
.button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease;
}
.button--ghost {
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0px 0.3px 1px rgb(148, 143, 143);
}
.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.button--round {
  border-radius: 999px;
}
.button--full {
  display: block;
  width: 100%;
  text-align: center;
}
.button__label {
  display: inline-block;
  font-family: "Montserrat";
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: #d9d9d9;
}

/* ====== ハンバーガー ====== */
.header__toggle {
  display: flex;
  align-items: center;
}
.hamburger {
  width: 44px;
  height: 19px;
  display: grid;
  place-items: center;
}
.hamburger__bar {
  position: relative;
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger__bar + .hamburger__bar {
  margin-top: 6px;
}
/* 変形 */
.hamburger.is-open .hamburger__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}
.hamburger.is-open .hamburger__bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* =========================
  ドロワー
========================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  width: 100vw;
}
.drawer__overlay {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* panelを「下から + フェード」で出す */
.drawer__panel {
  position: absolute;
  inset: 0;
  transform: translateY(12px); /* 下から少し上がる */
  opacity: 0; /* 透明→表示 */
  transition: transform 0.22s ease, opacity 0.22s ease;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* 開いた時 */
.drawer.is-open .drawer__panel {
  transform: translateY(0);
  opacity: 1;
}
.drawer__header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 91%;
  margin: 0 auto;
}
.brand--compact .brand__logo {
  height: 33px;
}
.drawer__close {
  width: 42px;
  height: 44px;
  position: relative;
  color: #333;
}
.drawer__close::before,
.drawer__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 2px;
  background: #333;
}
.drawer__close::before {
  transform: translate(-50%, -50%) rotate(31deg);
}
.drawer__close::after {
  transform: translate(-50%, -50%) rotate(-31deg);
}

.drawer__body {
  padding: 45px 28px 40px;
}
.nav--drawer .nav__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: start;
}

.nav--drawer .nav__link {
  font-family: "Montserrat";
  display: block;
  font-size: 3.73vw;
  letter-spacing: 0;
  line-height: 1.5;
  color: #3e4042;
}
.nav__item--emphasis {
  padding-top: 10px;
  border: 0;
}
.nav__item--emphasis .button {
  min-height: 52px;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: 0.16em;
  border: 1px solid #555;
  color: #333;
  background: #fff;
}
.nav__item--emphasis .button:hover {
  background: #f3f3f3;
}

/* 開閉 */
.drawer.is-open {
  pointer-events: auto;
}
.drawer.is-open .drawer__overlay {
  opacity: 1;
}
.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

/* FVを過ぎたら（JSが .is-scrolled を付与） */
.header.is-scrolled {
  color: #333;
  background: #fff;
  backdrop-filter: none;
}

/* ナビ文字 */
.header.is-scrolled .nav__link {
  color: #737e9b;
  opacity: 1;
}
.header.is-scrolled .nav__link:hover {
  color: #031f69;
}
.is-scrolled .button__label {
  color: #fff;
  opacity: 1;
}

/* CONTACTボタン（白背景に合わせて） */
.header.is-scrolled .button--ghost {
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #737e9b;
}
.header.is-scrolled .button--ghost:hover {
  background: #031f69;
}

/* ハンバーガー（SP） */
.header.is-scrolled .hamburger__bar {
  background: #333;
}

.brand__logo--white,
.brand__logo--navy,
.brand__logo--sp_white,
.brand__logo--sp_navy {
  display: none;
  height: 28px; /* ここは好みでOK */
}
@media (min-width: 769px) {
  .brand__logo--white {
    display: block;
  }

  /* FV超え：navy */
  .header.is-scrolled .brand__logo--white {
    display: none;
  }
  .header.is-scrolled .brand__logo--navy {
    display: block;
  }
}

/* =========================
  ブレイクポイント
========================= */

/* PC用 */
@media (min-width: 992px) {
  .header {
    height: 72px;
  }
  .l-container {
    /* padding-inline: 32px; */
  }
  .brand__logo {
    height: 30px;
  }
  .header__inner {
    gap: 24px;
  }
  .header__nav {
    margin-inline: auto;
  }
  .nav__list {
    gap: 48px;
  }

  /* .drawer {
    display: none;
  } */
  .brand__logo--white,
  .brand__logo--navy {
    height: 34px;
  }
  .kaopa--logo {
    height: 44px;
  }
}

/* タブレット用 */
@media (min-width: 768px) and (max-width: 991px) {
  .header {
    height: 70px;
  }
  .brand__logo {
    height: 30px;
  }
}
@media (max-width: 768px) {
  .brand__logo--sp_white {
    display: block;
  }

  /* FV超え：sp_navy */
  .header.is-scrolled .brand__logo--sp_white {
    display: none;
  }
}
/* スマホ用 */
@media (max-width: 767px) {
  .header {
    height: 64px;
    width: 100vw;
  }
  .nav--global {
    display: none;
  }
  .header__actions {
    display: none;
  }
  .brand__logo--sp_white {
    display: block;
  }
  .brand__logo--sp_navy {
    display: none;
  }

  .brand__logo--white,
  .brand__logo--navy {
    display: none;
  }

  .header.is-scrolled .brand__logo--sp_white {
    display: none;
  }
  .header.is-scrolled .brand__logo--sp_navy {
    display: block;
  }
  .l-container {
    width: 91%;
  }
  .brand__logo--sp_white,
  .brand__logo--sp_navy {
    height: 33px;
  }
  .nav__item--emphasis {
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .brand__logo--sp_white {
    display: none;
  }
  .brand__logo--white {
    display: block;
  }
  .brand__logo--white:hover {
    opacity: 0.6;
  }
  .brand__logo--navy {
    display: none;
  }

  .brand__logo--sp_white,
  .brand__logo--sp_navy {
    display: none;
  }

  .header.is-scrolled .brand__logo--white {
    display: none;
  }
  .header.is-scrolled .brand__logo--navy {
    display: block;
  }
  .header__toggle {
    display: none;
  }
}

/* ちょい演出 */
.header .button--ghost:active {
  opacity: 0.9;
}
.nav--global .nav__link:active {
  opacity: 0.8;
}
