@charset "UTF-8";
/* ==========================================================
   entry.html 3ステップ登録フォーム（style.css のトークンに依存）
========================================================== */
body.entry-body { background: #f4f8fc; }

.entry-header { background: #fff; box-shadow: 0 2px 10px rgba(22, 57, 95, 0.08); position: relative; z-index: 2; }
.entry-header-inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.entry-header-inner img { height: 28px; width: auto; }
.entry-header-inner p { font-size: 12px; color: #6a7a8a; }

.entry-main { min-height: calc(100vh - 200px); padding: 36px 16px 72px; }
.entry-wrap { max-width: 640px; margin: 0 auto; }
.entry-wrap h1 {
  text-align: center; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--c-navy-deep); line-height: 1.55; letter-spacing: 0.05em;
}
.entry-wrap .lead { text-align: center; font-size: 13px; color: #5a6b7d; margin-top: 6px; }
.entry-wrap .lead .em { color: var(--c-orange2); font-weight: 700; }

/* ステップインジケーター */
.entry-steps { display: flex; margin: 26px 0 20px; }
.entry-steps li {
  flex: 1; position: relative; text-align: center; padding-top: 40px;
  font-size: 12px; font-weight: 700; color: #9aabbc;
}
.entry-steps li::before {
  content: attr(data-num); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #d7e3ef; color: #fff;
  font-family: var(--font-num); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.entry-steps li:not(:first-child)::after {
  content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: #d7e3ef;
}
.entry-steps li.is-active { color: var(--c-blue); }
.entry-steps li.is-active::before { background: var(--c-blue); box-shadow: 0 0 0 5px var(--c-sky2); }
.entry-steps li.is-done { color: var(--c-blue); }
.entry-steps li.is-done::before { content: "✓"; background: var(--c-blue); }
.entry-steps li.is-done::after, .entry-steps li.is-active::after { background: var(--c-blue); }

/* ステップセクション */
.step-section { display: none; }
.step-section.is-active { display: block; animation: step-in 0.35s ease; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.step-section h2 {
  text-align: center; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--c-navy-deep); margin: 8px 0 16px; line-height: 1.7; letter-spacing: 0.05em;
}
.entry-box {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); padding: 28px 28px 32px;
}

/* STEP1 就業状況ラジオ */
.status-radios { display: grid; gap: 12px; }
.status-radios label {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--c-line); border-radius: 10px; padding: 16px 18px;
  font-size: 15px; font-weight: 700; color: var(--c-navy); cursor: pointer;
  transition: border-color 0.15s, background 0.15s; position: relative;
}
.status-radios label::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid #b9c8d6; border-right: 2px solid #b9c8d6; transform: translateY(-50%) rotate(45deg);
}
.status-radios label:hover { border-color: var(--c-blue); }
.status-radios label:has(input:checked) { border-color: var(--c-blue); background: var(--c-sky); }
.status-radios input { accent-color: var(--c-blue); width: 18px; height: 18px; }
.status-radios .s-font { font-size: 12px; color: #5a6b7d; font-weight: 500; }

/* 入力共通 */
.form-group { margin-bottom: 20px; }
.form-group > label, .form-group > .group-label {
  display: block; font-weight: 700; font-size: 14px; color: var(--c-navy); margin-bottom: 8px;
}
.form-group .req {
  background: var(--c-orange2); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 4px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px;
}
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"], .form-group select {
  width: 100%; border: 1.5px solid var(--c-line); border-radius: 8px; padding: 12px 14px; font-size: 16px;
  font-family: inherit; background: #fbfdff; color: var(--c-ink);
}
.form-group input:focus, .form-group select:focus { outline: 2px solid var(--c-blue); border-color: var(--c-blue); }
.form-group input.is-error, .form-group select.is-error { border-color: #e5484d; background: #fff2f3; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.name-grid .sub-label { font-size: 12px; font-weight: 700; color: #5a6b7d; margin-bottom: 4px; display: block; }
.birthday-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.error-msg { color: #e5484d; font-size: 12px; font-weight: 700; margin-top: 8px; display: none; }
.error-msg.is-show { display: block; }

/* 次へ / 戻る */
.entry-next { margin-top: 26px; }
.entry-next button, .entry-submit {
  width: 100%; background: var(--grad-orange); color: #fff; font-size: 17px; font-weight: 700;
  border-radius: 99px; padding: 17px; box-shadow: 0 5px 0 #c95708; transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.entry-next button::after, .entry-submit::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translateY(-50%) rotate(45deg);
}
.entry-next button:hover, .entry-submit:hover { transform: translateY(2px); box-shadow: 0 3px 0 #c95708; }
.entry-prev {
  display: block; width: fit-content; margin: 18px auto 0; font-size: 13px; color: #6a7a8a; cursor: pointer;
}
.entry-prev:hover { color: var(--c-blue); text-decoration: underline; }

/* STEP3 同意まわり */
.terms-agreement { text-align: center; font-size: 13px; color: #44586e; margin: 22px 0 12px; }
.terms-agreement a { color: var(--c-blue); text-decoration: underline; cursor: pointer; }
.submit-baloon {
  display: block; width: fit-content; margin: 0 auto 10px; position: relative;
  background: var(--c-navy); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 5px 18px;
}
.submit-baloon::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--c-navy); border-bottom: 0;
}
.submit-baloon .hl { color: #ffd27a; }
.entry-note { text-align: center; font-size: 11px; color: #8a99a8; margin-top: 14px; line-height: 1.7; }

/* サンクス */
.entry-thanks { text-align: center; display: none; }
.entry-thanks.is-active { display: block; }
.entry-thanks .check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-blue);
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.entry-thanks h2 { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: var(--c-navy-deep); margin-bottom: 10px; letter-spacing: 0.05em; }
.entry-thanks p { font-size: 14px; color: #44586e; }
.entry-thanks .em { color: var(--c-orange2); font-weight: 700; }
.entry-back { display: block; width: fit-content; margin: 22px auto 0; font-size: 13px; color: var(--c-blue); }
.entry-back:hover { text-decoration: underline; }

/* ==========================================================
   規約モーダル
========================================================== */
.tm-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(16, 43, 71, 0.6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.tm-overlay.is-open { display: flex; }
.tm-content {
  background: #fff; border-radius: 14px; width: min(720px, 100%); max-height: 84vh;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.tm-close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-sky); color: var(--c-navy); font-size: 18px; font-weight: 700; line-height: 1; z-index: 1;
}
.tm-tabs { display: flex; border-bottom: 2px solid var(--c-blue); padding: 16px 20px 0; gap: 6px; }
.tm-tab {
  padding: 10px 20px; font-size: 13.5px; font-weight: 700; color: #5a6b7d;
  background: #eef3f8; border-radius: 8px 8px 0 0;
}
.tm-tab.is-active { background: var(--c-blue); color: #fff; }
.tm-scroll { overflow-y: auto; padding: 22px 26px 30px; }
.tm-body { display: none; font-size: 13px; color: #44586e; line-height: 1.9; }
.tm-body.is-active { display: block; }
.tm-body h3 { font-size: 16px; color: var(--c-navy); margin-bottom: 12px; }
.tm-body h4 { font-size: 13.5px; color: var(--c-navy); margin: 18px 0 6px; }
.tm-body ul { padding-left: 1.4em; }
.tm-body li { list-style: disc; margin-bottom: 4px; }

/* ==========================================================
   離脱確認ポップアップ
========================================================== */
.leave-overlay {
  position: fixed; inset: 0; z-index: 210; background: rgba(16, 43, 71, 0.6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.leave-overlay.is-open { display: flex; }
.leave-box {
  background: #fff; border-radius: 14px; padding: 32px 28px 28px; width: min(420px, 100%); text-align: center;
}
.leave-box p { font-size: 14px; font-weight: 700; color: var(--c-navy); line-height: 1.8; margin-bottom: 22px; }
.leave-box button { display: block; width: 100%; border-radius: 99px; font-weight: 700; padding: 14px; font-size: 15px; }
.leave-stay { background: var(--grad-orange); color: #fff; margin-bottom: 12px; box-shadow: 0 4px 0 #c95708; }
.leave-go { background: #eef3f8; color: #6a7a8a; }

/* ==========================================================
   送信中オーバーレイ
========================================================== */
.saving-overlay {
  position: fixed; inset: 0; z-index: 220; background: rgba(16, 43, 71, 0.7);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.saving-overlay.is-open { display: flex; }
.saving-overlay p { color: #fff; font-weight: 700; text-align: center; line-height: 2; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   フッター
========================================================== */
.entry-footer { background: #102b47; color: #cfdcea; padding: 28px 20px 20px; text-align: center; }
.entry-footer .logo-badge { display: inline-block; background: #fff; border-radius: 6px; padding: 7px 12px; }
.entry-footer .logo-badge img { height: 22px; width: auto; }
.entry-footer p { font-size: 11px; margin-top: 12px; color: #8ba2ba; }
.entry-footer small { display: block; font-size: 10px; margin-top: 14px; color: #8ba2ba; }

@media (max-width: 640px) {
  .entry-main { padding: 24px 12px 56px; }
  .entry-box { padding: 22px 16px 26px; border-radius: 12px; }
  .entry-wrap h1 { font-size: 20px; }
  .step-section h2 { font-size: 16px; }
  .entry-steps li { font-size: 10.5px; }
  .birthday-grid { gap: 6px; }
  .form-group select { padding: 12px 8px; }
  .tm-scroll { padding: 18px 16px 24px; }
  .tm-tab { padding: 9px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .step-section.is-active { animation: none; }
  .spinner { animation-duration: 1.6s; }
}
