/* Variables — Brand_DESIGN.md: Quiet Precision */
:root {
    /* Backgrounds */
    --bg-primary:   #ffffff;
    --bg-secondary: #f6f7f8;
    --bg-tertiary:  #f1f3f5;
    --surface-dark: #111315;

    /* Legacy aliases (backward compat for inline styles) */
    --bg-color:     #ffffff;
    --bg-color-alt: #f6f7f8;

    /* Text */
    --text-main:    #16181d;
    --text-muted:   #5f6670;
    --text-on-dark: #f5f7fa;

    /* Border */
    --border-subtle: #e3e6ea;

    /* Accent — Single color only */
    --accent:        #0e7c66;
    --accent-hover:  #0a6654;
    /* Legacy aliases */
    --accent-cyan:   #0e7c66;
    --accent-purple: #0e7c66;

    /* No multiple gradients — single accent */
    --gradient-primary: linear-gradient(135deg, #0e7c66, #2f9a84);

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Shadow */
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.1);

    /* Containers */
    --container-wide:   1440px;
    --container:        1200px;
    --container-narrow: 760px;

    --font-main: 'Inter', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    position: relative;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons — Brand_DESIGN.md: 14px radius, 44-52px height, single accent */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 48px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: var(--transition);
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 124, 102, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 124, 102, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(14, 124, 102, 0.04);
}

/* ヒーロー内のボタン：ダーク背景に合わせ白色枚 */
.hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar — Brand_DESIGN.md: 白系背景、blur控えめ、sticky */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

/* Hero直下はナビを透過気味にしてオーバーレイと馴染む */
#navbar.hero-top {
    background: rgba(17, 19, 21, 0.55);
    border-bottom-color: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: var(--accent);
}

#navbar.hero-top .nav-links a {
    color: rgba(255,255,255,0.88);
}

#navbar.hero-top .nav-links a:hover {
    color: #fff;
}

/* ナビ：英語ラベルと日本語サブラベル */
.nav-en {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-ja {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 1px;
}

#navbar.hero-top .nav-ja {
    opacity: 0.7;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .nav-links.active a {
        font-size: 1.5rem;
        color: var(--text-main);
        text-align: center;
    }

    .nav-links.active .nav-ja {
        display: none;
    }

    .nav-links.active .nav-en {
        font-size: 1.4rem;
    }
}

.nav-cta {
    margin-left: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 600px;
    padding: 120px 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: clip;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 19, 21, 0.62), rgba(17, 19, 21, 0.85));
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}

.hero h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Hero Problem List */
.problem-list-hero {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.problem-item-hero {
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.08);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
}

.problem-item-hero i {
    color: #8fd3c4;
    margin-right: 8px;
}

/* Lead Magnet */
.lead-magnet-card {
    background: var(--bg-color-light);
    border: 1px solid rgba(14, 124, 102, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lead-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto;
}

.lead-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
}

.lead-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Risk Section */
.risk-list {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.risk-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
}

.risk-item i {
    color: var(--accent-cyan);
    margin-top: 5px;
}

/* Lead Magnet Form with Labels */
.lead-form-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 0;
}

.lead-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
    gap: 6px;
}

.lead-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.3px;
}

.lead-submit {
    flex: 0 0 auto;
    min-width: 160px;
}

