/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/


/* ==========================================================
   Contact Form 7 共通カスタマイズ
   伊達赤十字病院 採用サイト

   01. 入力フォーム・テーブル
   02. 必須・任意ラベル
   03. 入力フィールド
   04. チェックボックス・ラジオボタン
   05. 送信ボタン
   06. エラーメッセージ
   07. ステップ表示
   08. 確認画面のボタン
   09. 送信完了画面
   10. レスポンシブ対応
========================================================== */


/* ==========================================================
   01. 入力フォーム・テーブル
========================================================== */

/* 自動挿入されるpタグの表示調整 */
.inquiry p {
    display: inline;
}

/* フォームテーブル全体 */
table.inquiry {
    margin-bottom: 30px;
    border: 1px solid #d7d7d7;
    line-height: 1.2;
    vertical-align: middle;
}

/* テーブルの行 */
.inquiry tr {
    border: 0 !important;
}

/* テーブル見出し側 */
.inquiry th {
    text-align: left;
    font-size: 14px;
    color: #444;
    padding: 1em 0.5em;
    width: 0;
    background: #efefef;
    border: 1px solid #d7d7d7;
    white-space: nowrap;
    vertical-align: middle;
}

/* テーブル入力欄側 */
.inquiry td {
    font-size: 13px;
    border: 1px solid #d7d7d7;
}


/* ==========================================================
   02. 必須・任意ラベル
========================================================== */


/* ==========================================================
   必須・任意表示
========================================================== */

/* 必須・任意 共通 */
.inquiry .haveto,
.inquiry .any {
    display: inline;
    font-size: 13px;
    font-weight: normal;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
}

/* 必須：赤文字 */
.inquiry .haveto {
    color: #e92323;
}

/* 任意：黒文字 */
.inquiry .any {
    color: #444;
}



/* ==========================================================
   03. 入力フィールド
========================================================== */

/* 入力フィールド共通 */
.inquiry input,
.inquiry select,
.inquiry textarea {
    margin: 5px 0;
    background: #eff1f5;
    border: none;
    padding: 0.7em;
}

/* テキスト・メール・電話・URL・テキストエリア */
.inquiry input[type="text"],
.inquiry input[type="email"],
.inquiry input[type="tel"],
.inquiry input[type="url"],
.inquiry textarea {
    width: 100%;
    box-sizing: border-box;
}

/* 日付・数値・セレクト */
.inquiry input[type="date"],
.inquiry input[type="number"],
.inquiry select {
    width: auto;
    max-width: 100%;
}

/* メッセージ入力欄の高さ */
.inquiry textarea {
    padding-bottom: 10em;
}


/* ==========================================================
   04. チェックボックス・ラジオボタン
========================================================== */

/* チェックボックス・ラジオボタンの幅 */
.inquiry input[type="checkbox"],
.inquiry input[type="radio"] {
    width: auto;
}

/* チェックボックス・ラジオボタンの位置 */
.wpcf7-list-item-label,
.wpcf7-checkbox,
input[type="checkbox"],
input[type="radio"] {
    vertical-align: middle;
}

/* ラベルの余白 */
.wpcf7-list-item-label {
    padding: 0 5px 0 2px;
}

/* ラジオボタンを縦並びにする場合 */
.verticallist {
    display: inline-grid;
}


/* ==========================================================
   05. 送信ボタン
========================================================== */

/* 入力画面の送信ボタン */
.wpcf7-submit {
    display: block;
    margin: 10px auto;
    padding: 1em 0;
    width: 80%;
    background: #09b555;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
}

/* 送信ボタンのホバー */
.wpcf7-submit:hover {
    opacity: 0.9;
    transition: 0.3s;
}


/* ==========================================================
   06. エラーメッセージ
========================================================== */

/* 入力エラーの文字色 */
.wpcf7-not-valid-tip {
    color: #e92323;
}

/*
   .screen-reader-response は非表示にしない。
   スクリーンリーダーへの通知に使用されるため、
   Contact Form 7 標準の指定を維持する。
*/


/* ==========================================================
   07. ステップ表示
   入力 → 確認 → 完了
========================================================== */

