/* ================================================================
   aippay_design.css — AIPPAY デザインシステム共通CSS
   対象: 外部ゲスト向けページ（easy_req系, login, pwd_reset, d/系等）
   ================================================================ */

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 14px;
  color: #1E2A78;
  background: #F4F7FB;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- ページフレーム ---- */
.a-page {
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Step2/3は上揃えレイアウト（コンテンツが長いため） */
.a-page--top {
  min-height: 100vh;
  padding: 20px 16px;
  align-items: flex-start;
}
.a-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
/* Step1など入力系は少し狭くてよい */
.a-container--sm {
  max-width: 560px;
}

/* ---- ヘッダー ---- */
.a-header {
  text-align: center;
  margin-bottom: 28px;
}
.a-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.a-logo-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.a-logo {
  height: clamp(24px, 6vw, 36px);
  width: auto;
}
.a-firm-name-ja {
  font-size: clamp(16px, 4.5vw, 24px);
  font-weight: 500;
  color: #1E2A78;
}
.a-firm-name-en {
  font-size: 10px;
  letter-spacing: 2px;
  color: #3BC3E9;
  font-weight: 400;
}

/* ---- ステップバー ---- */
.a-stepbar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.a-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 120px;
}
.a-step-actor {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.a-step-actor--customer {
  color: #1E2A78;
  background: rgba(30, 42, 120, 0.08);
}
.a-step-actor--company {
  color: #0C447C;
  background: rgba(59, 195, 233, 0.15);
}
.a-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 500;
  font-size: 11px;
  flex-shrink: 0;
}
.a-step-num--done {
  background: #3BC3E9;
  color: #FFFFFF;
}
.a-step-num--active {
  background: #1E2A78;
  color: #FFFFFF;
}
.a-step-num--inactive {
  background: #FFFFFF;
  color: #5A6380;
  border: 1px solid rgba(30, 42, 120, 0.2);
}
.a-step-label {
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
}
.a-step-label--active {
  color: #1E2A78;
  font-weight: 500;
}
.a-step-label--inactive {
  color: #5A6380;
}
.a-step-sep {
  color: #B8D9F0;
  margin-top: 30px;
  flex-shrink: 0;
}

/* ---- カード（Step1用メインカード） ---- */
.a-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(30, 42, 120, 0.12);
  padding: 32px;
}

