﻿/* price/index.html 用スタイル（PCたたき台 / クラスセレクタのみ） */
/* 方針:
 * - タグセレクタ禁止（クラスのみ）
 * - モック実装前提で、後で数値をXDに寄せて調整しやすい粒度
 */

 /* ----------------------------------------
  keyframes
---------------------------------------- */
@keyframes arrowBumpRight {
  0% {
    transform: translate(0, -50%) rotate(45deg);
  }
  40% {
    transform: translate(5px, -50%) rotate(45deg);
  }
  100% {
    transform: translate(0, -50%) rotate(45deg);
  }
}

@keyframes arrowBumpRight2 {
  0% {
    transform: translate(0, -50%) rotate(0);
  }
  40% {
    transform: translate(5px, -50%) rotate(0);
  }
  100% {
    transform: translate(0, -50%) rotate(0);
  }
}

@keyframes arrowBumpLeft {
  0% {
    transform: translate(0, -50%) rotate(45deg);
  }
  40% {
    transform: translate(-5px, -50%) rotate(45deg);
  }
  100% {
    transform: translate(0, -50%) rotate(45deg);
  }
}

/* =========================
 * 1) ページ全体（コンテナ）
 * ========================= */
.price {
  --price-text: #2F2C2B;
  --price-accent: #F72E52;
  --price-link: #0B5BCE;

  margin-bottom: 120px;
  color: var(--price-text);
  position: relative;
  @media (max-width: 767px) {
    margin-bottom: 60px;
  }
}

/* 上部のドット背景帯（デザイン寄せ用） */
.price::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background-image: radial-gradient(circle, var(--price-accent) 15%, transparent 16%);
  background-size: 10px 10px;
  opacity: 0.2;
  z-index: -1;
  @media (max-width: 767px) {
    height: 114px;
  }
}

.price__inner {
  max-width: 960px;
  margin: 0 auto;
  @media (max-width: 767px) {
    width: 100%;
    padding: 0 20px;
  }
}

/* =========================
 * 2) ヒーロー（タイトル/サブタイトル）
 * ========================= */
.price__title {
  padding-top: 66px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  @media (max-width: 767px) {
    font-size: 25px;
    margin-bottom: 10px;
    padding-top: 35px;
  }
}

.price__subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--price-accent);
  @media (max-width: 767px) {
    font-size: 10px;
  }
}

/* =========================
 * 3) セクション共通
 * ========================= */
.price-section {
  margin-top: 50px;
  padding-top: 60px;
  display: none;
  @media (max-width: 767px) {
    margin-top: 27px;
    padding-top: 30px;
  }
}

.price-section__title {
  margin-bottom: 40px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  @media (max-width: 767px) {
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 14px;
  }
}

/* =========================
 * 4) カテゴリー/機種：ボタン群（JS生成）
 * - .price-section__body/.price-section__list/.price-section__button
 * ========================= */
.price-section__body {
  margin-top: 40px;
  @media (max-width: 767px) {
    margin-top: 30px;
  }
}

.price-section__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto;
  @media (max-width: 767px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.price-section__button {
  appearance: none;
  background: var(--price-surface);
  border: 1px solid #C4C4C4;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  font-size: 16px;
  font-family: "Rubik", "Noto Sans JP", system-ui, -apple-system;
  color: #2F2C2B;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 20px;
  @media (max-width: 767px) {
    padding: 15px 10px;
    font-size: 14px;
  }
}

.price-section__button:hover {
  opacity: 0.7;
}

/* ボタン群の補助テキスト（例: 準備中・読み込み中） */
.price-section__status {
  margin: 0 auto;
  font-weight: 700;
  text-align: center;
}

/* APIエラー文言のみ行間を少し広げる */
.price-section__status--error {
  line-height: 2;
}

/* =========================
 * 5) 選択内容（ラベル＋値）
 * - 画面上部の「選択されたカテゴリー/機種」など
 * ========================= */
.price-result-summary {
  margin-bottom: 60px;
  @media (max-width: 767px) {
    margin-bottom: 30px;
  }
}

.price-selected {
  margin-top: 49px;
  @media (max-width: 767px) {
    margin-top: 30px;
  }
}

.price-selected + .price-selected {
  margin-top: 40px;
  @media (max-width: 767px) {
    margin-top: 30px;
  }
}

.price-selected__label {
  font-weight: 700;
  margin-bottom: 10px;
  @media (max-width: 767px) {
    font-size: 14px;
  }
}

.price-selected__value {
  margin: 0;
  padding: 28px 20px 21px;
  background: #F1F1F1;
  border-radius: 6px;
  font-weight: 700;
  @media (max-width: 767px) {
    font-size: 14px;
    padding: 15px 20px;
  }
}

.price-selected__action {
  margin-top: 18px;
  @media (max-width: 767px) {
    margin-top: 13px;
  }
}

.price-selected__link {
  position: relative;
  color: var(--price-link);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.3s ease;
  @media (max-width: 767px) {
    font-size: 12px;
  }
}

.price-selected__link:hover {
  opacity: 0.5;
}

.price-selected__link::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}

