/* ===== フォーム画面用スタイル ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    color: white;
}

.form-content {
    padding: 40px;
}

.msg_head {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
    text-align: center;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.form-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    width: 35%;
    vertical-align: top;
}

.form-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.form-table input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-table input[type="text"]:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-table textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-table textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-table small {
    font-size: 0.85em;
    color: #666;
}

.msg_foot {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.submit {
    text-align: center;
    padding: 20px 0;
}

.submit input {
    padding: 12px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit input[type="reset"] {
    background-color: #6c757d;
    color: white;
}

.submit input[type="reset"]:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.submit input[type="submit"] {
    background-color: #2e7d32;
    color: white;
}

.submit input[type="submit"]:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

/* ===== 確認画面・完了画面用スタイル ===== */
/* FormMailの確認・完了画面で使用される要素 */
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 300;
}

/* FormMailのメッセージ部分 */
.msg {
    background-color: #e8f5e8;
    border-left: 4px solid #2e7d32;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* FormMailのテーブル（確認画面） */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%;
    color: #333;
}

table td {
    background-color: white;
    color: #333;
}

/* FormMailのボタン */
input[type="submit"],
input[type="button"] {
    padding: 12px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"] {
    background-color: #2e7d32;
    color: white;
}

input[type="submit"]:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

input[type="button"] {
    background-color: #6c757d;
    color: white;
}

input[type="button"]:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* ボタンのコンテナ */
.submit,
div[align="center"] {
    text-align: center;
    margin: 30px 0;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1,
    h1 {
        font-size: 1.5em;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .form-table th,
    .form-table td,
    table th,
    table td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    
    .form-table th,
    table th {
        background-color: #2e7d32;
        color: white;
        border-bottom: none;
    }
    
    .form-table td,
    table td {
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 15px;
        color: #333;
    }
    
    .submit input,
    input[type="submit"],
    input[type="button"] {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
}