@charset "UTF-8";

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-color: #38bdf8;
    --card-bg: rgba(30, 41, 59, 0.6);
    --font-main: 'M PLUS 1p', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. Base Layout (Body Scroll Fix)
   ========================================================================== */
html {
    width: 100%;
    /* overflow managed by body */
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: transparent;
    /* Changed to show global bg */
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.8;
    /* Ensure horizontal overflow is hidden */
    position: relative;
}

/* Wrapper to strictly enforce no overflow on mobile */
.wrapper-overflow {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Global Background */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Changed from 100vw to 100% to avoid scrollbar width calculation issues */
    height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%),
        url('assets/bg_about.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback for No-WebGL Environment */
body.no-webgl {
    background: transparent;
}

#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Changed from 100vw to 100% */
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

body.no-webgl #webgl-container {
    display: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* ==========================================================================
   3. Animations (Fly-In)
   ========================================================================== */
/* Fly-in Animations */
.fly-in-trigger {
    opacity: 0;
    transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
    /* Tuned to 1.5s */
    /* Force override of component 0.1s transitions */
    will-change: opacity, transform;
}

.fly-in-left {
    transform: translateX(-30vw);
}

.fly-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fly-in-right {
    transform: translateX(30vw);
}

.fly-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fly-in-bottom {
    transform: translateY(30vh);
}

.fly-in-bottom.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scrollAnim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

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

/* ==========================================================================
   Typography Helpers
   ========================================================================== */
.hero-title-large {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
}

.hero-desc {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}


/* Hamburger Menu (Hidden by default) */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ==========================================================================
   4. Header
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    height: 80px;
    display: flex;
    align-items: center;
    /* Hidden by default (Show on Scroll) */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
    padding: 10px 30px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* Increased gap for timeline */
    position: relative;
    padding: 20px 0;
}

/* --- End of original styles --- */


/* Glass Card with Watermark-Icon Design */
.glass-card-watermark {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    /* Darker background as per reference */
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    /* More padding */
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align text to top */
    text-align: left;
    /* Align text left as per reference */
}

.glass-card-watermark:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.8);
}

.glass-card-watermark h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 800;
    z-index: 2;
    text-align: center;
    /* Title centered or left? Ref image shows centered-ish titles in boxes? No, "Clear Pricing" seems centered. Let's stick to center for title, or follow specific instructions with reference. The ref image shows Title Centered, Text Justified/Left. */
    text-align: center;
}

.glass-card-watermark p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1rem;
    z-index: 2;
    text-align: left;
}

.watermark-icon {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    /* Larger */
    height: 180px;
    opacity: 0.15;
    /* Visibility */
    pointer-events: none;
    z-index: 1;
    transform: rotate(-20deg);
    filter: grayscale(100%) brightness(150%) sepia(100%) hue-rotate(170deg) saturate(200%);
    /* Blueish tint */
    object-fit: contain;
}

/* Ensure no other icon is visible if we want text main */
.service-icon,
.feature-img {
    display: none;
    /* Hide the top icon */
}


/* Timeline Vertical Line */
.flow-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.flow-line-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0%;
    /* Animate this */
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 0;
}

.flow-step {
    width: 100%;
    max-width: 700px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Specific Flow Style */
    border-left: 4px solid var(--accent-color);
    cursor: pointer;
}

/* Timeline Dot */
.flow-step::before {
    content: '';
    position: absolute;
    left: -54px;
}

/* Header Logo Specific Fix */
header .logo {
    margin: 0;
    padding: 0;
    line-height: 0;
    display: flex;
    align-items: center;
}

header .logo img,
.logo-img {
    height: 50px;
    width: auto;
    padding: 5px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-color), inset 0 0 5px rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    object-fit: contain;
}

header.scrolled .logo-img {
    height: 40px;
}

