/**
 * スナックごぼう メインスタイルシート
 * このファイルはstyle.cssと併用されます
 * 
 * @package SnackGobo
 */

/* ========================================
   追加のアニメーション
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* アニメーションクラス */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.zoom-in {
    animation: zoomIn 0.8s ease-out;
}

/* ========================================
   スクロールエフェクト
======================================== */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   グラデーション背景
======================================== */
.gradient-dark {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

.gradient-neon {
    background: linear-gradient(135deg, #00ff00 0%, #00ffff 50%, #ff00ff 100%);
}

/* ========================================
   ホバーエフェクト
======================================== */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.6);
    transition: box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

/* ========================================
   テキストエフェクト
======================================== */
.text-gradient {
    background: linear-gradient(135deg, #ff69b4 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-stroke {
    -webkit-text-stroke: 2px #ff69b4;
    -webkit-text-fill-color: transparent;
}

.text-shadow-glow {
    text-shadow: 0 0 20px currentColor;
}

/* ========================================
   カスタムスクロールバー
======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

/* ========================================
   レスポンシブユーティリティ
======================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .stack-mobile {
        flex-direction: column !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   プリローダー
======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 3rem;
    color: #ff69b4;
    font-family: 'Yuji Syuku', serif;
    animation: neon-flicker 2s infinite;
    margin-bottom: 20px;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 105, 180, 0.3);
    border-top-color: #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* ========================================
   モーダル
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #2a2a2a;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff69b4;
}

/* ========================================
   トースト通知
======================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2a2a2a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 4px solid #ff69b4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #00ff00;
}

.toast.error {
    border-left-color: #ff0000;
}

.toast.warning {
    border-left-color: #ffff00;
}

/* ========================================
   バッジ
======================================== */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-new {
    background: #ff69b4;
    color: #fff;
}

.badge-hot {
    background: #ff0000;
    color: #fff;
}

.badge-sale {
    background: #ffff00;
    color: #000;
}

/* ========================================
   タブ
======================================== */
.tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    color: #999;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: #ff69b4;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff69b4;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ========================================
   カウンター
======================================== */
.counter {
    font-size: 3rem;
    font-weight: bold;
    color: #ffff00;
}

.counter-label {
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ========================================
   プログレスバー
======================================== */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4 0%, #00ffff 100%);
    border-radius: 5px;
    transition: width 1s ease;
}

/* ========================================
   タイムライン
======================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff69b4;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 10px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #ff69b4;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

/* ========================================
   フォーム要素のカスタマイズ
======================================== */
.custom-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-input:focus {
    outline: none;
    border-color: #ff69b4;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.custom-button {
    padding: 12px 30px;
    background: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-button:hover {
    background: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
}

/* ========================================
   印刷用スタイル
======================================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}