/* ==========================
   問い合わせフォームのスタイル
   ========================== */

/* はみ出し防止 */
html, body {
    overflow-x: hidden; /* 横スクロールを防ぐ */
}

.contatmessage {
    font-size: 14px;
    color: red;
    margin-bottom: 10px;
}

/* ページタイトル */
.page-title {
    font-size: 32px;
    font-weight: bold;
    color: #1E0000;
    margin-bottom: 20px;
    text-align: center;
}

/* 問い合わせ説明文 */
.contact-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

/* フォーム全体 */
.contatform {
    max-width: 95%; /* 横幅のはみ出しを防ぐ */
    width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* はみ出し防止 */
}

/* 各入力項目 */
.inputlist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ラベル（項目名） */
.inputbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.index {
    width: 30%;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 8px;
    background: #eeeeee;
    border-radius: 5px 0 0 5px;
    text-align: center;
}

.value {
    width: 70%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 0 5px 5px 0;
    background: white;
    overflow: hidden; /* はみ出し防止 */
}

/* テキスト入力、選択肢、テキストエリア */
.value textarea,
.value input,
.value select {
    width: 100%;
    font-size: 16px;
    padding: 8px;
    border: none;
    background: transparent;
    outline: none;
}

/* 郵便番号入力 */
.value.textarea {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zip {
    width: 100px;
}

.address {
    width: 100%;
}

/* 注意書き */
.noticeporicy {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* ボタンエリア */
.btnArea {
    text-align: center;
    margin-top: 20px;
}

/* 戻るボタン */
.return {
    background: #ccc;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    margin-right: 10px;
}

/* 送信ボタン */
.mwform_submitButton {
    background: #1E0000;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

.mwform_submitButton:hover {
    background: #3A0000;
}

/* ==========================
   スマホ対応（768px以下）
   ========================== */
@media (max-width: 768px) {
    .contatform {
        width: 90%;
        padding: 15px;
    }

    .inputbox {
        flex-direction: column;
        align-items: flex-start;
    }

    .index {
        width: 95%;
        border-radius: 5px;
        text-align: left;
    }

    .value {
        width: 95%;
        border-radius: 5px;
        margin-top: 5px;
    }

    .btnArea {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .return,
    .mwform_submitButton {
        width: 100%;
    }
}

/* 共通のボタンデザイン */
input[type="submit"],
button {
    display: block;
    width: 100%; /* ボタンを横幅いっぱいに */
    max-width: 300px; /* 最大幅を設定（調整可） */
    margin: 20px auto; /* センター配置 */
    padding: 15px 20px; /* 余白を増やして押しやすく */
    font-size: 18px; /* フォントサイズを大きく */
    font-weight: bold; /* 文字を太く */
    text-align: center;
    color: #fff; /* 文字色を白に */
    background: linear-gradient(135deg, #8B4513, #A0522D); /* グラデーションで高級感を */
    border: none;
    border-radius: 8px; /* 角を丸く */
    cursor: pointer;
    transition: 0.3s ease-in-out; /* アニメーション */
}

/* ホバー時 */
input[type="submit"]:hover,
button:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513); /* 色を反転 */
    transform: scale(1.05); /* 少し大きく */
}

/* スマホ用レスポンシブ */
@media (max-width: 768px) {
    input[type="submit"],
    button {
        width: 90%; /* スマホでは少し幅を小さく */
        font-size: 16px; /* フォントサイズを微調整 */
    }
}