/* Material Design 3 - Simple & Clean */
:root {
    /* M3 Color System - Neutral Tone */
    --md-sys-color-primary: #5C6BC0;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #E8EAF6;
    --md-sys-color-on-primary-container: #1A237E;

    --md-sys-color-secondary: #78909C;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #ECEFF1;
    --md-sys-color-on-secondary-container: #37474F;

    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #F9DEDC;

    --md-sys-color-surface: #FAFAFA;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;

    --md-sys-color-outline: #79747E;
    --md-sys-color-outline-variant: #CAC4D0;

    --md-sys-color-background: #FFFFFF;
    --md-sys-color-on-background: #1C1B1F;

    /* Surface containers */
    --md-sys-color-surface-container: #F3F3F3;
    --md-sys-color-surface-container-high: #ECECEC;
    --md-sys-color-surface-container-highest: #E6E6E6;

    /* Elevation */
    --md-sys-elevation-level1: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --md-sys-elevation-level2: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
    --md-sys-elevation-level3: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);

    /* Shape */
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;

    /* Motion */
    --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-duration-medium: 250ms;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --md-sys-color-primary: #B3C5FF;
        --md-sys-color-on-primary: #00297B;
        --md-sys-color-primary-container: #3D5AAE;
        --md-sys-color-on-primary-container: #DBE1FF;

        --md-sys-color-secondary: #B0BEC5;
        --md-sys-color-on-secondary: #253238;
        --md-sys-color-secondary-container: #455A64;
        --md-sys-color-on-secondary-container: #CFD8DC;

        --md-sys-color-surface: #1C1B1F;
        --md-sys-color-on-surface: #E6E1E5;
        --md-sys-color-surface-variant: #49454F;
        --md-sys-color-on-surface-variant: #CAC4D0;

        --md-sys-color-outline: #938F99;
        --md-sys-color-outline-variant: #49454F;

        --md-sys-color-background: #1C1B1F;
        --md-sys-color-on-background: #E6E1E5;

        --md-sys-color-surface-container: #211F26;
        --md-sys-color-surface-container-high: #2B2930;
        --md-sys-color-surface-container-highest: #36343B;
    }
}

body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--md-sys-color-background);
    -webkit-font-smoothing: antialiased;
}

.main_lp07 {
    margin-top: 40px;
}

.main_lp07 .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.main_lp07 section {
    padding: 64px 24px;
}

.section-light {
    background-color: var(--md-sys-color-background);
}

.section-dark {
    background-color: var(--md-sys-color-surface-container);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
    letter-spacing: 0;
}

.section-text-center {
    text-align: center;
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Bar - M3 Linear Progress */
.progress-bar-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 48px;
}

.progress-bar-track {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: var(--md-sys-color-surface-container-highest);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--md-sys-color-primary);
    border-radius: 2px;
    transition: width var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
}

.progress-text span {
    font-weight: bold;
    font-size: 20px;
    color: var(--md-sys-color-primary);
}

/* Question Card - M3 Outlined Card */
.question-card {
    background: var(--md-sys-color-background);
    padding: 32px;
    border-radius: var(--md-sys-shape-corner-medium);
    border: 1px solid var(--md-sys-color-outline-variant);
    margin-bottom: 24px;
    display: none;
    animation: fadeIn var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.question-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    display: inline-block;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

.question-category {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
}

/* Options - M3 Radio Button List */
.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-small);
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    background-color: var(--md-sys-color-background);
}

.option:hover {
    background-color: var(--md-sys-color-surface-container);
}

.option input[type="radio"] {
    margin-right: 16px;
    margin-top: 2px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--md-sys-color-primary);
    flex-shrink: 0;
}

.option:has(input[type="radio"]:checked) {
    background-color: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
}

.option-label {
    font-size: 14px;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface);
}

/* Navigation Buttons */
.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.nav-button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    border: 1px solid var(--md-sys-color-outline);
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.nav-button:hover {
    background-color: var(--md-sys-color-primary-container);
}

.prev-button {
    margin-right: auto;
}

.next-button {
    margin-left: auto;
}

