/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(153, 27, 27, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0c0c0c 0%, #1a0a0a 50%, #2d0a0a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.05), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ヘッダー */
header {
    background: 
        radial-gradient(circle at center, rgba(220, 38, 38, 0.8) 0%, rgba(185, 28, 28, 0.9) 100%),
        linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 50%, #0f0a0a 100%);
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(220, 38, 38, 0.5);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px rgba(220, 38, 38, 0.8),
        0 0 20px rgba(220, 38, 38, 0.6),
        0 0 30px rgba(220, 38, 38, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #ffffff, #ffebee, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

header p {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 3;
}

/* ヒバゴン紹介セクション */
.hibagon-intro {
    background: 
        radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 10, 10, 0.9) 0%, rgba(45, 10, 10, 0.9) 100%);
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hibagon-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hibagon-character {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hibagon-avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hibagon-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 20px;
    animation: mysteriousFloat 4s ease-in-out infinite;
    filter: 
        drop-shadow(0 0 20px rgba(220, 38, 38, 0.6))
        drop-shadow(0 0 40px rgba(220, 38, 38, 0.4))
        drop-shadow(0 0 60px rgba(220, 38, 38, 0.2));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.hibagon-image:hover {
    transform: scale(1.05);
    filter: 
        drop-shadow(0 0 30px rgba(220, 38, 38, 0.8))
        drop-shadow(0 0 50px rgba(220, 38, 38, 0.6))
        drop-shadow(0 0 70px rgba(220, 38, 38, 0.4));
}

.mystical-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%),
        radial-gradient(circle, rgba(185, 28, 28, 0.2) 0%, transparent 50%);
    border-radius: 50%;
    animation: auraPulse 3s ease-in-out infinite;
    z-index: 1;
}

.mystical-aura::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    animation: auraPulse 3s ease-in-out infinite 1.5s;
}

.mystical-aura::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    animation: auraPulse 3s ease-in-out infinite 3s;
}

@keyframes auraPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes mysteriousFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-8px) rotate(1deg);
    }
    50% { 
        transform: translateY(-4px) rotate(0deg);
    }
    75% { 
        transform: translateY(-12px) rotate(-1deg);
    }
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-200px); }
}

@keyframes sparklePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hibagon-speech {
    flex: 1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 5, 5, 0.9) 0%, rgba(25, 10, 10, 0.9) 100%);
    padding: 2rem;
    border-radius: 25px;
    border-left: 5px solid rgba(220, 38, 38, 0.6);
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hibagon-speech::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(220, 38, 38, 0.6);
}

.hibagon-speech p {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #e8e8e8;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

/* QRコードセクション */
.qr-code-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 5, 5, 0.8) 0%, rgba(25, 10, 10, 0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(220, 38, 38, 0.4);
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code {
    width: 150px;
    height: 150px;
}

.qr-code:hover {
}

.qr-description {
    font-size: 0.9rem !important;
    color: #e8e8e8 !important;
    margin-top: 0.5rem !important;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.4) !important;
    font-style: italic;
}

/* アニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 商品セクション */
.products-section {
    margin: 4rem 0;
    position: relative;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(220, 38, 38, 0.8),
        0 0 20px rgba(220, 38, 38, 0.6);
    background: linear-gradient(45deg, #ffffff, #ffebee, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    scroll-behavior: smooth;
}

.product-card {
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 10, 10, 0.9) 0%, rgba(45, 10, 10, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 10px 30px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    border: 2px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(220, 38, 38, 0.4),
        0 0 30px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(220, 38, 38, 0.6);
    cursor: pointer;
}

.product-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.5));
}


.product-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.8rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

