html {
  overflow-x: hidden;
}
body.loading {
  overflow: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "NotoSansJP", "Inter", sans-serif;
}
#loadingScreen {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #eee;
  border-top: 5px solid #888;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
body:not(.loading) #loadingScreen {
  display: none;
}
.main {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.main img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
}
/* アニメーション共通設定 */
.animate-on-scroll {
  opacity: 0;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes fadeInRightToCenter {
  0% {
    opacity: 0;
    transform: translate(-48%, 0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.04);
  }
}
@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* FV */
.sec-FV {
  position: relative;
  max-width: 480px;
  width: 100%;
}
.FV-text {
  position: absolute;
  top: 7%;
  left: 50%;
  opacity: 0;
}
.FV-text.is-visible {
  animation: fadeUp 1s ease-out 0.3s forwards;
}
.FV-3point {
  position: absolute;
  bottom: 23%;
  left: 54%;
  opacity: 0;
  width: 90%;
}
.FV-3point.is-visible {
  animation: fadeInRightToCenter 1s ease-out 0.7s forwards;
}

.FV-btn {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  animation: pulse 2s ease-in-out infinite;
}
.FV-btn:hover {
  filter: brightness(1.15);
  transition: filter 0.3s ease;
}

/* スタジオモーダル */
.studio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}


.studio-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}


.studio-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
  touch-action: none;
}


.studio-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    overscroll-behavior: contain;
}




.studio-modal-header {
  position: relative;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10% 20%;
  overscroll-behavior: contain;
}


.studio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #374151;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2;
}


.studio-modal-close:hover {
  background-color: #1f2937;
}


.studio-modal-close span {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}


.studio-modal-header-img {
  text-align: center;
}


.studio-modal-header-img img {
  width: 70%;
  margin: 0 auto;
  height: auto;
}


.studio-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


body.modal-open {
  overscroll-behavior: none;
  touch-action: none;
}


.studio-prefecture-item {
  margin: 10px 0;
  overscroll-behavior: contain;
}


.studio-prefecture-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  background-color: #f3f4f6;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
  color: #1f2937;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}


.studio-prefecture-btn:hover {
  background-color: #e5e7eb;
}


.studio-toggle-icon {
  font-size: 24px;
  color: #9ca3af;
  font-weight: 300;
  line-height: 1;
}


.studio-list {
  overflow: hidden;
  margin-top: 0;
  max-height: 0;
  transition: max-height 0.15s ease-out, margin-top 0.15s ease-out;
}


.studio-prefecture-item.is-open .studio-list {
  max-height: 1000px;
  margin-top: 8px;
  transition: max-height 0.35s ease-in-out, margin-top 0.35s ease-in-out;
}


.studio-prefecture-item.is-open .studio-toggle-icon {
  content: '−';
}


.studio-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.3s ease;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
}


.studio-link:last-child {
  margin-bottom: 0;
}


.studio-link:hover {
  background-color: #f9fafb;
}


.studio-arrow {
  font-size: 20px;
  color: #9ca3af;
}


/* 受付停止中の店舗スタイル */
.studio-link.disabled {
  position: relative;
  cursor: not-allowed;
  pointer-events: none;
}


/* 黒の半透明オーバーレイ */
.studio-link.disabled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px;
  z-index: 1;
}


.studio-link.disabled:hover {
  background-color: #fff;
}


.closed-badge {
  display: none;
  position: absolute;
  font-size: 12px;
  right: 28%;
  background-color: #394d65a3;
  color: #fff;
  padding: 3px 10px;
  margin-right: -17%;
  z-index: 2;


}


.studio-link.disabled .closed-badge {
  display: inline-block;
}


/* マップビュー追加分 */
.studio-map-view {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1.2;
}


.japan-map-bg {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
}


.region-marker {
  position: absolute;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}


.region-marker:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}


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


/* 地域ごとの配置と画像サイズ */
.region-kansai {
  bottom: 22%;
  left: 40%;
  width: 27%;
}


.region-chubu {
  top: 39%;
  left: 27%;
  width: 27%;
}


.region-chugoku {
  bottom: 45%;
  left: 6%;
  width: 27%;
}


.region-kanto {
  top: 59%;
  left: 68%;
  width: 27%;
}


.region-kyusyu {
  top: 81%;
  left: 23%;
  width: 27%;
}


.region-tohoku {
  top: 34%;
  left: 69%;
  width: 27%;
}


.studio-list-view {
  padding: 10px;
  width: 90%;
  margin: 0 auto;
}


.back-to-map-button {
  background: none;
  border: none;
  color: #394d65;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
}


.back-to-map-button:hover {
  color: #2d3d52;
}