/* ---- セクションカード（Step2/3用） ---- */
.a-section {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(30, 42, 120, 0.12);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.a-section--highlighted {
  border: 1.5px solid #3BC3E9;
  padding: 20px 24px;
}
.a-section--amount {
  border: 1.5px solid rgba(59, 195, 233, 0.4);
}
.a-section--compact {
  padding: 14px 20px;
}
.a-section--center {
  text-align: center;
  padding: 24px;
}

/* ---- セクションヘッド ---- */
.a-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.a-section-head--spaced {
  margin-bottom: 4px;
}
.a-section-icon {
  width: 24px;
  height: 24px;
  background: rgba(59, 195, 233, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.a-section-icon--accent {
  background: #3BC3E9;
}
.a-section-title {
  font-size: 14px;
  font-weight: 500;
  color: #1E2A78;
  margin: 0;
}
.a-section-tag {
  font-size: 11px;
  color: #1E2A78;
  background: rgba(59, 195, 233, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}
.a-section-tag--gray {
  font-size: 11px;
  color: #5A6380;
  margin-left: 4px;
}
.a-section-desc {
  font-size: 12px;
  color: #5A6380;
  margin: 0 0 10px;
  line-height: 1.6;
}

/* ---- バッジ（ページ上部ラベル） ---- */
.a-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 195, 233, 0.12);
  color: #1E2A78;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

/* ---- カードタイトル・説明文 ---- */
.a-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #1E2A78;
  margin: 0 0 8px;
}
.a-card-intro {
  font-size: 13px;
  color: #5A6380;
  margin: 0 0 24px;
  line-height: 1.7;
}

/* ---- 権利種別グリッド（kind-grid） ---- */
.a-kind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.a-kind-btn {
  padding: 12px 8px;
  background: #FFFFFF;
  color: #1E2A78;
  border: 1.5px solid rgba(30, 42, 120, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}
.a-kind-btn:hover {
  border-color: #1E2A78;
}
.a-kind-btn.is-selected {
  background: #1E2A78;
  color: #FFFFFF;
  border-color: #1E2A78;
}
/* radio は視覚的に隠す */
.a-kind-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ---- フォーム共通 ---- */
.a-form-group {
  margin-bottom: 20px;
}
.a-form-group:last-child {
  margin-bottom: 0;
}
.a-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1E2A78;
  margin-bottom: 8px;
}
.a-form-input {
  width: 100%;
  border: 1px solid rgba(30, 42, 120, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #1E2A78;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.a-form-input:focus {
  border-color: #3BC3E9;
  box-shadow: 0 0 0 3px rgba(59, 195, 233, 0.15);
}
.a-form-input--sm {
  padding: 8px 10px;
  font-size: 13px;
}

/* 請求書宛先フォームの2カラムグリッド */
.a-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.a-billing-label {
  display: block;
  font-size: 12px;
  color: #5A6380;
  margin-bottom: 2px;
}

/* ---- 料金ボックス（Step1用） ---- */
.a-fee-box {
  background: rgba(59, 195, 233, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.a-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.a-fee-label {
  font-size: 12px;
  color: #5A6380;
}
.a-fee-value {
  font-size: 16px;
  font-weight: 500;
  color: #1E2A78;
  white-space: nowrap;
}
.a-fee-tax {
  font-size: 11px;
  color: #5A6380;
  font-weight: 400;
}
.a-fee-note {
  font-size: 11px;
  color: #5A6380;
  margin-top: 8px;
  line-height: 1.6;
}

/* ---- 注意文 ---- */
.a-caution {
  font-size: 11px;
  color: #5A6380;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---- 情報グリッド（Step2 権利情報） ---- */
.a-info-box {
  background: #F4F9FC;
  border-radius: 8px;
  padding: 12px 14px;
}
.a-info-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 16px;
  font-size: 13px;
}
.a-info-label {
  color: #5A6380;
}
.a-info-value {
  color: #1E2A78;
}
.a-info-value--emphasis {
  font-weight: 500;
}
.a-info-sub {
  color: #5A6380;
  font-size: 12px;
}

/* ---- 統合カード（納付設定 + 請求金額） ---- */
.a-combined-section {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #3BC3E9;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.a-combined-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.a-combined-col {
  display: flex;
  flex-direction: column;
}
.a-combined-col--left {
  padding-right: 20px;
  border-right: 1px solid rgba(30, 42, 120, 0.12);
}

/* ---- 年数ステッパー ---- */
.a-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.a-stepper-value {
  font-size: 18px;
  font-weight: 500;
  color: #1E2A78;
  min-width: 50px;
  text-align: center;
}
.a-stepper-btn {
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  color: #1E2A78;
  border: 1.5px solid rgba(30, 42, 120, 0.2);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.a-stepper-btn:hover:not(:disabled) {
  border-color: #1E2A78;
}
.a-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.a-stepper-hint {
  font-size: 11px;
  color: #5A6380;
  margin-top: 6px;
  line-height: 1.5;
}

/* ---- トグルボタン（減免制度等） ---- */
.a-toggle-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.a-toggle-btn {
  padding: 8px 18px;
  background: #FFFFFF;
  color: #1E2A78;
  border: 1.5px solid rgba(30, 42, 120, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.a-toggle-btn:hover:not(:disabled) {
  border-color: #1E2A78;
}
.a-toggle-btn.is-selected {
  background: #1E2A78;
  color: #FFFFFF;
  border-color: #1E2A78;
}
.a-toggle-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.a-help-link {
  font-size: 11px;
  color: #3BC3E9;
  text-decoration: none;
}
.a-help-link:hover {
  text-decoration: underline;
}

/* ---- 商標区分ボタン ---- */
.a-tmclass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.a-tmclass-table td {
  padding: 4px 6px 4px 0;
  vertical-align: middle;
}
.a-tmclass-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.a-tmclass-btn {
  padding: 4px 10px;
  background: #FFFFFF;
  color: #1E2A78;
  border: 1.5px solid rgba(30, 42, 120, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.a-tmclass-btn:hover:not(:disabled) {
  border-color: #1E2A78;
}
.a-tmclass-btn--do:not(:disabled) {
  background: rgba(59, 195, 233, 0.12);
  border-color: #3BC3E9;
}
.a-tmclass-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- 商標区分スライドスイッチ ---- */
.a-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.a-switch-track {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: #D1D5DB;
  border-radius: 12px;
  transition: background 0.2s;
  position: relative;
}
.a-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.a-switch-track--on {
  background: #1E2A78;
}
.a-switch-track--on::after {
  transform: translateX(20px);
}
.a-switch-label {
  font-size: 13px;
  color: #374151;
  min-width: 64px;
}
.a-switch > button[type="submit"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
}

/* ---- 請求金額行（Step2） ---- */
.a-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 13px;
}
.a-amount-label {
  color: #5A6380;
}
.a-amount-sub {
  font-size: 11px;
}
.a-amount-value {
  color: #1E2A78;
}
.a-amount-row--last {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 42, 120, 0.12);
  margin-bottom: 2px;
}
.a-amount-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(59, 195, 233, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
}
.a-amount-total__label {
  font-size: 14px;
  font-weight: 500;
  color: #1E2A78;
}
.a-amount-total__value {
  font-size: 22px;
  font-weight: 500;
  color: #1E2A78;
}

/* ---- 完了メッセージ（Step3） ---- */
.a-completion-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: rgba(59, 195, 233, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a-completion-title {
  font-size: 17px;
  font-weight: 500;
  color: #1E2A78;
  margin: 0 0 4px;
}
.a-completion-desc {
  font-size: 12px;
  color: #5A6380;
  margin: 0;
}

/* ---- 入金グリッド（Step3） ---- */
.a-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(59, 195, 233, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
}
.a-payment-divider {
  border-left: 1px solid rgba(30, 42, 120, 0.12);
  padding-left: 18px;
}
.a-payment-mini-label {
  font-size: 11px;
  color: #5A6380;
  margin-bottom: 4px;
}
.a-payment-amount {
  font-size: 24px;
  font-weight: 500;
  color: #1E2A78;
}
.a-payment-date {
  font-size: 20px;
  font-weight: 500;
  color: #1E2A78;
}
.a-payment-date-sub {
  font-size: 12px;
  color: #5A6380;
  font-weight: 400;
  margin-left: 4px;
}
.a-payment-note {
  font-size: 11px;
  color: #5A6380;
  margin-top: 10px;
  line-height: 1.6;
}

/* ---- 振込先グリッド（Step3） ---- */
.a-bank-box {
  background: #F4F9FC;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.a-bank-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 14px;
  font-size: 13px;
}
.a-bank-label {
  color: #5A6380;
}
.a-bank-value {
  color: #1E2A78;
}
.a-bank-value--emphasis {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.a-bank-sub {
  color: #5A6380;
  font-size: 12px;
}
.a-bank-sub-small {
  color: #5A6380;
  font-size: 11px;
}
.a-bank-note {
  font-size: 11px;
  color: #5A6380;
  line-height: 1.6;
}

/* ---- コピーボタン ---- */
.a-copy-btn {
  padding: 2px 8px;
  background: #FFFFFF;
  color: #1E2A78;
  border: 1px solid rgba(30, 42, 120, 0.2);
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.a-copy-btn:hover {
  background: #F4F9FC;
  border-color: #1E2A78;
}
.a-copy-btn.is-copied {
  background: #3BC3E9;
  color: #FFFFFF;
  border-color: #3BC3E9;
}

/* ---- 請求書ダウンロード行 ---- */
.a-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.a-invoice-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.a-invoice-title {
  font-size: 13px;
  font-weight: 500;
  color: #1E2A78;
}
.a-invoice-sub {
  font-size: 11px;
  color: #5A6380;
}
.a-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #FFFFFF;
  color: #1E2A78;
  border: 1.5px solid #1E2A78;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}
.a-download-btn:hover {
  background: #F4F9FC;
  color: #1E2A78;
  text-decoration: none;
}

/* ---- お問い合わせ ---- */
.a-contact-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.a-contact-person {
  font-size: 12px;
  color: #1E2A78;
  margin-left: 4px;
}
.a-contact-person-label {
  color: #5A6380;
  font-size: 11px;
}
.a-contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.a-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1E2A78;
  text-decoration: none;
  font-weight: 500;
}
.a-contact-link:hover {
  color: #3BC3E9;
}

/* ---- 海外案内カード ---- */
.a-overseas-card {
  margin-top: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(30, 42, 120, 0.12);
  border-radius: 8px;
  padding: 16px 20px;
}
.a-overseas-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.a-overseas-icon {
  width: 32px;
  height: 32px;
  background: rgba(59, 195, 233, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.a-overseas-title {
  font-size: 13px;
  font-weight: 500;
  color: #1E2A78;
  margin-bottom: 4px;
}
.a-overseas-desc {
  font-size: 12px;
  color: #5A6380;
  line-height: 1.7;
  margin-bottom: 10px;
}
.a-overseas-person {
  font-size: 12px;
  color: #1E2A78;
  margin-bottom: 10px;
}
.a-overseas-person-label {
  color: #5A6380;
  font-size: 11px;
}
.a-overseas-contacts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.a-overseas-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1E2A78;
  text-decoration: none;
  font-weight: 500;
}
.a-overseas-contact:hover {
  color: #3BC3E9;
}

/* ---- フリーバッジ ---- */
.a-free-badge {
  display: inline-block;
  background: #3BC3E9;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

/* ---- トラストバッジ ---- */
.a-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 11px;
  color: #5A6380;
}
.a-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.a-trust-sep {
  color: #B8D9F0;
}

/* ---- プライマリボタン（送信） ---- */
.a-submit-btn {
  width: 100%;
  background: #1E2A78;
  color: #FFFFFF;
  border: none;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}
.a-submit-btn:hover {
  background: #161F5C;
}
.a-submit-btn:active {
  transform: scale(0.99);
}
.a-submit-btn--sm {
  font-size: 14px;
  padding: 12px;
}
.a-submit-btn__arrow {
  transition: transform 0.15s;
  flex-shrink: 0;
}
.a-submit-btn:hover .a-submit-btn__arrow {
  transform: translateX(3px);
}

/* ---- 戻るリンク ---- */
.a-back-link-wrap {
  text-align: center;
  margin-top: 12px;
}
.a-back-link {
  font-size: 12px;
  color: #5A6380;
  text-decoration: none;
}
.a-back-link:hover {
  color: #1E2A78;
  text-decoration: underline;
}

/* ---- インラインアラート ---- */
.a-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}
.a-alert--error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: #7b1a10;
}
.a-alert--info {
  background: rgba(59, 195, 233, 0.10);
  border: 1px solid rgba(59, 195, 233, 0.35);
  color: #0C447C;
}
.a-alert__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  position: absolute;
  right: 10px;
  top: 8px;
}
.a-alert__close:hover {
  opacity: 1;
}

/* ---- ツールチップ ---- */
.a-tooltip-popup {
  position: absolute;
  background: #1E2A78;
  color: #FFFFFF;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.5;
  max-width: 280px;
  z-index: 8000;
  pointer-events: none;
}

/* ---- トースト ---- */
.a-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.a-toast {
  background: #1E2A78;
  color: #FFFFFF;
  padding: 10px 16px 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(30, 42, 120, 0.25);
  animation: a-toast-in 0.2s ease;
  max-width: 320px;
}
.a-toast--info {
  background: #1E2A78;
}
.a-toast--success {
  background: #1a6e3a;
}
.a-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  padding: 0;
  line-height: 1;
  margin-left: auto;
}
.a-toast__close:hover {
  color: #fff;
}
@keyframes a-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- エラーモーダル ---- */
.a-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.a-modal {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 28px 28px 20px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(30, 42, 120, 0.2);
}
.a-modal__title {
  font-size: 15px;
  font-weight: 500;
  color: #1E2A78;
  margin: 0 0 10px;
}
.a-modal__body {
  font-size: 13px;
  color: #5A6380;
  line-height: 1.6;
  margin-bottom: 20px;
}
.a-modal__footer {
  text-align: right;
}
.a-modal__ok {
  padding: 8px 24px;
  background: #1E2A78;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.a-modal__ok:hover {
  background: #161F5C;
}

/* ---- ローディングオーバーレイ ---- */
#a-loading-overlay {
  background-color: rgba(170,170,170,0.7);
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#a-loading-overlay.is-hidden {
  display: none;
}
#a-loading-overlay .a-loading-symbol {
  width: 240px;
  height: 240px;
  border: 8px solid #4f6fb8;
  border-top-color: #0f2c6e;
  border-radius: 50%;
  animation: a-spin 1.5s linear infinite;
}
@keyframes a-spin {
  to { transform: rotate(360deg); }
}

/* ---- 補助テキスト ---- */
.a-text-secondary {
  font-size: 12px;
  color: #5A6380;
  line-height: 1.6;
  margin-top: 6px;
}
.a-text-warning {
  font-size: 12px;
  color: #c0392b;
  line-height: 1.6;
}

/* ================================================================
   レスポンシブ
   ================================================================ */
@media (max-width: 600px) {
  .a-page {
    padding: 24px 12px;
  }
  .a-page--top {
    padding: 16px 12px;
  }
  .a-card {
    padding: 24px 20px;
  }
  .a-card-title {
    font-size: 16px;
  }
  .a-section {
    padding: 14px 16px;
  }
  .a-section--highlighted {
    padding: 16px 18px;
  }
  .a-section--center {
    padding: 18px 16px;
  }
  .a-stepbar {
    gap: 2px;
  }
  .a-step {
    max-width: 70px;
  }
  .a-step-actor {
    font-size: 8px;
    padding: 1px 4px;
  }
  .a-step-label {
    font-size: 10px;
  }
  .a-step-sep {
    margin-top: 28px;
  }
  .a-kind-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .a-info-grid {
    grid-template-columns: 90px 1fr;
    gap: 6px 10px;
    font-size: 12px;
  }
  .a-combined-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .a-combined-col--left {
    padding-right: 0;
    border-right: none;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(30, 42, 120, 0.12);
  }
  .a-billing-grid {
    grid-template-columns: 1fr;
  }
  .a-payment-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .a-payment-divider {
    border-left: none;
    border-top: 1px solid rgba(30, 42, 120, 0.12);
    padding-left: 0;
    padding-top: 10px;
  }
  .a-bank-grid {
    grid-template-columns: 80px 1fr;
    gap: 6px 10px;
    font-size: 12px;
  }
  .a-overseas-contacts {
    flex-direction: column;
    gap: 10px;
  }
  .a-contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .a-toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  .a-toast {
    max-width: none;
  }
}
