/* ==========================================================================
   ORIORI — DESIGN.md に基づくデザイントークン
   ========================================================================== */

:root{
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --text: #3A3936;
  --text-muted: #6B6862;
  --border: #EFEDE6;
  --border-strong: #D8D5CB;
  --accent: #9F886E;
  --accent-soft: #F1EDE9;
  --hero-overlay: #4A4843;
  --menu-bg: #2C2B28;
  --content-text: #3A3936;
  --content-heading-color: #9F886E;
  --content-line-height: 1.8;

  --font-serif: "Yu Mincho", 游明朝, "游明朝体", "Hiragino Mincho Pro", "Times New Roman", Times, serif;
  --font-sans: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;

  --radius: 2px;
  --container: 1120px;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

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

h1, h2, h3, h4{
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 本文中のブロックで「全幅」を選ぶと、親のcontainerの余白を無視して画面いっぱいに広がるようにする。
   上下の余白もゼロにして、続けて並べたときにブロック同士がぴったりくっつくようにする */
.page-content .alignfull,
.editor-styles-wrapper .alignfull{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
}

/* 「メディアとテキスト」ブロック自体が持つ既定の余白も、念のためゼロにしておく
   （alignfullのクラスがどの階層についても、隙間が残らないように） */
.page-content .wp-block-media-text,
.editor-styles-wrapper .wp-block-media-text{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* 標準だと文章側に内側の余白(8%)が大きくとられ、写真から離れすぎてしまうため詰める。
   左右とも同じ余白（3倍にした左端の値）にそろえる */
.page-content .wp-block-media-text__content,
.editor-styles-wrapper .wp-block-media-text__content{
  padding-top: 32px !important;
  padding-bottom: 32px !important;
  padding-right: 72px !important;
  padding-left: 72px !important;
}

@media (max-width: 767px){
  .page-content .wp-block-media-text__content,
  .editor-styles-wrapper .wp-block-media-text__content{
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ページ内リンク（HTMLアンカー）でジャンプしたとき、上に固定されているヘッダーに
   ジャンプ先が隠れてしまわないよう、id付きの要素すべてに上の余白を確保しておく
   （見出しだけでなく、段落やリスト項目にアンカーをつけた場合にも効くように） */
[id]{
  scroll-margin-top: 100px;
}

.site-header__inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  gap: 24px;
}

.site-logo img{ height: 56px; width: auto; }

/* スマホ：ロゴのみを中央に表示。ヘッダーの言語アイコン・ハンバーガーは
   下固定タブバー(.mobile-tabbar)に同じ機能があるため非表示にする */
@media (max-width: 767px){
  .site-logo img{ height: 44px; }
  .site-header__inner .site-header__lang,
  .site-header__inner .nav-toggle{ display: none; }
}

/* PC：ロゴ（左端）・地球マーク＋メニュー（右端） */
@media (min-width: 768px){
  .site-header__inner{
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .site-header__inner .site-logo{
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .site-header__inner .site-header__lang{
    grid-column: 2;
    grid-row: 1;
  }
  .site-header__inner .nav-toggle{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

.site-header__lang{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text);
  text-decoration: none;
}

.site-header__lang svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__lang span{
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.site-header__lang:hover svg{ stroke: var(--accent); }
.site-header__lang:hover span{ color: var(--accent); }

.btn-cta{
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 10px 26px;
  border-radius: var(--radius);
}

.btn-cta:hover{ opacity: 0.9; }

.btn-outline{
  display: inline-block;
  border-bottom: 1px solid var(--border-strong);
  font-size: 13px;
  padding-bottom: 2px;
  color: var(--text);
}

.btn-outline:hover{ border-color: var(--accent); color: var(--accent); }

/* 固定ページ本文中の「ボタン」ブロック（料金・空室状況・予約へ進む 等）の初期デザイン。
   WordPress標準のままだと角丸(pill)・黒背景になるため、サイトのCTAボタン(.btn-cta)に近づけたデフォルト値にする。
   !important は使わない：オリさんがブロックの「スタイル」パネルで色・角丸を個別に変更したときは、そちらを優先させるため */
.page-content .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons{
  margin-top: 40px;
}

.page-content .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link{
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 14px 36px;
  border-radius: var(--radius);
}

.page-content .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button__link:hover{ opacity: 0.9; }

/* Hamburger button (常時表示、PC/スマホ共通) */

.nav-toggle{
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle__label{
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-toggle__bars{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
}

.nav-toggle__bars span{
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
}

/* メニュー：スマホはヘッダー直下にドロップダウン（現行サイト風、ページを押し下げる）、
   PCは画面右側からパネルで出す（CANON風、背景は暗くしない） */

.site-menu{
  position: relative;
  background: var(--menu-bg);
  color: #FFFFFF;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.site-menu.is-open{
  max-height: 90vh;
  overflow-y: auto;
}

.site-menu__close{
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.site-menu__inner{
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 32px;
  text-align: center;
}

.site-menu__cta{
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 14px 40px;
  border-radius: var(--radius);
  margin-bottom: 48px;
}

.site-menu__nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
  list-style: none;
  padding: 0;
}

.site-menu__nav li{ list-style: none; }

.site-menu__nav a{
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  padding: 10px 0;
}

.site-menu__nav a:hover{ color: var(--accent); }

.site-menu__footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.site-menu__social{
  display: flex;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.site-menu__social a{ color: rgba(255,255,255,0.7); }
.site-menu__social a:hover{ color: var(--accent); }

.site-menu__contact{
  display: flex;
  gap: 28px;
}

/* スマホは下固定タブバーに電話・メールが既にあるため、メニュー内では重複させない（PCのみ表示） */
@media (max-width: 767px){
  .site-menu__contact{ display: none; }
}

.site-menu__contact-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.site-menu__contact-item svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-menu__contact-item:hover{ color: var(--accent); }

/* 背景色が明るい色に変更されたときは、文字を白ではなく濃い色にする */
.site-menu.is-light-menu{ color: var(--text); }
.site-menu.is-light-menu .site-menu__close{ color: var(--text); }
.site-menu.is-light-menu .site-menu__nav a{ color: var(--text); }
.site-menu.is-light-menu .site-menu__social a{ color: rgba(58,57,54,0.7); }
.site-menu.is-light-menu .site-menu__contact-item{ color: rgba(58,57,54,0.7); }

@media (min-width: 768px){
  .site-menu{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 420px;
    max-width: 90vw;
    max-height: none;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .site-menu.is-open{
    max-height: none;
    transform: translateX(0);
  }

  .site-menu__inner{
    max-width: 560px;
    min-height: 100%;
    justify-content: flex-start;
    padding: 96px 40px 48px;
  }

  .site-menu__nav a{ font-size: 20px; }
}

/* ==========================================================================
   Home sections — shared
   ========================================================================== */

.home-section{
  padding: 72px 0;
}

@media (max-width: 767px){
  .home-section{ padding: 36px 0; }
}

.home-section--alt{ background: var(--bg-alt); }

/* 固定ページ（写真バナーの直後に本文が来るページ）では、
   バナー自体の margin-bottom(40px) と .home-section の上余白(72px)が両方効いてしまい
   本文の書き出しまでの空白が広がりすぎるため、上だけ詰める */
.page-banner + .home-section{
  padding-top: 24px;
}

@media (max-width: 767px){
  .page-banner + .home-section{ padding-top: 16px; }
}

/* ■のご案内とお知らせの間が空きすぎないよう、ここだけ下の余白を詰める */
#facts{ padding-bottom: 24px; }

.section-eyebrow{
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.section-title{
  font-size: 26px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--accent);
}

.section-lead{
  font-size: 14px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 40px;
}

.facts-title{ font-size: 42px; }

.facts-tagline-line{
  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  font-size: 17px;
  color: var(--text);
  line-height: 2.2;
  letter-spacing: normal;
  margin: 0;
}

/* 英語表示では、見出しの上の英字の小見出しは不要（見出しとかぶるため） */
.lang-en .section-eyebrow{ display: none; }

@media (max-width: 767px){
  .facts-title{ font-size: 28px; }
}

@media (max-width: 767px){
  .section-lead{ max-width: 100%; }
}

/* Hero */

.hero{
  position: relative;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--hero-overlay);
}

.hero video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.hero video.is-active{
  opacity: 1;
  z-index: 1;
}

/* スマホ撮影時の回転情報が失われた動画を、表示側で正しい向きに戻す */
.hero video.needs-rotate{
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
}

.hero__image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.hero__image.is-active{
  opacity: 1;
  z-index: 1;
}

.hero__image.kb-zoom-in{ animation: heroKbZoomIn 3s ease-in-out forwards; }
.hero__image.kb-zoom-out{ animation: heroKbZoomOut 3s ease-in-out forwards; }
.hero__image.kb-pan-up{ animation: heroKbPanUp 3s ease-in-out forwards; }
.hero__image.kb-pan-left{ animation: heroKbPanLeft 3s ease-in-out forwards; }

/* 動画は静止画より表示時間が長いので、同じ動きをゆっくり長い時間かけて行う */
.hero video.kb-zoom-in{ animation: heroKbZoomIn 12s ease-in-out forwards; }
.hero video.kb-zoom-out{ animation: heroKbZoomOut 12s ease-in-out forwards; }
.hero video.kb-pan-up{ animation: heroKbPanUp 12s ease-in-out forwards; }
.hero video.kb-pan-left{ animation: heroKbPanLeft 12s ease-in-out forwards; }

@keyframes heroKbZoomIn{
  from{ transform: scale(1); }
  to{ transform: scale(1.15); }
}
@keyframes heroKbZoomOut{
  from{ transform: scale(1.15); }
  to{ transform: scale(1); }
}
@keyframes heroKbPanUp{
  from{ transform: scale(1.12) translateY(3%); }
  to{ transform: scale(1.12) translateY(-3%); }
}
@keyframes heroKbPanLeft{
  from{ transform: scale(1.12) translateX(3%); }
  to{ transform: scale(1.12) translateX(-3%); }
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,72,67,0.12), rgba(74,72,67,0.28));
}

.hero__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding: 0 24px;
  opacity: 0;
  animation: heroContentFadeIn 0.8s ease 0.4s forwards;
}

@keyframes heroContentFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.hero__kicker{
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  margin: 0 0 16px;
}

.hero__title{
  font-size: 40px;
  letter-spacing: 0.08em;
  margin: 0 0 40px;
}

.hero__dots{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero__dots button{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}

.hero__dots button[aria-current="true"]{ background: var(--accent); }

/* NEWS slider */

.news-slider{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.news-slider::-webkit-scrollbar{ height: 4px; }
.news-slider::-webkit-scrollbar-thumb{ background: var(--border-strong); }

.news-card{
  flex: 0 0 280px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
}

.news-card__thumb{
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}

.news-card__thumb img{ width: 100%; height: 100%; object-fit: cover; }

.news-card__body{ padding: 16px; }

.news-card__date{
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.news-card__title{
  font-size: 15px;
  margin: 6px 0 0;
  line-height: 1.6;
}

.news-slider__more{
  flex: 0 0 140px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--accent);
}

/* Facility / floor map */

.floor-map{
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--bg);
  text-align: center;
  margin: 32px 0;
}

.floor-map img{ margin: 0 auto; max-width: 640px; width: 100%; height: auto; }

.floor-map__caption{
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

.photo-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.photo-grid img{ aspect-ratio: 1; object-fit: cover; }

/* Amenity list: 現行サイトを踏襲した「◆の2列組・【】見出し」スタイル */

.amenity-groups-wrap{
  column-count: 2;
  column-gap: 56px;
  margin-top: 32px;
}

@media (max-width: 767px){
  .amenity-groups-wrap{ column-count: 1; }
}

.amenity-group{
  break-inside: avoid;
  margin-bottom: 32px;
}

.amenity-group__title{
  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 16px;
}

.amenity-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.amenity-item{
  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
}

.amenity-item::before{
  content: "◆";
  color: var(--text);
  margin-right: 6px;
}

.amenity-item--unavailable{ opacity: 0.35; }

.amenity-note{
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* Plan comparison */

.plan-compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plan-compare__card{
  border: 1px solid var(--border-strong);
  padding: 32px;
}

.plan-compare__card h3{ font-size: 18px; margin-bottom: 12px; }

.plan-compare__card p{
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* 固定ページ上部：写真バナー＋パンくずリスト */

.page-banner{
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 40px;
}

@media (max-width: 767px){
  .page-banner{ height: 192px; }
}

.page-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-banner__overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 63px;
  background: rgba(255,255,255,0.85);
}

.page-banner__title{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 63px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  margin: 0;
  color: #FFFFFF;
  font-size: 45px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.page-banner__breadcrumb{
  position: absolute;
  left: 24px;
  bottom: 0;
  height: 63px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  font-size: 13px;
}

.page-banner__breadcrumb a{ display: flex; align-items: center; }

@media (max-width: 767px){
  .page-banner__title{ font-size: 29px; bottom: 50px; }
  .page-banner__overlay{ height: 50px; }
  .page-banner__breadcrumb{ height: 50px; }
}

.page-banner__home-icon{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
}

.page-banner__sep{ opacity: 0.7; }

.page-breadcrumb{
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  max-width: 840px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.page-breadcrumb a{ color: var(--text-muted); }
.page-breadcrumb__sep{ margin: 0 6px; opacity: 0.6; }

.page-header-title{
  text-align: center;
  margin: 32px 0 40px;
}

/* 動画（クリックするまではただの写真+再生ボタン。押した瞬間だけYouTubeを読み込む） */

.video-facade{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  cursor: pointer;
}

.video-facade__play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-facade__play:hover{
  transform: scale(1.06);
}

.video-facade__play-icon{
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #FFFFFF;
  margin-left: 4px;
}

.video-facade.is-playing .video-facade__play{ display: none; }

.video-facade iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Booking.com score badge */

.booking-score{
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 36px 40px;
}

.booking-score__number{
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}

.booking-score__max{
  font-size: 24px;
  color: var(--text-muted);
  margin-left: 4px;
}

.booking-score__divider{
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.booking-score__text{ flex: 1; }

.booking-score__label{
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 8px;
}

.booking-score__note{
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text);
  margin: 0 0 6px;
}

.booking-score__count{
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 767px){
  .booking-score{ flex-wrap: wrap; padding: 28px; }
  .booking-score__divider{ display: none; }
  .booking-score__number{ font-size: 56px; }
}

/* Embed blocks (map / calendar / instagram / reviews) */

.embed-frame{
  border: 1px solid var(--border);
  background: var(--bg-alt);
  min-height: 320px;
}

.embed-frame iframe{ width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* PCでは月全体ではなく2週間分くらいの高さに縮める（Googleカレンダー側で内部スクロール表示になる） */
.embed-frame--calendar,
.embed-frame--calendar iframe{ min-height: 430px; }

@media (max-width: 767px){
  .embed-frame--calendar,
  .embed-frame--calendar iframe{ min-height: 480px; }
}

/* Staff intro */

.staff-members{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 40px;
}

.staff-member{
  width: 140px;
  text-align: center;
}

.staff-member__photo{
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

.staff-member__photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-member--small .staff-member__photo{
  width: 112px;
  height: 112px;
}

.staff-member__name{
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 12px 0 0;
}

.staff-member__rainbow{
  display: inline-block;
  vertical-align: -1px;
  margin-left: 4px;
}

/* FAQ excerpt */

.faq-list{ border-top: 1px solid var(--border); }

.faq-list__item{
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-list__q{
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-list__q::-webkit-details-marker{ display: none; }

.faq-list__q::before{ content: "Q. "; color: var(--accent); white-space: pre; }

.faq-list__q::after{
  content: "";
  flex: none;
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list__item[open] > .faq-list__q::after{ transform: rotate(-135deg); }

.faq-list__q:hover{ color: var(--accent); }

.faq-list__a{
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* 本文中のリンク（記事・固定ページ本文） */

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content .wp-block-heading,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper .wp-block-heading{
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: var(--content-heading-color);
  margin-top: 56px;
  margin-bottom: 20px;
}

.page-content h2,
.page-content .wp-block-heading:is(h2),
.editor-styles-wrapper h2,
.editor-styles-wrapper .wp-block-heading:is(h2){
  font-size: 22px;
  letter-spacing: 0.04em;
}

.page-content h3,
.page-content .wp-block-heading:is(h3),
.editor-styles-wrapper h3,
.editor-styles-wrapper .wp-block-heading:is(h3){
  font-size: 18px;
  letter-spacing: 0.03em;
}

.page-content :first-child,
.editor-styles-wrapper :first-child{
  margin-top: 0;
}

.page-content p,
.page-content .wp-block-paragraph,
.editor-styles-wrapper p,
.editor-styles-wrapper .wp-block-paragraph{
  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  color: var(--content-text);
  line-height: var(--content-line-height);
  margin-top: 0;
  /* グループ/引用ブロックの「最後の要素」は、WordPress標準の仕組み(margin-block-end)で
     表示画面だけ下の余白が0にされてしまうことがあるため、margin-bottomと両方指定して確実に効かせる */
  margin-bottom: 20px !important;
  margin-block-end: 20px !important;
}

/* 引用ブロック（「相部屋プランとの違いは？」等の補足文） */
.page-content blockquote,
.page-content .wp-block-quote,
.editor-styles-wrapper blockquote,
.editor-styles-wrapper .wp-block-quote{
  margin: 40px 0;
  padding: 20px 28px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
}

.page-content blockquote p,
.page-content .wp-block-quote p,
.editor-styles-wrapper blockquote p,
.editor-styles-wrapper .wp-block-quote p{
  margin: 0;
}

.page-content .wp-block-image,
.editor-styles-wrapper .wp-block-image{
  margin: 40px 0;
}

/* 「写真の直後に説明文」が続く並び（道案内など）では、写真とその説明はくっつけて、
   次のステップの写真が始まる前だけ広めの余白を取る（どの文章がどの写真の説明か分かりやすくするため） */
.page-content .wp-block-image:has(+ .wp-block-paragraph),
.editor-styles-wrapper .wp-block-image:has(+ .wp-block-paragraph){
  margin-bottom: 8px;
}
.page-content .wp-block-paragraph:has(+ .wp-block-image),
.editor-styles-wrapper .wp-block-paragraph:has(+ .wp-block-image){
  margin-bottom: 48px !important;
}

.page-content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img{
  border-radius: var(--radius);
  height: auto;
}

/* 「幅広」または「全幅」を選んだ画像だけ、コンテナいっぱいの幅にそろえる。
   何も選んでいない画像は元のサイズのまま（小さい道案内写真などが無理に引き伸ばされないように） */
.page-content .wp-block-image.alignwide img,
.page-content .wp-block-image.alignfull img,
.editor-styles-wrapper .wp-block-image.alignwide img,
.editor-styles-wrapper .wp-block-image.alignfull img{
  width: 100%;
}

.page-content .wp-block-image figcaption,
.editor-styles-wrapper .wp-block-image figcaption{
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.page-content a:not(.wp-block-button__link),
.editor-styles-wrapper a:not(.wp-block-button__link){
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.page-content a:not(.wp-block-button__link):hover,
.editor-styles-wrapper a:not(.wp-block-button__link):hover{ text-decoration-color: var(--accent); }

.page-content a:not(.wp-block-button__link)::after,
.editor-styles-wrapper a:not(.wp-block-button__link)::after{
  content: "↗";
  display: inline-block;
  margin-left: 2px;
  font-size: 0.75em;
  transform: translateY(-1px);
}

/* FAQ ページ本文中の詳細（アコーディオン）ブロック */

.page-content details,
.editor-styles-wrapper details{
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.page-content summary,
.editor-styles-wrapper summary{
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.page-content summary::-webkit-details-marker,
.editor-styles-wrapper summary::-webkit-details-marker{ display: none; }

.page-content summary::before,
.editor-styles-wrapper summary::before{
  content: "Q. ";
  color: var(--accent);
}

.page-content details[open] summary,
.editor-styles-wrapper details[open] summary{ margin-bottom: 12px; }

/* Footer（3段構成） */

/* 1段目：写真+ティールの帯に日英メニュー */
.site-footer__nav-band{
  position: relative;
  overflow: hidden;
}

.site-footer__nav-photos{
  display: flex;
  position: absolute;
  inset: 0;
}

.site-footer__nav-photos img{
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__nav-overlay{
  position: absolute;
  inset: 0;
  background: rgba(94, 185, 186, 0.82);
}

.site-footer__nav-inner{
  position: relative;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  padding: 34px 24px 30px;
}

.site-footer__nav-title{
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.site-footer__nav-col li{ list-style: none; }

.site-footer__nav-col a{
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  padding: 6px 0;
}

.site-footer__nav-col a:hover{ opacity: 0.75; }

/* 2段目：ロゴと連絡先（中央寄せ） */
.site-footer__info{
  background: var(--bg);
  text-align: center;
  padding: 53px 24px;
}

.site-footer__logo{
  display: inline-block;
  margin-bottom: 23px;
}

.site-footer__logo img{ height: 51px; width: auto; margin: 0 auto; }

.site-footer__address{
  font-family: var(--font-sans);
  font-size: 14px;
  color: #666666;
  letter-spacing: normal;
  margin: 0 0 7.6px;
}

/* 3段目：SNS・著作権・トップへ戻る */
.site-footer__bottom{
  background: var(--accent);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__social{
  display: flex;
  gap: 16px;
}

.site-footer__social a{ display: flex; }

.site-footer__social svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.8;
}

.site-footer__social a:hover svg{ opacity: 0.75; }

.site-footer__copyright{
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  text-align: center;
  flex: 1;
}

.site-footer__totop{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  flex-shrink: 0;
}

.site-footer__totop svg{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px){
  .hero__title{ font-size: 26px; }
  .photo-grid{ grid-template-columns: repeat(2, 1fr); }
  .plan-compare{ grid-template-columns: 1fr; }
  .staff-members{ gap: 24px 16px; }
  .staff-member{ width: calc(50% - 8px); }
  .staff-member__photo{ width: 100%; max-width: 140px; height: auto; aspect-ratio: 1; }
  .staff-member--small .staff-member__photo{ max-width: 112px; }
  .container{ padding: 0 16px; }
  .floor-map{ padding: 8px; }

  .site-footer__nav-photos{ display: none; }
  .site-footer__nav-overlay{ background: rgb(94, 185, 186); }
  .site-footer__nav-inner{
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 16px;
  }
  .site-footer__nav-col{ flex: 1 1 0; min-width: 0; }
  .site-footer__nav-col a{ font-size: 12px; letter-spacing: 0.02em; }
  .site-footer__bottom{ flex-wrap: wrap; justify-content: center; text-align: center; }
  .site-footer__copyright{ order: 3; flex-basis: 100%; }
}

/* ==========================================================================
   スマホ下固定タブバー（メニュー・言語・電話・メール・予約）
   ========================================================================== */

.mobile-tabbar{ display: none; }

@media (max-width: 767px){
  .mobile-tabbar{
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* 下固定バーの分だけ、フッターの内容が隠れないよう本文全体に余白を足す */
  body{ padding-bottom: 62px; }
}

.mobile-tabbar__item{
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.mobile-tabbar__item svg{
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-tabbar__item:active,
.mobile-tabbar__item:hover{ color: var(--accent); }

.mobile-tabbar__item:active svg,
.mobile-tabbar__item:hover svg{ stroke: var(--accent); }

/* ==========================================================================
   お問い合わせフォーム
   ========================================================================== */

.contact-form{
  max-width: 560px;
  margin: 0 auto;
}

.contact-form__row{
  margin-bottom: 24px;
}

.contact-form__row label{
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form__row input,
.contact-form__row textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}

.contact-form__row textarea{
  min-height: 160px;
  resize: vertical;
}

.contact-form__submit{
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.contact-form__submit:hover{ opacity: 0.9; }

.contact-form__notice{
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 24px;
}

.contact-form__notice--success{
  background: var(--accent-soft);
  color: var(--text);
  border-left: 3px solid var(--accent);
}

.contact-form__notice--error{
  background: #FBEAEA;
  color: #B23B3B;
  border-left: 3px solid #B23B3B;
}

/* 固定ページ本文の表：左端の列（項目名）を狭くする */
.page-content table{
  width: 100% !important;
  table-layout: fixed !important;
}
.page-content table th:first-child,
.page-content table td:first-child{
  width: 26% !important;
}
.page-content table th:not(:first-child),
.page-content table td:not(:first-child){
  width: auto !important;
}
.page-content table colgroup,
.page-content table col{
  width: auto !important;
}

/* スマホ：3列以上の表は縦に積む（項目名の下に、プランごとの内容を並べる） */
@media (max-width: 767px){
  .page-content table.oriori-stack-table,
  .page-content table.oriori-stack-table tbody,
  .page-content table.oriori-stack-table tr,
  .page-content table.oriori-stack-table td{
    display: block !important;
    width: 100% !important;
  }
  .page-content table.oriori-stack-table thead{
    display: none !important;
  }
  .page-content table.oriori-stack-table tr{
    border: 1px solid var(--border-strong);
    margin-bottom: 16px;
  }
  .page-content table.oriori-stack-table td{
    border: none !important;
    border-top: 1px solid var(--border) !important;
    padding: 12px 14px;
  }
  .page-content table.oriori-stack-table td:first-child{
    background: var(--accent-soft);
    border-top: none !important;
    font-weight: 600;
  }
  .page-content table.oriori-stack-table td[data-label]::before{
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
  }

  /* 2列の表：見出し行は2列目の見出し（例：相部屋・貸切どちらも共通）だけを帯として残す */
  .page-content table.oriori-stack-table--2col thead{
    display: block !important;
  }
  .page-content table.oriori-stack-table--2col thead tr{
    display: block !important;
    border: none;
    margin-bottom: 12px;
  }
  .page-content table.oriori-stack-table--2col thead th:first-child{
    display: none !important;
  }
  .page-content table.oriori-stack-table--2col thead th:not(:first-child){
    display: block !important;
    width: 100% !important;
    padding: 10px 14px;
    text-align: center;
    border: none !important;
    border-bottom: 1px solid var(--border-strong) !important;
  }
}

/* 表の見出し行：太い線をやめ、細いグレーの線＋薄いグレーの背景にする */
.page-content table thead,
.editor-styles-wrapper .wp-block-table thead{
  border-bottom: 1px solid var(--border-strong) !important;
}
.page-content table thead th,
.editor-styles-wrapper .wp-block-table thead th{
  background: #F6F6F6;
}

/* ORIORIならではの体験：写真の縦横比をそろえる（左の写真に合わせた約12:7で、はみ出る部分は切り取る） */
.experience-photo{
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* 見出しの改行：意味のまとまり（.nowrap）の途中では折り返さない。そのほかの見出しも、行の長さがなるべくそろうように折り返す */
.nowrap{ white-space: nowrap; }
.section-title,
.page-content h2,
.page-content h3{ text-wrap: balance; }

/* 英語の固定ページ：本文は Figtree（Proxima Nova に近い無料フォント）で、文字間を詰める */
.lang-en .page-content p,
.lang-en .page-content .wp-block-paragraph,
.lang-en .page-content li,
.lang-en .page-content td,
.lang-en .page-content th,
.lang-en .page-content mark{
  font-family: "Figtree", Verdana, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* 貸切料金かんたん計算（ショートコード [oriori_price_calc]） */
.oriori-price-calc{  background: #F7F7F7;  border-left: 3px solid #9F886E;  padding: 28px;  margin: 40px 0;  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;}
.oriori-price-calc h3{  font-family: "Yu Mincho", 游明朝, "游明朝体", "Hiragino Mincho Pro", serif;  color: #9F886E;  margin: 0 0 12px;  font-size: 18px;  font-weight: 500;}
.oriori-price-calc__note{ font-size: 13px; color: #8C8A82; margin: 0 0 20px; line-height: 1.7; }
.oriori-price-calc__row{ margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.oriori-price-calc__row label{ min-width: 260px; font-size: 14px; color: #3A3936; }
.oriori-price-calc__row input{  padding: 8px 12px;  border: 1px solid #D8D5CB;  border-radius: 2px;  font-size: 15px;  width: 140px;}
.oriori-price-calc__result{  font-size: 20px;  font-weight: bold;  color: #3A3936;  margin: 20px 0 8px;  font-family: "Yu Mincho", 游明朝, "游明朝体", "Hiragino Mincho Pro", serif;}
.oriori-price-calc__result span{ color: #9F886E; }
.oriori-price-calc__warning{ font-size: 13px; color: #B23B3B; margin: 0 0 12px; }
.oriori-price-calc__caveat{ font-size: 12px; color: #8C8A82; margin: 0; line-height: 1.7; }


/* 英語ページの本文フォント指定（16px）が、小さな注意書きの大きさを上書きしないように戻す */
.lang-en .page-content .oriori-price-calc__note,
.lang-en .page-content .oriori-price-calc__warning,
.lang-en .page-content .oriori-access-tabs__note{ font-size: 13px; }
.lang-en .page-content .oriori-price-calc__caveat{ font-size: 12px; }
.lang-en .page-content .oriori-access-tabs__panel p{ font-size: 15px; }

/* パソコン・英語表示：メニューの項目名が長い（Private Plan (Rent the Entire Floor) など）ので、文字を少し小さくし、パネルも少し広げて、1行に収める */
@media (min-width: 768px){
  .lang-en .site-menu{ width: 460px; }
  .lang-en .site-menu__nav a{
    font-size: 17px;
    letter-spacing: 0.03em;
  }
}

/* 写真グリッドの下に動画が来るときの余白 */
.photo-grid + .video-facade{ margin-top: 24px; }

/* スマホ：動画の再生ボタンは、小さめの「透明の丸＋ゴールドの縁・ゴールドの三角」にして、表紙の文字を隠さないようにする */
@media (max-width: 767px){
  .video-facade__play{
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: 2px solid var(--accent);
  }
  .video-facade__play-icon{
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left: 11px solid #FFFFFF;
    margin-left: 3px;
  }
}

/* スマホ：説明文・よくある質問・お知らせの日付を、少し大きくして読みやすくする（デザインは変えない） */
@media (max-width: 767px){
  .section-lead{ font-size: 15px; }
  .plan-compare__card p{ font-size: 15px; }
  .faq-list__q{ font-size: 16px; }
  .faq-list__a{ font-size: 15px; line-height: 1.9; }
  .news-card__date{ font-size: 12px; }
  .news-card__title{ font-size: 16px; }
}

/* スマホ：メニューは、画面の右側から、画面の3/4の幅のパネルで出す（左の1/4は、ページが見える。そこをタッチすると閉じる） */
@media (max-width: 767px){
  .site-menu{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 75vw;
    max-height: none;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .site-menu.is-open{
    max-height: none;
    transform: translateX(0);
  }

  .site-menu__inner{
    min-height: 100%;
    justify-content: flex-start;
    padding: 72px 20px 32px;
  }

  .site-menu__nav a{ font-size: 18px; }
}

/* スマホのメニュー：項目名とボタンを、パネルの中央にそろえる */
@media (max-width: 767px){
  .site-menu__inner{ align-items: stretch; text-align: center; }
  .site-menu__cta{ align-self: center; }
  .site-menu__nav{ align-items: stretch; width: 100%; }
  .site-menu__nav li{ width: 100%; text-align: center; }
  .site-menu__nav a{ display: block; text-align: center; }
  .site-menu__footer{ align-items: center; width: 100%; }
}

/* スマホ：ヘッダーは「左にロゴ、右に言語切り替えとMENU」。画面下のバーは、電話・メール・予約の3つだけにする */
@media (max-width: 767px){
  .site-header__inner{
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 20px;
  }
  .site-header__inner .site-logo{
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .site-header__inner .site-header__lang{
    grid-column: 2;
    grid-row: 1;
    display: flex;
  }
  .site-header__inner .nav-toggle{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
  }
}

/* スマホ下のバー（電話・メール・予約）：上下の余白を同じにする。
   Safariの下のバーに隠れないよう、バー全体を「下の安全領域」の分だけ持ち上げて、
   バーの中の上下の余白（10px）を同じにする */
@media (max-width: 767px){
  .mobile-tabbar{
    bottom: env(safe-area-inset-bottom, 0);
    padding-bottom: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  }
  .mobile-tabbar__item{ padding: 10px 2px; }
  body{ padding-bottom: calc(66px + env(safe-area-inset-bottom, 0)); }
}

/* 英語の予約ページ：同意のチェックを入れるまで、予約ボタンはグレーで押せない */
.agree-check{
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 15px;
}
.agree-check label{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  line-height: 1.6;
}
.agree-check input{
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--accent);
}
.agree-note{
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}
.btn-cta.is-disabled{
  background: #CFCCC4;
  color: #FFFFFF;
  cursor: not-allowed;
}
.btn-outline.is-disabled{
  opacity: 0.4;
  cursor: not-allowed;
}

/* 予約ページのゴールドのボタン：横幅をそろえる（一番長い「Dormitory Plan on Booking.com」に合わせた幅） */
.btn-cta[data-agree-gate]{
  display: block;
  width: 360px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

/* お知らせ（NEWS）：文字だけの一覧 */
.news-list{
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-strong);
}
.news-list li{ border-bottom: 1px solid var(--border-strong); }
.news-list a{
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 4px;
  color: var(--text);
}
.news-list a:hover .news-list__title{ color: var(--accent); }
.news-list__date{
  flex: none;
  min-width: 6.5em;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.news-list__title{
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 767px){
  .news-list a{ flex-direction: column; gap: 2px; padding: 14px 2px; }
  .news-list__title{ font-size: 16px; }
}

/* 横に流れるスライダー（お知らせ・ギャラリー）：矢印つき */
.slider{ position: relative; }

.slider__track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar{ display: none; }

.slider__btn{
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.slider__btn:hover{ color: var(--accent); }
.slider__btn--prev{ left: -8px; }
.slider__btn--next{ right: -8px; }

/* ギャラリー */
.gallery-item{
  flex: 0 0 calc((100% - 40px) / 3);
  margin: 0;
  scroll-snap-align: start;
}
.gallery-item__photo{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.gallery-item__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item figcaption{
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}
@media (max-width: 767px){
  .gallery-item{ flex-basis: 82%; }
  .gallery-item figcaption{ font-size: 14px; }
  .slider__btn{ width: 38px; height: 38px; font-size: 24px; }
  .slider__btn--prev{ left: 2px; }
  .slider__btn--next{ right: 2px; }
}

/* お知らせのカード：背景を白にして、ベージュの背景から、浮き上がらせる（ベージュ系の画像もなじまない） */
.news-card{
  background: #FFFFFF;
  border-color: var(--border-strong);
}

/* ギャラリー・お知らせ：横幅いっぱいのスライダー（写真のタイトルは、マウスを乗せたときに出る） */
.home-section--full{ padding-left: 0; padding-right: 0; }
.slider--full{ margin-top: 8px; }
.slider--full .slider__track{ gap: 0; }

.slider--full .gallery-item{
  position: relative;
  flex: 0 0 25%;
  margin: 0;
}
.slider--full .gallery-item__photo{
  aspect-ratio: 3 / 2;
  border-radius: 0;
}
.slider--full .gallery-item figcaption{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: #FFFFFF;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.slider--full .gallery-item:hover figcaption{ opacity: 1; }

/* スマホ・タブレット（マウスがない端末）では、タイトルを、いつも見せる */
@media (hover: none){
  .slider--full .gallery-item figcaption{ opacity: 1; }
}

.slider--full .slider__btn--prev{ left: 12px; }
.slider--full .slider__btn--next{ right: 12px; }

/* お知らせのカード（横幅いっぱい） */
.slider--full .news-slider{ gap: 12px; padding: 0 12px 8px; }
.slider--full .news-card{ flex: 0 0 calc(25% - 9px); }
.slider--full .news-slider__more{
  flex: 0 0 calc(25% - 9px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  scroll-snap-align: start;
  border: 1px dashed var(--border-strong);
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.06em;
  min-height: 120px;
}

@media (max-width: 1023px){
  .slider--full .gallery-item{ flex-basis: 33.3333%; }
  .slider--full .news-card,
  .slider--full .news-slider__more{ flex-basis: calc(33.3333% - 8px); }
}
@media (max-width: 767px){
  .slider--full .gallery-item{ flex-basis: 50%; }
  .slider--full .gallery-item figcaption{ font-size: 13px; padding: 28px 12px 10px; }
  .slider--full .news-card,
  .slider--full .news-slider__more{ flex-basis: 78%; }
}

/* パソコン：トップページの見出しは、すべて、中央にそろえる（スマホは、左のまま） */
@media (min-width: 768px){
  section.home-section .section-eyebrow,
  section.home-section .section-title{
    text-align: center;
  }
}

/* パソコンだけ：文字の大きさを、現行サイトに合わせる（現行：見出し 約42px、固定ページの本文 16px、字間は標準） */
@media (min-width: 768px){
  body{ letter-spacing: normal; }
  section.home-section .section-title{
    font-size: 42px;
    line-height: 1.4;
  }
  .page-content p,
  .page-content li,
  .page-content td,
  .page-content th{
    font-size: 16px;
  }
  .page-content summary{ font-size: 18px; }
}

/* トップの「ご案内の一覧（■最大６名まで…）」とキャッチコピー */
.facts-item{
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  margin: 0;
}
@media (min-width: 768px){
  /* 現行サイトと同じ：17px・行間広め */
  .facts-item{ font-size: 17px; line-height: 2.4; }
  .facts-tagline-line{ line-height: 2.4; }
}

/* トップページ：見出しまわりの調整 */

/* ① 見出しと、その下の内容との間隔を広げる（約1.5倍） */
section.home-section .section-title{ margin-bottom: 18px; }
@media (min-width: 768px){
  section.home-section .section-title{ margin-bottom: 22px; }
}

/* ② 見出しの上の、小さな英字は、出さない */
section.home-section .section-eyebrow{ display: none; }

/* ④ 2つのプランの「貸切プラン」「相部屋プラン」：ゴールドで、約1.5倍の大きさ */
.plan-compare__card h3{
  color: var(--accent);
  font-size: 27px;
  line-height: 1.4;
}

/* ⑤ トップページのセクションの背景は、上から順に、白とベージュを交互にする
   （非表示のセクションがあっても、自動で、交互になる） */
body.home section.home-section:nth-of-type(odd),
body.page-template-template-home section.home-section:nth-of-type(odd){
  background: var(--bg-alt);
}
body.home section.home-section:nth-of-type(even),
body.page-template-template-home section.home-section:nth-of-type(even){
  background: var(--bg);
}

/* スマホ：トップページの見出しは、すべて中央 */
@media (max-width: 767px){
  section.home-section .section-title{ text-align: center; }
  /* 2つのプランの名前は、見出し（26px）より、1ポイント小さく */
  .plan-compare__card h3{ font-size: 25px; }
}

/* 虹の橋を渡った子（ルネ）の写真は、モノクロにする */
.staff-member--memorial .staff-member__photo img{
  filter: grayscale(1);
}

/* ルネの写真：モノクロに、さらに薄くして、存在感をやわらげる */
.staff-member--memorial .staff-member__photo img{
  filter: grayscale(1) brightness(1.15) contrast(0.8);
  opacity: 0.5;
}

/* ギャラリー：ページの一番下。タイトルは細い帯、写真はフッターにぴったりくっつける */
section.home-section#gallery{
  padding: 0;
  background: transparent;
}
section.home-section#gallery .section-title{
  margin: 0;
  padding: 14px 16px;
  background: #F7F7F7;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
}
@media (min-width: 768px){
  section.home-section#gallery .section-title{ font-size: 28px; padding: 18px 16px; }
}
#gallery .slider--full{ margin-top: 0; }

/* スマホも、フッターの後ろに、写真をうっすらと敷く（1枚目の写真だけ） */
@media (max-width: 767px){
  .site-footer__nav-photos{
    display: flex;
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .site-footer__nav-photos img{ min-height: 0; }
  .site-footer__nav-photos img:nth-child(n+2){ display: none; }
  .site-footer__nav-overlay{ background: rgba(94, 185, 186, 0.82); }
}

/* ギャラリー：写真のタイトル（キャプション）は出さない */
#gallery .gallery-item figcaption{ display: none; }

/* アメニティの（注）：アイマスクと同じ大きさ・行間、見出し（ランドリー等）と同じ太さ */
.amenity-note{
  font-family: Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.9;
  letter-spacing: 0.05em;
}
@media (max-width: 767px){
  /* 直前のグループの下の余白（32px）を打ち消して、耳栓とアイマスクの間と同じ間隔にする */
  .amenity-note{ margin-top: -32px; }
}

/* 引用ボックス（こんな使い方もあります 等）と、貸切料金かんたん計算：背景は同じ #F2F2F2
   （計算ツールは、ページ本文の中に色の指定が入っているため、!important で確実に上書きする） */
.page-content blockquote,
.page-content .wp-block-quote,
.editor-styles-wrapper blockquote,
.editor-styles-wrapper .wp-block-quote,
.page-content .oriori-price-calc{
  background: #F2F2F2 !important;
}

/* 貸切料金かんたん計算：文字の大きさを、引用ボックス（見出し22px・本文16px）に合わせる */
.page-content .oriori-price-calc h3{ font-size: 22px !important; letter-spacing: 0.04em; line-height: 1.3; }
.page-content .oriori-price-calc__note,
.page-content .oriori-price-calc__warning,
.page-content .oriori-price-calc__caveat,
.page-content .oriori-price-calc__row label{
  font-size: 16px !important;
  line-height: 1.9 !important;
}
.page-content .oriori-price-calc__row input{ font-size: 16px !important; }
.page-content .oriori-price-calc__result{ font-size: 22px !important; }

/* 貸切料金の目安の金額は、赤字で */
.page-content .oriori-price-calc__result span{ color: #D32F2F !important; }

/* キャンセルポリシーなどの見出し・箇条書きも、引用ボックスと同じ大きさにそろえる */
.page-content h2,
.page-content .wp-block-heading:is(h2){ font-size: 22px; }
.page-content ul li,
.page-content ol li{ font-size: 16px; }

/* 貸切料金の目安：「目安：」の文字も含めて、全部赤字に */
.page-content .oriori-price-calc__result,
.page-content .oriori-price-calc__result span{ color: #D32F2F !important; }

/* 2つのボックス（引用ボックス・かんたん計算）の左側のゴールドの線は、なくす */
.page-content blockquote,
.page-content .wp-block-quote,
.editor-styles-wrapper blockquote,
.editor-styles-wrapper .wp-block-quote,
.page-content .oriori-price-calc{
  border-left: none !important;
}

/* お知らせの個別ページ：タイトルは、バランス調整をせず、写真の幅いっぱいまで使って折り返す */
.news-single__title{
  text-wrap: wrap;
  text-align: left;
}

/* タイトルのすぐ下に写真・カードが来るセクション：
   「セクションの上端 〜 タイトルの文字」と、「タイトルの文字 〜 写真」の見た目の空きを、同じにする
   （セクションの上の余白は、PC 72px／スマホ 36px。タイトルの文字の上下の空きの差を、少しだけ引いてある） */
section.home-section#plans .section-title,
section.home-section#staff .section-title,
section.home-section#experiences .section-title,
section.home-section#faq .section-title,
section.home-section#instagram .section-title{
  margin-bottom: 36px;
}
section.home-section#news .section-title{ margin-bottom: 28px; } /* 直後のスライダーに、上の余白が8pxある分だけ引く */
@media (min-width: 768px){
  section.home-section#plans .section-title,
  section.home-section#staff .section-title,
  section.home-section#experiences .section-title,
  section.home-section#faq .section-title,
  section.home-section#instagram .section-title{
    margin-bottom: 68px;
  }
  section.home-section#news .section-title{ margin-bottom: 60px; }
}

/* お部屋と設備のページ：本文が、横幅いっぱいの帯（写真＋文字）から始まるので、
   写真バナー（パンくず）の下の白い空きをなくして、ぴったりくっつける */
.page-template-template-facility .page-banner{ margin-bottom: 0; }
.page-template-template-facility .page-banner + .home-section{ padding-top: 0; }

/* パソコンのメニュー：電話のマークを押すと、電話番号が出る（スマホは、押すとそのまま電話がかかる） */
.site-menu__tel-number{
  display: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.site-menu__contact-item--tel.is-showing-number .site-menu__tel-number{ display: block; }

/* スマホで、文の途中で変なところで改行されないよう、ひとまとまりの言葉（.ph）は、途中で切らない */
.ph{ display: inline-block; }

/* スマホだけで改行する <br class="sp-only">（パソコンでは、改行しない） */
br.sp-only{ display: none; }
@media (max-width: 767px){
  br.sp-only{ display: inline; }
}

/* トップ：カレンダーの下の2つのボタン（中央に並べる。スマホでは2段） */
.rates-buttons{
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.rates-buttons .btn-cta,
.rates-buttons .btn-outline{
  min-width: 260px;
  text-align: center;
  justify-content: center;
}
@media (max-width: 767px){
  .rates-buttons{ flex-direction: column; align-items: center; gap: 14px; }
  .rates-buttons .btn-cta,
  .rates-buttons .btn-outline{ width: 100%; max-width: 320px; }
}

/* トップ：よくある質問の答えの中のリンク（動画など）は、サイトのほかのリンクと同じ見た目にする */
.faq-list__a a{
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.faq-list__a a:hover{ text-decoration-color: var(--accent); }
.faq-list__a a::after{
  content: "↗";
  display: inline-block;
  margin-left: 2px;
  font-size: 0.75em;
  transform: translateY(-1px);
}

/* トップ：カレンダー下の2つのボタンの見た目（1つ目は塗りつぶし、2つ目は枠だけ） */
.rates-buttons .btn-cta{
  font-size: 16px;
  padding: 14px 32px;
  box-sizing: border-box;
  border: 1px solid var(--accent);
}
.btn-cta--outline{
  background: transparent;
  color: var(--accent);
}
.btn-cta--outline:hover{ background: var(--accent); color: #FFFFFF; opacity: 1; }

/* PCのヘッダー：右側に「ご予約」ボタンを常に表示（スマホは下のバーに予約があるので出さない） */
.site-header__book{ display: none; }
@media (min-width: 768px){
  .site-header__inner{
    grid-template-columns: 1fr auto auto auto;
    column-gap: 28px;
  }
  /* 地球マーク・MENUと同じ「線のアイコン＋小さな文字」のかたち */
  .site-header__inner .site-header__book{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    text-decoration: none;
  }
  .site-header__book svg{
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--text);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .site-header__book span{
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
  }
  .site-header__book:hover svg{ stroke: var(--accent); }
  .site-header__book:hover span{ color: var(--accent); }
  .site-header__inner .site-header__lang{ grid-column: 3; }
  .site-header__inner .nav-toggle{ grid-column: 4; }
}

/* トップページ：受験生向けの案内帯（ごく淡い桜色の、細い帯） */
.exam-band{
  background: #FBEEF1;
  padding: 36px 0;
  text-align: center;
}
.exam-band__title{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.5;
}
.exam-band__text{
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
}
.exam-band .btn-cta{
  font-size: 15px;
  padding: 12px 32px;
  border: 1px solid var(--accent);
  box-sizing: border-box;
}
@media (max-width: 767px){
  .exam-band{ padding: 28px 0; }
  .exam-band__title{ font-size: 20px; }
}

/* ルネの特技の動画へのリンク。名前の下に、場所をとらずに置く（ほかの3人の名前と、高さがずれないように） */
.staff-member--memorial{ position: relative; }
.staff-member__link-wrap{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  text-align: center;
}
.staff-member__link{
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.staff-member__link:hover{ text-decoration-color: var(--accent); }
.staff-member__link::after{
  content: "↗";
  display: inline-block;
  margin-left: 2px;
  font-size: 0.75em;
}

/* スマホ：ルネの「特技を見る」の下に、1行ぶんくらいの余白をあける */
@media (max-width: 767px){
  .staff-members{ padding-bottom: 27px; }
}

/* ギャラリーの動画：写真と同じ大きさの枠いっぱいに、音なしで流す */
.gallery-item__photo video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ギャラリー：説明の文字を入れた写真・動画だけ、下に小さな帯を、いつも表示する */
.slider--full .gallery-item .gallery-item__tag{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.gallery-item__tag-btn{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}
.gallery-item__tag-btn svg{
  width: 28px;
  height: 16.3px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}
.gallery-item__tag-text{
  max-width: calc(100% - 40px);
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.62);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.gallery-item__tag.is-open .gallery-item__tag-text{
  opacity: 1;
  transform: none;
}
/* マウスを使う端末（パソコン）では、写真・動画にマウスを乗せるだけで、説明が出る */
@media (hover: hover){
  .gallery-item:hover .gallery-item__tag-text{
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 768px){
  .gallery-item__tag-text{ font-size: 13px; }
}

/* ギャラリーの左右の矢印：白い丸をやめて、「＜ ＞」だけにする（小さめ・影つき） */
#gallery .slider__btn{
  top: 34%;
  width: 28px;
  height: 44px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #FFFFFF;
  font-size: 34px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}
#gallery .slider__btn:hover{ color: #FFFFFF; opacity: 0.8; }
#gallery .slider__btn--prev{ left: 6px; }
#gallery .slider__btn--next{ right: 6px; }

/* ギャラリーの場所の説明：右側の矢印と、重ならないように、右に余白をあける */
.slider--full .gallery-item .gallery-item__tag{ right: 34px; }

/* ルネの名前に「（享年10歳）」が入って長くなったので、パソコンでは、少しだけ幅を広げる */
@media (min-width: 768px){
  .staff-member--memorial{ width: 170px; }
}
