@charset "UTF-8";

/* キャンペーン固有の Figma デザイン。PC は 768px 以上、SP は 767px 以下。 */
.tryjpy-campaign {
  --tryjpy-navy: #0a2954;
  --tryjpy-blue: #004bbc;
  --tryjpy-text: #1a1a2e;
  --tryjpy-red: #b01501;
  --tryjpy-peach: #fff7f0;
  --tryjpy-amount: #e92e01;
  --tryjpy-gold: linear-gradient(180deg, #c18c2f 0%, #d7aa57 30%, #b57c20 60.096%, #8f5e16 100%);
}

.tryjpy-main {
  color: var(--tryjpy-text);
}

.tryjpy-main *,
.tryjpy-main *::before,
.tryjpy-main *::after {
  box-sizing: border-box;
}

.tryjpy-main :where(p, h1, h2, h3, dl, dd, ol, ul, figure) {
  margin: 0;
}

.tryjpy-main img {
  display: block;
  max-width: 100%;
}

.tryjpy-main .ta-text-body {
  color: var(--tryjpy-text);
}

.tryjpy-main .tryjpy-copy {
  font-size: 16px;
  line-height: 1.5;
}

.tryjpy-mainvisual img {
  width: 100%;
  height: auto;
}

.tryjpy-content.ta-section__inner {
  width: min(calc(100% - 32px), var(--content-width));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* LP に見出しの文字は無いため、H1 は読み上げ用に視覚的に隠す。 */
.tryjpy-intro__title.ta-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tryjpy-overview,
.tryjpy-highlight-section,
.tryjpy-explain,
.tryjpy-campaign-content,
.tryjpy-notes {
  margin-top: 40px;
}

.tryjpy-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.tryjpy-section-heading > img {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 2px;
}

.tryjpy-section-heading .ta-h1 {
  flex: 0 1 auto;
  max-width: 100%;
  color: var(--tryjpy-navy);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.tryjpy-overview__lead {
  margin-top: 40px;
}

.tryjpy-cards {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.tryjpy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #cd6d61;
  background: #fff;
  overflow: hidden;
  text-align: center;
}

.tryjpy-card__name.ta-h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 78px;
  padding: 12px;
  background: #ae0500;
  color: #fff;
  line-height: 1.15;
}

.tryjpy-card__flags {
  display: flex;
  gap: 17px;
  margin-top: 16px;
}

.tryjpy-card__flags img,
.tryjpy-highlight__flags img {
  width: 100px;
  height: auto;
}

.tryjpy-card__label {
  margin: 10px 0 16px;
  font-weight: 700;
}

.tryjpy-card__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: auto 0;
  padding: 20px 0;
  color: var(--tryjpy-amount);
  white-space: nowrap;
}

.tryjpy-card__amount strong,
.tryjpy-highlight__amount strong {
  font-family: Inter, var(--ta-font-family-en);
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.tryjpy-card__amount span,
.tryjpy-highlight__amount span {
  font-family: Inter, var(--ta-font-family-ja);
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
}

.tryjpy-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.tryjpy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 76px;
  padding: 16px 14px;
  border-radius: 54px;
  color: #fff;
  text-decoration: none;
}

.tryjpy-button--open {
  background: linear-gradient(180deg, #466d9f 4.4374%, #294e7f 49.713%, #15345b 95.171%);
}

.tryjpy-button--apply {
  background: var(--tryjpy-gold);
}

.tryjpy-button__badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--tryjpy-navy);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.tryjpy-button__text.ta-h3,
.tryjpy-cta__text.ta-h3 {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
}

.tryjpy-button--open .tryjpy-button__text {
  white-space: nowrap;
}

.tryjpy-button__arrow,
.tryjpy-cta__arrow {
  flex: 0 0 auto;
}

.tryjpy-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 700px);
  margin: 40px auto 0;
  padding: 32px 16px;
  border: 2px solid var(--tryjpy-red);
  border-radius: 10px;
  background: var(--tryjpy-peach);
}

.tryjpy-highlight__pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.tryjpy-highlight__flags {
  display: flex;
  gap: 5px;
}

.tryjpy-highlight__flags img {
  width: 80px;
}

.tryjpy-highlight__name.ta-h3 {
  color: var(--tryjpy-navy);
  text-align: center;
}

.tryjpy-highlight__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--tryjpy-amount);
}

.tryjpy-highlight__amount strong {
  font-size: 80px;
}

.tryjpy-highlight-note {
  width: min(100%, 744px);
  margin: 16px auto 0;
  line-height: 1.3;
}

.tryjpy-panel-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 700px);
  min-height: 72px;
  margin: 40px auto 0;
  gap: 20px;
  padding: 20px 16px;
  border: 1px solid var(--tryjpy-red);
  border-left-width: 5px;
  border-radius: 10px;
  background: #fff;
  color: var(--tryjpy-blue);
  text-align: center;
  text-decoration: none;
}

