/* ============================================
   水文研究室 - Hydrology Lab Website
   Color Palette: Water Cycle Theme
   ============================================ */

/* --- 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    color: #263238;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- サイトヘッダー --- */
.site-header {
    background-color: #01579B;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
}

/* ロゴ */
.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo .univ-name {
    font-size: 10px;
    color: #B3E5FC;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.logo h1 small {
    font-size: 12px;
    font-weight: 400;
    color: #4FC3F7;
    margin-left: 8px;
}

/* メインナビゲーション */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 24px 16px;
    font-size: 14px;
    color: #E1F5FE;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #fff;
    background-color: rgba(255,255,255,0.12);
}

/* --- ドロップダウンメニュー --- */
.main-nav ul li {
    position: relative;
}

.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #01579B;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
}

.main-nav .dropdown li {
    width: 100%;
}

.main-nav .dropdown li a {
    padding: 12px 20px;
    display: block;
    font-size: 13px;
    color: #E1F5FE;
    text-align: left;
    line-height: 1.4;
    transition: background-color 0.2s;
}

.main-nav .dropdown li a:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* ホバーで表示 */
.main-nav ul li:hover .dropdown {
    display: block;
}

/* 言語切替 */
.lang-switch {
    flex-shrink: 0;
    font-size: 13px;
}

.lang-switch a {
    color: #B3E5FC;
    padding: 4px 6px;
}

.lang-switch a.active {
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid #4FC3F7;
}

.lang-switch a:hover {
    color: #4FC3F7;
}

.lang-switch .divider {
    color: #4FC3F7;
    margin: 0 4px;
}

/* ハンバーガーメニュー（モバイル用） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* --- スライダー --- */
.slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 45, 84, 0.65) 0%, rgba(2, 136, 209, 0.35) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-text {
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}

.slider-text h2 {
    font-size: 68px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.slider-text h2 .univ-prefix {
    display: block;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: #F1F8FB;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slider-text .en-sub {
    display: block;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E1F5FE;
    margin-top: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* スライダーのドットナビ */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.slider-dots button.active {
    background: #fff;
}

/* --- ヒーロー画像（サブページ用） --- */
.hero {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1,87,155,0.45) 0%, rgba(0,188,212,0.25) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 700;
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.02em;
}

/* ヒーロー背景画像（ページ別） */
.hero-research { background-image: url('Figs/Photos/IMG_2001.JPG'); }
.hero-research-ai { background-image: url('Figs/Photos/P9220485.JPG'); }
.hero-research-rainfall { background-image: url('Figs/Photos/IMG_6341.JPG'); }
.hero-research-warming { background-image: url('Figs/Photos/IMG_6341.JPG'); }
.hero-research-groundwater { background-image: url('Figs/Photos/IMG_6341.JPG'); }
.hero-members { background-image: url('Figs/Photos/IMG_0268.JPG'); }
.hero-pubs { background-image: url('Figs/Photos/IMG_4651.JPG'); }
.hero-theses { background-image: url('Figs/Photos/IMG_1577.jpg'); }
.hero-news { background-image: url('Figs/Photos/IMG_0200.JPEG'); }
.hero-access { background-image: url('Figs/Photos/IMG_4794.JPG'); }

/* --- セクション共通 --- */
section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 45px;
    border-left: 4px solid #0277BD;
    padding-left: 18px;
}

.section-header h3 {
    font-size: 28px;
    color: #01579B;
    font-weight: 700;
}

