/* ==========================================================================
   合同説明会参加者限定 特別選考エントリー（/recruit/student/special/） — prefix: rsp-
   会場のQRからスマホで開く前提。SP を基準に組み、PC は 640px の1カラム。
   ブランド規定: 面と骨格は白黒。赤 #CF1B1B は「書類選考・一次面接を免除」の一点だけ。淡い色の面は使わない。
   ========================================================================== */
.rsp { --rsp-ink: #171719; --rsp-text: #23232C; --rsp-sub: #5F5F69; --rsp-line: #C9C9CE; --rsp-red: #CF1B1B; --rsp-err: #B01818; background: #FFFFFF; color: var(--rsp-text); }
.rsp .rs-container { max-width: 688px; }
.rsp-en { font-family: var(--rc-en); font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; color: var(--rsp-ink); }

/* First view */
.rsp-fv { padding: 36px 0 32px; border-bottom: 1px solid var(--rsp-ink); }
.rsp-fv__label { margin-top: 18px; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--rsp-ink); }
.rsp-fv__ttl { margin-top: 6px; font-size: 34px; font-weight: 900; line-height: 1.3; letter-spacing: .02em; color: var(--rsp-ink); }
.rsp-fv__lead { margin-top: 22px; font-size: 17px; font-weight: 700; line-height: 1.75; color: var(--rsp-ink); }
.rsp-fv__key { color: var(--rsp-red); font-weight: 900; }
.rsp-fv__txt { margin-top: 12px; font-size: 15px; line-height: 1.8; }
.rsp-fv__time { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--rsp-ink); }
.rsp-fv__time span { padding: 4px 10px; background: var(--rsp-ink); color: #FFFFFF; font-size: 13px; line-height: 1.5; }

/* Form */
.rsp-body { padding: 8px 0 64px; }
.rsp-form .rf-error--block { margin: 24px 0 0; background: #FFFFFF; border: 2px solid var(--rsp-err); color: var(--rsp-err); }
/* legend の上余白はブラウザで効かないため、間隔は fieldset 側で取る */
.rsp-group { margin: 40px 0 0; padding: 0; border: 0; min-width: 0; }
.rsp-group__ttl { display: flex; align-items: baseline; gap: 12px; width: 100%; margin: 0; padding: 0 0 10px; border-bottom: 2px solid var(--rsp-ink); font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--rsp-ink); }
.rsp-group__ttl span { font-family: var(--rc-en); font-size: 15px; font-weight: 700; }
.rsp-field { margin-top: 24px; }
.rsp-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--rsp-ink); }
.rsp-label small { flex: none; font-size: 12px; font-weight: 700; color: var(--rsp-ink); }
.rsp-label small.is-opt { color: var(--rsp-sub); }
.rsp-hint { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--rsp-sub); }
.rsp-hint--center { text-align: center; margin-top: 12px; }
.rsp-field input[type=text], .rsp-field input[type=email], .rsp-field input[type=tel] { display: block; width: 100%; height: 54px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--rsp-line); border-radius: 0; background: #FFFFFF; font-family: inherit; font-size: 16px; color: var(--rsp-ink); -webkit-appearance: none; appearance: none; }
.rsp-field input::placeholder { color: #8B8B93; }
.rsp-field input:focus { outline: none; border-color: var(--rsp-ink); box-shadow: 0 0 0 1px var(--rsp-ink); }
.rsp-field.is-error input[type=text], .rsp-field.is-error input[type=email], .rsp-field.is-error input[type=tel] { border-color: var(--rsp-err); }

/* Graduation year: 4 tiles, 2 x 2 on phones */
.rsp-years { margin-top: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rsp-year { position: relative; cursor: pointer; }
.rsp-year input, .rsp-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rsp-year span { display: flex; align-items: center; justify-content: center; height: 50px; border: 1px solid var(--rsp-line); font-size: 16px; font-weight: 700; color: var(--rsp-ink); }
.rsp-year input:checked + span { background: var(--rsp-ink); border-color: var(--rsp-ink); color: #FFFFFF; }
.rsp-year input:focus-visible + span { outline: 2px solid var(--rsp-ink); outline-offset: 2px; }
.rsp-field.is-error .rsp-year span, .rsp-field.is-error .rsp-choice { border-color: var(--rsp-err); }

/* Radio / checkbox rows */
.rsp-choices { margin-top: 10px; display: grid; gap: 8px; }
.rsp-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rsp-line); font-size: 15px; line-height: 1.55; color: var(--rsp-ink); cursor: pointer; }
.rsp-choice:has(input:checked) { border-color: var(--rsp-ink); box-shadow: inset 0 0 0 1px var(--rsp-ink); font-weight: 700; }
.rsp-choice__mark { flex: none; position: relative; width: 20px; height: 20px; border: 1.5px solid #8B8B93; background: #FFFFFF; }
.rsp-choice__mark--radio { border-radius: 50%; }
.rsp-choice input:checked + .rsp-choice__mark { border-color: var(--rsp-ink); background: var(--rsp-ink); }
.rsp-choice input:checked + .rsp-choice__mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rsp-choice input:checked + .rsp-choice__mark--radio { background: #FFFFFF; }
.rsp-choice input:checked + .rsp-choice__mark--radio::after { left: 3px; top: 3px; width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--rsp-ink); transform: none; }
.rsp-choice input:focus-visible + .rsp-choice__mark { outline: 2px solid var(--rsp-ink); outline-offset: 2px; }

/* Consent + submit */
.rsp-consent { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rsp-line); }
.rsp-choice--consent { border: 0; padding: 0; min-height: 0; box-shadow: none !important; font-weight: 400 !important; }
.rsp-choice--consent a { color: var(--rsp-ink); text-decoration: underline; text-underline-offset: 3px; }
.rsp-choice--consent small { margin-left: 8px; font-size: 12px; font-weight: 700; }
.rsp-consent.is-error .rsp-choice__mark { border-color: var(--rsp-err); }
.rsp-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 60px; margin-top: 24px; background: var(--rsp-ink); color: #FFFFFF; border: 0; border-radius: 0; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.5; cursor: pointer; transition: opacity .2s; }
.rsp-btn:hover { opacity: .85; }
.rsp-btn:focus-visible { outline: 2px solid var(--rsp-ink); outline-offset: 3px; }
.rsp-btn--line { margin-top: 36px; background: #FFFFFF; color: var(--rsp-ink); border: 1px solid var(--rsp-ink); height: 56px; font-size: 16px; text-decoration: none; }

/* Done */
.rsp-done { padding: 48px 0 72px; }
.rsp-done__ttl { margin-top: 20px; font-size: 26px; font-weight: 900; line-height: 1.5; color: var(--rsp-ink); }
.rsp-done__lead { margin-top: 22px; font-size: 15px; line-height: 1.8; }
.rsp-done__note { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--rsp-sub); }
.rsp-done__note a { color: var(--rsp-ink); }

@media screen and (min-width: 768px) {
	.rsp .rs-container { width: 100%; padding: 0 24px; }
	.rsp-fv { padding: 64px 0 48px; }
	.rsp-fv__ttl { font-size: 44px; }
	.rsp-fv__lead { font-size: 19px; }
	.rsp-years { grid-template-columns: repeat(4, 1fr); }
	.rsp-body { padding-bottom: 96px; }
	.rsp-btn { max-width: 400px; margin-left: auto; margin-right: auto; }
	.rsp-done { padding: 96px 0 120px; }
	.rsp-done__ttl { font-size: 32px; }
}
