@charset "UTF-8";

/* ==========================================================================
   エントリーフォーム（/recruit/<区分>/entry/）
   ヘッダー・ページ見出し・カード・フッターは ../recruit/style.css を共用する
   ========================================================================== */

/*
 * ヘッダー・フッターは中身も画面いっぱいに広げる（style.css の最大幅 1280px を解除。左右余白はデザイン値のまま）
 */
.header__inner,
.footer__top,
.footer__bottom {
    max-width: none;
}

/*
 * カード下〜フッターまでの余白
 * Figma ではページごとに値が異なる（中途: カード下端 2119 → フッター外枠 2119.56 ＋ 上余白 80 = 80.56px /
 * 新卒: カード下端 2116.01 → フッター外枠 2120.78 ＋ 80 = 84.77px）ため、ページ側で style="--entry-pb: …" を指定して合わせる
 */
.recruit-body--entry {
    padding-bottom: var(--entry-pb, 80.56px);
}

/* カード内のブロック間は 20px（項目群／個人情報／注記／送信ボタン） */
.entry-form {
    gap: 20px;
}

/* ==========================================================================
   項目
   ========================================================================== */
.entry-form__fields {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-bottom: 28px;
}

.entry-form__field {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* 項目名＋必須／任意バッジ */
.entry-form__label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--c-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.96px;
    line-height: 24px;
}

.entry-form__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--c-blue);
    color: var(--c-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.66px;
    line-height: 16px;
}

.entry-form__badge--optional {
    background: var(--c-disabled-bg);
    color: var(--c-gray);
}

/* 入力欄（テキスト／セレクト／テキストエリア） */
.entry-form__input,
.entry-form__select,
.entry-form__textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: var(--c-bg);
    /* 線は box-shadow で描く（表示スケールで border が丸められて高さがずれるため） */
    box-shadow: inset 0 0 0 1px var(--c-border);
    color: var(--c-navy);
    font-family: var(--ff-ja);
    font-size: 14px;
    letter-spacing: 0.56px;
    line-height: 20px;
    appearance: none;
    transition: box-shadow 0.3s;
}

.entry-form__input,
.entry-form__select {
    height: 52px;
    padding: 0 18px;
}

.entry-form__input::placeholder,
.entry-form__textarea::placeholder {
    color: var(--c-gray-light);
    opacity: 1;
}

.entry-form__input:focus,
.entry-form__select:focus,
.entry-form__textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1.5px var(--c-blue);
}

.entry-form__textarea {
    height: 140px;
    padding: 16px 18px;
    resize: none;
}

/* 生年月日 */
.entry-form__birth {
    display: flex;
    gap: 12px;
}

.entry-form__select {
    width: 140px;
    padding-right: 40px;
    background: var(--c-bg) url("../../_img/recruit/select_arrow.svg") no-repeat right 18px center / 22px 22px;
    letter-spacing: 0;
    cursor: pointer;
}

/* 未選択（年／月／日）のときはプレースホルダー色 */
.entry-form__select:has(option[value=""]:checked) {
    color: #9db3c8;
}

.entry-form__select option {
    color: var(--c-navy);
}

/* --------------------------------------------------------------------------
   独自プルダウン（script.js で生成）
   元の select は送信・必須チェック用にトリガーの下へ重ねて残し、見えなくする
   -------------------------------------------------------------------------- */
.entry-select {
    position: relative;
    width: 140px;
}

.entry-select.is-enhanced .entry-form__select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.entry-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 52px;
    padding: 0 40px 0 18px;
    border-radius: 10px;
    background: var(--c-bg);
    box-shadow: inset 0 0 0 1px var(--c-border);
    color: var(--c-navy);
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    white-space: nowrap;
    transition: box-shadow 0.3s;
}

.entry-select__trigger::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 18px;
    width: 22px;
    height: 22px;
    background: url("../../_img/recruit/select_arrow.svg") no-repeat center / 22px 22px;
    transition: transform 0.2s;
}

.entry-select__trigger.is-placeholder {
    color: #9db3c8;
}

.entry-select__trigger:focus {
    outline: none;
}

.entry-select__trigger:focus-visible,
.entry-select.is-open .entry-select__trigger {
    box-shadow: inset 0 0 0 1.5px var(--c-blue);
}

.entry-select.is-open .entry-select__trigger::after {
    transform: rotate(180deg);
}

