@charset "utf-8";

/* ==============================================
共通CSS(全ページで読み込む)
============================================== */

*{ box-sizing: border-box; margin: 0; padding: 0; }

.castoro-regular {
  font-family: "Castoro", serif;
  font-weight: 400;
  font-style: normal;
}

.la-belle-aurore-regular {
  font-family: "La Belle Aurore", cursive;
  font-weight: 400;
  font-style: normal;
}

:root{
  --yellow: #d6c20c;
  --purple: #2D004D;
  --lavender: #DCD8EF;
  --paper: #FBFBFB;
  --gray: #6A6A6A;
  --pink: #EF93DA;
  /* ヘッダーの高さ。JS(main.js)で実測値に上書きされます */
  --header-h: 96px;
}

html{
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* 100vw を使ったフルブリード要素(.triple-slider, .photo-sliderなど)が
   縦スクロールバーの分だけはみ出し、右側に謎の余白が出る問題への対策。
   hidden ではなく clip を使う:overflow-x: hidden を body に指定すると
   body 自体がスクロールコンテナ化し、window の scroll イベントが
   発火しなくなる(=ナビの表示切替が効かなくなる)ため。clip は
   はみ出しを切り取るだけでスクロールコンテナを作らない。 */
body{
  overflow-x: clip;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--purple);
  background: #fff;
  letter-spacing: 0.06em;
  /* headerがfixedになった分の余白 */
  padding-top: var(--header-h);
}

a{ color: inherit; text-decoration: none; }
img{ display: block; width: 100%; height: 100%; object-fit: cover; }

.en-serif{ font-family: 'Castoro', serif; }
.script{ font-family: 'La Belle Aurore', cursive; font-weight: 400; }

.ph{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px;
  font-family: 'Castoro', serif; font-style: italic; font-size: 13px;
  color: #8a8398;
}

/* サブページ共通の見出しユーティリティ(room.html / restaurant.html 等でも使用) */
.pagetitle{
  font-family: "Castoro", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--purple);
}
.pagecopy{
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 150%;
  letter-spacing: 0.06em;
}
.pagecopyENG{
  font-family: 'La Belle Aurore';
  font-style: normal;
  font-weight: 400;
  font-size: 64px;
  line-height: 150%;
  text-align: center;
  letter-spacing: 0.06em;
}

/* ================= HEADER ================= */
/* ロゴを中央、左右のボタン群をそれぞれ「ロゴ〜画面端」の中間に配置するため
   3カラムのグリッドにし、各カラム内でjustify-content:centerする */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(45,0,77,0.06);
}

.header-left,
.header-right{
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left{ justify-content: center; }
.header-right{ justify-content: center; }

.lang-select{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  white-space: nowrap;
}

.lang-select svg{ width: 16px; height: 16px; }

/* ================= 言語切替ドロップダウン(js/i18n.js が自動生成) ================= */
.lang-widget{
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-current-label{ pointer-events: none; }

.lang-dropdown{
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--lavender);
  border-radius: 8px;
  box-shadow: 0 16px 34px -14px rgba(45,0,77,0.3);
  padding: 6px;
  z-index: 1400;
  display: none;
}

.lang-widget.open .lang-dropdown{ display: block; }

.lang-dropdown button{
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 5px;
  background: none;
  border: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--purple);
  cursor: pointer;
  transition: background .15s ease;
}

.lang-dropdown button:hover{ background: var(--paper); }
.lang-dropdown button.active{
  background: var(--lavender);
  font-weight: 700;
}

/* ハンバーガーメニュー内(.mobile-menu-lang)は縦幅に余裕があるので、
   ドロップダウンを右にはみ出させない */
.mobile-menu-lang.lang-widget .lang-dropdown{
  left: 0;
  right: auto;
}

.logo{
  grid-column: 2;
  display: flex;
  justify-content: center;
}

/* ロゴ画像サイズを明示的に指定 */
.logo img{
  width: 120px;
  height: auto;
  display: block;
}

.menu-toggle{
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle .bars{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 40px;
}

.menu-toggle .bars span{
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gray);
}

.menu-toggle .menu-label{
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gray);
}

/* モバイル時のみ表示するヘッダー左側のアイコン(例:weddingページのアクセスピン) */
.mobile-only-icon{
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--gray);
}
.mobile-only-icon svg{ width: 24px; height: 24px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ヘッダー内の予約ボタンは幅を最大値に揃える */
.site-header .btn{
  min-width: 168px;
}

/* キーボード操作時のフォーカスを明確に(アクセシビリティ) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.btn-outline{
  background: #fff;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  font-weight: 900;
}

.btn-yellow{ background: var(--yellow); color: var(--purple); }
.btn-purple{ background: var(--purple); color: var(--yellow); }

/* ================= MOBILE MENU (ハンバーガーの中身) ================= */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: #fff;
  padding: 90px 32px 40px;
  transform: translateX(100%);
  transition: transform .35s ease;
  overflow-y: auto;
  display: none;
}

.mobile-menu.open{ transform: translateX(0); }

.menu-close{
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--purple);
  cursor: pointer;
}

.mobile-menu-lang{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 28px;
}
.mobile-menu-lang svg{ width: 16px; height: 16px; }

.mobile-menu nav{
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 18px;
  margin-bottom: 36px;
}

