@charset "UTF-8";

.huf-swap-campaign {
  --huf-swap-navy: #0b3472;
  --huf-swap-blue: #2459b8;
  --huf-swap-text: #26364d;
  --huf-swap-border: #c7d9f2;
  --huf-swap-pale-blue: #f1f6fd;
  --huf-swap-orange: #ff5a0a;
  --huf-swap-red: #e92e01;
  --huf-swap-green: #007c48;
  --huf-swap-performance-red-border: #ed6e38;
  --huf-swap-performance-red-bg: #fdeee2;
  --huf-swap-performance-green-bg: #ebf0eb;
  /* Figmaの数値は Inter Bold。単位の円／％は Inter に字形がなく Noto Sans JP へフォールバックする */
  --huf-swap-font-number: "Inter", var(--ta-font-family-ja);
  --huf-swap-type-performance-number: 700 88px/1 var(--huf-swap-font-number);
  --huf-swap-type-performance-unit: 700 30px/1 var(--huf-swap-font-number);
  --huf-swap-type-table-number: 700 32px/1 var(--huf-swap-font-number);
  --huf-swap-type-table-unit: 700 16px/1 var(--huf-swap-font-number);
  --ta-type-h1-sp: 700 28px/1.4 var(--ta-font-family-ja);
  --ta-type-h2-sp: 700 20px/1.5 var(--ta-font-family-ja);
  --ta-type-h3-sp: 700 18px/1.4 var(--ta-font-family-ja);
  --ta-type-body-sp: 500 16px/1.7 var(--ta-font-family-ja);
}

.huf-swap-main {
  overflow-x: clip;
  color: var(--huf-swap-text);
  letter-spacing: 0;
}

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

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

.huf-swap-main .ta-text-body {
  letter-spacing: 0;
}

.huf-swap-note-text {
  --ta-type-body: var(--ta-ja-pc-body-medium);
  --ta-type-body-sp: var(--ta-ja-sp-body-medium);
}

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

.huf-swap-br-sp {
  display: none;
}

.huf-swap-mainvisual {
  width: 100%;
  overflow: hidden;
}

.huf-swap-mainvisual img {
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

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

.huf-swap-performance {
  margin-top: 40px;
}

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

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

.huf-swap-section-heading .ta-h1 {
  flex: 0 1 auto;
  max-width: calc(100% - 48px);
  color: var(--huf-swap-navy);
  text-align: center;
}

.huf-swap-performance__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.huf-swap-performance-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  padding: 24px 12px;
  overflow: hidden;
  border: 2px solid var(--huf-swap-performance-red-border);
  border-radius: 10px;
  background: var(--huf-swap-performance-red-bg);
}

.huf-swap-performance-card + .huf-swap-performance-card {
  border-color: var(--huf-swap-green);
  background: var(--huf-swap-performance-green-bg);
}

.huf-swap-performance-card__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.huf-swap-performance-card__flags {
  display: flex;
  flex: 0 0 141px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.huf-swap-performance-card__flags img {
  width: 68px;
  height: 51px;
  object-fit: cover;
}

.huf-swap-performance-card__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 104px;
}

.huf-swap-performance-card__pair.ta-h3 {
  --ta-type-h3-pc: var(--ta-type-card-title-pc);
  --ta-type-h3-sp: var(--ta-type-card-title-sp);
  flex: 1 1 auto;
  min-width: 0;
  /* letter-spacing は 0（Figma tracking 0）。既定の 1px を足すと
     「スイスフラン/ハンガリーフォリント」(16字・20px) が Figma の 333px 枠に収まらず折り返す */
  letter-spacing: 0;
  color: var(--huf-swap-navy);
  text-align: center;
}

.huf-swap-performance-card__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  color: var(--huf-swap-red);
  font: var(--huf-swap-type-performance-number);
  letter-spacing: 0;
  white-space: nowrap;
  transform: skewX(-10deg) scaleY(.98);
}

.huf-swap-performance-card + .huf-swap-performance-card .huf-swap-performance-card__amount {
  color: var(--huf-swap-green);
}