/* hover時に矢印を右へ移動→元へ戻す */
.price-selected__link:hover::after {
  animation: arrowBumpRight 520ms ease-in-out;
  will-change: transform;
}

/* =========================
 * 6) キャンペーン文言（ドット罫＋矢印）
 * ========================= */
 .price-result-price {
  padding-top: 25px;
  padding-bottom: 60px;
  border-bottom: 1px solid #E0E0E0;
  @media (max-width: 767px) {
    padding-top: 31px;
    padding-bottom: 42px;
  }
}

.price-campaign-banner {
  text-align: center;
  position: relative;
  margin-bottom: 68px;
  @media (max-width: 767px) {
    margin-bottom: 42px;
  }
}

.price-campaign-banner__text {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--price-accent);
  display: inline-block;
  position: relative;
  @media (max-width: 767px) {
    font-size: 16px;
  }
}

.price-campaign-banner__text::before,
.price-campaign-banner__text::after {
  content: "";
  position: absolute;
  left: -170px;
  right: -170px;
  height: 6px;
  border-top: 2px dotted var(--price-accent);
  border-bottom: 2px dotted var(--price-accent);
  @media (max-width: 767px) {
    left: -19px;
    right: -19px;
  }
}

.price-campaign-banner__text::before {
  top: -25px;
  @media (max-width: 767px) {
    top: -21px;
  }
}

.price-campaign-banner__text::after {
  bottom: -24px;
  @media (max-width: 767px) {
    bottom: -18px;
  }
}

.price-campaign-banner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -37px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--price-accent);
  @media (max-width: 767px) {
    bottom: -26px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--price-accent);
  }
}

/* =========================
 * 7) 価格カード（容量別のレンジ表示）
 * - .price-card-list の中身はJSが生成/差し替え
 * ========================= */
.price-card-group {
  background: #105AC2;
  border-radius: 20px;
  padding: 25px 20px 20px;
  margin-bottom: 30px;
  @media (max-width: 767px) {
    padding: 13px 10px 10px;
    margin-bottom: 20px;
  }
}

.price-card-group__model {
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  @media (max-width: 767px) {
    font-size: 14px;
  }
}

.price-card-group__title {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  padding-left: 17px;
  @media (max-width: 767px) {
    font-size: 18px;
  }
}

.price-card-list {
  margin-top: 24px;
  list-style: none;
  @media (max-width: 767px) {
    margin-top: 10px;
  }
}

.price-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 26px 0;
  @media (max-width: 767px) {
    padding: 31px 0 24px;
  }
}

.price-card + .price-card {
  margin-top: 20px;
  @media (max-width: 767px) {
    margin-top: 10px;
  }
}

.price-card--status {
  font-weight: 700;
  text-align: center;
}

/* APIエラー文言のみ行間を少し広げる */
.price-card--status-error {
  line-height: 2;
}

.price-card__capacity {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--price-accent);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  padding: 8px 19px;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  @media (max-width: 767px) {
    top: 2px;
    left: 2px;
    font-size: 14px;
    padding: 4px 12px 2px;
  }
}

.price-card__range {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 30px;
  color: #767676;
  font-size: 22px;
  font-weight: 700;
  @media (max-width: 767px) {
    gap: 10px;
  }
}

.price-card__range-left,
.price-card__range-right {
  width: 30%;
  @media (max-width: 767px) {
    width: 41%;
  }
}