.section-header .subtitle {
    display: block;
    font-size: 13px;
    color: #90A4AE;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* --- ニュースリスト（トップページ） --- */
.news-list {
    list-style: none;
    border-top: 1px solid #E0E0E0;
}

.news-list li {
    border-bottom: 1px solid #E0E0E0;
}

.news-list li a {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    color: #37474F;
}

.news-list li a:hover {
    background-color: #F5F9FC;
    color: #0277BD;
}

.news-list .date {
    font-size: 14px;
    color: #90A4AE;
    width: 110px;
    flex-shrink: 0;
    font-family: 'Helvetica Neue', sans-serif;
}

.news-list .category {
    font-size: 11px;
    padding: 4px 10px;
    margin-right: 25px;
    border-radius: 2px;
    color: #fff;
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.tag-research { background-color: #0277BD; }
.tag-info { background-color: #00838F; }
.tag-event { background-color: #00695C; }
.tag-lecture { background-color: #0277BD; }
.tag-student { background-color: #5C6BC0; }

.news-list .title {
    font-size: 15px;
    line-height: 1.5;
}

.news-more {
    margin-top: 25px;
    text-align: right;
}

.news-more a {
    font-size: 14px;
    color: #0277BD;
    border-bottom: 1px solid transparent;
    font-weight: 500;
}

.news-more a:hover {
    border-bottom-color: #0277BD;
}

/* --- About セクション / コンテンツラッパー --- */
.content-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.content-wrapper.reverse {
    flex-direction: row-reverse;
}

.text-box {
    flex: 1;
}

.text-box p {
    margin-bottom: 30px;
    line-height: 2;
    color: #546E7A;
    font-size: 15px;
    text-align: justify;
}

.btn-arrow {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #0277BD;
    border-radius: 50px;
    font-size: 14px;
    color: #0277BD;
    transition: all 0.3s ease;
    background-color: #fff;
    font-weight: 500;
}

.btn-arrow:hover {
    background-color: #0277BD;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2,119,189,0.3);
}

.image-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 15px 15px 0px #E0F2F1;
}

/* --- 研究詳細ページ --- */
.intro-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 60px;
    color: #546E7A;
    text-align: justify;
}

.research-block {
    margin-bottom: 80px;
}

.block-title {
    font-size: 22px;
    color: #01579B;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E0F7FA;
    font-weight: 700;
}

.sub-topic {
    margin-top: 25px;
    margin-bottom: 10px;
}

.sub-topic h4 {
    font-size: 17px;
    color: #00838F;
    margin-bottom: 5px;
    display: inline-block;
    border-bottom: 1px dashed #00838F;
}

.sub-topic p {
    font-size: 15px;
    color: #546E7A;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.research-detail .content-wrapper {
    gap: 40px;
    align-items: flex-start;
}

.research-detail .text-box {
    flex: 1.2;
}

.research-detail .image-box {
    flex: 0.8;
    margin-top: 10px;
}

.research-detail .image-box img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.research-detail .image-box.image-box-offset {
    margin-top: 60px;
}

.image-box .img-center {
    margin-top: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

img {
     -webkit-user-drag: none;
     -webkit-touch-callout: none;
     user-select: none;
     -webkit-user-select: none;
}
.image-box .img-extra-margin {
    margin-top: 30px;
}

.image-caption {
    font-size: 12px;
    color: #90A4AE;
    margin-top: 5px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    font-size: 14px;
    color: #0277BD;
    font-weight: 500;
}

.back-link:hover {
    color: #01579B;
}

/* --- 研究概要ページ（カードグリッド） --- */
.research-intro {
    font-size: 16px;
    line-height: 2;
    color: #546E7A;
    margin-bottom: 60px;
    text-align: justify;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 35px;
}

.research-card {
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.research-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.research-card-body {
    padding: 25px 30px 30px;
}

.research-card-body h4 {
    font-size: 20px;
    color: #01579B;
    margin-bottom: 12px;
    font-weight: 700;
}

.research-card-body p {
    font-size: 14px;
    color: #546E7A;
    line-height: 1.8;
    margin-bottom: 20px;
}

.research-card-body .btn-arrow {
    font-size: 13px;
    padding: 10px 24px;
}

/* --- メンバーページ --- */
.member-section {
    margin-bottom: 60px;
}

.grade-title {
    font-size: 18px;
    color: #00838F;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 8px;
    margin-bottom: 20px;
    margin-top: 30px;
    font-weight: 700;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.member-card {
    background-color: #F5F9FC;
    border-left: 4px solid #0277BD;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-role {
    font-size: 12px;
    color: #0277BD;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    opacity: 0.8;
}

.member-name {
    font-size: 18px;
    font-weight: 500;
    color: #263238;
    letter-spacing: 0.05em;
}

.member-year-group {
    margin-bottom: 20px;
}

.member-year-label {
    font-size: 18px;
    color: #90A4AE;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* --- 業績ページ --- */
.pub-section {
    margin-bottom: 60px;
}

.pub-category-title {
    font-size: 20px;
    color: #01579B;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.pub-category-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #00BCD4;
}

.pub-list {
    list-style: none;
    padding-left: 0;
}

.pub-list li {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #546E7A;
    padding-left: 1.5em;
    position: relative;
    text-align: justify;
}

.pub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: #00BCD4;
    transform: rotate(45deg);
}

.doi-link {
    color: #0277BD;
    text-decoration: underline;
    font-size: 0.9em;
}

/* --- 学生研究テーマページ --- */
.year-section {
    margin-bottom: 60px;
}

.year-title {
    font-size: 24px;
    color: #01579B;
    border-bottom: 2px solid #E0F7FA;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.year-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: #0277BD;
    margin-right: 12px;
    border-radius: 2px;
}

.thesis-group {
    margin-bottom: 30px;
}

.course-title {
    font-size: 18px;
    color: #00838F;
    font-weight: 700;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #00BCD4;
}

.thesis-list {
    list-style: none;
    padding: 0;
}

.thesis-item {
    background-color: #F5F9FC;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.thesis-item:hover {
    transform: translateX(5px);
    background-color: #E1F5FE;
}

.thesis-item.has-graphic {
    cursor: zoom-in;
    position: relative;
}

.thesis-item.has-graphic:focus-visible {
    outline: 2px solid #0277BD;
    outline-offset: 2px;
}

.thesis-graphic-modal {
    position: fixed;
    inset: 0;
    background: rgba(1, 20, 35, 0.88);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.thesis-graphic-modal.is-visible {
    display: flex;
}

.thesis-graphic-modal-inner {
    width: min(96vw, 1400px);
    height: min(92vh, 900px);
    background: #0F1720;
    border-radius: 10px;
    border: 1px solid #1E3A52;
    overflow: hidden;
    position: relative;
}

.thesis-graphic-modal-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.thesis-graphic-watermark {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.48);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.thesis-graphic-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 18px;
    background: rgba(1, 87, 155, 0.85);
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.thesis-graphic-close:hover,
.thesis-graphic-close:focus-visible {
    background: #0277BD;
    outline: none;
}

body.thesis-graphic-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .thesis-graphic-modal {
        padding: 8px;
    }

    .thesis-graphic-modal-inner {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .thesis-graphic-close {
        top: 6px;
        right: 6px;
    }
}

.student-name {
    font-weight: 700;
    color: #263238;
    font-size: 16px;
}

.thesis-title {
    font-size: 15px;
    color: #546E7A;
    line-height: 1.6;
}

.thesis-item.has-graphic .thesis-title {
    color: #0277BD;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s;
}
.thesis-item.has-graphic:hover .thesis-title,
.thesis-item.has-graphic:focus-visible .thesis-title {
    color: #01579B;
}

/* --- ニュース詳細ページ --- */
.news-article {
    border-bottom: 1px solid #E0E0E0;
    padding: 40px 0;
}

.news-article:first-child {
    padding-top: 0;
}

.news-article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.news-article-date {
    font-size: 14px;
    color: #90A4AE;
    font-family: 'Helvetica Neue', sans-serif;
    flex-shrink: 0;
}

.news-article-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 2px;
    color: #fff;
    flex-shrink: 0;
}

.news-article-title {
    font-size: 20px;
    font-weight: 700;
    color: #01579B;
    margin-bottom: 12px;
}

.news-article-body {
    font-size: 15px;
    line-height: 1.9;
    color: #546E7A;
    text-align: justify;
}

.news-article-photo {
    margin-top: 20px;
    max-width: 500px;
}

.news-article-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

/* --- アクセスページ --- */
.access-info {
    margin-bottom: 50px;
}

.access-details {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #546E7A;
}

.access-note {
    font-size: 14px;
    color: #90A4AE;
}

.location-highlight {
    font-weight: 700;
    color: #01579B;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.map-container {
    margin: 30px 0 50px;
    border: 1px solid #ddd;
    padding: 10px;
    background: #F5F9FC;
    border-radius: 4px;
    text-align: center;
    transition: 0.3s;
}

.map-container:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.map-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.map-caption {
    margin-top: 10px;
    font-size: 12px;
    color: #90A4AE;
}

.btn-external {
    margin-top: 20px;
    display: inline-block;
}

.access-subtitle {
    font-size: 20px;
    color: #01579B;
    margin-bottom: 15px;
    border-left: 3px solid #0277BD;
    padding-left: 10px;
}

/* --- フッター --- */
.site-footer {
    background-color: #01579B;
    color: #B3E5FC;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    line-height: 1.8;
}

.site-footer a {
    color: #4FC3F7;
}

.site-footer a:hover {
    color: #fff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-nav li a {
    font-size: 12px;
    color: #B3E5FC;
}

.footer-nav li a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 11px;
    color: #81D4FA;
}

/* --- 研究紹介ナビゲーション（ページ内） --- */
.research-nav {
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 30px;
}

.research-nav-main {
    margin-bottom: 20px;
}

.research-nav-main .nav-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: #01579B;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(1, 87, 155, 0.2);
}

.research-nav-main .nav-link:hover {
    background-color: #0277BD;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 87, 155, 0.3);
}

.research-nav-sub {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.research-nav-sub .nav-link,
.research-nav-sub .nav-current {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
}

.research-nav-sub .nav-link {
    color: #0277BD;
    background-color: #F5F9FC;
    border: 1px solid #E1F5FE;
}

.research-nav-sub .nav-link:hover {
    background-color: #E1F5FE;
    color: #01579B;
}

.research-nav-sub .nav-current {
    background-color: #ECEFF1;
    color: #546E7A;
    font-weight: 700;
    border: 1px solid #CFD8DC;
}

/* --- インラインリンク --- */
.inline-link {
    color: #0277BD;
    text-decoration: underline;
    transition: color 0.2s;
}

.inline-link:hover {
    color: #01579B;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
    .header-inner {
        height: 60px;
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .main-nav ul li a {
        padding: 20px 10px;
        font-size: 13px;
    }

    .slider {
        height: 350px;
    }

    .slider-text h2 {
        font-size: 42px;
    }

    .slider-text h2 .univ-prefix {
        font-size: 18px;
    }

    .hero {
        height: 250px;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    section {
        padding: 60px 25px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .research-detail .content-wrapper,
    .research-detail .content-wrapper.reverse {
        flex-direction: column;
    }

    .research-detail .image-box {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 700px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #01579B;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li a {
        padding: 14px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* モバイルでのドロップダウン */
    .main-nav .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0;
        background-color: rgba(0,0,0,0.15);
        min-width: 100%;
    }

    .main-nav.open .dropdown {
        display: block;
    }

    .main-nav .dropdown li a {
        padding-left: 45px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .header-inner {
        height: 55px;
    }

    .logo h1 {
        font-size: 19px;
    }

    .logo h1 small {
        display: none;
    }

    .slider {
        height: 280px;
    }

    .slider-text h2 {
        font-size: 32px;
    }

    .slider-text h2 .univ-prefix {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .slider-text .en-sub {
        font-size: 12px;
        margin-top: 10px;
    }

    .hero {
        height: 200px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    section {
        padding: 50px 18px;
    }

    .section-header h3 {
        font-size: 22px;
    }

    .news-list li a {
        flex-wrap: wrap;
    }

    .news-list .title {
        width: 100%;
        margin-top: 8px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .research-cards {
        grid-template-columns: 1fr;
    }

    .year-title {
        font-size: 20px;
    }

    .course-title {
        font-size: 16px;
    }

    .news-article-title {
        font-size: 17px;
    }

    .news-article-photo {
        max-width: 100%;
    }
}