:root { --primary: #06BBCC; --light: #F0FBFC; --dark: #181d38; }
html, body { overflow-x: hidden; }
body { font-family: 'Noto Sans JP', sans-serif; color: #333; background: #f4f7f8; }
h1,h2,h3,h4,h5,h6 { font-family: 'Noto Sans JP', sans-serif; }

/* Section label */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Hero */
.apply-hero {
  background: linear-gradient(135deg, rgba(24,29,56,.70) 0%, rgba(6,50,80,.60) 100%),
    url('../img/bg_focus.jpg') center/cover no-repeat;
  padding: 80px 0 70px;
  color: #fff;
}
.apply-hero h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 12px; line-height: 1.2; }
.apply-hero p { font-size: 1rem; opacity: .9; }
@media (max-width: 991.98px) {
  .apply-hero { padding: 120px 0 50px; }
  .apply-hero h1 { font-size: 1.8rem; }
}

/* Form card */
.form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  padding: 40px 48px;
}
@media (max-width: 767px) {
  .form-card { padding: 28px 20px; }
}

/* Form section heading */
.form-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a4c;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 28px;
  margin-top: 4px;
}

/* Field label */
.field-label {
  font-size: .875rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-label:first-child { margin-top: 0; }

.badge-req {
  font-size: 10px;
  font-weight: 700;
  background: #e74c3c;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .03em;
}

/* Form controls */
.form-control, .form-select {
  border: 1.5px solid #d0e8ec;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,187,204,.15);
  outline: none;
}
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #e74c3c;
}

/* Birthdate row */
.birthdate-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.birthdate-row .form-select { flex: 0 0 auto; min-width: 90px; }
.birthdate-row #year { min-width: 120px; }
.birthdate-label { font-size: .9rem; color: #555; }

/* Bootstrap validation チェックマークを非表示 */
.form-select.is-valid, .form-control.is-valid {
  background-image: none !important;
  border-color: #d0e8ec;
}
.form-select.is-valid:focus, .form-control.is-valid:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,187,204,.15);
}

/* Field note */
.field-note {
  font-size: .78rem;
  color: #999;
  margin-top: 5px;
}

/* TZ warning */
#tz-section { margin-top: 16px; }

#tz-date-warning {
  color: #e74c3c;
  font-size: .8rem;
  margin-top: 6px;
}

/* Terms link */
.terms-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
  padding: 8px 0;
}
.terms-link:hover { color: #05a8b8; text-decoration: underline; }

/* Agree box */
.agree-box {
  background: var(--light);
  border: 1.5px solid #c8e9ed;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
}
.agree-box .form-check-label { font-weight: 700; font-size: .9rem; }

/* Submit button */
.btn-apply-submit {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 64px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  transition: .3s;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-apply-submit:hover {
  background: #05a8b8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,187,204,.35);
}
.btn-apply-submit:disabled {
  opacity: .65;
  transform: none;
  cursor: not-allowed;
}
@media (max-width: 767px) {
  .btn-apply-submit { padding: 14px 40px; width: 100%; }
}

/* Error message */
.field-error {
  font-size: .8rem;
  color: #e74c3c;
  margin-top: 4px;
}

/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,.88);
  display: none;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#loading-overlay.show { display: flex; }
#loading-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
#loading-spinner {
  border: 4px solid #e0f5f7;
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 44px; height: 44px;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-message { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
#loading-description { font-size: .85rem; color: #888; }

/* Datepicker navigation arrows */
.tempus-dominus-widget .previous span,
.tempus-dominus-widget .next span {
  color: #333 !important;
}
.tempus-dominus-widget .previous,
.tempus-dominus-widget .next {
  color: #333 !important;
}
.tempus-dominus-widget .picker-switch,
.tempus-dominus-widget td span {
  color: #333;
}

/* Datepicker calendar colors */
.date-container-days div.dow { color: #000 !important; font-weight: bold; }
.date-container-days div.dow:first-child { color: #f00 !important; }
.date-container-days div.dow:nth-child(7) { color: #00f !important; }
.date-container-days div.day.weekend { color: #f00; }
.date-container-days div.day:nth-child(7n) { color: #00f; }
.date-container-days div.day.old.weekend,
.date-container-days div.day.new.weekend { color: #0000003a; }
.tempus-dominus-widget .date-container-days div:not(.no-highlight) { background-color: rgb(215,239,255); }

#onlineterm { display: none; }
#cebuterm { display: none; }

@media screen and (max-width: 700px) {
  #sub-category-select-1 { font-size: 0.8rem; }
}
