:root {
    /* Colors */
    --color-bg: #F9F9F7;
    /* オフホワイト: 落ち着いた背景 */
    --color-text: #333333;
    /* 濃いグレー: 本文 */
    --color-main: #0F1C3F;
    /* 濃紺: 信頼、海 */
    --color-accent: #C5A059;
    /* シャンパンゴールド: 上質、輝き */
    --color-white: #FFFFFF;

    /* Fonts */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    --transition-base: 0.3s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

/* Distinctive Design Updates */

/* Add a subtle global texture for 'materiality' (avoids flat digital look) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contact Updates */
.contact {
    position: relative;
    background-color: var(--color-main);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
}

/* Subtle Pattern Overlay */
.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    margin-bottom: 3rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy background */
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-option .label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

/* Phone Specifics */
.contact-option.phone .phone-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-serif);
    /* Or a nice serif */
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.contact-option.phone .phone-number:hover {
    color: var(--color-accent);
}

.contact-option.phone .time {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Divider */
.contact-divider {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.5;
    position: relative;
    padding: 0 1rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.contact-divider::before {
    top: -25px;
}

.contact-divider::after {
    bottom: -25px;
}

/* Email Button Override for Context */
.contact .btn-primary {
    background-color: var(--color-white);
    color: var(--color-main);
    border-color: var(--color-white);
    min-width: 240px;
    /* Wide button */
}

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

/* Mobile Contact Layout */
@media (max-width: 768px) {
    .contact-options {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .contact-divider {
        width: 100%;
        height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1rem 0;
        display: flex;
        /* Centering text */
        align-items: center;
        justify-content: center;
    }

    .contact-divider::before,
    .contact-divider::after {
        display: none;
    }
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 50px;
    transition: all var(--transition-base);
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-main);
    color: var(--color-white);
    border: 1px solid var(--color-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-main);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-main);
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

/* Navigation Links - Text Flip Effect */
.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    display: block;
    overflow: hidden;
    line-height: 1.2;
    color: transparent;
    /* Hide real text */
    transition: none;
}

/* 1. Visible Text (Default State) - Initial Color Main */
.nav-list a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-main);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.1, 1);
}

/* 2. Hidden Text (Hover State) - Initial Color Accent, Located Below */
.nav-list a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    /* Start out of view */
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-accent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.1, 1);
    display: block !important;
    background: none;
    height: auto;
}

/* Hover Interaction */
.nav-list a:hover::before {
    transform: translateY(-100%);
    /* Move visible text up and out */
}

.nav-list a:hover::after {
    transform: translateY(-100%);
    /* Move hidden text up and in (to top:0) */
}



.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-main);
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    padding: 100px 20px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--color-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    /* Background shape */
    height: 100%;
    background-color: #f0f0f0;
    /* Subtle contrast for left side */
    z-index: -1;
    display: none;
    /* Hiding explicit background for cleaner look as requested */
}

/* Removing overlay as we are stripping the background photo */
.hero-bg::before {
    display: none;
}

/* Hero Content Layout */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1400px;
    z-index: 1;
    margin-top: -50px;
    /* Slight visual adjustment */
}

/* Typography Refinements */
.hero-content {
    max-width: 800px;
    color: var(--color-main);
    padding-left: 8%;
    /* More deliberate spacing */
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

/* Vertical Writing Accent */
.hero-subtitle {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1rem;
    color: var(--color-main);
    /* Unify color for elegance */
    letter-spacing: 0.3em;
    font-family: var(--font-serif);
    font-weight: 500;
    margin: 0;
    height: auto;
    min-height: 180px;
    /* Increased to prevent wrapping of '市' */
    border-right: 1px solid var(--color-accent);
    /* Subtle decorative line */
    padding-right: 1.5rem;
    margin-right: 0;
    /* Reset */
    margin-bottom: 0;
    /* Reset */
}

.hero-text-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    /* Larger, bolder */
    color: var(--color-main);
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    /* Tighter, modern spacing */
    white-space: nowrap;
    font-feature-settings: "palt";
    /* Proportional metrics for Japanese */
}

.hero-description {
    font-size: 1rem;
    color: #555;
    line-height: 2.2;
    /* Relaxed reading experience */
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.05em;
    max-width: 400px;
    /* Constrain for readability */
}

/* Premium Animation Curves - Refined to 'Float' */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    /* Reduced movement for elegance */
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

.hero-visual {
    width: 60%;
    height: 60vh;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    overflow: hidden;
    border-radius: 4px 0 0 4px;
    box-shadow: none;
    z-index: 0;
    /* Gradient mask to blend left edge */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);

    /* Animation: Swipe Reveal from Right */
    clip-path: inset(0 0 0 100%);
    /* Start hidden */
    animation: revealSlide 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.2s;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Text sits above the faded image */
}

