/**
 * ============================================
 * Cute & Soft Theme - NFC Landing Page CSS
 * テーマ: キュート＆ソフト（ピンク基調）
 * 特徴: 丸みのある形状、優しいグラデーション、20代向け
 * ============================================
 */

/* カラー変数定義 */
:root {
    /* メインカラー - ソフトピンク系 */
    --color-primary: #FF9EAA;       /* ソフトピンク */
    --color-primary-light: #FFD1D9; /* 薄いピンク */
    --color-secondary: #FFF0F5;     /* ラベンダーブラッシュ */
    --color-accent: #FFD700;        /* ゴールドアクセント（控えめに使用） */
    
    /* テキストカラー - ブラウン系（黒よりも優しい） */
    --color-text: #5D4037;          /* ソフトブラウン */
    --color-text-light: #8D6E63;    /* ライトブラウン */
    --color-white: #FFFFFF;
    
    /* 背景グラデーション */
    --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFE4E1 100%);
    
    /* 形状 - 大きめの角丸で可愛らしさを演出 */
    --border-radius-lg: 30px;
    --border-radius-md: 20px;
    --border-radius-sm: 12px;
    
    /* エフェクト */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 30px rgba(255, 158, 170, 0.2);
    --shadow-card: 0 15px 35px rgba(255, 182, 193, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif; /* Cute rounded font */
    background: var(--bg-gradient);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/**
 * 背景装飾
 * 浮遊するバブル風のぼかし効果（疑似要素で実装）
 */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #E6E6FA 0%, transparent 70%);
    opacity: 0.5;
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 80px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    min-height: 100vh;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

/**
 * ============================================
 * ヒーローセクション
 * 画面上部の大きな画像エリア（画面高の75%）
 * ============================================
 */
.hero {
    position: relative;
    width: 100%;
    height: 75vh; /* 画面の75%を占める */
    max-height: 800px;
    overflow: hidden;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Hero Video - V2: 微動きらめき効果 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-video.loaded {
    opacity: 1;
}

/* Hero Image Adjustment (フォールバック用) */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%; /* Slightly adjusted vertical position, centered horizontally */
}

/* 動画対応ブラウザではフォールバック画像を非表示 */
.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px;
    color: white;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.club-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.name-elegant {
    font-size: 3rem;
    font-weight: 700;
    margin: 5px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    color: white; /* 以前の黒系から変更 */
}

.name-english {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 2px;
}

.tagline-elegant {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/**
 * ============================================
 * アバターセクション
 * 「アイカのアバター」ボタンエリア
 * ============================================
 */
.avatar-section {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 20px 40px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.avatar-intro-text h2 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.avatar-intro-text p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/**
 * アバターボタン
 * リッチなグラデーションと立体感のある可愛いボタン
 */
.btn-pink-avatar {
    background: linear-gradient(135deg, #FF9EAA 0%, #FF708D 50%, #FF5A7E 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 90, 126, 0.4), inset 0 2px 5px rgba(255,255,255,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block; /* No flex/icon */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-pink-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-pink-avatar:hover::before {
    opacity: 1;
    transform: scale(1);
}

.btn-pink-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 90, 126, 0.5), inset 0 2px 5px rgba(255,255,255,0.5);
}

.btn-pink-avatar:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 90, 126, 0.4);
}

/* Re-adding Modal Content Style (was accidentally removed) */
/**
 * モーダルコンテンツ
 * アバター画像表示用のモーダル
 */
