body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 増加した影の効果 */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: calc(100% - 22px); /* Padding and border adjustment */
    padding: 12px; /* 増加したパディング */
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Increased font size for better readability */
    transition: border-color 0.3s; /* Smooth border color transition */
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #007bff; /* フォーカス時のボーダーカラー */
    outline: none; /* フォーカスのアウトラインを消す */
}

textarea {
    resize: vertical; /* Allow vertical resizing only */
    height: 100px; /* Set a default height */
}

select {
    height: 40px; /* Ensure consistent height for the dropdown */
    background-color: #f9f9f9; /* 背景色を追加 */
}

input[type="submit"] {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth background color and shadow transition */
}

input[type="submit"]:hover {
    background-color: #4cae4c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ボタンのホバー時の影 */
}