/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-blue: #1a237e;
    --primary-purple: #6200ea;
    --accent-cyan: #00e5ff;
    --dark-bg: #0a0a0a;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    --gradient-glow: linear-gradient(45deg, var(--primary-blue), var(--primary-purple), var(--accent-cyan));
    
    /* フォント */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Helvetica Neue", Arial, sans-serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* トランジション */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.time-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

.loading-text {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

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

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

.nav-cta {
    background: var(--gradient-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 25px;
    transition: var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(98, 0, 234, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    margin: 3px 0;
    transition: var(--transition-base);
}

/* ヒーローセクション */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: 80px;
}

.hero-text {
    position: relative;
    z-index: 1000;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.title-line-1 {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-2 {
    display: inline;
    white-space: nowrap;
    position: relative;
    z-index: 9999;
    color: white;
    opacity: 1;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(98, 0, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-glow {
    animation: pulse-glow 2s infinite;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
}

/* 製品ショーケース */
.hero-product {
    position: relative;
}

.product-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    position: relative;
    z-index: 10;
}

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

.time-effect-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-color: var(--primary-blue);
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-color: var(--primary-purple);
    animation: rotate-ring 30s linear infinite reverse;
}

.ring-3 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    border-color: var(--accent-cyan);
    animation: rotate-ring 40s linear infinite;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-text);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    margin: var(--spacing-sm) auto 0;
    border: 2px solid var(--gray-text);
    border-radius: 25px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--gray-text);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-down 1.5s infinite;
}

/* セクション基本スタイル */
section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
}

/* 機能セクション */
.features {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(26, 35, 126, 0.1) 50%, var(--dark-bg) 100%);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-glow);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    filter: blur(20px);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--gray-text);
    line-height: 1.8;
}

/* 使用シーンセクション */
.scenes {
    background: var(--dark-bg);
}

.scenes-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.scene-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scene-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.scene-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

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

.scene-content.reverse > * {
    direction: ltr;
}

.scene-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.scene-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

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

.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 35, 126, 0.3), rgba(98, 0, 234, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scene-image:hover .scene-overlay {
    opacity: 1;
}

.scene-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.scene-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.scene-points {
    list-style: none;
}

.scene-points li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-text);
}

.scene-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* インターフェースセクション */
.interface {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(98, 0, 234, 0.1) 50%, var(--dark-bg) 100%);
    overflow: hidden;
}

.interface-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.interface-device {
    position: relative;
}

.interface-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.interface-demo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.demo-display {
    position: relative;
    width: 100%;
    height: 100%;
}

.countdown-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.progress-ring-bar {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 10;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s ease;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.interface-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.interface-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.btn-demo {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-demo:hover {
    background: var(--primary-purple);
    color: var(--light-text);
}

/* お客様の声セクション */
.testimonials {
    background: var(--dark-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--spacing-lg);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(98, 0, 234, 0.1);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-purple);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* 製品仕様セクション */
.specs {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(26, 35, 126, 0.05) 50%, var(--dark-bg) 100%);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.spec-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition-base);
}

.spec-item:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
}

.spec-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.specs-note {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 購入セクション */
.purchase {
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.purchase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.purchase-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.purchase-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.purchase-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.price-display {
    margin-bottom: var(--spacing-lg);
}

.price-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.price-amount {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.currency {
    font-size: 0.7em;
}

.tax {
    font-size: 0.4em;
    opacity: 0.8;
}

.price-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

.purchase-actions {
    margin-bottom: var(--spacing-lg);
}

.btn-purchase {
    background: var(--light-text);
    color: var(--primary-purple);
    font-size: 1.2rem;
    padding: var(--spacing-md) var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.btn-purchase:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

.stock-info {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.1rem;
}

.stock-icon {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.stock-count {
    font-weight: 700;
}

.purchase-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.purchase-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.check-icon {
    color: var(--light-text);
    font-weight: bold;
}

/* フッター */
.footer {
    background: #000;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    color: var(--gray-text);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--light-text);
}

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

.footer-list li {
    margin-bottom: var(--spacing-xs);
}

.footer-list a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-list a:hover {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: var(--spacing-xs);
    opacity: 0.7;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-product {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .scene-content,
    .scene-content.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .interface-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
