/* ==========================================================================
   Variables (LP Specific)
   ========================================================================== */
:root {
    --main-blue: #003366;
    --main-blue-dark: #002244;
    --main-blue-light: #e6f0fa;
    --accent-orange: #f39c12;
    --resolve-green: #2ecc71;
    --resolve-green-dark: #27ae60;
    --alert-red: #e74c3c;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dfe6e9;
    --bg-white: #ffffff;
    --premium-navy: #002244;
    --premium-gold: #b8860b;
    --shadow-premium: 0 20px 40px rgba(0, 34, 68, 0.15);
}

.nowrap-phrase {
    display: inline-block;
}

.diagnosis-ui {
    width: 90%;
    max-width: 600px;
    height: auto;
    position: relative;
    z-index: 10;
}

.character-guide {
    position: absolute;
    top: -80px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid var(--main-blue);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.guide-char {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2) translateY(5px);
    /* Adjust to face */
}

.dialog-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--main-blue);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dialog-box.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.dialog-box.fade-in {
    opacity: 1;
    transform: scale(1);
}

.game-title {
    color: var(--main-blue);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.game-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.btn-game-start {
    background: var(--accent-orange);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-game-start:hover {
    transform: scale(1.05);
}

.question-badge {
    display: inline-block;
    background: var(--main-blue);
    color: #fff;
    font-weight: 900;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.answer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-answer {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    max-width: 150px;
}

.btn-yes {
    background: var(--resolve-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.btn-no {
    background: #bdc3c7;
    color: #fff;
    box-shadow: 0 4px 10px rgba(189, 195, 199, 0.3);
}

.btn-yes:hover,
.btn-no:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.result-title.highlight {
    color: var(--alert-red);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.result-desc {
    font-weight: 700;
    margin-bottom: 30px;
}

.btn-game-cta {
    display: inline-block;
    background: var(--main-blue);
    color: #fff;
    font-weight: 800;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
    transition: var(--transition-base);
}

.btn-game-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

/* Likelihood Meter & Premium Results */
.likelihood-meter-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 51, 102, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(0, 51, 102, 0.1);
    text-align: left;
}

.likelihood-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--main-blue);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.likelihood-gauge {
    width: 100%;
    height: 16px;
    background: #eef2f5;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50px;
    transition: width 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.payout-estimate {
    background: linear-gradient(135deg, #fff 0%, #f9fbfc 100%);
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.08);
    margin: 25px 0;
    border: 1px solid rgba(0, 51, 102, 0.05);
    text-align: center;
}

.asbestos-amount-hero {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-orange);
    display: inline-block;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 15px rgba(243, 156, 18, 0.15);
}

.amount-unit-premium {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-left: 10px;
    vertical-align: middle;
}

.result-actions {
    margin-top: 30px;
}


/* Executive Card Refinement (LP Specific) */

.executive-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.executive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

/* Executive Card Refinement */
.executive-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.executive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--main-blue);
}

/* Floating Interactive CTA */
.floating-cta {
    position: fixed;
    bottom: 220px; /* Moved up to avoid overlapping with new navigation buttons on PC */
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 992px) {
    .floating-cta { display: none !important; } /* Hidden on mobile in favor of sticky footer */
}

.f-cta-btn {
    width: 70px;
    height: 70px;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
}

.f-cta-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.f-cta-btn.tel {
    background: var(--main-blue);
    display: none;
}

.f-cta-btn.line {
    background: #06C755;
}

.f-cta-btn.form {
    background: var(--accent-orange);
}

.f-cta-label {
    position: absolute;
    right: 85px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-base);
    pointer-events: none;
}

.f-cta-btn:hover .f-cta-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .f-cta-btn {
        width: 60px;
        height: 60px;
    }

    .f-cta-btn.tel {
        display: flex;
    }
}

.executive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--main-blue);
    transition: height 0.4s ease;
}

.executive-card:hover::before {
    height: 100%;
}

