/* ========================================
   セクション: ヘッダー
   Figma: 1038:4489 / 375×64
   ======================================== */

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  padding-left: 10px;
  background: var(--color-navy);
  gap: 6px;
}

/* ── ロゴエリア ── */
.header-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.header-logo-icon {
  width: 33px;
  height: 38px;
  flex-shrink: 0;
  object-fit: cover;
}

.header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.header-brand-logo {
  width: 144px;
  height: 17px;
  object-fit: contain;
}

.header-brand-tagline {
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-inverse);
}

/* ── CTAエリア ── */
.header-cta-group {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 64px;
  flex-shrink: 0;
}

.header-cta-phone,
.header-cta-mail,
.header-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 64px;
  color: var(--text-body);
  font-family: var(--font-jp);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.header-cta-phone {
  background: var(--color-yellow);
  gap: 7px;
  padding: 8px 4px;
}

.header-cta-mail {
  background: var(--color-turquoise);
  gap: 5px;
  padding: 3px 4px;
  text-align: center;
}

.header-hamburger {
  background: var(--bg-white);
  gap: 5px;
  padding: 10px 4px;
}

/* ── アイコン枠（SVGはユーザーが後で挿入） ── */
.header-cta-icon {
  display: inline-block;
  flex-shrink: 0;
}

.header-cta-icon--phone {
  width: 15px;
  height: 15px;
}

.header-cta-icon--mail {
  width: 15px;
  height: 17px;
}

/* ── タブレット用電話展開（SP非表示） ── */
.header-phone-expanded {
  display: none;
}

/* ── ハンバーガー3本線 ── */
.header-hamburger-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 21px;
}

.header-hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 1px;
}

/* ── ハンバーガーメニューパネル ── */
.hamburger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.hamburger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 80vw;
  height: auto;
  background: #ffffff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hamburger-menu.is-open {
  transform: translateX(0);
}

.hamburger-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-navy);
}

.hamburger-menu-title {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.hamburger-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.hamburger-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #bfbfbf;
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-navy);
  cursor: pointer;
}

.hamburger-menu-item:last-child {
  border-bottom: none;
}

.hamburger-menu-arrow {
  font-size: 14px;
  font-weight: 500;
  color: #bfbfbf;
}
