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

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

:root {
    /* Light Theme Colors */
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #000000;
    --accent-color: #0056b3;
    /* Professional Blue Accent */
    --sub-text-color: #666666;
    --border-color: #e0e0e0;
    --card-bg: #f8f9fa;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--sub-text-color);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 8rem 0;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #000;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #333;
    font-weight: 500;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    background: transparent;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 20px;
}

.hero-content {
    flex: 1;
    max-width: 680px;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
}

.hero-image {
    display: none;
}

/* Text Wrapping Utility */
.ib {
    display: inline-block;
    white-space: nowrap;
}

.br-sp {
    display: none;
}

.br-sp {
    display: none;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Blend mode or simple shadow if the image has white bg built-in */
}

.hero-title {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--sub-text-color);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--accent-color);
    /* Thicker border on light */
    color: #fff;
    background: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.btn:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: none;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

/* Pain Points */
.pain-points {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pain-point-item {
    background: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
}

.pain-point-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pain-point-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    background: #eef5fc;
    width: 80px;
    height: 80px;
    line-height: 85px;
    /* Fine-tuned for emoji vertical alignment */
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services */
.services {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid #eee;
    text-align: center;
    /* Center content for icons */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.service-image {
    width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-en {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    color: var(--sub-text-color);
    text-align: left;
}

.service-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

/* Process */
.process {
    background-color: rgba(244, 246, 248, 0.6);
    backdrop-filter: blur(6px);
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    background: #fff;
    /* White background to match other cards */
    padding: 2rem 1rem;
    border-radius: 12px;
    /* Consistent radius */
    box-shadow: var(--shadow-sm);
    /* Consistent shadow */
    border: 1px solid #eee;
    /* Consistent border */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed),
        border-color var(--transition-speed);
}

.process-step:hover {
    transform: translateY(-5px);
    /* Lift effect */
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.process-step .step-label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--sub-text-color);
}

.process-arrow-right {
    display: unset;
    font-size: 1.5rem;
    color: #ccc;
}

.process-arrow-down {
    display: none;
}

/* Contact */
.contact {
    text-align: center;
    position: relative;
    padding: 8rem 0;
    background: transparent;
}

/* Three.js Background */
#three-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#three-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

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

.contact-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.contact-box p {
    margin: 2rem 0;
    color: var(--sub-text-color);
}

/* Footer */
#footer {
    padding: 2rem 0;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #666;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-150 {
    transition-delay: 0.15s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-250 {
    transition-delay: 0.25s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-350 {
    transition-delay: 0.35s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-450 {
    transition-delay: 0.45s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Case Studies */
.cases {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.case-compare {
    width: 100%;
    max-width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.case-before,
.case-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.case-before .label,
.case-after .label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    flex-basis: 1.5rem;
    display: flex;
    align-items: center;
}

.case-before .time {
    font-size: 1.4rem;
    color: #666;
    text-decoration: line-through;
    flex-basis: 4rem;
    display: flex;
    align-items: center;
}

.case-after .time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    flex-basis: 4rem;
    display: flex;
    align-items: center;
}

.case-card .reduction {
    background: #ffeb3b;
    color: #333;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.case-compare .arrow {
    font-size: 1.5rem;
    color: #ccc;
    padding-top: 22px;
}

.case-desc {
    font-size: 0.9rem;
    color: var(--sub-text-color);
    text-align: center;
    line-height: 1.6;
}

/* FAQ */
.faq {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 2rem;
}

.faq-question::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.faq-answer {
    padding-left: 2rem;
    color: var(--sub-text-color);
    font-size: 0.95rem;
}

/* Contact Refinements */
.contact-benefits {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 2rem 0;
}

.contact-benefits li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.contact-benefits li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.contact-box h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-intro {
    margin-bottom: 2rem !important;
    font-size: 0.95rem;
}

.contact-form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group .required {
    color: #e53935;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--sub-text-color);
    margin-top: 0.3rem;
    font-family: var(--font-heading);
}

.char-count.limit {
    color: #e53935;
    font-weight: 700;
}

.form-submit {
    text-align: center;
    margin-top: 2.5rem;
}

.form-submit .btn {
    min-width: 200px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 0;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-step {
        width: 100%;
        max-width: none;
    }
}

/* =========================================
   New Section Styles (Ver05 Additions)
   ========================================= */

/* Capabilities Section */
.capabilities {
    background-color: rgba(244, 246, 248, 0.6);
    backdrop-filter: blur(6px);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cap-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #eee;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.cap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.cap-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cap-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.cap-card p {
    font-size: 0.95rem;
    color: var(--sub-text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cap-tools {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cap-tools li {
    background: #eef5fc;
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Business Use Cases Section */
.use-cases {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: all var(--transition-speed);
}

.use-case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.use-case-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef5fc;
    color: var(--primary-color);
}

.use-case-card ul {
    list-style: none;
    padding: 0;
}

.use-case-card li {
    font-size: 0.9rem;
    color: var(--sub-text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.use-case-card li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Industry Examples Section */
.industries {
    background-color: rgba(244, 246, 248, 0.6);
    backdrop-filter: blur(6px);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-speed);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.industry-icon {
    font-size: 2.5rem;
    background: #eef5fc;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.industry-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.industry-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.industry-card li {
    font-size: 0.9rem;
    color: var(--sub-text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.industry-card li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

.highlight-card {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border: 2px solid var(--accent-color);
}

.highlight-card .card-message {
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1.6;
}

/* =========================================
   Updated Header Styling
   ========================================= */
.header-inner {
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #333;
}

/* Nav Dropdown Styling */
.nav {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-trigger {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    color: var(--primary-color);
    position: relative;
    transition: color 0.3s;
}

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

.nav .nav-dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    /* Below header */
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 1rem 0;
    z-index: 1001;
    flex-direction: column;
    gap: 0;
}

/* Show dropdown ONLY when active class is present (managed by JS) */
.nav.active .nav-dropdown {
    display: flex;
    animation: fadeInDropdown 0.2s ease-out;
}

.nav-dropdown li {
    width: 100%;
}

.nav-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background-color: #f0f7ff;
    color: var(--accent-color);
    opacity: 1;
    /* Override default opacity hover */
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Solution Approach */
.solution-approach {
    background-color: rgba(0, 156, 167, 0.2);
    backdrop-filter: blur(6px);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.solution-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-label {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.solution-label .icon {
    font-size: 1.25rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.solution-label p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.solution-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* (Header rules moved to bottom) */

/* --- Mobile Optimizations (Extensive Overhaul) --- */
@media (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
        line-height: 1.3;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

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

    /* Process Flow stacking and arrow rotation */
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .process-step {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        padding: 2rem 1.5rem;
    }

    .process-arrow-down {
        display: unset;
        margin: 1rem 0;
        font-size: 2rem;
        line-height: 1;
        color: #ccc;
    }

    .process-arrow-right {
        display: none;
    }
}

/* (Header rules moved to bottom) */

@media (max-width: 480px) {
    #header {
        height: 60px !important;
    }

    #header .logo span,
    #header .nav-trigger {
        display: none !important;
    }

    #header .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1002;
    }

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

    #header .nav.active .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    #header .nav.active .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    #header .nav .nav-dropdown {
        width: 200px !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-box p {
        font-size: 0.9rem;
    }

    .btn.btn-large {
        padding: 0.8rem 1.5rem !important;
        min-width: 200px;
    }

    .container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .br-sp {
        display: block;
    }

    .section-title {
        font-size: 1.35rem;
        padding: 0;
    }

    .solution-card {
        padding: 1.5rem 1rem;
    }

    .solution-label {
        padding: 0.75rem;
    }

    .process-step {
        padding: 1.5rem 1rem;
    }

    .btn.btn-large {
        min-width: 0;
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1rem !important;
        font-size: 0.82rem !important;
    }
}

/* Global Overflow Prevention Safety Net */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .container {
        max-width: 100% !important;
    }
}

/* =========================================
   Final Header Responsive Overrides
   (High Specificity)
   ========================================= */

@media (max-width: 1024px) {
    #header .header-inner {
        padding: 0 1rem !important;
    }

    #header .logo span {
        font-size: 1rem !important;
    }

    #header .nav-trigger {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 600px) {
    #header .logo span {
        display: none !important;
    }

    #header .nav-trigger {
        font-size: 0.85rem !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    #header {
        height: 60px !important;
    }

    #header .logo span,
    #header .nav-trigger {
        display: none !important;
    }

    #header .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1002;
    }

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

    #header .nav.active .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    #header .nav.active .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    #header .nav .nav-dropdown {
        width: 200px !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        display: none;
    }

    #header .nav.active .nav-dropdown {
        display: flex !important;
    }
}

.none {
    display: none;
}