.tryjpy-panel-link .ta-h3 {
  min-width: 0;
  color: var(--tryjpy-blue);
  line-height: 1.3;
}

.tryjpy-panel-link__arrow {
  display: flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 30px;
}

.tryjpy-panel-link__arrow img {
  flex: 0 0 33px;
  max-width: none;
  transform: rotate(-90deg);
}

.tryjpy-explain__panel {
  padding: 40px 16px;
  border-radius: 10px;
  background: var(--tryjpy-peach);
}

.tryjpy-explain__title.ta-h1 {
  color: #555;
  line-height: 1.2;
  text-align: center;
}

.tryjpy-explain__text {
  margin-top: 24px;
}

.tryjpy-explain__panel .tryjpy-panel-link {
  margin-top: 40px;
}

.tryjpy-condition {
  margin-top: 40px;
}

.tryjpy-condition__text {
  margin-top: 20px;
}

.tryjpy-condition__text p + p {
  margin-top: 16px;
}

.tryjpy-rate {
  margin-top: 16px;
}

.tryjpy-footnote {
  margin-top: 8px;
}

.tryjpy-conditions {
  margin-top: 16px;
  padding-left: 1.5em;
}

.tryjpy-conditions li + li {
  margin-top: 8px;
}

.tryjpy-terms {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.tryjpy-terms__term.ta-h2 {
  padding-left: 20px;
  border-left: 4px solid var(--tryjpy-red);
  color: var(--tryjpy-navy);
}

.tryjpy-terms__description {
  margin-top: 20px;
}

.tryjpy-calculation-wrap {
  margin-top: 40px;
}

.tryjpy-calculation {
  width: min(100%, 932px);
  margin: 0 auto;
  color: #000a4a;
}

.tryjpy-calculation__factors {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tryjpy-calculation__factor {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 268px);
  min-height: 177px;
  margin-top: 54px;
  padding: 52px 10px 10px;
  border: 1.5px solid #000a4a;
  border-radius: 14px;
  font-size: 20px;
  line-height: 1.35;
  text-align: center;
}

.tryjpy-calculation__factor strong {
  font-size: 25px;
  letter-spacing: 0;
}

.tryjpy-calculation__icon,
.tryjpy-calculation__quantity-icon {
  display: flex;
  flex: 0 0 104px;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #000a4a;
}

.tryjpy-calculation__icon {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
}

.tryjpy-calculation__icon span {
  position: absolute;
  top: 42%;
  left: 62%;
  color: #08294c;
  font-family: Inter, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 31px;
  transform: translateX(-50%);
}

.tryjpy-calculation__operator {
  color: #08294c;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.tryjpy-calculation__difference {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 32px 16px 20px;
  overflow: hidden;
  background: linear-gradient(transparent 0 20px, var(--tryjpy-peach) 20px);
}

.tryjpy-main .tryjpy-calculation__background {
  position: absolute;
  top: 0;
  left: 50%;
  max-width: none;
  transform: translateX(-50%);
}

.tryjpy-calculation__quantity,
.tryjpy-calculation__difference > .tryjpy-calculation__operator {
  position: relative;
}

.tryjpy-calculation__quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
}

.tryjpy-calculation__quantity strong {
  font-size: 25px;
}

.tryjpy-examples-block {
  margin-top: 40px;
}

.tryjpy-examples {
  margin-top: 16px;
  list-style: none;
}

.tryjpy-examples li + li {
  margin-top: 8px;
}

.tryjpy-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 526px);
  min-height: 77px;
  margin: 40px auto 0;
  padding: 14px 20px;
  border-radius: 71px;
  background: var(--tryjpy-gold);
  color: #fff;
  text-decoration: none;
}

.tryjpy-button:focus-visible,
.tryjpy-panel-link:focus-visible,
.tryjpy-cta:focus-visible {
  outline: 3px solid var(--tryjpy-blue);
  outline-offset: 3px;
}

.tryjpy-notes__body {
  margin-top: 32px;
}

.tryjpy-notes__body ol {
  padding-left: 1.5em;
}

.tryjpy-notes__body li + li {
  margin-top: 12px;
}

.tryjpy-notes__steps {
  margin-top: 24px;
}

.tryjpy-notes__swap {
  margin-top: 40px;
}

.tryjpy-notes__swap-title {
  font-weight: 700;
}

.tryjpy-notes__swap ol {
  margin-top: 16px;
}

