:root {
    /* High-End "Hibiya Style" Palette */
    --color-primary: #102A24;
    /* Deep Slate Green */
    --color-bg: #1A1F24;
    /* Midnight Charcoal */
    --color-accent: #C5A059;
    /* Champagne Gold (Less yellow) */
    --color-brand-green: #4CA66B;
    /* Logo Green */

    --color-bg-section: #030f0a;
    /* Deep Black Green for Sections */

    --color-glass-dark: rgba(20, 30, 35, 0.85);
    --color-glass-light: rgba(255, 255, 255, 0.05);

    --color-text: #E0E0E0;
    --color-text-muted: #9BA4B0;
    /* Cool gray */

    --font-jp: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
    /* Mincho for Headings */
    --font-en: 'Cormorant Garamond', serif;
}

/* ... (skip unchanged) ... */

/* Main Content Sections */
.section {
    position: relative;
    z-index: 10;
    padding: 80px 5%;
    /* User requested: Black Green (Kuro-Midori) */
    background: linear-gradient(to bottom, var(--color-bg-section), #010503);
    /* Fallback */
    background-color: var(--color-bg-section);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    /* Full Screen Adjustment */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px;
}

/* ... (skip unchanged) ... */

/* Subtitle with variable */
.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--color-brand-green);
    /* Using variable */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ... (skip unchanged) ... */

/* Form Input Font Fix */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    color: #fff;
    font-family: var(--font-jp);
    /* Changed to Sans-Serif for readability */
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    /* Slightly reduced for input text */
    transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    /* Allow video bg to show */
    color: var(--color-text);
    font-family: var(--font-jp);
    overflow-x: hidden;
}

/* Typography Overrides for High-End Feel */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    /* Mincho for all headings */
    font-weight: 500;
    letter-spacing: 0.15em;
}

/* English headings in serif as well, often handled by class, but ensure overrides */
.section-title {
    font-family: var(--font-en);
    text-transform: uppercase;
    /* Force uppercase */
    letter-spacing: 0.1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.4s ease;
}

/* Global Image Filter Strategy */
img {
    /* filter: grayscale(80%) contrast(1.1); Removed per user request */
    transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

img:hover {
    filter: none;
}

/* Background Video */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    /* Dark fallback to prevent white flash */
    z-index: -1;
    overflow: hidden;
    /* Apply filter to background too for mood? Maybe less aggression */
    filter: brightness(0.6) contrast(1.1);
}

.video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    font-family: var(--font-en);
    font-size: 2rem;
    color: var(--color-accent);
    letter-spacing: 0.3em;
}


/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 31, 36, 0.95);
    /* Match new bg */
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    /* Gold subtle border */
}

/* ... logo ... */

/* Header Logo Animation */
/* Hero Logo Animation */
/* Hero Logo Animation (Stacked) */
/* Hero Logo Animation (Text + Shape) */
.hero-logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

/* 1. Main Text Animation (TRAIL) */
.animate-text {
    font-family: "Outfit", "Noto Sans JP", sans-serif;
    /* Match Logo Image */
    font-size: 5rem;
    font-weight: 700;
    /* Bold for Outfit */
    letter-spacing: 0.15em;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Legibility */
    position: relative;
}

.animate-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-text.is-visible span {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.animate-text span:nth-child(1) {
    transition-delay: 0.1s;
}

.animate-text span:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-text span:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-text span:nth-child(4) {
    transition-delay: 0.4s;
}

.animate-text span:nth-child(5) {
    transition-delay: 0.5s;
}

/* 2. Green Line - Removed */

/* 3. Subtitle */
.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #4CA66B;
    /* Brand Green */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.animate-text.is-visible~.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: color 0.3s ease;
    /* Removed height/overflow for simple text */
}

.nav a:hover {
    color: var(--color-accent);
    /* Simple Gold Hover */
}

/* btn-contact removed per user request for unified nav style */


/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Dark overlay for text readability */
    background: linear-gradient(to bottom, rgba(5, 10, 8, 0.3), rgba(5, 10, 8, 0.7));
}

.hero-content {
    display: flex;
    flex-direction: row-reverse;
    /* Put vertical text to the right-ish */
    align-items: flex-start;
    gap: 60px;
}

