/*==================================================
 contact.css  お問い合わせ・採用フォーム／確認・完了画面
==================================================*/

/*==========================================
電話・FAX
==========================================*/

.contact-methods{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:26px;
    max-width:980px;
    margin:0 auto 80px;
}

.contact-method{
    display:flex;
    align-items:center;
    gap:20px;
    padding:30px;
    border-radius:24px;
    background:#fff;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

a.contact-method:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-hover);
}

.contact-method > i{
    display:flex;
    justify-content:center;
    align-items:center;
    width:60px;
    height:60px;
    flex-shrink:0;
    border-radius:50%;
    background:linear-gradient(135deg,var(--main),var(--sub));
    color:#fff;
    font-size:1.3rem;
}

.contact-method h2{
    color:#183153;
    font-size:1rem;
    font-weight:700;
}

.contact-method .contact-value{
    margin:2px 0;
    font-family:"Outfit",sans-serif;
    font-size:1.7rem;
    line-height:1.4;
}

.contact-method span{
    color:#666;
    font-size:.88rem;
}

/*==========================================
Form
==========================================*/

.form-panel{
    max-width:920px;
    margin:0 auto;
    padding:55px;
    border-radius:30px;
    background:#fff;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.form-row.is-top{
    align-items:flex-start;
}

.form-row.is-top label{
    padding-top:14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
    font-family:inherit;
    color:#333;
}

.contact-form select{
    appearance:none;
    -webkit-appearance:none;
    padding-right:44px;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231297e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/18px no-repeat;
}

.contact-form ::placeholder{
    color:#aab4bd;
}

.optional{
    display:inline-block;
    margin-left:8px;
    padding:3px 10px;
    border-radius:999px;
    background:#e3e9ee;
    color:#566;
    font-size:.7rem;
}

.form-check{
    justify-content:center;
    padding:22px;
    border-radius:16px;
    background:var(--bg);
}

.form-check input{
    width:20px;
    height:20px;
    flex-shrink:0;
    accent-color:var(--main);
}

.form-check label{
    color:#333;
    font-weight:500;
    line-height:1.7;
}

.form-check a{
    color:var(--main-dark);
    text-decoration:underline;
}

/* ハニーポット（機械送信対策）。人には見えない位置に置く */
.hp{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

.form-tel{
    margin-top:36px;
    color:#555;
    text-align:center;
}

.form-tel a{
    display:inline-block;
    margin-left:10px;
    color:var(--main-dark);
    font-family:"Outfit",sans-serif;
    font-size:1.4rem;
    font-weight:700;
}

.form-tel i{
    margin-right:8px;
    font-size:1.1rem;
}

/*==========================================
確認画面・エラー
==========================================*/

.form-result .section-title{
    margin-bottom:36px;
}

.form-lead{
    margin-bottom:10px;
    color:#444;
    text-align:center;
}

.confirm-table{
    width:100%;
    margin:20px 0 40px;
    border-collapse:collapse;
}

.confirm-table th{
    width:230px;
    padding:18px;
    background:#eef8ff;
    border-bottom:1px solid #ddebf5;
    color:#183153;
    font-weight:700;
    text-align:left;
    vertical-align:top;
}

.confirm-table td{
    padding:18px;
    border-bottom:1px solid #edf3f8;
    color:#333;
    line-height:1.9;
    overflow-wrap:anywhere;
}

.confirm-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
}

.form-errors{
    margin-bottom:34px;
    padding:24px 28px;
    border-radius:16px;
    background:#fff4f4;
    border:1px solid #ffc9c9;
    color:#b03a2e;
}

.form-errors p{
    font-weight:700;
}

.form-errors ul{
    margin:10px 0 0 1.4em;
    list-style:disc;
}

/*==========================================
完了画面
==========================================*/

.thanks-box{
    max-width:780px;
    margin:0 auto;
    padding:60px 44px;
    border-radius:30px;
    background:#fff;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    text-align:center;
}

.thanks-icon{
    margin-bottom:14px;
    color:var(--main);
    font-size:4rem;
    line-height:1;
}

.thanks-box h2{
    margin-bottom:18px;
    color:#183153;
    font-size:1.7rem;
    font-weight:800;
}

.thanks-box p{
    color:#444;
}

.thanks-note{
    margin-top:22px;
    padding:20px;
    border-radius:16px;
    background:var(--bg);
    color:#666 !important;
    font-size:.9rem;
}

.thanks-note a{
    color:var(--main-dark);
    font-weight:700;
}

.thanks-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px;
    margin-top:36px;
}

/*==========================================
Responsive
==========================================*/

@media(max-width:768px){

    .contact-methods{
        grid-template-columns:1fr;
        margin-bottom:60px;
    }

    .contact-method{
        padding:22px;
    }

    .form-panel{
        padding:30px 20px;
        border-radius:22px;
    }

    .form-row.is-top label{
        padding-top:0;
    }

    .form-check{
        padding:18px 14px;
    }

    .confirm-table th,
    .confirm-table td{
        display:block;
        width:100%;
    }

    .confirm-table th{
        padding:10px 14px;
        border-bottom:none;
    }

    .confirm-table td{
        padding:12px 14px 18px;
    }

    .confirm-actions .btn-main,
    .confirm-actions .btn-sub,
    .thanks-buttons .btn-main,
    .thanks-buttons .btn-sub{
        width:100%;
    }

    .thanks-box{
        padding:40px 22px;
    }

}