.huf-swap-performance-card__amount strong {
  font: inherit;
}

.huf-swap-performance-card__amount span {
  font: var(--huf-swap-type-performance-unit);
}

.huf-swap-performance__caption {
  margin-top: 40px;
}

.huf-swap-panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 72px;
  margin-top: 40px;
  padding: 16px;
  border: 1px solid var(--huf-swap-border);
  border-radius: 10px;
  background: #fff;
  color: var(--huf-swap-blue);
  text-align: center;
  text-decoration: none;
}

.huf-swap-panel-link .ta-h3 {
  color: var(--huf-swap-blue);
}

.huf-swap-panel-link:focus-visible,
.huf-swap-cta:focus-visible {
  outline: 3px solid #0054d8;
  outline-offset: 3px;
}

.huf-swap-arrow-box {
  display: flex;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 30px;
}

/* Figmaの矢印ノードは回転後 14x30。回転前 30x14 にすると枠にちょうど収まる */
.huf-swap-arrow-box img {
  width: 30px;
  max-width: none;
  height: 14px;
  transform: rotate(-90deg);
}

.huf-swap-overview,
.huf-swap-about,
.huf-swap-details,
.huf-swap-notes {
  margin-top: 40px;
}

.huf-swap-overview__lead {
  margin-top: 40px;
}

.huf-swap-overview__table-wrap {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.huf-swap-overview-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: collapse;
}

.huf-swap-overview-table th,
.huf-swap-overview-table td {
  padding: 10px 4px;
  border: 2px solid var(--huf-swap-border);
  color: var(--huf-swap-navy);
  text-align: center;
  vertical-align: middle;
}

.huf-swap-overview-table th:first-child { width: 36%; }
.huf-swap-overview-table th:nth-child(2) { width: 28%; }
.huf-swap-overview-table th:last-child { width: 36%; }

.huf-swap-overview-table tbody td {
  white-space: nowrap;
}

.huf-swap-overview-table thead th.ta-h2 {
  --ta-type-h2-sp: 700 16px/1.4 var(--ta-font-family-ja);
  height: 82px;
  background: var(--huf-swap-navy);
  color: #fff;
}

.huf-swap-overview-table thead .ta-h4 {
  color: #fff;
  font: inherit;
}

.huf-swap-overview-table tbody th {
  height: 154px;
}

.huf-swap-overview-table__flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.huf-swap-overview-table__flags img {
  width: 44px;
  height: 33px;
  object-fit: cover;
}

.huf-swap-overview-table__pair.ta-h3 {
  --ta-type-h3-pc: var(--ta-type-card-title-pc);
  --ta-type-h3-sp: var(--ta-type-card-title-sp);
  display: block;
  margin-top: 10px;
  /* 既定の 1px を足すと「スイスフラン/ハンガリーフォリント」(16字) がセル幅に収まらない。Figma tracking も 0 */
  letter-spacing: 0;
  color: var(--huf-swap-navy);
}

.huf-swap-overview-table__number {
  display: inline-block;
  color: var(--huf-swap-red);
  font: var(--huf-swap-type-table-number);
  letter-spacing: 0;
  transform: skewX(-10deg) scaleY(.98);
}

.huf-swap-overview-table__unit {
  display: inline-block;
  color: var(--huf-swap-red);
  font: var(--huf-swap-type-table-unit);
  transform: skewX(-10deg) scaleY(.98);
}

.huf-swap-overview-table tbody tr + tr .huf-swap-overview-table__number,
.huf-swap-overview-table tbody tr + tr .huf-swap-overview-table__unit {
  color: var(--huf-swap-green);
}

.huf-swap-overview__limits {
  margin-top: 20px;
}

.huf-swap-overview__limits ul {
  padding-left: 1.5em;
}

.huf-swap-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 750px;
  min-height: 64px;
  margin-top: 40px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--huf-swap-orange);
  color: #fff;
  text-decoration: none;
}

