*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.container {
  width: 100%;
  max-width: 480px;
}

.logo {
  text-align: center;
  margin-bottom: 32px;
}
.logo a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.view {
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.muted {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* カード */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.info-card .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.info-card .info-row:last-child { border-bottom: none; }
.info-card .label { color: #6b7280; font-size: 0.875rem; }
.info-card .value { font-weight: 600; font-size: 0.95rem; }
.info-card .value.arrears { color: #dc2626; }

/* 滞納注意書き */
.arrears-note {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-align: left;
}

/* Square カードフォーム */
#card-container {
  min-height: 48px;
}

/* ボタン */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.15s;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-secondary:hover { background: #e5e7eb; }

/* エラー */
.error-inline {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-top: 12px;
  text-align: left;
}

/* アイコン */
.icon-success {
  width: 64px; height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #16a34a;
  margin: 0 auto 20px;
}
.icon-error {
  width: 64px; height: 64px;
  background: #fee2e2;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #dc2626;
  margin: 0 auto 20px;
}

/* スピナー */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
