@charset "UTF-8";
/* =========================================================
   えひめスクラムプロジェクト  申込フォーム (apply_form)
   - ページヘッダー: common.css
   - サイト基調: クリーム #fff9ee / アクセント #ffba3f / Zen Maru Gothic
   ========================================================= */

/* 本文セクション見出しはドットと英字の間隔を広めに（他ページと統一） */
.page-head .sec-head__en {
    gap: 40px;
}

/* =========================================================
   PAGE HEAD ILLUST（column と同じイラスト・配置）
   ========================================================= */
.head__content .head__illust {
    width: 320px;
    position: relative;
}
.head__content .head__illust img {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =========================================================
   APPLY SECTION
   ========================================================= */
.apply {
    padding: 50px 0 80px;
    background-color: #fff;
}
.apply__inner {
    max-width: 840px;
    width: calc(100% - 48px);
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 56px 64px 64px;
}
.apply__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
    text-indent: 1px;
    text-align: center;
    color: #333333;
}
.apply__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 18px auto 0;
    background-color: #ffba3f;
    border-radius: 2px;
}
.apply__note {
    margin-top: 28px;
    padding: 20px 24px;
    background-color: #fff9ee;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 500;
    color: #575757;
}

/* =========================================================
   ALERT（送信完了 / 入力エラー）
   ========================================================= */
.apply-alert {
    margin-top: 28px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}
.apply-alert--success {
    background-color: #e9f7ec;
    color: #2e7d4f;
    border: 1.5px solid #b6e2c2;
}
.apply-alert--error {
    background-color: #fdecea;
    color: #c0392b;
    border: 1.5px solid #f5c6c0;
}

/* =========================================================
   FORM ROWS
   ========================================================= */
.apply-form {
    margin-top: 40px;
}
.form-row {
    margin-bottom: 32px;
}
.form-row__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.form-row__label {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #333333;
}
.form-row__req {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    background-color: #ff7b6b;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    color: #ffffff;
}
/* 「※必須」テキスト表記（赤文字） */
.form-required {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d8362a;
}

/* 各入力欄の下に表示する注意文 */
.form-row__note {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: #888888;
}

/* 個人情報の取扱い注記リンク */
.form-privacy {
    margin-top: 36px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
}
.form-privacy a {
    color: #2f6fd0;
    text-decoration: underline;
}
.form-privacy a:hover {
    opacity: 0.7;
}

/* =========================================================
   FORM CONTROLS（text / textarea / select / date 共通）
   ========================================================= */
.form-control {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    border: 1.5px solid #e3e3e3;
    border-radius: 10px;
    padding: 13px 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-control::placeholder {
    color: #b5b5b5;
}
.form-control:focus {
    outline: none;
    border-color: #ffba3f;
    box-shadow: 0 0 0 3px rgba(255, 186, 63, 0.2);
}
.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* セレクトボックス（矢印を自前で描画） */
.form-select-wrap {
    position: relative;
}
.form-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #ffba3f;
    border-bottom: 2px solid #ffba3f;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.form-select {
    cursor: pointer;
    padding-right: 44px;
}
.form-date {
    cursor: pointer;
}

/* =========================================================
   RADIO / CHECKBOX（カスタム）
   ========================================================= */
.form-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding-top: 4px;
}
.form-choice {
    position: relative; /* validationEngine のエラー表示位置の基準 */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}
.form-choice__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.form-choice__mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border: 1.5px solid #cfcfcf;
    transition:
        border-color 0.2s,
        background-color 0.2s;
    position: relative;
}
.form-choice__mark--radio {
    border-radius: 50%;
}
.form-choice__mark--check {
    border-radius: 6px;
}
/* チェック／選択時 */
.form-choice__input:checked + .form-choice__mark {
    border-color: #ffba3f;
}
.form-choice__input:checked + .form-choice__mark--radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #ffba3f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.form-choice__input:checked + .form-choice__mark--check {
    background-color: #ffba3f;
}
.form-choice__input:checked + .form-choice__mark--check::after {
    content: "";
    position: absolute;
    top: 47%;
    left: 50%;
    width: 6px;
    height: 11px;
    border-right: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    transform: translate(-50%, -55%) rotate(45deg);
}
.form-choice__input:focus-visible + .form-choice__mark {
    box-shadow: 0 0 0 3px rgba(255, 186, 63, 0.2);
}

