@charset "UTF-8";
/* ==========================================================
   美村PAY 追加スタイル（main.css の後に読み込む）
========================================================== */

@media print, screen and (max-width: 780px) {
  .pay-main::after {
    height: 20px;
  }
}

.pay-container {
  padding-top: 10px;
}
@media print, screen and (min-width: 781px) {
  .pay-container {
    max-width: 1020px;
    padding-inline: 30px;
    margin-inline: auto;
    padding-top: 20px;
  }
}
@media print, screen and (max-width: 780px) {
  .pay-container {
    padding-inline: 10px;
  }
}

.pay-container > * + * {
  margin-top: 10px;
}

/* ---------- 残高カード ---------- */
.pay-balance {
  background-color: #2F7F8E;
  border-radius: 10px;
  padding: 25px;
  color: #fff;
  box-shadow: 0 2px 4px #A3DBE5;
}
.pay-balance_user {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.pay-balance_user_image {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.pay-balance_user_image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.pay-balance_user_info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.4;
}
.pay-balance_user_name {
  font-size: 20px;
  font-weight: 500;
}
.pay-balance_user_id {
  font-weight: 500;
}
.pay-balance_list {
  display: grid;
  grid-template-columns: 53.5% 1fr;
  margin-top: 11px;
}
.pay-balance_item + .pay-balance_item {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 25px;
}
.pay-balance_term {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.pay-balance_amount {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 8.5vw, 33px);
  line-height: 1;
  margin-top: 7px;
  white-space: nowrap;
}
.pay-balance_amount_unit {
  font-size: 0.66em;
  margin-left: 0.3em;
}
.pay-balance_note {
  font-size: 13px;
  line-height: 1;
  margin-top: 6px;
}

/* ---------- お知らせメッセージ ---------- */
.pay-notice {
  background-color: #FFFEEA;
  border: 1px solid #DBD787;
  border-radius: 5px;
  padding: 13px 20px;
  font-size: 15px;
  line-height: 26px;
}
.pay-notice_link {
  display: inline-block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1565C0;
}

/* ---------- スキャンで支払い ---------- */
.pay-scan {
  display: block;
  background-color: #fff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 4px #A3DBE5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pay-scan:hover {
  opacity: 0.8;
}
.pay-scan_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 72px;
  border: 2px solid #2F7F8E;
  border-radius: 7px;
  color: #2F7F8E;
  font-size: 20px;
  font-weight: 700;
}

