/* ==========================================================================
   Variables (LP Specific)
   ========================================================================== */
:root {
    --main-blue: #1a73e8;
    --main-blue-dark: #0f172a;
    --main-blue-light: #f1f5f9;
    --main-accent: #00d2ff;
    --accent-orange: #1a73e8;
    --resolve-green: #2ecc71;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f4f4f4;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --color-cta: #F39C12;
    --color-cta-dark: #D35400;
}

/* Executive Micro-interactions */
.cta-main,
.submit-btn,
.header-cta {
    position: relative;
    overflow: hidden;
}

.cta-main::after,
.submit-btn::after,
.header-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 55%);
    transform: rotate(-45deg);
    transition: transform 0.6s ease, opacity 0.6s ease, background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, color 0.6s ease;
    pointer-events: none;
}

.cta-main:hover::after,
.submit-btn:hover::after,
.header-cta:hover::after {
    left: 100%;
    top: 100%;
}

.executive-card {
    background: var(--bg-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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-orange);
    transition: height 0.4s ease;
}

.executive-card:hover::before {
    height: 100%;
}

/* -----------------------------------------
   Step-type Diagnosis Tool Styles
   ----------------------------------------- */
.diag-section {
    padding: 100px 0;
    background: var(--main-blue-light);
    position: relative;
    overflow: hidden;
}

.diag-card {
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.diag-progress-container {
    margin-bottom: 40px;
}

.diag-progress-bar {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.diag-progress-fill {
    height: 100%;
    background: var(--main-blue);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.diag-step {
    display: none;
    animation: fadeIn 0.5s ease both;
}

.diag-step.is-active {
    display: block;
}

.diag-question {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--main-blue);
    margin-bottom: 30px;
    text-align: center;
}

.diag-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.diag-option {
    padding: 25px;
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    background: #F8FAFC;
}

.diag-option:hover {
    border-color: var(--accent-orange);
    background: rgba(243, 156, 18, 0.05);
    transform: scale(1.02);
}

.diag-option.is-selected {
    border-color: var(--main-blue);
    background: var(--main-blue);
    color: #fff;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.diag-option.is-selected span {
    color: #fff;
}

.diag-option i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.diag-option span {
    font-weight: 700;
    font-size: 1.1rem;
}

.diag-result {
    text-align: center;
}

.diag-result-title {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 2rem;
    color: var(--main-blue);
    margin-bottom: 20px;
}

.diag-result-desc {
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

/* Potency Meter Styles */
.potency-meter-container {
    background: #f0f2f5;
    border-radius: 50px;
    height: 30px;
    width: 100%;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.potency-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f39c12, #e63946);
    border-radius: 50px;
    transition: width 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.potency-meter-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
}

.potency-value-display {
    font-size: 3rem;
    font-weight: 900;
    color: var(--main-accent);
    margin: 10px 0;
    font-family: var(--font-serif);
}

/* Premium Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-illustration {
    animation: floatingPremium 6s ease-in-out infinite;
}

@keyframes floatingPremium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

/* 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 !important;
    align-items: center !important;
    justify-content: center !important;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
}

.f-cta-btn.tel {
    background: var(--main-blue);
    display: none !important;
}

.f-cta-btn.line {
    background: #06C755;
}

.nowrap-phrase {
    display: inline-block;
}

.f-cta-btn.form {
    background: var(--accent-orange);
}

.f-cta-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.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);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .diag-options {
        grid-template-columns: 1fr;
    }

    .diag-question {
        font-size: 1.4rem;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .f-cta-btn {
        width: 60px;
        height: 60px;
    }

    .f-cta-btn.tel {
        display: flex;
    }
}

/* 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;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-base);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
    /* Header offset */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--main-blue);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--main-blue);
}

/* ==========================================================================
   Header & Navigation (Glassmorphism & 2-Tier)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2100; /* Ensure header is above nav-sp */
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-radius 0.4s ease, box-shadow 0.4s ease, max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), min-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

/* Scrolled State */
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;
    /* Default large header */
    min-height: 110px;
    padding: 10px 40px;
    background: transparent;
    max-width: 100%;
    margin: 0 auto;
    transition: background-color 0.4s ease, border-radius 0.4s ease, box-shadow 0.4s ease;
}

/* Glassmorphism Effect on Scroll */
header.is-scrolled .header-inner,
body.is-subpage header .header-inner {
    background: var(--bg-white);
    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: 1160px;
    /* Slightly tighter width */
    min-height: 80px;
    /* Compact height */
}

/* Header Top Row (Logo & Contact) */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
    transition: border-color 0.3s;
}

header.is-scrolled .header-top {
    border-bottom-color: rgba(0, 51, 102, 0.05);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: filter 0.4s ease, opacity 0.4s ease, height 0.4s ease;
}

/* Logo color inversion for transparent header on dark hero */
body:not(.is-subpage) header:not(.is-scrolled) .logo img,
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.95;
}

body:not(.is-subpage) header:not(.is-scrolled) .logo-sub-text {
    color: #ffffff !important;
    border-left-color: rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Logo restore on scroll or subpage */
header.is-scrolled .logo img,
header.is-scrolled .logo-img,
body.is-subpage header .logo img,
body.is-subpage header .logo-img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1)) !important;
    opacity: 1;
    height: 40px;
    /* Slightly smaller on scroll */
}

header.is-scrolled .logo-sub-text,
body.is-subpage header .logo-sub-text {
    color: var(--main-blue) !important;
    border-left-color: rgba(0, 51, 102, 0.2) !important;
    text-shadow: none;
}

/* Header Bottom Row (Navigation) */
.header-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 5px;
}

.gnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.gnav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    border-radius: 20px;
    transition: color 0.4s ease, background-color 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
    text-decoration: none;
}

.gnav-link span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.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: color 0.4s ease, background-color 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
}

/* Nav Link Colors - Scrolled / Subpage */
header.is-scrolled .gnav-link,
body.is-subpage header .gnav-link {
    text-shadow: none !important;
    color: var(--text-dark);
}

header.is-scrolled .gnav-link small,
body.is-subpage header .gnav-link small {
    color: var(--main-blue);
    opacity: 0.6;
}

/* Nav Link Colors - Transparent Header */
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:not(.is-subpage) header:not(.is-scrolled) .gnav-link small {
    color: #fff;
    opacity: 0.8;
}

.gnav-link:hover {
    background: rgba(0, 90, 156, 0.05);
    transform: translateY(-2px);
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Header Right Area */
.header-top .header-right {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-tel-label,
.contact-label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: -2px;
    transition: color 0.3s ease;
}

.header-tel-number,
.contact-tel {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    transition: color 0.3s ease, text-shadow 0.3s ease, opacity 0.3s ease;
}

/* Contact Colors - Transparent Header */
body:not(.is-subpage) header:not(.is-scrolled) .header-tel-label,
body:not(.is-subpage) header:not(.is-scrolled) .contact-label,
body:not(.is-subpage) header:not(.is-scrolled) .header-tel-number,
body:not(.is-subpage) header:not(.is-scrolled) .contact-tel {
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Contact Colors - Scrolled */
header.is-scrolled .header-tel-label,
header.is-scrolled .contact-label {
    color: var(--main-blue);
    text-shadow: none;
}

header.is-scrolled .header-tel-number,
header.is-scrolled .contact-tel {
    color: var(--text-dark);
    text-shadow: none;
}

body.is-subpage header .header-tel-label,
body.is-subpage header .contact-label {
    color: var(--main-blue) !important;
}

body.is-subpage header .header-tel-number,
body.is-subpage header .contact-tel {
    color: var(--text-dark) !important;
}

.header-cta,
.header-cta-btn {
    background: var(--accent-orange);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cta:hover,
.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
    background: #e67e22;
}

/* Subpage Main Padding */
body.is-subpage main {
    padding-top: 160px;
}

/* ==========================================================================
   Hero Section (Neoindex Style)
   ========================================================================== */
.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;
    /* Delay the fade-out so the new slide can fade in on top of it without the background flashing */
    transition: opacity 0s 1s, visibility 0s 1s;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    /* Fade in smoothly */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    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, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    /* Alignment */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 660px;
    margin-left: 8%;
    margin-top: 90px;
    /* Adjusted to 90px to balance nav overlap and slider dots */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 30px;
    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);
}

