/* ===================================================
   NCB 口座振替受付サービス 共通スタイル
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:        #1A235A;
  --primary-mid:    #2A3A8A;
  --primary-light:  #EEF0F8;
  --accent:         #3A6BC4;
  --accent-light:   #EBF1FB;
  --danger:         #C0392B;
  --success:        #1E7E4C;
  --warning-bg:     #FFFBEB;
  --warning-border: #D97706;
  --text:           #1F2937;
  --text-mid:       #4B5563;
  --text-light:     #6B7280;
  --border:         #D1D5DB;
  --border-light:   #E5E7EB;
  --bg:             #F4F5F9;
  --white:          #FFFFFF;
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.07);
  --shadow:         0 2px 10px rgba(0,0,0,0.09);
  --shadow-lg:      0 6px 24px rgba(0,0,0,0.13);
  --radius:         8px;
  --radius-lg:      12px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3',
               'Meiryo', 'メイリオ', 'Yu Gothic Medium', '游ゴシック Medium', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: underline;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header --- */
.site-header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-logo__img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-logo__service {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-left: 1px solid rgba(255,255,255,0.35);
  padding-left: 14px;
  line-height: 1.35;
}

.site-header__right {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 24px 16px;
  font-size: 0.82rem;
  margin-top: auto;
  line-height: 1.8;
}

/* --- Page Layout --- */
.page-main {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-main--wide {
  max-width: 1140px;
}

/* --- Page Heading --- */
.page-heading {
  margin-bottom: 36px;
}

.page-heading__title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
  padding-left: 16px;
  border-left: 5px solid var(--primary);
}

.page-heading__lead {
  margin-top: 10px;
  padding-left: 21px;
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* --- Step Indicator --- */
.step-nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}

.step-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 120px;
  position: relative;
}

.step-nav__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: 0;
  width: calc(100% - 44px);
  height: 2px;
  background-color: var(--border);
  z-index: 0;
}

.step-nav__item.is-done::after,
.step-nav__item.is-active::after {
  background-color: var(--primary);
}

.step-nav__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background 0.2s;
}

.step-nav__item.is-done .step-nav__num {
  background-color: var(--primary);
  color: var(--white);
}

.step-nav__item.is-active .step-nav__num {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(26,35,90,0.18);
}

.step-nav__label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.3;
}

.step-nav__item.is-active .step-nav__label {
  color: var(--primary);
  font-weight: 700;
}

/* --- Card --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.card__title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 20px;
}

.card__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Notice / Alert boxes --- */
.notice {
  background-color: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.notice__title {
  font-weight: 800;
  color: #92400E;
  margin-bottom: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice__title .icon {
  font-size: 1.1em;
}

.notice ul {
  padding-left: 1.4em;
  font-size: 0.93rem;
  color: var(--text);
}

.notice ul li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.info-box {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  color: var(--text);
}

.info-box strong {
  color: var(--primary);
}

/* --- Privacy Section --- */
.privacy-scroll {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  height: 210px;
  overflow-y: auto;
  padding: 18px 20px;
  background-color: #FAFAFA;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.privacy-scroll h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
}

.privacy-scroll h4:first-child {
  margin-top: 0;
}

.privacy-scroll p {
  margin-bottom: 8px;
}

.consent-area {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background-color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.consent-area:has(input:checked) {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.consent-area input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.consent-area label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

/* --- Target Users Grid --- */
.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}

.target-card {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--white);
}

.target-card .t-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}

.target-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
}

/* --- Contact Box --- */
.contact-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 28px;
}

.contact-box__label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.contact-box__phone {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.contact-box__phone a {
  color: var(--white);
  text-decoration: none;
}

.contact-box__hours {
  font-size: 0.87rem;
  opacity: 0.75;
  margin-top: 8px;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 26px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.form-control {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,35,90,0.14);
}

.form-control::placeholder {
  color: #B8BFC8;
  font-size: 0.9rem;
}

.form-control--tel {
  letter-spacing: 0.04em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.form-sub-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 600;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.55;
}

.form-select {
  display: block;
  width: 100%;
  padding: 13px 36px 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B5563' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,35,90,0.14);
}

.date-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 12px;
  align-items: end;
}

