@charset "UTF-8";
/* ===== チャイナ飯店 カスタム上書き（テンプレ本体は変更しない） ===== */

/* template111 は body{background:var(--bg-1)} だが --bg-1 未定義 → 白を明示 */
:root {
  --bg-1: #fff;
}

/* TOPギャラリースライダー：画像の比率がバラバラで高さが不揃い（ガタガタ）になるため、
   各スライドを同一比率の枠に中央トリミングで揃える（歪ませない） */
.gallery__slider .swiper-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* グロナビ「ご予約」を赤ボタン化（PCサイドバー／下層横並び／SPドロワー／フッター共通） */
.header__nav-reserve a,
.footer__nav-reserve a {
  display: inline-block;
  background: #df2828;
  color: #fff !important;
  padding: 1rem 3.2rem;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: center;
  white-space: nowrap;
}
.header__nav-reserve a:hover,
.footer__nav-reserve a:hover {
  opacity: 0.85;
  color: #fff !important;
}
/* 下層横並び・フッターで赤ボタンの縦位置をテキスト項目に揃える／ホバー三角を消す */
.underlayer .header__nav-list,
.footer__nav-list { align-items: center; }
.header__nav-reserve::before,
.underlayer .header__nav-reserve::before { display: none !important; }

/* 下層ページ（横並びナビ）の「ご予約」は .underlayer .header__nav-item a{padding:0} に
   潰されて詰まって見えるため、専用に余白を持たせる（PCのみ・indexサイドバー/SPドロワーは据え置き） */
@media (min-width: 768px) {
  .underlayer .header__nav-reserve a {
    padding: 0.9rem 2.8rem;
  }
}

/* Q&A：summary内のpはHTML仕様上不可のため質問テキストをspanに変更。
   .faq summary span（Qバッジの箱装飾）を打ち消し、旧 .faq summary p 相当に戻す */
.faq summary .faq-q {
  display: block;
  flex: 1;
  text-align: left;
  font-size: 1em;
  background: transparent;
  color: inherit;
  width: auto;
  line-height: inherit;
  padding: 0 1.5em 0 0;
}

/* TOPこだわり(.policy)：2枚目画像(margin-left:38.5rem + 幅48rem = 86.5rem)が
   画像列(78rem)を右へはみ出し、gap(7.5rem)を越えて本文テキストに重なるため、
   画像列内に収まるようオフセットを詰める（段違いレイアウトは維持） */
@media (min-width: 768px) {
  /* 画像列(78rem)に対し本文(47.5rem)が狭くアンバランスなため、
     画像を縮小し本文幅を広げてバランスを取る。2枚目は画像列内に収める */
  .policy__img-list { width: 60rem; }
  .policy__img-list li:nth-of-type(2) {
    width: 38rem;
    height: 24rem;
    margin-left: 27rem;
  }
  .policy__txt-wrapper { width: 56rem; }
}

/* TOPメニュー：テキスト左右の余白(外側8rem)が広く違和感があるため控えめな均等余白に。
   偶数項目(テキスト右)が画面追従ボタンに被らないよう、幅1200px以下ではリスト右に
   ボタン分の余白を確保してから詰める（PCのみ） */
