.p-top-rate__num,
.home-transaction-record__amount-digits,
.home-reviews__score strong {
  font-family: var(--website-figure-font);
}

.home-reviews__score strong {
  min-inline-size: 1.771484375em;
}

.p-top-rate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.p-top-rate__title {
  margin: 0;
  color: #12324a;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  border-left: 4px solid #003E75;
  padding-left: 10px;
}

#current_rate_table {
  margin-top: 20px;
}
@media (max-width: 767px) {
  #current_rate_table {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .l-container__contents__main:has(> #current_rate_table) {
    margin-top: 10px;
  }
}
.p-top-rate__time {
  color: #666666;
  font-size: 14px;
  white-space: nowrap;
}

.p-top-rate__info-pc {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #2B7CC4;
  border-radius: 6px;
  padding: 10px 16px;
  margin: 16px 0;
  color: #333333;
  font-size: 14px;
  text-align: left;
  position: relative;
}
.p-top-rate__info-pc strong {
  color: #005FAD;
  font-weight: 700;
}

.p-top-rate__info-sp,
.p-top-rate__condition,
.p-top-rate__condition-desktop {
  display: none;
}

.p-top-rate__table {
  --rate-action-width: 82px;
  --rate-column-gap: 20px;
  --rate-column-inset: 16px;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.p-top-rate__table thead th {
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  background: #fff;
  text-align: center;
  vertical-align: middle;
  height: 40px;
  padding: 4px 6px;
  font-weight: 700;
}
.p-top-rate__table tbody td {
  border-bottom: 1px solid #dbdbdb;
  height: 64px;
  padding: 0;
  vertical-align: middle;
}

.p-top-rate__col-currency {
  width: 252px;
}

.p-top-rate__table thead th.p-top-rate__col-buy,
.p-top-rate__table thead th.p-top-rate__col-sell {
  width: calc((100% - 252px) / 2);
}

.p-top-rate__table thead th.p-top-rate__col-currency {
  color: #202020;
  font-size: 13px;
}

.p-top-rate__table thead th.p-top-rate__col-buy {
  color: #005fad;
}

.p-top-rate__table thead th.p-top-rate__col-sell {
  color: #b05b05;
}

.p-top-rate__th-main {
  font-size: 17px;
}

.p-top-rate__heading-arrow { translate: 0 -.08em; }

.p-top-rate__table thead :is(.p-top-rate__col-buy, .p-top-rate__col-sell) {
  position: relative;
}

#current_rate_table .p-top-rate__heading-link:any-link {
  color: inherit;
  text-decoration: none;
}

.p-top-rate__heading-link {
  display: block;
}

.p-top-rate__heading-link::before {
  content: "";
  position: absolute;
  inset: 2px 4px;
}

.p-top-rate__heading-link:focus-visible::before {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.p-top-rate__heading-link .p-top-rate__th-main {
  position: relative;
}

.p-top-rate__heading-arrow {
  position: absolute;
  inset-inline-start: 100%;
  inset-block-start: 50%;
  margin-inline-start: 0.25em;
  transform: translateY(-50%);
  font-size: 0.9em;
  line-height: 1;
  opacity: 0.7;
}

.p-top-rate__th-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.p-top-rate__col-buy .p-top-rate__th-wrap {
  position: relative;
  left: 4px;
}

.p-top-rate__col-sell .p-top-rate__th-wrap {
  position: relative;
  left: 4px;
}

.p-top-rate__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .p-top-rate__table thead th:is(.p-top-rate__col-buy, .p-top-rate__col-sell) {
    padding-inline: 0;
  }

  .p-top-rate__table .p-top-rate__th-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rate-action-width);
    column-gap: var(--rate-column-gap);
    padding-inline-end: var(--rate-column-inset);
    left: auto;
  }

  .p-top-rate__table .p-top-rate__th-main {
    justify-self: end;
  }

  .p-top-rate__table .p-top-rate__chip {
    justify-self: center;
    transform: translateY(-1px);
  }
}

.p-top-rate__chip svg {
  width: 13px;
  height: 8px;
  display: block;
}

.p-top-rate__chip--buy {
  background: #eef5fb;
  color: #005fad;
}

.p-top-rate__chip--sell {
  background: #fdf3e7;
  color: #b05b05;
}

.p-top-rate__flag-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 13px;
}

.p-top-rate__flag {
  flex: 0 0 auto;
  width: 54px;
  height: auto;
  aspect-ratio: 83 / 56;
  object-fit: contain;
  border-radius: 8px;
}