.hero-text-vertical {
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    line-height: 2;
    height: 400px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    border-right: 1px solid var(--color-accent);
    padding-right: 30px;
}

.hero-sub {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align bottom to the vertical text */
    height: 400px;
    padding-bottom: 20px;
    position: relative;
}

/* Removed old gold-border since we moved it to the vertical text right side in this refactor */
.gold-border {
    display: none;
}

.hero-sub p {
    font-family: var(--font-en);
    letter-spacing: 0.3em;
    color: var(--color-accent);
    transform: rotate(-90deg);
    transform-origin: right bottom;
    white-space: nowrap;
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    z-index: 20;
    cursor: pointer;
}

.hero .scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.section .scroll-indicator {
    position: sticky;
    bottom: 15px;
    align-self: center;
    margin-top: auto;
    padding-top: 60px;
}

.scroll-indicator span {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 30px;
    background: var(--color-text);
}

/* Main Content Sections (Identity, Service, Team, Company) */
/* These will slide OVER the fixed video background */
.section {
    position: relative;
    z-index: 10;
    padding: 60px 5% 15px 5%;
    background: linear-gradient(to bottom, #030f0a, #010503);
    background-color: #030f0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.2rem;
    /* Slightly smaller for fitting */
    color: #fff;
    margin-bottom: 10px;
    /* Reduced margin */
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Contact Section Layout */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
}

.contact-left {
    flex: 1;
    text-align: left;
    padding-top: 20px;
}

.contact-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-desc {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 2;
    margin-bottom: 30px;
}

.contact-info {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.contact-right {
    flex: 1;
    width: 100%;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #000;
    /* Deep black bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    color: #fff;
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.02);
}

.submit-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    align-self: flex-start;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
}

.submit-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 5px;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.submit-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.submit-btn:hover::after {
    transform: translate(3px, 3px);
    border-color: var(--color-accent);
}

/* Mobile Responsiveness for Contact */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .contact-left,
    .contact-right {
        text-align: center;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Identity - Glass Card */
.identity {
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    /* Lighter than bg for contrast */
    backdrop-filter: blur(10px);
    padding: 60px;
    border: 1px solid var(--color-glass-light);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.identity h2 {
    color: var(--color-accent);
    margin-bottom: 40px;
    font-size: 2rem;
}

.philosophy-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 2.4;
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
}

.signature {
    font-family: var(--font-en);
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
}

/* Service - Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 0;
}

.service-card {
    background: var(--color-glass-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 20px 0;
    /* Reduced bottom padding */
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: default;
    border-radius: 4px;
}

.service-card:hover {
    background: rgba(30, 94, 77, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-5px);
    /* Reduced hover movement to avoid unwanted overflow */
}

/* Image Area */
.service-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    padding-bottom: 0;
}

#service {
    scroll-margin-top: 80px;
    padding-top: 30px; /* Slight upward shift */
}

#team {
    padding-top: 40px; /* Shift upwards by 20px (from default 60px) */
}

#company {
    padding-bottom: 60px;
}

.service-img-area {
    width: 100%;
    height: 180px;
    /* Further reduced height for compactness */
    margin: 0;
    border-radius: 0;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
    filter: none;
    object-fit: cover;
}

