/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --accent-color: #d4af37; /* Premium Gold/Brass tone */
    --accent-hover: #c5a028;
    --text-main: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-gray: #f7f9fa;
    --bg-dark: #1a1a1a;
    --font-main: 'Zen Kaku Gothic New', sans-serif;
    --section-spacing: 60px; /* Reduced for mobile-first */
    --container-width: 100%;
    --mobile-max-width: 400px; /* Reduced content width to increase side margins */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.8;
    font-size: 15px; /* Slightly smaller for mobile-first */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ==========================================================================
   PC Background & Mobile Container (The Core Layout)
   ========================================================================== */
.pc-background {
    display: none; /* Hidden on mobile */
}

.mobile-container {
    position: relative;
    width: 100%;
    background-color: var(--bg-main);
    z-index: 10;
}

@media (min-width: 769px) {
    /* PC View */
    body {
        background-color: #000;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
    }

    .pc-background {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 0;
    }

    .bg-left {
        width: 50vw;
        height: 100vh;
        background-color: #111;
        position: relative;
        overflow: hidden;
    }

    /* Video Placeholder styling */
    .video-placeholder {
        width: 100%;
        height: 100%;
        background-color: #222;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.5);
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.7;
    }

    .bg-right {
        width: 50vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .bg-right::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.2); /* Slight darkening for contrast */
        z-index: 2;
        pointer-events: none;
    }

    .bg-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 2s ease-in-out;
        z-index: 1;
    }

    .bg-slide.active {
        opacity: 1;
        z-index: 2;
    }

    .bg-slide.fade-out {
        opacity: 0;
        z-index: 2; /* Keep it on top while fading out */
    }

    /* Center the mobile content like an app screen */
    .mobile-container {
        max-width: var(--mobile-max-width);
        min-height: 100vh;
        box-shadow: 0 0 50px rgba(0,0,0,0.3);
    }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.bg-gray { background-color: var(--bg-gray); }