/* Counter Animation Styles */
.stat-number {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 3.5rem;
    color: var(--main-blue);
    line-height: 1;
    display: block;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Apply Serif to Headings */

/* Apply Serif to Headings */
h1,
h2,
h3,
.section-title,
.hero-title,
.game-title {
    font-family: var(--font-serif);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* ==========================================================================
   Layout Components
   ========================================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--main-blue);
    position: relative;
    padding-bottom: 24px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* Common Backgrounds */
.bg-light {
    background: var(--bg-light);
}

.bg-blue {
    background: var(--main-blue);
    color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    /* 初期位置はトップ */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

body:not(.is-subpage) header:not(.is-scrolled) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

header.is-scrolled,
body.is-subpage header {
    top: 20px;
}

.header-container {
    pointer-events: auto;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.header-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 110px;
    padding: 10px 40px;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-radius: 0;
    box-shadow: none;
    border: 1px solid transparent;
    max-width: 100%;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.is-scrolled .header-inner,
body.is-subpage header .header-inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 1200px;
}

body.is-subpage main {
    padding-top: 140px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
}

.header-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 5px;
}

.logo img {
    height: 45px;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

header.is-scrolled .logo img,
body.is-subpage header .logo img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)) !important;
    height: 40px;
}

body:not(.is-subpage) header:not(.is-scrolled) .logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    opacity: 0.9;
}

/* body.is-subpage header は常に is-scrolled と同様の見た目にするための調整 */
body.is-subpage header:not(.is-scrolled) .logo img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)) !important;
    opacity: 1;
}

/* PC Navigation */
.gnav.pc-only {
    display: flex;
}

.gnav ul {
    display: flex;
    gap: 8px;
}

.gnav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--text-dark);
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

header.is-scrolled .gnav-link,
body.is-subpage header .gnav-link {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32) !important;
    color: var(--text-dark);
}

header.is-scrolled .gnav-link span,
body.is-subpage header .gnav-link span {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32) !important;
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

body.is-subpage header:not(.is-scrolled) .gnav-link {
    color: var(--text-dark);
    text-shadow: none !important;
}

.gnav-link span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.gnav-link small {
    font-size: 10px;
    font-weight: 600;
    color: var(--main-blue);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link small {
    color: #fff;
    opacity: 0.8;
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link:hover small {
    opacity: 1;
}

.gnav-link:hover {
    background: rgba(0, 51, 102, 0.05);
    transform: translateY(-2px);
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gnav-link:hover span {
    color: var(--main-blue);
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link:hover span {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    /* アスベストはメニューが多いため、少し詰め気味に設定 */
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.contact-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--main-blue);
    opacity: 0.8;
    margin-bottom: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

header.is-scrolled .contact-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

body:not(.is-subpage) header:not(.is-scrolled) .contact-label {
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.contact-tel {
    font-size: 19px;
    /* 他より少し小さくして収まりを良くする */
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

header.is-scrolled .contact-tel {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.38) !important;
}

body:not(.is-subpage) header:not(.is-scrolled) .contact-tel {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
}

.contact-tel:hover {
    color: var(--main-blue);
}

body:not(.is-subpage) header:not(.is-scrolled) .contact-tel:hover {
    color: #fff;
    opacity: 0.8;
}

header .header-cta {
    background: linear-gradient(135deg, var(--resolve-green) 0%, var(--resolve-green-dark) 100%);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 8px 15px rgba(0, 0, 0, 0.15);
    filter: brightness(1.08);
}

.header-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
}

/* header-cta:hover removed as it's merged above */

/* ========================================
   Mouse Follow Glow
   ======================================== */
.mouse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    margin-left: -300px;
    /* Center adjustment */
    margin-top: -300px;
    /* Center adjustment */
    background: radial-gradient(circle at center, rgba(0, 255, 200, 0.25) 0%, transparent 70%);
    z-index: 6;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Force GPU */
}

.hero:hover .mouse-glow {
    opacity: 1;
}

/* ========================================
   Shimmer Effect
   ======================================== */
.shimmer-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.shimmer-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
    will-change: left;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 150%;
    }
}

/* Fix Floating CTA overlaps on Mobile */
@media (max-width: 768px) {
    .floating-cta {
        display: none !important;
    }
}

/* Mobile Nav Structure */
.gnav-sp {
    background: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transition: var(--transition-base);
    padding: 100px 40px;
    pointer-events: auto;
}

.gnav-sp.is-active {
    left: 0;
}

/* Hamburger */
.menu-trigger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-trigger span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 3px;
    background-color: var(--main-blue);
    border-radius: 2px;
    transition: var(--transition-base);
}

