/* ========================================
   Warm Design System
   ======================================== */
:root {
    --primary: #D35400;
    /* Warm rust orange */
    --primary-light: #E67E22;
    --accent: #F1C40F;
    --bg: #FDFBF7;
    /* Warm bone white */
    --text: #34495E;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(211, 84, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loaded .loader {
    opacity: 0;
    visibility: hidden;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

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

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.active .reveal-up,
.active .reveal-left,
.active .reveal-right {
    opacity: 1;
    transform: translate(0, 0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary);
    /* Changed to Primary to support White text */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--white);
    border-radius: 2px;
}

.logo-text span {
    color: var(--white);
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
}

/* Hero */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text);
}

.highlight {
    color: var(--primary);
    position: relative;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-light);
}

.image-crop-hero {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 40px;
    border: 10px solid var(--white);
    box-shadow: var(--shadow);
}

.image-crop-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.intro-section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 30px;
}

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

/* Story Section */
.story-section {
    padding: 100px 0;
    background: rgba(52, 73, 94, 0.03);
    /* Subtle cool technical background */
    position: relative;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.highlight-text {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin: 40px 0;
}

.pc-only {
    display: none;
}

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

/* Features */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.feature-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-num {
    font-size: 24px;
    font-weight: 900;
    color: rgba(211, 84, 0, 0.4);
    line-height: 1;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 26px;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* Features Split Layout */
.features-content-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Mechanism Section */
.mechanism-section {
    padding: 120px 0;
    background: var(--white);
}

/* Mechanism Grid Split */
.mechanism-grid-split {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.mech-card {
    background: var(--bg);
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(211, 84, 0, 0.1);
}

.mech-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    border-bottom: 1px dashed rgba(211, 84, 0, 0.2);
    padding-bottom: 15px;
}

.mech-title {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
    display: inline-block;
}

.mech-desc {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.mech-visual {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    /* White background behind diagram */
}

.mech-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav {
        display: none;
        /* Hide nav for now or implement hamburger checks if needed */
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        order: 1;
        /* Text first */
    }

    .image-crop-hero {
        order: 2;
        height: 250px;
    }

    .hero-content h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .features-content-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mechanism-grid-split {
        flex-direction: column;
    }

    .mech-card {
        padding: 30px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 375px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* CROPPING Logic - Simplified for new assets */
.crop-container {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-crop-hero img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.color-variations {
    background: transparent;
}

.color-variations img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Design Section */
.design-section {
    padding: 120px 0;
}

.design-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(211, 84, 0, 0.05);
}

/* Contact Box */
.contact-section {
    padding-bottom: 120px;
}

.contact-box {
    background: var(--white);
    padding: 80px;
    border-radius: 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-box h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-note {
    margin-top: 60px;
    font-size: 13px;
    color: var(--text-light);
}