/* companyページ専用のスタイル */
.main-content {
    background-color: #1b1b1b; 
    background-image: none; /* 画像を削除 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
} 

/* サイドバー関連の要素の色を明るい灰色に変更 */
.sidebar {
    background-color: #D7D5CA;
}

.map-placeholder {
    background-image: url('../images/map2.png');
}

.member-bar {
    background-color: #D7D5CA;
}

.member-bar:hover {
    background-color: #e0e0e0;
}

.middle-container {
    top: 32vh;
    height: 36vh;
}
.menu-text {
    color: var(--color-orange);
}

.middle-bottom-container {
    top: 68vh;
    height: 7vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 0;
}

.middle-bottom-left {
    color: #D7D5CA;
    font-size: 1.2rem;
    font-weight: bold;
    width: 50%;
    text-align: left;
    cursor: pointer;
}

.middle-bottom-right {
    color: #D7D5CA;
    font-size: 1.2rem;
    font-weight: bold;
    width: 50%;
    text-align: right;
    padding: 0 2rem;
}

.middle-bottom-right::after {
    content: "→";
    font-size: 1.4rem;
}

.bottom-container {
    top: 75vh;
    height: 25vh;
}

/* 会社情報のグリッドレイアウト */
.company-info-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 100%; /* 最大幅を100%に設定 */
    margin: 1rem;
    overflow-x: auto;
    padding: 0; /* 左右の余白を削除 */
    height: 100%; /* 高さを100%に設定 */
    scrollbar-width: none; /* Firefox用 */
    -ms-overflow-style: none; /* IE/Edge用 */
}

.company-info-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera用 */
}

/* 各情報アイテム */
.info-item {
    position: relative;
    min-width: 195px;
    width: 195px;
    height: 100%; /* 高さを100%に設定 */
    flex-shrink: 0;
    padding-left: 2rem;
}

/* 画像スタック */
.image-stack {
    position: relative;
    width: 92%;
    height: 92%;
}

/* スタック内の画像共通スタイル */
.info-image {
    position: absolute;
    bottom: 0;
    top: 7vh;
    left: 0;
    width: 92%;
    height: 92%;
    object-fit: contain;
    transform: scale(1.3);
    transform-origin: center;
    overflow-x: hidden;
}

/* スタック画像の重なり順と表示状態 */
.info-image.top {
    z-index: 3;
    transform: scale(1.3) rotate(0deg); /* 初期状態の回転角度を明示的に指定 */
}

.info-image.middle {
    z-index: 2;
    opacity: 1;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.info-image.bottom {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 回転アニメーションの定義 */
@keyframes acceleratedRotation {
    0% { transform: scale(1.3) rotate(0deg); }
    70% { transform: scale(1.3) rotate(20deg); } /* 最初の70%で20度までゆっくり回転 */
    75% { transform: scale(1.3) rotate(60deg); } /* 次の5%で20度から60度まで一気に加速 */
    95% { transform: scale(1.3) rotate(180deg); } /* 残りの20%で60度から190度まで最高速度 */
    100% { transform: scale(1.3) rotate(200deg); } /* 最後の5%で190度から200度まで少し遅く */
}

/* 中心から消えるアニメーション */
@keyframes fadeFromCenter {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    100% { 
        opacity: 0;
        transform: scale(0);
    }
}

/* ホバー時の画像切り替え */
.image-stack:hover .info-image.top {
    animation: acceleratedRotation 0.9s cubic-bezier(0.1, 0.1, 0.9, 0.9) forwards;
}

.image-stack:hover .info-image.middle {
    animation: fadeFromCenter 0.2s ease-out forwards;
    animation-delay: 0.7s;
}

.image-stack:hover .info-image.bottom {
    opacity: 1;
    transition-delay: 0.7s;
}

.hamburger-menu span {
    background-color: var(--color-orange);
}

/* 会社情報ポップアップ */
.company-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.company-popup.show {
    display: flex;
}

.company-popup-content {
    background-color: #1b1b1b;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.company-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
}

.company-popup-header h2 {
    color: var(--color-orange);
    margin: 0;
    font-size: 1.5rem;
}

/* 会社情報ポップアップの閉じるボタン */
.company-popup-header .close-button {
    background: none;
    border: none;
    color: #D7D5CA;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.company-popup-body {
    padding: 1.5rem;
}

.company-info-row {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.company-info-label {
    width: 120px;
    color: #D7D5CA;
    font-weight: bold;
}

.company-info-value {
    flex: 1;
    color: #D7D5CA;
}

