/*
 * TOP ページ（FW_RC-1 リニューアル）。HTML は index.php。
 * まとめ割の部品は summary-plan.css を流用し、ここで位置だけ上書きする。座標は Figma の PC デザイン（幅1500px）。
 */

/* ===== FV（価格凍結宣言） ===== */
/* 画面幅が 1500px を超えたときは、背景画像の左右の端の色で外側を塗る */
.rc-top-fv {
  background: linear-gradient(to right, #f17675 50%, #d07c7b 50%);
}

.rc-top-fv .rc-stage {
  height: 690px;
}

.rc-top-fv__bg {
  top: 0;
  left: 0;
  width: 1500px;
}

.rc-top-fv__ttl {
  top: 111px;
  left: 473px;
  color: #fe5b86;
  font-size: 106px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  -webkit-text-stroke: 12px #fff;
  paint-order: stroke fill;
}

.rc-top-fv__ttl span {
  display: inline-block;
  font-size: 146px;
  transform: translateY(-14px) rotate(12deg);
}

.rc-top-fv__date {
  top: 239px;
  left: 490px;
  color: #29aae3;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
}

.rc-top-fv__date b {
  font-size: 61px;
  font-weight: 800;
}

.rc-top-fv__note {
  top: 266px;
  left: 782px;
  color: #000;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* 「あと00日」の赤い爆発マーク。茶色のフチの内側を ::before で赤く塗る */
.rc-top-fv__left {
  --rc-burst: polygon(50% 0, 61% 18%, 82% 9%, 80% 31%, 100% 38%, 85% 54%, 97% 73%, 75% 76%, 71% 98%, 52% 86%, 33% 100%, 27% 79%, 5% 79%, 15% 59%, 0 42%, 20% 33%, 16% 11%, 38% 17%);
  isolation: isolate;
  top: 67px;
  left: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 259px;
  height: 237px;
  clip-path: var(--rc-burst);
  background: #603813;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  letter-spacing: .06em;
  text-align: center;
}

.rc-top-fv__left::before {
  position: absolute;
  inset: 8%;
  z-index: -1;
  clip-path: var(--rc-burst);
  background: #ff1d25;
  content: "";
}

.rc-top-fv__left b {
  color: #fdee20;
  font-size: 81px;
  font-weight: 800;
}

.rc-top-fv__left b + span {
  color: #fdee20;
}

.rc-top-fv__star {
  top: 398px;
  left: 373px;
  width: 115px;
}

.rc-top-fv__review {
  top: 360px;
  left: 498px;
  width: 431px;
  height: 186px;
}

.rc-top-fv__review img {
  top: 0;
  left: 50px;
  width: 232px;
}

.rc-top-fv__review-label {
  top: 23px;
  left: 296px;
  color: #494747;
  font-size: 23px;
  line-height: 1;
}

.rc-top-fv__review-num {
  top: 42px;
  left: 0;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 10px #fff;
  paint-order: stroke fill;
}

/* 白縁の外側に薄い影（Figma）。白い背景の上でも白縁が見えるように */
.rc-top-fv__review-num b {
  color: #fe0000;
  font-size: 97px;
  letter-spacing: -.02em;
  -webkit-text-stroke-width: 13.5px;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, .63));
}

.rc-top-fv__review-num span {
  margin-left: -6px;
  color: #29aae3;
  font-size: 41px;
  -webkit-text-stroke-width: 5.7px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, .63));
}

.rc-top-fv__review-num em {
  color: #0071bd;
  font-size: 75px;
  font-style: normal;
  -webkit-text-stroke-width: 10.5px;
  filter: drop-shadow(0 0 9.5px rgba(0, 0, 0, .63));
}

/* PC：Figma の行位置（Google 上端 -10px、2000 は Google の下 28px あける） */
@media (min-width: 768px) {
  .rc-top-fv__review img {
    top: -10px;
  }

  .rc-top-fv__review-label {
    top: 13px;
  }

  .rc-top-fv__review-num {
    top: 57px;
  }

  .rc-top-fv__review-num em {
    position: relative;
    top: -12px;
  }
}

