:root {
  --mobile-width: 600px;
  --radius: 18px;
  --panel: #ffffff;
  --primary: #e25959;
  --primary-weak: #ecfdf5;
  --text: #363636;
  --muted: #64748b;
  --brand-green: #a1c755;
  --coupon-red: #e11d48;
  --nav-red: #ef4444;
}
p {
  margin: 0;
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: #fff;
  font-family: "Noto Serif JP", serif;
  color: var(--text);
  line-height: 1.6;
  display: grid;
  place-items: center;
  min-height: 100dvh;
}
.phone {
  aspect-ratio: 375 / 645;
  width: min(100%, 600px, calc(100dvh * (375 / 645)));
  background: var(--panel);
  overflow: clip;
  position: relative;
  overflow: hidden;
}
.canvas {
  width: 375px; /* 基準サイズに固定 */
  height: 645px;
  transform-origin: top left;
  will-change: transform; /* 滑らかに */
}
.stepbar__wrap {
  background: var(--brand-green);
  padding-inline: 18px;
  padding-top: 15px;
  padding: 0.94rem 1.12rem 0.31rem;
}
.stepbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.seg {
  height: 4px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.seg.active > i {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--primary);
  transition: width 0.2s linear;
  display: block;
}
.seg.active {
  /* outline: 2px solid rgba(16, 185, 129, 0.25); */
}
.stepbar__text {
  color: #fff;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.25rem;
}
.stepbar__text--shop {
  white-space: nowrap;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 500;
  letter-spacing: -0.04125em;
  font-size: 16px;
  margin: 0;
}
.stepbar__text--shop .small {
  font-size: 0.75em;
  font-size: 12px;
}
.stepbar__text--shop .base {
  font-size: 1.375rem;
  font-size: 22px;
}
.stepbar__text--shop .shop {
  font-size: 1.25rem;
  letter-spacing: -0.0375rem;
  font-size: 20px;
}

.stage {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage::before {
  content: "";
  width: 100%;
  height: 50px;
  background: var(--brand-green);
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  z-index: 2;
}
.stage.no-before::before {
  content: none; /* このクラスが付いたときは非表示 */
}
.bg {
  position: absolute;
  inset: 0;
  /* background: #000; */
}
.bg video,
.bg img {
  width: 100%;
  object-fit: contain;
  display: block;
}
.bg video {
  filter: brightness(80%);
}
.bg img.bg-poster,
.bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 比率優先なら contain に */
  /* transition: opacity 0.15s linear; */
}

/* 初期状態：画像が見える、video は透明 */
.bg img.bg-poster {
  opacity: 1;
  will-change: opacity;
}
.bg video {
  /* opacity: 0; */
  will-change: opacity;
}
.promo {
  border-radius: 0.9375rem;
  background: rgba(255, 255, 255, 0.85);
  position: absolute;
  left: 50%;
  top: 0px;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  width: 84%;
  z-index: 5;
  padding: 11px 18px 18px;
}

.promo .promo__title {
  text-align: center;
  border-radius: 10px 10px 0 0;
  color: #363636;
  font-size: 18px;
  font-weight: 600;
  line-height: 140%; /* 1.575rem */
  letter-spacing: -0.03375rem;
  width: fit-content;
  margin: 0 auto;
  padding-bottom: 2px;
  background: linear-gradient(transparent 60%, #ffd371 40%);
}
.promo .panel {
  text-align: center;
}
.promo .panel .answer {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
}
.promo .coupon {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}
.promo .coupon .red {
  color: #e25959;
  text-align: center;
  font-family: "Noto Serif JP";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.42px;
}
.promo .coupon .price {
  color: #e25959;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.66px;
}
.promo .coupon .through {
  color: #363636;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.48px;
  position: relative;
}
.promo .coupon .through::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 80%;
  height: 1px; /* 線の太さ */
  background: currentColor; /* 文字と同じ色 */
  transform: rotate(-20deg); /* 斜め角度を調整 */
  transform-origin: center;
}
.promo .panel .present {
  color: #363636;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 140%; /* 25.2px */
  letter-spacing: -0.54px;
  margin-top: 3px;
}
.promo .promo__arrow {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #363636;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 100%;
  letter-spacing: -0.03375rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);
  padding: 9px;
  width: 91px;
}
.card {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  width: calc(270 / 375 * 100%);
  border-radius: 0.9375rem;
  background: #fffade;
}
.card-inner {
}
.title {
  background: #363636;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 140%; /* 1.575rem */
  letter-spacing: -0.03375rem;
  border-radius: 0.9375rem 0.9375rem 0 0;
  padding: 0.88rem;
}
.choice {
  display: grid;
  gap: 10px;
  padding: 1.56rem 1.25rem 1.25rem;
}
.choice button {
  text-align: left;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  color: #363636;
  font-size: 0.9375rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 140%; /* 1.3125rem */
  letter-spacing: -0.02813rem;
  cursor: pointer;
  border: none;
}

.nav {
  position: absolute;
  top: calc(50% - 100px);
  transform: translateY(-50%);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 999px;
  background: #e25959;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.nav.prev {
  left: 5px;
}
.nav.next {
  right: 10px;
}
/* 右向き「>」矢印を疑似要素で描く */
.nav.next::before {
  content: "";
  width: calc(35px * 0.26); /* 矢印の長さ */
  height: calc(35px * 0.26);
  border-right: calc(35px * 0.08) solid currentColor;
  border-top: calc(35px * 0.08) solid currentColor;
  transform: rotate(45deg);
  margin-right: calc(35px * 0.1);
}

/* 左向き「<」にしたい場合（必要なら） */
.nav.prev::before {
  content: "";
  width: calc(35px * 0.26);
  height: calc(35px * 0.26);
  border-left: calc(35px * 0.08) solid currentColor;
  border-bottom: calc(35px * 0.08) solid currentColor;
  transform: rotate(45deg);
  margin-left: calc(35px * 0.1);
}

.cta {
  position: absolute;
  left: 50%;
  bottom: 19%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 348px;
  text-align: center;
}
.cta .btn {
  display: block;
  width: 100%;
  border-radius: 100vmax;
  border: 3px solid #fff;
  background: #e25959;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 22px;
  font-size: 16px;
  font-weight: 800;
  background: var(--coupon-red);
  cursor: pointer;
  color: #fff;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  transition: all 0.3s;

  &:hover {
    scale: 0.95;
  }
}
.cta .btn::before {
  content: "";
  display: block;
  width: 10px; /* 矢印の長さ */
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  right: 27px;
  translate: 0 -50%;
}

.company__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 10px 00;
  padding: 0;
}
.company__links-item {
  a {
    display: block;
    color: #363636;
    font-size: 11px;
    font-weight: 600;
    line-height: 140%; /* 15.4px */
    letter-spacing: -0.33px;
    text-decoration: none;
    transition: all 0.3s;

    &:hover {
      opacity: 0.7;
    }
  }
}

/* ボタン強制非表示用（他のdisplay指定より強く） */
.nav.is-hidden {
  display: none !important;
}
