/* ============================================
   Color Scheme Variables
   ============================================ */
:root {
    /* Main Colors - Professional & Intelligent */
    --color-deep-navy: #1a2744;
    --color-charcoal: #2d3748;
    --color-dark-gray: #4a5568;

    /* Accent Colors - Joy & Innovation */
    --color-emerald: #10b981;
    --color-turquoise: #14b8a6;
    --color-orange: #f97316;

    /* Neutrals */
    --color-white: #ffffff;
    --color-light-gray: #f7fafc;
    --color-medium-gray: #edf2f7;
    --color-text-primary: #1a202c;
    --color-text-secondary: #4a5568;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-light-gray);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-deep-navy);
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
}

.lang-btn {
    background: var(--color-white);
    border: 2px solid var(--color-deep-navy);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: var(--color-deep-navy);
}

.lang-btn:hover {
    background: var(--color-deep-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--color-turquoise);
    border-color: var(--color-turquoise);
    color: var(--color-white);
}

/* Header */
.header {
    background: var(--color-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--color-deep-navy);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
    position: relative;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-deep-navy);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    flex-shrink: 0;
}

.logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo:hover {
    color: var(--color-turquoise);
}

.logo-icon {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-deep-navy);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-turquoise);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-charcoal) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    z-index: -1;
}

.hero-characters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-owl {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-icon {
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    color: var(--color-white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    font-style: italic;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--color-turquoise);
    color: var(--color-white);
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.cta-button:hover {
    background: var(--color-emerald);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Main Content */
.main-content {
    background: var(--color-white);
    padding: 80px 0;
}

.section {
    margin-bottom: 80px;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-deep-navy);
    position: relative;
    font-weight: 700;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-emerald));
    border-radius: 2px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--color-medium-gray);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-emerald));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-turquoise);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.icon-circle.icon-orange {
    background: linear-gradient(135deg, var(--color-orange), #fb923c);
}

.icon-circle.icon-turquoise {
    background: linear-gradient(135deg, var(--color-turquoise), #0d9488);
}

.icon-circle.icon-emerald {
    background: linear-gradient(135deg, var(--color-emerald), #059669);
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-deep-navy);
    font-weight: 700;
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

/* App Showcase */
.app-showcase {
    background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-charcoal) 100%);
    padding: 80px 0;
    color: var(--color-white);
}

.app-showcase h2 {
    color: var(--color-white);
}

.app-showcase h2::after {
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-orange));
}

.app-showcase p {
    color: rgba(255, 255, 255, 0.9);
}

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

.app-feature {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.app-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-turquoise);
}

.app-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.app-feature-icon {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.app-feature h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--color-deep-navy);
    font-weight: 700;
}

.app-feature p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

/* Contact Section */
.contact {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 80px 0;
}

.contact h2 {
    color: var(--color-white);
    text-align: center;
    margin-bottom: 2rem;
}

.contact h2::after {
    background: linear-gradient(90deg, var(--color-turquoise), var(--color-emerald));
}

.contact p {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-turquoise);
    transform: translateY(-5px);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.contact-item a {
    color: var(--color-turquoise);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-emerald);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-deep-navy);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid var(--color-turquoise);
}

/* Utility Classes */
.hidden {
    display: none;
}

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

    .nav {
        padding: 1rem 0;
        min-height: 70px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.15rem;
        gap: 10px;
        margin-left: 0;
        margin-right: auto;
    }

    .language-switcher {
        gap: 4px;
        margin-left: auto;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-width: 1.5px;
    }

    .logo-icon {
        max-width: 35px;
        max-height: 35px;
        width: auto;
        height: auto;
        margin-left: 6px;
    }

    .hero-characters {
        gap: 20px;
    }

    .hero-owl {
        max-width: 110px;
        max-height: 110px;
    }

    .hero-icon {
        max-width: 160px;
        max-height: 160px;
        width: auto;
        height: auto;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

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

    .app-info {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 0.9rem 0;
        min-height: 65px;
    }

    .logo {
        font-size: 1rem;
        gap: 8px;
        flex: 1;
        min-width: 0;
        margin-left: 0;
        margin-right: 8px;
    }

    .language-switcher {
        gap: 4px;
        flex-shrink: 0;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-width: 1.5px;
        border-radius: 16px;
    }

    .logo-icon {
        max-width: 30px;
        max-height: 30px;
        flex-shrink: 0;
        margin-left: 4px;
    }

    .logo-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

    .hero-characters {
        gap: 12px;
    }

    .hero-owl {
        max-width: 80px;
        max-height: 80px;
    }

    .hero-icon {
        max-width: 120px;
        max-height: 120px;
        width: auto;
        height: auto;
    }

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

    .main-content {
        padding: 60px 0;
    }

    .section {
        margin-bottom: 60px;
    }

    .feature-card {
        padding: 2rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}