@charset "UTF-8";

/* --- Form Page Styles --- */
.form-wrapper {
    flex: 1; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh; /* 画面いっぱいに広げる */
}

.form-card {
    background: #fff; 
    padding: 40px; 
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08); 
    position: relative; 
    overflow: hidden;
    width: 100%;
    max-width: 800px; /* 幅制限を追加 */
}

/* Benefit Box */
.benefit-box {
    background: #fff; 
    border-top: 4px solid var(--accent-gold);
    border-radius: 4px; 
    padding: 35px; 
    margin-bottom: 30px; 
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.benefit-label {
    display: inline-block; 
    font-family: var(--font-en); 
    font-size: 0.75rem;
    letter-spacing: 2px; 
    font-weight: 700; 
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold); 
    padding: 4px 12px;
    margin-bottom: 15px; 
    background: #fff;
}

.benefit-box h2 { 
    font-size: 1.4rem; 
    font-weight: 900; 
    margin-bottom: 25px; 
    line-height: 1.5; 
    color: var(--text-main); 
}

.benefit-list { 
    text-align: left; 
    display: inline-block; 
    margin-bottom: 15px; 
    padding: 0; 
}

.benefit-list li { 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    list-style: none; 
    position: relative; 
    padding-left: 25px; 
}

.benefit-list li i { 
    color: var(--accent-gold); 
    position: absolute; 
    left: 0; 
    top: 4px; 
}

.benefit-list strong {
    color: var(--text-main);
    background: linear-gradient(transparent 70%, rgba(230, 180, 34, 0.2) 70%);
    padding: 0 2px;
}

.benefit-note { 
    font-size: 0.75rem; 
    color: #999; 
    margin-top: 15px; 
    display: block; 
}

/* Progress */
.progress-area { margin-bottom: 30px; text-align: center; }
.progress-area p { font-size: 0.9rem; font-weight: bold; margin-bottom: 8px; }
.text-red { color: var(--alert-red); font-size: 1.1rem; }
.progress-bar { width: 100%; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.bar-fill {
    width: 80%; height: 100%; background: var(--accent-gold);
    border-radius: 3px; animation: loadBar 1.5s ease-out forwards;
}
@keyframes loadBar { from { width: 0; } to { width: 80%; } }

/* Inputs */
.form-group { margin-bottom: 25px; position: relative; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-main); }
.badge-require {
    background: var(--alert-red); color: white; font-size: 0.7rem;
    padding: 2px 6px; border-radius: 3px; margin-left: 5px; vertical-align: middle;
}
.badge-any {
    background: var(--text-light); color: white; font-size: 0.7rem;
    padding: 2px 6px; border-radius: 3px; margin-left: 5px; vertical-align: middle;
}
.form-input, .form-textarea {
    width: 100%; padding: 15px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 1rem; font-family: inherit; transition: 0.3s; background: #fdfdfd;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-gold); background: #fff; outline: none;
    box-shadow: 0 0 0 3px rgba(230, 180, 34, 0.1);
}
.form-textarea { height: 100px; resize: vertical; }
.input-note { font-size: 0.75rem; color: var(--text-light); margin-top: 5px; padding-left: 5px; }
.error-msg {
    color: var(--alert-red); font-size: 0.8rem; margin-top: 5px; display: none; font-weight: bold; padding-left: 5px;
}
.form-input.is-error { border-color: var(--alert-red); background: #fffcfc; }

/* Radios */
.radio-group { display: flex; gap: 10px; }
.radio-box { flex: 1; position: relative; cursor: pointer; }
.radio-box input { position: absolute; opacity: 0; }
.radio-bg {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-weight: 700; color: var(--text-light); transition: 0.3s; font-size: 0.9rem; background: #fff;
}
.radio-bg i { font-size: 1.1rem; }
.radio-box input:checked + .radio-bg {
    border-color: var(--accent-gold); background: #fffcf5; color: var(--text-main);
    box-shadow: 0 2px 8px rgba(230, 180, 34, 0.15);
}

/* Privacy */
.privacy-check { text-align: center; margin: 30px 0; font-size: 0.9rem; }
.privacy-check a { color: var(--accent-blue); border-bottom: 1px solid; }
.privacy-check input { transform: scale(1.2); margin-right: 5px; }

/* Submit Button */
.btn-area { text-align: center; margin-top: 30px; }
.btn-submit {
    background: linear-gradient(45deg, var(--accent-gold), #f39c12); color: #fff;
    border: none; padding: 15px 40px; border-radius: 50px; cursor: pointer;
    transition: 0.3s; box-shadow: 0 10px 25px rgba(230, 180, 34, 0.4);
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(230, 180, 34, 0.5); }
.btn-main { font-size: 1.3rem; font-weight: 900; line-height: 1.2; }
.btn-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.95; margin-top: 3px; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 43, 76, 0.9); display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-content {
    background: white; padding: 50px 30px; border-radius: 20px; text-align: center;
    max-width: 500px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.9); transition: 0.3s;
}
.modal-overlay.is-open .modal-content { transform: scale(1); }
.check-icon {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--line-green), #05a546);
    color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 20px; box-shadow: 0 5px 15px rgba(6, 199, 85, 0.3);
}
.modal-content h2 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-main); }
.modal-content p { color: var(--text-main); font-size: 0.95rem; margin-bottom: 10px; }
.modal-note { font-size: 0.8rem !important; color: var(--text-light) !important; margin-bottom: 30px !important; }
.btn-modal {
    display: inline-block; padding: 15px 40px; background: var(--text-main); color: white;
    border-radius: 50px; font-weight: bold; font-size: 0.9rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-modal:hover { opacity: 0.9; transform: translateY(-2px); }

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .form-wrapper { 
        padding: 40px 15px; /* 上下の余白を調整 */
    }
    
    .benefit-box { 
        padding: 30px 20px; 
    }
    .benefit-box h2 { 
        font-size: 1.3rem; 
    }
    .benefit-list li { 
        font-size: 0.9rem; 
    }
    
    .form-card { 
        padding: 30px 20px; 
    }
    .radio-group { 
        flex-direction: column; /* スマホでラジオボタンを縦並びに */
    }
    .btn-main { 
        font-size: 1.2rem; 
    }
}