
/* PC・スマホ共通：最大幅を450pxに固定して中央寄せ */
#custom-contact-form {
    width: 100%;
    max-width: 450px; /* スマホでは450pxに制限 */
    margin: 10px auto; /* スマホでは中央寄せ */
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 0 10px 10px rgba(0,0,0,0.1); */
    box-sizing: border-box;
}

/* 常に縦並びにするための設定 */
.form-item {
    margin-bottom: 20px;
    width: 100%;
}

.form-label-text {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

/* 入力エリア */
#custom-contact-form input[type="text"],
#custom-contact-form input[type="email"],
#custom-contact-form input[type="tel"],
#custom-contact-form input[type="date"],
#custom-contact-form textarea {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box; /* 左右の端を完璧に揃える */
    font-size: 16px;
    background: #f8fafc;
}

/* dateタイプ特有の調整 */
#custom-contact-form input[type="date"] {
    position: relative;
    font-family: inherit;
    /* min-height: 52px;  */
    /* セレクトボックスやテキスト欄と高さを合わせる */
}

/* フォーカス時の演出 */
#custom-contact-form input[type="date"]:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

#custom-contact-form textarea {
    height: 150px;
}

#custom-contact-form select {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    background: #f8fafc;
    /* デフォルトの矢印を消してカスタマイズ */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 右側に自作の矢印アイコンを配置（背景画像） */
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234a5568" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px; /* 矢印と文字が重ならないように */
    cursor: pointer;
    color: #1a202c;
}

/* フォーカス時のスタイル（青色の枠線など） */
#custom-contact-form select:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* プレースホルダー（「選択してください」）の色を少し薄くする場合 */
#custom-contact-form select:invalid,
#custom-contact-form select option[value=""] {
    color: #a0aec0;
}

/* 同意チェックエリア */
.form-checkbox-area {
    width: 100%;
    margin: 30px 0;
    padding: 18px;
    background: #f1f5f9;
    border-radius: 12px;
    box-sizing: border-box;
}

.form-checkbox-area label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* 送信ボタン：常に幅100% */
#submit-btn {
    display: block;
    width: 100%;
    max-width: auto;
    padding: 18px;
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* PC用の設定（画面幅が広いとき） */
@media screen and (min-width: 901px) {
    #custom-contact-form {
        max-width: 70%; /* 画面の70% */
        margin: 10px 0;    /* 左寄せにする（右マージンを0に） */
        box-shadow: none
    }
    #submit-btn {
        max-width: 300px;
    }
}