.menu-trigger span:nth-child(1) {
    top: 12px;
}

.menu-trigger span:nth-child(2) {
    top: 20px;
}

.menu-trigger span:nth-child(3) {
    top: 28px;
}

.menu-trigger.active span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    /* Fill screen to give more room for slider content */
    /* Adjust for slider */
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: #000;
    /* Backdrop for loading */
}

/* --- Hero Slider Base --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background Media Handling */
.hero-video-wrap,
.hero-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: url('assets/images/hero_video_poster.webp');
    background-size: cover;
    background-position: center;
}

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay for text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 51, 102, 0.2) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .hero .container {
        justify-content: center;
    }
}

@media screen and (min-width: 769px) {
    .hero .container {
        justify-content: flex-start;
        /* PC表示時は左寄せ */
    }

    .hero-content {
        margin-top: 40px;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 640px;
    /* Slightly reduced width */
    margin-left: 8%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 40px;
    /* Adjusted padding */
    border-radius: 30px;
    /* Slightly smaller radius */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.hero-slide.is-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Adjust content position for right-aligned videos */
.hero-slide-adjust-left .hero-content {
    margin-left: 5%;
    /* Shift slightly left */
    max-width: 600px;
}

.hero-line {
    display: inline-block;
    /* Changed to inline-block for better control */
}

.hero-content h1,
.hero-content .hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Softened shadow */
    letter-spacing: 0.05em;
    color: #fff;
}

.hero-content .highlight {
    color: var(--accent-orange);
    font-size: 1.3em;
    /* Significantly increased for emphasis */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 0 5px;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #fff;
}

/* Hero Dots (Navigation) */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}





/* ==========================================================================
   Buttons & CTA
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--resolve-green) 0%, var(--resolve-green-dark) 100%);
    color: #fff !important;
    padding: 18px 48px;
    /* Significantly reduced padding */
    font-size: 1.2rem;
    /* Reduced font size */
    font-weight: 900;
    border-radius: 100px;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3), 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    cursor: pointer;
    border: none;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(46, 204, 113, 0.5), 0 12px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.cta-box {
    text-align: center;
    margin-top: 60px;
}

/* ==========================================================================
   Content Components
   ========================================================================== */
/* Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card img {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

/* Diagnosis List */
.diagnosis-container {
    background: #fff;
    padding: 56px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--main-blue-light);
}

.diagnosis-list li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 700;
}

.diagnosis-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--main-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ==========================================================================
   Footer & Form
   ========================================================================== */
footer {
    background: #1a202c;
    color: #fff;
    padding: 80px 0 100px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    color: var(--accent-orange);
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.footer-info p {
    line-height: 2;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.footer-cta p {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: #777;
}

/* Contact Form */
.contact-form {
    max-width: 860px;
    margin: 60px auto 0;
    background: #fff;
    padding: 56px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.form-group .required {
    color: var(--alert-red);
    font-size: 12px;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--main-blue);
    outline: none;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--resolve-green) 0%, var(--resolve-green-dark) 100%);
    color: #fff;
    padding: 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.4), 0 5px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(46, 204, 113, 0.5), 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

.form-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(46, 204, 113, 0.3);
}

