/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #e8e8e8;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

/* ============================================================
   LP ラッパー（500px中央寄せ）
============================================================ */
.lp-wrap {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  position: relative;
}

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

/* ============================================================
   無限マーキー（オートスクロール）
============================================================ */
.marquee-outer {
  overflow: hidden;
  width: 100%;
  /* overflow-x hidden を親から継承 */
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee var(--duration, 20s) linear infinite;
}

.marquee-img {
  display: block;
  height: var(--h, 200px);
  width: auto;
  max-width: none;
  flex-shrink: 0;
  margin-right: var(--marquee-gap, 0px);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ホバーで一時停止 */
.marquee-track:hover {
  animation-play-state: paused;
}

/* ============================================================
   背景画像上にマーキーをオーバーレイ
============================================================ */
.sec-bg-img {
  /* position:relativeの親の中でブロックを占有 */
  display: block;
}

/* 親セクションをposition:relativeにしてoverlayを絶対配置 */
.sec-kuroji,
.sec-results,
.sec-gym-nice,
.sec-comparison {
  position: relative;
}

.overlay-marquee {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}

.overlay-marquee .marquee-track {
  height: 100%;
}

.overlay-marquee .marquee-img {
  height: 100%;
}

/* ============================================================
   FV セクション
============================================================ */
.sec-fv {
  background: #1a1a1a;
}

.fv-marquee {
  background: transparent;
  padding: 8px 0;
  margin-top: -224px; /* marquee画像高さ(229px) + 3px 分、FVに被せる → 下げ調整済み */
  position: relative;
  z-index: 1;
}

/* ============================================================
   AUN'S GYM FCは… セクション
============================================================ */
.sec-auns {
  background: transparent;
  position: relative;
  z-index: 2;
}

/* ============================================================
   全店舗黒字化 セクション
============================================================ */
.sec-kuroji {
  margin-top: -150px;
  position: relative;
  z-index: 0;
}

/* ============================================================
   加盟者実績 セクション
============================================================ */
.sec-results {
  background: #1a1a1a;
  margin-top: -59px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   出店可能（6つの強み） セクション
============================================================ */
.sec-features {
  background: #fff;
}

/* ============================================================
   他社FCとの比較 セクション
============================================================ */
.sec-comparison {
  background: #fff;
}

.comparison-table-overlay {
  position: absolute;
  top: 250px; /* inline styleで上書き可能 */
  left: 0;
  right: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.comparison-table-overlay::-webkit-scrollbar {
  height: 4px;
}
.comparison-table-overlay::-webkit-scrollbar-track {
  background: transparent;
}
.comparison-table-overlay::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.comparison-table-img {
  height: auto;
  width: 468px;
  max-width: none;
  display: block;
}

/* ============================================================
   50坪でも素敵なジム セクション
============================================================ */
.sec-gym-nice {
  background: #f5eed6;
}

/* ============================================================
   事例 セクション
============================================================ */
.sec-cases {
  background: #fff;
}

/* ============================================================
   CTA セクション
============================================================ */
.sec-cta {
  background: #d8eaf6;
}

.cta-btn-area {
  background: #d8eaf6;
  padding: 12px 24px 32px;
  text-align: center;
  margin-top: -120px; /* ボタン高さ(104px) + 程よいスペース分、CTA画像に被せる */
  position: relative;
  z-index: 1;
}

.cta-btn-img {
  width: 100%;
  max-width: 400px;
  display: inline-block;
  border-radius: 50px;
  transition: opacity 0.15s, transform 0.1s;
}

.cta-link:active .cta-btn-img {
  opacity: 0.85;
  transform: scale(0.98);
}

/* ============================================================
   お急ぎください セクション
============================================================ */
.sec-urgent {
  background: #1a1a1a;
}

/* ============================================================
   オープンまでの流れ セクション（参照実装と等価・スマホ版をPC版として扱う）
============================================================ */
.sec-flow {
  padding-block: 40px;
}

.flow__inner {
  overflow: hidden; /* heading の bleed 用 */
}

.flow__heading {
  width: calc(100% + 60px); /* 左右 -30px bleed */
  margin-inline: -30px;
  margin-bottom: 65px;
  line-height: 0;
}

.flow__heading img {
  width: 100%;
  height: auto;
  display: block;
}

.flow__step {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #000 #e4e4e4;
  scrollbar-width: thin;
  margin-bottom: 60px;
  line-height: 0;
}

.flow__step::-webkit-scrollbar {
  height: 6px;
}
.flow__step::-webkit-scrollbar-track {
  background: #e4e4e4;
}
.flow__step::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 3px;
}

.flow__step img {
  /* main@2x.webp(1571px) を 310vw まで引き伸ばし（最大2330px） */
  width: min(310vw, 2330px);
  max-width: unset;
  height: auto;
  display: block;
}

.flow__desc {
  width: 100%;
  margin-inline: auto;
}

.flow__desc img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   お問い合わせフォーム セクション
============================================================ */
.contact {
  background-color: #E8E8E8;
  padding: 40px 0 100px; /* 下部は固定CTAボタン分の余白 */
}

.contact__wrapper {
  width: calc(100% - 40px);
  max-width: 460px;
  margin: 0 auto;
}

.contact__heading {
  background-color: #4aa53a;
  padding: 60px 0;
  border-radius: 14px 14px 0 0;
  position: relative;
}

.contact__heading h2 {
  position: absolute;
  top: 54%;
  left: 15px;
  transform: translateY(-50%);
  width: calc(100% - 30px);
  margin-inline: auto;
}

.contact__heading h2 img {
  width: 100%;
}

.contactform {
  width: 100%;
  background: #fff;
  border-radius: 0 0 14px 14px;
  padding: 18px 22px 23px;
}

.contactform > * {
  margin-bottom: 25px;
}

.contactform .col-12:not(:last-child) {
  margin-bottom: 23px;
}

.contactform .col-12 input::placeholder {
  color: #e7e7e7;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-label .text-danger {
  background-color: #e61c15;
  color: #fff;
  padding: 0 9px 2px;
  border-radius: 3px;
  margin-left: 14px;
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 500;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  font-size: 15px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  padding: 9px 17px;
  letter-spacing: -0.03em;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url(/_lpapp/images/lp/contact/slot.svg);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.form-control:focus {
  border-color: #4aa53a;
  box-shadow: 0 0 0 3px rgba(74, 165, 58, 0.15);
}

.contactform__note {
  font-size: 13px;
  padding: 0;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 34px;
  margin-bottom: 35px;
  line-height: 1.4;
}

.popoverTrigger {
  color: #0a64eb;
  cursor: pointer;
  text-decoration: underline;
}

.contactform .btn {
  display: block;
  width: 100%;
  font-size: 20px;
  padding: 12px 7px;
  border-radius: 50vh;
  background-color: #3AB225;
  font-weight: 500;
  margin-bottom: 24px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}

.contactform .btn:hover {
  background-color: #2e9a1c;
}

.contactform .btn:active {
  background-color: #237814;
  transform: scale(0.99);
}

/* ============================================================
   ポップオーバー（プライバシーポリシー）
============================================================ */
.popover {
  display: none;
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: unset;
  width: min(82%, 460px);
  height: fit-content;
  z-index: 9999;
}

.popover__inner {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background-color: #fff;
}

.popover__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.popover__close {
  width: 22px;
  aspect-ratio: 1;
  position: absolute;
  top: 20px;
  right: 20px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background-color: transparent;
  z-index: 1;
  cursor: pointer;
}

.popover__heading {
  font-weight: 500;
  text-align: center;
  font-size: 18px;
  margin-bottom: 0.5em;
}

.popover__content {
  max-height: min(82vw, 400px);
  overflow-y: scroll;
}

.popover__content * {
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.popover th,
.popover td {
  display: block;
  margin-bottom: 1em;
}

.popover__content > p {
  margin-bottom: 1em;
}

.popover__close::before,
.popover__close::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 2px;
  background-color: #000;
}

.popover__close::before {
  transform: rotate(45deg);
}

.popover__close::after {
  transform: rotate(-45deg);
}

/* ============================================================
   フッター
============================================================ */
.footer {
  background: #1a1a1a;
  padding: 20px 16px;
  text-align: center;
}

.footer-copy {
  color: #777;
  font-size: 12px;
}

/* ============================================================
   固定CTAボタン（スクロール追従）
============================================================ */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  padding: 10px 20px 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.fixed-cta.is-hidden {
  transform: translateX(-50%) translateY(110%);
}

.fixed-cta-img {
  width: 100%;
  display: block;
  border-radius: 50px;
}

/* ============================================================
   画面幅500px以上でのレスポンシブ
============================================================ */
@media (min-width: 501px) {
  body {
    background: #ccc;
  }

  /* fixed CTAは.lp-wrap幅に合わせて中央に */
  .fixed-cta {
    width: 500px;
  }
}