/* Slide Adjustment for Right-Aligned Videos */
.hero-slide.hero-slide-adjust-left .hero-content {
    margin-left: 3%;
}

.hero-line {
    display: inline;
}

.hero-content h1,
.hero-content .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.hero-labels {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}

.label-item {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--main-blue);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.label-item::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.label-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 90, 156, 0.3);
}

.cta-main {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.6);
    transition: 0.3s;
}

.cta-main:hover {
    transform: translateY(-3px);
    background: #e67e22;
}

/* Hero Dots (Navigation) */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}





/* ==========================================================================
   General Styles (Cards, Forms, Footer)
   ========================================================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

/* Contact Form Grid */
.contact-form {
    background: var(--bg-white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}



input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

input[type="radio"],
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.submit-btn {
    max-width: 500px;
    margin: 0 auto;
    display: block;
    background: var(--resolve-green);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--resolve-green-dark);
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.privacy-check .checkbox-group {
    justify-content: center;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 24px;
    padding: 10px 0;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-group label {
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 80px 0 100px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-info p strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 12px;
}

.footer-links {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.footer-links a {
    display: inline-block;
    margin: 5px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    width: 100%;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        text-align: center;
        margin-top: 20px;
    }
}

/* Sticky Footer (Mobile) */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-tel {
    flex: 1;
    background: var(--main-blue);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    padding: 15px;
    border-top: none;
}

.sticky-web {
    flex: 1;
    background: var(--accent-orange);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    padding: 15px;
}

/* Content with Image Layout */
.content-with-image {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.content-text {
    flex: 1;
    min-width: 0;
}

.content-image {
    flex: 0 0 400px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
.sp-only {
    display: none !important;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: flex !important;
        /* or block depending on usage */
    }

    .sticky-footer {
        display: flex !important;
    }

    .header-top .header-right {
        display: none !important;
    }

    /* Mobile Header */
    header.is-scrolled,
    header {
        top: 10px !important;
    }

    .header-inner {
        height: 60px !important;
        min-height: auto !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        /* Mobile header is always white/solid for usability */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 30px !important;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2005;
    }

    /* Reset glassmorphism specific styles for mobile to ensure readability */
    header.is-scrolled .header-inner {
        border-radius: 30px !important;
        border: none;
        max-width: 100%;
    }

    .logo img {
        height: 30px;
        filter: none !important;
        opacity: 1 !important;
    }

    /* Hero Mobile */
    .hero {
        min-height: 500px;
        display: block;
        /* Stack content default */
    }

    .hero .container {
        display: block;
        padding: 80px 10px 0;
        /* Restored top padding and reduced sides */
    }

    .hero-content {
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 30px 10px;
        /* Reduced to widen text area */
        background: rgba(0, 0, 0, 0.4);
        /* Darker for mobile readability */
        border: none;
        backdrop-filter: none;
        /* Perf optimization */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        /* Slightly reduced to ensure good fit */
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .hero-line {
        display: inline;
    }

    .hero-content p {
        font-size: 1rem;
        text-align: left;
        /* 長文は左揃えの方が見やすい場合が多いが、ユーザーの要望に合わせるならcenter */
    }

    /* ユーザーの意向を汲み、リード文も中央揃えに */
    .hero-content p {
        text-align: center;
    }

    .hero-labels {
        justify-content: center;
        flex-wrap: wrap;
    }

    .logo img {
        height: 40px;
        filter: none !important;
        opacity: 1 !important;
    }

    /* Hamburger */
    .hamburger {
        display: block;
        width: 24px;
        height: 18px;
        position: relative;
        cursor: pointer;
        z-index: 2001;
        margin-right: 0;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: 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;
    }

    .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);
    }

    /* Mobile Nav Overlay */
    .gnav-sp {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        z-index: 2000;
        padding: 100px 20px 80px;
        transform: translateY(-100%);
        transition: 0.4s ease;
        opacity: 0;
        pointer-events: auto;
        /* Ensure clicks through header */
    }

    .gnav-sp.is-active {
        transform: translateY(0);
        opacity: 1;
    }

    .gnav-sp ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .gnav-sp ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .gnav-sp ul li a {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--main-blue);
        text-align: left;
    }

    /* Floating CTA */
    .f-cta-btn {
        width: 60px;
        height: 60px;
        border-radius: 30px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
        text-decoration: none;
        position: relative;
    }

    .f-cta-btn.tel {
        background: var(--main-blue);
    }

    .f-cta-btn.form {
        background: var(--accent-orange);
    }

    .f-cta-btn i {
        font-size: 24px;
        font-style: normal;
    }

    .f-cta-label {
        position: absolute;
        right: 75px;
        background: var(--bg-white);
        color: #333;
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
        font-weight: 700;
        box-shadow: var(--shadow-md);
        opacity: 0;
        transform: translateX(10px);
        transition: var(--transition-base);
        pointer-events: none;
    }

    .f-cta-btn:hover .f-cta-label {
        opacity: 1;
        transform: translateX(0);
    }

    .content-with-image {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .content-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Fee Diagram (Web Chart)
   ========================================================================== */
.fee-diagram-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    flex-wrap: nowrap;
}

.fee-step {
    flex: 1;
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 真ん中の「着手金」を強調 */
.fee-step.highlight-step {
    border-color: #e74c3c;
    background: #fffafa;
    transform: scale(1.05);
    /* 少し大きく */
    z-index: 2;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.15);
}

.step-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.step-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.step-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.step-price.price-zero {
    color: #e74c3c;
    /* 0円は赤で強調 */
}

.step-price .unit {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.step-note {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 0 10px;
}

.lawyer-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.lawyer-img {
    flex-shrink: 0;
}

.lawyer-img img {
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lawyer-info h3 {
    font-size: 1.8rem;
    color: var(--main-blue);
    margin-bottom: 15px;
}

.lawyer-info h3 small {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.lawyer-title {
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.lawyer-info p {
    line-height: 1.8;
}

@media (max-width: 768px) {
    .lawyer-profile {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    .lawyer-img img {
        width: 100%;
        max-width: 250px;
    }
}

.step-arrow {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 20px;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .fee-diagram-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .step-arrow {
        transform: rotate(90deg);
        /* 矢印を下向きに */
        justify-content: center;
        margin: -10px 0;
    }

    .fee-step.highlight-step {
        transform: scale(1);
    }
}

/* Q&Aページ メインビジュアルのスタイル */
.qa-main-visual {
    margin-bottom: 60px;
    /* イラストとQA枠の間隔を広げる */
}

.qa-main-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-60 {
    margin-top: 60px !important;
}

/* ==========================================================================
   LP_4 New Content Styles (Cases & Evidence)
   ========================================================================== */
.bg-light-blue {
    background-color: #f0f8ff;
}

.reverse {
    flex-direction: row-reverse;
}

.h3-underline {
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.point-list {
    list-style: none;
    padding: 0;
}

.point-list li {
    margin-bottom: 15px;
    padding-left: 1.5em;
    position: relative;
    line-height: 1.6;
}

.point-list li::before {
    content: "●";
    color: #27ae60;
    position: absolute;
    left: 0;
}

.advice-box {
    background: #fff;
    border: 2px solid #27ae60;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.advice-box .icon {
    font-size: 1.5em;
    margin-right: 5px;
}

/* Case Studies Page */
.case-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.case-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.case-tag {
    display: inline-block;
    background: var(--main-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.case-title {
    font-size: 1.6rem;
    color: #333;
}

.case-body {
    display: flex;
    gap: 40px;
}

.case-profile {
    flex: 0 0 300px;
}

.case-img img {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    object-fit: contain;
    /* Prevent cutting off */
    background: #f8f9fa;
    /* Background for transparent images */
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 10px;
    /* Padding for icon-style images */
}

.case-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 15px;
    font-size: 0.95rem;
}

.case-meta dt {
    font-weight: 700;
    color: var(--main-blue);
}

.highlight-result {
    color: #e74c3c;
    font-weight: 800;
    font-size: 1.1em;
}

.case-detail h4 {
    font-size: 1.2rem;
    color: var(--main-blue);
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--main-blue);
    padding-left: 10px;
}

.case-detail h4:first-child {
    margin-top: 0;
}

.case-voice {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-style: italic;
}

/* ==========================================================================
   Supreme CTA Design (Video Background)
   ========================================================================== */
.cta-premium-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    margin-bottom: 60px !important;
}

.cta-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.85), rgba(211, 84, 0, 0.85));
    /* Warm Orange Overlay */
    z-index: 2;
    backdrop-filter: blur(2px);
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.cta-content p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Supreme Button */
.btn-supreme-gold {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
    color: #d35400;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 20px 80px;
    border-radius: 60px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn-supreme-gold .btn-text {
    position: relative;
    z-index: 2;
}

.btn-supreme-gold::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #fff, #fefeba);
    z-index: 1;
    transition: opacity 0.3s;
}

.btn-supreme-gold:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #e67e22;
}

.btn-supreme-gold .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    z-index: 10;
    transition: none;
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 767px) {
    .cta-premium-wrap {
        padding: 50px 15px;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }

    .btn-supreme-gold {
        width: 100%;
        padding: 18px 0;
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {
    .reverse {
        flex-direction: column-reverse;
    }

    .content-with-image.reverse .content-image {
        margin-bottom: 20px;
    }

    .case-body {
        flex-direction: column;
    }

    .case-profile {
        flex: auto;
    }
}

/* Additional Utility Classes */
.bg-light-orange {
    background-color: #fffaf0;
}

.text-left {
    text-align: left !important;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--main-blue);
    border: 2px solid var(--main-blue);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--main-blue);
    color: #fff;
}

/* ==========================================================================
   Global Grid Layouts
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 767px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Tab Navigation & Flow Steps (Migrated from flow.html)
   ========================================================================== */
.tab-nav-container {
    max-width: 600px;
    margin: 0 auto 40px;
    background: #eef2f6;
    border-radius: 50px;
    padding: 6px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.tab-item {
    width: 49%;
    text-align: center;
    padding: 14px 0;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    color: #7f8c8d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

.tab-item:hover {
    color: var(--main-blue);
    background: rgba(255, 255, 255, 0.5);
}

.tab-item.active {
    background: #fff;
    color: var(--main-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.tab-item[data-tab="defense"].active {
    color: #e74c3c;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flow Container specific */
.flow-container {
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Vertical Line */
.flow-container::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: #e0e0e0;
    z-index: 0;
    border-radius: 2px;
}

.flow-step {
    position: relative;
    z-index: 1;
    padding-left: 70px;
    margin-bottom: 50px;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: 0;
    top: 5px;
    /* Aligned with first line of title */
    width: 44px;
    height: 44px;
    background: var(--main-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    border: 4px solid var(--bg-light);
    /* Create spacing effect from line */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-num-red {
    background: #e74c3c;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.step-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.step-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.flow-step h3 {
    margin: 0 0 15px;
    color: var(--main-blue);
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.step-content p {
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* CTA Box refinement */
.cta-box {
    text-align: center;
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--main-blue), #3498db);
}

.cta-main {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 60px;
    border-radius: 50px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
    cursor: pointer;
}

.cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
}

@media (max-width: 767px) {

    .hero-video,
    .hero-image,
    .slide-background video,
    .slide-background img {
        object-position: 80% center !important;
    }

    /* Hero section mobile fixes */
    .hero-content {
        margin-left: 5% !important;
        margin-right: 5% !important;
        padding: 20px 15px !important;
        width: 90% !important;
        margin-top: 60px !important;
    }

    .hero-content h1,
    .hero-content .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    .hero-labels {
        gap: 5px !important;
        margin-bottom: 20px !important;
    }

    .label-item {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .label-item::before {
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        margin-right: 5px !important;
    }

    .hero-content .cta-main {
        padding: 12px 30px !important;
        font-size: 16px !important;
        margin-bottom: 40px;
        /* Adjusted for dots */
    }

    .flow-step {
        padding-left: 0;
        margin-top: 60px;
        /* Space for number on top */
    }

    .flow-container::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: 0;
        display: none;
        /* Hide line on mobile for simpler layout */
    }

    .step-num {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 15px;
    }

    .step-content {
        text-align: center;
        padding: 20px;
    }
}

/* ========================================
   Mouse Follow Glow
   ======================================== */
.mouse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    background: radial-gradient(circle at center, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    z-index: 6;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* ==========================================================================
   Page Specific Overrides & Layout
   ========================================================================== */
.card-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.check-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 500;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--resolve-green, #27ae60);
    font-size: 24px;
    line-height: 1;
}

.lawyer-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.lawyer-img img {
    width: 250px;
    border-radius: 5px;
}

/* Form Helper */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 767px) {
    .lawyer-profile {
        flex-direction: column;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.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.15);
    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;
    }
}









/* Premium Global Navigation Styles */
.section-nav-container { position: fixed; right: 30px; 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: 28px; 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: 32px; }

.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; } 
}

/* 電話受付時間追加に伴う調整 */
.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;
}

.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: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
  color: #999;
  cursor: pointer;
}

.step-indicator.active {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.step-indicator.completed {
  border-color: var(--accent-orange);
  background: #fff;
  color: var(--accent-orange);
  font-size: 0; /* Hide the original number */
}

.step-indicator.completed::after {
  content: '✓';
  position: absolute;
  font-size: 0.9rem; /* Restore font size for the checkmark */
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 1rem;
}

.form-step {
  display: none;
  animation: slideIn 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.category-btn {
  cursor: pointer;
  position: relative;
}

.category-content {
  background: #f8f9fa;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-btn input:checked + .category-content {
  border-color: var(--accent-orange);
  background: rgba(243, 156, 18, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.1);
}

.category-btn span {
  font-weight: 700;
  font-size: 0.95rem;
}

.hidden-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.input-error {
  border-color: #e53e3e !important;
  background-color: #fff5f5 !important;
}

.shake-error {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 768px) {
  .step-form-wrapper {
    padding: 25px 20px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Form Actions - Horizontal Layout */
@media (max-width: 768px) {
  .step-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }
  .step-actions .btn-secondary,
  .step-actions .btn-primary,
  .step-actions button {
    flex: 1 !important;
    width: 100% !important;
    padding: 12px 10px !important;
    font-size: 0.9rem !important;
    text-align: center !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 span {
    pointer-events: auto !important;
    cursor: pointer !important;
}
/* ==========================================================================
   Potency Diagnosis Tool Styles
   ========================================================================== */
.diag-section {
    padding: 80px 0;
    background: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.diag-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.diag-step-content {
    animation: fadeIn 0.5s ease;
}

.diag-question {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-blue);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
}

.diag-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.diag-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    opacity: 1; /* Changed from 0 to 1 to ensure immediate visibility */
    transform: translateY(0); /* Changed from 20px to 0 for fallback */
}

.diag-option span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.diag-option:hover {
    border-color: var(--main-blue);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.05);
}

.diag-option.is-selected {
    background: var(--main-blue);
    border-color: var(--main-blue);
    color: #fff;
}

.diag-option.is-selected span {
    color: #fff;
}

/* Result Styles */
.diag-result {
    text-align: center;
}

.potency-value-display {
    font-size: 5rem;
    font-weight: 900;
    color: var(--main-blue);
    line-height: 1;
    margin: 20px 0;
    font-family: var(--font-serif);
}

.potency-value-display span {
    display: inline-block;
}

.potency-meter-container {
    width: 100%;
    height: 12px;
    background: #edf2f7;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.potency-meter-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #f1c40f, var(--accent-orange), #e67e22);
    border-radius: 6px;
}

.diag-result-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Bar */
.diag-progress-bar {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.diag-progress-fill {
    height: 100%;
    width: 0;
    background: var(--accent-orange);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .diag-card {
        padding: 30px 20px;
    }
    .diag-question {
        font-size: 1.25rem;
    }
    .potency-value-display {
        font-size: 3.5rem;
    }
}

/* Sticky CTA Footer */
.sticky-cta-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}
.s-cta-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
}
.s-cta-btn.tel { background: var(--main-blue); }
.s-cta-btn.web { background: var(--accent-orange); }
.s-cta-icon { font-size: 1.3rem; }

@media (min-width: 769px) {
    .sticky-cta-footer { display: none !important; }
}

/* Comparison Table & LINE (Shared Pattern) */
.comparison-wrapper { overflow-x: auto; margin-top: 30px; border-radius: 12px; box-shadow: var(--shadow-md); }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 500px; }
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border: 1px solid #eee; }
.comparison-table th { background: #f8f9fa; color: var(--main-blue); font-weight: 900; }
.comparison-table th.is-selected { background: var(--main-blue); color: #fff; font-size: 1.1rem; }
.comparison-table td.is-selected { background: #e3f2fd; font-weight: bold; color: var(--main-blue); }
.item-name { background: #fdfdfd; font-weight: bold; color: var(--text-gray); width: 150px; }

.line-cta-card { background: #fff; border: 3px solid #06C755; border-radius: 20px; padding: 40px 20px; position: relative; max-width: 600px; margin: 40px auto; }
.line-cta-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #06C755; color: #fff; padding: 5px 20px; border-radius: 20px; font-weight: bold; }
.line-btn { display: inline-flex; align-items: center; justify-content: center; background: #06C755; color: #fff !important; padding: 15px 40px; border-radius: 50px; font-size: 1.2rem; font-weight: bold; text-decoration: none; margin-top: 20px; transition: transform 0.3s ease; }
.line-btn:hover { transform: scale(1.05); }
.s-cta-btn.line { background: #06C755; }


/* Mega Menu Base */
.gnav-item.has-mega {
  position: static;
}

/* ホバー時の隙間を埋めるための不可視のバッファ */
.gnav-item.has-mega .gnav-link {
  position: relative;
}

.gnav-item.has-mega .gnav-link::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 1040;
}

.mega-menu {
  position: absolute;
  top: calc(100% - 15px);
  /* ヘッダーとの隙間を埋めるために少し上に配置 */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  display: none;
  transform: translateY(15px);
  transition: transform 0.4s, opacity 0.4s, background-color 0.4s, border-color 0.4s, box-shadow 0.4s, color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1050;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
}

.header.is-scrolled .mega-menu,
body.subpage header .mega-menu {
  top: calc(100% - 20px);
  /* スクロール時やサブページではさらに重なりを確保 */
}

.gnav-item.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  display: block;
  transform: translateY(0);
}

.mega-tabbed-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  background: #fff;
}

.mega-tab-sidebar {
  width: 280px;
  background: #f8fafc;
  border-right: 1px solid #f0f0f0;
  padding: 30px 0;
  background: #fafafa;
  padding: 20px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-tab {
  padding: 18px 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #777;
  transition: transform 0.4s, opacity 0.4s, background-color 0.4s, border-color 0.4s, box-shadow 0.4s, color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-left: 4px solid transparent;
  position: relative;
}

.mega-tab:hover {
  color: #333;
  background: rgba(192, 164, 123, 0.05);
}

.mega-tab.active {
  background: #fff;
  color: #c0a47b;
  border-left-color: #c0a47b;
  box-shadow: 10px 0 20px rgba(0, 0, 0, 0.02);
  z-index: 1;
}

.mega-tab-content {
  flex: 1;
  padding: 40px 50px;
  background: #fff;
  position: relative;
}

.mega-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  animation: megaFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes megaFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-pane.active {
  display: block;
}

.mega-pane-title {
  font-size: 20px;
  margin-bottom: 30px;
  color: #222;
  font-weight: 700;
  border-bottom: 2px solid #f4f4f4;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-pane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 25px;
}

.mega-grid-item {
  position: relative;
  padding-left: 20px;
}

.mega-grid-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #c0a47b;
  opacity: 0;
  transform: translateX(-5px);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
}

.mega-grid-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.mega-grid-item a {
  color: #444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
  display: block;
}

.mega-grid-item a:hover {
  color: #c0a47b;
  transform: translateX(5px);
}

/* Legacy container for backward compatibility during rollout */
.mega-menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 20px;
}

.mega-menu-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fdfdfd;
  text-align: center;
}

.mega-menu-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px;
  background: #f8fafc;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 30px;
  border: 1px solid var(--color-accent);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
}

.mega-menu-footer a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 164, 123, 0.2);
}

.mega-category {
  animation: fadeIn 0.5s ease backwards;
}

.mega-category:nth-child(1) {
  animation-delay: 0.1s;
}

.mega-category:nth-child(2) {
  animation-delay: 0.15s;
}

.mega-category:nth-child(3) {
  animation-delay: 0.2s;
}

.mega-category:nth-child(4) {
  animation-delay: 0.25s;
}

.mega-category-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-main);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-list {
  list-style: none;
  padding: 0;
}

.mega-item {
  margin-bottom: 4px;
}

.mega-item a {
  display: block;
  padding: 5px 0;
  color: #555;
  font-size: 0.85rem;
  transition: transform 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  line-height: 1.4;
}

.mega-item a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

/* Sidebar for Subpages */
.service-sidebar {
  position: sticky;
  top: 130px;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-main);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: block;
  padding: 10px 15px;
  background: #f8fafc;
  border-radius: 8px;
  color: #444;
  font-size: 0.9rem;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--color-main);
  color: #fff;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-contact {
  text-align: right;
  line-height: 1.1;
}

.header-tel-label {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  display: block;
}

.header-tel-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-main);
}