/* sec-02 */
.sec-02 {
  position: relative;
  width: 100%;
}
.sec-02-10000users {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: 2%;
  opacity: 0;
}
.sec-02-10000users.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.gold-studio {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: 11%;
  opacity: 0;
}
.gold-studio.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.box-1 {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: 21%;
  opacity: 0;
}
.box-1.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.box-2 {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: 39%;
  opacity: 0;
}
.box-2.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec--2-feedin-righttocenter {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  bottom: 10%;
  opacity: 0;
}
.sec--2-feedin-righttocenter.is-visible {
  animation: fadeInRightToCenter 1s ease-out 0.5s forwards;
}
/* sec-03 */
.sec-03 {
  position: relative;
  width: 100%;
}
.sec03-text {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: 12%;
  opacity: 0;
}
.sec03-text.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
/* sec-CTA */
.cta-btn {
  position: absolute;
  bottom: 7%;
  left: 50%;
  width: 90%;
  animation: pulse 2s ease-in-out infinite;
}
.cta-btn:hover {
  filter: brightness(1.15);
  transition: filter 0.3s ease;
}
/* sec04*/
.sec-04 {
  position: relative;
  width: 100%;
}
.sec-04-text {
  position: absolute;
  transform: translateX(-50%);
  top: 8%;
  left: 50%;
  opacity: 0;
}
.sec-04-text.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec-04-text-2 {
  position: absolute;
  transform: translateX(-50%);
  bottom: 8%;
  left: 50%;
  opacity: 0;
}
.sec-04-text-2.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
/* sec05*/
.sec-05 {
  position: relative;
  width: 100%;
}
.sec-05-text {
  position: absolute;
  transform: translateX(-50%);
  top: 6%;
  left: 50%;
  opacity: 0;
}
.sec-05-text.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
/* sec06*/
.sec-06 {
  position: relative;
  width: 100%;
}
.sec-06-text {
  position: absolute;
  transform: translateX(-50%);
  top: 2%;
  left: 50%;
  opacity: 0;
}
.sec-06-text.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec-06-text-2 {
  position: absolute;
  transform: translateX(-50%);
  top: 56%;
  left: 50%;
  opacity: 0;
}
.sec-06-text-2.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec-06-text-3 {
  position: absolute;
  transform: translateX(-50%);
  top: 87%;
  left: 50%;
  opacity: 0;
}
.sec-06-text-3.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec06-flow-wrapper {
  width: 100%;
  position: absolute;
  top: 33%;
  text-align: center;
}
.sec06-flow {
  background-color: #394d65;
  padding: 16px;
  width: calc(100%-60px);
  margin: 8px 30px;
  color: #fff;
  font-size: 24px;
  text-align: center;
  border-radius: 50px;
}
.sec06-flow.is-visible {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.8s ease-out forwards;
}
.flow-arrow {
  font-size: 24px;
}
.flow-arrow.is-visible {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.8s ease-out forwards;
}
/* sec07 */
.sec-07 {
  position: relative;
}
.sec-07-text {
  position: absolute;
  top: 59%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  opacity: 0;
  text-align: center;
}
.sec-07-text.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec-07-img-wrapper {
  padding: 0 30px;
  box-sizing: border-box;
}
.sec-07-img {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px); /* ← 両端30pxずつ引く */
  height: auto;
  opacity: 0;
}
.sec-07-img.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
/* sec08 */
.sec-08 {
  background-color: #394d65;
  padding-bottom: 60px;
  text-align: left;
}
.trainer {
  font-size: 26px;
  background-color: #d7dbe0;
  clip-path: polygon(0 0, 96% 0, 100% 100%, 0% 100%);
  max-width: 70%;
  color: #394d65;
  padding: 8px 20px 8px 20px;
  margin-bottom: 8px;
  letter-spacing: 0.1rem;
}
.sec-08 h3 {
  margin: 0 0 50px 0;
}
.sec-08-text {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}
.sec-08-text.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec-08-img-wrapper {
  margin: 0 30px 0 30px;
}
.sec-08-img {
  position: relative;
  opacity: 0;
  text-align: left;
  left: 50%;
  width: 100%;
}
.sec-08-img.is-visible {
  animation: fadeUpY 1s ease-out 0.5s forwards;
}
.sec-08 p {
  font-size: 18px;
  color: #fff;
  padding: 0 30px;
  text-align: left;
  line-height: 2rem;
}
.sec-08 img {
  margin: 0 auto 50px auto;
}
.middle-text {
  font-size: 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}
.large-text {
  font-size: 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}
.sec-08 span {
  background-color: #eedfae;
  color: #394d65;
  padding: 2px;
  font-weight: 600;
}
.point-title {
  font-size: 26px;
  letter-spacing: 0.1rem;
  text-align: center;
  color: #fff;
  font-weight: 400;
  padding: 0 20px;
  margin: 0 0 50px 0;
}
.point-number {
  font-size: 60px;
  text-align: center;
  color: #9ca6b2;
  font-family: YuMincho;
  letter-spacing: 0.2rem;
  font-weight: 300;
}
/* sec09 */
.sec-09 {
  background-color: #c4cad1;
  padding: 60px 0;
}
.sec-09 h2 {
  margin: 0 0 50px 0;
  font-family: YuMincho;
  font-weight: 500;
  font-size: 32px;
  text-align: center;
  color: #333;
  letter-spacing: 0.12rem;
}
.carousel-wrapper {
  max-width: 480px;
  margin: 0 auto;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 30px;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-padding: 30px;
  gap: 20px;
  padding: 0;
}