.logo-img:hover {
    box-shadow: 0 0 20px var(--accent-color), inset 0 0 10px rgba(56, 189, 248, 0.5);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.02);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
    background: transparent !important;
    min-height: 100vh;
    height: auto;
    padding-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center Vertically */
    align-items: center;
    text-align: center;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    padding-bottom: 40px;
    margin: auto;
    /* Ensure center alignment */
}

.hero-logo-center img {
    width: 180px;
    max-width: 80%;
    /* Safety cap */
    height: auto;
    margin-bottom: 2rem;
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    box-shadow: 0 0 20px var(--accent-color), inset 0 0 10px rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.hero-catch {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.15em;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    margin-top: 1rem;
}

.scroll-arrow {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    z-index: 2;
}

.arrow-down {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    margin-top: 10px;
    animation: scrollAnim 2s infinite;
}

/* ==========================================================================
   6. Sections Common
   ========================================================================== */
.section {
    width: 100%;
    scroll-margin-top: 80px;
    padding: 120px 0 160px 0;
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 auto 3rem auto;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title-en {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title-jp {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

/* Background Layer */
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    background-color: #020617;
}

/* ==========================================================================
   7. About Section
   ========================================================================== */
.about-wrapper {
    position: relative;
    margin-top: 250px;
    /* Physical separation from Hero */
    width: 100%;
    /* Ensure background stays within this wrapper */
    isolation: isolate;
    padding: 20px;
    /* Safety padding */
    z-index: 5;
    /* Ensure above Hero */
}

#about {
    margin-top: 0;
}

.about-layer {
    /* Use Global BG */
    background: transparent;
}

.about-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding: 6rem 2rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 2.2;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.highlight-p {
    font-weight: 800;
    color: var(--accent-color);
    margin-top: 3rem;
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4), 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   8. Strength Section
   ========================================================================== */
.strength-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    overflow: visible;
    padding: 20px 0;
    perspective: 1000px;
    /* For 3D Tilt */
}

/* ==========================================================================
   Common Glass Card Styles (Refactored)
   - Applies to Strength, Service, Info, Flow
   ========================================================================== */
.strength-item,
.info-card,
.service-row,
.flow-step {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
    /* 0.1s for fast tilt, 0.4s for glow */
}

/* Common Hover Glow (Index Style) */
.strength-item:hover,
.info-card:hover,
.service-row:hover,
.flow-step:hover {
    border-color: rgba(56, 189, 248, 1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6), inset 0 0 20px rgba(56, 189, 248, 0.2);
}

.info-card {
    padding: 2.5rem;
    text-align: center;
    cursor: default;
}

.strength-item {
    text-align: left;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
    min-height: 300px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.strength-item img {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 220px !important;
    height: 220px !important;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
    transform: rotate(-15deg);
    z-index: 0;
    margin-bottom: 0 !important;
    pointer-events: none;
}

.s-num {
    display: block;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    position: absolute;
    top: -20px;
    right: 10px;
    z-index: 0;
    pointer-events: none;
}

.strength-item h4,
.strength-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    text-align: left;
}

.strength-item p,
.strength-desc {
    color: var(--text-muted);
    font-size: 1.0rem;
    text-align: left;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   9. Service Section
   ========================================================================== */
.service-layer {
    /* Use Global BG */
    background: transparent;
    box-shadow: none;
    /* Remove black divider lines */
}

@keyframes bgFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

#service {
    z-index: 4;
}

.service-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2.5rem;
    overflow: visible;
    perspective: 1000px;
}

/* Nav alignment right */
nav.nav-menu {
    margin-left: auto;
}

/* Service Row Overflow Fix */
.service-row {
    padding: 1.5rem 1.0rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center Content Vertical */
    text-align: center;
    gap: 0.5rem;
    /* Reduced gap */
    min-height: 220px;
    /* Slightly reduced min-height */
    overflow: hidden;
    /* Prevent watermark spill */
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    margin-bottom: 0.2rem;
    /* Reduced margin */
}

