@charset "utf-8";

/* -------------------------
   ヘッダー上段
------------------------- */

:root{
--header-height: 200px;
}

  .site-header {
    position: fixed;
    z-index: 100000;
    width: 100%;
    height: max-content;
    top: 0;
    left: 0;
  }

.header-top {
  max-width: 1400px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background-color: #ffffffe5;
}

.header-left .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}

.header-left img {
  height: 40px;
  margin-right: 10px;
}

.header-right{
  display:flex;
  justify-content: center;
  align-items: center;
  gap:20px;
}

/* お申込み・お問合せ */
.contact-btn {
  background: #fff;
  color: #40210f;
  border:1px solid #40210f;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 4px;
  font-size:clamp(10px,1.4vw,16px);
  transition: background .3s ease, color .3s ease;
}

.contact-btn:hover{
  background: #40210f;
  color: #fff;
  text-decoration: none;
}

/* ハンバーガー */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
    position: relative;
  z-index: 10000; /* SPメニューより上 */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #40210f;
  display: block;
}


.hamburger span {
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* メインコンテンツの高さ分ずらす */

.main-contents{ 
  margin-top: var(--header-height);
}

@media (max-width: 570px) {
  .header-top{
  padding:10px;
  }

  .header-left img{
    height:6vw;
  }


  .header-right{
gap:5px;
  }
}


/* -------------------------
   PC ナビ
------------------------- */
.shop-name{
  font-size:clamp(10px,2vw,16px);
  color:#40210f;
  font-weight: 400;
}

.main-nav {
  background: #40210f;
  width: 100%;
}

.nav-list {
  max-width: 1400px;
  margin: auto;
  list-style: none;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.nav-list > li > a {
  color: #fff;
  padding: 15px 0;
  display: block;
  text-decoration: none;
}

/* ドロップダウン */
.has-dropdown {
  position: relative;
}

/* 初期状態（非表示・透明・少し上にずらす） */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f5f3;
  width: 250px;
  padding: 10px 0;
  /* border: 1px solid #ddd; */

  opacity: 0;
  visibility: hidden;
  transform: translateY(0px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

/* ホバー時（フェードしながら下にスッと現れる） */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a,.dropdown li {
  display: block;
  padding: 5px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown li a:hover {
  background: #f5f5f5;
}

.dropdown-title {
  font-size: 12px;
  padding: 8px 15px;
  color: #40210f;
  font-weight:600;
}

/* 店舗一覧（SPサブメニュー）のアコーディオン開閉アニメーション */
/* 初期状態 */
.sp-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* 開いた状態 */
.sp-sub.open {
  max-height: 500px; /* 内容に合わせて十分大きい値にしておく */
}

/* -------------------------
   SP メニュー
------------------------- */
/* SPメニューのベース（非表示時） */
/* 初期状態：見えないが、DOM内には存在したまま */
.sp-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;       /* ← 画面全体を確保 */
  background: #f8f5f3;
  transform: translateY(-100%); /* ← 上に隠す */
  transition: transform 0.4s ease;
  overflow-y: auto;    /* メニューが長くなってもスクロール可 */
  z-index: 99999;
  opacity: 0.98;          /* display は使わない */
}

/* SPメニューを右からスライドインさせる */

/* 表示状態：右→左へスムーズにスライドイン */
/* オープン時（画面内にスライドイン） */
.sp-nav.open {
  transform: translateY(0);
}

.sp-nav ul {
  list-style: none;
  /* padding: 10px 20px; */
  margin:0 auto;
  padding:0;
}

.sp-nav .nav-wrap {
padding-top:80px;
width:90%;
}

.sp-nav li{
  padding-left: 1rem;
  padding-right: 1rem;
}

.sp-sub li{
  background-color: #b2a16d0f;
}

.sp-nav a {
  text-decoration: none;
  display: block;
  padding: 12px 0;
}

.sp-dropdown-title {
  padding: 12px 0;
}

/* ドロップダウンタイトル */
.sp-dropdown-title {
  position: relative;       /* 擬似要素用 */
  cursor: pointer;
  padding-right: 25px;      /* 矢印用スペース */
  color:#40210f;
}

/* 右側矢印 */
.sp-dropdown-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #40210f;
  border-bottom: 2px solid #40210f;
  transform: translateY(-50%) rotate(45deg); /* 斜めにして矢印風 */
  transition: transform 0.3s ease;
}

/* 開いた状態で矢印を下向きに回転 */
.sp-dropdown-title.open::after {
  transform: translateY(-50%) rotate(225deg); /* 下向き */
}

/* 初期状態 */
.sp-sub {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
}

.sp-sub li:not(.sp-area) {
  border-bottom: 1px solid #40210f33;
}

/* 展開状態 */
.sp-sub.open {
  max-height: 500px; /* 十分大きく */
  opacity: 1;
  padding:0;
}

.sp-area {
  font-size: 12px;
  padding-top: 10px;
  color:#40210f;
  font-weight: 600;
  /* color: #666; */
}

/* -------------------------
   SP レイアウト
------------------------- */
@media (max-width: 1000px) {
  .header-top{
position: fixed;
z-index: 100000;
width: 100%;
  }
  .contact-btn {
    padding: 8px 14px;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* .sp-nav {
    display: none;
  }

  .sp-nav.open {
    display: block;
  } */
}

/* フォーカス時の黒枠削除 */

/* ハンバーガーのボタン */
.hamburger,
.menu-btn,
button,
a {
  outline: none; /* フォーカス時の枠線を削除 */
}

/* もしフォーカス時のボーダーも出る場合 */
.hamburger:focus,
.menu-btn:focus,
button:focus,
a:focus {
  outline: none;
  box-shadow: none;
}