/* CTA Button - M3 Filled Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    text-decoration: none;
    font-family: inherit;
}

.cta-button.primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.cta-button.primary:hover {
    box-shadow: var(--md-sys-elevation-level1);
}

.cta-button.secondary {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.cta-button.secondary:hover {
    box-shadow: var(--md-sys-elevation-level1);
}

.submit-button {
    width: 100%;
    max-width: 320px;
    height: 48px;
    display: block;
    margin: 40px auto 0;
    font-size: 16px;
}

/* Result Section */
.section-result {
    background-color: var(--md-sys-color-surface-container);
}

.result-box {
    background: var(--md-sys-color-background);
    padding: 32px;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
}

.result-score {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.score-label {
    display: block;
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.score-number {
    font-size: 48px;
    font-weight: 400;
    color: var(--md-sys-color-primary);
}

.score-max {
    font-size: 16px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 400;
}

.result-type {
    text-align: center;
    margin-bottom: 32px;
}

.result-type-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.result-summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
}

.result-points {
    margin-bottom: 32px;
}

.points-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--md-sys-color-on-surface);
}

.points-list {
    list-style: none;
    counter-reset: points-counter;
}

.points-list li {
    counter-increment: points-counter;
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface);
}

.points-list li::before {
    content: counter(points-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
}

.result-rpo {
    background: var(--md-sys-color-surface-container);
    padding: 20px;
    border-radius: var(--md-sys-shape-corner-small);
}

.result-rpo p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface);
}

.result-box>.cta-button {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
}

/* Report Section */
.section-report {
    background-color: var(--md-sys-color-background);
}

.report-benefits {
    max-width: 600px;
    margin: 32px auto;
    background: var(--md-sys-color-surface-container);
    padding: 24px;
    border-radius: var(--md-sys-shape-corner-medium);
}

.report-benefits-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
    text-align: center;
}

.report-benefits-list {
    list-style: none;
    font-size: 14px;
}

.report-benefits-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.report-benefits-list li:last-child {
    border-bottom: none;
}

.report-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--md-sys-color-primary);
    font-weight: 500;
    font-size: 16px;
}

.section-report>.container {
    text-align: center;
}

.section-report .report-benefits {
    text-align: left;
}

/* Form Section */
.section-form {
    background-color: var(--md-sys-color-surface-container);
}

.download-form {

    background: var(--md-sys-color-background);
    padding: 32px;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--md-sys-color-on-surface);
    font-size: 14px;
}

.required {
    color: var(--md-sys-color-error);
    font-size: 12px;
    margin-left: 4px;
}

/* M3 Filled Text Field */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    padding-top: 20px;
    border: none;
    border-bottom: 1px solid var(--md-sys-color-outline);
    border-radius: 4px 4px 0 0;
    font-size: 16px;
    font-family: inherit;
    transition: all var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--md-sys-color-primary);
    background-color: var(--md-sys-color-surface-container-high);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--md-sys-shape-corner-small);
    transition: background-color var(--md-sys-motion-duration-medium);
    font-size: 14px;
}

.checkbox-label:hover {
    background-color: var(--md-sys-color-surface-container);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--md-sys-color-primary);
}

.download-form>.cta-button {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
}

/* Thanks Section */
.section-thanks {
    background-color: var(--md-sys-color-background);
}

.thanks-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--md-sys-color-surface-container);
    padding: 48px 32px;
    border-radius: var(--md-sys-shape-corner-large);
    text-align: center;
}

.thanks-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
    margin-bottom: 24px;
}

.thanks-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.thanks-note {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 32px;
}

.thanks-download,
.thanks-consultation {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.thanks-download h3,
.thanks-consultation h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--md-sys-color-on-surface);
}

.thanks-download p,
.thanks-consultation p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    padding: 24px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Responsive */
@media (max-width: 600px) {
    .main_lp07 section {
        padding: 0 0 64px;
    }

    .main_lp07 .container {
        padding: 0;
    }

    section {
        padding: 48px 16px;
    }

    .progress-bar-container {
        margin: 0 auto 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .question-card {
        padding: 24px 16px;
    }

    .question-text {
        font-size: 16px;
    }

    .result-box {
        padding: 24px 16px;
    }

    .score-number {
        font-size: 40px;
    }

    .download-form {
        padding: 24px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .thanks-box {
        padding: 32px 16px;
    }

    .cta-button {
        font-size: 16px;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* フォームエラーメッセージ */
.main_lp07 .form-error {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-error);
    padding: 12px 16px;
    border-radius: var(--md-sys-shape-corner-small);
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

/* 送信ボタン無効化時のスタイル */
.main_lp07 .cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}