.rc-top-fv__points {
  top: 512px;
  left: 254px;
  display: flex;
  gap: -17px;
}

.rc-top-fv__points li + li {
  margin-left: -17px;
}

.rc-top-fv__points img {
  width: 344px;
}

/* ===== 各種クレジットカード・電子マネー対応 ===== */
.rc-top-pay {
  padding: 18px 16px 24px;
  background: #ffece5;
  text-align: center;
}

.rc-top-pay p {
  margin: 0 0 8px;
  color: #4d4d4d;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .09em;
}

.rc-top-pay img {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== スライドバナー・スリッパ（bxSlider の既存スタイルに合わせる） ===== */
.rc-top .top-banner {
  padding: 2rem 0;
  background: #fff;
  line-height: 0;
}

.rc-top .top-banner_slider img,
.rc-top .top-slippers-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.rc-top .top-slippers-banner {
  line-height: 0;
}

/* 既存の .top-banner_slider img { display: block } に負けないよう、出し分けを明示する */
.rc-top .top-banner .rc-sp-only,
.rc-top .top-slippers-banner .rc-sp-only {
  display: none;
}

/* ===== おそうじプランのご紹介 ===== */
.rc-top-plan {
  padding: 43px 16px 80px;
  background: #c4e9fd;
  text-align: center;
}

.rc-top-plan__lead {
  color: #fa688f;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: .16em;
}

.rc-top-plan__ttl {
  --rc-sw: 6px;
  margin-top: 14px;
  font-size: 66px;
  line-height: 88px;
  letter-spacing: .12em;
}

.rc-top-plan h3 {
  --rc-sw: 4px;
  --rc-shadow: transparent;
  margin: 0;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: left;
}

/* 金額だけオレンジ、「円」は黒（Figma） */
.rc-top-plan__yen {
  color: #000;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 6px #fff;
  paint-order: stroke fill;
}

.rc-top-plan__yen b {
  color: #f15a24;
  font-size: 64px;
  letter-spacing: -.01em;
}

.rc-top-plan__yen small {
  display: block;
  margin-top: 6px;
  color: #494747;
  font-size: 16px;
  letter-spacing: .05em;
  /* 青い背景の上でも読めるよう白縁を付ける（Figma） */
  -webkit-text-stroke-width: 4px;
}

.rc-top-plan__btn {
  display: block;
  border-radius: 50px;
  background: #f06890;
  box-shadow: 0 4px 0 #c9406a;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 32px;
  letter-spacing: .2em;
  text-align: center;
  text-decoration: none;
}

.rc-top-plan__btn:hover {
  opacity: .85;
}

/* エアコン（大きいカード） */
.rc-top-plan__main {
  position: relative;
  width: 989px;
  margin: 40px auto 0;
  padding-bottom: 24px;
  background: #fff;
  text-align: left;
}

.rc-top-plan__badge {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 159px;
}

/* メニュー画像は FV 用で左側に弧が入っているため、右寄せで拡大して写真部分だけを見せる */
.rc-top-plan__img {
  display: block;
  overflow: hidden;
}

/* 写真は Figma の切り抜き済みの画像なので、拡大や寄せはしない */
.rc-top-plan__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-top-plan__img--main {
  height: 293px;
}

.rc-top-plan__main h3 {
  margin: 26px 0 0 38px;
  font-size: 40px;
}

.rc-top-plan__desc {
  width: 430px;
  margin: 20px 0 0 38px;
  color: #4d4d4d;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .1em;
}

.rc-top-plan__price {
  position: absolute;
  top: 330px;
  left: 500px;
  width: 450px;
}

.rc-top-plan__sub {
  color: #494747;
  font-size: 18px;
  font-weight: 800;
  -webkit-text-stroke: .29em #fff;
  paint-order: stroke fill;
}

.rc-top-plan__price .rc-top-plan__yen {
  margin-top: 8px;
}

.rc-top-plan__price .rc-top-plan__yen b {
  font-size: 84px;
}

.rc-top-plan__medal {
  position: absolute;
  top: -20px;
  right: 0;
  width: 139px;
}

.rc-top-plan__main .rc-top-plan__btn {
  width: 442px;
  margin: 28px auto 0;
}

/* その他（3列） */
.rc-top-plan__list {
  display: grid;
  grid-template-columns: repeat(3, 313px);
  gap: 36px 25px;
  justify-content: center;
  margin-top: 36px;
}

.rc-top-plan__list li {
  height: 439px;
  padding-bottom: 20px;
  background: #fff;
  text-align: left;
}

.rc-top-plan__list .rc-top-plan__img {
  height: 207px;
}

.rc-top-plan__list h3 {
  margin: 20px 0 0 20px;
  font-size: 24px;
  line-height: 28px;
}

.rc-top-plan__list .rc-top-plan__yen {
  margin: 30px 0 0 29px;
}

.rc-top-plan__list .rc-top-plan__yen small {
  padding-left: 64px;
}

.rc-top-plan__list .rc-top-plan__btn {
  width: 274px;
  margin: 20px auto 0;
}

/* ===== まとめ割プラン（まとめ割ページの部品を TOP の座標に置く） ===== */
.rc-top-sum {
  background: #f3b9cf;
}

.rc-top-sum .rc-stage {
  height: 1186px;
}

/* 画面幅が 1500px 未満だとステージの左右が切れて文字が端まで届くので、見えている幅に縮めて中央に置く */
.rc-top-sum__band {
  top: 0;
  left: 50%;
  width: clamp(1100px, 100vw, 1500px);
  transform: translateX(-50%);
}

.rc-top-sum .rc-top-sum__box {
  top: 322px;
  left: 325px;
  width: 842px;
}

.rc-top-sum .rc-sum-menu__lead {
  top: 583px;
}

.rc-top-sum .rc-sum-menu__cloud {
  top: 509px;
}

.rc-top-sum .rc-sum-menu__catch {
  top: 546px;
}

.rc-top-sum .rc-sum-menu__rabbit {
  top: 540px;
}

.rc-top-sum .rc-stage > .rc-sum-menu__list {
  top: 714px;
  left: 265px;
  display: grid;
  grid-template-columns: repeat(4, 246.5px);
  grid-auto-rows: 168px;
}

.rc-top-sum .rc-top-sum__btn {
  top: 1083px;
  left: 529px;
  width: 442px;
  font-size: 24px;
  line-height: 61px;
}

/*
 * ===== SP（767px 以下） =====
 * Figma の SP デザイン（幅750px・2倍サイズ）の座標で 750px ステージに組み、JS で画面幅に合わせて縮小する。
 * ステージに入れていないセクション（クレカ・おそうじプラン）は画面幅に合わせた通常のレイアウト。
 */
@media (max-width: 767px) {
  /* --- FV --- */
  .rc-top-fv .rc-stage {
    height: 1078px;
  }

  .rc-top-fv__bg {
    width: 750px;
  }

  .rc-top-fv__rabbit {
    top: 250px;
    left: 535px;
    width: 205px;
  }

  .rc-top-fv__ttl {
    top: 137px;
    left: 95px;
    width: 505px;
    font-size: 116px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  /* 「！」は「宣言」と同じ行に並べる（うさぎに重ならない幅に収まる） */
  .rc-top-fv__ttl span {
    position: static;
    margin-left: 4px;
    font-size: 116px;
    transform: rotate(12deg);
  }

  .rc-top-fv__date {
    top: 426px;
    left: 95px;
    font-size: 34px;
  }

  .rc-top-fv__date b {
    font-size: 74px;
  }

  .rc-top-fv__note {
    top: 500px;
    left: 169px;
    font-size: 36px;
    line-height: 40px;
    text-align: center;
  }

  .rc-top-fv__left {
    top: 408px;
    left: 466px;
    width: 269px;
    height: 246px;
  }

  .rc-top-fv__star {
    top: 690px;
    left: 68px;
    width: 134px;
  }

  .rc-top-fv__review {
    top: 701px;
    left: 168px;
    width: 470px;
    height: 203px;
  }

  .rc-top-fv__review img {
    left: 40px;
    width: 260px;
  }

  .rc-top-fv__review-label {
    top: 26px;
    left: 318px;
    font-size: 28px;
  }

  .rc-top-fv__review-num {
    top: 64px;
  }

  .rc-top-fv__review-num b {
    font-size: 110px;
  }

  .rc-top-fv__review-num span {
    font-size: 46px;
  }

  .rc-top-fv__review-num em {
    font-size: 86px;
  }

  /* 白縁の外側に薄い影（Figma）。白い背景の上でも白縁が見えるように */
  .rc-top-fv__review-num b {
    -webkit-text-stroke-width: 14.7px;
    filter: drop-shadow(0 0 6.7px rgba(0, 0, 0, .63));
  }

  .rc-top-fv__review-num span {
    -webkit-text-stroke-width: 6.2px;
    filter: drop-shadow(0 0 2.8px rgba(0, 0, 0, .63));
  }

  .rc-top-fv__review-num em {
    -webkit-text-stroke-width: 11.4px;
    filter: drop-shadow(0 0 5.2px rgba(0, 0, 0, .63));
  }

  .rc-top-fv__points {
    top: 879px;
    left: 19px;
  }

  .rc-top-fv__points li + li {
    margin-left: -8px;
  }

  .rc-top-fv__points img {
    width: 246px;
  }

  .rc-top .top-banner .rc-pc-only,
  .rc-top .top-slippers-banner .rc-pc-only {
    display: none;
  }

  .rc-top .top-banner .rc-sp-only,
  .rc-top .top-slippers-banner .rc-sp-only {
    display: block;
  }

  /* --- クレカ --- */
  /* SP は白地にし、下にピンクの線を引いてスライドバナーと区切る（Figma SP） */
  .rc-top-pay {
    border-bottom: .53vw solid #f29bbe;
    background: #fff;
  }

  .rc-top-pay p {
    font-size: 14px;
  }

  .rc-top-pay img {
    width: 92vw;
    max-width: none;
  }

  /* スライドバナー。Figma SP（幅750）では 303px のバナーを 30px 間隔で並べ、左右を見切らせる */
  .rc-top .top-banner {
    padding: 3.9vw 0 2.9vw;
  }

  .rc-top .top-banner_slider {
    left: 14.9vw;
  }

  .rc-top .top-banner_slider li {
    width: 40.4vw !important;
    margin: 0 2vw;
  }

  .rc-top .top-banner .bx-controls-direction {
    display: none;
  }

  .rc-top .top-slippers-banner {
    margin-bottom: 1.73vw;
  }

  /* --- おそうじプラン --- */
  /* Figma SP（幅750）の座標を vw に換算している（1px = 0.1333vw） */
  .rc-top-plan {
    padding: 4.4vw 0 0;
  }

  .rc-top-plan__lead {
    font-size: 3.82vw;
    line-height: 1.5;
  }

  .rc-top-plan__ttl {
    --rc-sw: 4px;
    margin-top: 1.2vw;
    padding-bottom: 6.1vw;
    font-size: 8.8vw;
    line-height: 11.73vw;
  }

  .rc-top-plan__main {
    width: auto;
    margin: 0;
    padding: 5.2vw 5.2vw 3.33vw;
    background: #9bdafc;
  }

  .rc-top-plan__badge {
    top: 2.13vw;
    left: 2.53vw;
    width: 21.2vw;
  }

  .rc-top-plan__img--main {
    height: auto;
    aspect-ratio: 665 / 344;
  }

  /* SP の写真は Figma の切り抜きどおり（拡大や寄せはしない） */
  .rc-top-plan__img--main img {
    object-position: center;
    transform: none;
  }

  .rc-top-plan__main h3 {
    margin: 2.6vw 0 0;
    font-size: 7.47vw;
    line-height: 1.15;
  }

  /* Figma の折り返し（SP は「アレル」の後で改行） */
  .rc-top-plan__desc {
    width: auto;
    margin: 1.9vw 4vw 0 0;
    font-size: 3.82vw;
    line-height: 5.7vw;
  }

  .rc-top-plan__price {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-top: 2.1vw;
  }

  .rc-top-plan__sub {
    font-size: 3.73vw;
  }

  .rc-top-plan__price .rc-top-plan__yen {
    margin-top: 1vw;
    font-size: 3vw;
  }

  .rc-top-plan__price .rc-top-plan__yen b {
    font-size: 17.07vw;
  }

  /* 税込は価格の右に並べる */
  .rc-top-plan__price .rc-top-plan__yen small {
    display: inline-block;
    margin: 0 0 0 2vw;
    font-size: 3.2vw;
    -webkit-text-stroke-width: .84vw;
  }

  .rc-top-plan__medal {
    top: -7.2vw;
    right: 6.1vw;
    width: 25.6vw;
  }

  .rc-top-plan__main .rc-top-plan__btn,
  .rc-top-plan__list .rc-top-plan__btn {
    width: auto;
    margin: 2.8vw 0 0;
    font-size: 3.73vw;
    line-height: 7.2vw;
  }

  .rc-top-plan__list {
    display: block;
    margin-top: 0;
  }

  /* 白い行は写真を右、青い行は写真を左に置き、交互に並べる */
  .rc-top-plan__list li {
    display: grid;
    grid-template-columns: 1fr 35.87vw;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 3.6vw;
    height: auto;
    padding: 4.93vw 5.73vw 5.33vw;
    background: #fff;
  }

  .rc-top-plan__list li > * {
    grid-column: 1;
  }

  .rc-top-plan__list .rc-top-plan__img {
    grid-row: 1 / 4;
    grid-column: 2;
    height: 42vw;
  }

  /* SP は Figma の切り抜き済みの写真なので、拡大や寄せはしない */
  .rc-top-plan__list .rc-top-plan__img img {
    object-position: center;
    transform: none;
  }

  .rc-top-plan__list li:nth-child(even) {
    grid-template-columns: 35.87vw 1fr;
    background: #9bdafc;
  }

  .rc-top-plan__list li:nth-child(even) > * {
    grid-column: 2;
  }

  .rc-top-plan__list li:nth-child(even) .rc-top-plan__img {
    grid-column: 1;
  }

  /* Figma は「レンジフード」なども1行（右の余白まではみ出す） */
  .rc-top-plan__list h3 {
    margin: 2.8vw 0 0;
    white-space: nowrap;
    font-size: 7.47vw;
    line-height: 8.53vw;
    letter-spacing: .12em;
  }

  /* 「円」は Figma どおり小さく */
  .rc-top-plan__list .rc-top-plan__yen {
    margin: 1.7vw 0 0;
    font-size: 3vw;
    text-align: center;
  }

  .rc-top-plan__list .rc-top-plan__yen b {
    font-size: 12.8vw;
  }

  .rc-top-plan__list .rc-top-plan__yen small {
    margin-top: 2vw;
    padding-left: 0;
    font-size: 3.2vw;
    -webkit-text-stroke-width: .84vw;
  }

  .rc-top-plan__list li:nth-child(n) > .rc-top-plan__btn {
    grid-column: 1 / 3;
    margin-top: 3.33vw;
    line-height: 6.13vw;
  }

  /* --- まとめ割 --- */
  .rc-top-sum .rc-stage {
    height: 2238px;
  }

  .rc-top-sum__band {
    width: 750px;
  }

  .rc-top-sum .rc-sum-menu__lead {
    top: 420px;
  }

  /* 枠の見た目は summary-plan.css の .rc-sum-fv__box（SP）と共通。位置だけ TOP に合わせる */
  .rc-top-sum .rc-top-sum__box {
    top: 532px;
    left: 18px;
    width: 717px;
  }

  /* TOP の Figma は「500円OFF」がまとめ割ページより 22px 上 */
  .rc-top-sum .rc-sum-fv__off {
    top: 125px;
  }

  .rc-top-sum .rc-sum-menu__cloud {
    top: 976px;
  }

  .rc-top-sum .rc-sum-menu__catch {
    top: 1026px;
  }

  .rc-top-sum .rc-stage > .rc-sum-menu__list {
    top: 1254px;
    left: 61px;
    grid-template-columns: repeat(2, 316px);
    grid-auto-rows: 200px;
  }

  .rc-top-sum .rc-top-sum__btn {
    top: 2112px;
    left: 40px;
    width: 670px;
    font-size: 28px;
    line-height: 50px;
  }
}
