﻿/* GATE /card-pay/ — 全体をネイティブCSSネストで管理 */

/* FV（タイトル・導入・4ステップ） */
:is(#contents, body) .gate-payment-fv {
  --gate-red: #e60012;
  box-sizing: border-box;
  width: 100%;
  max-width: 730px;
  min-width: 0;
  margin: 0 auto 32px;
  padding: 30px 20px 20px;
  overflow: hidden;
  color: #20252a;
  background: #f7f8f9 url("/img/card-pay/payment-hero.webp") no-repeat right top;
  background-size: 100% auto;
  font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", sans-serif;
  text-align: left;

  & *,
  & *::before,
  & *::after {
    box-sizing: border-box;
  }

  & h1.gate-payment-fv__title {
    display: block;
    position: relative;
    margin: 0 0 24px;
    padding: 0 0 0 18px;
    border: 0;
    border-left: 6px solid var(--gate-red);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #111;
    font-size: clamp(25px, 4.4vw, 34px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.035em;
    text-align: left;
  }

  & h1.gate-payment-fv__title::before,
  & h1.gate-payment-fv__title::after,
  & h2.gate-payment-fv__steps-title::before,
  & h2.gate-payment-fv__steps-title::after {
    content: none;
  }

  & .gate-payment-fv__lead {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
    color: #20252a;
  }

  & .gate-payment-fv__steps {
    margin: 10px 0 0;
    padding: 18px 14px 20px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 22px rgb(30 45 60 / 9%);
  }

  & h2.gate-payment-fv__steps-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 18px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 4px solid var(--gate-red);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.04em;
  }

  & .gate-payment-fv__four {
    color: var(--gate-red);
    font-size: 38px;
    line-height: 1;
    padding: 0 3px;
  }

  & ol.gate-payment-fv__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
  }

  & li.gate-payment-fv__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0 6px;
    border: 0;
    background: none;
    list-style: none;
    text-align: center;
  }

  & li.gate-payment-fv__step::before {
    content: none;
  }

  & li.gate-payment-fv__step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 65px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #969ca3;
    border-right: 2px solid #969ca3;
    transform: rotate(45deg);
    background: #fff;
    box-shadow: 3px -3px 0 3px #fff;
  }

  & .gate-payment-fv__number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffedef;
    color: var(--gate-red);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
  }

  & .gate-payment-fv__icon {
    display: block;
    width: 62px;
    height: 58px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  & .gate-payment-fv__icon .red {
    stroke: var(--gate-red);
  }

  & .gate-payment-fv__icon .badge {
    fill: var(--gate-red);
    stroke: #fff;
    stroke-width: 2;
  }

  & .gate-payment-fv__icon .tick {
    stroke: #fff;
  }

  & .gate-payment-fv__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: -.04em;
  }

  @media (max-width: 600px) {
    padding: 24px 14px 16px;
    background-size: auto 310px;
    background-position: 65% top;

    & h1.gate-payment-fv__title {
      font-size: clamp(22px, 5.5vw, 30px);
      padding-left: 12px;
      border-left-width: 4px;
      margin-bottom: 20px;
    }

    & .gate-payment-fv__lead {
      font-size: 14px;
      line-height: 1.85;
      padding: 8px;
      background: rgb(255 255 255 / 88%);
      border-radius: 4px;
    }

    & .gate-payment-fv__lead br {
      display: none;
    }

    & .gate-payment-fv__steps {
      margin-top: 12px;
      padding: 16px 10px;
    }

    & h2.gate-payment-fv__steps-title {
      font-size: clamp(16px, 4vw, 21px);
      padding-left: 8px;
    }

    & .gate-payment-fv__four {
      font-size: 32px;
    }

    & ol.gate-payment-fv__list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      row-gap: 22px;
    }

    & li.gate-payment-fv__step:nth-child(2)::after {
      content: none;
    }

    & .gate-payment-fv__label {
      font-size: 13px;
    }
  }




}

