/* ===== 共通：リクナビNEXT風ヘッダー・フォント ===== */
:root {
  --brand-red: #e60012;
  --brand-blue: #1a73e8;
  --purple-title: #6d28d9;
  --cta-purple: #5b5cf0;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --bg-page: #ffffff;
  --input-bg: #f3f4f6;
  --input-border: #e5e7eb;
  --footer-bg: #f3f4f6;
  --link-blue: #2563eb;
  --salary-orange: #ea580c;
  --salary-box-bg: #fff7ed;
  --info-blue-border: #2563eb;
  --badge-bg: #e0f2fe;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  color: var(--text-dark);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- ヘッダー ----- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.logo--image {
  align-items: center;
  min-width: 0;
}

.logo-header-img {
  display: block;
  height: clamp(28px, 7.5vw, 36px);
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 1;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand-red) 50%, #111 50%);
  border-radius: 4px;
}

.logo-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-text {
  color: #111;
}

.logo-text span {
  color: var(--brand-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-register {
  background: var(--brand-red);
  color: #fff;
}

.btn-login {
  background: var(--brand-blue);
  color: #fff;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 1px;
}

/* ===== ページ1：ランディング ===== */
.landing-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.landing-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--purple-title);
  text-align: center;
  line-height: 1.25;
}

.landing-sub {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.landing-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.landing-list {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.landing-list li {
  margin-bottom: 6px;
}

.landing-note {
  margin: 0 0 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.badges .badge:last-child {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--badge-bg);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0369a1;
}

.info-box {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: #fff;
  border-left: 5px solid var(--info-blue-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.salary-box {
  margin-bottom: 32px;
  padding: 18px;
  background: var(--salary-box-bg);
  border: 2px dashed #fdba74;
  border-radius: 10px;
  text-align: center;
}

.salary-box h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--salary-orange);
}

.salary-amount {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}

.cta-primary {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
  background: var(--cta-purple);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(91, 92, 240, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 92, 240, 0.4);
}

/* ===== ページ2：フォーム（レイアウト統一） ===== */
.form-page-body {
  padding-bottom: 0;
}

.application-page {
  --application-max: 520px;
  --application-gutter: 20px;
  --application-field-radius: 10px;
  --application-stack-gap: 20px;
  background: var(--bg-page);
}

.form-banner {
  margin: 0;
  padding: 0;
  background: var(--brand-red);
  color: #fff;
}

.form-banner__inner {
  max-width: var(--application-max);
  margin: 0 auto;
  padding: 14px var(--application-gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-banner-icon svg {
  width: 26px;
  height: 26px;
}

.form-banner h1 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.form-banner--complete {
  background: #047857;
}

.form-banner--complete .form-banner-icon--complete svg {
  display: block;
}

.application-main {
  max-width: var(--application-max);
  margin: 0 auto;
  padding: 0 var(--application-gutter);
}

.application-form {
  max-width: none;
  margin: 0;
  padding: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: var(--application-stack-gap);
}

.application-form .form-name-section {
  margin-bottom: 0;
}

.application-form .form-group {
  margin-bottom: 0;
}

.form-name-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section-heading {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  line-height: 1.35;
}

.form-required {
  margin-left: 2px;
  color: var(--brand-red);
  font-weight: 800;
}

.form-name-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: stretch;
}

.form-name-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 8px;
  min-width: 0;
}

.form-name-pair__label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.form-name-pair__input {
  width: 100%;
  min-width: 0;
  padding: 13px 12px;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--application-field-radius);
  background: var(--input-bg);
  font-family: inherit;
}

.form-name-pair__input::placeholder {
  color: #9ca3af;
}

.form-name-pair__input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-name-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #5b7fc7;
}

.form-group {
  margin-bottom: 20px;
}

.application-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.application-form .form-group input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: var(--application-field-radius);
  background: var(--input-bg);
  font-family: inherit;
}

.application-form .form-group input::placeholder {
  color: #9ca3af;
}

.application-form .form-group input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-postal-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5b7fc7;
}

.form-postal-hint.is-error {
  color: #b91c1c;
}

.application-form .field-has-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

.form-errors {
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  text-align: left;
}

.form-errors__title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #991b1b;
}

.form-errors__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #7f1d1d;
}

.btn-submit-form {
  width: 100%;
  margin-top: 4px;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand-red);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}

.btn-submit-form:hover {
  filter: brightness(1.05);
}

/* ----- 送信完了ページ ----- */
.complete-card {
  padding: 28px 0 40px;
  text-align: center;
}

.complete-card__title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.02em;
}

.complete-card__text {
  margin: 0 auto 18px;
  max-width: 36em;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: left;
}

.complete-card__note {
  margin: 0 auto 28px;
  max-width: 36em;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #6b7280;
  text-align: left;
}

.cta-primary--block {
  max-width: 100%;
  margin-top: 8px;
}

/* ----- フッター（フォームページ） ----- */
.site-footer {
  margin-top: 0;
  padding: 20px 16px 24px;
  background: var(--footer-bg);
  border-top: 1px solid #e5e7eb;
}

.application-page .site-footer {
  max-width: var(--application-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--application-gutter);
  padding-right: var(--application-gutter);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--link-blue);
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.7rem;
  color: #6b7280;
}

/* ----- 初回読み込みスプラッシュ ----- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f1ef;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash-screen--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-screen__inner {
  text-align: center;
  padding: 24px;
}

.splash-screen__spinner {
  display: block;
  margin: 0 auto 22px;
  animation: splash-screen-spin 0.95s linear infinite;
  transform-origin: 50% 50%;
}

.splash-screen__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #b8b7b5;
}

.splash-screen__note {
  margin: 8px 0 0;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #b8b7b5;
}

@keyframes splash-screen-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen__spinner {
    animation: none;
  }
}

@media (min-width: 640px) {
  .application-page {
    --application-gutter: 24px;
  }
}

@media (min-width: 600px) {
  .landing-main {
    padding-left: 24px;
    padding-right: 24px;
  }
}