.huf-swap-cta__text.ta-h2 {
  --ta-type-h2-sp: 700 18px/1.4 var(--ta-font-family-ja);
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

/* 最小幅でも申し込みボタンを折り返さない */
@media (max-width: 359px) {
  .huf-swap-cta {
    gap: 8px;
    padding: 0 8px;
  }

  .huf-swap-cta__text.ta-h2 {
    --ta-type-h2-sp: 700 16px/1.4 var(--ta-font-family-ja);
  }
}

.huf-swap-about {
  padding: 40px 16px;
  border-radius: 10px;
  background: var(--huf-swap-pale-blue);
}

.huf-swap-about .ta-h1 {
  color: var(--huf-swap-blue);
  text-align: center;
}

.huf-swap-about__text {
  margin-top: 40px;
}

.huf-swap-about__text p + p {
  margin-top: 0;
}

.huf-swap-about__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.huf-swap-about__links .huf-swap-panel-link {
  margin-top: 0;
}

.huf-swap-details__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.huf-swap-details__term.ta-h2 {
  padding-left: 20px;
  border-left: 4px solid var(--huf-swap-navy);
  color: var(--huf-swap-blue);
}

.huf-swap-details__description {
  margin-top: 20px;
}

.huf-swap-details__description > p + p,
.huf-swap-details__description > p + ul {
  margin-top: 20px;
}

.huf-swap-details__description ul {
  padding-left: 1.5em;
}

.huf-swap-details__calculation {
  width: 974px;
  max-width: 100%;
  height: auto;
  margin: 20px auto 0;
  border-radius: 8px;
}

.huf-swap-notes {
  padding-bottom: 40px;
}

.huf-swap-notes__body {
  margin-top: 40px;
}

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

.huf-swap-notes__steps {
  margin-top: 0;
}

.huf-swap-notes__swap {
  margin-top: 40px;
}

.huf-swap-notes__swap ol {
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .huf-swap-panel-link,
  .huf-swap-cta {
    transition: opacity .2s ease, transform .2s ease;
  }

  .huf-swap-panel-link:hover,
  .huf-swap-cta:hover {
    opacity: .82;
    transform: translateY(-2px);
  }
}

/* SPは見出し下・ブロック間を詰める（/campaign/cfd/open-account/202609/ と同じ配分） */
@media (max-width: 767px) {
  .huf-swap-br-sp {
    display: inline;
  }

  .huf-swap-mainvisual img {
    aspect-ratio: 3333 / 4000;
  }

  .huf-swap-section-heading .ta-h1,
  .huf-swap-about .ta-h1 {
    --ta-type-h1-sp: 700 24px/1.5 var(--ta-font-family-ja);
  }

  .huf-swap-about .ta-h1 {
    white-space: nowrap;
  }

  /* 表の数値は実測で収まる上限まで拡大（390px時点の限界42px）。カード数値は縦だけ一段下げる */
  .huf-swap-campaign {
    --huf-swap-type-table-number: 700 42px/1 var(--huf-swap-font-number);
    --huf-swap-type-table-unit: 700 21px/1 var(--huf-swap-font-number);
    --huf-swap-type-performance-number: 700 72px/1 var(--huf-swap-font-number);
    --huf-swap-type-performance-unit: 700 26px/1 var(--huf-swap-font-number);
  }

  /* 表の国旗はセル幅を圧迫しないよう縮小（44x33 → 32x24） */
  .huf-swap-overview-table__flags {
    gap: 6px;
  }

  .huf-swap-overview-table__flags img {
    flex: none;
    width: 32px;
    height: 24px;
  }

  .huf-swap-overview-table__pair.ta-h3 {
    --ta-type-h3-sp: 700 10px/1.4 var(--ta-font-family-ja);
    margin-top: 6px;
  }



  .huf-swap-overview-table th,
  .huf-swap-overview-table td {
    padding: 8px 4px;
  }

  .huf-swap-overview-table thead th.ta-h2 {
    height: auto;
  }

  .huf-swap-overview-table tbody th,
  .huf-swap-overview-table tbody td {
    height: auto;
  }

  .huf-swap-performance-card {
    min-height: 0;
    padding: 14px 12px;
    justify-content: flex-start;
  }

  .huf-swap-performance-card__bottom {
    min-height: 0;
    margin-top: 4px;
  }

  /* カードの国旗をもう一段縮小（68x51 → 最大40x30）。狭幅では縦横比を保ったまま縮める */
  .huf-swap-performance-card__flags {
    flex: 0 1 85px;
    min-width: 0;
  }

  .huf-swap-performance-card__flags img {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    max-width: 40px;
    max-height: 30px;
  }

  .huf-swap-performance-card__pair.ta-h3 {
    --ta-type-h3-sp: 700 14px/1.4 var(--ta-font-family-ja);
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .huf-swap-performance__cards {
    row-gap: 20px;
    margin-top: 24px;
  }

  .huf-swap-performance__caption {
    margin-top: 24px;
  }

  .huf-swap-panel-link {
    margin-top: 20px;
  }

  .huf-swap-overview__lead {
    margin-top: 16px;
  }

  .huf-swap-overview__table-wrap {
    margin-top: 20px;
  }

  .huf-swap-cta {
    max-width: 450px;
    min-height: 60px;
    border-radius: 10px;
  }

  .huf-swap-about {
    padding: 12px 16px;
  }

  .huf-swap-about__text,
  .huf-swap-about__links {
    margin-top: 20px;
  }

  .huf-swap-about__links {
    row-gap: 16px;
  }

  .huf-swap-details__list {
    gap: 32px;
    margin-top: 24px;
  }

  .huf-swap-details__description {
    margin-top: 12px;
  }

  .huf-swap-notes__body,
  .huf-swap-notes__swap {
    margin-top: 24px;
  }
}

/* 「ハンガリーフォリントとは」を1行に保てなくなる幅から縮める */
@media (max-width: 374px) {
  .huf-swap-about .ta-h1 {
    --ta-type-h1-sp: 700 20px/1.5 var(--ta-font-family-ja);
  }

  /* 「37.5円」がセル幅を超えるため1段落とす（360px時点の限界42px） */
  .huf-swap-campaign {
    --huf-swap-type-table-number: 700 40px/1 var(--huf-swap-font-number);
    --huf-swap-type-table-unit: 700 20px/1 var(--huf-swap-font-number);
  }
}

/* 実測で364px以下から「2,500円」がカード幅を超えるため、この幅だけ数値を縮める */
@media (max-width: 364px) {
  .huf-swap-campaign {
    --huf-swap-type-performance-number: 700 64px/1 var(--huf-swap-font-number);
    --huf-swap-type-performance-unit: 700 22px/1 var(--huf-swap-font-number);
    /* 320px時点の限界36px */
    --huf-swap-type-table-number: 700 36px/1 var(--huf-swap-font-number);
    --huf-swap-type-table-unit: 700 18px/1 var(--huf-swap-font-number);
  }
}

/* 表の数値はセル幅に収まる中間サイズを挟む（PC実寸はFigma準拠の1032px以上のみ） */
@media (min-width: 768px) and (max-width: 1031px) {
  .huf-swap-campaign {
    --huf-swap-type-table-number: 700 56px/1 var(--huf-swap-font-number);
    --huf-swap-type-table-unit: 700 28px/1 var(--huf-swap-font-number);
  }

  /* 通貨ペア列を広げて「スイスフラン/ハンガリーフォリント」を1行に保つ */
  .huf-swap-overview-table th:first-child { width: 40%; }
  .huf-swap-overview-table th:nth-child(2) { width: 24%; }
}

@media (min-width: 1032px) {
  .huf-swap-campaign {
    --ta-type-h1-pc: 700 40px/1.2 var(--ta-font-family-ja);
    --ta-type-h3-pc: 700 24px/1.4 var(--ta-font-family-ja);
    --ta-type-body: 500 20px/1.7 var(--ta-font-family-ja);
    --huf-swap-type-performance-number: 700 128px/1 var(--huf-swap-font-number);
    --huf-swap-type-performance-unit: 700 52px/1 var(--huf-swap-font-number);
    --huf-swap-type-table-number: 700 110px/1 var(--huf-swap-font-number);
    --huf-swap-type-table-unit: 700 52px/1 var(--huf-swap-font-number);
  }

  .huf-swap-performance {
    margin-top: 80px;
  }

  .huf-swap-section-heading {
    gap: 20px;
  }

  .huf-swap-section-heading .ta-h1 {
    max-width: none;
    white-space: nowrap;
  }

  .huf-swap-performance__cards {
    grid-template-columns: repeat(2, minmax(0, 480px));
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
  }

  .huf-swap-performance-card {
    height: 245px;
    min-height: 0;
    padding: 35px 15px;
  }

  .huf-swap-performance-card + .huf-swap-performance-card {
    padding: 26px 1px 23px;
  }

  .huf-swap-performance-card:first-child .huf-swap-performance-card__top {
    margin-bottom: -15px;
  }

  .huf-swap-performance-card:first-child .huf-swap-performance-card__flags {
    flex-basis: 168px;
    padding: 0 10px;
  }

  .huf-swap-performance-card__bottom {
    min-height: 123px;
  }

  .huf-swap-performance-card:first-child .huf-swap-performance-card__bottom {
    min-height: 135px;
  }

  .huf-swap-performance-card:first-child .huf-swap-performance-card__pair {
    flex: 0 1 261px;
    white-space: nowrap;
  }

  .huf-swap-performance-card + .huf-swap-performance-card .huf-swap-performance-card__top {
    gap: 0;
  }

  .huf-swap-performance-card + .huf-swap-performance-card .huf-swap-performance-card__pair {
    flex: 0 0 333px;
  }

  .huf-swap-panel-link {
    gap: 50px;
    padding: 20px 10px;
  }

  .huf-swap-overview,
  .huf-swap-about,
  .huf-swap-details,
  .huf-swap-notes {
    margin-top: 80px;
  }

  .huf-swap-overview__table-wrap,
  .huf-swap-overview__lead {
    margin-top: 40px;
  }

  .huf-swap-overview-table th,
  .huf-swap-overview-table td {
    padding: 10px;
  }

  .huf-swap-overview-table thead th.ta-h2 {
    --ta-type-h2-pc: 500 36px/1.4 var(--ta-font-family-ja);
    height: 126px;
  }

  .huf-swap-overview-table tbody th,
  .huf-swap-overview-table tbody td {
    height: 174px;
  }

  .huf-swap-overview-table__flags {
    gap: 17px;
  }

  .huf-swap-overview-table__flags img {
    width: 100px;
    height: 75px;
  }

  .huf-swap-overview-table__pair.ta-h3 {
    margin-top: 10px;
  }

  .huf-swap-cta {
    gap: 86px;
    min-height: 86px;
    margin-top: 80px;
    padding: 0 66px;
    border-radius: 15px;
  }

  .huf-swap-cta__text.ta-h2 {
    --ta-type-h2-pc: 700 36px/1.2 var(--ta-font-family-ja);
    flex: 0 1 516px;
    text-align: left;
    white-space: nowrap;
  }

  .huf-swap-about {
    padding: 40px 53px;
  }

  .huf-swap-about__text,
  .huf-swap-about__links {
    margin-top: 50px;
  }

  .huf-swap-about__links {
    grid-template-columns: repeat(2, minmax(0, 417px));
    justify-content: center;
    gap: 40px;
  }

  .huf-swap-details__list {
    gap: 40px;
    margin-top: 40px;
  }

  .huf-swap-details__term.ta-h2 {
    padding-left: 20px;
  }

  .huf-swap-details__description {
    margin-top: 20px;
  }

  .huf-swap-details__calculation {
    margin-top: 20px;
  }

  .huf-swap-notes {
    /* ご注意事項だけはページ全体のPC本文20pxではなく共通の16pxを使う */
    --ta-type-body: var(--ta-ja-pc-body-medium);
    padding-bottom: 80px;
  }

  .huf-swap-notes__body {
    margin-top: 40px;
  }
}
