/* static/contact.css */

/* ======== 全体のレイアウト ======== */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px); /* paddingを考慮 */
}

/* ======== フォームコンテナ（カード） ======== */
.contact-container {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 30px;
}

/* ======== フォーム要素 ======== */
form {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box; /* paddingを含めて幅100%にする */
    margin-bottom: 20px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #1a73e8; /* フォーカス時に青色に */
}

textarea {
    resize: vertical; /* 高さの変更のみ許可 */
    min-height: 120px;
}

button[type="submit"] {
    width: 100%;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #0b57d0;
}

/* ======== 送信完了メッセージ ======== */
.flash-success {
    color: #0f5132;
    list-style: none;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #badbcc;
    background-color: #d1e7dd;
    border-radius: 6px;
    text-align: center;
}

.flash-error {
    color: #842029;
    list-style: none;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c2c7;
    background-color: #f8d7da;
    border-radius: 6px;
    text-align: center;
}