.service-detail h4 {
    font-size: 1.6rem;
    /* Increased from 1.4rem */
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.service-comment {
    font-size: 1.0rem;
    /* Increased from 0.9rem */
    color: var(--text-muted);
    line-height: 1.5;
    /* Slightly tighter line height */
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   10. Voice Section (Carousel)
   ========================================================================== */
.voice-3d-container {
    perspective: 1000px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    width: 100%;
    margin-bottom: 2rem;
}

.voice-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.voice-card {
    position: absolute;
    width: 350px;
    height: auto;
    min-height: 250px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.3s;
    transform-style: preserve-3d;
}

.voice-card.active {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
    z-index: 10;
}

.voice-card h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.voice-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.c-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* ==========================================================================
   11. Contact Section
   ========================================================================== */
.contact-box {
    text-align: center;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.contact-msg {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #0f172a;
    text-decoration: none;
    padding: 1.2rem 4rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.8);
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav li {
    position: relative;
}

/* Dropdown Container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    /* Override nav gap */
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Links */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    white-space: nowrap;
    color: #ccc;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    text-align: left;
}

.dropdown-menu a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
}

/* Nested Dropdown (Optional for Tools > OBS) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    transform: translateX(10px) translateY(0);
    margin-top: -10px;
}

.dropdown-submenu:hover>.dropdown-menu {
    transform: translateX(0) translateY(0);
}

/* Mobile Responsiveness for Dropdown (Simplified) */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        /* Hidden by default on mobile unless toggled (not implemented here, keeping simple hover/tap) */
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
footer {
    height: auto;
    padding: 0;
    position: relative;
    z-index: 10;
    background: #020617;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 60px;
    width: 100%;
    padding: 0;
}

.footer-logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.footer-logo img {
    height: 40px;
    max-height: 40px;
    width: auto;
    opacity: 0.9;
    object-fit: contain;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-color), inset 0 0 5px rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
}

.footer-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.3s;
    line-height: 1;
}

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

.copyright {
    font-size: 0.65rem;
    color: #475569;
    white-space: nowrap;
    line-height: 1;
}

/* ==========================================================================
   13. Media Queries
   ========================================================================== */
/* ==========================================================================
   13. Media Queries
   ========================================================================== */
