/* Area pages: shared page-specific elements */
/* パンくずリストの区切り文字 */
#breadcrumb_nav {
  --bs-breadcrumb-divider: '>';
}

/* 外部サイトへのリンクボタン */
.atm-site-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 10px 16px;
  color: #0050a8;
  background-color: #fff;
  border: 2px solid #0050a8;
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.atm-site-button__name,
.atm-site-button__sub {
  display: block;
}

.atm-site-button__name {
  font-weight: 700;
}

.atm-site-button__sub {
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 400;
}

.atm-site-button > i {
  flex-shrink: 0;
  font-size: 1.15rem;
}

.atm-site-button:hover,
.atm-site-button:focus-visible {
  color: #fff;
  background-color: #0050a8;
  box-shadow: 0 4px 10px rgba(0, 80, 168, 0.2);
  transform: translateY(-1px);
}

.atm-site-button:focus-visible {
  outline: 3px solid rgba(0, 80, 168, 0.3);
  outline-offset: 2px;
}

/* Shared fee-card layout and elements */
.fee-card-list {
  display: grid;
}

.fee-card {
  --fee-accent: #004ea2;
  --fee-accent-soft: #e9f3fa;
  --fee-border: #d9dee5;
  background: #fff;
}

.fee-card--blue {
  --fee-accent: #004ea2;
  --fee-accent-soft: #e9f3fa;
}

.fee-card__header {
  display: flex;
  align-items: center;
}

.fee-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #6eba44;
  line-height: 1;
}

.fee-card__title {
  margin: 0;
  color: var(--fee-accent);
  font-weight: 700;
}

.fee-card__table-wrap,
.tfg-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 横スクロール内で左端列の sticky を有効にする */
.tfg-matrix-wrap {
  position: relative;
  border-radius: 6px;
}

.fee-card__table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.fee-card__table th,
.fee-card__table td {
  text-align: center;
  vertical-align: middle;
}

/* ページ内の表は、見出し・曜日・金額を含めて文字サイズを統一 */
.fee-card__table,
.fee-card__table th,
.fee-card__table td,
.tfg-check-table,
.tfg-check-table td,
.tfg-matrix,
.tfg-matrix th,
.tfg-matrix td {
  font-size: 15px;
}

.fee-card__day {
  display: inline-block;
  color: #fff;
}

.fee-card__day--blue {
  background: #004ea2;
}

/* .fee-card__day--red {
  background: #fd3c34;
} */

.fee-card__day--green {
  background: #6eba44;
}

.fee-card__note {
  margin: 0;
  color: #212529;
  font-weight: 700;
  text-align: left;
}

/* Pattern A: compact ATM cards */
.fee-card-list--pattern-a {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}

.fee-card--pattern-a {
  padding: 12px 12px 8px;
  border: 2px solid var(--fee-border);
  border-radius: 10px;
}

.fee-card--pattern-a .fee-card__header,
.fee-card--pattern-c .fee-card__header {
  gap: 14px;
  margin-bottom: 10px;
}

.fee-card--pattern-a .fee-card__icon,
.fee-card--pattern-c .fee-card__icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 2rem;
}

.fee-card--pattern-a .fee-card__title,
.fee-card--pattern-c .fee-card__title {
  margin-bottom: 3px;
  font-size: 26px;
  line-height: 1.2;
}

.fee-card--pattern-a .fee-card__table,
.fee-card--pattern-c .fee-card__table {
  table-layout: fixed;
  overflow: hidden;
}

.fee-card--pattern-a .fee-card__table {
  border-radius: 8px;
}

.fee-card--pattern-a .fee-card__table th,
.fee-card--pattern-a .fee-card__table td,
.fee-card--pattern-c .fee-card__table th,
.fee-card--pattern-c .fee-card__table td {
  border-right: 1px solid var(--fee-border);
  border-bottom: 1px solid var(--fee-border);
  font-weight: 700;
}

.fee-card--pattern-a .fee-card__table th,
.fee-card--pattern-a .fee-card__table td {
  padding: 5px 8px;
}

.fee-card--pattern-a .fee-card__table th:first-child,
.fee-card--pattern-a .fee-card__table td:first-child {
  border-left: 1px solid var(--fee-border);
}

.fee-card--pattern-a .fee-card__table thead th {
  border-top: 1px solid var(--fee-border);
  color: var(--fee-accent);
  background: var(--fee-accent-soft);
}

.fee-card--pattern-a .fee-card__table tbody td {
  color: var(--fee-accent);
  background: #fff;
}

.fee-card--pattern-a .fee-card__table tbody td.fee-card__amount--accent {
  color: #6eba44;
}

.fee-card--pattern-a .fee-card__day {
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1.15;
}