/* 共通・STEP 01〜04（レスポンシブ指定を含む） */
:is(#contents, body) .card-pay-guide {
  --cp-red: #e60012;
  width: 100%;
  max-width: 730px;
  min-width: 0;
  margin: 0 auto 48px;
  color: #20252a;
  font-family: "Meiryo","メイリオ",sans-serif;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;

  & *,
  & *::before,
  & *::after {
    box-sizing: border-box;
  }

  & p {
    margin: 0 0 18px;
    padding: 0;
    font-size: 14px;
    line-height: 1.9;
  }

  & .card-pay-guide__intro {
    padding: 28px 12px 30px;
    margin: 0 0 30px;
    border-bottom: 1px solid #dce0e4;
    text-align: center;
  }

  & h2.card-pay-guide__title {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: none;
  }

  & .card-pay-guide__intro > p:last-child {
    margin-bottom: 0;
    color: #606873;
    font-size: 13px;
  }

  & h2::before,
  & h2::after,
  & h3::before,
  & h3::after,
  & h4::before,
  & h4::after {
    content: none;
  }

  & .card-pay-step__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin: 0 0 26px;
    padding: 0 0 24px;
    border-bottom: 3px solid #e3e6e9;
  }

  & .card-pay-step__header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    height: 3px;
    width: 85px;
    background: var(--cp-red);
  }

  & .card-pay-step__badge {
    display: flex;
    flex: 0 0 72px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    height: 92px;
    padding: 9px 0 18px;
    color: #fff;
    background: var(--cp-red);
    clip-path: polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);
    line-height: 1.1;
  }

  & .card-pay-step__badge > span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
  }

  & .card-pay-step__badge b {
    font-size: 34px;
    font-weight: 700;
  }

  & h3.card-pay-step__title {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #111;
    font-size: 21px;
    line-height: 1.6;
    font-weight: 700;
    letter-spacing: -.04em;
  }

  & .card-pay-step__title em {
    color: var(--cp-red);
    font-style: normal;
  }

  & .card-pay-step__header p {
    margin: 0;
    font-size: 13px;
    color: #606873;
  }

  & h4.card-pay-step__subheading {
    margin: 0 0 14px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 4px solid var(--cp-red);
    background: none;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    box-shadow: none;
  }

  & .card-pay-step__figure {
    margin: 24px 0;
    padding: 0;
    border: 1px solid #d4d9de;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
  }

  & .card-pay-step__figure figcaption {
    padding: 10px 14px;
    background: #eef0f2;
    color: #20252a;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }

  & .card-pay-step__image-scroll {
    padding: 0 10px 12px;
    min-width: 0;
  }

  & .card-pay-step__image-stage {
    position: relative;
    margin-top: 16px;
    width: 100%;
    min-width: 0;
  }

  & .card-pay-step__image-stage img {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  & .card-pay-step__selection {
    position: absolute;
    left: 48%;
    top: 10.9%;
    width: 23%;
    height: 9.2%;
    border: 2px solid var(--cp-red);
    border-radius: 4px;
    pointer-events: none;
  }

  & .card-pay-step__selection > span {
    position: absolute;
    display: block;
    width: max-content;
    max-width: none;
    height: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 5px;
    background: var(--cp-red);
    color: white;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
  }

  & .card-pay-step__selection > span::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--cp-red);
  }

  & .card-pay-step__checks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
  }

  & ul.card-pay-step__checks {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  & .card-pay-step__checks li {
    position: relative;
    margin: 0 0 10px;
    padding: 0 0 0 23px;
    border: 0;
    background: none;
    list-style: none;
    font-size: 14px;
  }

  & .card-pay-step__checks li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 8px;
    height: 14px;
    border: solid var(--cp-red);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    background: none;
  }

  & .card-pay-step__notice {
    margin: 0;
    padding: 12px;
    border: 0;
    border-left: 3px solid var(--cp-red);
    border-radius: 4px;
    background: #fff3f5;
  }

  & p.card-pay-step__notice-title {
    margin: 0 0 10px;
    color: var(--cp-red);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
  }

  & .card-pay-step__notice p:last-child {
    margin: 0;
  }

  & p.card-pay-step__note {
    margin: 8px 0 24px;
    color: #606873;
    font-size: 12px;
  }

  @media (max-width:600px) {
    & .card-pay-guide__intro {
      padding: 22px 0;
      margin-bottom: 24px;
    }

    & h2.card-pay-guide__title {
      font-size: 23px;
    }

    & .card-pay-step__header {
      gap: 12px;
    }

    & .card-pay-step__badge {
      flex-basis: 54px;
      height: 76px;
    }

    & .card-pay-step__badge b {
      font-size: 28px;
    }

    & h3.card-pay-step__title {
      font-size: 18px;
    }

    & h4.card-pay-step__subheading {
      font-size: 17px;
    }

    & .card-pay-step__checks-row {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }

  & .card-pay-mail-flow {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) 24px minmax(0,1fr);
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
  }

  & figure.card-pay-mail {
    position: relative;
    margin: 0;
    padding: 20px 12px 12px;
    border: 1px solid #ccd1d6;
    border-radius: 6px;
    min-width: 0;
    background: #fff;
  }

  & .card-pay-mail > figcaption {
    position: absolute;
    top: -13px;
    left: 10px;
    margin: 0;
    padding: 3px 10px;
    border-radius: 3px;
    background: #eef0f2;
    color: #20252a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
  }

  & .card-pay-mail__window {
    overflow: hidden;
    border: 1px solid #ccd1d6;
    border-radius: 6px;
  }

  & .card-pay-mail__bar {
    padding: 8px 12px;
    background: #e7e9ec;
    color: #20252a;
    font-size: 15px;
    font-weight: 700;
  }

  & .card-pay-mail__body {
    padding: 12px;
    overflow-wrap: anywhere;
  }

  & .card-pay-mail__body p {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.85;
  }

  & p.card-pay-mail__subject {
    padding-bottom: 10px;
    border-bottom: 1px solid #dce0e4;
    font-weight: 700;
  }

  & .card-pay-mail__attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 8px 10px;
    border: 1px solid #ccd1d6;
    border-radius: 5px;
    background: #fafafa;
    font-size: 12px;
  }

  & .card-pay-doc-icon {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 39px;
    padding: 0 0 3px;
    border: 2px solid var(--cp-red);
    border-radius: 3px;
    color: var(--cp-red);
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }

  & .card-pay-doc-icon::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--cp-red);
    border-bottom: 2px solid var(--cp-red);
    background: linear-gradient(45deg,#fff 45%,var(--cp-red) 46%,var(--cp-red) 57%,#fff 58%);
  }

  & .card-pay-mail__url {
    padding: 10px;
    border-radius: 4px;
    background: #fff0f3;
    font-size: 12px;
    line-height: 1.8;
  }

  & .card-pay-mail__url b {
    display: block;
  }

  & .card-pay-mail__url > span {
    color: #06c;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  & .card-pay-mail-flow__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-red);
    font-size: 28px;
    line-height: 1;
  }

  & .card-pay-delivery {
    min-width: 0;
    padding: 16px;
    border-radius: 8px;
    background: #fff0f3;
  }

  & h4.card-pay-delivery__title {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #111;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
  }

  & .card-pay-delivery__item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    margin: 0 0 14px;
    padding: 16px 12px;
    border: 1px solid #d4d9de;
    border-radius: 6px;
    background: #fff;
  }

  & .card-pay-delivery__item:last-child {
    margin-bottom: 0;
  }

  & .card-pay-delivery__item > div {
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid #d4d9de;
  }

  & .card-pay-delivery__item h5 {
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
  }

  & .card-pay-delivery__item h5::before,
  & .card-pay-delivery__item h5::after {
    content: none;
  }

  & .card-pay-delivery__item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
  }

  & .card-pay-link-icon {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 39px;
    fill: none;
    stroke: var(--cp-red);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  & .card-pay-mail-notice {
    margin: 0;
  }

  & .card-pay-mail-notice ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  & .card-pay-mail-notice li {
    position: relative;
    margin: 0 0 6px;
    padding: 0 0 0 16px;
    border: 0;
    background: none;
    list-style: none;
    font-size: 13px;
    line-height: 1.9;
  }

  & .card-pay-mail-notice li:last-child {
    margin-bottom: 0;
  }

  & .card-pay-mail-notice li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 50%;
    background: var(--cp-red);
  }

  @media (max-width:600px) {
    & .card-pay-mail-flow {
      grid-template-columns: minmax(0,1fr);
      gap: 12px;
    }

    & .card-pay-mail-flow__arrow {
      height: 24px;
      transform: rotate(90deg);
    }

    & .card-pay-mail__body p,
    & .card-pay-mail__url,
    & .card-pay-delivery__item p {
      font-size: 13px;
    }
  }

  & .card-pay-payment__part {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  & h4.card-pay-payment__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
  }

  & .card-pay-payment__heading > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffedef;
    color: var(--cp-red);
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
  }

  & .card-pay-payment__part > p {
    margin-bottom: 18px;
  }

  & figure.card-pay-payment__screen {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d4d9de;
    border-radius: 4px;
    background: #fff;
  }

  & .card-pay-payment__screen figcaption {
    margin: 0;
    padding: 8px 12px;
    background: #eef0f2;
    color: #20252a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
  }

  & a.card-pay-payment__image-link {
    display: block;
    margin: 0;
    padding: 8px;
    border: 0;
    background: #fff;
    color: inherit;
    text-decoration: none;
  }

  & a.card-pay-payment__image-link::before,
  & a.card-pay-payment__image-link::after {
    content: none;
  }

  & a.card-pay-payment__image-link:focus-visible {
    outline: 3px solid var(--cp-red);
    outline-offset: -3px;
  }

  & .card-pay-payment__screen img {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }

  & .card-pay-payment__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-red);
    font-size: 28px;
    line-height: 1;
  }

  & p.card-pay-payment__caption {
    max-width: none;
    text-align: left;
  }

  & .card-pay-payment__notice {
    margin: 0;
  }

  @media (max-width:600px) {
    & h4.card-pay-payment__heading {
      gap: 9px;
      font-size: 18px;
    }

    & .card-pay-payment__heading > span {
      flex-basis: 30px;
      width: 30px;
      height: 30px;
      font-size: 21px;
    }

    & a.card-pay-payment__image-link {
      padding: 5px;
    }
  }

  & .card-pay-payment__flow {
    display: grid;
    grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr);
    align-items: start;
    gap: 8px;
  }

  & .card-pay-payment__connector {
    align-self: center;
  }

  & .card-pay-payment__part > p {
    font-size: 13px;
    min-height: 100px;
  }

  & a.card-pay-payment__image-link {
    cursor: zoom-in;
  }

  @media (max-width:600px) {
    & .card-pay-payment__flow {
      grid-template-columns: minmax(0,1fr);
      gap: 18px;
    }

    & .card-pay-payment__connector {
      transform: rotate(90deg);
      justify-self: center;
    }

    & .card-pay-payment__part > p {
      min-height: 0;
    }
  }

  & figure.card-pay-complete__screen {
    margin-top: 20px;
  }

  & ol.card-pay-complete__flow {
    display: block;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    list-style: none;
    counter-reset: none;
  }

  & .card-pay-complete__flow > li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid #dce0e4;
    background: none;
    list-style: none;
  }

  & .card-pay-complete__flow > li:last-child {
    border-bottom: 0;
  }

  & .card-pay-complete__flow > li::before,
  & .card-pay-complete__flow > li::after {
    content: none;
  }

  & .card-pay-complete__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffedef;
    color: var(--cp-red);
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
  }

  & .card-pay-complete__flow > li > div {
    min-width: 0;
  }

  & .card-pay-complete__flow h5 {
    margin: 0 0 3px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #111;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
  }

  & .card-pay-complete__flow h5::before,
  & .card-pay-complete__flow h5::after {
    content: none;
  }

  & .card-pay-complete__flow p {
    margin: 0;
  }

  & .card-pay-complete__notice {
    margin: 0;
  }

  & .card-pay-complete__notice > .card-pay-step__notice-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  & .card-pay-complete__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    margin-top: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font: 700 16px/1 serif;
  }

  @media (max-width:600px) {
    & .card-pay-complete__flow > li {
      gap: 12px;
      padding: 14px 0;
    }

    & .card-pay-complete__number {
      flex-basis: 30px;
      width: 30px;
      height: 30px;
      font-size: 21px;
    }

    & .card-pay-complete__flow h5 {
      font-size: 16px;
    }
  }

  & .card-pay-complete__columns {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: start;
    gap: 24px;
    margin: 24px 0 0;
  }

  & .card-pay-complete__visual,
  & .card-pay-complete__details {
    min-width: 0;
  }

  & .card-pay-complete__columns figure.card-pay-complete__screen {
    margin: 0;
  }

  & .card-pay-complete__columns .card-pay-complete__flow {
    margin-bottom: 0;
  }

  & .card-pay-complete__columns h4.card-pay-step__subheading {
    font-size: 17px;
  }

  & .card-pay-complete__columns .card-pay-complete__flow h5 {
    font-size: 16px;
  }

  & .card-pay-complete__columns .card-pay-complete__flow p {
    font-size: 13px;
  }

  @media (max-width:600px) {
    & .card-pay-complete__columns {
      grid-template-columns: minmax(0,1fr);
      gap: 20px;
    }
  }

  @media (max-width:600px) {
    & .card-pay-step__image-scroll {
      padding: 0 6px 8px;
    }

    & .card-pay-step__selection {
      border-width: 1px;
    }

    & .card-pay-step__selection > span {
      padding: 3px 7px;
      font-size: 10px;
    }

    & .card-pay-step__selection > span::after {
      border-width: 5px;
    }
  }
}