.product-description {
    color: #e8e8e8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

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

.product-features li {
    padding: 0.5rem 0;
    color: #e8e8e8;
    text-shadow: 0 0 3px rgba(220, 38, 38, 0.3);
}

.product-features li::before {
    content: '⚠️ ';
    color: #dc2626;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.8);
}

.rarity-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.rarity-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.rarity-rare {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: #ffffff;
    border: 2px solid rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.rarity-very-rare {
    background: linear-gradient(45deg, #b91c1c, #dc2626);
    color: white;
    border: 2px solid rgba(185, 28, 28, 0.5);
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.4);
}

.rarity-legendary {
    background: linear-gradient(45deg, #7f1d1d, #dc2626, #b91c1c);
    background-size: 200% 200%;
    color: white;
    border: 2px solid rgba(127, 29, 29, 0.5);
    animation: legendaryGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(127, 29, 29, 0.5);
}

@keyframes legendaryGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 4px 15px rgba(127, 29, 29, 0.4);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 4px 20px rgba(127, 29, 29, 0.6);
    }
}

/* 検索セクション */
.search-section {
    background: 
        radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 10, 10, 0.9) 0%, rgba(45, 10, 10, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
}

.search-box {
    display: flex;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
    background: rgba(15, 5, 5, 0.8);
    color: #e8e8e8;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-box input:focus {
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    background: rgba(15, 5, 5, 0.9);
}

.search-box input::placeholder {
    color: rgba(232, 232, 232, 0.6);
}

.search-box button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.search-box button:hover {
    background: linear-gradient(45deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(220, 38, 38, 0.3);
    background: rgba(15, 5, 5, 0.8);
    color: #e8e8e8;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    backdrop-filter: blur(5px);
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* ルートマップセクション */
.route-map-section {
    margin: 4rem 0;
    position: relative;
}

.route-map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(220, 38, 38, 0.8),
        0 0 20px rgba(220, 38, 38, 0.6);
    background: linear-gradient(45deg, #ffffff, #ffebee, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.map {
    position: relative;
    height: 600px;
    width: 100%;
    border-radius: 20px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
}

/* Leafletマップのスタイリング */
.leaflet-container {
    border-radius: 20px;
    height: 100% !important;
    width: 100% !important;
    min-height: 600px;
}

.hibagon-marker {
    background: none !important;
    border: none !important;
    animation: mysteriousFloat 3s ease-in-out infinite;
    transition: all 0.1s ease-out;
    z-index: 2000 !important;
}

.hibagon-marker.moving {
    animation: movingBounce 0.5s ease-in-out infinite;
}

@keyframes movingBounce {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-5px) scale(1.1);
    }
}

.umf-marker {
    background: none !important;
    border: none !important;
    z-index: 1500 !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(15, 5, 5, 0.7) !important;
    border: 2px solid rgba(220, 38, 38, 0.6) !important;
    border-radius: 15px !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 1000 !important;
}

.leaflet-popup-content {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important;
}

.leaflet-popup-content h3 {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9) !important;
}

.leaflet-popup-content p {
    color: #e8e8e8 !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important;
}

.leaflet-popup-content strong {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9) !important;
}

.leaflet-popup-tip {
    background: rgba(15, 5, 5, 0.7) !important;
    border: 2px solid rgba(220, 38, 38, 0.6) !important;
    z-index: 1000 !important;
}

.leaflet-popup-close-button {
    color: #dc2626 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

/* タイルレイヤーコントロールのスタイリング */
.leaflet-control-layers {
    background: rgba(15, 5, 5, 0.9) !important;
    border: 2px solid rgba(220, 38, 38, 0.6) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4) !important;
    backdrop-filter: blur(10px) !important;
}

.leaflet-control-layers-toggle {
    background: rgba(220, 38, 38, 0.8) !important;
    border: 1px solid rgba(220, 38, 38, 1) !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-layers-toggle:hover {
    background: rgba(185, 28, 28, 0.9) !important;
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-layers-list {
    background: rgba(15, 5, 5, 0.95) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.leaflet-control-layers-list label {
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 0 3px rgba(220, 38, 38, 0.5) !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-layers-list label:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #ffebee !important;
}

.leaflet-control-layers-list input[type="radio"] {
    accent-color: #dc2626 !important;
}

.leaflet-control-layers-expanded {
    padding: 10px !important;
    min-width: 200px !important;
}

.leaflet-control-layers-separator {
    border-top: 1px solid rgba(220, 38, 38, 0.3) !important;
    margin: 5px 0 !important;
}

/* マップタイトル（Leafletマップの上に表示） */
.map-title {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
    z-index: 1000;
    background: rgba(15, 5, 5, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(5px);
}

/* マップ凡例 */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 5, 5, 0.9);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.6));
}

.legend-text {
    font-size: 0.9rem;
}

.route-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.route-line::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 0;
    background: linear-gradient(45deg, #dc2626, #b91c1c, #991b1b);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
    animation: drawRoute 3s ease-in-out forwards;
}

@keyframes drawRoute {
    0% { height: 0; }
    100% { height: 80%; }
}

.location-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.location-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(220, 38, 38, 0.8),
        0 0 30px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.location-point:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 25px rgba(220, 38, 38, 1),
        0 0 40px rgba(220, 38, 38, 0.6);
}

.location-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sparklePulse 2s ease-in-out infinite;
}


.location-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 5, 5, 0.9);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 6;
}

.location-point:hover .location-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.hibagon-traveler {
    position: absolute;
    font-size: 2rem;
    z-index: 7;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.6));
    animation: travelerFloat 2s ease-in-out infinite;
}

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

.route-info {
    background: 
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 10, 10, 0.9) 0%, rgba(45, 10, 10, 0.9) 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.route-info h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

.route-steps {
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
    scroll-behavior: smooth;
}

/* スクロールバーのスタイリング */
.route-steps::-webkit-scrollbar {
    width: 6px;
}

