/* ===============================
   合同会社シンセイ
   Contact Form
   style.css (Ver2.0 完成版)
================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
    background:#f5f7fa;
    color:#333;
    line-height:1.8;
}

.container{
    max-width:900px;
    margin:40px auto;
    background:#fff;
    padding:40px;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

h1{
    text-align:center;
    color:#004b8d;
    margin-bottom:40px;
    font-size:32px;
}

.notice{
    background:#eef7ff;
    border-left:5px solid #004b8d;
    padding:25px;
    margin-bottom:35px;
}

.notice h2{
    color:#004b8d;
    margin-bottom:15px;
    font-size:22px;
}

.notice p{
    margin-bottom:10px;
}

.notice p:last-child{
    margin-bottom:0;
}

label{
    display:block;
    margin-top:25px;
    font-weight:bold;
}

.required{
    color:#d40000;
    font-size:13px;
    margin-left:5px;
    font-weight:bold;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea{
    width:100%;
    margin-top:8px;
    padding:12px;
    border:1px solid #cccccc;
    border-radius:5px;
    font-size:16px;
    font-family:inherit;
    background:#fff;
    transition:.3s;
}

select{
    appearance:none;
    -webkit-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'%3E%3Cpath fill='%23004b8d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 14px center;
    background-size:20px;
    padding-right:40px;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#1976d2;
    box-shadow:0 0 5px rgba(25,118,210,.4);
}

textarea{
    resize:vertical;
    min-height:220px;
}

input[type=file]{
    display:block;
    width:100%;
    margin-top:10px;
    padding:10px;
    border:1px dashed #999;
    border-radius:5px;
    background:#fafafa;
    font-size:14px;
}

input[type=file]:focus{
    outline:none;
    border-color:#1976d2;
}

/* 各項目の補足テキスト（入力例・注意書き） */
small{
    display:block;
    margin-top:6px;
    font-size:13px;
    color:#777;
}

/* お問い合わせ種別の説明文（選択で切り替わる） */
#category-desc{
    color:#004b8d;
}

.checkbox{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:30px;
    font-weight:normal;
}

.checkbox input{
    margin-top:4px;
    width:auto;
}

.submit{
    text-align:center;
    margin-top:45px;
}

button{
    background:#004b8d;
    color:#fff;
    border:none;
    padding:16px 60px;
    font-size:18px;
    border-radius:6px;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:#0060b8;
}

button:active{
    transform:scale(.98);
}

/* エラー */
.error{
    color:#d40000;
    font-size:14px;
    margin-top:5px;
}

/* フッター */
.footer{
    margin-top:50px;
    text-align:center;
    font-size:14px;
    color:#666;
}

/* スマホ */
@media screen and (max-width:768px){

    .container{
        width:95%;
        padding:20px;
        margin:20px auto;
    }

    h1{
        font-size:28px;
    }

    .notice{
        padding:20px;
    }

    button{
        width:100%;
    }

}
