/* Base Variables and Reset */
:root {
    --primary: #0a2540;
    /* Deep Ocean Blue */
    --primary-light: #164070;
    --accent: #d87040;
    /* Okinawan Terracotta/Sun */
    --accent-hover: #bf5b2d;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;

    --font-serif: 'Noto Sans JP', sans-serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.4;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

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

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

.dark-bg h2,
.dark-bg h3,
.dark-bg h4 {
    color: white;
}

.serif-title {
    font-family: var(--font-unified);
    font-weight: 700;
}

.mt-20 {
    margin-top: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(216, 112, 64, 0.2), 0 2px 4px -1px rgba(216, 112, 64, 0.1);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(216, 112, 64, 0.3), 0 4px 6px -2px rgba(216, 112, 64, 0.1);
    color: white;
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    padding: 11px 29px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(216, 112, 64, 0.2);
}

.btn-outline.large {
    padding: 17px 39px;
    font-size: 1.1rem;
    color: white;
    /* For footer */
}

.footer-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.section-title .en {
    font-family: var(--font-sans);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title.light .en {
    color: #94a3b8;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: white;
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--primary);
}

.logo-small {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.logo-main {
    font-family: var(--font-unified);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

.nav-list a {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:not(.btn-primary):hover {
    color: var(--accent);
}

.header.scrolled .nav-list a:not(.btn-primary) {
    color: var(--primary);
}

.header.scrolled .nav-list a:not(.btn-primary):hover {
    color: var(--accent);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    /* Dynamic image */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    /* For slow zoom animation */
    animation: slowZoom 20s infinite alternate linear;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 37, 64, 0.6) 0%, rgba(10, 37, 64, 0.9) 100%);
    z-index: -1;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    color: #ffffff !important;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(60px);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image .img-wrapper {
    width: 100%;
    padding-bottom: 120%;
    /* Vertical rectangle */
    background-image: url('images/interior.png');
    /* Dynamic Image */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.about-text .desc {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-main);
}

/* Background Section */
.bg-card {
    background: white;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
}

.bg-card .lead-text {
    font-family: var(--font-unified);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

.bg-card .lead-text strong {
    color: var(--accent);
    font-size: 2.2rem;
}

.bg-card-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.bg-highlight {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.bg-highlight h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.bg-card-content .conclusion {
    font-weight: 500;
    color: var(--primary);
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

/* MVV */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mvv-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.mvv-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.mvv-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.mvv-header h3 {
    font-family: var(--font-unified);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 5px;
}

.ja-label {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.mvv-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.mvv-list li i {
    color: var(--accent);
    margin-top: 5px;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #f0fdf4;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.benefit-card:hover .icon-circle {
    background-color: var(--primary);
    color: white;
}

.benefit-card h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

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

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Future Plans */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: #cbd5e1;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-num {
    position: absolute;
    left: 10px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-unified);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 1;
    border: 4px solid var(--bg-light);
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--accent);
}

.feature-box h5 {
    font-family: var(--font-unified);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.footer-info .motto {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

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

    .mvv-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

    .header.scrolled .nav-list a:not(.btn-primary) {
        color: white;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .header.scrolled .hamburger.active span {
        background-color: white;
    }

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

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

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

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

    .footer-buttons {
        flex-direction: column;
        justify-content: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-num {
        left: 0;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}