/* ---------- ポイント内訳 ---------- */
.pay-point {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 4px #A3DBE5;
}
.pay-point_title,
.pay-card_title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 12px;
}
.pay-point_title::before,
.pay-card_title::before {
  content: "";
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background-color: #2F7F8E;
}
.pay-point_item {
  border-top: 1px dotted #6DC9DA;
  padding-block: 18px;
}
.pay-point_item:last-child {
  border-bottom: 1px dotted #6DC9DA;
}
.pay-point_head {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.pay-point_head {
  cursor: pointer;
}
.pay-point_bar {
  width: 5px;
  height: 37px;
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
}
.pay-point_bar-common   { background-color: #439FEB; }
.pay-point_bar-area     { background-color: #43B021; }
.pay-point_bar-shop     { background-color: #F3A600; }
.pay-point_bar-furusato { background-color: #F47C90; }

.pay-point_label {
  display: flex;
  flex-direction: column;
}
.pay-point_name {
  font-weight: 500;
  line-height: 20px;
}
.pay-point_limit {
  font-size: 14px;
  line-height: 17px;
}
.pay-point_limit.is-near {
  color: #FF5959;
}
.pay-point_amount {
  margin-left: auto;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}
.pay-point_amount_number {
  font-size: 24px;
  margin-right: 6px;
}
/* 開閉アイコン（アイコンが無い行でも数値の右端を揃えるため幅を確保） */
.pay-point_toggle {
  width: 12px;
  margin-left: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.pay-point_toggle.is-rotate {
  rotate: 180deg;
}
.pay-point_body {
  padding-top: 14px;
}
.pay-point_body.is-open {
  display: block;
}
.pay-point_sub {
  display: flex;
  align-items: center;
  padding-left: 14px;
  padding-right: 28px;
}
.pay-point_sub + .pay-point_sub {
  margin-top: 13px;
}
.pay-point_sub .pay-point_name {
  position: relative;
  padding-left: 12px;
}
.pay-point_sub .pay-point_name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #43B021;
}
.pay-point_sub .pay-point_limit {
  padding-left: 12px;
}

/* ---------- メニュー（3カラム） ---------- */
.pay-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
@media print, screen and (min-width: 781px) {
  .pay-menu {
    gap: 10px;
  }
}
.pay-menu_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px 5px 14px;
  box-shadow: 0 2px 4px #A3DBE5;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}
.pay-menu_item:hover {
  opacity: 0.8;
}
.pay-menu_icon {
  width: 30px;
  height: 30px;
  margin-bottom: 9px;
}
.pay-menu_text {
  display: flex;
  align-items: center;
  min-height: 42px;
}

/* ---------- 写真付きリンク ---------- */
.pay-link {
  display: grid;
  gap: 10px;
}
@media print, screen and (min-width: 781px) {
  .pay-link {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pay-link_item {
  display: flex;
  align-items: center;
  height: 80px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px #A3DBE5;
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding-right: 20px;
  transition: opacity 0.2s ease;
}
.pay-link_item:hover {
  opacity: 0.8;
}
.pay-link_image {
  width: 105px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 20px;
}
.pay-link_arrow {
  margin-left: auto;
  padding-left: 10px;
  flex-shrink: 0;
}

/* ---------- 関連サイト（美村Travel・美村NAVI） ---------- */
.pay-site {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
@media print, screen and (min-width: 781px) {
  .pay-site {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pay-site_banner {
  display: block;
  aspect-ratio: 700 / 285;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px #A3DBE5;
  transition: opacity 0.2s ease;
}
.pay-site_banner:hover {
  opacity: 0.8;
}
.pay-site_image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 画像の無いバナー */
.pay-site_banner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1F7489;
  color: #fff;
  text-decoration: none;
}
.pay-site_title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ---------- フッター ---------- */
.pay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 41px;
  padding: 10px 20px;
  background-color: #2F7F8E;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.pay-footer_platform {
  font-size: 13px;
}

/* ==========================================================
   下層ページ共通
========================================================== */

/* ---------- ページタイトル帯（m-pageHeader の美村PAY版） ---------- */
.m-pageHeader.pay-pageHeader {
  background-color: #2F7F8E;
  padding-block: 0;
}
.pay-pageHeader .m-pageHeader_content {
  gap: 12px;
  min-height: 68px;
}
.pay-pageHeader .m-pageHeader_icon {
  width: 20px;
  height: auto;
}
.pay-pageHeader .m-pageHeader_title {
  font-size: 19px;
  font-weight: 500;
}

/* PCで幅を絞るページ（ログイン・スキャン） */
@media print, screen and (min-width: 781px) {
  .pay-container-narrow {
    max-width: 620px;
  }
}

/* ---------- カード ---------- */
.pay-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 4px #A3DBE5;
}
.pay-card-plain {
  background-color: transparent;
  box-shadow: none;
}
.pay-card_title {
  border-bottom: 1px dotted #6DC9DA;
}
.pay-card_text {
  line-height: 26px;
  padding-top: 13px;
}
.pay-card .pay-notice {
  margin-top: 20px;
}
.pay-card_link {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  line-height: 26px;
  font-weight: 700;
  color: #1565C0;
}

.pay-notice-warning {
  background-color: #FFF1E4;
  border-color: #FFB270;
}

/* ---------- ボタン ---------- */
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin-top: 13px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background-color: #2F7F8E;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.pay-btn:hover {
  opacity: 0.8;
}
.pay-btn-outline {
  background-color: #fff;
  border: 1px solid #2F7F8E;
  color: #2F7F8E;
}
.pay-btn.is-disabled,
.pay-btn:disabled {
  background-color: #8F8F8F;
  pointer-events: none;
}
.pay-notice + .pay-btn,
.pay-input + .pay-btn,
.pay-code + .pay-btn {
  margin-top: 20px;
}
/* カード外に置くボタン */
.pay-action {
  padding-inline: 25px;
}
.pay-action .pay-btn {
  margin-top: 0;
}

/* ---------- フォーム ---------- */
.pay-input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 13px;
  padding: 0 15px;
  border: 1px solid #A2A2A2;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
}
.pay-input::placeholder {
  color: #999;
}
.pay-code {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  margin: 20px auto 0;
}
.pay-code_input {
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid #A2A2A2;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================
   ご利用方法／美村PAYの設定
========================================================== */

/* ---------- 残高カード（コンパクト） ---------- */
.pay-balance-compact {
  padding: 19px 25px 15px;
}
.pay-balance-compact .pay-balance_user {
  gap: 10px;
  padding-bottom: 16px;
}
.pay-balance-compact .pay-balance_user_image {
  width: 30px;
  height: 30px;
}
.pay-balance-compact .pay-balance_user_info {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
}
.pay-balance-compact .pay-balance_user_name {
  font-size: 18px;
}
.pay-balance-compact .pay-balance_user_id {
  font-size: 14px;
}
.pay-balance-compact .pay-balance_list {
  display: flex;
  margin-top: 12px;
}
.pay-balance-compact .pay-balance_item:first-child {
  padding-right: 14px;
}
.pay-balance-compact .pay-balance_item + .pay-balance_item {
  flex: 1;
  min-width: 0;
  padding-left: 14px;
}
.pay-balance-compact .pay-balance_term {
  font-size: 13px;
  white-space: nowrap;
}
.pay-balance-compact .pay-balance_amount_unit {
  font-size: 0.9em;
}
.pay-balance-compact .pay-balance_amount {
  font-size: 22px;
  margin-top: 6px;
}
.pay-balance-compact .pay-balance_note {
  display: inline;
  margin: 0 0 0 8px;
  font-size: 11px;
  font-weight: 400;
}

/* ---------- アカウント情報 ---------- */
.pay-info_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-block: 8px;
  line-height: 25px;
  border-bottom: 1px dotted #6DC9DA;
}
.pay-info_row:has(.pay-badge) {
  padding-block: 14px;
}
.pay-info_data {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #89D397;
  border-radius: 4px;
  background-color: #DBF5E0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- メニュー（2カラム） ---------- */
.pay-menu-col2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media print, screen and (min-width: 781px) {
  .pay-menu-col2 {
    gap: 10px;
  }
}
.pay-menu-col2 .pay-menu_item {
  padding-bottom: 15px;
}
.pay-menu-col2 .pay-menu_icon {
  margin-bottom: 7px;
}
.pay-menu-col2 .pay-menu_text {
  min-height: 0;
}

/* ==========================================================
   スキャンで支払い
========================================================== */
.pay-camera {
  width: 250px;
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid #A2A2A2;
  border-radius: 4px;
  background-color: #fff;
  overflow: hidden;
}
.pay-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pay-camera_text {
  margin-top: 12px;
  line-height: 26px;
  text-align: center;
}

/* ==========================================================
   決済・チャージ・取引履歴・ふるさと納税 共通パーツ
========================================================== */

/* ---------- カード外の補足テキスト・見出し ---------- */
.pay-lead {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}
.pay-lead strong {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #2F7F8E;
}
.pay-lead-alert {
  color: #E53935;
  font-weight: 700;
}
.pay-heading {
  padding: 5px 5px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- ラベル＋値 ---------- */
.pay-term {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}
.pay-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
* + .pay-term {
  margin-top: 18px;
}
.pay-card_title + .pay-term,
.pay-card_title + .pay-box,
.pay-card_title + .pay-field,
.pay-card_title + .pay-radio {
  margin-top: 15px;
}

/* ---------- 淡色ボックス ---------- */
.pay-box {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  background-color: #EEF8FA;
  line-height: 1.6;
}
.pay-box:first-child {
  margin-top: 0;
}
.pay-box .pay-term {
  margin-top: 0;
}
.pay-box_amount {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: #2F7F8E;
}
.pay-box_value {
  font-weight: 700;
  word-break: break-all;
}
.pay-box_text {
  font-size: 15px;
}

/* ---------- 金額入力 ---------- */
.pay-amount {
  display: flex;
  align-items: center;
  height: 62px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid #A2A2A2;
  border-radius: 8px;
  background-color: #fff;
}
.pay-amount:focus-within {
  border-color: #2F7F8E;
  box-shadow: 0 0 0 1px #2F7F8E;
}
.pay-amount_unit {
  margin-right: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 22px;
}
.pay-amount_input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 28px;
}
.pay-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.pay-quick_btn,
.pay-reset {
  height: 46px;
  padding: 0;
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.pay-quick_btn:hover,
.pay-reset:hover {
  opacity: 0.8;
}
.pay-quick_btn {
  border: 0;
  background-color: #2F7F8E;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.pay-reset {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #A2A2A2;
  background-color: #F5F5F5;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- 注意書き ---------- */
.pay-notes {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 22px;
  color: #555;
}
.pay-notes li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.pay-notes li + li {
  margin-top: 2px;
}
.pay-action .pay-notes {
  margin-block: 15px;
}
.pay-notes + .pay-btn {
  margin-top: 20px;
}

/* ---------- ボタン追加 ---------- */
.pay-btn-danger {
  background-color: #E53935;
}
.pay-action .pay-btn + .pay-btn {
  margin-top: 10px;
}
.pay-info + .pay-btn,
.pay-radio + .pay-btn,
.pay-field + .pay-btn {
  margin-top: 20px;
}

/* ---------- メッセージ追加 ---------- */
.pay-notice-success {
  background-color: #DBF5E0;
  border-color: #89D397;
}
.pay-notice_title {
  font-weight: 700;
}
.pay-notice_small {
  margin-top: 4px;
  font-size: 13px;
  line-height: 20px;
}

/* ---------- 明細行（pay-info の追加） ---------- */
.pay-info_term {
  flex-shrink: 0;
}
.pay-info_data-total {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #2F7F8E;
}
.pay-info_data-num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.pay-info_data-plus {
  color: #D9660A;
}
.pay-info_row-sub .pay-info_term {
  padding-left: 1em;
}
.pay-info_id {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  word-break: break-all;
}
.pay-info-top {
  border-top: 1px dotted #6DC9DA;
}

/* ---------- 完了・承認待ち表示 ---------- */
.pay-status {
  text-align: center;
}
.pay-status_icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-inline: auto;
}
.pay-status_title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.pay-status_text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
}
.pay-status_label {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}
.pay-status_number,
.pay-status_amount {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #2F7F8E;
}
.pay-status_number {
  font-size: 34px;
  letter-spacing: 0.06em;
}
.pay-status_amount {
  font-size: 26px;
}

/* ---------- 選択リンク（チャージ方法など） ---------- */
.pay-choice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px #A3DBE5;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pay-choice:hover {
  opacity: 0.8;
}
.pay-choice_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #DBF1F5;
  flex-shrink: 0;
}
.pay-choice_icon img {
  width: 28px;
  height: 28px;
}
.pay-choice_body {
  flex: 1;
  min-width: 0;
}
.pay-choice_title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.pay-choice_text {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}
.pay-choice_arrow {
  flex-shrink: 0;
}

/* ---------- スイッチ ---------- */
.pay-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  cursor: pointer;
}
.pay-switch_input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pay-switch_track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background-color: #BDBDBD;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.pay-switch_track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  transition: translate 0.2s ease;
}
.pay-switch_input:checked + .pay-switch_track {
  background-color: #2F7F8E;
}
.pay-switch_input:checked + .pay-switch_track::after {
  translate: 20px 0;
}
.pay-switch_input:focus-visible + .pay-switch_track {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}
.pay-switch_label {
  font-weight: 700;
}
.pay-switch_value {
  margin-left: auto;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  white-space: nowrap;
}
.pay-switch + .pay-info {
  margin-top: 12px;
  border-top: 1px dotted #6DC9DA;
}

/* ---------- ラジオカード ---------- */
.pay-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #A2A2A2;
  border-radius: 8px;
  cursor: pointer;
}
.pay-radio + .pay-radio {
  margin-top: 10px;
}
.pay-radio:has(input:checked) {
  border-color: #2F7F8E;
  box-shadow: 0 0 0 1px #2F7F8E;
  background-color: #EEF8FA;
}
.pay-radio input,
.pay-check input {
  -webkit-appearance: auto;
  appearance: auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2F7F8E;
  flex-shrink: 0;
}
.pay-radio_title {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}
.pay-radio_text {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* ---------- フォーム項目 ---------- */
.pay-field {
  margin-top: 18px;
}
.pay-field_label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.pay-required {
  padding: 1px 6px;
  border-radius: 3px;
  background-color: #E53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.pay-field .pay-input {
  margin-top: 6px;
}
.pay-field_cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pay-field_help {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
select.pay-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background: #fff url("../media/page/pay/icon_select.svg") no-repeat right 14px center;
  color: #000;
}
.pay-input-short {
  max-width: 180px;
}
.pay-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 6px;
}
.pay-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
}
.pay-birth {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.pay-birth .pay-input {
  margin-top: 0;
  padding: 0 8px;
  text-align: center;
}
.pay-birth_year {
  flex: 1.5;
}
.pay-birth_md {
  flex: 1;
}

/* ---------- 取引履歴 ---------- */
.pay-history {
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px #A3DBE5;
  overflow: hidden;
}
.pay-history_date {
  padding: 8px 20px;
  background-color: #EEF8FA;
  color: #2F7F8E;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.pay-history_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pay-history_item:hover {
  opacity: 0.7;
}
.pay-history_item + .pay-history_item {
  border-top: 1px dotted #6DC9DA;
}
.pay-history_icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.pay-history_body {
  flex: 1;
  min-width: 0;
}
.pay-history_name {
  display: block;
  font-weight: 500;
  line-height: 1.4;
}
.pay-history_meta {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.pay-history_amount {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}
.pay-history_amount.is-plus {
  color: #2F7F8E;
}
.pay-history_amount.is-cancel {
  color: #999;
  text-decoration: line-through;
}
.pay-badge-cancel {
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-color: #FF9D9D;
  background-color: #FFE5E5;
  color: #C62828;
  font-size: 12px;
  vertical-align: 2px;
}

/* ---------- ふるさと納税 商品 ---------- */
.pay-product {
  display: block;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px #A3DBE5;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pay-product:hover {
  opacity: 0.8;
}
.pay-product_name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.pay-product_foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}
.pay-product_price {
  font-size: 22px;
  color: #2F7F8E;
}
.pay-product_point {
  font-size: 16px;
  color: #D9660A;
}
.pay-card_name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.pay-card_title-sub {
  margin-top: 30px;
}

.pay-card_title + form > :first-child {
  margin-top: 15px;
}

.pay-amount_suffix {
  margin-left: 10px;
  font-size: 15px;
  color: #555;
  white-space: nowrap;
}
.pay-box .pay-info_row:first-child {
  padding-top: 0;
}
.pay-box .pay-info_row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ---------- 完了チェックのアニメーション（3D回転しながら表示） ---------- */
.pay-status {
  perspective: 600px;
}
.pay-status_icon-spin {
  animation: pay-check-spin 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both;
}
@keyframes pay-check-spin {
  0% {
    opacity: 0;
    transform: rotateY(-540deg) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  70% {
    transform: rotateY(0deg) scale(1.15);
  }
  100% {
    transform: rotateY(0deg) scale(1);
  }
}

/* ---------- 承認待ちの砂時計（ゆっくり繰り返し反転） ---------- */
.pay-status_icon-flip {
  animation: pay-wait-flip 3s ease-in-out infinite;
}
@keyframes pay-wait-flip {
  0%, 60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}


/* ==========================================================
   使い方（/help/）
========================================================== */

/* ---------- 手順（番号付きリスト） ---------- */
.pay-steps {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pay-step;
}
.pay-steps li {
  position: relative;
  padding-left: 36px;
  line-height: 26px;
  counter-increment: pay-step;
}
.pay-steps li + li {
  margin-top: 10px;
}
.pay-steps li::before {
  content: counter(pay-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #2F7F8E;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 箇条書き ---------- */
.pay-bullets {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.pay-bullets li {
  position: relative;
  padding-left: 18px;
  line-height: 26px;
}
.pay-bullets li + li {
  margin-top: 6px;
}
.pay-bullets li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #6DC9DA;
}
.pay-bullets strong {
  font-weight: 700;
  color: #2F7F8E;
}

/* ---------- 本文中のリンク ---------- */
.pay-main a.pay-text-link {
  color: #1565C0;
  font-weight: 700;
  text-decoration: underline;
}


/* ---------- 見出しのないカード（使い方の導入文など） ---------- */
.pay-card > .pay-card_text:first-child {
  padding-top: 0;
}