.bg-dark { background-color: var(--bg-dark); }
.bg-light { background-color: #eaeaea; }
.text-dark { color: var(--text-main); }

.container {
    width: 100%;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.title-sub {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:active, .btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: sticky; /* Sticky in mobile container */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-logo-img {
    max-height: 35px; /* Adjust height to fit the sticky header naturally */
    width: auto;
    display: block;
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.header-btn {
    background-color: #000000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-bottom: 40px;
    background: #fff;
}

.hero-awards-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    background-color: #fff;
    width: 100%;
}

.hero-award-main {
    height: 45px;
    width: auto;
}

.hero-award-sub-group {
    display: flex;
    gap: 10px;
}

.hero-award-sub {
    height: 45px;
    width: auto;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Creating a taller crop frame */
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.1);
    display: block;
}

.hero-catch-overlay {
    position: absolute;
    top: 5%; /* Moved higher to avoid overlapping the house */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mv-text {
    max-width: 76.5%; /* Reduced to 85% of previous 90% size */
    height: auto;
    display: block;
}

.hero-catch-text {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.hero-center-btn-wrapper {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.hero-center-btn {
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    line-height: 0.7;
    text-align: center;
    width: max-content;
    height: 65px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.hero-center-btn-small {
    font-size: 0.9em;
}

@media (min-width: 769px) {
    .hero-center-btn:hover {
        box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.75);
    }
}

.hero-logo-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.animated-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: flowIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-time-1 { animation-delay: 1.5s; }
.delay-time-2 { animation-delay: 1.7s; }
.delay-time-3 { animation-delay: 1.9s; }

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

.hero-content {
    position: relative;
    padding: 50px 20px 0;
    background: #fff;
    z-index: 2;
}

.hero-logo-sub {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 15px; /* Forced 15px margin to LIMINI text */
}

.hero-logo-main {
    font-size: 52px; /* Adjusted size to 52px */
    font-weight: 300;
    letter-spacing: 0.15em;
    font-family: serif; 
    line-height: 1;
}

.hero-sub-catch {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    display: block;
    line-height: 1.5;
}

.hero-sub {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
}

.hero-cta .btn span {
    font-size: 1.1rem;
}
.hero-cta .btn small {
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.9;
}

/* ==========================================================================
   Infinite Image Slider
   ========================================================================== */
.slider-section {
    background-color: #000;
    padding: 50px 0; /* 50px height top and bottom */
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
    gap: 15px; /* Spacing between images */
    padding-left: 15px;
}

.slide {
    width: 250px; /* Fixed width for consistent mobile slider */
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 4px;
}

.slide-caption {
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.1em;
    font-weight: 500; /* Increased weight for visibility */
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 7.5px)); /* scroll exactly half way considering the gap */
    }
}

/* ==========================================================================
   2. Problem Section
   ========================================================================== */
.problem {
    background-color: #fff;
    padding-bottom: 0;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.problem-list li {
    position: relative;
    padding: 20px 30px;
    background-color: #e5e5e5;
    border-radius: 50px;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    max-width: 85%;
    /* Remove original list styling */
    list-style: none;
}

/* 1st & 3rd pointing right */
.problem-list li:nth-child(odd) {
    align-self: flex-start;
    border-bottom-right-radius: 5px; /* Flatten the corner where tail comes out */
}

.problem-list li:nth-child(odd)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-bottom-left-radius: 50%;
    box-shadow: -15px 0 0 -5px #e5e5e5;
    z-index: -1;
}

/* 2nd pointing left */
.problem-list li:nth-child(even) {
    align-self: flex-end;
    border-bottom-left-radius: 5px;
}

.problem-list li:nth-child(even)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -15px;
    width: 30px;
    height: 30px;
    border-bottom-right-radius: 50%;
    box-shadow: 15px 0 0 -5px #e5e5e5;
    z-index: -1;
}

/* ==========================================================================
   3. Performance Section (Replaces Solution Section)
   ========================================================================== */
.performance-section {
    width: 100%;
}

.perf-wave {
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.perf-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

.bg-beige {
    background-color: #f0ebd9;
}

.perf-awards {
    background-color: #F4F1EA;
    padding: 2rem 0 4rem;
}

.perf-awards-title {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.perf-awards-logos {
    background: #fff;
    padding: 2.5rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.award-logo-main {
    width: 80%; /* Increased size since it's on its own line */
    max-width: 300px;
    height: auto;
}

.award-logo-sub-group {
    display: flex;
    flex-direction: row; /* Horizontal alignment */
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.award-logo-sub {
    width: 45%;
    max-width: 150px;
    height: auto;
}

.perf-awards-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

.perf-awards-text p {
    margin-bottom: 0.5rem;
}

.perf-awards-message {
    text-align: left;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed #d1cbbd;
}

.perf-awards-message h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.5;
}

.perf-awards-message p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.perf-awards-image {
    display: block;
    max-width: 75%;
    margin: 2rem auto 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.perf-intro {
    background-color: #fff;
    padding: 5rem 0 3rem;
    position: relative;
}

.perf-intro::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    width: 2px;
    height: 100px;
    background-color: #F4F1EA;
    transform: translateX(-50%);
    z-index: 1;
}

.perf-intro-title {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.perf-feature {
    padding: 0.5rem 0; /* Reduced from 2rem to 0.5rem to tighten gap */
    background-color: transparent;
}

.perf-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.perf-num {
    font-family: serif;
    font-size: 3.5rem;
    line-height: 1;
    color: #b5a485;
}

.perf-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.perf-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.perf-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.perf-img-caption {
    text-align: right;
    font-size: 12pt;
    color: #666;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   4. Product Section
   ========================================================================== */
.badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 0;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.equation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem 0;
    gap: 0.5rem;
}

.eq-item, .eq-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    justify-content: center;
    text-align: center;
}

.eq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.eq-result {
    background-color: var(--accent-color);
    color: #fff;
    width: 160px;
    height: 160px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.eq-item .label, .eq-result .label {
    font-size: 13px;
    margin-bottom: 0.3rem;
}

.eq-result .label {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 900; /* Increased weight for better visibility */
}

.eq-item strong {
    font-size: 1rem;
    line-height: 1.2;
}

.eq-result strong {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.eq-plus, .eq-equals {
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 5px 0;
}

.product-text p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.feature-title-highlight {
    font-size: 24px;
    font-weight: 500;
    color: var(--accent-color);
}

.feature-title-num {
    font-size: 32px;
}

.feature-list {
    margin-top: 3rem;
}

.feature-item {
    margin-bottom: 3.5rem;
}

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

.feature-image {
    width: 100%;
    margin-bottom: 1.5rem;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
}

.feature-content {
    color: #fff;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.8rem;
}

.feature-num {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent-color);
    line-height: 1;
    display: block;
    margin-bottom: 0;
}

.feature-keyword {
    font-size: 24px;
    font-weight: 500;
    color: var(--accent-color);
    line-height: 1.2;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.feature-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* ==========================================================================
   6. CTA Section & Footer
   ========================================================================== */
.cta-bg-section {
    position: relative;
    padding: 3rem 0;
    background-image: url('../assets/images/20240612-006_s.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1); /* Slight overlay if needed for readability */
    z-index: 1;
}

.relative-container {
    position: relative;
    z-index: 2;
}

.cv-banner-wrap {
    margin-bottom: 30px;
    padding: 0 10px;
}

.cv-banner-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 0;
}

.cta-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cta-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-buttons .btn {
    padding: 1rem;
}

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px 30px;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
}

.footer-logo-wrap {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 90px; /* Reduced by 50% from 180px */
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-company-name {
    font-size: 0.77rem; /* Reduced to ~70% of 1.1rem */
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.footer-address {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.8;
}

.footer-tel {
    font-size: 1.7rem; /* Enlarged by 200% from 0.85rem */
    font-weight: 700;
    margin-top: 10px;
    display: block;
    line-height: 1.2;
}

.footer-sns {
    margin-bottom: 15px;
}

.footer-sns a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-sns a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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