body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #faf9f4;
    background-image: url(./images/background.webp);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-top: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h1 img {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.badge-required {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.badge-optional {
    background: #95a5a6;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #3498db;
    outline: none;
}

.check-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.check-group label:last-child {
    margin-bottom: 0;
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.radio-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-btn-group input[type="radio"] {
    display: none;
}

/* 丸いマークを消す */
.radio-btn-group label {
    display: block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    flex: 1;
    min-width: 100px;
}

.radio-btn-group input[type="radio"]:checked+label {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    font-weight: bold;
}

.radio-btn-group label:hover {
    background-color: #f0f0f0;
}

.radio-btn-group input[type="radio"]:checked+label:hover {
    background-color: #3498db;
}

/* キャンペーンボックス */
.campaign-box {
    background-color: #eaf2f8;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #3498db;
    margin-bottom: 25px;
}

.campaign-title {
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 10px;
    display: block;
}

/* エラー・成功メッセージ */
.error-list {
    background: #fdecea;
    color: #e74c3c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #fadbd8;
}

.success-box {
    background: #d4edda;
    color: #155724;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* 確認画面用テーブル */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.confirm-table th {
    width: 35%;
    background: #fafafa;
    font-weight: bold;
    color: #555;
}

/* ボタン類 */
.btn-group {
    display: flex;
    gap: 10px;
}

.submit-btn {
    width: 100%;
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #219150;
}

.back-btn {
    background-color: #95a5a6;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 30%;
}

.back-btn:hover {
    background-color: #7f8c8d;
}

.send-btn {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 70%;
}

footer {
    background-color: #3f3a39;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    margin-top: 40px;
    padding: 0.8em;
}

footer a {
    color: #ffffff;
}

/* レスポンシブ（スマホ用） */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table th {
        background: none;
        padding-bottom: 5px;
        color: #888;
        border: none;
    }

    .confirm-table td {
        padding-top: 0;
        font-weight: bold;
    }
}