@charset "UTF-8";

/*----------------------------------------
    status（ステップ表示画像）
-----------------------------------------*/
#status {
    text-align: center;
    margin: 30px auto 0;
    width: 603px;
}

#status img {
    width: 100%;
}

#status img.spimg {
    display: none;
}

@media screen and (max-width: 519px) {
    #status img.pcimg {
        display: none;
    }
    #status img.spimg {
        display: block;
    }
}

@media screen and (max-width: 660px) {
    #status {
        width: 90%;
    }
}


/*----------------------------------------
    leadText（基本枠は common.css で）
-----------------------------------------*/
.leadText {
    margin-top: 30px;
}


/*----------------------------------------
    エラー・注意テキスト
-----------------------------------------*/
.attention {
    color: #6b2f2f;
    font-weight: 600;
}

 #privacy-error {
    font-size: 1.2rem;
 }


/*----------------------------------------
    必須バッジ（lesson.css の dt バッジを踏襲）
-----------------------------------------*/
.required-badge {
    display: inline-block;
    font-size: 1.1rem;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
    color: #fff;
    background: #7b7a6c;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    user-select: none;
    margin-right: 6px;
}


/*----------------------------------------
    editForm（入力・確認共通）
-----------------------------------------*/
#editForm {
    margin-top: 30px;
    border-top: 1px solid #bbb;
}

#editForm > dl {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #e8e4df;
}

#editForm > dl > dt {
    width: 28%;
    padding-top: 10px;
    font-size: 1.4rem;
    font-family: 'メイリオ', 'Meiryo', 'ＭＳ ゴシック', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: #444;
}

#editForm > dl > dd {
    width: 72%;
    font-size: 1.4rem;
    font-family: '游明朝体', 'Yu Mincho', YuMincho, 'ヒラギノ明朝 Pro', 'Hiragino Mincho Pro', 'MS P明朝', 'MS PMincho', serif;
}

/* 確認モード: 入力欄なし、テキストのみ */
.confirm #editForm > dl > dd {
    padding-top: 10px;
    line-height: 1.8;
}

/* 確認ページの本文：改行を保持 */
.confirm-message-text {
    white-space: pre-wrap;
    word-break: break-all;
}

@media screen and (max-width: 819px) {
    #editForm,
    .privacy-box,
    .checkbox-row,
    #privacy-error {
        margin-right: 5%;
        margin-left: 5%;
    }
}


/*----------------------------------------
    入力フィールド
-----------------------------------------*/
#editForm > dl > dd input[type="text"],
#editForm > dl > dd input[type="tel"],
#editForm > dl > dd input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
    border-top: 1px solid #e3e4e5;
    border-left: 1px solid #e3e4e5;
    border-right: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    background: #f6f7f8;
    outline: none;
    font-size: 1.4rem;
    font-family: 'メイリオ', 'Meiryo', 'Hiragino Kaku Gothic ProN', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#editForm > dl > dd input[type="text"]:focus,
#editForm > dl > dd input[type="email"]:focus {
    border-color: #7b7a6c;
    background: #fff;
}

#editForm > dl > dd input.is-error,
#editForm > dl > dd textarea.is-error {
    border-color: #6b2f2f;
    background: #fff8f8;
}

#editForm > dl > dd textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    box-sizing: border-box;
    border-top: 1px solid #e3e4e5;
    border-left: 1px solid #e3e4e5;
    border-right: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    background: #f6f7f8;
    outline: none;
    resize: vertical;
    font-size: 1.4rem;
    font-family: '游明朝体', 'Yu Mincho', YuMincho, 'ヒラギノ明朝 Pro', 'Hiragino Mincho Pro', serif;
    line-height: 1.8;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#editForm > dl > dd textarea:focus {
    border-color: #7b7a6c;
    background: #fff;
}


/*----------------------------------------
    エラーメッセージ（インライン）
-----------------------------------------*/
#editForm .attention {
    display: none; /* JS で切替 */
    padding-top: 5px;
    font-size: 1.2rem;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
}


/*----------------------------------------
    文字数カウンター
-----------------------------------------*/
.char-count {
    display: block;
    text-align: right;
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 4px;
}
.char-count.over {
    color: #cb0000;
}


/*----------------------------------------
    プライバシーポリシーボックス
-----------------------------------------*/
.privacy-box {
    margin-top: 30px;
    background: #f7f6f3;
    border: 1px solid #e0d9d0;
    padding: 18px 22px;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #555;
    font-family: '游明朝体', 'Yu Mincho', YuMincho, 'ヒラギノ明朝 Pro', 'Hiragino Mincho Pro', serif;
    box-sizing: border-box;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 10px;
}
.checkbox-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #7b7a6c;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-row label {
    font-size: 1.3rem;
    font-family: '游明朝体', 'Yu Mincho', YuMincho, 'ヒラギノ明朝 Pro', 'Hiragino Mincho Pro', serif;
    color: #444;
    cursor: pointer;
}


/*----------------------------------------
    ローディング表示
-----------------------------------------*/
.loading-spinner {
    display: none;
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #999;
    letter-spacing: 0.1em;
    padding-bottom: 20px;
}


/*----------------------------------------
    ボタン（既存 contact.css を継承・整合）
-----------------------------------------*/
#button {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    text-align: center;
}

#button p {
    margin: 40px 20px 0;
    padding-bottom: 80px;
    text-align: center;
    display: inline-block;
}

/* submit / button 共通スタイル */
#button p input[type="submit"],
#button p button,
.complete p a {
    display: block;
    background: #7b7a6c;
    color: #fff;
    font-size: 1.5rem;
    font-family: '游明朝体', 'Yu Mincho', YuMincho, 'ヒラギノ明朝 Pro', 'Hiragino Mincho Pro', serif;
    font-weight: 600;
    width: 250px;
    padding: 18px 5px;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
    letter-spacing: 0.1em;
    box-sizing: border-box;
}

/* 「入力に戻る」ボタン：薄いグレー */
#button p button#backBtn {
    background: #ccccd3;
    color: #333;
}

#button p input[type="submit"]:hover,
#button p button:hover,
.complete p a:hover {
    background: #774c36;
    color: #fff;
}

#button p button#backBtn:hover {
    background: #aaaaaf;
    color: #fff;
}

#button p input[type="submit"]:disabled,
#button p button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/*----------------------------------------
    レスポンシブ
-----------------------------------------*/
@media screen and (max-width: 819px) {
    #editForm {
        padding: 0;
    }

    #editForm > dl {
        display: block;
        padding: 20px 0;
    }

    #editForm > dl > dt {
        width: auto;
        padding: 0 0 8px 0;
    }

    #editForm > dl > dd {
        width: 100%;
    }

    #button {
        flex-direction: column;
        align-items: center;
    }

    #button p {
        margin: 15px auto 0;
        padding-bottom: 0;
    }

    #button p:last-child {
        padding-bottom: 50px;
    }
}
