/* ==========================================================================
   Header / Global Nav
   ========================================================================== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-sp);
  background-color: var(--color-base);
  z-index: 1200;
  box-shadow: 0 2px 8px rgba(44, 40, 35, 0.06);
}

.l-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.l-header__logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.l-header__logo-img {
  width: 99px;
  height: 99px;
  object-fit: contain;
}

.l-header__logo-text {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  white-space: nowrap;
}

.l-header__cta {
  display: none;
  width: 162px;
  height: 46px;
  flex-shrink: 0;
  background-color: var(--color-accent);
  font-size: 2.4rem;
  text-align: center;
  transition: opacity 0.2s ease;
}

.l-header__cta:hover {
  opacity: 0.85;
}

.l-header__cta-text {
  display: inline-block;
  margin-bottom: 4px;
}

.l-header__menu-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5.5px;
  width: 51px;
  height: 51px;
  flex-shrink: 0;
  z-index: 1300;
}

.l-header__menu-btn span {
  display: block;
  width: 27.28px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.l-header__menu-btn.is-open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.l-header__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.l-header__menu-btn.is-open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Nav: SP = slide-in drawer, PC = inline row */
.l-nav {
  position: fixed;
  top: var(--header-height-sp);
  right: 0;
  bottom: 0;
  width: min(271px, 78vw);
  background-color: var(--color-base);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 96px;
  padding: 40px 20px 90px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1200;
  overflow-y: auto;
}

.l-nav.is-open {
  transform: translateX(0);
}

.l-nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height-sp);
  background-color: rgba(44, 40, 35, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1100;
}

.l-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.l-nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}

.l-nav__link {
  font-weight: 700;
  font-size: 1.6rem;
  white-space: nowrap;
}

.l-nav__cta {
  /* 221px幅は.l-navのコンテンツ幅と一致し、以前は結果的に全幅表示だった。
     縮小後も中央揃えに見えるよう align-self:center を明示する。 */
  align-self: center;
  position: relative;
  display: inline-flex;
  width: 193px; /* 221px → 193px（約12.7%減） */
  max-width: 100%;
  height: 56px; /* 62px → 56px（約9.7%減） */
  background-color: var(--color-accent);
  font-size: 2.2rem; /* 2.4rem → 2.2rem */
}

.l-nav__cta::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 100%;
  height: 100%;
  background-color: var(--color-accent-dark);
  z-index: -1;
}

body.no-scroll {
  overflow: hidden;
}

@media (min-width: 768px) {
  .l-header {
    height: var(--header-height-pc);
  }

  .l-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 54px;
  }

  .l-header__logo-img {
    width: 99px;
    height: 99px;
  }

  .l-header__logo-text {
    font-size: 2rem;
  }

  .l-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    transform: none;
    transition: none;
    overflow: visible;
  }

  .l-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .l-nav__item {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .l-nav__divider {
    width: 1px;
    height: 42px;
    background-color: #d9d9d9;
  }

  .l-nav-overlay {
    display: none;
  }

  .l-nav__cta {
    display: none;
  }

  .l-header__cta {
    display: inline-flex;
  }

  .l-header__menu-btn {
    display: none;
  }
}