.carousel-track::before,
.carousel-track::after {
  content: none;
  flex: 0 0 30px;
}
.carousel-track .carousel-item.dummy {
  flex: 0 0 10px !important;
  width: 30px !important;
  max-width: 30px !important;
  margin-right: 0 !important; /* ← ここを必要に応じて調整 */
  margin-left: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  pointer-events: none;
}
.carousel-item {
  background-color: #fff;
  border: 1px solid #394d65;
  transform: translateZ(0);
  border-radius: 5px;
  flex: 0 0 calc(100% - 30px);
  scroll-snap-align: start;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/*sec-10*/

.p-flow {
  position: relative;
  padding-top: 40px;
  padding-bottom: 50px;
}

.p-flow::after {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./../img/flow-bg.webp") no-repeat center center/cover;
  content: "";
}

.p-flow__title {
  aspect-ratio: 433/140;
  width: 216px;
  height: auto;
  margin-inline: auto;
}

.p-flow__title img {
  width: 100%;
  height: auto;
}

.p-flow__contents {
  margin-top: 48px;
}

.p-flow__item:not(:first-child) {
  margin-top: clamp(20px, 7.645vw, 49.6925px);
}

/*===================================
.p-flow-item
====================================*/

.p-flow-item {
  display: flex;
  justify-content: space-between;
}

.p-flow-item__left {
  position: relative;
  width: 20.8585981082%;
}

.p-flow-item__right {
  width: 73.571024335%;
}

.p-flow-item__step {
  display: block;
  position: relative;
  aspect-ratio: 129/52;
  width: 100%;
  height: auto;
  background: #a99072;
  box-shadow: 1px 2px 2px 0px rgba(0, 0, 0, 0.25);
}

.p-flow-item__step img {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 69.7674418605%;
  height: auto;
  translate: -50% -50%;
}

.p-flow-item__bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 87%;
  margin-top: 62.7906976744%;
  background: #333;
}

.p-flow-item__title {
  font-weight: 500;
  font-size: 24px;
  margin: 8px auto;
  line-height: 1;
  font-family: "Zen Old Mincho", serif;
}

.p-flow-item__title.--lh {
  margin-top: -2px;
  line-height: 1.27;
}

.p-flow-item__btn {
  margin-top: clamp(12px, 4.8vw, 31.2px);
}

.p-flow-item__img {
  width: 100%;
  height: auto;
  margin-top: clamp(10px, 5.3333vw, 34.666px);
}

.p-flow-item__img img {
  width: 100%;
  height: auto;
}

.p-flow-item__text {
  margin-top: clamp(12px, 4.8vw, 31.2px);
  font-size: 20px;
  line-height: 1.5333;
}

/*===================================
.p-flow-item-btn
====================================*/

.p-flow-item-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80.4395604396%;
  -moz-column-gap: 5%;
  column-gap: 5%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 2.5px;
  background: linear-gradient(1deg, #fc8a00 1.4%, #ffaa42 98.96%);
  transition: opacity 0.3s ease 0s;
}

.p-flow-item-btn:hover {
  opacity: 0.7;
}

.p-flow-item-btn__text {
  color: #fff;
  font-size: 20px;
  margin: 12px;
  font-family: "Zen Old Mincho", serif;
}

.p-flow-item-btn__img {
  width: 10.1092896175%;
  height: auto;
}

.p-flow-item-btn__img img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes fadeUpY {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.footer-image {
  position: relative;
  margin: 0 auto;
}
.reserve-link {
    position: absolute;
    left: 58.3%;
    transform: translateX(-50%);
    bottom: 29.3%;
    width: 27%;
    aspect-ratio: 300 / 56;
    display: block;
    z-index: 2;
    touch-action: manipulation;
}
.company-link {
    position: absolute;
    left: 33.3%;
    transform: translateX(-50%);
    bottom: 32.3%;
    width: 12%;
    aspect-ratio: 300 / 56;
    display: block;
    z-index: 2;
    touch-action: manipulation;
}

/* 追従ボタンのスタイル */
.follow-btn {
    position: fixed;
    bottom: 20px;
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 432px; 
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.follow-btn.show {
    opacity: 1;
    visibility: visible;
}

.follow-btn a {
    display: block;
    text-decoration: none;
}

.follow-btn img {
    width: 100%; 
    height: auto;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.follow-btn:hover img {
    transform: scale(1.02); 
}

/* モーダル読み込み時に、都道府県リスト（listView）を
  デフォルトで非表示にする 
*/
.studio-modal .studio-list-view { 
  display: none; 
}