@charset "utf=8";

.contact {
    padding: 0 30px;
}

.contact__h2 {
    border-bottom: 1px solid #1E1E1E;
    margin-top: 150px;
}

.contact__readBox {
    text-align: center; /* ボックス全体を中央寄せ */
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を中央寄せ */
}

.contact__read,
.contact__attention {
    text-align: left; /* p要素のテキストを左寄せ */
    width: 100%; /* 必要なら幅を調整 */
    max-width: 370px; /* 読みやすい幅に制限 */
}

.contact__read {
    margin-top: 55px;
}

.contact__attention {
    margin-top: 55px;
}

#contact-form {
    max-width: 600px;
    margin: 100px auto;
}

.form-group {
    display: flex;
    flex-direction: column; /* ラベルと入力欄を縦に並べる */
    margin-bottom: 15px; /* 各フォームの間隔 */
}

label {
    font-weight: bold; /* ラベルを強調 */
    margin-bottom: 5px; /* ラベルと入力欄の間隔 */
}

input, textarea {
    border: 1px solid black; /* 入力欄に黒の枠線 */
    padding: 10px;
    width: 100%; /* 入力欄をフル幅に */
    font-size: 16px;
    background-color: white; /* 背景を白に */
}

input[type="file"] {
    padding: 5px;
}

.error-message {
    color: #666666;
    font-size: 12px;
    display: none; /* 初期状態で非表示 */
}

.required {
    color: #666666;
    font-size: 12px;
    margin-left: 5px;
}
