@charset "UTF-8";
html { scroll-behavior: smooth; }
#onesignal-slidedown-container{
  display: none!important;
}
/* ===== Variables ===== */
:root {
  --phone-w: 430px;
  --tabs-h: 60px;
  --gap: 16px;
  --brand: #333;
  --bg-tile: url("../img/area_lp/common/pc_bg.png");
}

/* ===== 背景タイル ===== */
body.area-lp {
  font-family: "Noto Sans JP",sans-serif;
  background-image: var(--bg-tile);
  background-repeat: repeat;
  background-position: top center;
}

/* ===== 左上固定ロゴ（レイアウトに影響しない） ===== */
.area-lp__logo {
  position: fixed;
  top: 20px;
  left: 30px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
}

.area-lp__logo img {
  height: 70px;
}

/* ===== 左右レール（PCのみ表示） ===== */
.area-lp__rail {
  position: fixed;
  top: 0;
  height: 100%;
  width: calc((100% - var(--phone-w)) / 2);
  background-image: var(--bg-tile);
  background-repeat: repeat;
  z-index: 1;
}

.area-lp__rail--left {
  left: 0;
}

.area-lp__rail--right {
  right: 0;
}

:root{
  /* .area-lp__logo の位置と高さに合わせておく */
  --logo-top: 20px;        /* .area-lp__logo { top } */
  --logo-h: 32px;          /* ロゴ画像の高さ */
  --gap-from-logo: 30px;   /* ほしい隙間 */
  --rail-offset: calc(var(--logo-top) + var(--logo-h) + var(--gap-from-logo));
}

