@charset "UTF-8";
/**
 * header.css
 *
 * [ファイルの役割]
 * サイト共通ヘッダー（header-top、header-nav）のレイアウトおよびデザインを担当するスタイルシートです。
 * PC時の整列、ホバーエフェクト、およびモバイル時のハンバーガー開閉スタイルを定義します。
 *
 * @package Sunlit_Estate
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(1, 41, 100, 0.08);
}

/* ==========================================================================
   Header Top Area (Logo, Tel, CTA Buttons)
   ========================================================================== */
.header-top {
  background-color: var(--color-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-bg-light);
}

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

/* Left Brand Column */
.header-top__logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-top__logo-mark {
  flex-shrink: 0;
}
.header-top__logo-text {
  display: flex;
  flex-direction: column;
}
.header-top__company-name {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.header-top__company-en {
  font-size: 10px;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 2px;
}

/* Right Info Area */
.header-top__info-area {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-top__contact {
  text-align: right;
}
.header-top__contact-label {
  font-size: 11px;
  color: var(--color-text-sub);
  margin: 0 0 2px 0;
  line-height: 1;
}
.header-top__contact-tel-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.header-top__tel-icon {
  margin-top: 2px;
}
.header-top__tel-number {
  font-family: var(--font-mincho);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}
.header-top__tel-number:hover {
  color: var(--color-gold);
}
.header-top__hours {
  font-size: 10px;
  color: var(--color-text-sub);
  margin: 2px 0 0 0;
  line-height: 1;
}

/* Header Top CTA Buttons */
.header-top__buttons {
  display: flex;
  gap: 12px;
}
.header-top__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-smooth);
  height: 48px;
}
.header-top__btn--gold {
  background-color: var(--color-gold);
  color: var(--color-white);
}
.header-top__btn--gold:hover {
  background-color: var(--color-gold-light);
  transform: translateY(-1px);
}
.header-top__btn--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}
.header-top__btn--navy:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-1px);
}
.header-top__btn-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   Header Navigation Bar (Navy Background)
   ========================================================================== */
.header-nav {
  background-color: var(--color-navy);
  position: relative;
  z-index: 99;
}
.header-nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Menu horizontal alignment */
.global-menu-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.global-menu-list li {
  flex: 0 1 auto; /* 均等幅ではなくテキスト長に応じた可変幅にする */
  text-align: center;
}
.global-menu-list a {
  display: block;
  padding: 16px 8px; /* 左右の余白を適正化 */
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em; /* 字間を少し詰めて幅を節約 */
  white-space: nowrap; /* 項目内の折り返し・文字落ちを絶対に防止 */
  transition: var(--transition-smooth);
}

/* 中画面サイズ（1024px〜1200px付近）での文字落ち・はみ出し対策 */
@media screen and (min-width: 1024px) and (max-width: 1200px) {
  .global-menu-list a {
    font-size: 12px;
    padding: 16px 6px;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1100px) {
  .global-menu-list a {
    font-size: 11px;
    padding: 16px 4px;
    letter-spacing: 0.01em;
  }
}
  transition: var(--transition-smooth);
}
.global-menu-list li:hover a {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-gold-light);
}

/* ==========================================================================
   Mobile Burger Menu & Toggle Styles
   ========================================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1000;
}
.menu-toggle__line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-white);
  margin-bottom: 6px;
  transition: var(--transition-smooth);
}
.menu-toggle__line--3 {
  margin-bottom: 0;
}

/* Hamburger transition to 'X' */
.menu-toggle--active .menu-toggle__line--1 {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle--active .menu-toggle__line--2 {
  opacity: 0;
}
.menu-toggle--active .menu-toggle__line--3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media screen and (max-width: 1023px) {
  /* Hide Top Bar Info on tablets/SP and show simple header */
  .header-top {
    padding: 12px 0;
  }
  .header-top__info-area {
    display: none; /* タブレット以下では右上情報エリアを非表示 */
  }
  .header-nav__inner {
    padding: 0;
  }
  
  /* Show Burger Toggle */
  .menu-toggle {
    display: block;
  }

  /* Mobil Navigation overlay list */
  .main-navigation {
    display: block;
    position: fixed;
    top: 60px; /* ロゴバーの下から */
    left: 100%; /* 初期状態は右へ完全に退避 */
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--color-navy);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    z-index: 999;
  }
  
  .main-navigation--active {
    left: 0; /* アクティブ時にスライドイン */
  }

  .global-menu-list {
    flex-direction: column;
    padding: 40px 24px;
    justify-content: flex-start;
  }
  .global-menu-list li {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .global-menu-list a {
    padding: 16px 0;
    font-size: 16px;
  }
}
