/********** Base **********/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: image-set(
    url("../img/webp/site-bg.webp") type("image/webp"),
    url("../img/original/site-bg.jpg") type("image/jpeg")
  );
  background-repeat: repeat;
}

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

li {
  list-style: none;
}

.page-container {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, .2);
}
/* 視覚的に非表示にするユーティリティ */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;margin:-1px;padding:0;border:0;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
}



/********** Header **********/
.header {
  background-color: #fff;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
}
.header__logo,
.header__cta-wrap {
  flex: 0 1 auto;
  min-width: 0;
}
.header__logo {
  flex-basis: 20%;
}
.header__cta-wrap {
  flex-basis: 70%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__image--cta,
.header__image--call {
  min-width: 0;
}


/********** cta-area **********/
.cta-area {
  background-image: url("../img/original/cta_area1.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 750 / 345;
}
.cta-area__inner {
  width: 100%;
  padding: 28% 4% 4%;
  max-width: 750px;
  margin: 0 auto;
}
.cta-area__wrap {
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

  /* CTAボタン群の“基準の高さ”を1か所で管理（可変） */
.cta-area,
.cta-area--floating{
  --cta-h: clamp(46px, 14vw, 95px);
}
.cta-area__cta,
.cta-area__tel{
  display:block;
  width: auto;
  max-width: 100%;
  height: var(--cta-h);
  cursor: pointer;
}
/* 各画像のアスペクト比を宣言して、計算を安定化 */
.cta-area__cta{ aspect-ratio: 1047 / 197; }
.cta-area__tel{ aspect-ratio: 97 / 95; }

/* cta-area--floating */
.cta-area--floating {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 750px;
  margin-inline: auto;
  background-image: url("../img/original/cta-floating_bg.jpg");
  background-size: cover;
  background-position: bottom;
  min-height: 80px;
  height: auto;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, .1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  aspect-ratio: auto;
  z-index: 1000;
  transform: translateY(var(--cta-shift, 0));
  will-change: transform;
}
.cta-area--floating.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cta-area--floating .cta-area__inner {
  padding: clamp(16px, 5%, 24px) 4%;
}


/********** comparison, member-info **********/
.comparison {
  margin-top: -2px;
}
.comparison,
.member-info {
  position: relative;
  max-width: 750px;
  --left: 3.2%;   /* 703px 内枠に合わせた左右余白 ≒ (751-703)/2 / 751 */
  --right: 3.2%;
  --bottom: 6%;
}
.comparison {
  --top: 19%;
}
.member-info {
  --top: 22%;
}

.comparison__inner,
.member-info__inner {
  position: absolute;
  top: var(--top);
  left: var(--left);
  right: var(--right);
  bottom: var(--bottom);
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
}

.comparison {
  background: url("../img/original/comparison_bg.jpg") no-repeat center/contain;
  aspect-ratio: 750 / 1099;
}
.member-info {
  margin-top: -1px;
  background: url("../img/original/member-info_bg.jpg") no-repeat center/contain;
  aspect-ratio: 750 / 1050;
}


/* tab */
.c-tab-wrap {
  display: flex;
  gap: 10px;
}
.c-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: clamp(44px, 12vw, 70px);
  padding: clamp(4px, 1.2vw, 12px) clamp(8px, 2.4vw, 16px);
  border: none;
  background: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-size: clamp(12px, 4vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS Mincho", "MS PMincho", serif;
}
.c-tab:hover {
  background: #cf5f6b;
  color: #fff;
}
.c-tab.is-active {
  background: #cf5f6b;
  color: white;
  box-shadow: 0 2px 4px rgba(207, 95, 107, 0.5);
}
/* 2行テキストのタブ用の個別設定 */
#tab-members {
  font-size: clamp(10px, 3.2vw, 20px);
}

/* panel */
.c-panels {
  position: relative;
  overflow: hidden;
}
/* 全パネルを同じ位置に重ねる */
.c-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s step-end;
}
.c-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .35s ease, visibility .35s step-start;
  z-index: 1;
}
.c-panel-image {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.c-panel img {
  width: 100%;
  height: auto;
  display: block;
}


/********** course **********/
.course {
  background-color: #fff;
}
.course__inner {
  padding: 40px 0;
}
.course__slider {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
}
.course__slide {
  width: 100%;
  height: auto;
}
.splide__list {
  height: fit-content !important;
}

/* Splide フェード効果のカスタマイズ */
.splide__slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.splide__slide.is-active {
  opacity: 1;
}
.splide__slide.is-prev,
.splide__slide.is-next {
  opacity: 0;
}


/********** reviews **********/
.reviews__button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 0;
  font-size: clamp(20px, 6.4vw, 32px);
  color: #333;
  background-color: #F7F1E1;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.reviews__button:hover {
  background-color: #f0e8d0;
}
.reviews__button-text {
  transition: opacity 0.3s ease, color 0.3s ease;
}
.reviews__button-text.fade-out {
  opacity: 0;
}

.reviews__icon {
  position: absolute;
  top: 45%;
  right: 10%;
  display: inline-block;
  width: clamp(12px, 4vw, 20px);
  height: clamp(12px, 4vw, 20px);
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: translateY(-50%) rotate(135deg);
  transition: transform 0.3s ease;
}
.reviews__icon.is-open {
  top: 55%;
  transform: translateY(-50%) rotate(-45deg);
}

#reviews-extra {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  max-height: 0;
}
#reviews-extra.is-open {
  max-height: 5000px;
}


/********** office-info **********/
.office-info {
  margin-bottom: 80px;
}


/********** footer **********/
.footer {
  background-color: #cf5f6b;
}
.footer__inner {
  padding: 40px 0;
}
.footer__nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin-bottom: 24px;
}
.footer__nav-link {
  font-size: clamp(16px, 4vw, 24px);
  color: #fff;
}
.footer__copyright {
  font-size: 16px;
  text-align: center;
  color: #fff;
}