.date-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.02em;
  min-height: 52px;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,35,90,0.28);
}

.btn--primary:hover {
  background-color: var(--primary-mid);
  border-color: var(--primary-mid);
  box-shadow: 0 4px 14px rgba(26,35,90,0.38);
  transform: translateY(-1px);
  color: var(--white);
  text-decoration: none;
}

.btn--primary:disabled {
  background-color: #9CA3AF;
  border-color: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.btn--secondary {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.btn--block {
  width: 100%;
  display: flex;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.08rem;
  min-height: 60px;
  border-radius: var(--radius-lg);
}

.btn--smbc {
  background: linear-gradient(135deg, #0A5E9A 0%, #1380CA 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(10,94,154,0.35);
  font-size: 1.1rem;
  padding: 18px 40px;
  min-height: 64px;
}

.btn--smbc:hover {
  background: linear-gradient(135deg, #0A4E82 0%, #0A6AAA 100%);
  box-shadow: 0 5px 18px rgba(10,94,154,0.45);
  transform: translateY(-1px);
  color: var(--white);
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.btn-group--row {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Confirm Table --- */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.confirm-table tr:first-child th,
.confirm-table tr:first-child td {
  border-top: 1px solid var(--border-light);
}

.confirm-table th,
.confirm-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.confirm-table th {
  width: 38%;
  background-color: #F8F9FC;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85rem;
}

.confirm-table td {
  font-weight: 600;
  color: var(--text);
}

/* --- Complete Page --- */
.complete-wrapper {
  text-align: center;
  padding: 8px 0 16px;
}

.complete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.complete-icon svg {
  width: 42px;
  height: 42px;
}

.complete-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.complete-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.65;
}

.complete-arrow {
  font-size: 1.8rem;
  color: var(--text-light);
  margin: 20px 0;
  display: block;
}

/* --- Admin Layout --- */
.admin-header {
  background-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.admin-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-badge {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.admin-user {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-logout {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: background 0.15s;
}

.admin-logout:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.admin-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.admin-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page-title span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

/* --- Search Bar --- */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,35,90,0.12);
}

.search-input::placeholder {
  color: #B8BFC8;
}

.search-btn {
  padding: 12px 22px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.search-btn:hover {
  background: var(--primary-mid);
}

.table-summary {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* --- Data Table --- */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.data-table thead th {
  background-color: var(--primary);
  color: var(--white);
  padding: 13px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.data-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.data-table tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: var(--primary-light);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge--success {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge--pending {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* --- Admin Login --- */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1A235A 0%, #2A3A8A 50%, #1A235A 100%);
  padding: 24px;
}

.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 44px 44px;
  width: 100%;
  max-width: 420px;
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo__img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.login-box__title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 32px;
  font-weight: 600;
}

.login-divider {
  width: 40px;
  height: 2px;
  background: var(--border-light);
  margin: 12px auto 28px;
}

.login-footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 24px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-small  { font-size: 0.85rem; color: var(--text-light); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .page-main {
    padding: 24px 16px 64px;
  }

  .card {
    padding: 22px 18px;
  }

  .page-heading__title {
    font-size: 1.3rem;
  }

  .step-nav__label {
    font-size: 0.7rem;
  }

  .target-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .target-card {
    padding: 16px 12px;
  }

  .target-card .t-icon {
    font-size: 1.8rem;
  }

  .target-card h3 {
    font-size: 0.88rem;
  }

  .contact-box__phone {
    font-size: 1.65rem;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .form-row-3 > *:first-child {
    grid-column: 1 / -1;
  }

  .date-row {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
  }

  .btn-group--row {
    flex-direction: column-reverse;
  }

  .btn--lg {
    padding: 16px 28px;
  }

  .confirm-table th {
    width: 36%;
    font-size: 0.8rem;
    padding: 12px 12px;
  }

  .confirm-table td {
    padding: 12px 12px;
  }

  .complete-title {
    font-size: 1.3rem;
  }

  .admin-main {
    padding: 20px 16px 60px;
  }

  .login-box {
    padding: 36px 24px 32px;
  }

  .login-logo-mark {
    font-size: 1.6rem;
  }

  .site-header__right {
    display: none;
  }
}
