@charset "UTF-8";

/* ==========================================================================
   Variables & Design Tokens (v3: Enterprise Navy)
   ========================================================================== */
:root {
    /* Colors (Updated: Brighter Teal & Sophisticated Orange CTA) */
    --color-primary: #2A7E85;
    /* Brighter Teal (Logo Base) */
    --color-primary-light: #38A3AC;
    --color-primary-dark: #1F5F65;
    --color-navy: #0F1D1F;
    --color-navy-light: #1E2E31;

    --color-accent: #D46116;
    /* Muted deep orange */
    --color-accent-hover: #B4510D;
    --color-gold: #C5A059;
    /* Sophisticated Gold */
    --color-success: #7CC064;

    --color-bg-base: #FFFFFF;
    --color-bg-alt: #F8FAFA;
    --color-bg-cta: #F0F9F9;

    --color-text-dark: #12282B;
    --color-text-medium: #475569;
    /* Sub Text (Slate 600) */
    --color-text-light: #FFFFFF;
    /* White Text */

    --color-border: #E2E8F0;

    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-number: 'Roboto', sans-serif;

    --text-base: 1.125rem;
    /* 18px */

    /* Shadows */
    --shadow-std: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Spacing */
    --section-padding: 90px 20px;
    --container-max: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.8;
    background-color: var(--color-bg-base);
    padding-top: var(--header-height);
    font-size: var(--text-base);
    overflow-wrap: anywhere;
    /* Safety for long URLs/Text */
}

/* Prevent bad breaks in Japanese headings */
h1,
h2,
h3 {
    overflow-wrap: normal;
    word-break: keep-all;
}

@media (max-width: 768px) {

    h1,
    h2,
    h3 {
        word-break: normal;
        /* Allow breaks on mobile */
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* Typography Helpers */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--color-navy);
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 80px;
    text-align: center;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

.number-text {
    font-family: var(--font-number);
    font-weight: 900;
    line-height: 1;
}

.text-primary {
    color: var(--color-primary);
}

.text-navy {
    color: var(--color-navy);
}

.text-accent {
    color: var(--color-accent);
}

.text-medium {
    color: var(--color-text-medium);
}

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

.text-white {
    color: #fff;
}

/* Semantic Breaks for Japanese */
.inline-block {
    display: inline-block;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-cta {
    background-color: var(--color-bg-cta);
}

.bg-navy {
    background-color: var(--color-navy);
    color: #fff;
}

.mt-lg {
    margin-top: 3rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Centering Utilities */
.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card Styles */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-std);
    padding: 40px;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

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

.card-heavy {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-heavy);
    padding: 48px;
}

.card-light {
    box-shadow: none;
    border: 1px solid var(--color-border);
    padding: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-std);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

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

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

.btn-outline:hover {
    background-color: var(--color-bg-cta);
}

.btn-lg {
    padding: 1.5rem 3.5rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

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

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

.logo img {
    height: 56px;
    /* ロゴの視認性を高めるためサイズを大きく調整 */
    width: auto;
    border-radius: 0;
    /* ロゴ画像に半径は不要 */
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-dark);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-cta {
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    /* Flex for centering if needed */
    justify-content: center;
    /* Center by default */
}

/* If placed in header/separate bar */
.breadcrumb-bar {
    background: var(--color-bg-alt);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   Footer (Enterprise)
   ========================================================================== */
.site-footer {
    background-color: var(--color-navy);
    /* Deep Navy */
    color: #fff;
    padding: 80px 20px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a:hover {
    color: #93C5FD;
}

.company-info {
    text-align: center;
    color: #CBD5E1;
    /* Light Slate */
    font-size: 0.9rem;
    line-height: 1.6;
}

.company-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    opacity: 0.6;
}

/* ==========================================================================
   Icons
   ========================================================================== */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--color-bg-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
    stroke: var(--color-primary);
    fill: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 20px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .card,
    .card-heavy {
        padding: 32px 24px;
    }

    .main-nav {
        display: none;
    }

    .container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   Hero Layout (Added for v3)
   ========================================================================== */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

@media (max-width: 960px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Grids & Components (Added for v3 fixes)
   ========================================================================== */
.stats-grid,
.problems-grid,
.features-grid,
.functions-grid,
.inclusions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 960px) {

    .stats-grid,
    .problems-grid,
    .features-grid,
    .functions-grid,
    .inclusions-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Mockup Play Button */
.placeholder-video {
    background-color: #1E293B;
    width: 100%;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
}

.play-btn {
    font-size: 4rem;
    /* Match sample page size */
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    line-height: 1;
}

.placeholder-video:hover .play-btn {
    color: #fff;
    transform: scale(1.1);
}

.placeholder-text-lines .line {
    height: 8px;
    background: #E2E8F0;
    margin-bottom: 8px;
    border-radius: 4px;
}

.w-70 {
    width: 70%;
}

.w-50 {
    width: 50%;
}

.w-80 {
    width: 80%;
}

/* Mockup Container Styles */
.mockup-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
}

.mockup-screen {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover .mockup-screen {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #F1F5F9;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #E2E8F0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #EF4444;
}

.yellow {
    background: #F59E0B;
}

.green {
    background: #10B981;
}

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: #1E293B;
    border-right: 1px solid #E2E8F0;
}

.mockup-main {
    flex: 1;
    padding: 20px;
    background: #fff;
}

/* ==========================================================================
   Stats & Features Fixes (Step 225)
   ========================================================================== */
.stat-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-caption {
    font-size: 0.85rem;
    color: var(--color-text-medium);
}

/* Force 4 columns for features grid on PC */
.features-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

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

.p-4 {
    padding: 1.5rem;
}

.text-sm {
    font-size: 0.85rem;
}

/* ==========================================================================
   Service Overview Visual Styles (Migrated from index.html)
   ========================================================================== */
.before-after-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    width: 100%;
    background: #f8fafc;
    padding: 50px 40px;
    border-radius: 20px;
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-std);
}

.ba-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: left;
}

