/* ========================================
   HEADER - 固定ナビ・スクロール連動
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--clr-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: padding var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
  padding: 20px 0;
}

/* スクロール後の縮小状態 */
.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── ロゴエリア ────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--dur-fast);
}

.header-logo:hover {
  transform: scale(1.02);
}

.header-logo-symbol {
  height: 48px;
  width: auto;
  transition: height var(--dur-mid) var(--ease-out);
}

.site-header.scrolled .header-logo-symbol {
  height: 38px;
}

.header-logo-type {
  height: 20px;
  width: auto;
  transition: height var(--dur-mid) var(--ease-out);
}

.site-header.scrolled .header-logo-type {
  height: 16px;
}

/* ── PCナビゲーション ────────────────────── */
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-text);
  position: relative;
  padding: 8px 0;
  transition: color var(--dur-fast);
}

/* ホバー時に青色 */
.header-nav a:hover {
  color: var(--clr-primary);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--dur-mid) var(--ease-out);
}

.header-nav a:hover::after {
  width: 100%;
}

/* CTAボタン */
.header-cta {
  margin-left: 16px;
}

/* ── ハンバーガーボタン（モバイル用）────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── モバイルメニュー オーバーレイ ────────────── */
/* ========================================
   MOBILE MENU (ハンバーガーメニュー)
   ======================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background: var(--clr-primary);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

/* ── ヘッダー（ロゴ + 閉じるボタン）────────── */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px; /* PC headerと同じpadding */
  background: var(--clr-white);
  flex-shrink: 0;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.mobile-menu-logo-symbol {
  height: 42px; /* PC headerと同じ */
  width: auto;
}

.mobile-menu-logo-type {
  height: 18px; /* PC headerと同じ */
  width: auto;
}

.mobile-menu-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-close svg {
  width: 28px;
  height: 28px;
  stroke: var(--clr-primary);
  stroke-width: 3;
}

/* ── ナビゲーション ────────────────────── */
.mobile-menu-nav {
  flex: 1;
  padding: 32px 50px 50px; /* 左右50px、下50px */
}

.mobile-menu-nav ul {
  list-style: none;
}

.mobile-menu-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: var(--clr-white);
  font-size: 18px; /* 実寸18px（画像では36px） */
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--dur-fast);
}

.mobile-menu-nav a:active {
  opacity: 0.7;
}

.mobile-menu-arrow {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px; /* 実寸18px */
}

/* ── 電話案内カード ────────────────────── */
.mobile-menu-contact {
  background: #def0ff; /* 指定色 */
  margin: 0 50px 32px; /* 左右50px */
  padding: 28px 20px;
  border-radius: 20px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-menu-contact-title {
  color: var(--clr-primary);
  font-size: 16px; /* 実寸16px（画像では32px） */
  font-weight: 700;
  margin-bottom: 12px;
}

.mobile-menu-contact-company {
  color: var(--clr-text);
  font-size: 16px; /* 実寸16px（画像では32px） */
  font-weight: 700;
  margin-bottom: 12px;
}

/* 電話ボタン */
.mobile-menu-tel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--clr-white);
  color: var(--clr-primary);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 28px; /* 実寸28px（画像では56px） */
  font-weight: 800;
  font-family: var(--font-en);
  text-decoration: none;
  margin-bottom: 12px;
  transition: background var(--dur-mid) var(--ease-btn),
              color var(--dur-mid) var(--ease-btn);
  border: 2px solid var(--clr-primary);
  position: relative;
}

.mobile-menu-tel-button:active {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.mobile-menu-tel-icon {
  width: 24px; /* 実寸24px */
  height: 24px;
  transition: opacity var(--dur-fast);
}

.mobile-menu-tel-icon-blue {
  opacity: 1;
}

.mobile-menu-tel-icon-white {
  position: absolute;
  left: 50%;
  transform: translateX(-90px); /* アイコン位置調整 */
  opacity: 0;
}

.mobile-menu-tel-button:active .mobile-menu-tel-icon-blue {
  opacity: 0;
}

.mobile-menu-tel-button:active .mobile-menu-tel-icon-white {
  opacity: 1;
}

.mobile-menu-contact-hours {
  color: var(--clr-text);
  font-size: 13px; /* 実寸13px（画像では26px） */
  line-height: 1.7;
  margin-bottom: 16px;
}

.mobile-menu-contact-illus {
  max-width: 240px; /* 実寸240px */
  margin: 0 auto;
}

.mobile-menu-contact-illus img {
  width: 100%;
  height: auto;
}

/* ── レスポンシブ ────────────────────────── */
@media (max-width: 900px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0 20px;
  }

  .header-logo-symbol {
    height: 42px;
  }

  .site-header.scrolled .header-logo-symbol {
    height: 34px;
  }

  .header-logo-type {
    height: 18px;
  }

  .site-header.scrolled .header-logo-type {
    height: 14px;
  }
}