@media (max-width: 600px) {
    .lead-form-grid {
        flex-direction: column;
    }
    .lead-submit {
        min-width: 100%;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* スクロール後はbody.at-topが外れてfade-out */
body:not(.at-top) .scroll-down {
    opacity: 0;
}

.scroll-down .mouse {
    width: 20px;
    height: 35px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    position: relative;
}

.scroll-down .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #8fd3c4;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

/* Stats */
.stats {
    background: var(--bg-color-alt);
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: inline-block;
}

.stat-unit {
    display: inline-block;
    font-size: 2rem;
    color: var(--accent-cyan);
}

.stat-label {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    margin-bottom: 64px;
}

.subheading {
    display: block;
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: -0.3px;
}

/* About / Features Grid */
.about-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card,
.feature-card {
    background: var(--bg-primary);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.about-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.icon-box {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-card h3,
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.about-card p,
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-tags li {
    font-size: 0.8rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 5px 15px;
    border-radius: 20px;
}

.service-image {
    flex: 1;
    height: 300px;
    background: linear-gradient(135deg, #112240, #233554);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.2);
    box-shadow: 0 0 30px var(--accent-cyan);
}

/* Comparison (Mock) */
.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #333;
    display: flex;
}

.comp-after,
.comp-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.comp-after {
    background: url('/assets/event.jpg') no-repeat center center/cover;
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    /* Mock initial state */
    /* In a real slider, width would change */
    width: 100%;
    clip-path: inset(0 0 0 50%);
}

.comp-after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.comp-label {
    position: absolute;
    bottom: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.comp-before {
    background: #555;
    /* Simulating 'boring' zoom */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.comp-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(14, 124, 102, 0.5);
}

.comp-caption {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.work-item {
    cursor: pointer;
}

.work-thumb {
    height: 220px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.work-thumb img,
.pkg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover .work-thumb img {
    transform: scale(1.04);
}

.work-item:hover .work-thumb {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.work-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.work-info span {
    font-size: 0.85rem;
    color: var(--accent);
}

/* CTA Box */
.cta-box {
    background: var(--surface-dark);
    padding: 64px;
    text-align: center;
    border-radius: var(--radius-lg);
    color: var(--text-on-dark);
}

.cta-box h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
    color: var(--text-on-dark);
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Filter Buttons */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 0.88rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

/* Works Item Animation */
.work-item {
    transition: all 0.4s ease;
}

.work-item.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    position: absolute;
    /* Take out of flow to animate properly in grid, but complex. Simple hidden is okay. */
    display: none;
    /* Simplest filter */
}

/* Exit Intent Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 19, 21, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 700px;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
}

.modal-image {
    flex: 1;
    background: url('/assets/gathering.jpg') no-repeat center center/cover;
    min-height: 300px;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 124, 102, 0.2);
}

.modal-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-link-close {
    text-align: center;
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        min-height: 150px;
    }
}

/* Packages Section - Carousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.carousel-arrow {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.carousel-arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: var(--radius-pill);
}

.package-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 16px;
}

.package-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.pkg-slide {
    flex: 0 0 100%;
    width: 100%;
}

.pkg-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    background: var(--bg-primary);
    padding: 52px;
    border: none;
}

.pkg-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
    line-height: 1.25;
}

.pkg-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: 1rem;
}

.pkg-features {
    list-style: none;
    margin-bottom: 28px;
}

.pkg-features li {
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.pkg-features li i {
    color: var(--accent);
    margin-top: 4px;
}

.pkg-price {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.pkg-price span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.pkg-image {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.pkg-img-placeholder {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.3;
}

@media (max-width: 900px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .pkg-image {
        min-height: 250px;
        order: -1;
    }

    .pkg-info h3 {
        font-size: 1.5rem;
    }
}


/* Client Categories */
.logos-section {
    background: var(--bg-secondary);
    overflow: hidden;
    padding: 80px 0;
}

.client-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .client-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .client-categories {
        gap: 15px;
    }

    .client-category-item {
        padding: 20px 10px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .client-category-item h4 {
        font-size: 0.95rem;
    }

    .client-category-item p {
        font-size: 0.75rem;
    }
}

.client-category-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.client-category-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    transition: var(--transition);
}

.client-category-item:hover .category-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.client-category-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.client-category-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .client-categories {
        grid-template-columns: 1fr;
    }
}


/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--surface-dark);
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-on-dark);
}

.chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-logo-img {
    height: 24px;
    width: auto;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot {
    align-self: flex-start;
    display: flex;
    gap: 10px;
}

.bot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 5px;
    flex-shrink: 0;
}

.chat-message.user {
    align-self: flex-end;
}

.message-content {
    background: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    color: var(--text-main);
}

.chat-message.user .message-content {
    background: var(--accent);
    color: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-size: 0.85rem;
}

.chat-option-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(14, 124, 102, 0.04);
}

.chat-typing {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 10px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* Floating UI */
.floating-ui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.chat-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    overflow: hidden;
}

.float-chat-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Contact Form */
/* CTA Checklist */
.cta-checklist {
    max-width: 640px;
    margin: 28px auto 20px;
    background: var(--bg-secondary);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.cta-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-checklist li {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cta-checklist li:last-child {
    margin-bottom: 0;
}

.cta-checklist i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Booking Wizard */
.booking-wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.booking-steps {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.step {
    flex: 1;
    padding: 18px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.step.active {
    color: var(--accent);
    font-weight: 600;
}

.step.active span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.booking-panel {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.booking-panel.active {
    display: block;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-form-grid .form-group:nth-child(4) {
    grid-column: span 2;
}

.required {
    color: #ff4d4d;
}

.booking-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Calendar Styles */
.calendar-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.problem-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--accent-cyan);
    transition: all 0.3s ease;
}

.problem-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-problem-section .section-header h2,
.dark-problem-section .problem-item {
    color: #fff;
}

.dark-problem-section .problem-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid var(--accent-cyan);
}

.dark-problem-section .problem-item i {
    color: var(--accent-cyan);
}

.dark-problem-section .problem-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Second icon-box definition removed — handled above */

.calendar-main {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.cal-day-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 10px 0;
}

.cal-day {
    padding: 12px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cal-day:hover:not(.disabled) {
    background: rgba(14, 124, 102, 0.08);
    color: var(--accent);
}

.cal-day.active {
    background: var(--accent) !important;
    color: #fff;
    font-weight: 600;
}

.cal-day.disabled {
    opacity: 0.3;
    cursor: default;
}

.cal-day.today {
    color: var(--accent);
    font-weight: 600;
}

.time-slots-container {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    max-height: 400px;
    overflow-y: auto;
}

.time-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 15px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    font-size: 0.9rem;
}

.time-slot:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.time-slot.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.time-notice {
    margin-top: 15px;
    font-size: 0.75rem;
}

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.booking-summary-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0 30px;
    display: inline-block;
    min-width: 300px;
    text-align: left;
}

@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-grid .form-group:nth-child(4) {
        grid-column: span 1;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.12);
}

/* Footer */
footer {
    background: var(--surface-dark);
    color: var(--text-on-dark);
    padding: 72px 0 36px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 48px;
    gap: 32px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

/* Specific Column Widths */
.brand-col {
    flex: 0 0 140px;
}

.contact-col {
    flex: 1.2;
}

.service-col {
    flex: 1.5;
}

.legal-col {
    flex: 0 0 auto;
    padding-top: 42px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 14px;
    opacity: 0.9;
}

.brand-name {
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-col h3 {
    font-size: 0.88rem;
    margin-bottom: 18px;
    color: var(--text-on-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

.footer-col p {
    color: rgba(245, 247, 250, 0.55);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(245, 247, 250, 0.55);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
    line-height: 1.5;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--text-on-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    text-align: center;
}

/* Flow Section Modernization */
.flow-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding-left: 60px;
}

.flow-line {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 27.5px;
    width: 2px;
    background: var(--border-subtle);
    opacity: 1;
}

.flow-item {
    position: relative;
    margin-bottom: 32px;
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-icon {
    position: absolute;
    left: -50px;
    top: 10px;
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    z-index: 2;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.flow-item:hover .flow-icon {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.08);
}

.flow-content {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.flow-item:hover .flow-content {
    border-color: rgba(14, 124, 102, 0.25);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.flow-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.flow-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.flow-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

@media (max-width: 768px) {
    .flow-container {
        padding-left: 50px;
    }

    .flow-line {
        left: 17.5px;
    }

    .flow-icon {
        left: -55px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 20px;
    }
}

/* Animations */
.loading-slots,
.error-slots {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Responsive Line Breaks */
.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .pc-br {
        display: none;
    }

    .sp-br {
        display: block;
    }
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 12px;
        opacity: 0;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {

    /* Global Mobile Adjustments */
    .section-padding {
        padding: 50px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Hero Optimization */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 130px;
        /* Increased to prevent header overlap */
        padding-bottom: 60px;
        align-items: flex-start;
        /* Prevent vertical centering from pushing content up */
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 1.45rem;
        /* Further reduced to ensure blocks fit without horizontal scroll */
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0;
    }

    .hero-tag {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    /* Fix Case Study Badge Overlap */
    .case-header {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
    }

    .case-header-content {
        order: 2;
    }

    .case-badge {
        position: relative;
        /* Stop absolute positioning */
        top: auto;
        right: auto;
        align-self: flex-start;
        margin-bottom: 15px;
        order: 1;
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .case-expand-btn {
        margin-top: 15px;
        align-self: center;
        order: 3;
    }

    .about-grid,
    .services-list,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-row {
        flex-direction: column-reverse !important;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .service-tags {
        justify-content: center;
    }
}

/* Package Filtering */
.pkg-filtering {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.pkg-filter-box {
    background: var(--bg-secondary);
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.pkg-filter-box h4 {
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.pkg-filter-box.target h4 {
    color: var(--accent);
}

.pkg-filter-box.nontarget h4 {
    color: #dc2626;
}

.pkg-filter-box ul {
    list-style: none;
    padding: 0;
}

.pkg-filter-box li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.pkg-filter-box i {
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Pricing Card Simple */
.pricing-card-simple {
    background: var(--bg-color-light);
    border: 1px solid rgba(14, 124, 102, 0.1);
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
}

.pricing-card-simple h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-note {
    font-size: 1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pkg-filtering {
        grid-template-columns: 1fr;
    }
}

/* Case Study Cards */
.case-study-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.case-study-card:hover {
    border-color: rgba(14, 124, 102, 0.25);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}

.case-study-card.flagship {
    border-color: rgba(14, 124, 102, 0.3);
    box-shadow: 0 8px 28px rgba(14, 124, 102, 0.1);
}

.case-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
}



.case-period {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

.case-period strong {
    color: var(--accent);
    font-size: 1rem;
}

.case-body {
    padding: 40px;
}

.case-section {
    margin-bottom: 35px;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-section h4 i {
    font-size: 1rem;
}

.case-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-section li {
    padding: 8px 0 8px 22px;
    position: relative;
    color: var(--text-main);
    line-height: 1.75;
    font-size: 0.95rem;
}

.case-section li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.case-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    padding-left: 28px;
    position: relative;
    color: var(--text-main);
    line-height: 1.75;
    font-size: 0.95rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    width: 2px;
    height: calc(100% + 12px);
    background: var(--border-subtle);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item strong {
    color: var(--accent);
}

.case-quote {
    background: rgba(14, 124, 102, 0.04);
    border-left: 3px solid var(--accent);
    padding: 22px 26px;
    margin-top: 24px;
    border-radius: var(--radius-sm);
    position: relative;
}

.case-quote i {
    font-size: 1.3rem;
    color: var(--accent);
    opacity: 0.35;
    margin-bottom: 8px;
}

.case-quote p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 15px;
}

.case-quote cite {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
    display: block;
}

@media (max-width: 768px) {
    .case-header {
        padding: 25px 25px 20px;
    }

    .case-header h3 {
        font-size: 1.4rem;
    }

    .case-body {
        padding: 25px;
    }

    .case-badge {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 6px 15px;
    }
}

/* Pricing Grid - 3 Package Comparison */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.pricing-package {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.pricing-package:hover {
    border-color: rgba(14, 124, 102, 0.25);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.pricing-package.recommended {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(14, 124, 102, 0.15);
}

.package-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.72rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 2;
    text-transform: uppercase;
}

.package-header {
    background: var(--bg-secondary);
    padding: 32px 24px 26px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.package-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.package-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.package-body {
    padding: 30px 25px;
    flex: 1;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.package-features li {
    padding: 12px 0;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.package-features li i.fa-check {
    color: var(--accent);
    margin-top: 3px;
}

.package-features li i.fa-times {
    color: var(--border-subtle);
    margin-top: 3px;
}

.package-note {
    background: rgba(14, 124, 102, 0.04);
    border-left: 3px solid var(--accent);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.package-footer {
    padding: 0 25px 30px;
}

.package-footer .btn {
    width: 100%;
    display: block;
    text-align: center;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Case Study Accordion */
.case-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 36px 26px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.case-header:hover {
    background: var(--bg-tertiary);
}

.case-header:hover h3 {
    color: var(--accent);
}

.case-header-content {
    flex: 1;
}

.case-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: var(--transition);
}

.case-expand-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    gap: 6px;
    min-width: 90px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent);
    transition: var(--transition);
}

.case-header:hover .case-expand-btn {
    background: rgba(14, 124, 102, 0.06);
    border-color: var(--accent);
}

.expand-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.case-header.active .toggle-icon {
    transform: rotate(180deg);
}






.case-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.summary-tag {
    background: rgba(14, 124, 102, 0.06);
    border: 1px solid rgba(14, 124, 102, 0.18);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-tag i {
    color: var(--accent);
    font-size: 0.85rem;
}

.case-body.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.5s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.case-body:not(.collapsed) {
    max-height: 3000px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.5s ease;
}

@media (max-width: 768px) {
    .case-header h3 {
        font-size: 1.3rem;
    }

    .summary-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 860px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.faq-item:hover {
    border-color: rgba(14, 124, 102, 0.25);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question h4 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question h4 i {
    color: var(--accent);
    font-size: 0.95rem;
}

.faq-toggle-icon {
    font-size: 1.1rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.faq-answer:not(.collapsed) {
    max-height: 1500px;
    padding: 0 30px 30px;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.faq-answer li {
    padding: 7px 0 7px 22px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.faq-answer li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* FAQ Comparison Table */
.comparison-table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 13px 10px;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.comparison-table thead th {
    background: var(--bg-secondary);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table td:last-child {
    background: rgba(14, 124, 102, 0.04);
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .faq-answer:not(.collapsed) {
        padding: 0 20px 20px;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

/* Lead Magnet Section Enhancements */
.lead-magnet-box {
    background: rgba(17, 19, 21, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 56px;
    box-shadow: 0 24px 60px rgba(17,19,21,0.45);
    position: relative;
    overflow: hidden;
}

.lead-magnet-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 124, 102, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.tag-white {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-list-white {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.check-list-white li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.check-list-white li i {
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.lead-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Matching Section */
.matching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.matching-card {
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.matching-card.fit {
    background: rgba(14, 124, 102, 0.05);
    border-color: rgba(14, 124, 102, 0.2);
}

.matching-card.unfit {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.8;
}

.matching-card h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.matching-card.fit h3 {
    color: var(--accent-cyan);
}

.matching-card.unfit h3 {
    color: var(--text-muted);
}

.matching-list {
    list-style: none;
    padding: 0;
}

.matching-list li {
    padding: 12px 0;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.matching-card.fit li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.matching-card.unfit li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .matching-grid {
        grid-template-columns: 1fr;
    }

    .lead-magnet-box {
        padding: 40px 20px;
    }
}

/* Utility: Semantic Text Blocks for Anti-Break - Enhanced */
.txt-block {
    display: inline-block;
    white-space: nowrap;
}

/* AI Estimate Chat Styles */
.floating-ui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.chat-window {
    width: 380px;
    height: 550px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    bottom: 80px;
    right: 0;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--surface-dark);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-on-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-logo-img {
    height: 22px;
    width: auto;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-controls button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.chat-controls button:hover {
    color: var(--text-on-dark);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-secondary);
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    padding: 4px;
    background: var(--bg-primary);
}

.message-content {
    background: var(--bg-primary);
    padding: 11px 15px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.55;
    border: 1px solid var(--border-subtle);
}

.chat-message.user .message-content {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    border-top-right-radius: 2px;
    border-top-left-radius: 12px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    width: 100%;
    margin-left: 44px;
    max-width: 85%;
}

.chat-option-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-size: 0.88rem;
}

.chat-option-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chat-option-btn.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 44px;
    padding: 10px;
    opacity: 0.7;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

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

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

/* Chat Button Customization */
.chat-btn {
    width: auto !important;
    height: 50px !important;
    border-radius: var(--radius-pill) !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    box-shadow: 0 5px 15px rgba(14, 124, 102, 0.3);
}

.chat-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.chat-label {
    font-size: 0.95rem;
}

/* Result Styles */
.estimate-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 5px;
}

.estimate-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0;
    text-align: center;
}

.estimate-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    margin-top: 10px;
}

.estimate-details li {
    margin-bottom: 4px;
}

.chat-cta-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.chat-cta-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: 0.88rem;
}

.chat-cta-primary {
    background: var(--accent);
    color: #fff;
}

.chat-cta-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 80vh;
        bottom: 80px;
        right: 20px;
        left: 20px;
    }

    .floating-ui {
        bottom: 20px;
        right: 20px;
    }
}

/* Hero Buttons Alignment Fix */
.hero-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-btn-group .btn {
    height: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-btn-group {
        flex-direction: column;
        gap: 12px;
        /* フローティングボタンとの重なり防止 */
        padding-bottom: 80px;
    }

    .hero-btn-group .btn {
        width: 100%;
        max-width: 320px;
        height: 52px;
        font-size: 1rem;
    }

    /* hero-note（営業電話は行いません）も中央寄せ */
    .hero-note {
        text-align: center;
        width: 100%;
    }

}

/* =========================================
   Final Polish: Refinements & Spacing
   ========================================= */

/* Mobile Line Break Handling */
@media (max-width: 768px) {

    /* Hide breaks in headings to let text flow naturally */
    h1 br,
    h2 br,
    h3 br,
    .section-header br {
        display: none;
    }

    /* hero-content p は justify 禁止 → 文字間隔バラバラになるため */
    .hero-content p {
        text-align: center;
        letter-spacing: normal;
        word-spacing: normal;
    }

    /* その他セクションのテキスト */
    .section-header p,
    .pkg-info p {
        text-align: left;
    }
}

/* Improved Spacing for "Clean" Look */
.section-padding {
    padding: 120px 0;
    /* More breathing room */
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Typography Refinements */
body {
    line-height: 1.8;
    /* Relaxed reading experience */
}

h2.section-title {
    margin-bottom: 1.5rem;
}

/* Unified Card Borders */
.pricing-package,
.case-study-card,
.faq-item {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

/* List Spacing */
.package-features li,
.case-section ul li {
    margin-bottom: 0.8rem;
    /* More space between items */
    padding-bottom: 0.8rem;
}

/* Chatbot Refinement */
.chat-window {
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border-subtle);
}

/* Lead Magnet Enhancements */
.pdf-mockup:hover {
    transform: rotate(0deg) scale(1.02) !important;
}

#lead-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

#lead-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Mobile Optimization Overrides (Specific Adjustments) */
@media (max-width: 768px) {

    /* Base Typography */
    html {
        font-size: 14px;
        /* Slightly smaller base size */
    }

    /* Container Spacing */
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Hero Section Adjustments */
    .hero {
        padding-top: 100px;
        /* Reduced top padding */
        min-height: auto;
        /* Allow height to adjust to content */
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 1rem;
        color: #ffffff;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .problem-list-hero {
        align-items: flex-start;
        /* Left align items for readability */
        padding: 0 10px;
    }

    .problem-item-hero {
        font-size: 0.9rem;
        padding: 6px 15px;
        text-align: left;
        width: 100%;
        border-radius: 8px;
        /* Less rounded on mobile */
    }

    /* Button Sizing */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        /* Full width buttons on mobile */
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }

    .hero-btns {
        width: 100%;
        padding: 0 20px;
    }

    .hero-btns .btn {
        margin: 0;
        width: 100%;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.65rem;
        letter-spacing: -0.2px;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* Services / Carousel */
    .pkg-image {
        height: 200px;
        /* Constrain image height */
    }

    .pkg-info h3 {
        font-size: 1.4rem;
    }

    /* Case Studies */
    .case-header-content h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .case-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 10px;
        display: inline-block;
        font-size: 0.7rem;
    }

    /* Lead Magnet */
    .lead-magnet-card {
        padding: 30px 20px;
    }

    .lead-form {
        flex-direction: column;
    }

    .lead-form input {
        margin-bottom: 10px;
    }

    /* Booking Wizard & Calendar */
    .booking-panel {
        padding: 20px 10px;
        /* Reduced padding */
    }

    .calendar-grid {
        gap: 2px;
        /* Tighter calendar grid */
    }

    .cal-day {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    /* Chat Button Visibility */
    .chat-widget-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    /* Footer */
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        align-items: flex-start;
    }

    .footer-col {
        width: 100%;
        min-width: auto;
        padding: 0;
    }

    .legal-col {
        padding-top: 0;
        text-align: left;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 40px;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
   FV Inline Form — index.html & conference.html共通
   ========================================= */

/* index.html のheroを2カラムにするためのflex調整 */
.hero .container[style*="grid"] {
    /* grid指定はinlineで行っているため、overflow hidden解除 */
    overflow: visible;
}

/* フォームボックス共通（index側で使用） */
.conf-hero-form-box {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 28px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.conf-hero-form-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.fv-form-group {
    margin-bottom: 13px;
}

.fv-form-group label {
    display: block;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 4px;
    font-weight: 500;
}

.fv-form-group label .req {
    background: #e63946;
    color: #fff;
    font-size: 0.64rem;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.fv-form-group input,
.fv-form-group select,
.fv-form-group textarea {
    width: 100%;
    padding: 9px 13px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    color: #fff;
    font-size: 0.87rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    appearance: none;
}

.fv-form-group input::placeholder,
.fv-form-group textarea::placeholder {
    color: rgba(255,255,255,0.32);
}

.fv-form-group input:focus,
.fv-form-group select:focus,
.fv-form-group textarea:focus {
    outline: none;
    border-color: rgba(143,211,196,0.7);
}

.fv-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px;
    padding-right: 28px;
}

.fv-form-group select option {
    background: #0a192f;
    color: #e2e8f0;
}

.fv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fv-form-submit {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.fv-form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.fv-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fv-form-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.fv-form-success {
    display: none;
    text-align: center;
    padding: 20px 10px;
    color: rgba(143,211,196,0.9);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* index.htmlのhero 2カラムレスポンシブ */
@media (max-width: 960px) {
    .hero .container[style*="grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 36px !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    .hero .container[style*="grid"] .hero-content {
        text-align: center !important;
    }

    .hero .container[style*="grid"] .conf-hero-form-box {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .fv-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Multi-step Booking Form ===== */
.fv-steps {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 0;
}

.fv-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.38);
    white-space: nowrap;
    font-weight: 500;
}

.fv-step.active {
    color: #fff;
    font-weight: 700;
}

.fv-step.done {
    color: rgba(143,211,196,0.7);
}

.fv-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fv-step.active .fv-step-num {
    background: #0e7c66;
    color: #fff;
}

.fv-step.done .fv-step-num {
    background: rgba(143,211,196,0.25);
    color: var(--accent-cyan);
}

.fv-step-divider {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.13);
    margin: 0 8px;
    min-width: 20px;
}

/* Dual buttons */
.fv-dual-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.fv-btn-primary {
    flex: 1.2;
    padding: 13px 10px;
    background: #0e7c66;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: background 0.2s;
    line-height: 1.3;
}

.fv-btn-primary:hover {
    background: #0a6654;
}

.fv-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fv-btn-ghost {
    flex: 1;
    padding: 13px 10px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.2s;
    line-height: 1.3;
}

.fv-btn-ghost:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.5);
}

.fv-btn-back {
    padding: 12px 18px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 9px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.2s;
}

.fv-btn-back:hover {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.35);
}

/* Step 2: Date grid */
.fv-step-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.fv-date-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.fv-date-btn {
    padding: 9px 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.82);
    cursor: pointer;
    text-align: center;
    font-size: 0.78rem;
    font-family: inherit;
    transition: all 0.18s;
    line-height: 1.4;
}

.fv-date-btn:hover {
    background: rgba(143,211,196,0.09);
    border-color: rgba(143,211,196,0.5);
}

.fv-date-btn.selected {
    background: #0e7c66;
    border-color: #0e7c66;
    color: #fff;
    font-weight: 700;
}

.fv-date-day {
    display: block;
    font-size: 0.63rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1px;
}

.fv-date-btn.selected .fv-date-day {
    color: rgba(255,255,255,0.75);
}

/* Time slots */
.fv-time-wrap {
    margin-bottom: 10px;
}

.fv-time-label {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}

.fv-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fv-time-btn {
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 6px;
    color: rgba(255,255,255,0.82);
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.18s;
}

.fv-time-btn:hover {
    background: rgba(143,211,196,0.09);
    border-color: rgba(143,211,196,0.5);
}

.fv-time-btn.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.fv-loading {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.48);
    font-style: italic;
}


/* Step 3: Complete */
.fv-complete {
    display: none;
    text-align: center;
    padding: 28px 10px 20px;
}

.fv-complete i {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 14px;
}

.fv-complete p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.9;
}

/* =========================================
   ABEAR Trust Redesign — 2026 refresh
   ========================================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8f6;
    --bg-tertiary: #eef2ee;
    --surface-dark: #16201d;
    --text-main: #17211f;
    --text-muted: #5d6764;
    --text-on-dark: #f7faf8;
    --border-subtle: #dfe6e2;
    --accent: #0e7c66;
    --accent-hover: #0a6654;
    --accent-soft: #e7f4f0;
    --warm: #b7791f;
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --shadow-soft: 0 10px 24px rgba(23, 33, 31, 0.07);
    --shadow-md: 0 16px 36px rgba(23, 33, 31, 0.11);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    letter-spacing: 0;
}

.container {
    max-width: 1180px;
}

.section-padding {
    padding: 104px 0;
}

.btn {
    gap: 8px;
    border-radius: 8px;
    box-shadow: none;
}

.btn-primary {
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(14, 124, 102, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 12px 26px rgba(14, 124, 102, 0.24);
}

.btn-secondary,
.btn-outline {
    background: #fff;
    border-color: var(--border-subtle);
    color: var(--text-main);
}

#navbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.94);
}

#navbar.hero-top {
    background: rgba(22, 32, 29, 0.58);
}

#navbar.hero-top .logo img {
    filter: brightness(0) invert(1);
}

.logo img {
    height: 42px;
}

.nav-links {
    gap: 26px;
}

.nav-links a {
    color: var(--text-main);
}

.hero {
    min-height: min(780px, 92svh);
    padding: 112px 0 72px;
    align-items: center;
}

.hero-bg img {
    animation: none;
    filter: saturate(0.82) contrast(0.96);
}

.hero-bg .overlay {
    background:
        linear-gradient(90deg, rgba(16, 28, 25, 0.88) 0%, rgba(16, 28, 25, 0.72) 43%, rgba(16, 28, 25, 0.42) 100%),
        linear-gradient(180deg, rgba(16, 28, 25, 0.58) 0%, rgba(16, 28, 25, 0.68) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
}

.hero-tag {
    color: rgba(247, 250, 248, 0.82);
    border-color: rgba(247, 250, 248, 0.28);
    letter-spacing: 1px;
    text-transform: none;
}

.hero h1 {
    font-size: clamp(2.8rem, 4.2vw, 4.05rem);
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 22px;
}

.hero .hero-subtitle {
    color: rgba(247, 250, 248, 0.9);
    font-size: 1.08rem;
    line-height: 1.9;
    max-width: 660px;
    margin-bottom: 26px;
}

.problem-list-hero {
    gap: 8px;
    margin-bottom: 28px;
}

.problem-item-hero {
    color: rgba(247, 250, 248, 0.92);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    text-align: left;
    padding: 9px 13px;
}

.problem-item-hero i {
    color: #8fd3c4;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.conf-hero-form-box {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 20px 44px rgba(10, 22, 20, 0.24);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.hero-form-intro {
    margin-bottom: 18px;
}

.hero-form-intro span {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hero-form-intro h2 {
    font-size: 1.22rem;
    line-height: 1.45;
    margin: 5px 0 6px;
    color: var(--text-main);
}

.hero .hero-form-intro p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

.fv-step,
.fv-step-sub,
.fv-time-label,
.fv-loading {
    color: var(--text-muted);
}

.fv-step.active {
    color: var(--text-main);
}

.fv-step.done {
    color: var(--accent);
}

.fv-step-num {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.fv-step.active .fv-step-num,
.fv-step.done .fv-step-num,
.fv-btn-primary,
.fv-date-btn.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.fv-step-divider {
    background: var(--border-subtle);
}

.fv-form-group label {
    color: var(--text-main);
}

.fv-form-group label .req {
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 4px;
}

.fv-form-group input,
.fv-form-group textarea,
.fv-form-group select {
    background: #fff;
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.fv-form-group input::placeholder,
.fv-form-group textarea::placeholder {
    color: #9aa3a0;
}

.fv-form-group input:focus,
.fv-form-group textarea:focus,
.fv-form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.12);
}

.fv-btn-primary:hover {
    background: var(--accent-hover);
}

.fv-btn-ghost,
.fv-btn-back,
.fv-date-btn,
.fv-time-btn {
    background: #fff;
    color: var(--text-main);
    border-color: var(--border-subtle);
    border-radius: 8px;
}

.fv-btn-ghost:hover,
.fv-btn-back:hover,
.fv-date-btn:hover,
.fv-time-btn:hover {
    color: var(--accent);
    border-color: rgba(14, 124, 102, 0.36);
    background: var(--accent-soft);
}

.fv-form-note,
.fv-date-day {
    color: var(--text-muted);
}

.fv-complete i {
    color: var(--accent);
}

.fv-complete p {
    color: var(--text-main);
}

.proof-strip {
    background: #fff;
    border-bottom: 1px solid var(--border-subtle);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.proof-item {
    padding: 24px 28px;
    border-left: 1px solid var(--border-subtle);
}

.proof-item:last-child {
    border-right: 1px solid var(--border-subtle);
}

.proof-item span {
    display: block;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
}

.proof-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.section-header {
    max-width: 820px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.22;
    letter-spacing: 0;
}

.section-header p {
    color: var(--text-muted);
}

.subheading {
    color: var(--accent);
    letter-spacing: 1.5px;
}

.feature-card,
.client-category-item,
.pricing-package,
.case-study-card,
.faq-item,
.flow-content,
.booking-wizard-container {
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.feature-card {
    padding: 32px;
}

.feature-card:hover,
.client-category-item:hover,
.pricing-package:hover,
.case-study-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(14, 124, 102, 0.28);
}

.icon-box,
.category-icon,
.flow-icon,
.summary-tag i,
.faq-question h4 i {
    color: var(--accent);
}

.lead-magnet-box {
    background: #17211f;
    border-radius: 8px;
    box-shadow: none;
}

.package-carousel {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: #fff;
}

.pkg-grid {
    padding: 48px;
}

.pkg-image {
    border-radius: 8px;
    min-height: 340px;
}

.pkg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.pkg-filter-box,
.cta-checklist,
.case-estimate-cta,
.service-estimate-cta,
.package-note,
.booking-summary-box,
.calendar-main,
.time-slots-container {
    border-radius: 8px !important;
}

.pkg-filter-box.target h4,
.case-period,
.case-period strong,
.case-section h4,
.timeline-item strong,
.package-price,
.estimate-price {
    color: var(--accent);
}

.case-header,
.package-header,
.booking-steps {
    background: #f8faf8;
}

.case-badge,
.package-badge,
.filter-btn.active {
    background: var(--accent);
}

.summary-tag,
.package-note,
.case-quote,
.comparison-table td:last-child {
    background: var(--accent-soft);
    border-color: rgba(14, 124, 102, 0.18);
}

.flow-container {
    max-width: 860px;
}

.flow-icon {
    background: #fff;
}

.flow-item:hover .flow-icon {
    background: var(--accent);
}

.faq-answer p,
.faq-answer li {
    color: var(--text-muted);
}

.chat-btn,
.chat-cta-primary,
.chat-message.user .message-content {
    background: var(--accent);
}

.chat-btn {
    box-shadow: 0 10px 22px rgba(14, 124, 102, 0.24);
}

.floating-ui {
    bottom: 24px;
    right: 24px;
}

body.at-top .floating-ui {
    display: none;
}

.contact .booking-wizard-container {
    max-width: 960px;
    background: #fff;
    border-color: #d5ded9;
}

.contact .booking-steps {
    background: #f8faf8;
}

.contact .step {
    color: #4f5b57;
    font-weight: 600;
}

.contact .step span {
    background: #fff;
    border-color: #d5ded9;
    color: #65716d;
}

.contact .step.active {
    color: var(--accent);
}

.contact .booking-panel {
    padding: 42px;
}

.contact .booking-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact .booking-form-grid .form-group-full {
    grid-column: 1 / -1;
}

.contact .form-group label {
    color: #111816;
    font-weight: 700;
}

.contact .form-group input,
.contact .form-group textarea {
    min-height: 48px;
    border-color: #ccd8d2;
    background: #fff;
    color: #17211f;
    font-size: 1rem;
}

.contact .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact .form-group input::placeholder,
.contact .form-group textarea::placeholder {
    color: #707b77;
    opacity: 1;
}

.contact .form-actions {
    width: 100%;
}

.contact .booking-actions .btn {
    min-width: 224px;
}

.contact .btn-outline {
    border-color: #ccd8d2;
    color: #17211f;
    background: #fff;
}

.contact .btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.contact .time-slot {
    appearance: none;
    background: #fff;
    font-family: inherit;
}

.contact .time-slot.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    text-decoration: line-through;
}

footer {
    background: #17211f;
}

.scroll-down {
    display: none;
}

@media (max-width: 960px) {
    .hero {
        min-height: auto;
        padding: 112px 0 64px;
    }

    .hero-grid,
    .hero .container[style*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        padding-top: 0 !important;
    }

    .hero-content {
        max-width: 100%;
    }

    .conf-hero-form-box {
        width: 100%;
        max-width: 560px;
        margin: 0;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .proof-item,
    .proof-item:last-child {
        border: 0;
        border-bottom: 1px solid var(--border-subtle);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 72px 0;
    }

    #navbar {
        height: 68px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 96px 0 48px;
    }

    .hero h1 {
        font-size: 2.05rem;
        line-height: 1.14;
        text-align: left;
    }

    .hero h1 br {
        display: block;
    }

    .hero .hero-subtitle,
    .hero-content p {
        text-align: left;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .hero-actions .btn,
    .package-footer .btn {
        width: 100%;
        display: inline-flex;
        margin-bottom: 0;
    }

    .problem-list-hero {
        padding: 0;
    }

    .conf-hero-form-box {
        padding: 22px;
    }

    .hero .conf-hero-form-box {
        display: none;
    }

    .contact .booking-panel {
        padding: 28px 22px;
    }

    .contact .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact .step {
        padding: 14px 6px;
        gap: 6px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .contact .step span {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .fv-dual-btns {
        flex-direction: column;
    }

    .fv-date-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pkg-grid {
        padding: 24px;
    }

    .pkg-image {
        min-height: 220px;
    }

    .section-header {
        text-align: left;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .case-header,
    .faq-question {
        align-items: flex-start;
    }

    .floating-ui {
        display: none;
    }
}

/* =========================================
   Design Polish Layer — trust, rhythm, motion
   ========================================= */
:root {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --shadow-lift: 0 20px 46px rgba(23, 33, 31, 0.12);
    --shadow-focus: 0 0 0 4px rgba(14, 124, 102, 0.14);
}

::selection {
    background: rgba(14, 124, 102, 0.18);
    color: var(--text-main);
}

html {
    scroll-padding-top: 88px;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

section[id] {
    scroll-margin-top: 88px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

#navbar {
    box-shadow: 0 1px 0 rgba(23, 33, 31, 0.06);
}

#navbar.hero-top {
    box-shadow: none;
}

.nav-links a {
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out);
    opacity: 0;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
    opacity: 1;
}

#navbar.hero-top .nav-links a::after {
    background: #8fd3c4;
}

.btn,
.carousel-arrow,
.case-expand-btn,
.filter-btn,
.chat-option-btn,
.fv-btn-primary,
.fv-btn-ghost,
.fv-btn-back,
.fv-date-btn,
.fv-time-btn,
.time-slot {
    transition:
        background-color 0.24s var(--ease-standard),
        border-color 0.24s var(--ease-standard),
        color 0.24s var(--ease-standard),
        box-shadow 0.28s var(--ease-out),
        transform 0.28s var(--ease-out);
}

.btn {
    min-height: 48px;
    font-weight: 750;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    transition: transform 0.24s var(--ease-out);
}

.btn:hover i.fa-arrow-right,
.btn:hover i.fa-paper-plane,
.btn:hover i.fa-file-download {
    transform: translateX(3px);
}

.btn:hover i.fa-calendar-check,
.btn:hover i.fa-file-lines {
    transform: translateY(-1px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(22, 32, 29, 0), rgba(22, 32, 29, 0.4));
    pointer-events: none;
    z-index: 0;
}

.hero-grid,
.hero-content,
.conf-hero-form-box {
    position: relative;
    z-index: 1;
}

.hero-tag,
.problem-item-hero {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    text-wrap: balance;
}

.hero .hero-subtitle {
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.problem-item-hero {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.24s var(--ease-out), background-color 0.24s var(--ease-standard), border-color 0.24s var(--ease-standard);
}

.problem-item-hero:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
}

.conf-hero-form-box {
    box-shadow: 0 24px 58px rgba(10, 22, 20, 0.3);
}

.conf-hero-form-box::before,
.booking-wizard-container::before,
.lead-magnet-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8fd3c4);
    pointer-events: none;
}

.booking-wizard-container {
    position: relative;
}

.conf-hero-form-box::before {
    border-radius: 8px 8px 0 0;
}

.fv-form-group input,
.fv-form-group textarea,
.form-group input,
.form-group textarea,
.lead-form-grid input {
    transition: border-color 0.22s var(--ease-standard), box-shadow 0.22s var(--ease-standard), background-color 0.22s var(--ease-standard);
}

.proof-strip {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
    box-shadow: inset 0 -1px 0 var(--border-subtle);
}

.proof-item {
    position: relative;
    transition: background-color 0.24s var(--ease-standard);
}

.proof-item::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s var(--ease-out);
}

.proof-item:hover {
    background: var(--accent-soft);
}

.proof-item:hover::before {
    transform: scaleX(1);
}

.section-header {
    position: relative;
}

.subheading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 2px;
}

.subheading::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.section-header h2 {
    text-wrap: balance;
}

.section-header p,
.pkg-desc,
.feature-card p,
.flow-content p,
.faq-answer p,
.faq-answer li {
    color: #55615d;
}

.packages {
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.package-carousel {
    box-shadow: 0 18px 48px rgba(23, 33, 31, 0.08);
}

.pkg-grid {
    align-items: center;
    min-height: 420px;
}

.pkg-info h3 {
    color: #1c2926;
    text-wrap: balance;
}

.pkg-filter-box {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.pkg-filter-box.target {
    background: linear-gradient(180deg, #f4fbf8 0%, #ffffff 100%);
    border-color: rgba(14, 124, 102, 0.2);
}

.pkg-filter-box.nontarget {
    background: #fffdfb;
    border-color: rgba(185, 120, 31, 0.16);
}

.pkg-filter-box.nontarget h4,
.pkg-filter-box.nontarget i {
    color: #9d5b16;
}

.pkg-filter-box li {
    color: #58635f;
}

.pkg-image img {
    filter: saturate(0.92) contrast(0.98);
}

.pkg-slide:hover .pkg-image img {
    transform: scale(1.025);
}

.carousel-arrow {
    box-shadow: 0 10px 24px rgba(23, 33, 31, 0.08);
}

.carousel-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(14, 124, 102, 0.18);
}

.dot {
    height: 7px;
}

.dot.active {
    width: 28px;
}

.case-study-card,
.pricing-package,
.faq-item,
.flow-content,
.client-category-item,
.contact .booking-wizard-container {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 34px rgba(23, 33, 31, 0.06);
}

.case-study-card:hover,
.pricing-package:hover,
.faq-item:hover,
.flow-item:hover .flow-content,
.client-category-item:hover {
    box-shadow: var(--shadow-lift);
}

.case-study-card.flagship {
    border-color: rgba(14, 124, 102, 0.38);
}

.case-study-card.flagship::before,
.pricing-package.recommended::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), #8fd3c4);
    pointer-events: none;
}

.case-header {
    background: #ffffff;
}

.case-header:hover {
    background: #f9fbfa;
}

.case-expand-btn {
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 33, 31, 0.05);
}

.case-header:hover .case-expand-btn {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(14, 124, 102, 0.11);
}

.summary-tag {
    color: #1e312d;
}

.flow-container {
    margin-top: 48px;
}

.flow-line {
    background: linear-gradient(180deg, rgba(14, 124, 102, 0.15), rgba(14, 124, 102, 0.55), rgba(14, 124, 102, 0.15));
}

.flow-icon {
    box-shadow: 0 10px 24px rgba(23, 33, 31, 0.08);
}

.flow-content {
    padding: 30px 32px;
}

.flow-item:hover .flow-content {
    transform: translateX(6px);
}

#pricing {
    background: linear-gradient(180deg, #eef2ee 0%, #f7f8f6 100%) !important;
}

.pricing-package {
    overflow: hidden;
}

.pricing-package.recommended {
    transform: translateY(-6px);
}

.pricing-package.recommended:hover {
    transform: translateY(-9px);
}

.package-header {
    background: linear-gradient(180deg, #fbfcfb 0%, #f3f7f5 100%);
}

.package-features li {
    border-bottom: 1px solid rgba(223, 230, 226, 0.68);
}

.package-features li:last-child {
    border-bottom: 0;
}

.faq-question {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

.faq-question:hover h4 {
    color: var(--accent);
}

.faq-answer:not(.collapsed) {
    border-top: 1px solid rgba(223, 230, 226, 0.72);
}

.logos-section {
    background: linear-gradient(180deg, #f7f8f6 0%, #ffffff 100%);
}

.category-icon {
    box-shadow: inset 0 0 0 1px rgba(14, 124, 102, 0.1);
}

.contact {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7faf8 58%, #ffffff 100%);
}

.cta-checklist {
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(23, 33, 31, 0.05);
}

.contact .booking-wizard-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(23, 33, 31, 0.1);
}

.booking-wizard-container::before {
    z-index: 1;
}

.contact .booking-steps {
    padding-top: 3px;
}

.contact .form-group input:focus,
.contact .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-focus);
}

.contact .booking-actions .btn {
    box-shadow: none;
}

.floating-ui .chat-btn {
    box-shadow: 0 14px 32px rgba(14, 124, 102, 0.24);
}

.floating-ui .chat-btn:hover,
.top-btn:hover {
    transform: translateY(-3px);
}

.fade-up {
    transform: translateY(22px);
    transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 960px) {
    .pricing-package.recommended,
    .pricing-package.recommended:hover {
        transform: none;
    }

    .conf-hero-form-box {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 76px;
    }

    section[id] {
        scroll-margin-top: 76px;
    }

    .nav-links a::after {
        display: none;
    }

    .subheading::before {
        width: 18px;
    }

    .proof-item::before {
        left: 16px;
        right: 16px;
    }

    .package-carousel {
        box-shadow: 0 12px 30px rgba(23, 33, 31, 0.07);
    }

    .pkg-grid {
        min-height: 0;
    }

    .flow-item:hover .flow-content,
    .problem-item-hero:hover {
        transform: none;
    }

    .case-study-card.flagship::before,
    .pricing-package.recommended::before {
        width: 3px;
    }
}

/* 2026 homepage repositioning: external operations room */
.section-lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.section-lead.center {
    margin-left: auto;
    margin-right: auto;
}

.risk-section .section-header {
    max-width: 900px;
}

.ops-section {
    background: var(--surface-dark);
    color: var(--text-on-dark);
}

.ops-section .section-header h2,
.ops-section .ops-card h3 {
    color: var(--text-on-dark);
}

.ops-section .section-lead,
.ops-card p,
.method-intro p,
.method-step p,
.method-note {
    color: rgba(245, 247, 250, 0.72);
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ops-card {
    min-height: 190px;
    padding: 28px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ops-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(143, 211, 196, 0.38);
}

.ops-card span,
.method-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(14, 124, 102, 0.14);
    color: #8fd3c4;
    font-weight: 700;
    font-size: 0.82rem;
}

.ops-card h3,
.method-step h3,
.fit-card h3 {
    font-size: 1.12rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.ops-card p,
.method-step p,
.fit-card li {
    font-size: 0.94rem;
    line-height: 1.75;
}

.ops-summary {
    max-width: 820px;
    margin: 38px auto 0;
    padding: 22px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(143, 211, 196, 0.28);
    color: var(--text-on-dark);
    text-align: center;
    background: rgba(14, 124, 102, 0.12);
}

.method-section {
    background: #0d1b2f;
    color: var(--text-on-dark);
}

.method-intro {
    max-width: 860px;
    margin-bottom: 44px;
}

.method-intro h2 {
    color: var(--text-on-dark);
    font-size: 2.6rem;
    line-height: 1.15;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.method-step {
    padding: 26px 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.method-step h3 {
    color: var(--text-on-dark);
}

.method-note {
    margin-top: 30px;
    padding: 22px 26px;
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.fit-section {
    background: var(--bg-primary);
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fit-card {
    padding: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}

.fit-card.good {
    border-color: rgba(14, 124, 102, 0.24);
}

.fit-card.caution {
    background: var(--bg-secondary);
}

.fit-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    margin-bottom: 20px;
}

.fit-card h3 i {
    color: var(--accent);
}

.fit-card ul {
    display: grid;
    gap: 12px;
}

.fit-card li {
    position: relative;
    padding-left: 18px;
    color: var(--text-muted);
}

.fit-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.pricing-grid.pricing-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-grid-4 .pricing-package {
    display: flex;
    flex-direction: column;
}

.pricing-grid-4 .package-footer {
    margin-top: auto;
}

.pricing-grid-4 .package-footer .btn {
    width: 100%;
}

.contact .form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.1);
}

@media (max-width: 1180px) {
    .method-steps,
    .pricing-grid.pricing-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ops-grid,
    .fit-grid {
        grid-template-columns: 1fr;
    }

    .ops-card {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .section-lead {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .method-intro h2 {
        font-size: 2rem;
    }

    .method-steps,
    .pricing-grid.pricing-grid-4 {
        grid-template-columns: 1fr;
    }

    .ops-card,
    .method-step,
    .fit-card {
        padding: 24px;
    }

    .hero-grid,
    .hero .container[style*="grid"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .hero-content,
    .hero h1,
    .hero .hero-subtitle,
    .problem-list-hero,
    .problem-item-hero,
    .hero-actions,
    .hero-actions .btn {
        min-width: 0;
        max-width: 100%;
    }

    .hero-actions .btn,
    .problem-item-hero {
        white-space: normal;
    }
}