/* STEP 02 改訂: 1通のメール例で案内（ネイティブCSSネスト） */
:is(#contents, body) .cp-mail {
  --cp-red:#e60012;
  box-sizing:border-box;
  width:100%;
  max-width:730px;
  min-width:0;
  margin:0 auto 48px;
  color:#20252a;
  font-family:"Meiryo","メイリオ",sans-serif;
  font-size:14px;
  line-height:1.9;
  text-align:left;

  & *,
  & *::before,
  & *::after {
    box-sizing:border-box;
  }

  & p {
    margin:0 0 18px;
    padding:0;
    font-size:14px;
    line-height:1.9;
  }

  & .cp-mail__heading {
    display:flex;
    align-items:flex-start;
    gap:22px;
    margin:0 0 18px;
  }

  & .cp-mail__badge {
    display:flex;
    flex:0 0 72px;
    flex-direction:column;
    align-items:center;
    gap:3px;
    height:92px;
    padding:9px 0 18px;
    background:var(--cp-red);
    color:#fff;
    clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);
    font-size:12px;
    font-weight:700;
    line-height:1.1;
  }

  & .cp-mail__badge b {
    font-size:34px;
    line-height:1.1;
  }

  & h3 {
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    color:#111;
    font-size:23px;
    font-weight:700;
    line-height:1.6;
    letter-spacing:-.03em;
  }

  & h3::before,
  & h3::after,
  & h4::before,
  & h4::after {
    content:none;
  }

  & p.cp-mail__lead {
    position:relative;
    margin:0 0 28px;
    padding:0 0 24px;
    border-bottom:3px solid #e3e6e9;
  }

  & .cp-mail__lead::after {
    content:"";
    position:absolute;
    bottom:-3px;
    left:0;
    width:85px;
    height:3px;
    background:var(--cp-red);
  }

  & figure.cp-mail__example {
    margin:0;
    padding:0;
    border:0;
    background:none;
  }

  & .cp-mail__example figcaption {
    margin:0 0 10px;
    padding:0;
    color:#606873;
    font-size:17px;
    font-weight:700;
    line-height:1.6;
    text-align:left;
  }

  & .cp-mail__window {
    overflow:hidden;
    border:1px solid #aeb4ba;
    border-radius:8px;
    background:#fff;
  }

  & .cp-mail__bar {
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 24px;
    background:#81868b;
    color:#fff;
    font-size:20px;
    font-weight:700;
    line-height:1.5;
  }

  & .cp-mail__bar svg {
    display:block;
    flex:0 0 30px;
    width:30px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
  }

  & .cp-mail__body {
    padding:22px 24px 28px;
    overflow-wrap:anywhere;
  }

  & p.cp-mail__subject {
    margin:0 0 18px;
    padding:0 0 16px;
    border-bottom:1px solid #d4d9de;
    color:#111;
    font-size:17px;
    font-weight:700;
    line-height:1.7;
  }

  & .cp-mail__attachment {
    display:flex;
    align-items:center;
    gap:20px;
    margin:24px 0 28px;
    padding:16px 20px;
    border:1px solid #aeb4ba;
    border-radius:7px;
  }

  & .cp-mail__pdf {
    position:relative;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    flex:0 0 38px;
    width:38px;
    height:50px;
    padding-bottom:5px;
    border:2px solid var(--cp-red);
    border-radius:3px;
    color:var(--cp-red);
    font-size:13px;
    font-weight:700;
    line-height:1;
  }

  & .cp-mail__pdf::after {
    content:"";
    position:absolute;
    right:-2px;
    top:-2px;
    width:14px;
    height:14px;
    border-left:2px solid var(--cp-red);
    border-bottom:2px solid var(--cp-red);
    background:linear-gradient(45deg,#fff 45%,var(--cp-red) 46%,var(--cp-red) 57%,#fff 58%);
  }

  & .cp-mail__attachment > div {
    min-width:0;
    padding-left:20px;
    border-left:1px solid #cdd2d7;
  }

  & .cp-mail__attachment b {
    font-size:19px;
    font-weight:700;
  }

  & .cp-mail__attachment p {
    margin:4px 0 0;
  }

  & .cp-mail__payment {
    padding: 12px 16px;
    border: 1px solid var(--cp-red);
    border-radius:8px;
    background:#fff2f4;
  }

  & p.cp-mail__url-title {
    margin: 0 0 8px;
    color:#111;
    font-size: 14px;
    font-weight:700;
  
    line-height: 1.5;
  }

  & .cp-mail__url-row {
    display:flex;
    align-items:center;
    gap:8px;
  }

  & .cp-mail__url {
    min-width:0;
    color:#06c;
    font-size: 16px;
    font-weight:700;
    line-height: 1.5;
    text-decoration:underline;
    text-underline-offset: 3px;
  }

  & .cp-mail__url-row svg {
    flex:0 0 28px;
    width:28px;
    height:35px;
    fill:#fff;
    stroke:#20252a;
    stroke-width:2.5;
  }

  & p.cp-mail__instruction {
    margin: 8px 0 0;
    color:var(--cp-red);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
  }

  & p.cp-mail__note {
    margin:8px 0 24px;
    color:#606873;
    font-size:12px;
    text-align:left;
  }

  @media (max-width:600px) {
    & .cp-mail__heading {
      gap:12px;
    }

    & .cp-mail__badge {
      flex-basis:54px;
      height:76px;
    }

    & .cp-mail__badge b {
      font-size:28px;
    }

    & h3 {
      font-size:18px;
    }

    & .cp-mail__bar {
      padding:12px 14px;
      font-size:18px;
    }

    & .cp-mail__body {
      padding:16px 14px 20px;
    }

    & p.cp-mail__subject {
      font-size:15px;
    }

    & .cp-mail__attachment {
      gap:12px;
      padding:14px 12px;
    }

    & .cp-mail__attachment > div {
      padding-left:12px;
    }

    & .cp-mail__attachment b {
      font-size:17px;
    }

    & .cp-mail__payment {
      padding: 12px 16px;
    
    border: 1px solid var(--cp-red);
  }

    & p.cp-mail__url-title {
      font-size: 14px;
    
    line-height: 1.5;
  
    margin: 0 0 8px;
  }

    & .cp-mail__url {
      font-size: 16px;
    
    line-height: 1.5;
  
    text-underline-offset: 3px;
  }

    & p.cp-mail__instruction {
      font-size: 13px;
    
    line-height: 1.6;
  
    margin: 8px 0 0;
  
    font-weight: 400;
  }
  }

  & .cp-mail__original-notice {
    margin:0;
  }
}