.price-card__range-left {
  text-align: right;
}

.price-card__range-right {
  text-align: left;
}

.price-card__amount {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 38px;
  @media (max-width: 767px) {
    font-size: 22px;
  }
}

.price-card__amount--primary {
  font-size: 48px;
  color: var(--price-accent);
  @media (max-width: 767px) {
    font-size: 26px;
  }
}

.price-card__yen {
  font-weight: 700;
  font-size: 28px;
  position: relative;
  bottom: 2px;
  @media (max-width: 767px) {
    font-size: 17px;
    bottom: 1px;
  }
}

.price-card__yen--primary {
  color: var(--price-accent);
}

.price-card__range-sep {
  font-weight: 700;
  font-size: 22px;
  position: relative;
  top: -5px;
  @media (max-width: 767px) {
    font-size: 16px;
  }
}

.price-card__range-right {
  position: relative;
}

.price-card__note {
  font-size: 12px;
  vertical-align: super;
  @media (max-width: 767px) {
    font-size: 10px;
  }
}

.price-notes__item {
  display: flex;
  font-size: 14px;
  @media (max-width: 767px) {
    font-size: 12px;
  }
}

.price-notes__item[hidden] {
  display: none;
}

.price-notes__item + .price-notes__item {
  margin-top: 10px;
}

.price-notes__item-number {
  margin-right: 0.8rem;
  @media (max-width: 767px) {
    margin-right: 0.7rem;
  }
}

/* =========================
 * 8) 次アクション（CTA）
 * ========================= */
.price-result-cta {
  padding-top: 67px;
  text-align: center;
  @media (max-width: 767px) {
    padding-top: 44px;
  }
}

.price-result-cta__lead {
  @media (max-width: 767px) {
    font-size: 14px;
  }
}

.price-result-cta__title {
  color: var(--price-accent);
  font-size: 23px;
  margin: 14px auto 20px;
  font-weight: 700;
  width: 264px;
  @media (max-width: 767px) {
    font-size: 20px;
    margin: 11px auto;
    letter-spacing: -1px;
    width: calc(100% / 3);
    min-width: 240px;
  }
}

.price-result-cta__title img {
  width: 100%;
}

.price-result-cta__action {
  margin-top: 20px;
}

.about-primary {
  width: 440px;
  margin: 0 auto 46px;
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  padding: 25px 56px 23px;
  background: linear-gradient(180deg, #1474FA 0%, #105AC2 100%);
  border: 4px solid #6DA6E0;
  transition: opacity 0.3s ease;
}

.about-primary:hover {
  opacity: 0.8;
}

.about-primary:hover::after {
  animation: arrowBumpRight2 520ms ease-in-out;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .about-primary:hover::after {
    animation: none;
  }
}

.about-primary::after {
  content: "";
  position: absolute;
  right: 23px;
  top: 50%;
  width: 7px;
  height: 16px;
  background: url("/assets/img/common/shared/icon-arrow-white.svg") no-repeat center / contain;
  transform: translate(0, -50%);
}

.about-primary-lead {
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.about-primary-main {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  font-weight: bold;
}

@media (max-width: 767px) {
  .about-primary {
    width: 295px;
    max-width: 100%;
    margin-bottom: 25px;
    padding: 13px 0;
    border-width: 3px;
  }
  .about-primary::after {
    width: 6px;
    height: 14px;
    right: 15px;
    top: 48%;
  }
  .about-primary-lead {
    font-size: 14px;
  }
  .about-primary-main {
    margin-top: 10px;
    font-size: 23px;
  }
}

@media (max-width: 320px) {
  .about-primary-lead {
    font-size: 13px;
  }
  .about-primary-main {
    font-size: 20px;
  }
}

/* =========================
 * 9) リセット
 * ========================= */
.price-result-reset {
  text-align: center;
  @media (max-width: 767px) {
    margin-top: 60px;
  }
}

.price-result-reset__link {
  position: relative;
  color: var(--price-link);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.price-result-reset__link:hover {
  opacity: 0.5;
}

.price-result-reset__link::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}

/* hover時に矢印を右へ移動→元へ戻す */
.price-result-reset__link:hover::after {
  animation: arrowBumpLeft 520ms ease-in-out;
  will-change: transform;
}

.price-sp-only {
  display: none;
  @media (max-width: 767px) {
    display: block;
  }
}

/* ----------------------------------------
  Apply
---------------------------------------- */
.apply {
  padding: 0 0 80px;
}
.apply .bg {
  width: 100%;
  padding: 122px 0;
  background: #F7F7F7;
  border-radius: 80px;
}

.apply-head {
  text-align: center;
  margin-bottom: 40px;
}

.apply-eyebrow {
  margin: 0;
  font-weight: bold;
  color: #F72E52;
  font-size: 20px;
}

.apply-title {
  margin: 18px 0 0;
  font-weight: bold;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: #2F2C2B;
}

.apply-line {
  display: block;
  width: 2px;
  height: 60px;
  background: #F72E52;
  margin: 25px auto 0;
}

.apply-lead {
  text-align: center;
  margin: 0 0 140px;
  font-size: 16px;
  line-height: 1.5;
  color: #2F2C2B;
}

.apply-lead__strong {
  color: #F72E52;
  font-weight: bold;
  font-size: 20px;
}

.apply-app-wrap {
  position: relative;
  width: 960px;
  margin: 0 auto 40px;
}

.apply-app {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #105AC2 0%, #1474FA 100%);
  border-radius: 18px;
  padding: 31px 60px 30px;
  color: #fff;
  z-index: 1;
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.16);
}

/* 半円 */
.apply-app-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -63px;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: #105AC2;
  border-radius: 300px 300px 0 0;
  z-index: 0;
}
/* 線 */
.apply-app-wrap::after {
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0.2;
  position: absolute;
  left: 0;
  top: 78px;
  z-index: 1;
  content: "";
}

