@charset "utf-8";

/* ==========================
   ハンバーガーボタン設定
========================== */
.navBtnBox {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 200;
}

#checkbox {
  display: none;
}

label.navBtn,
label.navBtn span {
  display: inline-block;
  transition: all 0.4s;
  position: relative;
}

label.navBtn {
  position: relative;
  width: 29px;
  height: 24px;
  background: none;
  border: none;
  appearance: none;
  cursor: pointer;
}

label.navBtn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
  border-radius: 1px;
}

label.navBtn span:nth-of-type(1) {
  top: 0;
}

label.navBtn span:nth-of-type(2) {
  top: 11px;
}

label.navBtn span:nth-of-type(3) {
  bottom: 0;
}

#checkbox:checked+label span:nth-of-type(1) {
  transform: translateY(11px) rotate(-45deg);
}

#checkbox:checked+label span:nth-of-type(2) {
  opacity: 0;
}

#checkbox:checked+label span:nth-of-type(3) {
  transform: translateY(-12px) rotate(45deg);
}

#checkbox:checked+label+div {
  display: block;
}

/* ==========================
   ナビゲーション全体（スクロール対応）
========================== */
.nav {
  display: none;
}

.nav.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--black);
  width: 100%;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------
   メニュー中央寄せ
-------------------------- */
.nav.active>ul {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 100px 0 80px;
  margin: 0;
}

.nav.active>ul>li {
  margin-bottom: 1em;
  list-style: none;
}

.nav.active>ul>li:last-child {
  margin: 0;
}

.nav.active>ul>li:first-child {
  margin-bottom: 2em;
}

.nav.active>ul>li:first-child a {
  display: block;
}

.nav.active>ul>li:first-child img {
  width: 190px;
}

/* --------------------------
   メニュー共通スタイル
-------------------------- */
.nav.active ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  transition: 0.3s;
  position: relative;
  display: inline-block;
}

/* 下線アニメーション（テキスト幅基準） */
.nav.active ul li a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav.active ul li a:hover::after {
  width: 100%;
}

/* --------------------------
   「MENU」だけ下線を無効化
-------------------------- */
.nav.active ul li.has-submenu>a::after,
.nav.active ul li.has-submenu>a:hover::after {
  content: none !important;
}

/* --------------------------
   「ご予約はこちらから」ボタン
-------------------------- */
.nav.active>ul>li:last-child a {
  font-size: 1rem;
  border: 1px solid;
  padding: 1em;
  margin-top: 3em;
  display: inline-block;
  white-space: nowrap;
}

.nav.active>ul>li:last-child a:hover {
  background: var(--white);
  color: var(--black);
  font-weight: bold;
}

/* ==========================
   MENUサブメニュー設定
========================== */
.nav.active ul li.has-submenu {
  position: relative;
  margin-bottom: 2em;
  display: block;
}

/* MENUタイトル */
.nav.active ul li.has-submenu>a {
  display: inline-block;
  margin-bottom: 0.8em;
  position: relative;
  font-size: 1.5rem;
}

/* サブメニュー全体：中央配置・中身左寄せ */
.nav.active ul li.has-submenu>ul.submenu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: block;
  text-align: left;
  width: fit-content;
}

/* 各サブメニュー項目 */
.nav.active ul li.has-submenu>ul.submenu>li {
  margin: 0.25em 0;
}

/* テキストと「–」 */
.nav.active ul li.has-submenu>ul.submenu>li>a {
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.85;
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 1.5em;
  display: inline-block;
}

/* 「–」マーク左揃え */
.nav.active ul li.has-submenu>ul.submenu>li>a::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  opacity: 0.6;
  font-weight: 200;
  font-size: 0.9em;
}

/* 下線（BLOGと同じ挙動） */
.nav.active ul li.has-submenu>ul.submenu>li>a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 1.5em;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav.active ul li.has-submenu>ul.submenu>li>a:hover::after {
  width: calc(100% - 1.5em);
}

.nav.active ul li.has-submenu>ul.submenu>li>a:hover {
  opacity: 1;
}

/* ==========================
   背景スクロール防止（任意JS連動用）
========================== */
body.nav-open {
  overflow: hidden;
}