.hero-visual img,
.hero-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.9;
    filter: contrast(1.1) grayscale(0.2);
    border-radius: 0;
}

/* Keyframes */
@keyframes revealSlide {
    0% {
        clip-path: inset(0 0 0 100%);
    }

    100% {
        clip-path: inset(0 0 0 0%);
    }
}

@keyframes imageScale {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
        /* Very gentle zoom in */
    }
}

/* Specific Stagger Delays for Hero Text */
.hero-stagger-1 {
    animation-delay: 0.8s;
}

/* Subtitle */
.hero-stagger-2 {
    animation-delay: 1.0s;
}

/* Title */
.hero-stagger-3 {
    animation-delay: 1.2s;
}

/* Description */
.hero-stagger-4 {
    animation-delay: 1.4s;
}

/* Button? */

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

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

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

/* Scroll Indicator - Editorial Style */
.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 8%;
    /* Align with content */
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align left */
    gap: 10px;
    color: var(--color-main);
    /* Restore Dark Color */
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.5;
    z-index: 10;
    font-family: var(--font-serif);
    font-style: italic;
}

.scroll-down .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-accent);
    /* Use accent color */
    animation: scrollLine 2s infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Sections Common */
.section {
    padding: var(--section-padding);
    padding-top: 150px;
    /* Increased top padding to accommodate diagonal */
    position: relative;
    /* Ensure z-index context for pseudo-elements */
    z-index: 1;
}

/* Better Diagonal Approach: Skewed Top Border */
.company,
.access,
.contact {
    position: relative;
    isolation: isolate;
}

/* 1. About (Standard BG: #F9F9F7) */

/* 2. Company Section (BG: White/Light Gray to contrast) */
.company {
    background-color: #FFFFFF;
    margin-top: -80px;
    /* Pull up to overlap */
    padding-top: 180px;
}

/* The Diagonal & Border */
.company::before {
    content: '';
    position: absolute;
    top: -40px;
    /* Move up */
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #FFFFFF;
    transform: skewY(-2.5deg);
    /* The angle */
    transform-origin: top left;
    border-top: 8px solid var(--color-accent);
    /* The Blade */
    z-index: 1;
}

/* Pull content up/down to accommodate */
.company .container {
    position: relative;
    z-index: 2;
    padding-top: 30px;
}


/* ACCESS SECTION (Back to #F9F9F7) */
.access {
    background-color: var(--color-bg);
    margin-top: 0;
}

/* Diagonal cutting INTO Company (which is white) */
.access::before {
    display: none;
}

.access .container {
    position: relative;
    z-index: 2;
    padding-top: 30px;
}


/* CONTACT SECTION (Dark #0F1C3F) */
.contact {
    overflow: visible;
    /* Allow diagonal to stick out top */
}

.contact::before {
    display: none;
}


.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-main);
    letter-spacing: 0.05em;
}

/* About Section */
.about {
    position: relative;
    /* Ensure canvas is positioned relative to this section */
    overflow: hidden;
    /* Clip canvas lines */
}

#streamline-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but above background */
    pointer-events: none;
    opacity: 0.6;
    /* Subtle effect */
}

.about-content {
    position: relative;
    z-index: 2;
    /* Sit above the canvas */
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 2;
}