/* STEP 02: メール内でクリックする箇所を明示 */
:is(#contents, body) .cp-mail {
  & p.cp-mail__click-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 6px 12px;
    border: 2px solid var(--cp-red);
    border-radius: 6px;
    background: #fff;
    color: var(--cp-red);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;

    & > span {
      font-size: 24px;
      line-height: 1;
    }
  }

  @media (max-width: 600px) {
    & p.cp-mail__click-hint {
      padding: 4px 8px;
      font-size: 12px;
    
    line-height: 1.4;
  
    border-width: 1px;
  }
  }
}


/* STEP 02: URLとクリック案内を横2カラムに配置 */
:is(#contents, body) .cp-mail {
  & .cp-mail__action-row {
    display: grid;
    grid-template-columns: minmax(0, max-content) auto;
    align-items: center;
    gap: 8px;

    & .cp-mail__url-row   justify-content: start;
{
      min-width: 0;
    }

    & p.cp-mail__click-hint {
      margin: 0;
      font-size: 12px;
    
    line-height: 1.4;
  
    padding: 4px 8px;
  
    border-width: 1px;
  }
  }

  @media (max-width: 600px) {
    & .cp-mail__action-row {
      grid-template-columns: minmax(0, max-content) auto;
      gap: 8px;

      & .cp-mail__url   justify-content: start;
{
        font-size: 16px;
      
    line-height: 1.5;
  
    text-underline-offset: 3px;
  }

      & p.cp-mail__click-hint {
        padding: 4px 8px;
        font-size: 12px;
        text-align: center;
      
    line-height: 1.4;
  
    border-width: 1px;
  }
    }
  }
}