/* ステップ全体 */
.form-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto 40px;
    gap: 0;
}

/* 各ステップ */
.form-steps .step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* ステップ間の線 */
.form-steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 26px);
    width: calc(100% - 52px);
    height: 2px;
    background: #ddd;
}

/* ステップ番号の円 */
.form-steps .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    color: #777;
    font-size: 15px;
    font-weight: bold;
}

/* 現在のステップ */
.form-steps .step.active {
    color: #d92932;
    font-weight: bold;
}

/* 現在のステップ番号 */
.form-steps .step.active .step-num {
    background: #d92932;
    color: #fff;
}


/* ==========================================================
   08. 確認画面のボタン
   戻る・送信を横並び、同じ幅に統一
========================================================== */

/* ボタン全体の配置 */
.confirm-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 800px;
    margin: 30px auto 50px;
}

/* 戻る・送信ボタンの幅を均等にする */
.confirm-back,
.confirm-submit {
    flex: 1;
    min-width: 0;
}

/* 両ボタン共通 */
.confirm-buttons input[type="button"],
.confirm-buttons input[type="submit"] {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

/* 戻るボタン */
.confirm-buttons input[type="button"] {
    background: #eee;
    color: #444;
    border: 1px solid #ccc;
}

/* 送信ボタン */
.confirm-buttons input[type="submit"] {
    background: #d92932;
    color: #fff;
    border: none;
}

/* ボタンのホバー */
.confirm-buttons input:hover {
    opacity: 0.8;
}


/* ==========================================================
   09. 送信完了画面
========================================================== */

/* 完了画面全体 */
.contact-complete {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 50px 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 完了チェックアイコン */
.complete-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 25px;
    background: #d92932;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
}

/* 完了画面の見出し */
.contact-complete h2 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 完了画面の本文 */
.contact-complete p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
}

/* 補足案内 */
.contact-complete .complete-note {
    margin-top: 30px;
    color: #777;
    font-size: 13px;
}

/* トップページへ戻るボタン */
.complete-home {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 50px;
    background: #d92932;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* トップページへ戻るボタンのホバー */
.complete-home:hover {
    opacity: 0.85;
    color: #fff;
}


/* ==========================================================
   10. レスポンシブ対応
========================================================== */

/* タブレット・スマホ：850px以下 */
@media (max-width: 850px) {

    /* テーブルを縦並びに変更 */
    table.inquiry th,
    table.inquiry td {
        display: block;
        padding: 1em 0 !important;
        width: 100%;
        border: 0;
    }

    /* 入力画面の送信ボタン */
    input.wpcf7-submit {
        margin-bottom: 30px;
        width: 100%;
    }
}


/* スマホ・タブレット：900px以下 */
@media (max-width: 900px) {

    /* PC用の日付案内を非表示 */
    .pcdate {
        display: none;
    }
}


/* PC：1000px以上 */
@media (min-width: 1000px) {

    /* スマホ用の日付案内を非表示 */
    .spdate {
        display: none;
    }

    /* 日付入力欄の幅 */
    .wpcf7-date.dateform {
        width: 25%;
    }
}


/* スマートフォン：600px以下 */
@media (max-width: 600px) {

    /* ステップ表示 */
    .form-steps {
        margin-bottom: 30px;
    }

    .form-steps .step {
        font-size: 12px;
    }

    /* 確認画面のボタン */
    .confirm-buttons {
        gap: 10px;
    }

    .confirm-back,
    .confirm-submit {
        flex: 1;
        min-width: 0;
    }

    .confirm-buttons input[type="button"],
    .confirm-buttons input[type="submit"] {
        font-size: 13px;
        padding: 10px 5px;
    }

    /* 完了画面全体 */
    .contact-complete {
        padding: 40px 20px;
        margin: 20px auto 50px;
    }

    /* 完了画面の見出し */
    .contact-complete h2 {
        font-size: 20px;
    }

    /* 完了画面の本文 */
    .contact-complete p {
        font-size: 14px;
    }

    /* トップへ戻るボタン */
    .complete-home {
        display: block;
        padding: 15px;
    }
}