/* =========================================================
   SUBMIT（btn-all を流用しつつ余白を調整）
   ========================================================= */
.apply-form__submit {
    margin-top: 48px;
    cursor: pointer;
    border: none;
}

/* 確認画面なし時の送信前チェック */
.form-confirm-check {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* =========================================================
   THANKS（申請完了ページ）
   ========================================================= */
.thanks {
    text-align: center;
}
.thanks__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #333333;
}
.thanks__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 18px auto 0;
    background-color: #ffba3f;
    border-radius: 2px;
}
.thanks__lead {
    margin-top: 36px;
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    color: #575757;
}
.thanks__lead_head span {
    display: inline-block;
}
.thanks__lead p + p {
    margin-top: 24px;
}
.thanks__action {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* =========================================================
   CONFIRM（確認画面）
   ========================================================= */
.apply-confirm__lead {
    margin-bottom: 32px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}
.confirm-list {
    border-top: 1px solid #e2e2e2;
}
.confirm-row {
    display: flex;
    gap: 24px;
    padding: 20px 4px;
    border-bottom: 1px solid #e2e2e2;
}
.confirm-row__label {
    flex-shrink: 0;
    width: 220px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 1px;
    color: #333333;
}
.confirm-row__value {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    color: #333333;
    word-break: break-word;
}
.confirm-row__empty {
    color: #aaaaaa;
}
.apply-confirm__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
}
.apply-confirm__actions .apply-form__submit {
    margin-top: 0;
}
.apply-confirm__back {
    cursor: pointer;
    border: none;
    background-color: #b5b5b5;
    margin: 0;
}

/* =========================================================
   RESPONSIVE  -- Tablet
   ========================================================= */
@media screen and (max-width: 1024px) {
    .head__content .head__illust {
        width: 290px;
    }
    .head__content .head__illust img {
        transform: translate(-50%, calc(-50% + 20px));
    }

    .apply {
        padding: 32px 0 60px;
    }
    .apply__inner {
        padding: 44px 40px 52px;
    }
    .apply__title {
        font-size: 23px;
    }
}

/* =========================================================
   RESPONSIVE  -- Mobile
   ========================================================= */
@media screen and (max-width: 680px) {
    .head__content .head__illust {
        width: 200px;
    }

    .apply {
        padding: 24px 0 48px;
    }
    .apply__inner {
        width: calc(100% - 32px);
        border-radius: 16px;
        padding: 32px 22px 40px;
    }
    .apply__title {
        font-size: 20px;
    }
    .apply__title::after {
        margin-top: 14px;
    }
    .apply__note {
        margin-top: 22px;
        padding: 16px 18px;
        font-size: 14px;
    }
    .apply-form {
        margin-top: 32px;
    }
    .form-row {
        margin-bottom: 26px;
    }
    .form-row__label {
        font-size: 16px;
    }
    .form-control {
        font-size: 16px;
        padding: 12px 14px;
    }
    .form-choices {
        gap: 12px 20px;
    }
    .apply-form__submit {
        margin-top: 38px;
        min-width: 100%;
    }

    .apply-confirm__actions {
        flex-wrap: wrap;
    }

    .apply-confirm__actions .apply-form__submit {
        min-width: 0;
    }
    .confirm-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .confirm-row__label,
    .confirm-row__value {
        width: 100%;
    }
    .thanks__lead {
        text-align: left;
    }
    .thanks__lead p br {
        display: none;
    }
    .thanks__lead_head span {
        display: inline;
    }
}

/* =========================================================
   RESPONSIVE  -- Small Mobile (page head illust)
   ========================================================= */
@media screen and (max-width: 500px) {
    .head__content .head__illust {
        width: 120px;
    }
}
