/* ==========================
   
       ヘッダー

========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ヘッダー内要素の配置 */
  gap: 32px; /* ロゴ・ナビ・CTAの間隔 */
  height: 138px; /* ヘッダーの高さ */
  padding: 0 32px; /* ヘッダーの中の余白 */
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eee8df;
}

.logo,
.footer-logo,
.hero-logo span {
  font-family: "Cormorant Garamond", serif;
}

.logo {
  display: block;
  margin: 0;
  width: 260px; /* ロゴサイズ */
  min-width: 0;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}
.logo span {
  font-size: 58px;
  font-weight: 500;
}

.logo small {
  margin-top: -6px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0;
}
/* グローバルナビ */
.nav {
  display: flex;
  align-items: center;
  gap: 40px; /* メニュー同士の間隔 */
  margin-left: auto; /* ロゴとナビの距離 */
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: #4e4740;
}

.header-actions {
  display: flex;
  gap: 12px; /* 予約ボタンとInstagramの距離 */
  align-items: center;
}

.hamburger {
  display: none;
}
/* ホバー下線 */
.nav a {
  position: relative;
  padding-bottom: 8px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -----共通CTA------ */
.c-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 58px;
  padding: 11px 18px;
  border: 1px solid var(--color-text);

  font-weight: 600;
  line-height: 1.25;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.c-cta small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.c-cta img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

/* 予約CTA */
.c-cta--reserve {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}

/* Instagram CTA */
.c-cta--instagram {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
/* ホバー */
.c-cta--reserve:hover {
  background: #aab39a;
  color: #ffffff;
}

.c-cta--instagram:hover {
  background: #aab39a;
  border-color: #4b433d;
  color: #4b433d;
}

/* ハンバーガー開画面 */
.drawer-menu {
  margin: 0 auto;
  width: 80%;
  height: 100dvh;
  max-height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  padding: 0 0 40px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drawer-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-close {
  position: absolute;
  top: 52px;
  right: 52px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.drawer-close span {
  position: absolute;
  left: 8px;
  top: 21px;
  width: 32px;
  height: 1px;
  background: var(--color-main);
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-logo {
  width: 180px;
  margin: 20px auto 10px;
}

.drawer-logo img {
  width: 100%;
  display: block;
}

.drawer-list {
  width: 80%;
  height: fit-content;
  display: grid;
  gap: 24px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.drawer-list a {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.drawer-actions {
  display: grid;
  gap: 16px;
  width: min(320px, calc(100% - 48px));
  margin: 40px auto 0;
}

.drawer-actions .insta-mini,
.drawer-actions .reserve-mini {
  justify-content: center;
}
/* =======================
　　　　レスポンシブ
=========================== */
/* タブレット用 */
@media (min-width: 768px) and (max-width: 1200px) {
  .nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: grid;
    gap: 7px;
    margin-left: auto;
    padding: 0;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
  }

  .hamburger span {
    height: 1px;
    background: var(--color-text);
  }

  .logo {
    width: 300px;
    min-width: 200px;
  }

  .site-header {
    padding: 0 35px;
  }
  .c-cta {
    min-height: 48px;
    padding: 8px 10px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  /* ヘッダー */
  .site-header {
    height: 106px;
    padding: 0 30px;
  }

  .logo {
    width: 200px;
    min-width: 120px;
  }

  /* ナビ */
  .nav,
  .header-actions {
    display: none;
  }

  .hamburger {
    display: grid;
    gap: 7px;
    margin-left: auto;
    padding: 0;
    width: 35px;
    border: 0;
    background: transparent;
  }

  .hamburger span {
    height: 1px;
    background: var(--color-text);
  }
}