/* 選択肢パネル（後続の項目より前面に出す） */
.entry-select__list {
    position: absolute;
    top: 58px;
    left: 0;
    z-index: 10;
    overflow-y: auto;
    width: 140px;
    max-height: 248px;
    padding: 6px;
    border-radius: 10px;
    background: var(--c-white);
    box-shadow: 0 0 0 1px var(--c-border), 0 16px 32px rgba(11, 99, 201, 0.16);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border) transparent;
}

.entry-select__list[hidden] {
    display: none;
}

.entry-select__list:focus {
    outline: none;
}

.entry-select__option {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--c-navy);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
}

/* マウスオーバー・キーボードで移動中の項目 */
.entry-select__option.is-active {
    background: var(--c-bg);
}

.entry-select__option[aria-selected="true"] {
    background: var(--c-pale);
    color: var(--c-blue);
    font-weight: 700;
}

/* 注記 */
.entry-form__note {
    color: var(--c-gray-light);
    font-size: 12px;
    letter-spacing: 0.48px;
    line-height: 22px;
}

/* ==========================================================================
   応募職種（ラジオ）
   ========================================================================== */
.entry-form__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    padding: 4px 0;
}

/*
 * 選択肢の行の高さは「中身の高さ＋上下 4px」。文字は行高 23px のため、募集停止中バッジ（24px）がない行は 31px、ある行は 32px になる（Figma どおり）
 */
.entry-form__radio {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-navy);
    font-size: 16px;
    letter-spacing: 0.64px;
    line-height: 23px;
    white-space: nowrap;
    cursor: pointer;
}

/*
 * 中の丸（直径10px）は疑似要素ではなく、背景色＋内側の白い box-shadow で描く。
 * 外枠と同じ要素の border-radius で描かれるため、表示スケール（125% / 150%）でも中心がずれず正円になる。
 * 枠内 18px − 白 4px × 2 = 10px
 */
.entry-form__radio-input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #9db3c8;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: inset 0 0 0 9px var(--c-white);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.2s;
}

.entry-form__radio-input:checked {
    border-color: var(--c-blue);
    background: var(--c-blue);
    box-shadow: inset 0 0 0 4px var(--c-white);
}

.entry-form__radio-input:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* 募集停止中 */
.entry-form__radio--disabled {
    color: var(--c-disabled);
    cursor: default;
}

.entry-form__radio--disabled .entry-form__radio-input {
    border-color: var(--c-border);
    background: var(--c-disabled-bg);
    box-shadow: none;
    cursor: default;
}

.entry-form__closed {
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--c-disabled-bg);
    color: var(--c-gray-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.44px;
    line-height: 16px;
}

/* ==========================================================================
   ファイル選択
   ========================================================================== */
.entry-form__file {
    position: relative;
    min-width: 0;
}

/* 未選択: ［ファイルを選択］選択されていません */
.entry-form__file-empty {
    display: flex;
    align-items: center;
    gap: 16px;
}

.entry-form__file-placeholder {
    color: var(--c-gray-light);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

/* 選択済み: ファイル名 変更 × */
.entry-form__file-selected {
    display: none;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    height: 52px;
    padding: 0 12px 0 18px;
    border-radius: 10px;
    background: var(--c-white);
    box-shadow: inset 0 0 0 1px var(--c-border), 0 4px 12px rgba(11, 99, 201, 0.08);
}

.entry-form__file.is-selected .entry-form__file-empty {
    display: none;
}

.entry-form__file.is-selected .entry-form__file-selected {
    display: flex;
}

.entry-form__file-name {
    overflow: hidden;
    flex: 1 0 0;
    min-width: 0;
    color: var(--c-navy);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-form__file-change {
    flex-shrink: 0;
    width: 30px;
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.84px;
    line-height: 20px;
    white-space: nowrap;
    /* ホバー: 文字色が #5184c2 に変わる（0.3s ease-out） */
    transition: color 0.3s ease-out;
}

.entry-form__file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--c-gray);
    font-size: 18px;
    line-height: 26px;
    /* ホバー: 文字色が #83a0c0 に変わる（0.3s ease-out） */
    transition: color 0.3s ease-out;
}

