/* Base Reset & Variables */
:root {
    --ana-blue: #002244;
    /* Inspiration of Japan Blue */
    --ana-cyan: #00A0E9;
    /* Triton Blue / Cyan */
    --text-main: #333333;
    --text-light: #777777;
    --bg-light: #F2F5F7;
    --white: #ffffff;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --trans-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ana-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ana-blue), var(--ana-cyan));
}

.section-subtitle {
    font-size: 1rem;
    color: var(--ana-cyan);
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--trans-speed);
}

.header-container {
    position: relative;
    /* Added for absolute positioning of logo */
    display: flex;
    justify-content: flex-end;
    /* Align nav to right */
    align-items: center;
    height: 100px;
    /* Increased height */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    position: absolute;
    /* Moved to left to avoid overlap with nav, but with some spacing */
    left: 150px;
    top: 42%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    /* Center text align */
    width: auto;
    white-space: nowrap;
    text-decoration: none;
    /* Ensure no underline for link */
    transition: var(--trans-speed);
    /* Smooth transition */
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.02);
    /* Subtle zoom */
}



.logo-main {
    font-size: 2.4rem;
    font-weight: 700;

    /* Blue Gradient Wave */
    background: linear-gradient(45deg, var(--ana-blue), var(--ana-cyan), #0050aa, var(--ana-blue));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: waveText 6s ease infinite;

    /* Reflection */
    -webkit-box-reflect: below -12px linear-gradient(transparent 60%, rgba(0, 0, 0, 0.2));
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Reduced gap to fit more items */
}

.nav-list a {
    font-weight: 500;
    font-size: 0.9rem;
    /* Slightly smaller to fit */
    color: var(--ana-blue);
    position: relative;
}

.nav-list a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--ana-cyan);
    transition: width var(--trans-speed);
}

.nav-list a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    display: none;
    /* Hide button if it was used for contact, just safe keep or remove CSS usage if removed from HTML */
}

/* Hamburger for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    /* Remove fixed height to allow image to dictate height + text area */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    padding-top: 80px;
    /* Header height offset */
}

.hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    /* Remove extra space below img */
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Ensure full image is visible */
}

.hero-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-en {
    font-size: 3.5rem;
    color: var(--ana-blue);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--ana-blue), var(--ana-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-title-jp {
    font-size: 1.5rem;
    color: var(--ana-cyan);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--ana-blue), #004080);
    color: var(--white);
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 34, 68, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--trans-speed);
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 34, 68, 0.3);
}

@media (max-width: 768px) {
    .hero-title-en {
        font-size: 2rem;
    }

    .hero-title-jp {
        font-size: 1.1rem;
    }
}

/* Concept Section */
.concept {
    background-color: var(--white);
    text-align: center;
}

.concept-text {
    font-size: 1.2rem;
    line-height: 2.2;
    font-weight: 400;
}

/* Features Section */
.features {
    background-color: var(--bg-light);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    /* Adds a slight dynamic angle */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--trans-speed);
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 34, 68, 0.1);
    border-top: 3px solid var(--ana-cyan);
}

.card-icon {
    font-size: 3rem;
    color: var(--ana-blue);
    margin-bottom: 25px;
    transition: var(--trans-speed);
}

.feature-card:hover .card-icon {
    color: var(--ana-cyan);
    transform: scale(1.1);
}

.card-title {
    font-size: 1.3rem;
    color: var(--ana-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer (ANA style footer is often minimal or dark) */
.footer {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
        linear-gradient(135deg, var(--ana-blue), #004080);
    color: var(--white);
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

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

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

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav.active {
        display: block;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

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

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

    .hamburger span:nth-child(2) {
        top: 9px;
    }

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

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

    .features {
        clip-path: none;
    }
}

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

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

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

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

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