/* 出身地ページ専用スタイル */

.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.geo-panel, .culture-panel {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.panel-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #7877c6, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #7877c6;
    flex: 1;
}

.scan-status, .analysis-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: 600;
}

.scan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: scanPulse 1.5s ease-in-out infinite;
}

/* 緯度・経度・標高の表示に関するスタイルは削除 */

.location-info {
    margin-bottom: 25px;
}

.location-primary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
}

.location-icon {
    font-size: 2.5rem;
    width: 60px;
    text-align: center;
}

.location-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7877c6;
    margin-bottom: 5px;
}

.location-region {
    color: #e8e8e8;
    font-size: 1rem;
    margin-bottom: 3px;
}

.location-country {
    font-family: 'Orbitron', monospace;
    color: #b8b8b8;
    font-size: 0.9rem;
    font-weight: 600;
}

.climate-data {
    display: grid;
    gap: 10px;
}

.climate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 8px;
}

.climate-icon {
    font-size: 1.2rem;
}

.climate-label {
    color: #b8b8b8;
    font-size: 0.9rem;
    min-width: 50px;
}

.climate-value {
    font-family: 'Orbitron', monospace;
    color: #7877c6;
    font-weight: 600;
    font-size: 0.9rem;
}

.scan-result {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.result-header {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.result-stats {
    display: grid;
    gap: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 10px;
    align-items: center;
}

.stat-name {
    font-size: 0.8rem;
    color: #b8b8b8;
}

.stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #7877c6);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.culture-categories {
    display: grid;
    gap: 20px;
}

.culture-category {
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.culture-category:hover {
    background: rgba(120, 119, 198, 0.1);
    transform: translateX(5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(120, 119, 198, 0.3);
}

.category-icon {
    font-size: 1.3rem;
}

.category-name {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    font-size: 1rem;
}

.category-content p {
    line-height: 1.6;
    color: #e8e8e8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.historical-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hist-tag {
    padding: 4px 12px;
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: 'Orbitron', monospace;
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.food-items {
    display: grid;
    gap: 10px;
}

.food-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
}

.food-icon {
    font-size: 1.2rem;
}

.food-name {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.9rem;
}

.festival-calendar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.festival-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(156, 39, 176, 0.1);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 8px;
}

.season {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #9c27b0;
    font-size: 0.8rem;
    min-width: 30px;
}

.festival-name {
    color: #e8e8e8;
    font-size: 0.9rem;
}

.environment-analysis, .memory-archive, .current-location {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.analysis-header, .archive-header, .current-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.analysis-icon, .archive-icon, .current-icon {
    font-size: 1.5rem;
    color: #7877c6;
}

.analysis-title, .archive-title, .current-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7877c6;
    flex: 1;
}

.eco-status {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.archive-status, .gps-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #7877c6;
    font-weight: 600;
}

.status-indicator, .gps-signal {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7877c6;
    animation: pulse 2s ease-in-out infinite;
}

.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.env-category {
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.env-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.env-icon {
    font-size: 1.3rem;
}

.env-title {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    font-size: 1rem;
}

.env-content p {
    line-height: 1.6;
    color: #e8e8e8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.env-influences {
    display: grid;
    gap: 10px;
}

.influence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.influence-item:hover {
    background: rgba(120, 119, 198, 0.1);
    transform: translateX(3px);
}

.influence-icon {
    font-size: 1.1rem;
    min-width: 20px;
}

.influence-text {
    color: #e8e8e8;
    font-size: 0.9rem;
}

.memory-grid {
    display: grid;
    gap: 20px;
}

.memory-item {
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.memory-item:hover {
    background: rgba(120, 119, 198, 0.1);
    border-color: rgba(120, 119, 198, 0.4);
}

.memory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.memory-icon {
    font-size: 1.3rem;
}

.memory-title {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    flex: 1;
}

.memory-date {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #b8b8b8;
    background: rgba(120, 119, 198, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.memory-content p {
    line-height: 1.6;
    color: #e8e8e8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mem-tag {
    padding: 4px 10px;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: 'Orbitron', monospace;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.location-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.location-card {
    flex: 1;
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.location-card.origin {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.05);
}

.location-card.current {
    border-color: rgba(33, 150, 243, 0.3);
    background: rgba(33, 150, 243, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 1.3rem;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
}

.location-arrow {
    font-size: 2rem;
    color: #7877c6;
    font-weight: bold;
}

.location-distance {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.connection-strength {
    margin-top: 10px;
}

.connection-label {
    font-size: 0.8rem;
    color: #b8b8b8;
    display: block;
    margin-bottom: 5px;
}

.connection-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.connection-fill {
    height: 100%;
    background: linear-gradient(90deg, #7877c6, #4caf50);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.migration-data {
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.migration-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.migration-item {
    text-align: center;
}

.migration-label {
    display: block;
    font-size: 0.8rem;
    color: #b8b8b8;
    margin-bottom: 5px;
}

.migration-value {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    font-size: 1.1rem;
}

@keyframes scanPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .origin-grid {
        grid-template-columns: 1fr;
    }
    
    .environment-grid {
        grid-template-columns: 1fr;
    }
    
    .festival-calendar {
        grid-template-columns: 1fr;
    }
    
    .location-comparison {
        flex-direction: column;
        text-align: center;
    }
    
    .location-arrow {
        transform: rotate(90deg);
    }
    
    .migration-stats {
        grid-template-columns: 1fr;
    }
    
    .gallery-navigation {
        margin-bottom: 30px;
    }
    
    .gallery-preview {
        margin-bottom: 20px;
    }
    
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ギャラリーナビゲーションセクション */
.gallery-navigation {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(120, 119, 198, 0.4);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7877c6, transparent);
    animation: scanlineMove 3s ease-in-out infinite;
}

@keyframes scanlineMove {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.gallery-nav-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.gallery-nav-icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #7877c6, #ffffff, #7877c6);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconShimmer 3s ease-in-out infinite;
}

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

.gallery-nav-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7877c6;
    flex: 1;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.gallery-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #4caf50;
    padding: 8px 15px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
}

.status-dot-gallery {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.gallery-description {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: center;
    padding: 20px;
    background: rgba(120, 119, 198, 0.05);
    border-radius: 10px;
    border-left: 4px solid #7877c6;
}

.gallery-preview {
    margin-bottom: 30px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    color: #7877c6;
}

.preview-icon {
    font-size: 1.5rem;
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.preview-item {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(120, 119, 198, 0.2);
}

.preview-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2), rgba(120, 119, 198, 0.1));
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.preview-item:hover .preview-placeholder {
    border-color: #7877c6;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.3), rgba(120, 119, 198, 0.15));
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.3);
}

.placeholder-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.preview-label {
    font-size: 0.9rem;
    color: #b3b3b3;
    font-weight: 500;
}

.gallery-actions {
    margin-bottom: 25px;
}

.action-description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 500;
}

.action-icon {
    font-size: 1.3rem;
    color: #7877c6;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gallery-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
    justify-content: center;
}

.gallery-btn.primary {
    background: linear-gradient(135deg, #7877c6, #5a5599);
    color: #ffffff;
    box-shadow: 
        0 8px 25px rgba(120, 119, 198, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gallery-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(120, 119, 198, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #8a89d0, #6965a3);
}

.gallery-btn.secondary {
    background: rgba(120, 119, 198, 0.1);
    color: #7877c6;
    border: 2px solid rgba(120, 119, 198, 0.5);
}

.gallery-btn.secondary:hover {
    background: rgba(120, 119, 198, 0.2);
    border-color: #7877c6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(120, 119, 198, 0.2);
}

.gallery-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gallery-btn:hover .btn-glow {
    left: 100%;
}

.btn-loading-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-ring {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}

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

.gallery-btn:active .btn-loading-indicator {
    opacity: 1;
}

.access-info {
    padding-top: 20px;
    border-top: 1px solid rgba(120, 119, 198, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(120, 119, 198, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(120, 119, 198, 0.1);
    border-color: rgba(120, 119, 198, 0.4);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    color: #7877c6;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-bottom: 4px;
}

.info-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}
