@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* -----------------------------------------------
   お問い合わせフォームページ
----------------------------------------------- */
.page-contact .entry-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* WPForms コンテナ */
.wpforms-container {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* フィールドラベル */
.wpforms-field-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* 入力欄 */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field textarea {
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    transition: border-color 0.2s !important;
    background: #fafafa !important;
    box-sizing: border-box !important;
}

.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field input[type="tel"]:focus,
.wpforms-field textarea:focus {
    border-color: #1D9E75 !important;
    outline: none !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(29,158,117,0.08) !important;
}

.wpforms-field textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

/* フィールド間の余白 */
.wpforms-field {
    margin-bottom: 1.25rem !important;
}

/* チェックボックス */
.wpforms-field-checkbox ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpforms-field-checkbox li {
    list-style: none !important;
    background: #f8f8f8 !important;
    border: 1.5px solid #eee !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: border-color 0.2s !important;
}

.wpforms-field-checkbox li:has(input:checked) {
    border-color: #1D9E75 !important;
    background: #f0faf6 !important;
}

.wpforms-field-checkbox li label {
    font-size: 13px !important;
    color: #444 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.wpforms-field-checkbox li input[type="checkbox"] {
    accent-color: #1D9E75 !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* 必須マーク */
.wpforms-required-label {
    color: #c0392b !important;
}

/* 送信ボタン */
.wpforms-submit-container {
    text-align: center !important;
}

.wpforms-submit {
    background: #1D9E75 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 60px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: auto !important;
    margin-top: 0.5rem !important;
    transition: background 0.2s, transform 0.1s !important;
    letter-spacing: 0.05em !important;
}

.wpforms-submit:hover {
    background: #178a64 !important;
    transform: translateY(-1px) !important;
}

/* 注意書き */
.contact-note {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
@media screen and (max-width: 834px){
    .wpforms-container {
        padding: 1.5rem;
    }
    .wpforms-field-checkbox ul {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 480px){
    .wpforms-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    .wpforms-submit {
        width: 100% !important;
        padding: 14px 20px !important;
    }
}
