@charset "UTF-8";


/* お問合せフォーム
-----------------------------------*/

/* 基本設定 */
:root {
    --required-color: #ff7b7b;
    --border-color: #a3c2be;
}


/* フォーム */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.required {
    color: var(--required-color);
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

input::placeholder {
    color: #bbb;
}

input:focus,
textarea:focus {
    border-color: var(--color-main-green);
}



.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}


.field-note {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    font-weight: normal;
}


/* ============================================================
   各フィールドのインラインエラー表示
============================================================ */

/* エラーメッセージ（各入力欄の直上） */
.field-error {
    display: none;
    font-size: 0.8rem;
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 6px;
}

.field-error::before {
    content: "⚠ ";
}

/* is-visible クラスがついたときだけ表示 */
.field-error.is-visible {
    display: block;
}

/* プライバシーポリシーのエラーは中央寄せ */
.field-error--center {
    text-align: center;
    margin-bottom: 10px;
}

/* エラー時の入力枠の色 */
input.is-error,
textarea.is-error {
    border-color: #c0392b;
    background-color: #fff8f8;
}


/* プライバシーポリシー */
.form-privacy {
    width: 100%;
    text-align: center;
    margin: 30px 0;
}

.agreement-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #333;
    gap: 10px;
}

.agreement-box label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.agreement-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.submit-btn {
    color: #fff;
    background-color: var(--color-main-green);
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.submit-btn:hover {
    opacity: 0.8;
}

/* 送信ボタン：非活性（チェック前・送信中）*/
.btn:disabled,
.btn.is-disabled {
    background-color: #b0b0b0;
    box-shadow: 0 5px 0 #888, 0 15px 20px rgba(0, 0, 0, 0.05);
    color: #e8e8e8;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}


/* モーダル(dialog)のスタイル */
dialog {
    border: none;
    border-radius: 4px;
    padding: 0;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.terms-content h3 ~ h3 {
    margin-top: 20px;
}

.modal-inner {
    background-color: #e5e5e5;
    padding: 30px;
    position: relative;
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.close-icon {
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: #666;
}

.description-text {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
}

.terms-content {
    background: white;
    border: 1px solid #ccc;
    height: 300px;
    overflow-y: scroll;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.terms-content__contact {
    margin-top: 20px;
}


/* ボタングループ */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.modal-btn {
    padding: 5px 20px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    
    @media (768px <= width) {
        font-weight: bold;
        padding: 12px 30px;
        border-radius: 30px;
    }
}

.agree-btn {
    background-color: var(--color-main-green);
    color: #fff;
}

.cancel-btn {
    background-color: transparent;
    color: #333;
    border: 1px solid #999;
}

.cancel-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.terms-content::-webkit-scrollbar { width: 10px; }
.terms-content::-webkit-scrollbar-thumb { background: #999; border-radius: 5px; }


.thanks {
    padding-block: 60px 80px;
}

.thanks__inner {
    /* max-inline-size: 640px; */
    padding-inline: 32px;
    margin-inline: auto;
    text-align: center;
}

.thanks__icon {
    width: 72px;
    height: 72px;
    background-color: var(--color-sub-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thanks__icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thanks__title {
    font-size: 1.5rem;
    color: var(--color-main-green);
    font-weight: 700;
    margin-bottom: 20px;

    @media (768px <= width) {
        font-size: 1.75rem;
    }
}

.thanks__text {
    color: var(--color-text);
    line-height: 2;
    margin-bottom: 8px;
}

.thanks__note {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 48px;
}

.thanks__divider {
    width: 48px;
    height: 2px;
    background-color: var(--color-sub-green);
    margin: 32px auto;
    border-radius: 2px;
    opacity: 0.5;
}


/* コピーライト */
footer {
    margin-top: 20px;
}
