.list-container {
    margin: 1em;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 300px;
}

.list-header {
    margin-bottom: 1em;
}

.list-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.list-title-section {
    text-align: center;
    flex: 1;
}

.list-header h2 {
    margin: 0 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    background: none;
}

.list-header h2::before {
    background: none;
    border: none;
}

.list-description {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.recalculate-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.recalculate-btn i {
    font-size: 12px;
    line-height: 1;
}

/* FontAwesome フォールバック対応 */
.recalculate-btn i:before {
    content: attr(data-fallback);
}

.recalculate-btn i.fa-refresh:before,
.recalculate-btn i.fa-redo-alt:before {
    content: "↻";
}

.recalculate-btn i.fa-spinner:before {
    content: "⟳";
}

.recalculate-btn i.fa-check:before {
    content: "✓";
}

.recalculate-btn i.fa-exclamation-triangle:before {
    content: "⚠";
}

.recalculate-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.recalculate-btn:hover i {
    transform: rotate(180deg);
}

.recalculate-btn:disabled {
    background: #f8f9fa;
    color: #ced4da;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    touch-action: manipulation; /* タッチ操作を有効化 */
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.carousel-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #64748b;
}

.carousel-nav-btn:hover {
    background: white;
    border-color: #4CAF50;
    color: #4CAF50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* FontAwesome フォールバック */
.carousel-nav-btn i.fa-chevron-left:before {
    content: "‹";
    font-size: 20px;
    font-weight: bold;
}

.carousel-nav-btn i.fa-chevron-right:before {
    content: "›";
    font-size: 20px;
    font-weight: bold;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    touch-action: manipulation; /* タッチ操作を有効化 */
    gap: 12px;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-item {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 160px;
    /* デスクトップ: 3カラム */
    width: calc((100% - 24px) / 3);
    min-width: calc((100% - 24px) / 3);
}

.carousel-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.carousel-item.recommended {
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    /* margin-top: 16px; */
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background-color: #4CAF50;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: #9ca3af;
}

.station-info {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.station-name {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.station-detail {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

.distance-info {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.2em;
}

.badge {
    background-color: #4CAF50;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 1em;
    font-size: 0.75em;
    font-weight: 600;
}

.distance {
    font-size: 0.8em;
    color: #777;
}

.spot-link {
    background: none;
    border: none;
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    align-self: flex-start;
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    width: 100%;
    text-align: left;
}

.spot-link:hover {
    color: #1976D2;
    text-decoration: underline;
}

.spot-count {
    color: #666;
    font-weight: normal;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .list-container {
        margin: 0.5em;
        margin-top: 1em;
        min-height: 0;
    }
    
    .carousel-item {
        /* タブレット: 2カラム */
        width: calc((100% - 12px) / 2);
        min-width: calc((100% - 12px) / 2);
        padding: 14px;
        min-height: 140px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .station-name {
        font-size: 0.9em;
    }
    
    .station-detail {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .list-header h2 {
        font-size: 1.1em;
    }
    
    .list-description {
        font-size: 0.85em;
    }
    
    .recalculate-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .recalculate-btn i {
        font-size: 10px;
    }
    
    .carousel-track {
        gap: 8px;
    }
    
    .carousel-navigation {
        gap: 12px;
        margin-top: 12px;
    }
    
    .carousel-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .carousel-nav-btn i.fa-chevron-left:before,
    .carousel-nav-btn i.fa-chevron-right:before {
        font-size: 14px;
    }
    
    .carousel-item {
        /* スマホ: 1.5カラム（少し次が見える） */
        width: calc(70%);
        min-width: calc(70%);
        padding: 12px;
        min-height: 120px;
    }
    
    .distance-info {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .station-name {
        font-size: 0.85em;
    }
    
    .station-detail {
        font-size: 0.75em;
        line-height: 1.3;
    }
    
    .spot-link {
        font-size: 0.8em;
    }
}