@media (min-width: 768px) {
  .menu__txt-wrapper,
  .menu__list-item:nth-of-type(even) .menu__txt-wrapper {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
@media (min-width: 768px) and (max-width: 1200px) {
  /* 狭いPC幅では偶数項目(テキスト右)が画面追従ボタンに被るため、テキスト右だけ余白を足して逃がす。
     画像は左右とも画面端まで抜く(full-bleed)元デザインを保つためリスト側は触らない */
  .menu__list-item:nth-of-type(even) .menu__txt-wrapper { padding-right: 9rem; }
}

/* Q&A見出し「Q&A」：他セクション見出し(約24px)に対し40pxと大きく浮くため縮小 */
.faq h2 { font-size: 28px; }
@media (max-width: 767px) { .faq h2 { font-size: 24px; } }

/* ロゴ：小画面でも縮みすぎない幅を確保 */
.header .header__logo { width: max(8rem, min(12rem, 12vw)); width: clamp(7.5rem, 15vw, 20rem); flex-shrink: 0; }
.underlayer .header .header__logo { width: clamp(8rem, 16vw, 22rem); flex-shrink: 0; }
.footer .footer__logo { width: max(7.5rem, 130px); }
.header .header__logo img, .footer .footer__logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.form-required { display: inline-block; margin-left: .7em; padding: .15em .5em; background: #b31f24; color: #fff; font-size: .8em; line-height: 1.5; }
.thanks-message { text-align: center; }
.thanks-message p { margin-bottom: 1.5em; }
.thanks-message .common__btn { margin: 3rem auto; }
/* ===== コース一覧 & ポップアップのクーポン・割引を非表示 ===== */
/* コース一覧（通常） */
.CMS-COURSE-MENU .rstdtl-course-list__price-discount,
.CMS-COURSE-MENU .rstdtl-course-list__price-before,
.CMS-COURSE-MENU .rstdtl-course-list__price-hotpepper-discount,
.CMS-COURSE-MENU [class*="coupon"],
/* コース詳細ポップアップ（クリック後のモーダル） */
.cms_menu__modal--content .rstdtl-course-list__price-discount,
.cms_menu__modal--content .rstdtl-course-list__price-before,
.cms_menu__modal--content .rstdtl-course-list__price-hotpepper-discount,
.cms_menu__modal--content [class*="coupon"],
.course-dtl .rstdtl-course-list__price-discount,
.course-dtl .rstdtl-course-list__price-before,
.course-dtl .rstdtl-course-list__price-hotpepper-discount,
.course-dtl [class*="coupon"],
.course-dtl__discount-title,
.course-dtl__price-before,
.course-dtl__coupon,
.course-dtl__coupon-btn,
.course-dtl__coupon-contents,
[class*="cms_menu__modal"] .course-dtl__discount-title,
[class*="cms_menu__modal"] .course-dtl__price-before,
[class*="cms_menu__modal"] .course-dtl__coupon,
[class*="cms_menu__modal"] .course-dtl__coupon-contents,
[class*="cms_menu__modal"] .rstdtl-course-list__price-discount,
[class*="cms_menu__modal"] .rstdtl-course-list__price-before,
[class*="cms_menu__modal"] [class*="coupon"],
/* JS 付与クラス */
.course-promotion-hidden { display: none !important; }

/* ===== Swipebox：icons.png が空のためCSS代替アイコンを描画 ===== */
#swipebox-top-bar,
#swipebox-bottom-bar {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  -webkit-transform: none !important;
}
#swipebox-top-bar { top: 0 !important; height: 50px !important; }
#swipebox-bottom-bar { bottom: 0 !important; height: 50px !important; }
#swipebox-close,
#swipebox-prev,
#swipebox-next {
  background-image: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  z-index: 100000 !important;
}
#swipebox-close {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top, 0px)) !important;
  left: 10px !important;
  right: auto !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border-radius: 50%;
}
#swipebox-close::after { content: '✕'; font-size: 26px; }
#swipebox-prev::after  { content: '❮'; font-size: 22px; }
#swipebox-next::after  { content: '❯'; font-size: 22px; }
#swipebox-close:hover,
#swipebox-prev:hover,
#swipebox-next:hover { opacity: 1; }
@media (max-width: 767px) {
 .header .header__logo, .underlayer .header .header__logo { width: max(125px, 24rem); max-width: 48vw; margin: 0; }
 .footer .footer__logo { width: max(140px, 25rem); max-width: 55vw; }
}
@media (max-width: 768px) {
 .footer { padding-bottom: calc(var(--fixed-bar-height, max(50px, 6.4rem)) + max(24px, 4rem) + env(safe-area-inset-bottom, 0px)); }
 .fixed-btn { padding-bottom: env(safe-area-inset-bottom, 0px); background: #4c2500; }
 .pagetop { bottom: calc(var(--fixed-bar-height, max(50px, 6.4rem)) + max(16px, 2rem)); }
}