.apply-app__cap {
  position: absolute;
  left: 50%;
  top: -97px;
  transform: translateX(-50%);
}

.apply-app__cap-img {
  width: 58px;
  height: auto;
}

.apply-app__title {
  margin: 0 auto 60px;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.01em;
}

.apply-app__sub {
  margin: 0 0 33px;
  text-align: center;
  font-size: 16px;
}

.apply-store {
  margin-bottom: 35px;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.apply-store__card {
  flex: 1 1 0;
  width: 400px;
  background: #fff;
  color: #2F2C2B;
  border-radius: 20px;
  padding: 21px 34px 28px 36px;
  position: relative;
}
.apply-store__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 65px;
  width: 100%;
  height: 1px;
  background: #E5E5E6;
}

.apply-store__name {
  margin: 0 0 50px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
  color: #2F2C2B;
}

.apply-store__row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.apply-store__badge {
  width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.apply-store__badge:hover {
  opacity: 0.8;
}

.apply-store__badge img {
  max-width: 100%;
  height: auto;
}

.apply-store__qr {
  width: 120px;
  height: auto;
}

.apply-store__qr img {
  max-width: 100%;
  height: auto;
}

.apply-app__more {
  text-align: center;
}

.apply-app__link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 12px; /* 矢印分の余白 */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.apply-app__link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}

.apply-app__link:hover {
  opacity: 0.8;
}

.apply-app__link:hover::after {
  animation: arrowBumpRight 520ms ease-in-out;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .apply-app__link:hover::after {
    animation: none;
  }
}

.apply-web {
  width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 4px solid #E5F1FB;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.16);
}

.apply-web__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 55px 30px;
}

.apply-web__title {
  margin: 0 auto 13px;
  font-weight: bold;
  font-size: 20px;
  text-align: left;
}

.apply-web__desc {
  font-size: 14px;
  line-height: 1.5;
}

.apply-web__action {
  width: 320px;
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(-5px);
}

.apply-web__button {
  width: 100%;
  height: 60px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #0B5BCE;
  color: #0B5BCE;
  text-decoration: none;
  font-weight: bold;
  background: #fff;
  transition: opacity 0.3s ease;
}

.apply-web__button::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}

.apply-web__button:hover {
  opacity: 0.8;
}

