/* it-map-styles.css */

.map-wrap{
    padding-bottom: 2rem!important;
    padding-top: 0!important;
}

.it-map-container {
    position: relative;
    width: 100%;
    height: 65vh;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    margin-bottom: 250px;
}

/* Logo Slider */
.logo-slider {
    width: 100%;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    height: 96px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.animate-scroll {
    display: flex;
    white-space: nowrap;
    align-items: center;
    animation: scroll 80s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slider-item {
    padding: 0 10px;
}

/* .slider-logo-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
} */

/* .slider-item:hover .slider-logo-box {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
    background: white;
} */

.slider-logo {
    height: auto;
    width: 125px;
    transition: all 0.3s;
    max-width: 125px;
}

.slider-name {
    margin-left: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #94a3b8;
    transition: color 0.3s;
}

.slider-item:hover .slider-name {
    color: #2563eb;
}

/* Map Area */
.map-area {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
    background-color: #f8fafc;
}

#leaflet-map {
    width: 100%;
    height: 100%;
}

/* Bottom Carousel */
.bottom-carousel-wrap {
    position: absolute;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 48px 16px 24px;
    pointer-events: none;
}

.carousel-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    pointer-events: auto;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1e293b;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: white;
}

.carousel-nav.prev { left: -8px; }
.carousel-nav.next { right: -8px; }

.cards-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.company-card {
    flex-shrink: 0;
    width: 288px;
    scroll-snap-align: center;
    cursor: pointer;
    transition: all 0.5s;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
}

.company-card.active {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.1);
}

.card-image-box {
    height: 144px;
    width: 100%;
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.company-card:hover .card-logo {
    transform: scale(1.1);
}

.card-content {
    padding: 0 16px 16px 16px;
    background: white;
}

.building-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.building-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    font-size: 8px;
    font-weight: bold;
    color: #64748b;
    letter-spacing: 0.05em;
    border: 1px solid #e2e8f0;
}

.card-title {
    font-weight: bold;
    color: #1e293b;
    font-size: 12px;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 10px 0;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.card-location {
    font-size: 10px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-badge {
    font-size: 8px;
    font-weight: bold;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Leaflet Overrides */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.leaflet-popup-content {
    margin: 0;
    width: 288px !important;
}

.popup-inner {
    width: 100%;
    background: white;
}

.popup-image-box {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 144px;
    border-bottom: 1px solid #f1f5f9;
}

.popup-content {
    padding: 16px;
}

.popup-building {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff6ff;
    font-size: 9px;
    font-weight: bold;
    color: #2563eb;
    border: 1px solid #dbeafe;
    margin-bottom: 4px;
}

.popup-title {
    font-weight: bold;
    font-size: 18px;
    margin: 0 0 4px 0;
    color: #1e293b;
}

.popup-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.popup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.popup-link:hover {
    background: #dbeafe;
}

.popup-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 12px;
}

.popup-address {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* Custom Marker */
.pin-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-head {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
    border: 2px solid white;
}

.pin-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: rotate(45deg);
}

.pin-shadow {
    width: 12px;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    margin-top: 2px;
    filter: blur(1px);
    transition: all 0.4s ease;
}

/* .pin-wrapper.active {
    transform: translateY(-8px) scale(1.2);
} */

.pin-wrapper.active .pin-head {
    background: #ef4444;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
}

/* .pin-wrapper.active .pin-shadow {
    width: 16px;
    transform: scale(1.5);
    background: rgba(0,0,0,0.1);
} */



/* ランドマーク画像吹き出しのスタイル */
.custom-landmark-marker {
    background: transparent !important;
    border: none !important;
}

.landmark-bubble {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    margin-right: 10px; /* 右側に余白を作る */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.landmark-image-container {
    width: 100%;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
}

.landmark-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landmark-footer {
    padding: 2px 0 1px;
}

.landmark-text {
    font-size: 10px;
    font-weight: 800;
    color: #1e293b;
}

.landmark-arrow {
    position: absolute;
    right: -8px; /* 右端に配置 */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white; /* 左側から色を出すことで右を向く */
}