/* YNUテーマに沿ったスタイル設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 1000px; /* 少し広めに設定 */
    margin: 0 auto;
    padding: 0;
    background-color: #f5f7f9;
}

/* ヘッダー部分 */
header {
    background-color: #003d7c; /* YNUブルー */
    color: white;
    padding: 40px 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 1px;
}

/* ナビゲーション */
nav {
    background-color: #002b56; /* さらに濃い青 */
    padding: 10px 0;
    text-align: center;
    position: sticky; /* 画面上に固定 */
    top: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 0.95em;
}

nav a:hover {
    color: #0096db; /* ホバー時は明るい青 */
}

/* コンテンツエリア */
main {
    background-color: white;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

h2 {
    color: #003d7c;
    border-left: 6px solid #2e7d32; /* 横棒の代わりに左側に植物の緑を入れる */
    padding-left: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
}

/* 画像の装飾 */
/* スライド全体の箱 */
.mySlides {
    display: none; /* 最初は隠しておく */
    position: relative;
}

/* 画像の設定（前回の指定をmySlides内の画像に適用） */
.mySlides img {
    width: 100%;
    height: auto;      /* 60vhからautoに変更：これで縦横比が維持されます */
    border-radius: 20px;
}

/* キャプションの設定（位置を微調整） */
.photo-caption {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    margin-top: 0px; /* 画像のすぐ下に来るように調整 */
    padding: 8px 10px; /* 上下に少し余白を持たせる */
    margin: 0;
        
    /* キャプションの高さを確保して、下のNEWSが動かないようにする */
    min-height: 1.2em; 
    
    /* 必要に応じて、画像と同じ幅に制限する */
    width: 100%;
    box-sizing: border-box;
}

/* フェードアニメーション */
.fade {
    animation-name: fade;
    animation-duration: 2.0s;
}

@keyframes fade {
    from { opacity: .4 } 
    to { opacity: 1 }
}

.map-container {
    margin-top: 20px;
    overflow: hidden;
    border-radius: 15px; /* 地図の角を丸くする */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 軽い影をつける */
}

/* リンク集のセクション */
.link-section {
    margin-bottom: 40px;
    text-align: left;
}

.link-section h3 {
    font-size: 1.2rem;
    color: #003d7c;
    border-bottom: 1px solid #e0e6e0;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

/* 箇条書きの点の代わりに葉っぱのようなアクセント */
.link-list li::before {
    content: "●";
    color: #2e7d32;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.link-list a {
    color: #003d7c;
    text-decoration: none;
    font-weight: 500;
}

.link-list a:hover {
    text-decoration: underline;
    color: #2e7d32;
}

.link-list span {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

/* リサーチマップ用ボタン（大） */
.rm-button {
    display: inline-block;
    margin: 30px 0;
    padding: 15px 40px;
    background-color: #fff;
    color: #003d7c; /* YNUブルー */
    border: 2px solid #003d7c;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.rm-button:hover {
    background-color: #003d7c;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,61,124,0.2);
}

/* メンバーページ用の控えめなリンク */
.rm-link {
    color: #2e7d32; /* 植物の緑 */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.rm-link:hover {
    text-decoration: underline;
}

footer {
    margin-top: 80px;
    background-color: #f8f9fa; /* 明るいグレーで統一 */
    border-top: 1px solid #eee;
    padding: 60px 0 30px; /* 上はゆったり、下はスッキリ */
    color: #444;
}
.footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* 研究室名などのメイン情報 */
footer {
    margin-top: 80px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 60px 0 30px;
    color: #444;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.lab-recruit {
    font-weight: 600;
    font-size: 1.1rem;
    color: #003d7c;
    margin-bottom: 20px;
    /* 募集を目立たせるアクセント */
    border-bottom: 2px solid #003d7c;
    display: inline-block;
    padding-bottom: 5px;
}

.lab-contact {
    margin-top: 20px;
    font-size: 0.95rem;
}

.email-note {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #888;
}

.footer-copy {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    text-align: center; /* ここで中央揃え */
}

.footer-copy p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .footer-container {
        padding: 0 15px;
    }
    .lab-recruit {
        font-size: 1rem;
        width: 100%; /* スマホでは横いっぱいに */
    }
    .lab-address {
        font-size: 0.7rem; /* 文字を少し小さくして収まりを良くする */
    }
}