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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    overflow-x: hidden;
    font-weight: 300;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* Navigation - Dark Theme Compatible */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 40px;
    transition: all 0.4s ease;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav.scrolled {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.4s ease;
    opacity: 0.9;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
}

nav.scrolled .logo-text {
    color: #1a1a1a;
}

nav.scrolled .logo-icon {
    opacity: 0.8;
}

.logo:hover .logo-icon {
    opacity: 1;
    transform: scale(1.05);
}

.logo:hover .logo-text {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

nav.scrolled .nav-links a {
    color: #1a1a1a;
}

.nav-links a:hover {
    color: rgba(255,255,255,0.6);
}

nav.scrolled .nav-links a:hover {
    color: #666;
}

/* Hero Slider - Lyon Béton Style */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none; /* アクティブでないスライドはクリックを受け取らない */
}

/* 全スライドのズームエフェクト */
.hero-slide {
    transform: scale(1.1);
    transition: opacity 0.6s ease-in-out, transform 4s ease-out;
}

/* 背景画像用（動画以外） */
.hero-slide:not(.video-slide) {
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto; /* アクティブなスライドのみクリック可能 */
}

/* 動画用のズームエフェクト */
.video-slide .hero-video {
    transform: scale(1.1);
    transition: transform 4s ease-out;
}

.video-slide.active .hero-video {
    transform: scale(1);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* Video Slides */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-slide {
    background: none !important;
}

/* モバイルで動画を軽くする - 動画を有効にする場合 */
@media (max-width: 768px) {
    .hero-video {
        display: block; /* 動画を表示 */
    }

    .video-slide {
        background: none !important; /* 背景画像を無効化 */
    }

}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./images/hero-bg.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Hero Logo - Top Left */
.hero-logo-top-left {
    position: absolute;
    top: 100px;
    left: 40px;
    width: 60px;
    height: 60px;
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    z-index: 3;
    transition: all 0.3s ease;
}

.hero-logo-top-left:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Remove watermark - make it optional */
.hero-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.02;
    z-index: 1;
    display: none; /* Hidden by default */
}


/* Alternative: Corner Logo */
.hero-logo-corner {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 120px;
    height: 120px;
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    z-index: 3;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

/* Alternative: Side Logo */
.hero-logo-side {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 2;
    animation: logoRotate 20s linear infinite;
}

.hero-content {
    text-align: center;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    box-sizing: border-box;
    will-change: auto;
}



.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
    overflow: hidden;
    font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "palt";
}

.animated-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.animated-title .line-1,
.animated-title .line-2 {
    display: block;
    opacity: 0 !important;
    transform: translateY(100px) !important;
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animated-title .line-2 {
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.animated-subtitle {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: all 1s ease 0.3s;
}

.animated-cta {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.8s ease 0.6s;
}

/* New sliding text animation from center to left */
.slide-text {
    opacity: 1;
}

.video-content .slide-text {
    opacity: 1;
}

.slide-cta {
    opacity: 1;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-slide.active .slide-text {
    opacity: 1 !important;
}


.hero-slide.active .slide-cta {
    opacity: 1 !important;
}

.hero-slide.active .video-content .slide-cta {
    opacity: 1 !important;
    transform: none !important;
}

/* Video slide specific styles */
.video-content {
    text-align: left !important;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1200px;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
}

.hero-title {
    align-items: flex-start !important;
    text-align: left !important;
}

.hero-title.slide-text {
    font-size: clamp(4rem, 12vw, 8rem) !important;
    font-weight: 300 !important;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    color: #ffffff;
    position: relative;
    overflow: visible;
    display: flex;
    font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "palt";
}



.video-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem) !important;
    font-weight: 300;
    margin-bottom: 2rem;
    margin-left: 0;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.95);
}

.video-content .slide-cta {
    position: static !important;
    left: 0 !important;
    bottom: auto !important;
    margin-top: 2rem;
    transform: none !important;
    display: inline-block;
}

/* Hero Navigation */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-slider:hover .prev,
.hero-slider:hover .next,
section.hero-slider:hover button.prev,
section.hero-slider:hover button.next {
    opacity: 1 !important;
    visibility: visible !important;
}

