/* 全体のスタイル */
body {
    font-family: "Noto Sans JP", sans-serif;
    color: #323538;
    background-color: #f0f2f5;
    margin: 0;
    padding-top: 80px;
}

/* ==========================
   ヘッダー
========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgb(255, 150, 0,0.9);
    color: white;
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 28px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: rgb(255, 150, 0);
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 10px;
    }
}

/* メインビジュアルセクション */
#contact-page-visual {
    position: relative;
    height: 20vh;
    background-color: rgb(255, 150, 0,0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    text-align: center;
}

#contact-page-visual h1 {
    font-size: 48px;
    font-weight: 700;
}

#contact-page-visual p {
    font-size: 20px;
    margin-top: 20px;
    line-height: 1.8;
}

/* 問い合わせフォームセクション */
#contact-form-section {
    padding: 60px 0;
    background-color: #fff;
}

#contact-form-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: rgb(255, 150, 0);
    margin-bottom: 40px;
    text-align: center;
}

#contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(255, 150, 0);
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgb(255, 150, 0);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.button:hover {
    background-color: rgb(255, 150, 0);
}

/* フッター（インデックスページと同じ） */
footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 16px 0;
    color: #323538;
}
/* ==========================
   スマホ用 レスポンシブ対応
========================== */
@media screen and (max-width: 768px) {
    /* 📌 ヘッダーと本文の重なりを解消 */
    body {
        padding-top: 200px; /* スマホでもヘッダーの高さ分の余白を確保 */
    }

    /* 📌 ナビゲーションを縦並びに */
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 12px; /* スマホでもバランス良く配置 */
        margin-top: 10px;
    }

    /* 📌 メインビジュアルの高さを適切に調整 */
    #contact-page-visual {
        height: 30vh;
        padding: 20px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    #contact-page-visual h1 {
        font-size: 32px; /* スマホでバランスよく表示 */
    }

    #contact-page-visual p {
        font-size: 16px;
        margin-top: 10px;
    }

    /* 📌 問い合わせフォームのサイズ調整 */
    #contact-form {
        max-width: 100%; /* スマホでは画面幅いっぱい */
        padding: 20px; /* 余白を減らしてスッキリ */
    }

    /* 📌 入力フィールドのサイズと余白を調整 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px; /* 文字サイズを小さく */
        padding: 10px;
    }

    /* 📌 送信ボタンのサイズ調整 */
    .button {
        width: 100%; /* スマホではボタンを幅いっぱいに */
        padding: 14px;
        font-size: 16px;
    }

    /* 📌 テーブルをスマホ用に最適化 */
    .news-table {
        width: 100%;
        overflow-x: auto; /* 横スクロールを可能に */
    }

    .news-table th,
    .news-table td {
        padding: 8px 12px;
        font-size: 14px; /* スマホでの可読性を確保 */
    }
}