.modal-content {
    background: #FFF;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    border: 4px solid var(--color-primary-light);
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.modal-video {
    max-height: 60vh;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

/**
 * ============================================
 * カードセクション（ブログ風スタイル）
 * ホバー時に浮き上がるアニメーション付き
 * ============================================
 */
.info-card {
    background: #FFF;
    border: none;
    margin: 30px auto; /* Center with margin */
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(255, 158, 170, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 90%; /* Prevent full width */
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 158, 170, 0.25);
}

.section-title-elegant {
    text-align: center;
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title-elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

/**
 * サービスカード
 * グリッドレイアウトでカードを並べる
 */
.service-cards-cute {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cute-card {
    background: #FFF;
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 230, 235, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.cute-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 158, 170, 0.2);
    border-color: var(--color-primary-light);
}

.cute-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cute-card:hover .cute-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.cute-card-title {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 8px;
    font-weight: 700;
}

.cute-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/**
 * クイックインフォカード
 * 箇条書き風の情報表示（アイコン付き）
 */
.info-cards-cute {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.info-cute-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.info-cute-card:hover {
    transform: translateX(5px);
    background: #FFF;
    box-shadow: 0 8px 25px rgba(255, 158, 170, 0.15);
}

.info-cute-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-cute-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

/**
 * ============================================
 * CTAボタンセクション
 * 「保存してね」「LINEで話そ！」ボタン
 * ============================================
 */
.cta-section.centered-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
}

.btn-primary, .btn-line {
    width: 100%;
    max-width: 320px;
    padding: 18px 0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block; /* Ensure block display */
    box-sizing: border-box;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD1D9 0%, #FF9EAA 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 158, 170, 0.3);
}

.btn-line {
    background: #06C755;
    color: white;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
}

.btn-primary:hover, .btn-line:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

/**
 * ============================================
 * LINE CTA（ヒーロー下）
 * 目立つ位置にLINEボタンを配置
 * ============================================
 */
.line-cta-hero {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-top: -25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.btn-line-hero {
    width: 100%;
    max-width: 300px;
    padding: 18px 0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
    background: #06C755;
    color: white;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
}

/**
 * ============================================
 * フッター（装飾版）
 * 波型SVGとアイコン装飾付き
 * ============================================
 */
.footer.decorative-footer {
    position: relative;
    background: var(--color-primary); /* Pink background */
    color: white;
    padding-top: 0;
    margin-top: 60px;
    overflow: hidden;
    /* Centralize footer content layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-wave {
    width: 100%;
    height: 60px;
    position: absolute;
    top: -1px; /* Overlap to prevent gaps */
    left: 0;
    line-height: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-content {
    padding: 70px 20px 40px; /* Add top padding for wave */
    text-align: center;
    position: relative;
    z-index: 2;
    /* Ensure content inside is centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.footer .code-line {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer .email-link {
    color: white;
    text-decoration: underline;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Blog Section Style */
.blog-section {
    background: #FFF;
    margin: 30px 20px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-primary-light));
}

/**
 * ============================================
 * ギャラリーセクション
 * Swiperでカルーセル表示（Coverflow Effect）
 * ============================================
 */
.gallery-section {
    padding: 20px 0;
    overflow: hidden;
}

.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 240px; /* Fixed width for card effect */
    height: 340px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background-color: #fff;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Save Contact Button (Bottom Fixed) */
.save-contact-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 100;
}

.btn-save {
    width: 100%;
    background: var(--color-text); /* Brown */
    color: white;
    padding: 16px;
    border-radius: 30px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(93, 64, 55, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(93, 64, 55, 0.4);
}

/**
 * ============================================
 * ライトボックス（画像拡大表示）
 * ============================================
 */
.lightbox-image, #lightbox-image {
        display: block;
        max-width: 90%;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

/**
 * ============================================
 * ブックマークガイドモーダル
 * iPhone/Android向けの保存方法案内
 * ============================================
 */
.bookmark-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.7); /* Dark overlay */
        backdrop-filter: blur(5px);
    }

    .bookmark-modal.active {
        display: flex !important;
    }

    /* Bookmark Guide Modal Content (explicitly white bg) */
    .bookmark-modal-content {
        background: #FFFFFF !important;
        width: 90%;
        max-width: 480px;
        border-radius: 24px;
        padding: 30px;
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        border: 4px solid var(--color-primary-light);
        z-index: 10000; /* Higher than overlay */
        display: block !important;
        opacity: 1 !important;
    }

    @keyframes modalPop {
        0% { transform: scale(0.8); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }

/**
 * モーダル基本スタイル
 * デフォルトは非表示、.activeクラスで表示
 */
.video-modal,
.lightbox-modal,
.bookmark-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active,
.lightbox-modal.active,
.bookmark-modal.active {
    display: flex; /* Flex when active */
}

/* Modal Overlay */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.qr-placeholder {
    background: var(--color-secondary);
    border-radius: 20px;
}

/**
 * ============================================
 * アニメーション定義
 * ============================================
 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.avatar-container {
    animation: float 4s ease-in-out infinite;
}

/**
 * ============================================
 * オープニングアニメーション（ミニマル＆エレガント版）
 * シンプルで洗練された演出
 * ============================================
 */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s ease-out;
    overflow: hidden;
}

.opening-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   控えめな光の粒子
   ============================================ */
.opening-particles-minimal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle-light {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 182, 193, 0.6);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

.particle-light:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.particle-light:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.8s; }
.particle-light:nth-child(3) { top: 60%; left: 10%; animation-delay: 1.6s; }
.particle-light:nth-child(4) { top: 70%; left: 85%; animation-delay: 0.4s; }
.particle-light:nth-child(5) { top: 40%; left: 50%; animation-delay: 1.2s; }
.particle-light:nth-child(6) { top: 80%; left: 40%; animation-delay: 2s; }

@keyframes particle-float {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(0) scale(1); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-20px) scale(1.5); 
    }
}

/* ============================================
   メインコンテンツ（ミニマル）
   ============================================ */