/* デスクトップ専用の強制表示 */
@media (hover: hover) and (pointer: fine) {
    .hero-slider:hover .prev,
    .hero-slider:hover .next {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.prev:hover, .next:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Hero Main Logo (center position) */
.hero-main-logo {
    width: clamp(200px, 25vw, 400px);
    height: clamp(200px, 25vw, 400px);
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 2rem;
    opacity: 0.95;
    animation: heroMainLogo 2s ease-out;
    transition: all 0.4s ease;
}

.hero-main-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* @keyframes heroMainLogo {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
}

/* Remove the old h1 styles */

.hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
}

.video-content .hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: var(--text-width, 100%);
    height: 1px;
    background: rgba(255,255,255,0.5);
}

/* Clear Blue small font size */
.clear-blue-small {
    font-size: 1.2em;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* Scroll offset for navigation links - move scroll position down */
#kagox-one,
#kagox-biz {
    scroll-margin-top: 120px;
}

/* Hero title flex layout for line breaks */
.hero-title.slide-text {
    display: block;
}

/* Letter animation styles */
.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
    white-space: nowrap;
}

/* Force line break for second line */
.hero-title .letter[data-line="1"]:first-child {
    flex-basis: 100%;
    width: 0;
}

/* Second line container styles */
.hero-title div {
    display: inline-block;
    width: 100%;
}