.mobile-buttons{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-buttons .btn{ width: 100%; padding: 16px; }

/* ================= NAV =================
   全ページ共通のグローバルナビ。position: sticky の containing block は
   body(高さ制限なし)になるため、ヘッダー下に到達した時点でページ最下部まで
   固定表示され続ける。表示/非表示はスクロール方向に応じて main.js が切り替える。 */
.main-nav{
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 24px 20px;
  background: var(--paper);
  font-size: 15px;
  transition: transform .3s ease;
}

.main-nav a{ transition: color .2s ease; }
.main-nav a:hover{ color: var(--yellow); }

.main-nav.nav-hidden{
  transform: translateY(-120%);
}

/* ================= FOOTER ================= */
footer{
  background: var(--paper);
  padding: 60px 5% 30px;
}

.footer-top{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--lavender);
  margin-bottom: 24px;
}

.footer-brand img{ width: 110px; height: auto; margin-bottom: 14px; }
.footer-brand address{ font-style: normal; font-size: 13px; line-height: 1.8; color: var(--gray); margin-bottom: 16px; }

.footer-social{ display: flex; gap: 14px; }
.footer-social img{ width: 24px; height: 24px; }

.footer-col h3{
  font-family: 'Castoro', serif;
  font-size: 19px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lavender);
  margin-bottom: 16px;
}

.footer-col ul{ list-style: none; }
.footer-col li{ margin-bottom: 10px; font-size: 14px; }

/* フッターナビゲーションは通常時6a6a6a、ホバーでcccc00 */
.footer-col.nav a,
.footer-col.booking a.plain{
  color: var(--gray);
  transition: color .2s ease;
}
.footer-col.nav a:hover,
.footer-col.booking a.plain:hover{
  color: var(--yellow);
}

/* モバイルのみ表示するフッターリンク(通常は非表示) */
.mobile-only-li{ display: none; }

.footer-buttons{ display: flex; gap: 12px; margin-top: 20px; }
.footer-buttons a{
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
}
.footer-buttons .fill{ background: var(--purple); color: var(--yellow); }
.footer-buttons .outline{ background: var(--lavender); color: var(--purple); }

.footer-badge{ text-align: center; }
.footer-badge .badge-img{ width: 90px; height: 90px; margin: 0 auto 10px; }
.footer-badge p{ font-size: 12px; color: var(--purple); }

.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: center;
  font-size: 12px;
  color: var(--gray);
  padding-top: 10px;
}

/* ================= MOBILE BOOKING BAR (画面下固定) ================= */
.mobile-booking-bar{
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(45,0,77,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-booking-bar .row{ display: flex; }

.mobile-booking-bar a{
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-booking-bar .btn-outline{ background:#fff; color: var(--yellow); border-top: 2px solid var(--yellow); }
.mobile-booking-bar .btn-yellow{ background: var(--yellow); color: var(--purple); }
.mobile-booking-bar .btn-purple{ background: var(--purple); color: var(--yellow); }

/* ================= RESPONSIVE(共通パーツ分) ================= */
/* ---- タブレット(901〜1200px):ヘッダーが横に収まりきらず崩れるのを防ぐ ---- */
@media (max-width: 1200px) and (min-width: 901px){
  .site-header{ padding: 14px 16px; }
  .site-header .btn{
    min-width: 0;
    padding: 11px 14px;
    font-size: 12.5px;
  }
  .header-left, .header-right{ gap: 10px; }
  .lang-select{ font-size: 13px; }
  .logo img{ width: 96px; }
}

/* ================= RESPONSIVE(共通パーツ分) ================= */
@media (max-width: 900px){
  
  .site-header{ 
    padding: 14px 20px;
   }
  .logo img{ width: 88px; }

  /* ヘッダー左右のボタン類はハンバーガーメニューへ移動。
     言語切り替え(.lang-select)と、ページ専用のモバイルアイコン(.mobile-only-icon)だけは
     そのままヘッダーに残す */
  .header-left .btn,
  .header-right .btn{ display: none; }
  .header-left,
  .header-right{ width: auto; }

  .lang-select{ font-size: 14px; }
  .mobile-only-icon{ display: flex; }

  .menu-toggle{ display: flex;  }
  .mobile-menu{ display: flex; flex-direction: column; }

  /* menu-toggle は header-left の中に移動済み。モバイルでは左端に寄せる */
  .header-left{ justify-content: flex-start; }
  .header-right{ justify-content: flex-end; }
  

  .main-nav{ gap: 28px; font-size: 13px; padding: 16px 12px; }

  /* ---- フッター:中央寄せの1カラム構成に ---- */
  .footer-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .footer-brand{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col h3{ display: none; }

  .footer-col.nav ul,
  .footer-col.booking ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer-col li{ margin-bottom: 0; padding: 10px 0; font-size: 15px; }

  /* 「宿泊」を見出し的に強調表示 */
  .footer-col.nav li:first-child a{
    color: var(--yellow);
    font-weight: 700;
    font-size: 16px;
  }

  /* BOOKING列は「よくあるご質問」「お問い合わせ」以外(予約系リンク・CTAボタン)を非表示にし、
     フッターの重複を避ける(予約導線は画面下部固定バーに集約) */
  .footer-col.booking li:not(.mobile-only-li){ display: none; }
  .footer-col.booking li.mobile-only-li{ display: block; }
  .footer-buttons{ display: none; }

  .footer-badge{ order: 1; }

  .footer-bottom{
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  /* ---- 画面下部固定バー ---- */
  .mobile-booking-bar{ display: block; }
  body{ padding-bottom: 58px; }
}