/* ============================================================
   school-lp フォーム(STEP1〜3)共通スタイル
   命名規則: BEM（l- レイアウト / c- コンポーネント接頭辞は school-lp.css に合わせています）
   単位: px固定 / BP: 980px
   ============================================================ */

.c-form-step {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.c-form-step__title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #333333;
    margin-bottom: 24px;
}

/* STEPナビ */
.c-form-step__nav {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin-bottom: 32px;
}

.c-form-step__nav-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #b3b3b3;
    padding-bottom: 8px;
    border-bottom: 3px solid #e0e0e0;
}

.c-form-step__nav-item span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    margin-top: 2px;
}

.c-form-step__nav-item--current {
    color: #89993b;
    border-bottom-color: #89993b;
}

/* フォーム */
.c-form__group {
    margin-bottom: 24px;
}

.c-form__group--agree {
    margin-top: 32px;
}

.c-form__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.c-form__required,
.c-form__optional {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.c-form__required {
    background-color: #e15252;
}

.c-form__optional {
    background-color: #b3b3b3;
}

.c-form__input,
.c-form__select,
.c-form__textarea {
    display: block;
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
    color: #333333;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
}

.c-form__input:focus,
.c-form__select:focus,
.c-form__textarea:focus {
    outline: none;
    border-color: #89993b;
}

.c-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.c-form__note {
    font-size: 12px;
    color: #888888;
    margin-top: 6px;
}

.c-form__error {
    font-size: 12px;
    color: #e15252;
    margin-top: 6px;
    min-height: 14px;
}

/* チェックボックス（同意欄） */
.c-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 13px;
    color: #333333;
    line-height: 1.6;
}

.c-form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-top: 2px;
}

/* school-lp.css の `a { display:block; }` を上書き（同意欄のリンクをインライン表示にするため） */
.c-form__checkbox-label a {
    display: inline;
    color: #89993b;
    text-decoration: underline;
}

/* ボタン */
.c-btn {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.c-btn--submit {
    background-color: #89993b;
    border: 1px solid #89993b;
    margin-top: 32px;
    transition: all 0.3s;
}
.c-btn--submit:hover {
    background-color: #fff;
    color: #89993b;
}

.c-btn--submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* PC / SP 出し分け（BP: 980px） ※現時点STEP1では未使用、STEP2以降で必要になった場合に使用 */
.pc-only { display: block; }
.sp-only { display: none; }

@media screen and (max-width: 980px) {
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
}

/* ============================================================
   確認画面（STEP2）
   ============================================================ */
.c-form-confirm__lead {
    font-size: 14px;
    color: #333333;
    text-align: center;
    margin-bottom: 24px;
}

.c-form-confirm__list {
    margin-bottom: 32px;
    border-top: 1px solid #e0e0e0;
}

.c-form-confirm__row {
    display: flex;
    flex-direction: column;
    padding: 16px 4px;
    border-bottom: 1px solid #e0e0e0;
}

.c-form-confirm__label {
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    margin-bottom: 6px;
}

.c-form-confirm__value {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 画面外に配置し、見た目には出さないが操作・フォーカスは可能な状態を保つ（native requiredチェックを壊さないため） */
.c-form--offscreen {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
}

.c-btn--back {
    background-color: #ffffff;
    color: #89993b;
    border: 1px solid #89993b;
}
.c-btn--back:hover {
    background-color: #89993b;
    color: #fff;
}
.wpcf7-submit {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background-color: #89993b;
    border: 1px solid #89993b;
    padding: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.wpcf7-submit:hover {
    background-color: #fff;
    color: #89993b;
}
p:has(.wpcf7-spinner) {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 30px;
}
/* ============================================================
   サンクス画面（STEP3）
   ============================================================ */
.c-form-thanks {
}

.c-form-thanks__message {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 16px;
}

.c-form-thanks__note {
    font-size: 12px;
    line-height: 1.8;
    color: #888888;
    margin-bottom: 32px;
}

.c-btn--home {
    background-color: #89993b;
    border: 1px solid #89993b;
    transition: all 0.3s;
}
.c-btn--home:hover {
    background-color: #fff;
    color: #89993b;
}

.l-header {
    justify-content: center !important;
    padding: 10px 0;
}