@media (max-width: 768px) {

    /* Header & Nav */
    .header-inner {
        flex-direction: row;
        /* Keep logo and hamburger in row */
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .hamburger {
        display: block;
        /* Show hamburger */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        /* Full width */
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        /* Slide out */
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        /* Behind hamburger (1001) */
    }

    .nav-menu.active {
        transform: translateX(0);
        /* Slide in */
    }

    nav ul {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    nav a {
        font-size: 1.5rem;
        /* Larger text for mobile */
    }

    /* Adjust dropdowns for mobile nav */
    .dropdown-menu {
        position: static;
        width: auto;
        min-width: unset;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 10px 0;
        text-align: center;
        transform: none;
        display: none;
        /* Hide submenu initially */
        opacity: 1;
        visibility: visible;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
        /* Show when clicked */
    }

    .dropdown-menu a {
        white-space: normal;
        /* Allow text wrapping */
        word-break: break-word;
        /* Ensure functionality on narrow screens */
        padding: 10px;
    }

    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.8em;
    }

    /* Hero */
    .hero-catch {
        font-size: 2.0rem;
        /* Smaller for mobile */
        padding: 0 10px;
    }

    .hero-title-large {
        font-size: 2.5rem;
        /* Drastically reduced from 5rem */
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 1rem;
        /* Reduced from 1.4rem */
        line-height: 1.6;
    }

    .hero-logo-center img {
        width: 140px;
    }

    /* Grids to Column */
    .service-list,
    .strength-list {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    /* Fix for inline flex containers that need to wrap (like in stream-marker-pro) */
    .strength-list[style*="display: flex"] {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .strength-list[style*="display: flex"]>div {
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
    }

    /* Cards */
    .voice-card {
        width: 90%;
        max-width: 350px;
        /* Ensure it doesn't overflow small screens */
        left: 50%;
        transform: translateX(-50%) !important;
        /* Force center align without 3D on mobile if needed, or rely on JS */
    }

    /* Force overflow fix for Fly-in animations */
    .fly-in-trigger {
        will-change: opacity, transform;
    }

    /* Ensure no container overflows */
    .container {
        max-width: 100%;
        overflow: hidden;
        /* Clip internal overflows */
    }

    .contact-box {
        padding: 2rem 1.5rem;
    }

    .contact-btn {
        padding: 1rem 3rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        height: auto;
        padding: 30px 0;
        gap: 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Header Logo Mobile */
    header .logo img,
    .logo-img {
        height: 40px;
        /* Smaller logo on mobile */
    }

    /* Reduce min-height for cards */
    .strength-item,
    .service-row,
    .voice-card {
        min-height: auto;
        /* Let content define height */
        padding: 2rem 1.5rem;
    }

    .service-row {
        min-height: 180px;
        /* Slightly smaller minimum for services */
    }

    /* Adjust spacing */
    .section {
        padding: 80px 0 100px 0;
        /* Reduced padding */
    }

    .section-title-jp {
        margin-bottom: 2.5rem;
        font-size: 1.6rem;
    }
}

/* Keyframes for Glow and Wobble */
@keyframes borderGlow {
    0% {
        box-shadow: 0 0 5px rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
        border-color: rgba(56, 189, 248, 1);
    }
}

@keyframes cardWobble {
    0% {
        transform: rotate(0deg) scale(1.02);
    }

    25% {
        transform: rotate(-1deg) scale(1.02);
    }

    50% {
        transform: rotate(0deg) scale(1.02);
    }

    75% {
        transform: rotate(1deg) scale(1.02);
    }

    100% {
        transform: rotate(0deg) scale(1.02);
    }
}

/* Enhancements: FAQ Action */
.faq-item {
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
    cursor: default;
}

.faq-item:hover {
    transform: translateX(10px);
    background: rgba(56, 189, 248, 0.1);
    border-left-color: var(--accent-color);
}

/* ==========================================================================
   10. Story Section (HP Production Page Mobile Fixes)
   ========================================================================== */
.story-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.story-content.reverse {
    flex-direction: row-reverse;
}

.story-content.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Specific shadows based on context (Chaos vs Growth) */
.story-content:not(.reverse) .story-img {
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.3);
}

.story-content.reverse .story-img {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.story-img-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
    border: 1px solid #fff;
    margin-bottom: 20px;
    object-fit: cover;
}

/* Mobile Responsive Styles for Story Section */
@media (max-width: 768px) {

    .story-card {
        padding: 20px !important;
        /* Reduce padding to prevent overflow */
    }

    .story-content,
    .story-content.reverse {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px;
        width: 100%;
        /* Ensure content stays within container */
    }

    .story-img {
        width: 140px;
        /* Fixed smaller width for icon-like appearance */
        height: 140px;
        /* Fixed height for square aspect ratio */
        border-radius: 12px;
        /* Maintain rounded corners */
        object-fit: cover;
        margin-bottom: 15px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
        /* Slightly reduced shadow */
    }

    /* Center circle image specifically */
    .story-img-circle {
        margin: 0 auto 20px auto;
        width: 100px;
        /* Keep circle consistent */
        height: 100px;
    }

    .story-text {
        width: 100%;
        text-align: center;
        /* Center text align for better mobile look with centered image */
    }

    .story-text h3 {
        text-align: center;
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    .story-text p {
        text-align: left;
        /* Keep body text readable */
        line-height: 1.8;
        font-size: 0.95rem !important;
    }

    /* Add a background to text for readability against complex bg */
    .story-text {
        background: rgba(0, 0, 0, 0.5);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(4px);
    }
}