/* Reference Style Colors */
.img-corporate {
    background: linear-gradient(to bottom right, #1a4d3f, #0d2620);
}

.img-wealth {
    background: linear-gradient(to bottom right, #c5a059, #8a6e3e);
}

.img-startup {
    background: linear-gradient(to bottom right, #1f1f1f, #0a0a0a);
}

/* Pricing Body */
.price-card-body {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-family: var(--font-en);
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    min-height: 3.2em;
    /* Ensure 2 lines of space */
    display: flex;
    align-items: center;
    /* Vertically center if 1 line */
}

.jp-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    min-height: 1.6em;
    /* Fixed height for consistency */
}

.plan-price {
    font-family: var(--font-en);
    color: var(--color-accent);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list {
    list-style: none;
    margin-top: 15px;
    /* Reduced margin */
}

.feature-list li {
    margin-bottom: 5px;
    /* Reduced item spacing */
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #ccc;
}

.feature-list li::before {
    content: '✔';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-size: 0.8em;
}

.recommended {
    border: 1px solid var(--color-accent);
    background: rgba(30, 40, 35, 0.95);
    transform: scale(1.05);
    z-index: 10;
}

.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 4px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    z-index: 20;
}

/* Team */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Reduced gap */
    flex-wrap: wrap;
    align-items: flex-start;
    /* Top align for uneven content */
}

.member-card {
    text-align: center;
    width: 380px;
    /* Increased width to reduce text height */
}

/* Company Profile */
.company {
    /* Match the Black Green flow */
    background: linear-gradient(to bottom, #010503, #000);
    padding-bottom: 50px;
}

/* Member Images */
.member-img-frame {
    width: 160px;
    /* Reduced width */
    height: 200px;
    /* Reduced height from 250px */
    margin: 0 auto 15px;
    /* Reduced margin */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Member Details */
.member-detail {
    text-align: left;
    margin-top: 15px;
    /* Reduced margin */
    font-size: 0.85rem;
    /* Slightly smaller text */
    color: #ccc;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    /* Reduced padding */
    line-height: 1.6;
    /* Tighter line height */
}

.member-bio {
    margin-bottom: 0;
    line-height: 1.8;
}

.career-list {
    display: none;
    /* Ensure no residual styles affect it */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.career-list li {
    margin-bottom: 8px;
    display: flex;
}

.career-list li span {
    color: var(--color-accent);
    font-family: var(--font-en);
    margin-right: 15px;
    min-width: 60px;
}

.member-card {
    text-align: center;
    width: 350px;
    /* Increased to fit text */
}

.coming-soon-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.coming-soon-text {
    font-family: var(--font-en);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    font-family: var(--font-serif);
    width: 30%;
}

.company-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* Service Desc */
.service-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    height: 3em;
    /* Align cards */
    line-height: 1.5;
}

/* Footer / Contact Section Layout */
.footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px;
    /* Ensure it looks like a section */
    scroll-snap-align: start;
    /* Snap point */
}

.name-en {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-accent);
    /* Gold for English name */
    letter-spacing: 0.1em;
    margin-top: 2px;
    margin-bottom: 10px;
}


.role {
    color: var(--color-accent);
    font-family: var(--font-en);
    font-size: 0.85rem;
    margin-bottom: 5px;
    /* Reduced margin */
    letter-spacing: 0.1em;
}

.name {
    font-size: 1.3rem;
    /* Slightly smaller */
    font-weight: 500;
    transition: opacity 0.3s;
}

/* New Header Logo Image */
.header-symbol {
    height: 100px;
    width: auto;
    margin-right: 12px;
}

.header-text-img {
    height: 100px;
    width: auto;
    display: block;
    margin-top: 0;
    /* Flexbox should handle vertical center */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Header Logo Animation */
.footer {
    background: #000;
    padding: 50px;
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: #444;
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px;
        flex-direction: column;
        /* Stack logo and nav */
        gap: 15px;
        background: rgba(26, 31, 36, 0.98);
        /* Solid bg for readability */
    }

    .nav {
        display: flex;
        /* Show menu */
        width: 100%;
        overflow-x: auto;
        /* Allow horizontal scroll if needed */
        white-space: nowrap;
        gap: 20px;
        padding-bottom: 5px;
        /* Spacing for scrollbar */
        -webkit-overflow-scrolling: touch;
        justify-content: center;
        /* Center align for premium feel */
    }

    .nav a {
        font-size: 0.8rem;
        /* Smaller font */
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-text-vertical {
        writing-mode: horizontal-tb;
        height: auto;
        font-size: 2rem;
        line-height: 1.6;
        text-align: center;
        flex-direction: column;
        border-right: none;
        padding-right: 0;
    }

    .hero-sub {
        height: auto;
        padding-bottom: 0px;
    }

    .hero-sub p {
        position: static;
        transform: none;
        margin-top: 20px;
    }

    .section {
        padding: 80px 5%;
    }

    .glass-card {
        padding: 40px 20px;
    }

    .recommended {
        transform: none;
    }

    .recommended:hover {
        transform: translateY(-5px);
    }
}

/* Stacked Logo Styles - High End & Small */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Tighter gap for better cohesion */
}

.logo-symbol {
    max-width: 140px !important;
    width: 25%;
    min-width: 60px;
    /* Ensure visibility */
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.logo-text {
    max-width: 360px;
    /* Refined width */
    width: 70%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    /* Softer shadow */
}

@media (max-width: 768px) {
    .logo-symbol {
        max-width: 100px;
        width: 30%;
    }

    .logo-text {
        max-width: 260px;
        width: 80%;
    }
}

/* Header Logo Refinement (Fixed) */
.header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    /* Proper spacing like reference */
}

.header-symbol {
    height: 40px !important;
    /* Explicit height */
    width: auto !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header .logo span {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .header-symbol {
        height: 30px !important;
    }
}


/* Full Screen Section Enforcement */
#about,
#team,
#company,
#contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 80px;
}

/* About Section Specifics */
.about {
    position: relative;
    color: var(--color-text);
    text-align: center;
    padding: 0 5%;
    /* Reset padding to rely on flex centering */
}

/* Mobile Optimization for Service Section */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 40px;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
        /* Limit width for readability */
        margin: 0 auto;
        /* Center cards */
    }

    /* Reset fixed heights to allow natural text flow on mobile */
    .service-card h3,
    .jp-title,
    .service-desc {
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    .service-desc {
        margin-bottom: 25px;
    }

    .service-img-area {
        height: 200px;
        /* Ensure images are clearly visible */
    }

    /* Ensure Check Items align nicely */
    .feature-list li {
        margin-bottom: 10px;
        padding-left: 25px;
    }
}

