/*----- メール送信フォーム用 -----*/


.contact-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    background: #fff;
}

.contact-table th,
.contact-table td {
    border: 1px solid #ccc;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.contact-table th {
    background: #f5f5f5;
    width: 30%;
    font-weight: normal;
}

.contact-table input,
.contact-table select,
.contact-table textarea {
    width: 95%;
    padding: 6px;
    font-size: 1em;
    box-sizing: border-box;
}


.contact-btns {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 20px; /* ボタン間のスペース */
}

.contact-btns input[type="submit"],
.contact-btns input[type="reset"] {
    min-width: 120px;      /* 最小幅を指定 */
    width: 140px;          /* 幅を揃える場合は固定幅 */
    height: 44px;          /* 高さも揃える */
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    /*background: #28a745;*/
    background: linear-gradient(45deg, #1E3A5F, #2F4F4F); /* 濃紺系グラデーション */
    color: #fff;
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(40,167,69,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.1em;
}


.contact-btns input[type="submit"]:hover,
.contact-btns input[type="reset"]:hover {
    /*background: #218838;*/
    background: linear-gradient(45deg, #2f5b94, #ffffff); /* 明るい濃紺に変化 */
    box-shadow: 0 4px 16px rgba(40,167,69,0.18);
    transform: translateY(-2px) scale(1.04);
}


/* セレクトボックスを分かりやすく */
.styled-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 1.1em;
    border: 2px solid #2863a7;
    border-radius: 6px;
    background: #f8fbff url("data:image/svg+xml;utf8,<svg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center/18px 18px;
    appearance: none;
    color: #333;
    font-weight: 500;
}


.styled-select:focus {
    border-color: #214588;
    outline: none;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .contact-table, .contact-table tr, .contact-table th, .contact-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .contact-table tr {
        margin-bottom: 18px; /* 行間に余白 */
        border-bottom: none;
    }
    .contact-table th {
        background: #f5f5f5;
        border-bottom: none;
        padding-bottom: 4px;
        font-size: 1em;
        border-right: none;
    }
    .contact-table td {
        border-top: none;
        padding-top: 0;
        font-size: 1em;
    }
}