/* =====================================
   お問い合わせフォーム共通デザイン
===================================== */

body {
    margin: 0;
    padding: 30px;
    background: #f4f7fb;
    font-family: "Yu Gothic", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

h1 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #004b8d;
    font-size: 28px;
}

.description {
    background: #f8f9fc;
    border-left: 5px solid #004b8d;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 0.95em;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: bold;
}

.required {
    color: #d60000;
    font-size: 0.9em;
}

.optional {
    color: #666666;
    font-size: 0.9em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

textarea {
    resize: vertical;
    min-height: 180px;
}

.note {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666666;
}

.button-area {
    text-align: center;
    margin-top: 35px;
}

button,
input[type="submit"] {
    background: #004b8d;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background: #00376a;
}

table.confirm {
    width: 100%;
    border-collapse: collapse;
}

table.confirm th,
table.confirm td {
    border: 1px solid #cccccc;
    padding: 10px;
    vertical-align: top;
}

table.confirm th {
    width: 180px;
    background: #f4f7fb;
    text-align: left;
}

@media screen and (max-width: 768px) {

    body {
        padding: 15px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

}