.entry-form__file-change:focus-visible,
.entry-form__file-remove:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* input は視覚的に隠し、label をボタンとして見せる（キーボード操作・必須チェックは input 側で行う） */
.entry-form__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.entry-form__file-btn {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 146px;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1.5px var(--c-blue);
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.12px;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    /* ホバー: 青地に白文字になる（採用情報の「募集要項を見る」と同じ） */
    transition: background 0.3s, color 0.3s;
}

.entry-form__file-input:focus-visible + .entry-form__file-empty .entry-form__file-btn {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* ==========================================================================
   個人情報の取り扱い
   ========================================================================== */
.entry-form__privacy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 162px;
    padding: 32px 40px;
    border-radius: 20px;
    background: var(--c-bg);
    text-align: center;
}

.entry-form__privacy-title {
    color: var(--c-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.28px;
    line-height: 23px;
}

.entry-form__privacy-text {
    color: var(--c-gray);
    font-size: 14px;
    letter-spacing: 0.56px;
    line-height: 26px;
}

.entry-form__privacy-link {
    color: var(--c-blue);
    text-decoration: underline;
    /* ホバー: 文字色が #5184c2 に変わる（0.3s ease-out） */
    transition: color 0.3s ease-out;
}

.entry-form__agree {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 24px;
    color: var(--c-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.96px;
    line-height: 23px;
    cursor: pointer;
}

.entry-form__checkbox {
    display: grid;
    place-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #9db3c8;
    border-radius: 5px;
    background: var(--c-white);
    appearance: none;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.entry-form__checkbox::before {
    content: "✓";
    color: var(--c-white);
    font-family: var(--ff-arrow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.96px;
    line-height: 14px;
    text-indent: 0.96px;
    opacity: 0;
}

.entry-form__checkbox:checked {
    border-color: var(--c-blue);
    background: var(--c-blue);
}

.entry-form__checkbox:checked::before {
    opacity: 1;
}

.entry-form__checkbox:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* ==========================================================================
   注記・送信ボタン
   ========================================================================== */
/* Figma の枠の高さがページごとに異なる（中途 18px / 新卒 17px）ため、ページ側で style="--entry-browser-lh: …" を指定して合わせる */
.entry-form__browser {
    color: var(--c-gray-light);
    font-size: 12px;
    letter-spacing: 0.48px;
    line-height: var(--entry-browser-lh, 18px);
    text-align: center;
}

.entry-form__actions {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.entry-form__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 56px;
    border-radius: 10px;
    background: var(--c-blue);
    filter: drop-shadow(0 8px 9px rgba(11, 99, 201, 0.22));
    color: var(--c-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 20px;
    white-space: nowrap;
    /* ホバー: 背景が #5184c2 に変わる（トップの青ボタンと同じ。0.3s ease-out） */
    transition: background-color 0.3s ease-out;
}

/*
 * ホバー（PC・タブレットのマウス操作時のみ）
 * 募集停止中のフォーム（.entry-form--closed / disabled）はホバーで変化させない
 */
@media (hover: hover) and (width >= 768px) {
    .entry-form:not(.entry-form--closed) .entry-form__file-btn:hover {
        background: var(--c-blue);
        color: var(--c-white);
    }

    a.entry-form__privacy-link:hover,
    .entry-form__file-change:not(:disabled):hover {
        color: #5184c2;
    }

    .entry-form__file-remove:not(:disabled):hover {
        color: #83a0c0;
    }

    .entry-form__submit:not(:disabled):hover {
        background: #5184c2;
    }
}

.entry-form__submit-arrow {
    position: absolute;
    top: 18px;
    right: 23.41px;
    font-family: var(--ff-arrow);
    line-height: 18px;
}

/* ==========================================================================
   バリデーション（script.js で項目に .is-invalid を付け、.entry-form__error に文言を入れる）
   ========================================================================== */
/*
 * エラー文言は入力欄の下 12px、注記の上 12px（Figma 938:2482）。
 * 項目内の間隔は 14px なので、上下を -2px ずつ詰める
 */
.entry-form__error {
    margin-top: -2px;
    color: #d03a3a;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.56px;
    line-height: 20px;
}

.entry-form__error[hidden] {
    display: none;
}

.entry-form__error:not([hidden]) + .entry-form__note {
    margin-top: -2px;
}

/* 個人情報の取り扱い内は、同意チェックの下 12px（Figma 1119:108） */
.entry-form__privacy .entry-form__error {
    margin-top: 0;
}

/* 枠を赤くする（入力欄・テキストエリア・未選択の生年月日・添付済みファイル枠） */
.entry-form__field.is-invalid .entry-form__input,
.entry-form__field.is-invalid .entry-form__textarea,
.entry-select.is-invalid .entry-select__trigger,
.entry-form__field.is-invalid .entry-form__file-selected {
    box-shadow: inset 0 0 0 1.5px #d03a3a;
}

.entry-form__field.is-invalid .entry-form__file-selected {
    box-shadow: inset 0 0 0 1.5px #d03a3a, 0 4px 12px rgba(11, 99, 201, 0.08);
}

/* ==========================================================================
   募集停止中（フォームに .entry-form--closed。PHP の $is_accepting = false で切り替え）
   ========================================================================== */
/* 見出し横の「募集停止中」バッジ */
.page-head__status {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-white);
    box-shadow: inset 0 0 0 1px #cfd8e2;
    color: var(--c-gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.96px;
    line-height: 17px;
    white-space: nowrap;
}

/* カード上部のお知らせ */
.entry-form__notice {
    padding: 17px 24px 18.19px;
    border-radius: 12px;
    background: var(--c-bg);
    color: var(--c-gray);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.56px;
    line-height: 26px;
}

/* 項目群・個人情報は薄く表示する（項目群はお知らせとの間を 20px ＋ 上余白 20px 空ける） */
.entry-form--closed .entry-form__fields {
    padding-top: 20px;
    opacity: 0.4;
}

.entry-form--closed .entry-form__privacy {
    opacity: 0.4;
}

.entry-form--closed .entry-form__radio,
.entry-form--closed .entry-form__radio-input,
.entry-form--closed .entry-form__agree,
.entry-form--closed .entry-form__checkbox,
.entry-form--closed .entry-form__file-btn,
.entry-form--closed .entry-form__select,
.entry-form--closed .entry-select__trigger {
    cursor: default;
}

/* 送信ボタン */
.entry-form--closed .entry-form__submit {
    background: #e3eaf0;
    filter: none;
    color: var(--c-gray-light);
    cursor: default;
}

/* ==========================================================================
   確認画面（/recruit/<区分>/entry/confirm/。Figma 938:2883）
   ヘッダーはロゴのみ、フッターは簡易版。カードは style.css の .recruit-body__card を共用する
   ========================================================================== */
/* 本文エリアは画面の高さに合わせて伸ばす（style.css の body > main）。背景の装飾ははみ出させない */
.entry-confirm {
    position: relative;
    overflow: hidden;
}

/* 背景の装飾（1280px のフレーム内の位置を保つ） */
.entry-confirm__circle {
    position: absolute;
    top: -110px;
    right: calc(var(--frame-offset) - 60px);
    width: 270px;
    height: 270px;
    border: 1px solid var(--c-cyan);
    border-radius: 50%;
}

.entry-confirm__stripe {
    position: absolute;
    top: 40px;
    left: calc(var(--frame-offset) + 60px);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 6px, rgba(247, 226, 122, 0) 6px 12px);
}

/* カードの上 56px・下 80px */
.entry-confirm__body {
    padding-top: 56px;
    padding-bottom: 80px;
}

.entry-confirm__card {
    align-items: center;
    gap: 0;
    margin-top: 0;
    padding-bottom: 64px;
}

.entry-confirm__title {
    color: var(--c-navy);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 44px;
    text-align: center;
}

.entry-confirm__alert {
    margin-top: 14px;
    color: #d03a3a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.84px;
    line-height: 20px;
    text-align: center;
}

.entry-confirm__lead {
    margin-top: 12px;
    color: var(--c-gray);
    font-size: 16px;
    letter-spacing: 0.64px;
    line-height: 24px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   入力内容の一覧
   線は box-shadow で描く（表示スケールで border が丸められて高さがずれるため）。
   Figma の線は枠の内側なので、上の線（紺）は1行目に、各行の下線は行の高さに含める
   -------------------------------------------------------------------------- */
.entry-confirm__list {
    width: 100%;
    margin: 48px 0 0;
    box-shadow: inset 0 1px 0 var(--c-navy);
}

.entry-confirm__row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 26px 0;
    box-shadow: inset 0 -1px 0 var(--c-border);
}

.entry-confirm__label {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    width: 240px;
    color: var(--c-navy);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.28px;
    line-height: 23px;
}

.entry-confirm__label::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--c-blue);
}

/*
 * 値は行高 30.4px。Figma の枠は「行高×行数」を切り上げる（1行 30.4 → 32 / 2行 60.8 → 62）ため、
 * 下余白 1.2px ＋ 最小高さ 32px で合わせる
 */
.entry-confirm__value {
    flex: 1 0 0;
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding-bottom: 1.2px;
    color: var(--c-navy);
    font-size: 16px;
    letter-spacing: 0.64px;
    line-height: 30.4px;
    overflow-wrap: anywhere;
}

/* 履歴書: アイコン＋ファイル名（高さ 24px） */
.entry-confirm__value--file {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding-bottom: 0;
    line-height: 24px;
}

.entry-confirm__file-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.entry-confirm__file-name {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   ボタン（「エントリーする」は入力画面の .entry-form__submit を共用）
   -------------------------------------------------------------------------- */
.entry-confirm__actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
}

.entry-confirm__back {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 56px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1.5px var(--c-blue);
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 20px;
    white-space: nowrap;
    /* ホバー: 文字・枠線の色が #5184c2 に変わる（確認画面のボタンはホバーで #5184c2 に統一。0.3s ease-out） */
    transition: color 0.3s ease-out, box-shadow 0.3s ease-out;
}

@media (hover: hover) and (width >= 768px) {
    .entry-confirm__back:hover {
        box-shadow: inset 0 0 0 1.5px #5184c2;
        color: #5184c2;
    }
}

.entry-confirm__back-arrow {
    position: absolute;
    top: 18px;
    left: 22px;
    font-family: var(--ff-arrow);
    line-height: 17px;
}

/* ==========================================================================
   簡易フッター（確認画面。Figma 938:2998）
   ========================================================================== */
.entry-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 60px 30px;
}

/* ハラスメントに関する基本方針・プライバシーポリシー（横並び、間 36px） */
.entry-footer__links {
    display: flex;
    gap: 36px;
}

.entry-footer__link {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 20px;
    white-space: nowrap;
    /* ホバー: 文字色が薄くなる（通常フッターのリンクと同じ。0.2s ease-out） */
    transition: color 0.2s ease-out;
}

@media (hover: hover) and (width >= 768px) {
    .entry-footer__link:hover {
        color: #83a0c0;
    }
}

.entry-footer__copy {
    font-size: 12px;
    letter-spacing: 0.72px;
    line-height: 18px;
}

/* ==========================================================================
   完了画面（/recruit/entry/thanks/。新卒・中途共通。Figma 938:3007）
   ヘッダー・背景の装飾・カード・簡易フッターは確認画面（.entry-confirm / .entry-footer）と共用。
   「トップページへ戻る」は入力画面の .entry-form__submit を共用
   ========================================================================== */
.entry-thanks__en {
    color: var(--c-blue);
    font-family: var(--ff-en);
    font-size: 12px;
    font-weight: 700;
    font-variation-settings: "opsz" 14;
    letter-spacing: 2.4px;
    line-height: 14px;
    text-align: center;
}

.entry-thanks__title {
    margin-top: 14px;
}

/* 行高 30.4px × 2行 = 60.8px → Figma の枠 62px に合わせて下余白 1.2px */
.entry-thanks__text {
    margin-top: 24px;
    padding-bottom: 1.2px;
    color: var(--c-navy);
    font-size: 16px;
    letter-spacing: 0.64px;
    line-height: 30.4px;
    text-align: center;
}

/* 行高 25.2px × 2行 = 50.4px ＋ 上下 16px → Figma の枠 84px に合わせて下余白を 17.6px */
.entry-thanks__note {
    margin-top: 20px;
    padding: 16px 28px 17.6px;
    border-radius: 12px;
    background: var(--c-bg);
    color: var(--c-gray);
    font-size: 14px;
    letter-spacing: 0.56px;
    line-height: 25.2px;
    text-align: center;
}

.entry-thanks__top {
    margin-top: 40px;
}

/* ==========================================================================
   送信失敗画面（/recruit/entry/failed/。新卒・中途共通。Figma 938:3806）
   完了画面（.entry-thanks__*）・確認画面のボタン（.entry-confirm__actions / __back）と共用
   ========================================================================== */
.entry-thanks__en--error {
    color: #d03a3a;
}

/* ボタンの上は 40px（確認画面は 48px） */
.entry-thanks__actions {
    margin-top: 40px;
}

/* ==========================================================================
   SP（入力画面。Figma 953:1420 / バリデーション表示 953:1634）
   ========================================================================== */
@media (width < 768px) {
    /* カード下〜フッターまで 55px（他ページと統一） */
    .recruit-body--entry {
        padding-bottom: 55px;
    }

    /* カード: 上32 左右16 下48、ブロック間 16px */
    .entry-form {
        gap: 16px;
        padding: 32px 16px 48px;
    }

    /* ---------- 項目 ---------- */
    .entry-form__fields {
        gap: 28px;
        padding-bottom: 24px;
    }

    .entry-form__field {
        gap: 10px;
    }

    .entry-form__label {
        gap: 8px;
        font-size: 14px;
        letter-spacing: 0.56px;
        line-height: 20px;
    }

    .entry-form__badge {
        width: 38px;
        height: 18px;
        font-size: 10px;
        letter-spacing: 0.6px;
        line-height: 14px;
    }

    .entry-form__input,
    .entry-form__select {
        height: 48px;
        padding: 0 16px;
    }

    .entry-form__input,
    .entry-form__textarea {
        letter-spacing: 0.28px;
    }

    .entry-form__textarea {
        padding: 12px 16px;
        line-height: 23.8px;
    }

    /* 生年月日: 年120・月92・日92 の比率で幅いっぱい（Figma の「日」は 302px ではみ出しているため月と同じ幅にする） */
    .entry-form__birth {
        display: grid;
        grid-template-columns: minmax(0, 120fr) minmax(0, 92fr) minmax(0, 92fr);
        gap: 8px;
    }

    .entry-select,
    .entry-form__select {
        width: auto;
        min-width: 0;
    }

    .entry-form__select {
        padding: 0 32px 0 12px;
        background-position: right 12px center;
        background-size: 20px 20px;
    }

    .entry-select__trigger {
        height: 48px;
        padding: 0 32px 0 12px;
    }

    .entry-select__trigger::after {
        top: 14px;
        right: 12px;
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }

    .entry-select__list {
        top: 54px;
        width: calc(100% + 2px);
        min-width: 100%;
        max-height: 240px;
    }

    .entry-select__option {
        padding: 0 10px;
    }

    /*
     * 注記: 行高 18.7px。Figma の枠は行高×行数を切り上げた高さ（1行 20 / 2行 38 / 3行 58）のため、
     * 注記ごとに style="--entry-note-pb-sp: …" で下余白を足して合わせる
     */
    .entry-form__note {
        padding-bottom: var(--entry-note-pb-sp, 0);
        font-size: 11px;
        letter-spacing: 0.22px;
        line-height: 18.7px;
    }

    /* ---------- 応募職種（縦並び） ---------- */
    .entry-form__radios {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 2px 0;
    }

    .entry-form__radio {
        font-size: 14px;
        letter-spacing: 0.28px;
        line-height: 20px;
    }

    .entry-form__closed {
        height: 18px;
        padding: 0 8px;
        font-size: 10px;
        letter-spacing: 0.28px;
        line-height: 14px;
    }

    /* ---------- ファイル選択 ---------- */
    .entry-form__file-empty {
        gap: 12px;
    }

    .entry-form__file-btn {
        width: auto;
        padding: 0 16px;
        letter-spacing: 0.84px;
    }

    .entry-form__file-placeholder {
        font-size: 12px;
        line-height: 18px;
    }

    .entry-form__file-selected {
        gap: 10px;
        max-width: none;
        height: 48px;
        padding: 0 8px 0 14px;
    }

    .entry-form__file-change {
        width: auto;
        font-size: 12px;
        letter-spacing: 0;
        line-height: 18px;
    }

    .entry-form__file-remove {
        width: 28px;
        height: 28px;
    }

    /* ---------- 個人情報の取り扱い ---------- */
    /* 見出し →12→ 本文 →8→ 本文 →12→ 同意 →8→ エラー */
    .entry-form__privacy {
        gap: 8px;
        min-height: 0;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .entry-form__privacy-title {
        margin-bottom: 4px;
        font-size: 14px;
        letter-spacing: 0.84px;
        line-height: 20px;
    }

    /* 行高 20.4px。Figma の枠（2行 41 / 1行 21）に合わせて下余白を足す */
    .entry-form__privacy-text {
        padding-bottom: 0.2px;
        font-size: 12px;
        letter-spacing: 0.24px;
        line-height: 20.4px;
    }

    .entry-form__privacy-text + .entry-form__privacy-text {
        padding-bottom: 0.6px;
    }

    /* 文言は1行のまま、幅が狭い端末では文字を小さくする（チェック20＋間8＋17文字） */
    .entry-form__agree {
        gap: 8px;
        height: 20px;
        margin-top: 4px;
        font-size: min(14px, calc((100vw - 116px) / 17 - 0.56px));
        letter-spacing: 0.56px;
        line-height: 20px;
        white-space: nowrap;
    }

    /* ---------- 注記・送信ボタン ---------- */
    /* 2行 37.4px → Figma の枠 38px ＋ 下余白 8px */
    .entry-form__browser {
        padding-bottom: 8.6px;
        font-size: 11px;
        letter-spacing: 0.22px;
        line-height: 18.7px;
        text-align: left;
    }

    .entry-form__actions {
        padding-top: 0;
    }

    .entry-form__submit {
        width: 100%;
    }

    .entry-form__submit-arrow {
        right: 21.41px;
    }

    /* ---------- バリデーション ---------- */
    /* エラー文言は入力欄の下 8px・注記の上 8px（項目内の間隔 10px から -2px ずつ詰める）。行高 20.4px（1行は Figma の枠 21px） */
    .entry-form__error {
        padding-bottom: 0.6px;
        font-size: 12px;
        letter-spacing: 0;
        line-height: 20.4px;
    }

    /* エラーの後の注記は Figma で項目の枠からはみ出しているため、項目の高さ（提出書類 192px）に合わせて下余白を変える */
    .entry-form__error:not([hidden]) + .entry-form__note {
        padding-bottom: var(--entry-note-pb-sp-error, var(--entry-note-pb-sp, 0));
    }
}

/* ==========================================================================
   SP（確認画面。Figma 953:2095）
   ========================================================================== */
@media (width < 768px) {
    .entry-confirm__circle {
        top: -90px;
        right: -70px;
        width: 180px;
        height: 180px;
    }

    .entry-confirm__stripe {
        display: none;
    }

    /* カードの上 32px・下 56px */
    .entry-confirm__body {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .entry-confirm__card {
        padding: 40px 16px;
    }

    .entry-confirm__title {
        font-size: 22px;
        letter-spacing: 1.76px;
        line-height: 32px;
    }

    .entry-confirm__alert {
        margin-top: 12px;
        font-size: 12px;
        letter-spacing: 0.48px;
        line-height: 18px;
    }

    /* 左揃え。行高 25.2px × 2行 = 50.4px → Figma の枠 52px に合わせて下余白 1.6px */
    .entry-confirm__lead {
        width: 100%;
        margin-top: 8px;
        padding-bottom: 1.6px;
        font-size: 14px;
        letter-spacing: 0.28px;
        line-height: 25.2px;
        text-align: left;
    }

    /* ---------- 入力内容の一覧（項目名の下に値） ---------- */
    .entry-confirm__list {
        margin-top: 24px;
    }

    .entry-confirm__row {
        flex-direction: column;
        gap: 4px;
        padding: 16px 0;
    }

    /* 添付ファイル・備考は項目名との間が 6px */
    .entry-confirm__row:has(.entry-confirm__value--file, .entry-confirm__value--multiline) {
        gap: 6px;
    }

    .entry-confirm__label {
        align-items: center;
        gap: 8px;
        width: auto;
        color: var(--c-gray);
        font-size: 12px;
        letter-spacing: 0.72px;
        line-height: 18px;
    }

    .entry-confirm__label::before {
        width: 6px;
        height: 6px;
        margin-top: 0;
    }

    /* 値は行高 25.2px。Figma の枠（1行 26 / 4行 102）に合わせて下余白を足す */
    .entry-confirm__value {
        flex: none;
        width: 100%;
        min-height: 0;
        padding-bottom: 0.8px;
        font-size: 14px;
        letter-spacing: 0.28px;
        line-height: 25.2px;
    }

    .entry-confirm__value--multiline {
        padding-bottom: 1.2px;
    }

    .entry-confirm__value--file {
        gap: 8px;
        padding-bottom: 0;
        letter-spacing: 0;
        line-height: 20px;
    }

    .entry-confirm__file-icon {
        width: 16px;
        height: 16px;
    }

    /* ---------- ボタン（「エントリーする」を上、「修正する」を下に縦並び） ---------- */
    .entry-confirm__actions {
        flex-direction: column-reverse;
        gap: 12px;
        width: 100%;
        margin-top: 8px;
    }

    .entry-confirm__back,
    .entry-confirm__form .entry-form__submit {
        width: 100%;
    }

    .entry-confirm__back-arrow {
        left: 20px;
    }

    .entry-confirm__form .entry-form__submit-arrow {
        right: 21.41px;
    }

    /* ---------- 簡易フッター（リンクは縦並び） ---------- */
    .entry-footer {
        gap: 8px;
        padding: 24px 20px 28px;
    }

    .entry-footer__links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .entry-footer__link {
        font-size: 12px;
        letter-spacing: 0.72px;
        line-height: 18px;
    }

    .entry-footer__copy {
        font-size: 11px;
        letter-spacing: 0.44px;
        line-height: 16px;
    }
}

/* ==========================================================================
   SP（完了画面。Figma 953:2328）
   背景の装飾・カード・見出し・簡易フッターは確認画面の SP と共用
   ========================================================================== */
@media (width < 768px) {
    /* Figma は中身の枠が 348px 固定（中身の合計 347px）のため、カードの下余白を 1px 足す */
    .entry-confirm__card:has(.entry-thanks__en) {
        padding-bottom: 41px;
    }

    .entry-thanks__en {
        font-size: 11px;
        letter-spacing: 2.2px;
        line-height: 13px;
    }

    .entry-thanks__title {
        margin-top: 10px;
    }

    /* 左揃え。行高 26.6px × 3行 = 79.8px → Figma の枠 80px に合わせて下余白 0.2px */
    .entry-thanks__text {
        width: 100%;
        margin-top: 20px;
        padding-bottom: 0.2px;
        font-size: 14px;
        letter-spacing: 0.28px;
        line-height: 26.6px;
        text-align: left;
    }

    /*
     * 行高 20.4px × 3行 = 61.2px → Figma の枠 62px（＋上12・下14）に合わせて下余白を 14.8px。
     * 右余白は Figma 22px だと1行目（23文字 281.5px）がブラウザの丸めで折り返すため 21px
     */
    .entry-thanks__note {
        width: 100%;
        margin-top: 16px;
        padding: 12px 21px 14.8px 16px;
        border-radius: 10px;
        font-size: 12px;
        letter-spacing: 0.24px;
        line-height: 20.4px;
        text-align: left;
    }

    .entry-thanks__top {
        margin-top: 32px;
    }

    /* ---------- 送信失敗画面（Figma 953:3054） ---------- */
    /* 本文は2行（53.2px → Figma の枠 54px） */
    .entry-thanks__text:has(+ .entry-thanks__actions) {
        padding-bottom: 0.8px;
    }

    /* ボタンは「トップページへ戻る」を上、「入力画面に戻る」を下（確認画面と同じ縦並び）。上は 32px */
    .entry-thanks__actions {
        margin-top: 32px;
    }
}

/* ==========================================================================
   SP（入力画面・募集停止中。Figma 1081:1522）
   ========================================================================== */
@media (width < 768px) {
    /* 「募集停止中」バッジは見出しの下の行（上 10px）に置く。::after を幅いっぱいの改行として使う */
    .page-head__title:has(.page-head__status) {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .page-head__title:has(.page-head__status)::after {
        content: "";
        flex-basis: 100%;
        order: 1;
    }

    .page-head__status {
        order: 2;
        margin-top: 10px;
        padding: 4px 10px;
        font-size: 11px;
        letter-spacing: 0.66px;
        line-height: 16px;
    }

    /*
     * お知らせ: 行高 21.6px × 2行 = 43.2px。
     * Figma は上 13.3px・文字の枠 44px・下 13.89px（計 71.19px）のため、下余白を 13.89 + 0.8 = 14.69px にする
     */
    .entry-form__notice {
        padding: 13.3px 16px 14.69px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.24px;
        line-height: 21.6px;
    }

    /* お知らせ〜最初の項目は 28px（カード内の間隔 16px ＋ 上余白 12px） */
    .entry-form--closed .entry-form__fields {
        padding-top: 12px;
    }
}