.route-steps::-webkit-scrollbar-track {
    background: rgba(15, 5, 5, 0.3);
    border-radius: 3px;
}

.route-steps::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.6);
    border-radius: 3px;
}

.route-steps::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.8);
}

.route-step {
    background: rgba(15, 5, 5, 0.8);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid rgba(220, 38, 38, 0.6);
    color: #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.route-step:last-child {
    margin-bottom: 0;
}

.route-step:hover {
    background: rgba(15, 5, 5, 0.9);
    transform: translateX(5px);
    border-left-color: rgba(220, 38, 38, 1);
}

.route-step.active {
    background: rgba(220, 38, 38, 0.2);
    border-left-color: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.route-step h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.route-step p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.start-journey-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.start-journey-btn:hover {
    background: linear-gradient(45deg, #b91c1c, #991b1b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.start-journey-btn:active {
    transform: translateY(-1px);
}

/* オカルト記事セクション */
.occult-article-section {
    margin: 4rem 0;
    position: relative;
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.web-article {
    background: 
        radial-gradient(circle at 30% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(138, 43, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.web-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2, #ff6b6b, #4ecdc4);
}

.article-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 2;
}

.article-category {
    display: inline-block;
    background: linear-gradient(45deg, #8a2be2, #ff6b6b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.article-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 
        0 0 20px rgba(138, 43, 226, 0.6),
        0 0 40px rgba(138, 43, 226, 0.3);
    font-weight: 700;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #e8e8e8;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #e8e8e8;
    font-size: 0.9rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-name {
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.6);
}

.author-title {
    font-size: 0.8rem;
    opacity: 0.8;
}

.publish-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.publish-date {
    font-weight: bold;
}

.read-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

.article-body {
    padding: 0 3rem 3rem;
    position: relative;
    z-index: 2;
}

.article-lead {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 2rem 0;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
    font-weight: 500;
    border-left: 4px solid rgba(138, 43, 226, 0.6);
    padding-left: 2rem;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
}

.article-content p {
    color: #e8e8e8;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 3px rgba(138, 43, 226, 0.2);
    font-size: 1rem;
}

.article-quote {
    margin: 2rem 0;
    padding: 2rem;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 15, 35, 0.8) 0%, rgba(25, 25, 45, 0.8) 100%);
    border-left: 5px solid rgba(138, 43, 226, 0.6);
    border-radius: 10px;
    position: relative;
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(138, 43, 226, 0.3);
    font-family: serif;
}

.article-quote blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.4);
}

.article-quote cite {
    display: block;
    text-align: right;
    color: #e8e8e8;
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.8;
}

.article-highlight-box {
    background: 
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
}

.article-highlight-box h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

.article-highlight-box p {
    color: #e8e8e8;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.tag {
    background: rgba(138, 43, 226, 0.2);
    color: #e8e8e8;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(138, 43, 226, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ヒバゴンの豆知識 */
.hibagon-facts {
    background: 
        radial-gradient(circle at 30% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 
        0 15px 35px rgba(138, 43, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.hibagon-facts h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 20px rgba(138, 43, 226, 0.6);
    background: linear-gradient(45deg, #ffffff, #e0e0ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.fact-card {
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(25, 25, 45, 0.9) 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid rgba(138, 43, 226, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fact-card h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.fact-card p {
    color: #e8e8e8;
    line-height: 1.7;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.3);
}

/* フッター */
footer {
    background: 
        radial-gradient(circle at center, rgba(220, 38, 38, 0.8) 0%, rgba(185, 28, 28, 0.9) 100%),
        linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 50%, #0f0a0a 100%);
    color: #ffffff;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    box-shadow: 
        0 -8px 32px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(220, 38, 38, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .hibagon-character {
        flex-direction: column;
        text-align: center;
    }
    
    .hibagon-image {
        max-width: 250px;
        max-height: 250px;
    }
    
    .hibagon-speech::before {
        display: none;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }
    
    .qr-code-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map {
        height: 500px;
        min-height: 500px;
    }
    
    .leaflet-container {
        min-height: 500px !important;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }
    
    .search-box button {
        border-radius: 25px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .mystical-aura {
        width: 100%;
        height: 100%;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map {
        height: 500px;
    }
    
    .route-info {
        order: -1;
    }
    
    .article-wrapper {
        padding: 0 10px;
    }
    
    .article-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-subtitle {
        font-size: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .publish-info {
        align-items: flex-start;
    }
    
    .article-body {
        padding: 0 2rem 2rem;
    }
    
    .article-lead {
        font-size: 1.1rem;
        padding-left: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-quote {
        padding: 1.5rem;
    }
    
    .article-highlight-box {
        padding: 1.5rem;
    }
}

/* ローディングアニメーション */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.3rem;
    color: #e8e8e8;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top: 3px solid rgba(138, 43, 226, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