@media (min-width: 768px) {
  .tryjpy-highlight-section .tryjpy-panel-link {
    gap: 12px;
  }

  .tryjpy-main .tryjpy-copy {
    font-size: 20px;
    line-height: 1.2;
  }

  .tryjpy-content.ta-section__inner {
    width: min(calc(100% - 80px), var(--content-width));
    padding-bottom: 80px;
  }

  .tryjpy-highlight-section,
  .tryjpy-explain,
  .tryjpy-campaign-content,
  .tryjpy-notes {
    margin-top: 60px;
  }

  .tryjpy-section-heading {
    gap: 24px;
  }

  .tryjpy-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .tryjpy-card + .tryjpy-card {
    border-left: none;
  }

  .tryjpy-card:first-child {
    border-radius: 10px 0 0 0;
  }

  .tryjpy-card:last-child {
    border-radius: 0 10px 0 0;
  }

  .tryjpy-card__name.ta-h3 {
    min-height: 112px;
    font-size: 24px;
  }

  .tryjpy-card__amount strong {
    font-size: 72px;
  }

  .tryjpy-actions {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
  }

  .tryjpy-button {
    width: min(100%, 400px);
    padding: 16px 24px;
  }

  .tryjpy-button__text.ta-h3 {
    font-size: 20px;
  }

  .tryjpy-highlight {
    padding: 35px 15px;
  }

  .tryjpy-highlight__name.ta-h3 {
    font-size: 32px;
  }

  .tryjpy-highlight__amount strong {
    font-size: 128px;
  }

  .tryjpy-highlight__amount span {
    font-size: 52px;
  }

  .tryjpy-explain__panel {
    padding: 40px 53px;
  }

  .tryjpy-cta {
    margin-top: 60px;
    padding: 14px 32px;
  }

  .tryjpy-cta__text.ta-h3 {
    font-size: 26px;
  }
}

@media (min-width: 1000px) {
  .tryjpy-calculation__factors {
    flex-direction: row;
    justify-content: center;
  }

  .tryjpy-calculation__factor {
    flex: 1 1 0;
    max-width: 268px;
    font-size: 22px;
  }

  .tryjpy-calculation__factor strong {
    font-size: 30px;
  }

  .tryjpy-calculation__factors > .tryjpy-calculation__operator {
    flex: 0 0 52px;
    padding-top: 54px;
    text-align: center;
  }

  .tryjpy-calculation__difference {
    flex-direction: row;
    justify-content: space-between;
    min-height: 160px;
    padding: 20px 30px 0;
  }

  .tryjpy-calculation__quantity {
    flex-wrap: nowrap;
    font-size: 23px;
    text-align: left;
  }

  .tryjpy-calculation__quantity strong {
    font-size: 34px;
  }

  .tryjpy-card__name.ta-h3 {
    font-size: 36px;
  }

  .tryjpy-card__amount strong {
    font-size: 110px;
  }

  .tryjpy-card__amount span {
    font-size: 52px;
  }

  .tryjpy-actions {
    gap: 80px;
  }
}

@supports (zoom: 1) {
  @media not all and (min-width: 1000px) {
    .tryjpy-calculation-wrap {
      container-type: inline-size;
    }

    .tryjpy-calculation {
      width: 932px;
      zoom: 0.2;
    }

    .tryjpy-calculation__factors {
      flex-direction: row;
      justify-content: center;
    }

    .tryjpy-calculation__factor {
      flex: 1 1 0;
      max-width: 268px;
      font-size: 22px;
    }

    .tryjpy-calculation__factor strong {
      font-size: 30px;
    }

    .tryjpy-calculation__factors > .tryjpy-calculation__operator {
      flex: 0 0 52px;
      padding-top: 54px;
      text-align: center;
    }

    .tryjpy-calculation__difference {
      flex-direction: row;
      justify-content: space-between;
      min-height: 160px;
      padding: 20px 30px 0;
    }

    .tryjpy-calculation__quantity {
      flex-wrap: nowrap;
      font-size: 23px;
      text-align: left;
    }

    .tryjpy-calculation__quantity strong {
      font-size: 34px;
    }
    @media (min-width: 320px) { .tryjpy-calculation { zoom: 0.25; } }
    @media (min-width: 360px) { .tryjpy-calculation { zoom: 0.3; } }
    @media (min-width: 420px) { .tryjpy-calculation { zoom: 0.35; } }
    @media (min-width: 480px) { .tryjpy-calculation { zoom: 0.4; } }
    @media (min-width: 560px) { .tryjpy-calculation { zoom: 0.48; } }
    @media (min-width: 640px) { .tryjpy-calculation { zoom: 0.56; } }
    @media (min-width: 720px) { .tryjpy-calculation { zoom: 0.6; } }
    @media (min-width: 768px) { .tryjpy-calculation { zoom: 0.68; } }
    @media (min-width: 850px) { .tryjpy-calculation { zoom: 0.77; } }
    @media (min-width: 950px) { .tryjpy-calculation { zoom: 0.86; } }
  }

  @supports (zoom: min(1, calc(100cqw / 932px))) and (container-type: inline-size) {
    @media not all and (min-width: 1000px) {
      .tryjpy-calculation {
        zoom: min(1, calc(100cqw / 932px));
      }
    }
  }
}