/* ==========================================================================
   Sticky Footer (Mobile)
   ========================================================================== */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.sticky-tel {
    background: var(--main-blue);
}

.sticky-mail {
    background: var(--resolve-green);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media screen and (max-width: 992px) {
    .hero-content {
        padding: 24px 32px;
    }

    .hero-content h1,
    .hero-content .hero-title {
        font-size: 2.0rem;
    }
}

@media screen and (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .header-inner {
        flex-direction: row !important;
        justify-content: space-between !important;
        height: 60px !important;
        min-height: auto !important;
        padding: 0 20px !important;
        border-radius: 30px !important;
        background: #fff !important;
        position: relative;
        z-index: 1201;
    }

    .header-top {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }

    .header-bottom {
        display: none !important;
    }

    header {
        top: 0;
    }

    .logo img {
        height: 40px;
        filter: none !important;
        opacity: 1 !important;
    }

    .header-right {
        display: none;
    }

    .gnav-sp {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1100;
        padding: 100px 40px;
        transition: left 0.4s ease;
        pointer-events: auto;
    }

    .gnav-sp.is-active {
        left: 0;
    }

    .gnav-sp ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .gnav-sp li a {
        display: block;
        width: 100%;
        padding: 15px 0;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 18px;
        position: relative;
        cursor: pointer;
        pointer-events: auto;
        z-index: 1200;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--main-blue);
        border-radius: 2px;
        transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
    }

    header:not(.is-scrolled) .hamburger span {
        background-color: var(--main-blue);
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 8px;
    }

    .hamburger span:nth-child(3) {
        top: 16px;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero .container {
        display: block;
        padding: 0 10px;
        /* Reduced from 24px to give more room */
    }

    .hero-content {
        margin: 0 auto;
        padding: 30px 15px;
        /* Restored to more balanced padding */
        background: rgba(0, 0, 0, 0.4);
        border: none;
        backdrop-filter: none;
    }

    .hero-content h1,
    .hero-content .hero-title {
        font-size: 1.4rem;
        /* Increased back since we have manual line breaks now */
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-line {
        display: inline;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .hero-content .highlight {
        font-size: 1.3em;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cta {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 40px;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

@media screen and (min-width: 769px) {
    .sp-only {
        display: none !important;
    }
}

/* ==========================================================================
   New Content Sections (Job Check, Misconceptions, Systems)
   ========================================================================== */
.section-lead {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Job Checklist Grid */
.job-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.job-item {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.job-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--main-blue-light);
}

.job-item img {
    height: 160px;
    object-fit: contain;
    margin-bottom: 24px;
}

.job-item h3 {
    color: var(--main-blue);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.job-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Misconceptions Grid */
.misconception-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .misconception-grid {
        grid-template-columns: 1fr;
    }
}

.misconception-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.misconception-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.misconception-card img {
    width: 40%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    background: #f0f4f8;
}

.misconception-text {
    width: 60%;
    padding: 32px;
}

@media (max-width: 576px) {
    .misconception-card {
        flex-direction: column;
    }

    .misconception-card img {
        width: 100%;
        height: 200px;
    }

    .misconception-text {
        width: 100%;
        padding: 24px;
    }
}

.misconception-text h3 {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    font-weight: 700;
}

.misconception-text .answer {
    color: var(--resolve-green-dark);
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.4;
}

.misconception-text p:last-child {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Secondary Button */
.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--main-blue);
    border: 2px solid var(--main-blue);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 100px;
    transition: var(--transition-base);
}

.btn-secondary:hover {
    background: var(--main-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   3 Systems Chart Component (HTML Based)
   ========================================================================== */
.system-chart-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 20px;
}

.system-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 4px solid transparent;
    position: relative;
}

/* System 1: Workers Comp (Blue) */
.system-card.type-rosai {
    border-color: #5daae0;
    background: linear-gradient(to bottom, #f0f8ff, #fff 30%);
}

.system-card.type-rosai h3 {
    color: #2980b9;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.system-card.type-rosai .sub-title {
    color: #2980b9;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

/* System 2: Construction Benefit (Orange - Main) */
.system-card.type-benefit {
    border-color: var(--accent-orange);
    background: linear-gradient(to bottom, #fff5e6, #fff 30%);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.system-card.type-benefit h3 {
    color: #d35400;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 4px;
    white-space: nowrap;
}

.system-card.type-benefit .sub-title {
    color: #d35400;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

/* System 3: Relief Law (Green/Blue) */
.system-card.type-relief {
    border-color: #5daae0;
    background: linear-gradient(to bottom, #f0f8ff, #fff 30%);
}

.system-card.type-relief h3 {
    color: #2980b9;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.system-card.type-relief .sub-title {
    color: #2980b9;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.system-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.system-features {
    text-align: left;
    margin-top: 20px;
    font-size: 0.95rem;
}

.system-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-weight: 700;
    color: var(--text-dark);
}

.system-features li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--text-gray);
    font-size: 0.8rem;
    top: 2px;
}

.type-benefit .system-features li::before {
    color: var(--accent-orange);
}

/* Arrows */
@media (min-width: 900px) {
    .system-card::after {
        content: '';
        position: absolute;
        right: -25px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        color: var(--main-blue);
        z-index: 10;
        text-shadow: 2px 2px 0 #fff;
    }

    .system-card:last-child::after {
        display: none;
    }
}

@media (max-width: 899px) {
    .system-card.type-benefit {
        transform: scale(1);
    }

    .system-chart-container {
        flex-direction: column;
        align-items: center;
    }

    .system-card::after {
        content: '';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2rem;
        color: var(--main-blue);
    }

    .system-card:last-child::after {
        display: none;
    }
}

/* Specific adjustment for slides 4-7 on PC to fix line breaks */
@media screen and (min-width: 993px) {
    .hero-slide-tight .hero-content .highlight {
        font-size: 1.1em;
    }

    .hero-slide-tight .hero-content {
        max-width: 800px;
    }
}









/* Premium Global Navigation Styles */
.section-nav-container { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 10020; display: flex; flex-direction: column; gap: 12px; }
.section-nav-dot { width: 12px; height: 12px; background: rgba(0,0,0,0.2); border: 2px solid #fff; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; position: relative; }
.section-nav-dot:hover { background: var(--accent-orange, #f39c12); transform: scale(1.2); }
.section-nav-dot.is-active { background: var(--accent-orange, #f39c12); transform: scale(1.3); }
.section-nav-label { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.section-nav-dot:hover .section-nav-label { opacity: 1; right: 28px; }

.page-top-btn { position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; background: var(--main-blue, #003366); color: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; z-index: 10021; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.3s ease; border: none; cursor: pointer; opacity: 0; visibility: hidden; }
.page-top-btn.is-visible { opacity: 1; visibility: visible; }
.page-top-btn:hover { background: var(--accent-orange, #f39c12); transform: translateY(-5px); }
.page-top-btn svg { width: 24px; height: 24px; margin-bottom: 2px; }
.page-top-btn span { font-size: 10px; font-weight: bold; }

.mobile-nav-container { position: fixed; right: 30px; bottom: 110px; z-index: 10022; }
.mobile-nav-trigger { width: 60px; height: 60px; background: var(--accent-orange, #f39c12); color: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 2px solid #fff; cursor: pointer; padding-top: 4px; }
.trigger-icon { width: 24px; height: 2px; background: #fff; position: relative; transition: all 0.3s; margin-bottom: 2px; }
.trigger-icon::before, .trigger-icon::after { content: ''; width: 24px; height: 2px; background: #fff; position: absolute; left: 0; transition: all 0.3s; }
.trigger-icon::before { top: -8px; }
.trigger-icon::after { top: 8px; }
.trigger-label { font-size: 10px; font-weight: bold; margin-top: 14px; letter-spacing: 0.05em; }
.mobile-nav-container.is-open .trigger-icon { background: transparent; }
.mobile-nav-container.is-open .trigger-icon::before { transform: rotate(45deg); top: 0; }
.mobile-nav-container.is-open .trigger-icon::after { transform: rotate(-45deg); top: 0; }

.mobile-nav-menu { position: absolute; bottom: 70px; right: 0; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 220px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s cubic-bezier(0.16,1,0.3,1); overflow: hidden; }
.mobile-nav-container.is-open .mobile-nav-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mobile-nav-list { padding: 10px 0; list-style: none; margin: 0; }
.mobile-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #333; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.mobile-nav-item:last-child { border-bottom: none; }
.mobile-nav-item:active { background: #f8f9fa; }

@media (max-width: 992px) { 
  .section-nav-container { display: none; } 
  .page-top-btn { bottom: 150px; right: 15px; width: 50px; height: 50px; } 
  .mobile-nav-container { bottom: 85px; right: 15px; } 
}

/* Mobile Hero Section Optimization */
@media (max-width: 767px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
    }

    .hero-content {
        padding: 25px !important;
        margin-left: 0 !important;
        max-width: 92% !important;
        margin: 0 auto !important;
    }
    
    .hero-content .highlight {
        font-size: 1.1em !important;
    }
}

/* 電話受付時間追加に伴う調整 */
.header-tel-label, .contact-label {
  display: block;
  font-size: 12px !important;
  color: var(--main-blue, #003366);
  margin-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
}

/* ========================================
   Wizard Form Styles (Step-by-Step)
   ======================================== */
.step-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.step-progress-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12.5px;
}

.step-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #eee;
  z-index: 1;
  transform: translateY(-50%);
}

.step-line-active {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-orange);
  z-index: 1;
  transform: translateY(-50%);
  transition: width 0.4s ease;
}

.step-indicator {
  width: 35px;
  height: 35px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #aaa;
  z-index: 2;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
}

.step-indicator.active {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

.step-indicator.completed {
  border-color: var(--accent-orange);
  background: #fff;
  color: var(--accent-orange);
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 1rem;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.form-step.active {
  display: block;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.category-btn {
  display: block;
  cursor: pointer;
  position: relative;
}

.hidden-radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.category-content {
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fafafa;
  font-weight: bold;
  color: #555;
  height: 100%;
}

.category-btn:hover .category-content {
  border-color: var(--accent-orange);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hidden-radio:checked ~ .category-content {
  border-color: var(--accent-orange);
  background: #fff8f0;
  color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.input-error {
  border-color: #e74c3c !important;
  background-color: #fdf5f5 !important;
}

@keyframes shakeError {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake-error {
  animation: shakeError 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .step-form-wrapper {
    padding: 25px 20px;
  }
}
/* Unified Wizard Action Buttons */
.wizard-actions {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 30px !important;
}

.wizard-btn {
  flex: 1 !important;
  max-width: 240px !important;
  height: 56px !important;
  border-radius: 40px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.wizard-btn-prev {
  background-color: #f1f3f5 !important;
  color: #495057 !important;
}

.wizard-btn-next, .wizard-btn-submit {
  background-color: var(--accent-orange) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3) !important;
}

.wizard-btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 576px) {
  .wizard-actions {
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }
  .wizard-btn {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: 52px !important;
    padding: 12px 10px !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
}


/* Validation Highlight */
.input-error {
  border: 2px solid #e74c3c !important;
  background-color: #fdf5f5 !important;
  border-radius: 12px;
  padding: 10px;
  animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* Ensure wizard navigation is clickable */
.step-indicator {
    pointer-events: auto !important;
    cursor: pointer !important;
}
.step-labels {
  display: flex;
  justify-content: space-between;
  max-width: 640px;
  margin: -15px auto 35px;
  padding: 0;
}

.step-labels span {
  font-size: 0.8rem;
  color: #999;
  font-weight: 800;
  width: 60px;
  text-align: center;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.step-labels span.active {
  color: var(--main-blue) !important;
}
}

/* ========================================
   Concierge & Situational Navigator
   ======================================== */
.concierge-badge {
    display: inline-block;
    background: var(--main-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.situational-navigator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.situation-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.situation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--main-blue);
}

.situation-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.situation-card h3 {
    font-size: 1.4rem;
    color: var(--main-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.situation-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Wizard Enhancements */
.wizard-q-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--main-blue);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.wizard-error-msg {
    color: #e53e3e;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
    display: none;
    padding: 10px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

@media (max-width: 768px) {
    .situation-card {
        padding: 30px 20px;
    }
    .wizard-q-title {
        font-size: 1.25rem;
    }
}

/* ========================================
   Ultimate Diagnosis Wizard Styles
   ======================================== */
.asbestos-wizard-premium {
    padding: 60px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.asbestos-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #fff; /* High contrast on navy background */
    font-weight: 700;
    font-size: 1rem;
}

.asbestos-selector:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--premium-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.asbestos-selector.active {
    background: rgba(184, 134, 11, 0.2);
    border-color: var(--premium-gold);
    color: var(--premium-gold);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}

.asbestos-selector i {
    transition: transform 0.3s ease;
}

.asbestos-selector:hover i {
    transform: scale(1.2);
}

/* Result Panel Counter Styling */
.amount-display-premium {
    font-size: 4rem;
    font-weight: 900;
    margin: 10px 0;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
}

.payout-gauge-container {
    width: 100%;
    height: 14px;
    background: #eef2f3;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.payout-gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37 0%, var(--premium-gold) 100%);
    border-radius: 7px;
    transition: width 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .asbestos-wizard-premium {
        padding: 40px 20px;
    }
    .amount-display-premium {
        font-size: 2.8rem;
    }
}

/* ==========================================================================
   Premium UX Enhancement Styles
   ========================================================================== */

/* Reveal Animations (GSAP Support) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: none; /* Handled by GSAP if active */
}

.reveal-premium {
    opacity: 0;
    transform: translateY(60px);
}

/* Photo Hover Effects */
.hover-zoom {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.hover-zoom img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

.hover-zoom:hover {
    box-shadow: var(--shadow-lg);
}

/* Premium Info Box */
.premium-info-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-left: 6px solid var(--main-blue);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.08);
    position: relative;
    overflow: hidden;
}

.premium-info-box::after {
    content: 'TOPICS';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 51, 102, 0.03);
    pointer-events: none;
}

/* Diagnosis Result Amount Styling */
.asbestos-amount-hero {
    display: inline-block;
    font-family: var(--font-serif);
    font-weight: 900;
    background: linear-gradient(to bottom, #d4af37 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 5px;
}

.amount-unit-premium {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--premium-gold);
    margin-left: 2px;
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(90deg, #333 0%, #999 50%, #333 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    to { background-position: 200% center; }
}

/* Mobile Adjustments for Amount */
@media (max-width: 768px) {
    .asbestos-amount-hero {
        font-size: 3.2rem;
    }
    .amount-unit-premium {
        font-size: 1.4rem;
    }
    .premium-info-box {
        padding: 20px;
    }
}

/* Wizard V2 UI Components */
.answer-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-answer-v2 {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-answer-v2::after {
    content: '→';
    opacity: 0.3;
    transition: transform 0.3s ease;
}

.btn-answer-v2:hover {
    border-color: var(--main-blue);
    background: var(--main-blue-light);
    transform: translateX(5px);
}

.btn-answer-v2:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.payout-estimate {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border: 1px dashed var(--premium-gold);
    text-align: center;
}

.estimate-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--premium-gold);
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.result-actions {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .btn-answer-v2 {
        font-size: 1rem;
        padding: 14px 18px;
    }
}