/* Corporate Profile */
.company-container {
    max-width: 800px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-light);
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 180px;
    color: var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.15em;
    vertical-align: top;
}

.company-table td {
    color: #fff;
}

.company-table .en-name {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 5px;
}

/* =========================================
   Layout Utilities (from inline HTML)
   ========================================= */
#about .glass-card {
    display: flex;
    gap: 60px;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch; /* Match vertical height perfectly to the text block */
    justify-content: space-between;
}

.about-text {
    flex: 1;
}

.philosophy-text {
    display: block;
    margin-bottom: 20px;
}

.about-image {
    flex: 0 0 40%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    width: 100%;
    margin-top: 30px;
}

.company-container {
    flex: 1;
    margin: 0;
    padding: 30px;
    display: flex;
    align-items: center;
}

.map-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* =========================================
   Mobile Responsiveness (Max width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Header and Logo Scaling */
    .header {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-symbol, .header-text-img {
        height: 45px; /* Scaled down for mobile */
    }

    .logo a {
        transform: translateY(10px); /* Adjust overhang for smaller header */
    }

    /* Hero Text Scaling */
    .animate-text {
        font-size: 3rem; /* Down from 5rem to prevent wrapping off screen */
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }

    /* General Section Padding (Reduce side padding from 5% to 15px) */
    .section {
        padding: 40px 15px 15px 15px; /* Less side white space on mobile */
        scroll-margin-top: 60px; /* Match mobile header */
        min-height: calc(100vh - 60px);
    }
    
    /* About Section */
    #about .glass-card {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .about-image {
        flex: auto; /* Remove forced 40% width */
        max-width: 100%;
        width: 100%;
    }
    
    .about-image img {
        height: 300px; /* Prevent collapse on mobile */
        object-fit: cover;
    }

    /* Service Section Adjustments */
    #service {
        padding-top: 60px; /* Reduced from PC size */
    }
    
    .service-grid {
        grid-template-columns: 1fr; /* Force 1 column on phone */
        gap: 30px;
    }

    /* Team Section Adjustments */
    #team {
        padding-top: 60px;
    }
    
    .team-grid {
        grid-template-columns: 1fr; /* Force 1 column */
        gap: 30px;
    }

    /* Contact Section Adjustments */
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-left {
        padding-right: 0;
        text-align: center;
    }

    /* Company Profile Adjustments */
    .company-wrapper {
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
    }
    
    .company-container {
        padding: 15px;
        width: 100%;
    }
    
    .company-table th {
        width: 90px; /* Narrower table headers to fit text */
        font-size: 0.85rem;
    }
    
    .company-table td {
        font-size: 0.9rem;
    }

    .map-container {
        height: 300px;
        min-height: 250px;
        width: 100%;
    }
}