/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px; /* PCでの最大幅 */
    margin: 0 auto;
    padding: 0 15px; /* 左右の余白 */
}

/* ヘッダーセクション */
.hero {
    background-color: #0056b3; /* ブランドカラーの例 */
    color: white;
    padding: 30px 0;
    text-align: center;
}

.hero__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-top__title h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.highlight {
    font-size: 1.1em;
    font-weight: bold;
    color: #a0ff8c; /* 目を引く色 */
}

/* フォームセクション */
.section {
    padding: 40px 0;
}

.section--alt {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 800px; /* フォームの最大幅 */
}

.inner {
    padding: 30px;
}

/* フォーム全体 */
.contact-form {
    display: flex;
    flex-direction: column;
}

/* 各フォームグループ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block; /* ラベルを独立した行に */
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%; /* 親要素の幅いっぱいに */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* paddingとborderをwidthに含める */
    font-size: 1em;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #007bff; /* フォーカス時の色 */
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.form-group textarea {
    resize: vertical; /* 垂直方向のみリサイズ可能に */
    min-height: 100px; /* 最小の高さ */
}

/* 必須マーク */
.required {
    color: #dc3545; /* 赤色 */
    font-weight: normal;
    margin-left: 5px;
}

/* ラジオボタンとチェックボックス */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-group label input[type="radio"],
.form-group label input[type="checkbox"] {
    display: inline-block; /* チェックボックスとラベルを同じ行に */
    margin-bottom: 0;
}

/* 送信ボタン */
.submit-button {
    text-align: center;
    margin-top: 30px;
}

.submit-button input[type="submit"] {
    background-color: #28a745; /* 緑色のボタン */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button input[type="submit"]:hover {
    background-color: #218838;
}

/* フッター */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* --- Media Queries for Responsiveness --- */
/* スマートフォン向け（768px未満） */
@media (max-width: 767px) {
    .hero-top__title h1 {
        font-size: 1.5em;
    }

    .highlight {
        font-size: 1em;
    }

    .section--alt {
        margin: 15px;
        padding: 20px;
    }

    .inner {
        padding: 15px;
    }

    .form-group label {
        font-size: 0.95em;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    .submit-button input[type="submit"] {
        padding: 12px 25px;
        font-size: 1.1em;
    }
}

/* タブレット向け（768pxから1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-top__title h1 {
        font-size: 1.8em;
    }

    .highlight {
        font-size: 1.05em;
    }

    .section--alt {
        margin: 20px;
        padding: 25px;
    }

    .inner {
        padding: 25px;
    }
}