/* 改善されたヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    min-height: 80px;
    max-width: 100%;
    box-sizing: border-box;
}

.nav-logo .logo-main h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0;
}

.logo-tagline {
    color: var(--text-lighter);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: -4px;
    padding-right: 24px;
    display: block;
    text-align: right;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-menu a:hover::after {
    width: 100%;
}

.language-switch {
    display: flex;
    background: var(--primary-ultra-light);
    border-radius: 25px;
    padding: 3px;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 22px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* 大幅改善されたヒーローセクション */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: floatBackground 8s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.float-element {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.float-element:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 10s;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.9;
    font-size: 0.9rem;
    animation: fadeInUp 1s ease-out 1.4s both;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
        min-height: 60px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .nav-logo {
        flex-shrink: 0;
        min-width: 0;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-tagline {
        font-size: 0.7rem;
        padding-right: 8px;
        margin-top: -2px;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