.p-top-rate__name {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

td.p-top-rate__cell-buy {
  background-image: linear-gradient(90deg, #fff 0, rgba(255,255,255,0) 40px), linear-gradient(to bottom, #eef5fb 0, #fff 18px);
}

td.p-top-rate__cell-sell {
  background: linear-gradient(to bottom, #fdf3e7 0, #fff 18px);
}

.p-top-rate__line {
  display: flex;
  align-items: center;
  gap: var(--rate-column-gap);
  padding-right: var(--rate-column-inset);
}

.p-top-rate__num {
  flex: 1;
  text-align: right;
  font-size: 25px;
  font-weight: 700;
  color: #24384a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* Keep precise rates from expanding the action column on a narrow desktop. */
@media (768px <= width <= 1080px) {
  .p-top-rate__num {
    display: flex;
    justify-content: flex-end;
    min-inline-size: 0;
  }
}

.p-top-rate__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 var(--rate-action-width);
  width: var(--rate-action-width);
  padding-inline: 5px;
  height: 24px;
  border-radius: 12px;
  color: var(--rate-button-color);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.p-top-rate__btn::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
}
.p-top-rate__btn::after {
  content: '›';
  content: '›' / '';
  flex: none;
  margin-inline-start: 4px;
  font-size: 1.35em;
  line-height: .7;
  transform: translateY(-.08em);
}
.p-top-rate__btn:link, .p-top-rate__btn:visited, .p-top-rate__btn:hover, .p-top-rate__btn:active {
  color: var(--rate-button-color);
}
.p-top-rate__btn:active {
  transform: translateY(1px);
}

.p-top-rate__btn--buy {
  --rate-button-color: #005fad;
  --rate-button-background: rgb(203, 221, 243);
  background: var(--rate-button-background);
}
.p-top-rate__btn--sell {
  --rate-button-color: #813a00;
  --rate-button-background: rgb(245, 219, 188);
  background: var(--rate-button-background);
}
.p-top-rate__btn:is(:hover, :active) {
  background: color-mix(in srgb, var(--rate-button-background), var(--rate-button-color) 8%);
}

.p-top-rate__line--status {
  justify-content: center;
  padding-right: 16px;
}

.p-top-rate__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 114px;
  height: 27px;
  padding: 0 14px;
  border-radius: 13.5px;
  background: #dbdbdb;
  color: #666666;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.p-top-rate__pill svg {
  width: 14px;
  height: 14px;
  display: block;
}

@media (max-width: 767px) {
  .p-top-rate__head {
    margin-bottom: 8px;
    align-items: flex-end;
  }

  .p-top-rate__title {
    font-size: 18px;
    line-height: 21.6px;
  }

  .p-top-rate__time {
    font-size: 11px;
  }

  .p-top-rate__time-year {
    display: none;
  }

  .p-top-rate__info-pc {
    display: none;
  }

  .p-top-rate__info-sp {
    display: block;
    margin: 0 0 10px;
    padding-left: 14px;
    color: #666;
    font-size: 11px;
    line-height: 1.45;
  }

  .p-top-rate__table {
    table-layout: fixed;
  }

  .p-top-rate__table thead th {
    height: 62px;
  }

  .p-top-rate__th-main {
    font-size: 15px;
    line-height: 13.553px;
  }

  .p-top-rate__th-wrap,
  .p-top-rate__col-buy .p-top-rate__th-wrap,
  .p-top-rate__col-sell .p-top-rate__th-wrap {
    display: block;
    position: static;
    left: auto;
  }

  .p-top-rate__table .p-top-rate__chip { display: none; }

  .p-top-rate__condition {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    line-height: 14.85px;
  }

  .p-top-rate__table thead th.p-top-rate__col-buy,
  .p-top-rate__table thead th.p-top-rate__col-sell {
    width: 35.5%;
  }

  .p-top-rate__table thead th.p-top-rate__col-currency {
    font-size: 14px;
  }

  .p-top-rate__col-currency {
    width: 29%;
  }

  .p-top-rate__table tbody td {
    height: 81px;
  }

  td.p-top-rate__cell-buy,
  td.p-top-rate__cell-sell {
    box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0);
    transition: box-shadow .15s;
  }

  td.p-top-rate__cell-buy {
    background-image: linear-gradient(90deg, #fff 0, rgba(255,255,255,0) 24px), linear-gradient(to bottom, #eef5fb 0, #fff 16px);
  }

  td.p-top-rate__cell-sell {
    background: linear-gradient(to bottom, #fdf3e7 0, #fff 16px);
  }

  td.p-top-rate__cell-buy:has(.p-top-rate__btn:active) {
    box-shadow: inset 0 0 0 999px #d5e6f5;
  }

  td.p-top-rate__cell-sell:has(.p-top-rate__btn:active) {
    box-shadow: inset 0 0 0 999px #fbe5cb;
  }

  .p-top-rate__flag-cell {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 2px;
  }

  .p-top-rate__flag {
    display: block;
    width: 50px;
    border-radius: 8px;
    margin: 0 auto;
  }

  .p-top-rate__name {
    display: block;
    font-size: 14px;
    line-height: 16px;
  }

  .p-top-rate__name--long {
    font-size: 10px;
    letter-spacing: -0.025em;
  }

  @media (max-width: 380px) {
    .p-top-rate__name--long { font-size: 9px; }
  }

  .p-top-rate__line {
    display: block;
    position: relative;
    text-align: center;
    padding: 0 2px;
    line-height: 1;
  }

  .p-top-rate__num {
    display: block;
    font-size: 26px;
    text-align: center;
    margin: 0 0 6px;
  }

  .p-top-rate__btn {
    position: static;
    width: 100%;
    max-width: 96px;
    flex-basis: 100px;
    padding-inline: 0;
    height: 26px;
    border-radius: 13px;
    font-size: 11px;
  }
  .p-top-rate__btn::before {
    top: 0;
    bottom: 0;
  }

  .p-top-rate__btn--buy { --rate-button-background: rgb(225, 236, 248); }
  .p-top-rate__btn--sell { --rate-button-background: rgb(250, 234, 214); }

  .p-top-rate__line--status {
    padding: 0 2px;
  }

  .p-top-rate__pill {
    min-width: min(108px, 100%);
    height: 28px;
    border-radius: 14px;
    font-size: 12px;
  }
}
.home-hero {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 767px) {
  .home-hero {
    display: block;
  }
}
.home-hero__image {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .home-hero__image {
    height: 0;
    padding-top: 23.8095238095%;
    background-image: url("/a226-top/hero_pc_v5.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
@media (min-width: 1513px) {
  .home-hero__image {
    height: 360px;
    padding-top: 0;
    background-image: url("/a226-top/hero_pc_v5_fade.webp");
    background-size: 1512px 360px;
    background-position: center top;
    background-repeat: no-repeat;
  }
}
@media (max-width: 767px) {
  .home-hero__image {
    max-width: 1280px;
    aspect-ratio: 720 / 380;
    background: #2f77ae;
  }
}
.home-hero__mobile-image {
  display: none;
}
@media (max-width: 767px) {
  .home-hero__mobile-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/a226-top/hero_sp_20261204.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
  }
}
.home-hero__headline {
  margin: 0;
  font: inherit;
}

@media (min-width: 768px) {
  .home-hero__headline {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.home-hero__headline-line {
  display: block;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.6;
}
.home-hero__headline-line--lead {
  font-size: 14px;
}
.home-hero__headline-line--rates {
  font-size: 16px;
  margin-top: 2px;
}
.home-hero__headline-line--service {
  font-size: 15px;
  margin-top: 2px;
}
.home-hero__headline-accent {
  color: #F5FF00;
}

.home-hero__mobile-tagline { display: none; }

@media (max-width: 767px) {
  .home-hero__headline,
  .home-hero__mobile-tagline {
    display: block;
    position: absolute;
    inset-inline-start: 2.22%;
    z-index: 2;
    white-space: nowrap;
  }

  .home-hero__headline {
    inset-block-start: 20%;
    color: #fff;
    font-size: 4.44vw;
    font-weight: 700;
    line-height: 1.43;
    text-align: start;
  }

  .home-hero__headline-line {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .home-hero__headline-accent { color: inherit; }
  /* Highlight the existing text 「お得」 and 「簡単」 without changing the H1 markup. */
  .home-hero__headline-line--rates {
    background-image: linear-gradient(to right, #f5ff00 2em, #fff 2em 7em, #f5ff00 7em 9em, #fff 9em);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .home-hero__headline-line--service {
    padding-block-end: .2em;
    border-block-end: 1px solid currentColor;
    color: #f5ff00;
  }

  .home-hero__mobile-tagline {
    inset-block-start: 63.68%;
    margin: 0;
    padding: .37em .7em;
    background: #bfdaf7;
    color: #004a91;
    font-size: 3.33vw;
    font-weight: 700;
    line-height: 1.2;
  }
}

/* v5 _top_header.scss: .c-top-header-divider; _site_notice.scss: .mb-v5-notice-line */
.home-hero-frame::before,
.home-hero-frame::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1a438f, #0257b0, #005991);
}

@media (min-width: 1513px) {
  .home-hero-frame::before,
  .home-hero-frame::after {
    width: 1512px;
    max-width: 100%;
    margin-inline: auto;
    mask-image: url("/a226-top/hero_pc_v5_fade.webp");
    mask-size: 1512px 360px;
    mask-repeat: no-repeat;
    mask-mode: alpha;
  }

  .home-hero-frame::before { mask-position: center top; }
  .home-hero-frame::after { mask-position: center bottom; }

  .home-hero-frame:has(.c-top-main)::before,
  .home-hero-frame:has(.c-top-main)::after {
    width: 1280px;
    mask-size: 1280px 360px;
  }
}

@media (1000px <= width < 1125px) {
  .p-top-rate__info-pc {
    padding-inline: 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

.home-hero-frame { margin-block-start: 8px; }

@media (max-width: 767px) {
  .mb-site-header-wrap ~ .home-hero-frame { margin-block-start: 0; }
}

.home-guide__cards .home-guide__flow-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.home-guide__flow-title .p-top-rate__chip {
  background-color: #fff;
  box-sizing: border-box;
  line-height: 1.2;
}

.home-guide__cards.home-guide__cards--flow {
  row-gap: 20px;
}

.home-guide__cards--flow > a.mb-home-guide-link:is(:link, :visited) {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  border-color: #d4dfe8;
  color: #345168;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .home-guide__cards--flow > #guide-buy { grid-area: 1 / 1; }
  .home-guide__cards--flow > #guide-sell { grid-area: 1 / 2; }
  .home-guide__cards--flow > .mb-home-guide-link:first-of-type { grid-area: 2 / 1; }
  .home-guide__cards--flow > .mb-home-guide-link:last-of-type { grid-area: 2 / 2; }
}

@media (max-width: 767px) {
  .home-guide__cards.home-guide__cards--flow { row-gap: 8px; }

  .home-guide__cards--flow .mb-home-guide-link + .home-guide__part {
    margin-block-start: 14px;
  }
}


@media (min-width: 1100px) {
  .home-hero__image {
    width: min(100%, var(--site-desktop-frame-width, 1200px));
    height: auto;
    padding-top: 0;
    background: none;
  }

  /* Replace hero_pc_v5.webp to update the artwork and its intrinsic ratio. */
  .home-hero__mobile-image {
    display: block;
    content: url("/a226-top/hero_pc_v5.webp") / "";
    width: 100%;
    height: auto;
  }

  .home-hero-frame::before,
  .home-hero-frame::after {
    width: min(100%, var(--site-desktop-frame-width, 1200px));
    margin-inline: auto;
    mask-image: none;
  }

  .p-top-rate__table {
    --rate-currency-width: 264px;
    --rate-number-width: 100px;
    /* Balance the blank space before the right-aligned numbers. */
    --rate-pair-end-space: 24px;
    --rate-pair-width: calc(var(--rate-number-width) + var(--rate-column-gap) + var(--rate-action-width) + var(--rate-pair-end-space));
  }

  .p-top-rate__col-currency { width: var(--rate-currency-width); }

  .p-top-rate__table thead th:is(.p-top-rate__col-buy, .p-top-rate__col-sell) {
    width: calc((100% - var(--rate-currency-width)) / 2);
  }

  .p-top-rate__name { font-size: 17px; }

  .p-top-rate__table :is(.p-top-rate__th-wrap, .p-top-rate__line) {
    box-sizing: border-box;
    width: var(--rate-pair-width);
    margin-inline: auto;
    padding-inline-end: var(--rate-pair-end-space);
  }

  .p-top-rate__table .p-top-rate__line--status { padding-inline-end: 0; }

  .p-top-rate__table .p-top-rate__th-wrap {
    display: block;
    padding-inline: 0;
    text-align: center;
  }

  .p-top-rate__table .p-top-rate__chip { display: none; }

  .p-top-rate__table thead th {
    height: auto;
    padding-block: 10px;
  }

  .p-top-rate__table thead th.p-top-rate__col-currency {
    color: #3e4146;
    font-size: 15px;
  }

  .p-top-rate__condition-desktop {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
  }
}

@media (width < 1100px) {
  .p-top-rate__info-pc { display: none; }
}
