/*共通----------*/

:root {
  --main-color: #fdfcf1;
  --text-color: #333333;
  --accent-color: #000000;
  --base-color: #0d292d;
}

body {
  background-color: var(--main-color);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  letter-spacing: 0.2em;
  position: relative;
}

a {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

/* =============================
    ヘッダー（右端の縦書きナビ）
============================= */
.header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100px;
  height: 100vh;
  padding: 0;
  background-color: var(--main-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin-top: 50px;
  font-size: 1rem;
  font-weight: 500;
  writing-mode: vertical-rl;
  text-align: center;
}

.logo span {
  display: block;
  margin-top: 10px;
  font-family: "Barlow", sans-serif;
  font-size: 0.7rem;
}

.header-buttons {
  display: none;
}

.vertical-nav {
  margin: auto 0;
}

.vertical-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vertical-nav li {
  margin: 40px 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: center;
}

/* =============================
    お問い合わせ
============================= */
.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.contact-link a {
  flex: 1;
  text-decoration: none;
  color: #fff;
}

.reservation {
  background: url("../img/reservation.jpg") no-repeat center/cover;
}

.contact-form {
  background: url("../img/contact.jpg") no-repeat center/cover;
}

.reservation,
.contact-form {
  position: relative;
  display: flex;
  height: 300px;
  align-items: center;
  justify-content: center;
}

/* 共通のオーバーレイ */
.reservation::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 41, 45, 0.7);
  transition: background 0.3s;
  z-index: 1;
}

/* ホバーエフェクト */
.contact-link a:hover .reservation::before,
.contact-link a:hover .contact-form::before {
  background: rgba(13, 41, 45, 0.85);
}
.overlay {
  position: relative;
  width: 90%;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.en {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.reservation .title,
.contact-form .title {
  font-size: clamp(20px, 2.3vw, 28px);
  margin: 10px 0;
  font-weight: 500;
}

.reservation .text,
.contact-form .text {
  font-size: clamp(11px, 1.2vw, 14px);
  margin-top: 10px;
}
/* =============================
    フッター
============================= */
.footer {
  background-color: var(--base-color);
  color: #fff;
  text-align: center;
  margin-top: 5rem;
  padding: 8rem calc(16% + 50px) 8rem 16%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-nav {
  writing-mode: vertical-rl;
  text-align: left;
}

.footer-nav-list {
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  padding: 0 10px;
}

.copyright {
  text-align: left;
  font-size: 0.7rem;
  padding: 20px 0 20px 0;
}

/* ========================================================
    Media Queries (タブレット対応: 1024px以下)
======================================================== */
@media (max-width: 1024px) {
  .header {
    width: 80px;
  }

  .footer {
    padding: 6rem calc(10% + 40px) 6rem 10%;
  }
}

/*========================================================
    Media Queries (タブレット対応: 768px以下)
========================================================*/
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    letter-spacing: 0.1em;
  }

  .vertical-nav {
    display: none;
  }

  .container {
    height: auto;
  }

  body {
    padding-top: 60px;
    position: relative;
  }

  .footer {
    padding: 4rem 5%;
  }

  /*Header*/
  .header {
    position: fixed;
    width: 100%;
    height: 60px;
    background-color: var(--main-color);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
  }

  /* ロゴ（左上）の調整 */
  .logo {
    writing-mode: horizontal-tb;
    font-size: 0.8rem;
    margin: 0;
  }

  .logo span {
    margin-left: 10px;
    display: inline;
    font-size: 0.6rem;
  }

  .header-buttons {
    display: flex;
    align-items: center;
    height: 100%;
  }

  /* ContactボタンとMenuボタンの共通スタイル */
  .contact-btn,
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 100%;
    padding: 0 12px; /* 横に少し余裕 */
    font-size: 0.6rem;
    color: #fff;
    text-align: center;
  }

  /* Contact ボタンのスタイル */
  .contact-btn .icon {
    width: 24px;
    height: 24px;
  }

  .contact-btn {
    background-color: var(--base-color);
  }

  /* Menu ボタンのスタイル */
  .menu-btn {
    background-color: #34495e;
    transition: all 300ms ease;
    opacity: 1;
  }

  .menu-btn:hover {
    opacity: 0.7;
  }

  /*ナビのスタイル*/

  .vertical-nav li {
    writing-mode: horizontal-tb;
  }

  /* ハンバーガーアイコンのスタイル */
  .hamburger {
    position: relative;
    width: 24px;
    height: 24px;
  }

  .hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 8px;
  }

  .hamburger span:nth-child(2) {
    bottom: 8px;
  }

  .button-text {
    font-size: 0.7rem;
    font-family: "Barlow", sans-serif;
    letter-spacing: 0.05em;
  }

  /* クリックで「×」に変化 */
  .menu-btn.active .hamburger span:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: rotate(45deg);
    translate: -50% -50%;
  }
  .menu-btn.active .hamburger span:nth-child(2) {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: rotate(-45deg);
    translate: -50% -50%;
  }

  /*オーバーレイメニュー (Menuボタンで表示)*/
  #overlayMenu {
    position: fixed;
    display: flex;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--base-color);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: all 300ms ease;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
  }

  #overlayMenu.open {
    visibility: visible;
    opacity: 1;
  }

  .overlay-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
  }

  .overlay-menu li {
    margin: 30px 0;
  }

  .overlay-menu a {
    position: relative;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
  }

  .reservation .title,
  .contact-form .title {
    font-size: 28px;
  }

  .reservation .text,
  .contact-form .text {
    font-size: 14px;
  }

  /* スクロール禁止用 */
  body.no-scroll {
    overflow: hidden;
  }

  /* 英語のサブテキストをデータ属性で表示 (PC縦書きナビの代替) */
  .overlay-menu a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-family: "Barlow", sans-serif;
    color: #777;
    white-space: nowrap;
    margin-top: 5px;
  }

  /* Contact (お問い合わせ) */
  .contact-link {
    flex-direction: column;
    gap: 15px;
  }

  .reservation,
  .contact-form {
    height: 200px;
  }
}
