@charset "utf-8";

/* =========================================
   ヘッダー全体のレイアウト
========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px; /* 左右の余白はFigmaに合わせて調整してください */
  background-color: var(--bg-color);
}

/* --- ロゴエリア --- */
.header__logo-area {
  display: flex;
  flex-direction: column;
}

.header__logo {
  margin: 0;
  font-size: 32px;
  font-family: serif; /* Figmaで指定されている明朝体やセリフ体を指定してください */
  color: var(--main-color);
  letter-spacing: 0.1em;
}

.header__sub {
  margin: 4px 0 0 0;
  font-size: 10px;
  color: var(--sub-text-color);
  letter-spacing: 0.2em;
}

/* --- ナビゲーションエリア --- */
.header__nav-area {
  display: flex;
  align-items: center;
  gap: 30px; /* メニュー、ボタン、ハンバーガー間の余白 */
}

/* .header__nav {
  /* スマホ表示の際はここを非表示にするなどの処理が入ります */


.header__menu {
  display: flex;
  gap: 24px; /* 「レッスン一覧」と「お問い合わせ」の間の余白 */
  font-size: 14px;
  color: var(--text-color);
}

.header__menu a {
  transition: opacity 0.3s ease;
}

.header__menu a:hover {
  opacity: 0.7; /* ホバー時に少し薄くする */
}
/* --- 予約ボタン --- */
.btn-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color);
  color: #fff;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px; /* 角の丸みがあれば調整 */
  transition: background-color 0.3s ease;
}

.btn-reserve:hover {
  background-color: #7A4E4E; /* ホバーで少し暗くする */
}

.btn-reserve .arrow {
  margin-left: 8px;
}

/* --- ハンバーガーメニューアイコン --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
  transition: all 0.3s ease;
}

/* =========================================
   ハンバーガーボタンのアニメーション（×印に変化）
========================================= */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   ヘッダー：モバイル表示対応（768px以下）
========================================= */
@media screen and (max-width: 768px) {
  .header {
    position: relative;
    flex-wrap: wrap;
    padding: 14px 20px 0;
    background-color: #FAF3F2;
    border-bottom: 1px solid #EAE0DF;
  }

  /* 1段目左：ロゴ */
  .header__logo-area {
    padding-bottom: 14px;
  }

  .header__logo {
    font-size: 22px;
    line-height: 1.1;
  }

  .header__sub {
    font-size: 8px;
    letter-spacing: 0.16em;
    margin-top: 2px;
  }

  /* ハンバーガーボタンを1段目右端に固定 */
  .hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 16px;
    z-index: 200;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 2段目：横3列のサブナビゲーションバー */
  .header__nav-area {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 10px 20px;
    background-color: #FFFFFF;
    border-top: 1px solid #F0E6E6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
  }

  .header__nav {
    flex: 2;
  }

  .header__menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 8px;
    font-size: 11px;
    color: var(--text-color);
  }

  /* 「レッスンのご予約」も2段目の右端にテキストリンク風に並べる */
  .btn-reserve {
    flex: 1;
    background-color: transparent;
    color: var(--text-color);
    font-size: 11px;
    padding: 0;
    border-radius: 0;
    text-align: center;
  }

  .btn-reserve:hover {
    background-color: transparent;
    opacity: 0.7;
  }

  .btn-reserve .arrow {
    display: none;
  }
}
