
/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 背景色と全体の設定 */
body {
    background-color: #f9f9f9;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* フォーム全体のスタイル */
form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* タイトルのスタイル */
h1 {
    font-size: 24px;
    margin: 20px 0; /* 上下の余白 */
    color: #444;
    text-align: center; /* 中央揃え */
}

/* タイトルの親要素を調整 */
.title-container {
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    max-width: 600px;
}

/* ラベルのスタイル */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* インプット、テキストエリアのスタイル */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fdfdfd;
    transition: border-color 0.3s ease;
}

/* インプットのフォーカススタイル */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

/* テキストエリアの特別設定 */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* ボタンのスタイル */
button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #0056b3;
}

/* 住所自動入力ボタンの特別設定 */
button[type="button"] {
    background: #28a745;
    margin-left: 10px;
    padding: 10px;
    font-size: 14px;
}

button[type="button"]:hover {
    background: #218838;
}

/* 必須項目のヒント */
input[required] + label::after {
    content: " *";
    color: red;
}

/* フォーム全体のレスポンシブ対応 */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }

    button[type="button"] {
        margin-left: 0;
    }
}
