@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
*/

/* お問い合わせフォーム全体のスタイル */
.wpcf7-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* 各入力項目の段落 */
.wpcf7-form p {
    margin-bottom: 25px;
}

/* ラベルのスタイル */
.wpcf7-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* テキスト入力フィールド・メールフィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

/* テキストエリア */
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 150px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
}

.wpcf7-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

/* チェックボックス（プライバシーポリシー同意） */
.wpcf7-acceptance {
    margin: 30px 0;
}

.wpcf7-acceptance label {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.wpcf7-form input[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.wpcf7-form input[type="submit"]:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* スピナー（送信中の表示） */
.wpcf7-spinner {
    display: inline-block;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* エラー表示 */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #e74c3c;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

/* レスポンスメッセージ */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.wpcf7-validation-errors {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

/* Turnstile（CAPTCHA）のスタイル */
.wpcf7-turnstile {
    margin: 25px 0;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .wpcf7-form {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .wpcf7-form label {
        font-size: 14px;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form textarea {
        font-size: 16px; /* iOSで自動ズームを防ぐため16px以上 */
    }

    .wpcf7-form input[type="submit"] {
        font-size: 16px;
        padding: 14px 28px;
    }
}

@media screen and (max-width: 480px) {
    .wpcf7-form {
        padding: 25px 15px;
    }

    .wpcf7-form p {
        margin-bottom: 20px;
    }
}