.opening-content-minimal {
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 上のライン */
.opening-line-top {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    margin: 0 auto 30px;
    animation: line-expand 1s ease-out 0.3s forwards;
}

/* 下のライン */
.opening-line-bottom {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    margin: 30px auto 0;
    animation: line-expand 1s ease-out 0.5s forwards;
}

@keyframes line-expand {
    0% { width: 0; opacity: 0; }
    100% { width: 120px; opacity: 1; }
}

/* 名前（洗練されたフォント） */
.opening-name-minimal {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #2C2C2C;
    letter-spacing: 0.3em;
    margin: 0;
    opacity: 0;
    animation: name-fade-in 1.2s ease-out 0.8s forwards;
}

@keyframes name-fade-in {
    0% { 
        opacity: 0; 
        transform: translateY(15px); 
        letter-spacing: 0.5em;
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
        letter-spacing: 0.3em;
    }
}

/* 店名（控えめ） */
.opening-club-minimal {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8B7355;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-top: 25px;
    opacity: 0;
    animation: club-fade-in 1s ease-out 1.5s forwards;
}

@keyframes club-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ============================================
   スキップボタン（ミニマル）
   ============================================ */
.opening-skip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid #D4A574;
    color: #8B7355;
    padding: 10px 30px;
    border-radius: 0;
    font-size: 0.7rem;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    animation: skip-fade-in 0.5s ease-out 2.5s forwards;
    transition: all 0.3s ease;
}

.opening-skip:hover {
    background: #D4A574;
    color: #FFFFFF;
}

@keyframes skip-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/**
 * ============================================
 * タップアニメーション（全部盛り）
 * ハート + バウンス + キラキラ
 * ============================================
 */

/* ぽよんバウンス */
@keyframes btn-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn-bounce {
    animation: btn-bounce 0.5s ease-out;
}

/* タップ時のリップル効果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 158, 170, 0.6) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-expand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* ハートバーストエフェクト */
.heart-burst-container {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
}

.burst-heart {
    position: absolute;
    font-size: 16px;
    animation: burst-fly 1s ease-out forwards;
    opacity: 0;
}

@keyframes burst-fly {
    0% { 
        opacity: 1; 
        transform: translate(0, 0) scale(0.5) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        opacity: 0; 
        transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); 
    }
}

/* キラキラバーストエフェクト（ハート版） - burst-heartと共通 */

/* ボタンのアクティブ状態強化 */
.btn-pink-avatar,
.btn-primary,
.btn-line,
.insta-btn-link {
    position: relative;
    overflow: hidden;
}

.btn-pink-avatar:active,
.btn-primary:active,
.btn-line:active,
.insta-btn-link:active {
    animation: btn-bounce 0.5s ease-out;
}

/* ギャラリー画像タップエフェクト */
.swiper-slide {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.swiper-slide:active {
    animation: btn-bounce 0.4s ease-out;
}

/**
 * ============================================
 * モーダル表示アニメーション強化
 * ふわっと + ハート舞う
 * ============================================
 */
.video-modal.active .modal-content,
.bookmark-modal.active .bookmark-modal-content {
    animation: modal-float-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modal-float-in {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(30px); 
    }
    50% { 
        transform: scale(1.02) translateY(-5px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* モーダル背景のフェード */
.video-modal.active .modal-overlay,
.bookmark-modal.active .modal-overlay,
.lightbox-modal.active .modal-overlay {
    animation: overlay-fade-in 0.3s ease-out forwards;
}

@keyframes overlay-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* モーダル閉じるアニメーション用クラス */
.modal-closing .modal-content,
.modal-closing .bookmark-modal-content {
    animation: modal-float-out 0.3s ease-in forwards;
}

@keyframes modal-float-out {
    0% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.9) translateY(20px); 
    }
}

/* モーダル内ハートデコレーション */
.modal-hearts-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.modal-deco-heart {
    position: absolute;
    font-size: 14px;
    opacity: 0;
    animation: modal-heart-float 2s ease-out infinite;
}

.modal-deco-heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.modal-deco-heart:nth-child(2) { left: 30%; animation-delay: 0.4s; }
.modal-deco-heart:nth-child(3) { left: 50%; animation-delay: 0.8s; }
.modal-deco-heart:nth-child(4) { left: 70%; animation-delay: 0.2s; }
.modal-deco-heart:nth-child(5) { left: 90%; animation-delay: 0.6s; }

@keyframes modal-heart-float {
    0% { 
        bottom: -20px; 
        opacity: 0; 
        transform: scale(0.5); 
    }
    20% { 
        opacity: 0.8; 
    }
    80% { 
        opacity: 0.6; 
    }
    100% { 
        bottom: 100%; 
        opacity: 0; 
        transform: scale(1); 
    }
}
