@charset "utf-8";

/**
 * /lp/refund/ (約2週間お試し) 専用CSS
 * 見た目は総合TOP(リニューアル)に合わせるため、変数・c-container・c-heading・c-button・c-faq・c-note・
 * header・footer は /assets/top/renewal/css/style.css を共用している。ここにはこのページ固有の部分だけを書く。
 */

/* --- hero --- */
.l-refund-hero {
  padding: 36px 0 48px;
  background: linear-gradient(160deg, #fffdfb 0%, #fdf8f3 55%, #f6f4f2 100%);

  @media (min-width: 768px) {
    padding: 72px 0 80px;
  }

  /* SPは 文言 → 画像 → ボタン の順。PCは左に文言とボタン、右に画像 */
  & .l-refund-hero__inner {
    display: grid;
    grid-template-areas:
      'body'
      'visual'
      'cta';
    gap: 28px;

    @media (min-width: 768px) {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
      grid-template-areas:
        'body visual'
        'cta visual';
      align-items: center;
      gap: 0 48px;
    }
  }

  & .l-refund-hero__body {
    grid-area: body;

    @media (min-width: 768px) {
      align-self: end;
    }
  }

  & .l-refund-hero__visual {
    grid-area: visual;
  }

  & .l-refund-hero__badge {
    display: inline-block;
    padding: 2px 16px;
    border: 2px solid var(--color-red);
    border-radius: 9999px;
    background-color: var(--color-white);
    color: var(--color-red);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
  }

  & .l-refund-hero__title {
    margin-top: 16px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.5;

    @media (min-width: 768px) {
      font-size: clamp(34px, 3.6vw, 52px);
    }

    & span,
    & em {
      display: block;
      white-space: nowrap;
    }

    & em {
      color: var(--color-red);
    }
  }

  & .l-refund-hero__lead {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;

    & strong {
      color: var(--color-red);
      font-size: 1.25em;
      font-weight: 900;
    }

    @media (min-width: 768px) {
      font-size: 18px;
    }
  }

  & .l-refund-hero__cta {
    grid-area: cta;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;

    @media (min-width: 768px) {
      align-self: start;
      margin: 28px 0 0;
    }
  }

  & .l-refund-hero__visual img {
    width: 100%;
    height: auto;
  }
}

/* --- about (約2週間お試しとは) --- */
.l-refund-about {
  padding: 56px 0 56px;
  background-color: var(--color-bg-beige);
  scroll-margin-top: var(--scroll-offset);

  @media (min-width: 768px) {
    padding: 88px 0 80px;
  }

  & .l-refund-about__list {
    display: grid;
    gap: 14px;

    @media (min-width: 768px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }
  }
}

/* --- point card --- */
.c-point-card {
  padding: 24px 22px 26px;
  border-radius: 24px;
  background-color: var(--color-white);

  & .c-point-card__num {
    color: var(--color-red);
    font-family: var(--font-family-number);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
  }

  & .c-point-card__title {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-wrap: balance;
  }

  & .c-point-card__text {
    margin-top: 10px;
    color: var(--color-text-sub);
    font-size: 13px;
    line-height: 1.9;
  }
}

/* --- flow section (ご利用の流れ) --- */
.l-refund-flow-sect {
  padding: 56px 0 56px;
  scroll-margin-top: var(--scroll-offset);

  @media (min-width: 768px) {
    padding: 88px 0 80px;
  }

  & .l-refund-flow-sect__note {
    margin-top: 24px;
  }
}

/* --- flow (ご利用の流れ・簡略版) --- */
.l-refund-flow {
  display: grid;
  gap: 8px;
  max-width: 480px;
  margin-inline: auto;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    max-width: 880px;
  }

  & .l-refund-flow__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 9999px;
    background-color: var(--color-bg-beige);

    @media (min-width: 768px) {
      flex-direction: column;
      justify-content: center;
      gap: 10px;
      padding: 24px 16px;
      border-radius: var(--radius-card);
      text-align: center;

      /* ステップ間の矢印(カード間の余白の中央) */
      &:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -24px;
        width: 12px;
        height: 12px;
        border-top: 3px solid var(--color-red);
        border-right: 3px solid var(--color-red);
        translate: 0 -50%;
        rotate: 45deg;
      }
    }
  }

  & .l-refund-flow__step {
    flex: none;
    padding: 1px 10px;
    border-radius: 9999px;
    background-color: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-family-number);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.06em;
  }

  & .l-refund-flow__name {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    @media (min-width: 768px) {
      font-size: 16px;
    }

    & small {
      color: var(--color-text-sub);
      font-size: 11px;
      font-weight: 500;

      @media (min-width: 768px) {
        margin-top: 2px;
        font-size: 12px;
      }
    }
  }
}

/* --- entry (コース選択) --- */
.l-refund-entry {
  padding: 56px 0 56px;
  scroll-margin-top: var(--scroll-offset);

  @media (min-width: 768px) {
    padding: 80px 0;
  }

  & .l-refund-entry__list {
    display: grid;
    gap: 14px;
    max-width: 640px;
    margin-inline: auto;

    @media (min-width: 768px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    & .c-button {
      min-height: 64px;
      font-size: 16px;
    }
  }

  & .l-refund-entry__note {
    margin-top: 20px;
    color: var(--color-text-sub);
    font-size: 11px;
    text-align: center;
  }
}

/* コース選択は、直前のセクション(流れ・FAQ)と背景を変える */
.l-refund-flow-sect + .l-refund-entry,
.l-sect-faq + .l-refund-entry {
  background: linear-gradient(160deg, #fffdfb 0%, #fdf8f3 55%, #f6f4f2 100%);
}