.hero-title div .letter {
    display: inline-block;
    margin: 0;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

/* Mobile fixes - prevent unwanted breaks */
@media (max-width: 768px) {
    .hero-title .letter[data-line="1"] {
        flex-shrink: 0;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .hero-title div {
        display: block;
        width: 100%;
        white-space: nowrap;
        font-size: inherit;
        line-height: normal;
    }

    .hero-title div .letter {
        position: static;
        display: inline;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.6s ease-out;
    }
}

/* iPhone specific fixes */
@media (max-width: 480px) {
    .logo-text {
        letter-spacing: 0.15em !important;
        font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif !important;
        font-feature-settings: "palt" !important;
        -webkit-font-feature-settings: "palt" !important;
    }
    .hero-title.slide-text {
        display: block !important;
        line-height: 1.2 !important;
        word-spacing: normal !important;
        letter-spacing: 0.15em !important;
        font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif !important;
        font-feature-settings: "palt" !important;
    }

    .hero-title .letter {
        display: inline !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        word-spacing: normal !important;
        letter-spacing: 0.15em !important;
        white-space: normal !important;
        font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif !important;
        font-feature-settings: "palt" !important;
        -webkit-font-feature-settings: "palt" !important;
    }

    .hero-title {
        font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif !important;
        font-feature-settings: "palt" !important;
        -webkit-font-feature-settings: "palt" !important;
    }

    .hero-title br {
        display: block !important;
        line-height: 1 !important;
    }
}

/* Desktop and iPad specific fixes */
@media (min-width: 769px) {
    .hero-title div {
        display: block;
        width: 100%;
        white-space: nowrap;
        font-size: inherit;
        line-height: normal;
        word-spacing: 8px;
        letter-spacing: 6px;
    }

    .hero-title .letter {
        display: inline-block !important;
        position: static;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.6s ease-out;
        margin: 0;
        padding: 0 3px !important;
        width: auto;
        min-width: auto;
        vertical-align: baseline;
        margin-right: 10px !important;
    }

    /* 2行目の文字コンテナ用 */
    .hero-title div[style*="inline-block"] .letter {
        margin-right: 10px !important;
        padding: 0 3px !important;
    }
}

/* Ensure line breaks work properly */
.hero-title br {
    display: block;
    line-height: 1;
}

/* Force line breaks for specific slides */
.hero-slide:nth-child(2) .hero-title .letter[data-line="1"]:first-child::before,
.hero-slide:nth-child(3) .hero-title .letter[data-line="1"]:first-child::before,
.hero-slide:nth-child(4) .hero-title .letter[data-line="1"]:first-child::before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
}


.hero-cta {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    padding: 14px 32px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    animation: heroButton 2s ease-out 0.6s both;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-cta:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 1px;
    height: 25px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 8px;
    animation: scrollLine 2s ease-in-out infinite;
}

/* Logo Animations */
/* @keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.03;
    }
    50% {
        transform: translate(-50%, -52%) scale(1.05);
        opacity: 0.05;
    }
}

/* @keyframes logoGlow {
    0% {
        opacity: 0.15;
        filter: brightness(1);
    }
    100% {
        opacity: 0.25;
        filter: brightness(1.2);
    }
}

/* @keyframes logoRotate {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* @keyframes heroTitle {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* @keyframes heroSubtitle {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* @keyframes scrollLine {
    0%, 100% {
        opacity: 0.4;
        height: 30px;
    }
    50% {
        opacity: 1;
        height: 40px;
    }
}

/* Recommended Section */
.recommended-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* KAGOX MEGA Special Feature */
.special-feature {
    margin-top: 60px;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.2;
}

.feature-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.feature-cta {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-cta:hover {
    background: #333;
    transform: translateY(-2px);
}

.feature-image {
    text-align: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.mobile-cta {
    display: none;
}

.desktop-cta {
    display: inline-block;
}

.feature-img-hover {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.feature-img-hover:hover {
    transform: scale(1.05);
}

.product-card.featured {
    background: white;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.product-card.featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.product-card.featured .product-image {
    height: 300px;
    margin-bottom: 0;
}

.product-card.featured .product-info {
    padding: 30px;
}

/* Product Types Section */
.product-types-section {
    padding: 80px 0;
    background: white;
}

.product-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 60px;
    padding: 10px;
}

/* Product types scroll container for mobile */
.product-types-scroll-container {
    position: relative;
    overflow: visible;
    padding: 20px 0;
}

/* Product types scroll arrows (mobile only) */
.product-types-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-types-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.product-types-arrow.left {
    left: 5px;
}

.product-types-arrow.right {
    right: 5px;
}

.type-card {
    position: relative;
    height: 320px;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    display: block;
}

.type-card:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 10;
}

.type-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: relative;
    background-repeat: no-repeat;
    background-color: #f8f8f8;
}

.type-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 30px 30px;
    color: white;
    text-align: center;
}

.type-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.type-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Full Width Image Section */
.full-image-section {
    height: 80vh;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 10;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    /* Mobile Section Spacing */
    .recommended-section,
    .product-types-section,
    .products-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-slider {
        height: 70vh;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .video-content {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: calc(100% - 40px);
        padding: 0 20px;
    }

    .hero-title.slide-text {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        font-weight: 300 !important;
        line-height: 0.9 !important;
        letter-spacing: 0.15em !important;
        font-family: "見出ゴMB31 JIS2004", "中ゴシックBBB JIS2004", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif;
    }

    .video-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }

    .hero-content:not(.video-content) {
        padding: 0 20px !important;
        max-width: calc(100% - 40px) !important;
        text-align: left !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    /* KAGOX ONE slide - mobile background position adjustment */
    .hero-slide[style*="kagoxonetop1.jpg"] {
        background-position: 35% center !important;
    }

    .hero-content:not(.video-content) .animated-title {
        align-items: center !important;
    }

    .hero-content:not(.video-content) .hero-title {
        text-align: left !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-content:not(.video-content) .hero-subtitle {
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }

    .prev, .next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }

    .recommended-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* KAGOX MEGA Special Feature - Mobile */
    .special-feature {
        margin-top: 30px;
        padding: 30px 0;
        border-radius: 16px;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: 20px;
        text-align: center;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-title {
        font-size: 32px;
    }

    .feature-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 0;
    }

    .product-types-grid {
        display: flex;
        grid-template-columns: none;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        padding: 0 20px 20px 0px;
        margin: 0 -20px 0 0px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar on mobile */
    .product-types-grid::-webkit-scrollbar {
        display: none;
    }
    .product-types-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Show arrows on mobile */
    .product-types-arrow {
        display: flex !important;
    }

    .type-card {
        height: 300px;
        flex: 0 0 280px;
        min-width: 280px;
        scroll-snap-align: start;
    }

    .type-image {
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-color: #f8f8f8 !important;
    }


    .type-overlay {
        padding: 30px 20px 20px;
        text-align: center !important;
    }

    .type-title {
        text-align: center !important;
    }

    .type-subtitle {
        text-align: center !important;
    }

    .full-image-section {
        height: 60vh;
        min-height: 450px;
    }
}

.image-overlay {
    position: absolute;
    bottom: 60px;
    left: 60px;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.overlay-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.overlay-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.overlay-link:hover {
    opacity: 0.7;
}

/* Crystal Blue Section */
.crystal-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.crystal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.crystal-content {
    max-width: 500px;
}

.new-badge {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.crystal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    margin-bottom: 25px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.crystal-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
}

.crystal-cta {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.crystal-cta:hover {
    background: #333;
    transform: translateY(-2px);
}

.crystal-visual-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.crystal-visual {
    height: 600px;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,86,179,0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
}

.crystal-cta-container {
    text-align: center;
}

.visual-content {
    text-align: center;
    color: #007bff;
    font-weight: 400;
}

/* Product Grid - Minimalist */
.products-section {
    padding: 80px 0;
    background: #fff;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-category {
    margin-bottom: 80px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
    letter-spacing: -0.01em;
    position: relative;
    flex: 1;
}

.view-all-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Desktop: single row scroll for products */
@media (min-width: 769px) {
    .product-scroll-container .product-grid {
        display: flex;
        grid-template-columns: none;
        gap: 30px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        padding: 0 60px 20px 60px;
        margin: 0 -60px;
    }

    .product-scroll-container .product-card {
        flex: 0 0 240px;
        min-width: 240px;
    }

    /* Hide scrollbar on desktop */
    .product-scroll-container .product-grid::-webkit-scrollbar {
        display: none;
    }
    .product-scroll-container .product-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Product scroll container with arrows */
.product-scroll-container {
    position: relative;
    overflow: visible;
    padding: 20px 0;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Mobile horizontal scroll for product categories */
@media (max-width: 768px) {
    .product-category .product-grid {
        display: flex;
        grid-template-columns: none;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        padding: 0 20px 20px 20px;
        margin: 0 -20px;
    }

    .product-category .product-card {
        flex: 0 0 230px; /* 210px → 230pxに増加 */
        scroll-snap-align: start;
        touch-action: manipulation;
        /* タッチエリア拡張 */
        position: relative;
        min-height: 100%;
    }

    /* 画像切り替え対応カードのタッチエリア拡張 */
    .kagox-one-hover,
    .figure-hover-multi,
    .figure-hover-multi-2,
    .figure-hover-multi-3 {
        touch-action: manipulation;
        z-index: 1;
        position: relative !important;
        overflow: visible;
    }

    /* カード内のすべての子要素もタッチ可能にする */
    .kagox-one-hover *,
    .figure-hover-multi *,
    .figure-hover-multi-2 *,
    .figure-hover-multi-3 * {
        touch-action: manipulation;
        pointer-events: auto;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    /* 特にproduct-info部分を強化 */
    .figure-hover-multi .product-info,
    .figure-hover-multi-2 .product-info,
    .figure-hover-multi-3 .product-info {
        touch-action: manipulation !important;
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
    }

    /* 商品説明文を確実にタッチ可能に */
    .figure-hover-multi .product-description,
    .figure-hover-multi-2 .product-description,
    .figure-hover-multi-3 .product-description {
        touch-action: manipulation !important;
        pointer-events: auto !important;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    .product-category .product-info {
        padding: 8px 10px 10px 10px;
        touch-action: manipulation;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important; /* 上寄せに変更し、重要度を上げる */
        background: #fff;
        width: 100%;
        box-sizing: border-box;
        min-height: 0; /* 高さの制約を削除 */
    }

    .product-category .product-image {
        touch-action: manipulation;
        margin-bottom: 0 !important;
        height: 160px !important; /* 100px → 160pxに増加してより見やすく */
        background-color: #fff !important;
        width: 100%;
        border-radius: 0;
    }

    .product-category .product-card {
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        /* タップ感度を調整 */
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }

    .product-category .product-name {
        font-size: 0.7rem;
        font-weight: 500;
        margin-bottom: 3px;
        line-height: 1.3;
    }

    .product-category .product-description {
        font-size: 0.6rem;
        line-height: 1.4;
        margin-bottom: 5px;
        touch-action: manipulation;
        pointer-events: auto;
    }

    /* Hide scrollbar but keep functionality */
    .product-category .product-grid::-webkit-scrollbar {
        display: none;
    }

    .product-category .product-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Category header mobile adjustments */
    .category-header {
        margin-bottom: 25px;
        padding: 0 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .category-title {
        font-size: 1.6rem;
        font-weight: 600;
        margin: 0;
        text-align: left;
        padding-left: 0;
        color: #000;
        background: linear-gradient(90deg, #1a1a1a 0%, #666 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        align-self: flex-start;
    }

    .view-all-btn {
        font-size: 0.8rem;
        padding: 6px 16px;
        align-self: flex-end;
        margin-top: -10px;
    }

    .category-title::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
    }


    /* Fix product image cropping on mobile */
    .product-image {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .product-category .product-image {
        background-size: contain !important;
    }
}

.product-card {
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex !important;
    flex-direction: column !important;
    min-height: 350px; /* 最小高を設定 */
    margin: 15px 0; /* 上下のマージンを追加 */
    /* テキスト選択を無効化 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop hover effects only */
@media (hover: hover) and (pointer: fine) {
    .products-section .product-card:hover {
        transform: scale(1.06);
        border-color: #e1e1e1;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
}

/* Mobile touch feedback - more reliable approach */
@media (hover: none) and (pointer: coarse) {
    .products-section .product-card:active:not(.long-press-detected) {
        transform: scale(1.03);
        transition: all 0.1s ease;
    }

    /* Explicit reset state */
    .products-section .product-card.force-reset {
        transform: scale(1) !important;
        transition: all 0.2s ease !important;
    }

    /* Default state */
    .products-section .product-card {
        transform: scale(1);
        transition: all 0.2s ease;
    }
}

/* KAGOX ONE画像切り替えエフェクト */
.kagox-one-image {
    transition: background-image 0.3s ease;
}

/* Figure マルチ画像切り替えエフェクト */
.figure-image-multi, .figure-image-multi-2, .figure-image-multi-3 {
    transition: background-image 0.4s ease;
}

.product-image {
    height: 200px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* 画像サイズを固定 */
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-info {
    padding: 12px 12px 70px 12px; /* 下部余白を増やす */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex: 1;
    min-height: 0;
    position: relative; /* 相対配置で子要素の基準にする */
}

/* iPhone/Mobile specific adjustments */
@media (max-width: 480px) {
    .product-info {
        padding: 8px 8px 80px 8px !important; /* モバイルで下部余白をさらに増やす */
        min-height: 120px !important; /* 最小高を設定 */
    }

    .product-card {
        min-height: 280px !important; /* カード全体の最小高を増やす */
    }

    .product-description {
        font-size: 0.65rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important; /* 固定の下マージンを追加 */
    }

    .product-bottom-section {
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
    }

    /* Disable fade-in animations on mobile */
    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }

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

.product-name {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    text-align: left;
}

.product-description {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: auto !important; /* 自動で残りスペースを取る */
    line-height: 1.6;
    font-weight: 300;
    touch-action: manipulation;
    pointer-events: auto;
    text-align: left;
    flex-grow: 1 !important; /* 残りスペースを確実に取る */
}

/* Product Bottom Section - 下部固定エリア */
.product-bottom-section {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    margin: 0 !important;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

/* Ensure KAGOX ONE hover card color swatches are clickable */
.kagox-one-hover .color-swatch {
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Ensure Figure hover card color swatches are clickable */
.figure-hover .color-swatch {
    z-index: 10 !important;
    pointer-events: auto !important;
}


.color-swatch[data-color="gold"] {
    background-color: #DAA520 !important;
    background-image: none !important;
}

.color-swatch[data-color="silver"] {
    background-color: #C0C0C0 !important;
    background-image: none !important;
}

.color-swatch[data-color="white"] {
    background-color: #FFFFFF !important;
    background-image: none !important;
    border-color: #ddd !important; /* 白は境界を見やすくする */
}

.color-swatch[data-color="black"] {
    background-color: #333333 !important;
    background-image: none !important;
}

/* Premium Product Glossy Color Swatches - Diagonal Light Effect */
.product-card[data-product*="premium"] .color-swatch[data-color="gold"],
.product-card[data-product="kagox-one-premium"] .color-swatch[data-color="gold"],
.product-card[data-product="kagox-biz-premium"] .color-swatch[data-color="gold"],
.product-card[data-product="kagox-biz-smoke-premium"] .color-swatch[data-color="gold"],
.product-card[data-product="kagox-mega-premium"] .color-swatch[data-color="gold"],
.product-card[data-product="kagox-one-clearblue-premium"] .color-swatch[data-color="gold"],
.product-card[data-product="kagox-one-smoke-premium"] .color-swatch[data-color="gold"] {
    background:
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.6) 35%, rgba(255, 255, 255, 0.8) 40%, transparent 60%),
        #DAA520 !important;
    position: relative;
    overflow: hidden;
}

.product-card[data-product*="premium"] .color-swatch[data-color="gold"]::before,
.product-card[data-product="kagox-one-premium"] .color-swatch[data-color="gold"]::before,
.product-card[data-product="kagox-biz-premium"] .color-swatch[data-color="gold"]::before,
.product-card[data-product="kagox-biz-smoke-premium"] .color-swatch[data-color="gold"]::before,
.product-card[data-product="kagox-mega-premium"] .color-swatch[data-color="gold"]::before,
.product-card[data-product="kagox-one-clearblue-premium"] .color-swatch[data-color="gold"]::before,
.product-card[data-product="kagox-one-smoke-premium"] .color-swatch[data-color="gold"]::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(1px);
}

.product-card[data-product*="premium"] .color-swatch[data-color="silver"],
.product-card[data-product="kagox-one-premium"] .color-swatch[data-color="silver"],
.product-card[data-product="kagox-biz-premium"] .color-swatch[data-color="silver"],
.product-card[data-product="kagox-biz-smoke-premium"] .color-swatch[data-color="silver"],
.product-card[data-product="kagox-mega-premium"] .color-swatch[data-color="silver"],
.product-card[data-product="kagox-one-clearblue-premium"] .color-swatch[data-color="silver"],
.product-card[data-product="kagox-one-smoke-premium"] .color-swatch[data-color="silver"] {
    background:
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 1) 40%, transparent 60%),
        #C0C0C0 !important;
    position: relative;
    overflow: hidden;
}

.product-card[data-product*="premium"] .color-swatch[data-color="silver"]::before,
.product-card[data-product="kagox-one-premium"] .color-swatch[data-color="silver"]::before,
.product-card[data-product="kagox-biz-premium"] .color-swatch[data-color="silver"]::before,
.product-card[data-product="kagox-biz-smoke-premium"] .color-swatch[data-color="silver"]::before,
.product-card[data-product="kagox-mega-premium"] .color-swatch[data-color="silver"]::before,
.product-card[data-product="kagox-one-clearblue-premium"] .color-swatch[data-color="silver"]::before,
.product-card[data-product="kagox-one-smoke-premium"] .color-swatch[data-color="silver"]::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    filter: blur(1px);
}

.product-card[data-product*="premium"] .color-swatch[data-color="black"],
.product-card[data-product="kagox-one-premium"] .color-swatch[data-color="black"],
.product-card[data-product="kagox-biz-premium"] .color-swatch[data-color="black"],
.product-card[data-product="kagox-biz-smoke-premium"] .color-swatch[data-color="black"],
.product-card[data-product="kagox-mega-premium"] .color-swatch[data-color="black"],
.product-card[data-product="kagox-one-clearblue-premium"] .color-swatch[data-color="black"],
.product-card[data-product="kagox-one-smoke-premium"] .color-swatch[data-color="black"] {
    background:
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.3) 35%, rgba(255, 255, 255, 0.5) 40%, transparent 60%),
        #333333 !important;
    position: relative;
    overflow: hidden;
}

.product-card[data-product*="premium"] .color-swatch[data-color="black"]::before,
.product-card[data-product="kagox-one-premium"] .color-swatch[data-color="black"]::before,
.product-card[data-product="kagox-biz-premium"] .color-swatch[data-color="black"]::before,
.product-card[data-product="kagox-biz-smoke-premium"] .color-swatch[data-color="black"]::before,
.product-card[data-product="kagox-mega-premium"] .color-swatch[data-color="black"]::before,
.product-card[data-product="kagox-one-clearblue-premium"] .color-swatch[data-color="black"]::before,
.product-card[data-product="kagox-one-smoke-premium"] .color-swatch[data-color="black"]::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(1px);
}

/* Enhanced hover effects for Premium swatches */
/* ホバー効果は削除しました */

.color-swatch.active {
    border-color: #333 !important;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.3) !important;
}

/* 追加したホバー効果も削除 */


/* .color-swatch.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
} */

.product-price {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
}

/* Product Detail Button */
.product-detail-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 1;
}

.product-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.product-link:hover {
    opacity: 0.7;
}

/* Philosophy Section */
.philosophy-section {
    padding: 120px 0;
    background: #1a1a1a;
    color: #fff;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.philosophy-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.philosophy-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
    font-weight: 300;
}

.philosophy-visual {
    height: 500px;
    background: rgba(255,255,255,0.05);
    background-image: url('./images/philosophy-visual.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Company Section */
.company-section {
    padding: 120px 0;
    background: #f8f8f8;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.company-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.company-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

.detail-grid {
    display: grid;
    gap: 25px;
}

.detail-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.6;
}
.footer {
    background: #000;
    color: #fff;
    padding: 80px 0 40px;
}

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

.footer-section h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-section p, .footer-section a {
    color: #999;
    text-decoration: none;
    line-height: 1.8;
    font-weight: 300;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 40px;
    color: #666;
    text-align: center;
    font-size: 0.8rem;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loading-logo-container {
    position: relative;
}

.loading-logo {
    width: 120px;
    height: 120px;
    background-image: url('./images/kagox-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    filter: brightness(1.2) contrast(1.1);
    animation: logoFadeIn 2s ease-in-out infinite;
}

.loading-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 200px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #ccc 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

@keyframes logoFadeIn {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* @keyframes logoFadeIn {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* @keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive */
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

nav.scrolled .mobile-menu-toggle span {
    background: #1a1a1a;
}

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

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        color: #fff !important;
        font-size: 1.2rem;
        padding: 15px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .container {
        padding: 0 20px;
    }

    .crystal-grid {
        grid-template-columns: 1fr;
        gap: 5px !important;
    }

    .crystal-content {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .crystal-visual-container {
        margin: -20px 0 0 0 !important;
        padding: 0 !important;
    }

    .crystal-visual-container .crystal-visual {
        margin-top: 0 !important;
    }

    .crystal-subtitle {
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
        line-height: 1.6 !important;
    }

    .crystal-content p {
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }

    .philosophy-grid,
    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-content {
        text-align: center;
        margin-bottom: 30px;
    }

    .company-intro {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 40px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .crystal-section .crystal-grid {
        gap: 25px !important;
        margin-bottom: 0 !important;
    }

    .crystal-section .container .crystal-grid {
        gap: 25px !important;
    }

    .crystal-visual-container {
        gap: 0px !important;
    }
}

@media (max-width: 480px) {
    .crystal-grid {
        gap: 20px !important;
    }

    .crystal-section .crystal-grid {
        gap: 20px !important;
    }

    .crystal-visual {
        height: 400px;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .video-content {
        margin-left: 15px !important;
        margin-top: 25% !important;
        padding: 0 15px !important;
    }

    .hero-title .line-1 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        line-height: 0.85 !important;
    }

    .video-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
        margin-top: 0.5rem;
    }

    .video-content {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: calc(100% - 30px);
        padding: 0 15px;
    }

    .hero-content:not(.video-content) {
        padding: 0 15px !important;
        text-align: left !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 768px) {
    .image-overlay {
        left: 20px;
        right: 20px;
        bottom: 30px;
        max-width: none;
        padding: 25px;
        text-align: center;
    }

    .overlay-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .overlay-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    nav {
        padding: 20px 20px;
    }
    .crystal-section {
        padding: 40px 20px !important;
    }

    .products-section,
    .philosophy-section {
        padding: 80px 20px;
    }
    .crystal-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    /* Hero specific mobile adjustments */
    .hero-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
    }

    .hero-main-logo {
        width: clamp(150px, 30vw, 250px);
        height: clamp(150px, 30vw, 250px);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.15em;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 0.75rem;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 0.65rem;
    }

    .hero-logo-top-left {
        top: 120px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Social Links - Premium Glass Effect */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    font-size: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-links a: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: left 0.5s;
}

.social-links a:hover:before {
    left: 100%;
}

.social-links a:after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
}

.social-links a:hover:after {
    transform: scale(1.1);
}

.social-links a[href*="instagram"]:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='m16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.social-links a[href*="twitter"]:after,
.social-links a[href*="x.com"]:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z'/%3E%3C/svg%3E");
}

.social-links a[href*="facebook"]:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

/* Add individual brand colors on hover */
.social-links a[href*="instagram"]:hover {
    background: linear-gradient(145deg, #E4405F, #C13584);
}

.social-links a[href*="twitter"]:hover,
.social-links a[href*="x.com"]:hover {
    background: linear-gradient(145deg, #1DA1F2, #0d8bd9);
}

.social-links a[href*="facebook"]:hover {
    background: linear-gradient(145deg, #1877F2, #166fe5);
}