/* --- Google Fonts 読み込み（CSSの先頭に配置してください） --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Noto+Sans+JP:wght@900&display=swap');

/* --- 学科紹介セクション：全体設計 --- */
.department-section {
    padding: 100px 0;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
}

/* --- タイトル：クールなタイポグラフィ & 合流アニメーション --- */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    overflow: hidden;
}

.section-header .num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 100px; /* 大きくしてインパクトを出す */
    font-weight: 900;
    line-height: 1;
    margin-bottom: -15px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2); /* 輪郭線のみでモダンに */
    
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header .title {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 44px;
    font-weight: 900;
    color: #222;
    letter-spacing: 0.2em; /* 字間を広げて高級感を演出 */
    line-height: 1;
    
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* アニメーション発火時 */
.section-header.is-visible .num,
.section-header.is-visible .title {
    opacity: 1;
    transform: translateX(0);
}

/* --- コンテンツレイアウト --- */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px; /* 画像とリストの距離 */
}

/* --- 左側：画像エリア（300px弱に制限） --- */
.map-area {
    flex: 0 0 280px;
}

.map-relative {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.main-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

/* 表示中の画像にわずかなズーム感を与えてリッチに */
.main-map.active {
    opacity: 1;
    z-index: 10;
    transform: scale(1.02);
}

/* --- 右側：カレッジリスト --- */
.college-nav {
    flex: 0 0 340px;
}

.college-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.college-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 各学科のテーマカラー（画像の色調に同期） */
.international { color: #00bcd4; } /* 水色 */
.it            { color: #ffc107; } /* 黄色 */
.logistics     { color: #ff5252; } /* 赤色 */

.college-item:hover {
    transform: translateX(12px);
}

.college-item .en {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.college-item .ja {
    font-size: 21px;
    font-weight: 900;
    color: #333; /* 文字自体は読みやすく */
}

.college-item .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.college-item:hover .arrow {
    transform: translateX(8px);
}

/* レスポンシブ対応：スマホでは縦並びに */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .map-area {
        flex: 0 0 auto;
        width: 80%;
    }
    .college-nav {
        flex: 0 0 auto;
        width: 100%;
    }
}