/* New Consolidated Business Summary Styles */
.business-summary {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.business-summary h3 {
    font-family: var(--font-serif);
    color: var(--color-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.business-summary h3:first-of-type {
    margin-top: 0;
}

.business-summary p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}

/* Decorative element */
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    z-index: -1;
    border-radius: 8px;

    /* Animation: Diagonal Flow from Bottom-Left */
    animation: borderDiagonal 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Start hidden */
}

@keyframes borderDiagonal {
    0% {
        top: 60px;
        left: -60px;
        opacity: 0;
        clip-path: inset(0 100% 100% 0);
        /* Reveal effect */
    }

    100% {
        top: -20px;
        left: -20px;
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Business Section */
.business {
    background-color: #fff;
}

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

.business-card {
    background: transparent;
    transition: transform var(--transition-base);
}

.business-card:hover {
    transform: translateY(-10px);
}

.business-card .card-image {
    width: 100%;
    height: 250px;
    background-color: #E0E0E0;
    /* Placeholder */
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.business-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-main);
    margin-bottom: 1rem;
}

.business-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* Company Section Updates */
/* Company Carousel Styles */
.company-carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 2rem 1rem 3rem;
    /* Extra bottom padding for shadows/hover */
    margin: 0 -1rem;
    /* Negative margin to allow full-width scroll on mobile */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.company-carousel-container::-webkit-scrollbar {
    display: none;
}

.company-card {
    flex: 0 0 300px;
    /* Fixed width cards */
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Fun hover effect: Lift and Float */
.company-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(15, 28, 63, 0.1);
    border-color: var(--color-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.1);
    /* Accent with opacity */
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.company-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    background-color: var(--color-accent);
    color: #fff;
}

.company-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.company-card h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.company-card:hover h4::after {
    width: 100%;
}

.card-content dl {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-content dt {
    font-weight: 600;
    color: var(--color-main);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.card-content dt:first-child {
    margin-top: 0;
}

.card-content dd {
    margin-left: 0;
    color: var(--color-text);
}

.text-sm {
    font-size: 0.8em;
    opacity: 0.8;
}

.text-lg {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.mt-2 {
    margin-top: 1rem !important;
}

.subsection-title {
    display: none;
    /* Hide old title as cards have their own headers */
}

/* Adjust timeline to fit new vibe if needed, but keeping as is for now */

/* Timeline Styles */
.history-section {
    padding: 60px 0;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Center Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(197, 160, 89, 0.3);
    /* Subtle gold */
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

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

.timeline-content {
    position: relative;
    width: 45%;
    /* Less than 50% to leave gap */
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 28, 63, 0.1);
    border-color: rgba(197, 160, 89, 0.2);
}

/* Alternating Sides */
.timeline-item.left .timeline-content {
    margin-left: auto;
    margin-right: 55%;
    /* Push to left */
    text-align: right;
}

.timeline-item.right .timeline-content {
    margin-left: 55%;
    /* Push to right */
    text-align: left;
}

/* Dots on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 2rem;
    /* Align with top of content */
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    /* Fix closing brace for desktop styles first */
    z-index: 1;
}

/* Access Section */
.access-section {
    max-width: 1000px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.access-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.access-mode {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.access-mode h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.access-mode .icon {
    font-size: 1.4rem;
}

.access-mode .time {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: block;
}

.instruction-box {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.instruction-box p {
    margin-bottom: 0.5rem;
}

.instruction-box p:last-child {
    margin-bottom: 0;
}

.instruction-box .note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.8rem;
}

/* =========================================
   New Rich Animations (Global)
   ========================================= */

/* Timeline Slide In */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Company Rotating Circle */
.company {
    position: relative;
    overflow: hidden;
    /* Clip the big circle */
}

.company-bg-circle {
    position: absolute;
    top: 50%;
    right: -10%;
    /* Peek from right */
    width: 600px;
    height: 600px;
    border: 1px dashed rgba(197, 160, 89, 0.3);
    /* Dotted gold line */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: rotateCircle 60s linear infinite;
}

/* Inner circle for nice effect */
.company-bg-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotateCircle {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Ensure content sits above circle */
.company-carousel-container,
.company .section-header {
    position: relative;
    z-index: 2;
}


/* =========================================
   Footer Global Styles
   ========================================= */
.footer {
    background-color: #0a1229;
    color: var(--color-white);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-sans);
}


/* =========================================
   Mobile Optimization (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* Global Adjustments */
    .section-title {
        font-size: 2rem;
    }

    .container {
        width: 90%;
    }

    /* Header */
    .header {
        padding: 0.5rem 0;
    }

    .nav {
        display: none;
        /* Hide desktop nav */
    }

    /* Hero Section */
    .hero {
        padding-left: 5%;
        justify-content: center;
    }

    .hero-container {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 0;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: left;
    }

    .hero-subtitle {
        writing-mode: horizontal-tb;
        min-height: auto;
        border-right: none;
        border-bottom: 2px solid var(--color-accent);
        padding-right: 0;
        padding-bottom: 0.5rem;
        width: fit-content;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
        white-space: normal;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-visual {
        width: 100%;
        height: 40vh;
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        border-radius: 4px;
        margin-top: 2rem;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
        width: 100%;
    }

    /* Business/About Summary Card */
    .business-summary {
        padding: 1rem;
    }

    /* Company Carousel */
    .company-carousel-container {
        padding: 1rem 1rem 2rem;
        gap: 1rem;
    }

    .company-card {
        flex: 0 0 85%;
    }

    /* Access Section */
    .access-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer - Full override for mobile */
    .footer {
        padding: 3rem 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    /* Timeline Mobile Override */
    .timeline::before {
        left: 20px;
    }

    .timeline-item .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item::after {
        left: 20px;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        margin-left: 60px !important;
    }
}