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

:root {
    /* 水色基調のカラーパレット */
    --primary-color: #00BCD4;      /* メインの水色 */
    --primary-light: #B2EBF2;      /* 薄い水色 */
    --primary-dark: #0097A7;       /* 濃い水色 */
    --accent-color: #00ACC1;       /* アクセント */
    
    /* ニュートラルカラー */
    --text-primary: #263238;       /* メインテキスト */
    --text-secondary: #607D8B;     /* サブテキスト */
    --background: #FFFFFF;         /* 背景白 */
    --surface: #F5F5F5;           /* サーフェス */
    --border: #E0E0E0;            /* ボーダー */
    
    /* 旧変数との互換性 */
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-dark: #263238;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

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

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.15);
}

.navbar {
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* ロゴスタイル */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 8px;
}

.logo-text {
    letter-spacing: 1px;
}

/* デスクトップメニュー */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    z-index: 1001;
    transition: width 0.2s ease-out;
}

/* Parallax Container */
.parallax-container {
    position: relative;
    height: 400vh;
    margin-top: -80px;
}

/* Hero Background - Fixed Parallax */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                      url('https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform, opacity;
    transition: opacity 1s ease-out;
    opacity: 1;
}

.hero-background.fade-out {
    opacity: 0;
}

/* Ensure content is above background */
.parallax-container {
    position: relative;
}

.product-gallery,
.stores,
.footer {
    position: relative;
    z-index: 10;
    background-color: #1a1a1a;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Hero Content Sections */
.hero-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(-30px);
}

/* Content Inner */
.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* Feature Content Layout */
.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse .feature-text {
    direction: ltr;
}

/* Typography Adjustments */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Feature Points */
.feature-points {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-points li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Feature Visual */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Animation Classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate="fade-up"] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="scale-in"] {
    transform: scale(0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-in"] {
    transform: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


.animate-in {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}


/* ボタンスタイル */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 172, 193, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

/* Product Gallery Section */
.product-gallery {
    background-color: #1a1a1a;
    padding: 80px 5%;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.gallery-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #777;
}

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

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gallery-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: transform 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
    flex: 0 0 300px;
    min-width: 300px;
}

.gallery-item:focus {
    outline: 2px solid #00ACC1;
    outline-offset: 2px;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-content {
    padding: 20px;
    background-color: #2a2a2a;
    transition: padding 0.3s ease;
}

.gallery-item:hover .gallery-content {
    padding-bottom: 30px;
}

.gallery-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.gallery-content p {
    color: #999;
    font-size: 0.9rem;
}

/* Touch device support */
.touch-hover {
    transform: scale(1.05);
    z-index: 10;
}

.touch-hover .gallery-image img {
    transform: scale(1.1);
}

.touch-hover .gallery-content {
    padding-bottom: 30px;
}

/* Features Section */
.features {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.features-list svg {
    flex-shrink: 0;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), #0097A7);
    padding: 4rem 0;
    color: white;
}

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

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

/* Store Information */
.stores {
    padding: 5rem 0;
    background-color: #1a1a1a;
}

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

.store-card {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    color: #ffffff;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.store-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #00ACC1;
}

.store-info {
    margin-bottom: 1.5rem;
}

.store-info p {
    margin-bottom: 0.5rem;
    color: #999;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
}

/* GPU Acceleration */
.animated-element {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-content.reverse {
        direction: ltr;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 250px;
        min-width: 250px;
    }
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* アクションボタン */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch, .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 8px;
    font-size: 0.9rem;
}

.lang-switch:hover, .search-btn:hover {
    color: var(--primary-color);
}

.lang-switch .active {
    color: var(--primary-color);
    font-weight: 600;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ハンバーガーアニメーション */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

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

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

/* Mobile Menu */
/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-container {
    padding: 40px 30px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 172, 193, 0.2);
}

.mobile-menu-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.close-menu {
    cursor: pointer;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 20px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* モバイルメニューフッター */
.mobile-menu-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.mobile-lang-switch {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--surface);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mobile-lang-switch:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
    border-color: var(--primary-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    
    .parallax-container {
        height: auto;
    }
    
    .hero-background {
        background-attachment: scroll;
        transform: none !important;
    }
    
    .hero-content {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .feature-visual svg {
        width: 150px;
        height: 150px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .gallery-item {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .content-inner {
        padding: 0 20px;
    }
}

/* メニュー項目のスタガーアニメーション */
.mobile-menu.active .mobile-nav-link {
    animation: slideInRight 0.4s ease-out forwards;
    opacity: 0;
}

.mobile-menu.active .mobile-nav-list li:nth-child(1) .mobile-nav-link { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-list li:nth-child(2) .mobile-nav-link { animation-delay: 0.15s; }
.mobile-menu.active .mobile-nav-list li:nth-child(3) .mobile-nav-link { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-list li:nth-child(4) .mobile-nav-link { animation-delay: 0.25s; }
.mobile-menu.active .mobile-nav-list li:nth-child(5) .mobile-nav-link { animation-delay: 0.3s; }

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero-background {
        background-attachment: scroll;
    }
    
    .floating-element {
        animation-duration: 3s;
    }
}