@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ====================================
   Contact Form 7 for SWELL Style
   ==================================== */

/* フォーム全体の外枠と余白 */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em 0;
}

/* ラベル（項目名）のデザイン */
.contact-form-wrapper label {
    display: block;
    margin-bottom: 30px; /* 項目ごとの間隔 */
    font-weight: 700;    /* 太字 */
    font-size: 1rem;
    color: #333;
}

/* 「必須」バッジのデザイン */
.contact-form-wrapper .required {
    display: inline-block;
    background-color: #e03e3e; /* 必須色は赤系固定 */
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    margin-left: 8px;
    border-radius: 2px;
    vertical-align: 2px;
    font-weight: normal;
}

/* --- 入力フィールド（テキスト・メール・電話・テキストエリア） --- */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 4px; /* SWELLらしい少し丸い角 */
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) inset;
}

/* フォーカス時のデザイン（SWELLのメインカラーを使用） */
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--color_main); /* SWELLのメインカラー変数 */
    box-shadow: 0 0 0 1px var(--color_main);
}

/* テキストエリアの高さ調整 */
.contact-form-wrapper textarea {
    min-height: 180px;
}

/* --- ラジオボタン・チェックボックス --- */
.wpcf7-list-item {
    display: inline-block;
    margin: 5px 20px 5px 0;
}

.wpcf7-list-item-label {
    font-weight: normal;
    cursor: pointer;
}

/* --- プライバシーポリシー同意チェック --- */
.privacy-check {
    display: block;
    font-weight: normal;
    font-size: 0.95rem;
}
.privacy-check input {
    margin-right: 8px;
    transform: scale(1.2); /* チェックボックスを少し大きく */
}

/* --- 送信ボタン（SWELLのボタンデザインに合わせる） --- */
.contact-form-wrapper input[type="submit"] {
    display: inline-block;
    width: 100%;
    max-width: 360px; /* ボタンの横幅上限 */
    padding: 15px 40px;
    margin-top: 10px;
    
    /* 色設定：SWELLのメインカラーを自動適用 */
    background-color: var(--color_main);
    color: #fff;
    
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 80px; /* 丸いボタン */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* 影をつける */
}

/* 送信ボタンホバー時 */
.contact-form-wrapper input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-2px); /* 少し浮く動き */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* スマホ表示の調整 */
@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 1em 5px;
    }
    .contact-form-wrapper label {
        font-size: 0.95rem;
    }
    .wpcf7-list-item {
        display: block; /* スマホでは選択肢を縦積みに */
        margin-bottom: 8px;
    }
}