.before-wrap { flex: 1; min-width: 0; }
.before-wrap .ba-label { color: var(--color-text-medium); }
.pdf-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.pdf-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}
.pdf-icon {
    width: 32px;
    height: 32px;
    background: #ef4444;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}
.pdf-title { font-size: 13px; color: var(--color-text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.pdf-line { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 10px; }
.pdf-line.short { width: 65%; }
.pdf-line.medium { width: 85%; }
.pdf-line.long { width: 100%; }
.pdf-line.tiny { width: 40%; }
.pdf-section-title { height: 10px; background: #cbd5e1; border-radius: 4px; width: 50%; margin: 20px 0 12px; }

.ba-arrow { 
    color: var(--color-primary); 
    font-size: 32px; 
    flex-shrink: 0; 
    opacity: 0.8;
    font-weight: bold;
}

.after-wrap { flex: 1; min-width: 0; }
.after-wrap .ba-label { color: var(--color-primary); }
.video-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-heavy);
}
.video-thumbnail-sim {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-content-sim {
    width: 80%;
    height: 70%;
    background: white;
    border-radius: 6px;
    padding: 18px;
    position: relative;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.slide-heading-sim { height: 12px; background: var(--color-primary); border-radius: 3px; width: 55%; margin-bottom: 12px; }
.slide-line-sim { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 8px; }
.slide-line-sim.s { width: 60%; }
.slide-line-sim.m { width: 80%; }
.slide-line-sim.l { width: 95%; }
.slide-highlight-sim { background: #fef08a; height: 8px; border-radius: 3px; width: 70%; margin-bottom: 8px; }

.ba-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-play-btn {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}
.ba-play-btn::after {
    content: ''; width: 0; height: 0; border-style: solid;
    border-width: 10px 0 10px 20px; border-color: transparent transparent transparent var(--color-primary); margin-left: 4px;
}
.ba-progress-bar { height: 4px; background: #e2e8f0; position: relative; }
.ba-progress-fill { height: 100%; width: 35%; background: var(--color-primary); }
.ba-video-controls { display: flex; align-items: center; padding: 10px 15px; gap: 12px; background: #f8fafc; border-top: 1px solid var(--color-border); }
.ba-ctrl-play { width: 22px; height: 22px; background: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ba-ctrl-play::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 8px; border-color: transparent transparent transparent white; margin-left: 1px; }
.ba-time-label { font-size: 11px; color: #64748b; font-family: var(--font-number); }
.ba-waveform { flex: 1; display: flex; align-items: center; gap: 2px; height: 20px; }
.ba-wave-bar { width: 2px; background: var(--color-primary); border-radius: 1px; opacity: 0.6; }

.ba-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.ba-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-navy);
}
.ba-feature-item span {
    font-size: 2.5rem;
}

@media (max-width: 960px) {
    .ba-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .before-after-container { 
        flex-direction: column; 
        padding: 30px 20px; 
        gap: 24px;
    }
    .ba-arrow { 
        transform: rotate(90deg); 
        margin: 10px 0;
    }
    .pdf-card, .video-card { width: 100%; max-width: 400px; margin: 0 auto; }
    .ba-feature-item { font-size: 1rem; }
}
/* ==========================================================================
   Hero Section Custom Styles (Migrated from index.html)
   ========================================================================== */
@media (min-width: 769px) {
    .pc-only {
        display: block;
    }
}

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

.hero-section {
    background: linear-gradient(135deg, #1B4D53 0%, #2A7E85 100%);
    /* Brighter Teal Gradient */
    color: #ffffff;
    /* FORCE WHITE TEXT */
    border-bottom: 3px solid var(--color-gold);
    /* Gold accent line at the bottom */
}

/* Override default generic H1 color for Hero */
.hero-section h1 {
    color: #ffffff;
    font-size: 4.2rem; /* Increased from 3.5rem for more impact */
    line-height: 1.2;
}

.hero-sub {
    color: #E2E8F0;
    margin-top: 1.5rem; /* Reduced margin */
}

.hero-price-tag {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    border-left: 4px solid var(--color-gold);
}

/* 3D Mockup Updates (Keep for reference if needed) */
.mockup-container {
    transform: rotateY(-10deg) rotateX(5deg);
}

/* ==========================================================================
   Video Modal Styles (Migrated from index.html)
   ========================================================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#videoTrigger:hover .play-overlay {
    opacity: 1;
}