/* hover時に矢印を右へ移動→元へ戻す */
.apply-web__button:hover::after {
  animation: arrowBumpRight 520ms ease-in-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .apply-web__button:hover::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .apply {
    padding: 0;
  }
  .apply .bg {
    padding: 80px 0;
    border-radius: 40px;
  }
  .apply .inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .apply-head {
    margin-bottom: 30px;
  }
  .apply-eyebrow {
    font-size: 14px;
  }
  .apply-title {
    margin-top: 8px;
    font-size: 20px;
  }
  .apply-line {
    height: 50px;
  }
  .apply-lead {
    margin-bottom: 100px;
    font-size: 14px;
  }
  .apply-lead__strong {
    font-size: 18px;
  }
  .apply-app-wrap {
    width: 100%;
    margin: 0 auto 30px;
    margin-bottom: 30px;
  }
  .apply-app-wrap::before {
    top: -35px;
    width: 150px;
    height: 75px;
    border-radius: 75px 75px 0 0;
  }
  .apply-app-wrap::after {
    top: 65px;
  }
  .apply-app__cap {
    top: -65px;
  }
  .apply-app__cap-img {
    width: 43px;
  }
  .apply-app {
    padding: 25px 20px 30px;
  }
  .apply-app__title {
    margin-bottom: 45px;
    font-size: 18px;
  }
  .apply-app__sub {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
  }
  .apply-store {
    margin-bottom: 25px;
    gap: 20px;
  }
  .apply-store__card {
    width: 100%;
    padding: 10px 20px 20px;
    border-radius: 10px;
  }
  .apply-store__card::before {
    top: 41px;
  }
  .apply-store__name {
    margin: 0 0 31px;
    font-size: 14px;
  }
  .apply-store__row {
    justify-content: center;
    gap: 20px;
  }
  .apply-store__qr {
    width: 90px;
    max-width: 38.3%;
  }
  .apply-store__badge {
    width: 145px;
    max-width: 61.7%;
  }
  .apply-app__more {
    font-size: 14px;
  }
  .apply-app__link {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-right: 12px; /* 矢印分の余白 */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
  }
  .apply-app__link::after {
    font-size: 18px;
    position: absolute;
    right: 0;
    top: 44%;
    width: 7px;
    height: 7px;
  }
  .apply-web {
    width: 100%;
  }
  .apply-web__inner {
    padding: 26px 30px 30px;
    gap: 20px;
  }
  .apply-web__text {
    text-align: center;
  }
  .apply-web__title {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
  }
  .apply-web__action {
    width: 235px;
    max-width: 100%;
    margin: 0 auto;
    transform: none;
  }
  .apply-web__button {
    height: 45px;
    font-size: 14px;
  }
  .apply-web__button::after {
    right: 17px;
    top: 47%;
    width: 7px;
    height: 7px;
  }
}

/* ----------------------------------------
  Modal
---------------------------------------- */
body.is-modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 108px 20px;
  overflow: scroll;
}

.modal__inner {
  width: 960px;
  text-align: center;
}

.modal__lead {
  margin: 0 0 140px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.modal__lead__strong {
  font-size: 20px;
  font-weight: bold;
}

.modal__close {
  position: absolute;
  top: 35px;
  right: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.modal__close:hover {
  opacity: 0.8;
}

.modal__close > span {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
}

.modal__close > span::before,
.modal__close > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 6px;
  background: #fff;
  transform-origin: center;
}

.modal__close > span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close > span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 767px) {
  .modal__inner {
    width: 100%;
  }

  .modal__content {
    padding: 60px 20px;
    display: block;
  }

  .modal__lead {
    margin: 0 0 90px;
    font-size: 16px;
  }

  .modal__lead__strong {
    font-size: 18px;
  }

  .modal__close {
    top: 16px;
    right: 15px;
    width: 30px;
    height: 30px;
  }

  .modal__close > span {
    width: 30px;
    height: 30px;
  }

  .modal__close > span::before,
  .modal__close > span::after {
    width: 25px;
    height: 4px;
  }
  .modal .apply-app-wrap {
    margin-bottom: 0;
  }
  .apply-store {
    flex-direction: column;
  }

  .apply-store__card {
    max-width: 100%;
    margin: 0 auto;
  }

  .apply-web__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-web__button {
    width: 100%;
    min-width: 0;
  }
}

.fc-red {
  color: var(--price-accent);
}
