/* --- Business Section Adventure 2027 Styles --- */

.tab-btn {
    border: 1px solid rgba(226, 232, 240, 0.5); /* border-slate-200相当 */
}

.tab-btn.active {
    border-color: transparent;
}

/* アウトラインテキスト（再掲） */
.stroke-text {
    -webkit-text-stroke: 1.5px #1e40af;
    color: transparent;
}

/* マグネティックボタン（ホバー時の挙動） */
.magnetic-btn {
    display: inline-flex;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* モバイルでの横スクロールタブを考慮 */
@media (max-width: 1024px) {
    #business-tab-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}


/* コンテンツの基本状態 */
.business-content {
    display: block; /* JSでhiddenを制御するので基本はblock */
    opacity: 1;
    transition: none; /* JS(GSAP)で制御するためCSS遷移はオフ */
}

/* 非表示状態 */
.business-content.hidden {
    display: none !important;
}

/* タブボタンのホバー・アクティブ演出 */
.tab-btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-btn:hover:not(.active) {
    background-color: #f8fafc; /* slate-50 */
    transform: translateX(5px);
}

/* モーダル用カスタムスクロールバー */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9; /* つまみ色 背景色 */
}

/* Chrome, Safari, Edge用 */
.custom-scrollbar::-webkit-scrollbar {
    width: 12px; /* 4pxから12pxに変更して操作しやすくする */
    display: block; /* 強制表示 */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9; /* 背景を薄いグレーにして領域をわかりやすく */
    border-radius: 0 0 3rem 0; /* モーダルの形状に合わせる */
    margin-bottom: 2rem; /* 下の角丸と被らないように余白を空ける */
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #94a3b8; /* つまみを濃いグレーにして視認性アップ */
    border-radius: 10px;
    border: 3px solid #f1f5f9; /* つまみの周りに余白を作ってデザイン調整 */
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3b82f6; /* ホバー時は青く */
}

/* 見学MAPのポイント */
.factory-point {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.point-dot {
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border: 2px solid white;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px #3b82f6;
}

.point-ripple {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: point-pulse 2s infinite;
}

.point-text {
    margin-top: 8px;
    font-size: 9px;
    font-weight: 900;
    color: #60a5fa;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.factory-point:hover .point-dot {
    transform: scale(1.5);
    background-color: #f59e0b;
}

.factory-point:hover .point-text {
    opacity: 1;
    color: white;
    transform: translateY(2px);
}

@keyframes point-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* 見学MAPのポイント設定 (白・水色版) */
.factory-point {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.point-ui {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-ui .dot {
    width: 12px;
    height: 12px;
    background-color: #2563eb; /* blue-600 */
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.point-ui .ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    animation: point-ripple 2.5s infinite;
}

.point-label-box {
    margin-top: 10px;
    background: #ffffff;
    color: #1e40af; /* 濃い青 */
    font-size: 11px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #dbeafe; /* 水色の境界線 */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ホバー時の挙動 */
.factory-point:hover .point-label-box {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

.factory-point:hover .dot {
    background-color: #f59e0b; /* amber-500 */
    transform: scale(1.3);
}

@keyframes point-ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}


