/* 診断ページのスタイル */
.assessment-main {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.assessment-start {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.assessment-start h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #1f2937;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.assessment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.info-card li::before {
    content: "✓ ";
    color: #7c3aed;
    font-weight: bold;
    margin-right: 0.5rem;
}

.name-input-section {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.name-input-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.name-input-section input[type="text"],
.name-input-section input[type="email"],
.name-input-section select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    background: #ffffff;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c3aed' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.name-input-section select {
    cursor: pointer;
}

.name-input-section input[type="text"]:hover,
.name-input-section input[type="email"]:hover,
.name-input-section select:hover {
    border-color: #d1d5db;
}

.name-input-section input[type="text"]:focus,
.name-input-section input[type="email"]:focus,
.name-input-section select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.assessment-type {
    margin: 1.5rem 0;
}

.assessment-type label {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.assessment-type label:hover {
    border-color: #7c3aed;
    background: #f9fafb;
}

.assessment-type input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
}

.assessment-type input[type="radio"]:checked + span {
    color: #7c3aed;
    font-weight: 500;
}

#coupleCodeInput {
    margin-top: 1rem;
}

#startButton {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 診断フォーム */
.assessment-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.assessment-progress {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    transition: width 0.3s ease;
}

.question-container {
    min-height: 400px;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.question {
    max-width: 700px;
    margin: 0 auto;
}

.question-number {
    display: inline-block;
    background: #7c3aed;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Likert Scale */
.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.likert-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.likert-option:hover {
    border-color: #7c3aed;
    background: #f9fafb;
}

.likert-option input[type="radio"] {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.likert-option input[type="radio"]:checked ~ .likert-label {
    color: #7c3aed;
    font-weight: 600;
}

.likert-label {
    font-size: 1.05rem;
    color: #374151;
}

/* Choice Options */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choice-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.choice-option:hover {
    border-color: #7c3aed;
    background: #f9fafb;
}

.choice-option input[type="radio"] {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.choice-option input[type="radio"]:checked ~ span {
    color: #7c3aed;
    font-weight: 600;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.navigation-buttons button {
    flex: 1;
    max-width: 200px;
}

/* 戻るボタンを控えめに */
.navigation-buttons button:first-child {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.navigation-buttons button:first-child:hover {
    background: #f3f4f6;
    color: #374151;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .assessment-start h1 {
        font-size: 1.5rem;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .assessment-info {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column-reverse; /* 次へボタンを上に */
        gap: 1.5rem; /* 間隔を広げる */
    }
    
    .navigation-buttons button {
        max-width: 100%;
    }
    
    /* スマホでは戻るボタンをさらに小さく */
    .navigation-buttons button:first-child {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        max-width: 150px;
        margin: 0 auto;
    }
    
    /* 次へボタンは大きく保つ */
    .navigation-buttons button:last-child {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* メール入力と利用規約 */
.required {
    color: #ef4444;
    font-weight: 700;
}

.input-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.terms-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
}

.terms-checkbox a {
    color: #7c3aed;
    text-decoration: underline;
    font-weight: 500;
}

.terms-checkbox a:hover {
    color: #6d28d9;
}

.terms-note {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

/* モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.terms-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #9ca3af;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.modal-footer button {
    min-width: 150px;
}