.header-cta-btn {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
  color: #fff !important;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s;
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  pointer-events: auto;
}

.hamburger {
  display: none;
  position: relative;
  z-index: 2000;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-main);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.hamburger span:nth-child(1) {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 19px;
}

.hamburger span:nth-child(3) {
  top: 26px;
}

.hamburger.is-active span:nth-child(1) {
  transform: translate(-50%, 7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translate(-50%, -7px) rotate(-45deg);
}

/* Visibility Utilities */
@media (min-width: 1151px) {

  .sp-only,
  .nav-sp {
    display: none !important;
  }
}

@media (max-width: 1150px) {
  .pc-only {
    display: none !important;
  }
}

/* Mobile Nav */
.nav-sp {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1050;
  padding: 120px 20px 80px;
  transition: left 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.nav-sp.is-active {
  left: 0;
  pointer-events: auto;
}

.nav-sp .gnav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-sp-inner {
  width: 100%;
}

.nav-sp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-sp-list li {
  border-bottom: 1px solid #eee;
}

.nav-sp-list li a {
  display: block;
  padding: 15px 20px;
  font-size: 1.2rem;
  color: var(--text-dark, #333);
  text-decoration: none;
  font-weight: bold;
}

.nav-sp-list li a.sp-cta-btn {
  background: var(--main-blue, #003366);
  color: #fff;
  text-align: center;
  border-radius: 30px;
  margin: 20px;
  padding: 15px;
}

.nav-sp .gnav-link {
  font-size: 1.2rem;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 1150px) {
  .header-bottom {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .header-cta-btn.pc-only {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .header-inner {
    min-height: 70px;
    padding: 5px 20px;
  }

  header.is-scrolled .header-inner,
  body.subpage header .header-inner {
    min-height: 60px;
  }

  header {
    top: 10px !important;
  }

  .header-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 70px !important;
    padding: 5px 20px;
    position: relative;
    z-index: 2005;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  /* Ensure hamburger is visible inside the capsule */
  .hamburger {
    display: block;
    z-index: 2006;
    /* Ensure it stays clickable */
  }

  header.is-scrolled .header-inner,
  body.subpage header .header-inner {
    min-height: 70px;
    top: 0;
    /* Reset top relative to header container if needed, but header has top:10px */
  }

  header.is-scrolled,
  body.subpage header {
    top: 10px;
  }
}



/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f0f0f0;
  padding-top: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.slide-background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  /* Increased to prevent wrapping with Mincho font */
  margin-left: 10%;
  padding: 40px 40px 120px;
  padding-top: 170px;
  /* Reduced to 170px to ensure CTA button fits */
  /* Glass effect for Hero Card if needed, or transparent if clean */
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  /* Premium feel */
  line-height: 1.4;
  /* Slightly increased for readability */
  margin-bottom: 25px;
  color: var(--color-text-primary);
  text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.8);
}

.hero-description {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.8);
}

.hero-cta .btn {
  font-size: 1.2rem;
  padding: 20px 60px;
}

@media (max-width: 768px) {
  .hero {
    /* No padding needed on container as we use hero-content padding */
    padding-top: 0;
  }

  .hero-content {
    margin-left: 0 !important;
    padding: 30px 15px 100px !important;
    padding-top: 130px !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
  }
}

.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
}

.dot.is-active {
  background: var(--color-cta);
  border-color: var(--color-cta);
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .hero-dots {
    bottom: 20px;
  }
}

/* Form Validation Errors */
.input-error {
  border: 2px solid #e53e3e !important;
  background-color: #fff5f5 !important;
}

.category-error {
  border: 2px solid #e53e3e !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2) !important;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 18px 45px;
  border-radius: 100px;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  cursor: pointer;
  border: none;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.btn-outline {
  background: #f9f9f9;
  color: #555;
  border: 2px solid #eaeaea;
}

.btn-outline:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.ft-btn.active {
  background: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(181, 149, 47, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(181, 149, 47, 0.5);
}

/* ========================================
   Pain Points
   ======================================== */
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pain-point-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
}

.pain-point-text {
  font-weight: bold;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pain-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pain-points-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Comparison Table (NEW)
   ======================================== */
.comparison-table-wrapper {
  overflow-x: auto;
  /* Allow horizontal scroll on mobile */
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding-top: 15px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  /* For border-radius */
  border-spacing: 0;
  background: #fff;
  min-width: 600px;
  /* Force width on mobile */
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: #f5f5f5;
  color: #555;
  font-weight: bold;
}

/* Highlight Lawyer Column */
.comparison-table .col-lawyer {
  background: var(--color-main);
  color: #fff;
  position: relative;
  width: 28%;
}

.comparison-table .col-lawyer::before {
  content: "BEST";
  display: block;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 10px;
}

.row-head {
  text-align: left;
  font-weight: bold;
  background: #fafafa;
  width: 20%;
}

.cell-ok {
  color: var(--color-main-light);
  font-size: 1.5rem;
  font-weight: bold;
}

.cell-ng {
  color: #ccc;
  font-size: 1.5rem;
}

.cell-best {
  color: #c0392b;
  /* Red circle */
  font-size: 1.8rem;
  font-weight: 900;
  background: rgba(192, 57, 43, 0.05);
  /* Faint highlight */
}

.comparison-table td.cell-best {
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

/* Bottom border for lawyer column */
.comparison-table tr:last-child td.cell-best {
  border-bottom: 2px solid var(--color-accent);
}

.comparison-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
}

/* ========================================
   User Path Navigator (Situational UX)
   ======================================== */
.user-path-navigator {
  margin-bottom: 40px;
}

.path-navigator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.path-card {
  display: flex;
  align-items: center;
  padding: 35px 30px;
  border-radius: 24px;
  text-decoration: none;
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.path-card:hover,
.path-card.active {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.path-card.active {
  background-color: var(--color-bg-light);
  /* Fallback */
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.path-card.receive {
  background: linear-gradient(135deg, #fdfcf0 0%, #f8f1d7 100%);
}

.path-card.leave {
  background: linear-gradient(135deg, #f0f9f6 0%, #def0ea 100%);
}

.path-icon {
  font-size: 3.5rem;
  margin-right: 25px;
  z-index: 2;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.path-content {
  z-index: 2;
  flex: 1;
}

.path-label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.path-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-main);
  margin-bottom: 10px;
  line-height: 1.2;
}

.path-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-tag {
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.path-arrow {
  margin-left: 15px;
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform 0.3s;
  z-index: 2;
}

.path-card:hover .path-arrow {
  transform: translateX(5px);
}

/* Goal Shortcuts */
.goal-shortcuts {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.goal-btn {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-weight: bold;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.goal-btn i {
  margin-right: 10px;
  font-style: normal;
  font-size: 1.1rem;
}

.goal-btn:hover,
.goal-btn.active {
  background: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Active Filter State for Service Grid */
.solution-item.is-dimmed {
  opacity: 0.3;
  filter: grayscale(0.8);
  pointer-events: none;
}

.solution-item.is-highlighted {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .path-navigator-grid {
    grid-template-columns: 1fr;
  }

  .path-icon {
    font-size: 2.8rem;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .goal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Services / Solution Grid
   ======================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 items for 32 items grid */
  gap: 15px;
  margin-top: 50px;
}

@media (max-width: 1400px) {
  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

.solution-item {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.solution-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.solution-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 15px 0 10px;
  color: var(--color-main);
  line-height: 1.4;
}

.solution-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.solution-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

.solution-link:hover {
  text-decoration: none;
}

/* FAQ Directory Styles */
.faq-directory {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.faq-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.fd-tab {
  flex: 1;
  padding: 20px 10px;
  border: none;
  background: transparent;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}

.fd-tab.active {
  color: var(--color-main);
  border-bottom-color: var(--color-accent);
  background: #fff;
}

@media (max-width: 768px) {
  .faq-tabs {
    flex-wrap: wrap;
  }

  .fd-tab {
    flex: none;
    width: 50%;
    border-bottom: 1px solid #e2e8f0;
  }

  .fd-tab.active {
    background: #fdfcf8;
  }
}

.faq-content {
  padding: 30px;
}

.fd-category-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.fd-category-content.active {
  display: block;
}

.faq-item {
  background: #fff;
  margin-bottom: 15px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 25px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding-right: 50px;
  font-size: 1.05rem;
}

.faq-question::after {
  content: var(--icon, '+');
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: 400;
}

.faq-answer {
  padding: 0 25px 25px;
  color: #475569;
  line-height: 1.8;
  font-size: 0.95rem;
  border-top: 1px dashed #f1f5f9;
  padding-top: 15px;
  margin-top: 5px;
}

.faq-cta {
  text-align: center;
  margin-top: 60px;
  padding: 50px;
  background: linear-gradient(rgba(248, 250, 252, 0.5), rgba(248, 250, 252, 1));
  border-radius: 0 0 30px 30px;
}



/* ========================================
   Lawyer Profile
   ======================================== */
.lawyer-profile {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 50px;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.lawyer-img {
  width: 300px;
  flex-shrink: 0;
}

.lawyer-img img {
  border-radius: 20px;
}

.lawyer-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .lawyer-profile {
    flex-direction: column;
    padding: 30px;
  }

  .lawyer-img {
    width: 100%;
    max-width: 300px;
  }
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
  background: #fdfdfd;
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.form-label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.required {
  color: red;
  font-size: 0.8rem;
  margin-left: 5px;
}

.form-wrapper .btn {
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--color-main);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 10px;
}

.footer-links {
  margin: 20px 0;
}

/* Sticky Footer (SP) */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  /* Default hidden */
}

@media (max-width: 768px) {
  .sticky-footer {
    display: flex;
  }
}

.sticky-btn {
  flex: 1;
  text-align: center;
  padding: 15px;
  font-weight: bold;
}

.sticky-tel {
  background: #fff;
  color: var(--color-main);
}

.sticky-mail {
  background: var(--color-main);
  color: #fff;
}

/* Utilities */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 1150px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }
}

/* ========================================
   Cost Section (NEW)
   ======================================== */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.cost-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: transform 0.3s;
}

.cost-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.cost-item.featured {
  border: 2px solid var(--color-accent);
  background: #fffcf5;
}

.cost-item .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cost-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-main);
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.cost-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.cost-price {
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.price-prefix {
  font-size: 0.8rem;
  display: block;
  color: #888;
  margin-bottom: 5px;
}

.price-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-main);
  line-height: 1;
}

.price-unit {
  font-size: 1rem;
  font-weight: bold;
  margin-left: 2px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 12px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}

.cost-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #555;
}

.cost-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-main);
  text-align: right;
}

.cost-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: auto;
  line-height: 1.6;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
}

.cost-note {
  text-align: right;
  font-size: 0.8rem;
  color: #777;
  margin-top: 20px;
}

@media (max-width: 1150px) {
  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cost-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cost-item {
    padding: 25px;
  }
}

/* ========================================
   Interactive Tools (Simulator & Tax Check)
   ======================================== */
.interactive-tools {
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: #fff;
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.tool-icon {
  font-size: 2.5rem;
}

.tool-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-main);
  margin-bottom: 0;
}

.tool-desc {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 30px;
}

.tool-body {
  flex: 1;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

/* Range Input Styling */
.range-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-main);
  text-align: center;
  margin-bottom: 10px;
}

.tool-range {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.tool-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.tool-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* Tool Tip/Result Area */
.result-area {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #475569;
}

.result-total {
  border-top: 2px solid #e2e8f0;
  margin-top: 15px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-total span:first-child {
  font-weight: bold;
  color: var(--color-text-primary);
}

.total-val {
  color: var(--color-main);
}

.total-val strong {
  font-size: 2rem;
  font-weight: 900;
}

/* Tax Tool Specifics */
.tool-input-num {
  width: 100px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: right;
  margin-right: 5px;
}

.heir-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.heir-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  font-weight: bold;
}

.heir-btn:hover {
  background: #f8fafc;
  border-color: var(--color-main);
}

.heir-btn.active {
  background: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
}

.result-box {
  padding: 20px;
  border-radius: 15px;
  text-align: center;
}

.result-box.positive {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.result-box.negative {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.res-status {
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tax-result p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.tool-footer {
  margin-top: auto;
}

.tool-footer .note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 20px;
  text-align: center;
}

.tool-footer .btn {
  width: 100%;
  padding: 18px;
}

@media (max-width: 480px) {
  .tool-card {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   Glossary Page Styles (LP6 Adaptation)
   ========================================================================== */
/* Subpage Header Compatibility */
/* Subpage Header Compatibility - Standardized to solid capsule */

body.service-subpage header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.page-hero--service {
  background-image: linear-gradient(135deg, #1A252F 0%, #2C3E50 100%), url('assets/images/header_bg_faq.webp');
  /* Fallback to FAQ bg or gradient */
  background-blend-mode: overlay;
}

.service-subpage {
  padding-top: 0 !important;
  /* Let hero handle it */
}

/* Subpage Hero Styles */
.page-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 64, 112, 0.6);
  /* Brand Blue with transparency */
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  letter-spacing: 0.1em;
  font-family: serif;
  position: relative;
  z-index: 2;
}

/* Individual Page Modifiers */
.page-hero--faq {
  background-image: url('assets/images/header_bg_faq.webp');
  padding-top: 195px;
}

.page-hero--glossary {
  background-image: url('assets/images/header_bg_glossary.webp');
}

.page-hero--knowledge {
  background-image: url('assets/images/header_bg_knowledge_top.webp');
}

.page-hero--knowledge-top {
  background-image: url('assets/images/header_bg_knowledge_top.webp');
}

.page-hero--flow {
  background-image: url('assets/images/header_bg_flow.webp');
}

.page-hero--procedure {
  background-image: url('assets/images/header_bg_procedure.webp');
}

.page-hero--investigation {
  background-image: url('assets/images/header_bg_investigation.webp');
}

.page-hero--will {
  background-image: url('assets/images/header_bg_will.webp');
}

.page-hero--division {
  background-image: url('assets/images/header_bg_division.webp');
}

.page-hero--portion {
  background-image: url('assets/images/header_bg_portion.webp');
}

.page-hero--tax {
  background-image: url('assets/images/header_bg_tax.webp');
}

.breadcrumbs {
  background: #f5f5f5;
  padding: 12px 0;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid #eee;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--color-main);
}

.glossary-wrapper {
  background-color: var(--color-bg-light);
}

.glossary-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar TOC */

.glossary-toc {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 140px;
  /* Adjust for sticky header */
}

.glossary-toc h3 {
  font-size: 1.2rem;
  color: var(--color-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  color: var(--color-text-secondary);
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.toc-list a:hover {
  color: var(--color-main);
  background: var(--color-bg-secondary);
  transform: translateX(5px);
}

.toc-list a.active {
  color: var(--color-main);
  font-weight: 700;
  border-left: 3px solid var(--color-accent);
  background: rgba(212, 175, 55, 0.1);
  /* Gold tint */
  padding-left: 15px;
}

/* Glossary Content */
.glossary-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-container input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.search-container input:focus {
  border-color: var(--color-main);
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 64, 112, 0.15);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* Categories */
.glossary-category {
  background: #fff;
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.category-icon {
  font-size: 2.5rem;
  background: var(--color-bg-secondary);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-main);
}

.category-title {
  font-size: 1.8rem;
  color: var(--color-main);
  margin: 0;
  font-weight: 900;
}

/* Terms Grid */
.terms-grid {
  display: grid;
  gap: 25px;
}

.term-card {
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-left: 5px solid var(--color-main);
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.4s, opacity 0.4s, background-color 0.4s, border-color 0.4s, box-shadow 0.4s, color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.term-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.term-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.term-dt {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.term-dd {
  line-height: 1.8;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.term-dd strong {
  background: linear-gradient(transparent 60%, rgba(212, 175, 55, 0.3) 60%);
  font-weight: 700;
}

/* Scroll To Top */
.scroll-to-top {
  position: fixed;
  bottom: 180px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  text-decoration: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Animations
   ======================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 900px) {
  .glossary-layout {
    grid-template-columns: 1fr;
    padding: 40px 15px;
    gap: 30px;
  }

  .glossary-toc {
    display: none;
    /* Hide TOC on mobile for simplicity */
  }

  .category-title {
    font-size: 1.5rem;
  }

  .glossary-category {
    padding: 25px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

/* Information Center Section */
.info-center {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.info-center .section-title {
  color: var(--color-main);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-center .section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--color-main);
}

.info-title {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.info-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  /* Push button to bottom */
}

.info-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #fff;
  color: var(--color-main);
  border: 1px solid var(--color-main);
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  font-weight: bold;
}

.info-card:hover .info-btn {
  background: var(--color-main);
  color: #fff;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.glossary-toc h2 {
  font-size: 1.2rem;
  color: var(--color-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

/* ========================================
   Strength Section (New)
   ======================================== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.strength-item {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 5px solid var(--color-main);
  position: relative;
  overflow: hidden;
}

.strength-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.strength-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: var(--color-bg-secondary);
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-main);
}

.strength-item h3 {
  font-size: 1.4rem;
  color: var(--color-main);
  margin-bottom: 15px;
  font-weight: 900;
}

.strength-item p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .strength-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================
   Case Studies Section (New)
   ======================================== */
.case-studies {
  background-color: #fcfcfc;
}

.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.step-form-wrapper {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  scroll-margin-top: 140px;
}

.case-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.case-header {
  background: var(--color-main);
  color: #fff;
  padding: 20px 30px;
  position: relative;
}

.case-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.case-title {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
}

.case-body {
  padding: 30px;
}

.case-flow {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.case-step {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
}

.case-step h4 {
  font-size: 1rem;
  color: var(--color-main);
  margin-bottom: 10px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  display: inline-block;
}

.case-step.situation h4 {
  border-color: #999;
  color: #555;
}

.case-step.result h4 {
  border-color: var(--color-cta);
  color: var(--color-cta-dark);
}

.case-step p {
  font-size: 0.95rem;
  color: #333;
}

.case-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ccc;
}

@media (max-width: 768px) {
  .case-flow {
    flex-direction: column;
    gap: 10px;
  }

  .case-arrow {
    transform: rotate(90deg);
    /* Down arrow */
    height: 30px;
  }
}

/* Visual Guide Section Styles */
.visual-guide-section {
  background: #fff;
  padding: 100px 0;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 1150px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }
}

.visual-card {
  background: #f8fafc;
  border-radius: 24px;
  padding: 35px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s;
}

.visual-card:hover {
  transform: translateY(-5px);
}

.visual-header {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-num {
  background: var(--color-main);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.visual-header h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-main);
}

.diagram-placeholder {
  background: #fff;
  border-radius: 16px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px dashed #cbd5e1;
  overflow: hidden;
  position: relative;
}

.ft-node {
  background: var(--color-main);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
  font-weight: bold;
}

.visual-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  font-weight: 500;
}

/* ========================================
   Animation & Premium Tweaks
   ======================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Typography */
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========================================
   Typography Overrides (Premium Font)
   ======================================== */
.section-title,
.section-subtitle,
.solution-title,
.case-title,
.info-title,
.flow-content h3,
.lawyer-info h3,
.strength-item h3,
h1,
h2,
h3 {
  font-family: var(--font-serif);
}

/* ========================================
   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;
  display: inline-block;
}

.shimmer-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  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;
  }

  .scroll-to-top {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Sidebar Sticky Fix */
.glossary-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
}

/* ========================================
   Service Subpages (FD Framework)
   ======================================== */
.service-subpage {
  background: var(--color-bg-light);
}

.service-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
  color: #fff;
  text-align: center;
}

.service-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.service-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-hero .badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 15px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-section {
  padding: 80px 0;
}

.service-content-card {
  background: #fff;
  border-radius: 30px;
  padding: 60px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.service-content-card .section-title {
  text-align: left;
  margin-bottom: 30px;
}

/* Service Page Layout */
.service-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.service-main-content {
  flex: 1;
  min-width: 0;
}

.service-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
}

.sidebar-title {
  font-size: 1.25rem;
  color: var(--color-main);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-accent);
  font-family: var(--font-serif);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: block;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-weight: 500;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
  font-size: 0.95rem;
}

.sidebar-menu a:hover {
  background: #f8fafc;
  border-color: var(--color-main);
  color: var(--color-main);
  transform: translateX(5px);
}

.sidebar-menu a.active {
  background: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
  font-weight: 700;
}

.sidebar-cta-box {
  margin-top: 30px;
  background: #fff9e6;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #f39c12;
}

.sidebar-cta-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d35400;
  margin-bottom: 10px;
}

.sidebar-cta-text {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.problem-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0;
}

.problem-item {
  background: #fdf2f2;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #ef4444;
  font-size: 0.95rem;
}

.illust-box-inner {
  text-align: center;
}

.illust-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
}

.illust-text {
  font-weight: 700;
  color: #475569;
}

.cost-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #64748b;
}

/* Illustration Containers */
.illust-box {
  background: #f8fafc;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  position: relative;
}

.illust-box span {
  font-size: 4rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Key Points Grid */
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.point-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s;
}

.point-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.point-num {
  width: 50px;
  height: 50px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 20px;
}

/* Process Timeline (Subpage Version) */
.timeline-v2 {
  max-width: 1000px;
  margin: 50px auto;
  position: relative;
}

.timeline-v2::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #e2e8f0;
}

.timeline-v2-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.t-v2-icon {
  width: 84px;
  height: 84px;
  background: #fff;
  border: 4px solid var(--color-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  z-index: 1;
}

.t-v2-content {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

.t-v2-content h3 {
  color: var(--color-main);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

/* Cost Detailed Table */
.cost-table-detailed {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.cost-table-detailed th,
.cost-table-detailed td {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.cost-table-detailed th {
  background: #f8fafc;
  color: var(--color-main);
  font-weight: 700;
  width: 30%;
}

@media (max-width: 768px) {
  .service-hero {
    padding: 100px 0 60px;
  }

  .service-hero h1 {
    font-size: 2rem;
  }

  .service-content-card {
    padding: 30px;
  }

  .points-grid {
    grid-template-columns: 1fr;
  }

  .timeline-v2::before {
    left: 20px;
  }

  .t-v2-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .timeline-v2-item {
    gap: 15px;
  }

  .cost-table-detailed th {
    width: 40%;
    padding: 12px;
    font-size: 0.9rem;
  }

  .cost-table-detailed td {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Layout Adjustments */
  .service-layout {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .service-sidebar {
    width: 100%;
    position: static;
    flex-shrink: 1;
  }

  .service-content-card {
    padding: 30px 20px;
  }
}

/* ========================================
   FAQ & Glossary Accordion Styles
   ======================================== */
.term-card {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.term-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s ease;
  background: #fff;
}

.term-header:hover {
  background: #f8fafc;
}

.term-header.is-open {
  background: #fdfbf9;
  color: var(--color-main);
  border-bottom: 1px solid #f1f5f9;
}

.term-dt {
  font-weight: 700;
  color: var(--color-main);
  font-size: 1.05rem;
  line-height: 1.5;
  width: 90%;
  margin: 0;
}

.term-header::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-cta);
  border-bottom: 2px solid var(--color-cta);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 15px;
  display: block;
}

.term-header.is-open::after {
  transform: rotate(-135deg);
}

.term-dd {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  padding: 0 25px;
  opacity: 0;
  box-sizing: border-box;
}

.term-dd.is-open {
  padding-top: 20px;
  padding-bottom: 25px;
  opacity: 1;
}

/* Adjustments for Mobile */
@media (max-width: 768px) {
  .term-header {
    padding: 15px 20px;
  }

  .term-dt {
    font-size: 0.95rem;
  }

  .term-header::after {
    width: 8px;
    height: 8px;
  }
}

/* ========================================
   ======================================== */
.defamation-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
  padding: 30px 20px;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 12px;
}

.tree-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
  position: relative;
}

.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px 10px;
  width: 130px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
  z-index: 2;
}

.tree-node.main {
  border-color: #555;
  background: #555;
  color: #fff;
}

.tree-node.spouse {
  border-color: #e91e63;
  background: #fce4ec;
}

.tree-node.child {
  border-color: #2196f3;
  background: #e3f2fd;
}

.tree-node.parent {
  border-color: #ff9800;
  background: #fff3e0;
}

.tree-node.sibling {
  border-color: #4caf50;
  background: #e8f5e9;
}

.node-icon {
  font-size: 2.2rem;
  margin-bottom: 5px;
  line-height: 1;
}

.node-label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.3;
}

.node-share {
  background: #333;
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.tree-node.spouse .node-share {
  background: #e91e63;
  color: #fff;
}

.tree-node.child .node-share {
  background: #2196f3;
  color: #fff;
}

.tree-node.parent .node-share {
  background: #ff9800;
  color: #fff;
}

.tree-node.sibling .node-share {
  background: #4caf50;
  color: #fff;
}

.tree-node.main .node-status {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* Connectors */
.connector-vertical {
  width: 2px;
  height: 30px;
  background: #ccc;
  margin: 0 auto;
}

.connector-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.connector-line-horizontal {
  height: 2px;
  background: #ccc;
  width: 170px;
  /* Fixed width for perfect alignment (130/2 + 40 + 130/2) */
  margin: 0 auto;
  position: relative;
  top: -15px;
  z-index: 1;
}

.tree-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cross-sign {
  font-size: 1.5rem;
  color: #ccc;
  align-self: center;
  margin: 0 10px;
}

@media (max-width: 600px) {
  .tree-row {
    gap: 10px;
    flex-wrap: nowrap;
    /* Prevent stacking on mobile */
  }

  .tree-node {
    width: 100px;
    padding: 10px 5px;
  }

  .node-icon {
    font-size: 1.8rem;
  }

  .node-label {
    font-size: 0.8rem;
  }

  .node-share {
    font-size: 0.8rem;
    padding: 2px 8px;
  }

  .connector-line-horizontal {
    width: 110px;
    /* (100/2 + 10 + 100/2) */
  }
}

.defamation-patterns {
  margin-top: 30px;
}

.pattern-title {
  background: #f4f6f9;
  padding: 10px 15px;
  border-left: 5px solid var(--color-main);
  font-size: 1.1rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #333;
}

/* ========================================
   Service Page: Posthumous Divorce (Shigo Rikon)
   ======================================== */
.shigorikon-page .page-hero--shigorikon {
  background-image: url('assets/images/hero-shigorikon.webp');
}

.shigorikon-page h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shigorikon-page .section-title {
  border-left-color: #009688;
}

.shigorikon-page .intro-card {
  border-top: 5px solid #009688;
}

.highlight-box {
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 150, 136, 0.1);
}

.pain-points-list li {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-points-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-card {
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid #4caf50;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 15px;
}

.timeline-v2-item .t-v2-icon {
  background: #80cbc4;
  /* Teal accent */
  color: #fff;
}

/* Button Customization for this page */
.shigorikon-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.shigorikon-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.shigorikon-page .btn-primary {
  background: linear-gradient(135deg, #009688 0%, #004d40 100%) !important;
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.4);
}

.shigorikon-page .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 150, 136, 0.5);
}

/* ========================================
   Service Page: Bar Association Inquiry (Shoukai Chosha)
   ======================================== */
.chosha-page .page-hero--chosha {
  background-image: url('assets/images/hero-chosha.webp');
}

.chosha-page .section-title {
  border-left-color: #1a237e;
}

.chosha-page .intro-card {
  border-top: 5px solid #1a237e;
}

/* Reusing highlight-box and card styles from shigo-rikon but with overrides if needed */
.chosha-page .highlight-box {
  background: #e8eaf6;
  border-left-color: #1a237e;
  box-shadow: 0 4px 6px rgba(26, 35, 126, 0.1);
}

.chosha-page .highlight-box h3 {
  color: #1a237e;
}

/* Timeline Override */
.chosha-page .timeline-v2-item .t-v2-icon {
  background: #3949ab;
  /* Indigo accent */
}

/* Button Customization for this page */
.chosha-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chosha-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.chosha-page .btn-primary {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%) !important;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

.chosha-page .btn-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5);
}

/* ========================================
   Service Page: Special Authority (Special Representative)
   ======================================== */
.special-auth-page .page-hero--special-auth {
  background-image: url('assets/images/hero-special-auth.webp');
}

.special-auth-page .section-title {
  border-left-color: #ef6c00;
}

.special-auth-page .intro-card {
  border-top: 5px solid #ef6c00;
}

.special-auth-page .highlight-box {
  background: #fff3e0;
  border-left-color: #ef6c00;
  box-shadow: 0 4px 6px rgba(239, 108, 0, 0.1);
}

.special-auth-page .highlight-box h3 {
  color: #e65100;
}

/* Timeline Override */
.special-auth-page .timeline-v2-item .t-v2-icon {
  background: #ff9800;
  /* Orange accent */
}

/* Button Customization */
.special-auth-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.special-auth-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.special-auth-page .btn-primary {
  background: linear-gradient(135deg, #ef6c00 0%, #e65100 100%) !important;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4);
}

.special-auth-page .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5);
}

/* Icon Card Circle Override */
.special-auth-page .icon-circle {
  background: #ffcc80 !important;
  color: #e65100 !important;
}

/* ========================================
   ======================================== */
.adopted-page .page-hero--adopted {
  background-image: url('assets/images/hero-adopted.webp');
}

.adopted-page .section-title {
  border-left-color: #66bb6a;
}

.adopted-page .intro-card {
  border-top: 5px solid #66bb6a;
}

.adopted-page .highlight-box {
  background: #e8f5e9;
  border-left-color: #66bb6a;
  box-shadow: 0 4px 6px rgba(102, 187, 106, 0.1);
}

.adopted-page .highlight-box h3 {
  color: #2e7d32;
}

/* Timeline Override */
.adopted-page .timeline-v2-item .t-v2-icon {
  background: #66bb6a;
  /* Green accent */
}

/* Button Customization */
.adopted-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.adopted-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.adopted-page .btn-primary {
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%) !important;
  box-shadow: 0 4px 15px rgba(56, 142, 60, 0.4);
}

.adopted-page .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(56, 142, 60, 0.5);
}

/* Icon Card Circle Override */
.adopted-page .icon-circle {
  background: #ffcc80 !important;
  color: #e65100 !important;
}

/* ========================================
   Service Page: Real Estate Shared Ownership (Kyoyu)
   ======================================== */
.kyoyu-page .page-hero--kyoyu {
  background-image: url('assets/images/hero-kyoyu.webp');
}

.kyoyu-page .section-title {
  border-left-color: #607d8b;
}

.kyoyu-page .intro-card {
  border-top: 5px solid #607d8b;
}

.kyoyu-page .highlight-box {
  background: #eceff1;
  border-left-color: #607d8b;
  box-shadow: 0 4px 6px rgba(96, 125, 139, 0.1);
}

.kyoyu-page .highlight-box h3 {
  color: #455a64;
}

/* Timeline Override */
.kyoyu-page .timeline-v2-item .t-v2-icon {
  background: #607d8b;
  /* Blue Grey accent */
}

/* Button Customization */
.kyoyu-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kyoyu-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.kyoyu-page .btn-primary {
  background: linear-gradient(135deg, #607d8b 0%, #455a64 100%) !important;
  box-shadow: 0 4px 15px rgba(69, 90, 100, 0.4);
}

.kyoyu-page .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(69, 90, 100, 0.5);
}

/* Icon Card Circle Override */
.kyoyu-page .icon-circle {
  background: #cfd8dc !important;
  color: #455a64 !important;
}

/* ========================================
   ======================================== */
.status-page .page-hero--status {
  background-image: url('assets/images/hero-status.webp');
}

.status-page .section-title {
  border-left-color: #1a237e;
}

.status-page .intro-card {
  border-top: 5px solid #1a237e;
}

.status-page .highlight-box {
  background: #e8eaf6;
  border-left-color: #1a237e;
  box-shadow: 0 4px 6px rgba(26, 35, 126, 0.1);
}

.status-page .highlight-box h3 {
  color: #1a237e;
}

/* Timeline Override */
.status-page .timeline-v2-item .t-v2-icon {
  background: #1a237e;
  /* Deep Navy accent */
}

/* Button Customization */
.status-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.status-page .btn-primary {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%) !important;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

.status-page .btn-primary:hover {
  filter: brightness(1.2);
  /* Slightly brighter for navy */
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5);
}

/* Icon Card Circle Override */
.status-page .icon-circle {
  background: #ffd700 !important;
  color: #1a237e !important;
}

/* ========================================
   ======================================== */
.kekkaku-page .page-hero--kekkaku {
  background-image: url('assets/images/hero-kekkaku.webp');
}

.kekkaku-page .section-title {
  border-left-color: #6b111a;
}

.kekkaku-page .intro-card {
  border-top: 5px solid #6b111a;
}

.kekkaku-page .highlight-box {
  background: #fdf5f6;
  border-left-color: #6b111a;
  box-shadow: 0 4px 6px rgba(107, 17, 26, 0.1);
}

.kekkaku-page .highlight-box h3 {
  color: #6b111a;
}

/* Timeline Override */
.kekkaku-page .timeline-v2-item .t-v2-icon {
  background: #6b111a;
  /* Burgundy accent */
}

/* Button Customization */
.kekkaku-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kekkaku-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.kekkaku-page .btn-primary {
  background: linear-gradient(135deg, #6b111a 0%, #4a0b12 100%) !important;
  box-shadow: 0 4px 15px rgba(107, 17, 26, 0.4);
}

.kekkaku-page .btn-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 6px 20px rgba(107, 17, 26, 0.5);
}

/* Icon Card Circle Override */
.kekkaku-page .icon-circle {
  background: #e0e0e0 !important;
  color: #6b111a !important;
}

/* ========================================
   Service Page: Land Evaluation (Land Eval)
   ======================================== */
.land-eval-page .page-hero--land-eval {
  background-image: url('assets/images/hero-land-eval.webp');
}

.land-eval-page .section-title {
  border-left-color: #2e7d32;
}

.land-eval-page .intro-card {
  border-top: 5px solid #2e7d32;
}

.land-eval-page .highlight-box {
  background: #f1f8e9;
  border-left-color: #2e7d32;
  box-shadow: 0 4px 6px rgba(46, 125, 50, 0.1);
}

.land-eval-page .highlight-box h3 {
  color: #2e7d32;
}

/* Timeline Override */
.land-eval-page .timeline-v2-item .t-v2-icon {
  background: #2e7d32;
  /* Forest Green accent */
}

/* Button Customization */
.land-eval-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.land-eval-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.land-eval-page .btn-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.land-eval-page .btn-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

/* Icon Card Circle Override */
.land-eval-page .icon-circle {
  background: #bcaaa4 !important;
  color: #3e2723 !important;
}

/* ========================================
   Service Page: Memento Dispute (Memento)
   ======================================== */
.memento-page .page-hero--memento {
  background-image: url('assets/images/hero-memento.webp');
}

.memento-page .section-title {
  border-left-color: #8d6e63;
}

.memento-page .intro-card {
  border-top: 5px solid #8d6e63;
}

.memento-page .highlight-box {
  background: #fdfaf6;
  border-left-color: #8d6e63;
  box-shadow: 0 4px 6px rgba(141, 110, 99, 0.1);
}

.memento-page .highlight-box h3 {
  color: #5d4037;
}

/* Timeline Override */
.memento-page .timeline-v2-item .t-v2-icon {
  background: #8d6e63;
  /* Warm Terracotta accent */
}

/* Button Customization */
.memento-page .btn-secondary {
  background: #fff;
  color: var(--color-main);
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.memento-page .btn-secondary:hover {
  background: var(--color-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.memento-page .btn-primary {
  background: linear-gradient(135deg, #8d6e63 0%, #5d4037 100%) !important;
  box-shadow: 0 4px 15px rgba(141, 110, 99, 0.4);
}

.memento-page .btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(141, 110, 99, 0.5);
}

/* Icon Card Circle Override */
.memento-page .icon-circle {
  background: #d7ccc8 !important;
  color: #4e342e !important;
}

/* ================