@charset "UTF-8";

/* エリアマップ用スタイル (旧キャンパスマップ) */
.campus-map-container {
    margin: 20px 0 30px;
    position: relative;
}

/* マップ切り替えナビゲーション（必要に応じて使用） */
.map-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.map-nav-btn {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.map-nav-btn.active {
    background-color: #48dbfb;
    color: white;
    border-color: #48dbfb;
}

.map-nav-btn:hover {
    background-color: #eee;
}

.map-nav-btn.active:hover {
    background-color: #0fbcf9;
}

.campus-map-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.campus-map-wrapper.active {
    display: block;
}

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


/* マップ上のマーカー */
.map-marker {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -50%);
    cursor: pointer;
    /* パーセント指定の位置に対応 */
    pointer-events: all;
    cursor: default;
}

.marker-dot {
    display: block;
    width: 25px;
    height: 25px;
    opacity: 0;
    background-color: #ff6b6b;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


.marker-dot-bus-stop {
    display: block;
    width: 5px;
    height: 5px;
    background-color: #ff6b6b;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 建物マーカーのスタイル */
.building-marker .marker-dot {
    background-color: #0fbcf9;
    width: 30px;
    height: 30px;
}

/* 場所マーカーのスタイル */
.location-marker .marker-dot {
    background-color: #ff6b6b;
}

.marker-label1 {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
    transition: background-color 0.3s, transform 0.3s;

    /* マウスカーソル */
    cursor: pointer;
}

.marker-label2 {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;

    /* マウスカーソル */
    cursor: pointer;
}

/* クリック不可 */
.marker-label-stuck {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    color: #000;

    padding: 6px 10px;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;

    /* クリック不可 */
    cursor: default;
    pointer-events: none;
}

.map-marker:hover .marker-dot {
    transform: scale(1.2);
    background-color: #ff3e3e;
}


.map-marker:hover .marker-dot-bus-stop {
    transform: scale(1.2);
    background-color: #ff3e3e;
}

.map-marker:hover .marker-label1 {
    background-color: #0fbcf9;  /* ← 背景色（例: ポップな赤ピンク） */
    color: #ffffff;             /* ← 文字色（白） */
    transform: translateX(-50%) translateY(-3px); /* ほんの少し上に浮く */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);   /* くっきり見せる影 */
}

.map-marker:hover .marker-label2 {
    background-color: #0fbcf9;  /* ← 背景色 */
    color: #ffffff;             /* ← 文字色 */
    transform: translateX(-50%) translateY(-2px);  /* label2は下に浮かせる */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.map-info {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* アクティブなマーカー（選択されたとき） */
.map-marker.active .marker-dot {
    background-color: #48dbfb;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(72, 219, 251, 0.4);
}


/* アクティブなバス停留所マーカー（選択されたとき） */
.map-marker.active .marker-dot-bus-stop {
    background-color: #48dbfb;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(72, 219, 251, 0.4);
}

/* 独立させた「クリック！」テキスト*/
.click-prompt {
    position: absolute;
    background-color: #ff6b6b;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0.9;
    animation: clickText 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 16;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    font-size: 20px; 
    border-radius: 20px;
    
    /* 位置をど真ん中に合わせる */
    transform: translate(-50%, -50%);
}

/* 「クリック！」テキストのアニメーション */
@keyframes clickText {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, calc(-50% - 5px)) scale(1.05);
        opacity: 1;
    }
}

/* マーカーがクリックされた後はアニメーションを停止 */
.location-marker.clicked::after,
.location-marker.clicked::before {
    animation: none !important;
    display: none !important;
}


.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

/* モーダル本体 */
.location-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* モーダル表示時のアニメーション */
.modal-mask.is-active, .location-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.location-modal.is-active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: relative;
    padding: 35px 20px 20px; /* 下部はボタン用に70px空ける */
}

/* 画像スライダーの調整 */
.myLocationSwiper {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.myLocationSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストの調整 */
.modal-description h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.modal-description p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    color: #333; /* マウスを乗せると少し濃く */
    transform: scale(1.1); /* ほんの少し大きく */
}

/* Swiperのスライド自体を中央揃えにする */
.myLocationSwiper .swiper-slide {
    display: flex;
    align-items: center;     /* 上下中央 */
    justify-content: center;  /* 左右中央 */
    background-color: #000;   /* 余白ができる場合に黒帯にして引き締める */
}

/* YouTube iframe のスタイル調整 */
.myLocationSwiper iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;    /* 16:9の比率を維持 */
    max-width: 100%;
    max-height: 100%;
    border: none;
    display: block;
}