.fee-card--pattern-a .fee-card__note {
  padding: 7px;
  border: 1px solid var(--fee-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  font-size: 12px;
  background: #fff;
}

/* Pattern C: standard fee cards with wide tables */
.fee-card-panel--pattern-c {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}

.fee-card-list--pattern-c {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fee-card--pattern-c {
  padding: 14px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.fee-card--pattern-c .fee-card__table {
  border-radius: 7px;
}

.fee-card--pattern-c .fee-card__table th,
.fee-card--pattern-c .fee-card__table td {
  padding: 10px 8px;
  background: #fff;
}

.fee-card--pattern-c .fee-card__table th:first-child {
  border-left: 1px solid var(--fee-border);
}

.fee-card--pattern-c .fee-card__table thead th {
  border-top: 1px solid var(--fee-border);
  color: var(--fee-accent);
  background: var(--fee-accent-soft);
}

.fee-card--pattern-c .fee-card__day {
  min-width: 62px;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.2;
}

.fee-card--pattern-c .fee-card__amount--accent {
  color: #6eba44;
}

.fee-card--pattern-c .fee-card__note {
  margin: 8px 0 0;
  font-size: 12px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .fee-card-list--pattern-a,
  .fee-card-list--pattern-c {
    grid-template-columns: 1fr;
  }

  .fee-card--pattern-a .fee-card__title,
  .fee-card--pattern-c .fee-card__title {
    font-size: 22px;
  }

  /* Pattern C の料金表はスマホ幅に収める */
  .fee-card--pattern-c .fee-card__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .fee-card--pattern-c .fee-card__table th,
  .fee-card--pattern-c .fee-card__table td {
    padding: 8px 3px;
    font-size: 12px;
    line-height: 1.35;
  }

  .fee-card--pattern-c .fee-card__table th:first-child,
  .fee-card--pattern-c .fee-card__table td:first-child {
    width: 22%;
  }

  .fee-card--pattern-c .fee-card__day {
    min-width: auto;
    padding: 4px 6px;
  }
}

/* 振込手数料の割引対象のご案内 */
.tfg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.tfg-step-card {
  border: 1.5px solid #d9dee5;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.tfg-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 9px;
  color: #004ea2;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.25;
}

.tfg-footmark,
.tfg-footnote-symbol {
  color: #fd3c34;
  font-weight: 900;
}

.tfg-check-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 2px 0 9px;
}

.tfg-check-table td {
  border: 1px solid #cfd3da;
  padding: 8px 10px;
  background: #fff;
  vertical-align: middle;
}

.tfg-check-table .tfg-check-symbol,
.tfg-check-table .tfg-check-result {
  text-align: center;
}

.tfg-check-table .tfg-check-symbol {
  width: 56px;
}

.tfg-check-table .tfg-check-result {
  width: 110px;
  color: #6eba44;
}

.tfg-mark,
.tfg-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.tfg-mark {
  line-height: 1;
}

.tfg-mark-a,
.tfg-result-a {
  background: #6eba44;
}

.tfg-mark-b,
.tfg-result-b {
  background: #004ea2;
}

.tfg-not-target {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  color: #111;
  background: #d9d9d9;
  font-weight: 900;
  white-space: nowrap;
}

.tfg-step-note {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.tfg-table-title {
  margin: 10px 0 6px;
  color: #004ea2;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.tfg-matrix {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1.5px solid #d9dee5;
  border-radius: 6px;
  overflow: visible;
}

.tfg-matrix th,
.tfg-matrix td {
  border-right: 1px solid #d9dee5;
  border-bottom: 1px solid #d9dee5;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.tfg-matrix tr:last-child th,
.tfg-matrix tr:last-child td {
  border-bottom: 0;
}

.tfg-matrix th:last-child,
.tfg-matrix td:last-child {
  border-right: 0;
}

.tfg-matrix .tfg-corner,
.tfg-matrix .tfg-group-head {
  color: #004ea2;
  background: #fff;
}

.tfg-matrix .tfg-corner {
  width: 180px;
}

.tfg-matrix .tfg-group-head {
  letter-spacing: .08em;
}

.tfg-matrix .tfg-col-head {
  background: #e9f3fa;
  white-space: nowrap;
}

.tfg-row-head {
  background: #f7f9fb !important;
  text-align: left !important;
}

/* スマホ：組み合わせ一覧は横スクロールのまま、左端の銀行名列を固定 */
@media (max-width: 768px) {
  .tfg-matrix .tfg-corner,
  .tfg-matrix .tfg-row-head {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
  }

  .tfg-matrix .tfg-corner {
    z-index: 4;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  }

  .tfg-matrix .tfg-row-head {
    z-index: 3;
    background: #f7f9fb !important;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
  }
}

.tfg-footnote-symbol {
  margin-right: 4px;
}
