@charset "utf-8";

.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: #f8f9fa;
}

.responsive-map {
    width: 100%;
    height: auto;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hospital-marker {
    position: absolute;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    border: 2px solid white;
}

.hospital-marker:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: white;
}

.hospital-marker::before {
    display: none;
}

/* 各病院の位置設定（画像に合わせて調整が必要） */
.saga-university {
    top: 43%;
    left: 8%;
}

.chiba-university {
    top: 80%;
    left: 80%;
}

.marianna-university {
    top: 87.5%;
    left: 57%;
}

.hospital-list {
    padding: 30px;
    background-color: white;
}

.hospital-list h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.hospital-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.hospital-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    text-decoration: none;
    color: #333;
}

.hospital-item::before {
    content: '🏥';
    font-size: 1.5rem;
    margin-right: 15px;
}

.hospital-info h3 {
    margin: 0 0 5px 0;
    color: #1976d2;
    font-size: 1.2rem;
}

.hospital-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.instructions {
    padding: 20px 30px;
    background-color: #f1f8e9;
    border-left: 4px solid #4caf50;
    margin: 20px 30px;
    border-radius: 0 8px 8px 0;
}

.instructions h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.instructions p {
    color: #1b5e20;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hospital-marker {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hospital-list {
        padding: 20px;
    }

    .hospital-list h2 {
        font-size: 1.5rem;
    }

    .hospital-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hospital-item::before {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .instructions {
        margin: 20px 10px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hospital-marker {
        padding: 4px 8px;
        font-size: 0.7rem;
        /* スマホでマーカーが重なるのを防ぐ */
        min-width: 90px;
        text-align: center;
        /* タップしやすいサイズを確保 */
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* 1行表示を強制 */
        white-space: nowrap;
        overflow: hidden;
    }

    /* スマホでは病院名を短縮 */
    
    .saga-university {
        font-size: 0;
    }
    .saga-university::after {
        content: '佐賀大病院';
        font-size: 0.7rem;
    }
    
    .chiba-university {
        font-size: 0;
    }
    .chiba-university::after {
        content: '千葉大病院';
        font-size: 0.7rem;
    }
    
    .marianna-university {
        font-size: 0;
    }
    .marianna-university::after {
        content: '聖マリアンナ';
        font-size: 0.7rem;
    }

    /* スマホで下部のマーカーが近い場合の調整 */
    .chiba-university {
        transform: translateX(-10px); /* 少し左にずらす */
    }
    
    .marianna-university {
        transform: translateY(-5px); /* 少し上にずらす */
    }
}



a.hospital-marker.marianna-university {
    color: #fff !important;
}