/* 矢印は白いクリック案内枠の外側へ配置 */
:is(#contents, body) .cp-mail {
  & .cp-mail__click-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  & .cp-mail__click-arrow {
    flex: 0 0 auto;
    color: var(--cp-red);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }

  & .cp-mail__click-guide p.cp-mail__click-hint {
    margin: 0;
  }

  @media (max-width: 600px) {
    & .cp-mail__click-guide {
      gap: 5px;
    }

    & .cp-mail__click-arrow {
      font-size: 20px;
    }
  }
}


/* FVとページ末尾で共通の電話案内 */
:is(#contents, body) .card-pay-phone-host {
  --gate-red: #e60012;
  box-sizing: border-box;
  width: 100%;
  max-width: 730px;
  margin: 0 auto;
  font-family: "Meiryo", "メイリオ", sans-serif;

  & *,
  & *::before,
  & *::after {
    box-sizing: border-box;
  }

  /* 電話サポート：B案（白地・赤枠・中央配置） */
  & .gate-payment-fv__support {
    position: relative;
    margin: 28px 0 20px;
    padding: 22px 12px 12px;
    border: 1px solid var(--gate-red);
    border-radius: 8px;
    background: #fff;
    text-align: center;
  }

  & p.gate-payment-fv__support-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 4px 24px;
    border: 0;
    border-radius: 30px;
    background: var(--gate-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }

  & p.gate-payment-fv__support-message {
    margin: 0 0 6px;
    padding: 0;
    color: #20252a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
  }

  & a.gate-payment-fv__support-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gate-red);
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;

    &::before,
    &::after {
      content: none;
    }

    & svg {
      flex: 0 0 30px;
      width: 30px;
      height: 30px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    &:focus-visible {
      outline: 2px solid var(--gate-red);
      outline-offset: 4px;
    }
  }

  & p.gate-payment-fv__support-hours {
    margin: 5px 0 0;
    padding: 0;
    color: #20252a;
    font-size: 12px;
    line-height: 1.6;
  }

  @media (max-width: 600px) {
    & .gate-payment-fv__support {
      padding: 20px 10px 12px;
    }

    & p.gate-payment-fv__support-message {
      font-size: 13px;
    }

    & a.gate-payment-fv__support-number svg {
      flex-basis: 25px;
      width: 25px;
      height: 25px;
    }
  }
}

/* 末尾ではフッターとの間隔も確保 */
:is(#contents, body) .card-pay-phone-host:last-child {
  margin-bottom: 40px;
}