/* ここを置き換え（top:10% は削除） */
.area-lp__side-body{
  position: relative;
  width: 65%;
  margin: 0 auto;
  top: var(--rail-offset);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.area-lp__banner {
  width: 100%;
  height: auto;
}
.area-lp__banner img{
  max-width: 300px;
}
/* 右サイドのQR/予約 */
.area-lp__qr-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.area-lp__qr-wrap {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
}

.area-lp__qr-item {
  width: 60%;
  text-align: center;
}

.area-lp__qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.area-lp__side-footer {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.area-lp__reserve-text {
  text-align: center;
  font-weight: 700;
}

/* 画像ボタン（ホバーはJS制御） */
.area-lp__image-button {
  position: relative;
  display: block;
  margin: 0 auto;
}

.area-lp__image-button span {
  position: absolute;
  right: 43%;
  top: 43%;
  transform: translateY(-43%);
  -webkit-transform: translateY(-43%);
  margin: auto;
  font-weight: 700;
  font-size: 20px;
  color: #333;
}
/* ===== 中央 430px 本体 ===== */
.area-lp__center {
  position: relative;
  z-index: 2;
  width: var(--phone-w);
  margin: 0 auto;
}

/* タブ（上部固定） */
.area-lp__tabs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0 auto;
  max-width: var(--phone-w);
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}
.area-lp__tab-logo {
  display: block;
  margin: 0 auto;
}
.area-lp__tab {
  width: 215px;
  height: 60px;
  text-align: center;
}

.area-lp__tab--enkai {
  padding: 4px 0;
  background: #880000;
  border-right: 2px solid #bababa;
}
.area-lp__tab--enkai img{
  margin: 0 auto;
  width: 117px;
  height: 52px;
}
.area-lp__tab--toranomaki {
  padding: 10px 0;
  background: #efefef;
  border-left: 2px solid #bababa;
}
.area-lp__tab--toranomaki img{
  margin: 0 auto;
  width: 156px;
  height: 40px;
}

/* 縦スクロールエリア */
.area-lp__phone {
  margin-top: var(--tabs-h);
  background: #FCF2E7;
  overflow: visible;
}

/* ヒーロー/メニュー */
.area-lp__mv {
  position: relative;
}

.area-lp__fixed-ui {
  position: relative;
}

.area-lp__ham-btn {
  position: absolute;
  width: 42px;
  height: 42px;
  top: -10px;
  right: 2px;
  z-index: 101;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

.area-lp__ham-panel {
  display: none;
  position: fixed;
  top: var(--tabs-h);
  right: 0;
  left: 0;
  margin: 0 auto;
  max-width: var(--phone-w);
  width: 100%;
  height: 100vh;
  background: #FFF0F0;
  padding: 20px;
  z-index: 100;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.area-lp__ham-panel.is-active {
  display: block;
}

.area-lp__ham-reserve {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.area-lp__ham-link {
  display: block;
  width: 70%;
  margin: 30px auto 0;
}
.area-lp__mv-top{
  margin: 0 0 3rem;
}
.area-lp__mv-top img {
  vertical-align: bottom;
}
.area-lp__mv-benefits img{
  margin: 0 auto 2rem;
  width: 100%;
  max-width: 390px;
  height: auto;
}

/* セクション汎用 */
.area-lp__brand-logo {
  width: 70%;
  margin: 0 auto;
  padding: 30px 0;
}

.area-lp__course-hero {
  margin: 0 0 3rem;
}

.area-lp__container {
  margin: 0;
  padding: 0 20px 6rem;
  background: #FCF2E7;
}
.area-lp__container:last-of-type{
  margin: 0 0 8rem;
  padding: 0 20px 0;
}
.area-lp__detail-title{
  color: #E90013;
}
.area-lp__course-lead {
  font-size: 26px;
  font-weight: 700;
}

.area-lp__price-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 10px 0;
}

.area-lp__course-badge {
  color: #fff;
  width: 74px;
  height: 74px;
  line-height: 74px;
  font-size: 20px;
  border-radius: 50%;
  font-weight: 700;
  text-align: center;
  background: #880000;
  /* 任意色 */
}

.area-lp__price {
  font-size: 50px;
  font-weight: 700;
  font-family: "Noto Serif JP";
  color: #880000;
}

.area-lp__price-em {
  font-size: 86px;
  font-family: "Noto Serif JP";
}

.area-lp__price-note {
  font-size: 20px;
  display: block;
  text-align: right;
}

.area-lp__course-detail {
  background: #fff;
  padding: 25px;
  margin-top: 25px;
  line-height: 2;
  font-size: 15px;
  border-radius: 10px;
}

.area-lp__benefits {
  margin: 0 0 3rem;
  padding: 0;
}

.note {
  font-size: 12px;
  line-height: 2;
}

/* 店舗カード */
.area-lp__section{
  background: #fff;
}
.area-lp__section-head{
  font-size: 3.2rem;
  color: #880000;
  font-family:  "Noto Serif JP";
  text-align: center;
}
.area-lp__shop {
  padding: 10px 10px 24px;
}

.area-lp__shop-card {
  display: flex;
  gap: 12px;
  padding: 8px;
}

.area-lp__shop-logo {
  width: 35%;
}

.area-lp__shop-logo img {
  border: 1px solid #ddd;
}

.area-lp__shop-info h3 a {
  font-weight: 600;
  color: #bd802a;
}

.area-lp__shop-info p {
  font-size: smaller;
}

/* 店舗CTA */
.area-lp__shop-reserve {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  padding: 8px;
  margin-bottom: 24px;
}

/* ---- ここから修正（中央寄せの堅牢化） ---- */
.area-lp__shop-search{
  padding: 3rem 0;
  /* 幅は親を超えず 250px を上限に */
  width: min(100%, 250px);
  /* どのレイアウトでも横中央 */
  margin-left: auto;
  margin-right: auto;
  /* 親が flex/grid でも中央に */
  align-self: center;      /* flex 親 */
  justify-self: center;    /* grid 親 */
  flex: 0 0 auto;          /* stretch での横伸び抑止 */
}
.area-lp__shop-search a{
  display: block;          /* 幅100%でクリック領域を確保 */
  width: 100%;
}
/* ---- 修正ここまで ---- */

.area-lp__btn {
  display: inline-block;
  text-align: center;
  padding: 1em;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

.area-lp__btn--reserve {
  background: #cf2e2e;
}

.area-lp__btn--line {
  background: #06c655;
}

.area-lp__btn--detail {
  background: #005bab;
}

.area-lp__btn--primary {
  background: var(--brand);
}

/* フッター */
.area-lp__footer {
  position: relative;
  margin: 0 auto;
  width: var(--phone-w);
  background: #F7F5DE;
  z-index: 2;
}

.area-lp__footer-brand {
  width: 100%;
  text-align: center;
  position: relative;
  padding: 20px 0;
}

#area-lp-top {
  position: absolute;
  width: 40px;
  height: 40px;
  top: -19px;
  right: 14px;
}

.area-lp__footer-brand-inner {
  width: 42%;
  margin: 0 auto;
  font-size: 12px;
  color: #000;
}
.area-lp__footer-brand-inner a img{
  margin: 0 auto;
  width: 100%;
  max-width: 50px;
}
.area-lp__footer-brand-inner span {
  display: inline-block;
  margin-top: 11px;
}

.area-lp__tabs-under {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: var(--phone-w);
  margin: 0 auto;
}
/* ===== 中央レーン下部 追従ボタン ===== */
.area-lp__center {
  position: relative;
}

/* ボタン本体（中央レーン内でだけ固定） */
.area-lp__follow{
  position: sticky;
  bottom: 0;                 /* ビューポート下端に吸着 */
  z-index: 400;              /* サイドレールより前に */
  pointer-events: none;      /* 余白クリックを無効化（ボタンだけ有効にする） */
  transition: opacity .2s ease, transform .2s ease;
}

.area-lp__follow-inner{
  max-width: var(--phone-w, 430px);   /* 中央レーン幅に追従 */
  margin: 0 auto;
}

.area-lp__follow-btn{
  pointer-events: auto;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  background: linear-gradient(180deg, #000 0%, #000 100%);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* ヒーロー表示中などで隠す用のクラス（任意のJSでトグル） */
.area-lp__follow.is-hidden{
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .area-lp__rail {
    display: none;
  }

  .area-lp__logo {
    display: none;
  }

  .area-lp__center {
    width: 100%;
    max-width: var(--phone-w);
  }
}

/* ===== 430px未満は phone幅を画面幅に合わせる・全体を可変に ===== */
@media (max-width: 430px) {
  /* 計算に使っている phone 幅を画面幅に合わせる */
  :root {
    --phone-w: 100vw;                /* ← ここが効くと右の余白が消えます */
    --tabs-h: clamp(44px, 14vw, 60px);
  }

  /* センターカラムと関連UIをフル幅に */
  .area-lp__center,
  .area-lp__footer,
  .area-lp__tabs-under,
  .area-lp__tabs,
  .area-lp__ham-panel {
    width: 100%;
    max-width: 100%;
  }

  /* タブはすでに 50% 等分だが念のため */
  .area-lp__tab-logo { flex: 1 1 50%; margin: 0; }
  .area-lp__tab { width: 100%; height: var(--tabs-h); }

  /* 中身の横はみ出し防止（内側余白も少し縮める） */
  .area-lp__phone,
  .area-lp__section,
  .area-lp__container { width: 100%; }
  .area-lp__container { padding-left: clamp(12px, 5vw, 20px);
                        padding-right: clamp(12px, 5vw, 20px); }

  /* 主要画像を流体化（自然に縮むように） */
  .area-lp__mv-top img,
  .area-lp__course-hero img,
  .area-lp__benefits img,
  .area-lp__shop-logo img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* 本文の先頭余白はタブ高に追従 */
  .area-lp__phone { margin-top: var(--tabs-h); }
  .area-lp__price-em{
    font-size: 4rem;
  }
  .area-lp__price{
    font-size: 2.8rem;
  }
}
@media (max-width: 370px) {
  .area-lp__tab--enkai img {
    margin: 0 auto;
    width: 97px;
    height: 42px;
  }
  .area-lp__tab--toranomaki img {
    margin: 0 auto;
    width: 140px;
    height: 32px;
  }
}
