/* =======================================================
   基本設定とリセット
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-dark: #004033;
    --main: #00664f;
    --accent: #47c9af;
    --bg-light: #e6f7f3;
    --text-main: #333;
    --text-sub: #666;
}

body {
    font-family: 'Helvetica Neue', 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text-main);
    background: linear-gradient(to bottom, #f0f9f6 0%, #ffffff 100%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================================
   ヘッダー
========================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-dark);
    color: white;
    padding: 20px;
}

.site-name h1 {
    font-size: 30px;
}

.site-name p {
    font-size: 14px;
    margin-top: 4px;
}

/* =======================================================
   ナビゲーション
========================================================== */
.navbar-wrapper {
    background-color: var(--main);
    border-top: 4px solid var(--main-dark);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: #007f65;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* =======================================================
   画像スライダー
========================================================== */
.image-slider {
    width: 95%;
    max-width: 1200px;
    height: 400px;
    margin: 30px auto;
    overflow: hidden;
    border: 4px solid var(--main-dark);
    border-radius: 10px;
}

.slides {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide 16s infinite;
}

.slides img {
    width: 25%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0%,10%   { transform: translateX(0); }
    25%,35%  { transform: translateX(-25%); }
    50%,60%  { transform: translateX(-50%); }
    75%,85%  { transform: translateX(-75%); }
    100%     { transform: translateX(0); }
}

.image-slider {
  width: 100%;
  max-width: 1200px;   /* サイト全体と合わせる */
  margin: 0 auto;
  overflow: hidden;    /* はみ出し防止 */
}

.image-slider img {
  width: 100%;
  height: auto;
  display: block;      /* img下の謎の余白対策 */
}


/* =======================================================
   セクション共通
========================================================== */
.section-divider {
    height: 2px;
    background-color: #cceee3;
    margin: 60px 0;
}

.section h2,
.section h3 {
    font-size: 30px;
    color: var(--main-dark);
    margin-bottom: 20px;
    position: relative;
}

.section h2::before,
.section h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 4px;
    background-color: var(--accent);
}

/* =======================================================
   新着情報
========================================================== */
.news-section {
    margin: 40px 0;
}

.news-title {
    background-color: var(--main-dark);
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    border-radius: 6px 6px 0 0;
}

.news-wrapper {
    background: white;
    border: 2px solid var(--main-dark);
    border-top: none;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.news-item {
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item a {
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}

.news-item a:hover {
    color: var(--main);
    text-decoration: underline;
}

.news-tag {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

/* =======================================================
   リンク集
========================================================== */
.link-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-box a {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.link-box a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-box a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* =======================================================
   メンバー
========================================================== */
.member-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.member-card {
    width: calc(50% - 15px);
    background: linear-gradient(145deg, #ffffff, var(--bg-light));
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.member-card img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.name-wrapper {
    display: flex;
    flex-direction: column;
}

.position {
    font-size: 25px;
    font-weight: bold;
    color: var(--accent);
}

.name-jp {
    font-size: 20px;
    font-weight: bold;
}

.name-en {
    font-size: 20px;
    color: var(--text-sub);
}

.member-card .bio,
.member-card .qualification {
    margin-top: 15px;
}

.member-card strong {
    display: block;
    color: var(--main-dark);
    border-bottom: 1px dashed var(--accent);
    margin-bottom: 5px;
}

/* 学生見出し（博士課程・学部生） */
.section h3 {
  font-size: 20px;   /* ← 今より少し小さく */
  margin-top: 40px;
  margin-bottom: 16px;
}

/* =======================================================
   リスト調整
========================================================== */
.member-card ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
}

ul.member-list {
    list-style: none;
    padding-left: 0;
}

/* =======================================================
   研究内容
========================================================== */
.research-theme {
    margin-bottom: 40px;
    background: linear-gradient(145deg, #ffffff, var(--bg-light));
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.research-theme h4 {
    font-size: 20px;
    color: var(--main-dark);
    margin-bottom: 10px;
}

.research-theme p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-sub);
}

.detail-button {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--main-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.detail-button:hover {
    background-color: #007f65;
}

.coming-soon {
  font-style: italic;
  color: #888;
  background-color: #f5f5f5;
  padding: 12px 16px;
  border-left: 4px solid #ccc;
  border-radius: 6px;
}

/* =======================================================
   フッター
========================================================== */
footer {
    margin-top: 60px;
    background-color: var(--main-dark);
    color: white;
    text-align: center;
    padding: 20px;
}

/* =======================================================
   アニメーション
========================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================
   レスポンシブ
========================================================== */
@media (max-width: 768px) {

    .site-name h1 {
        font-size: 18px;
    }

    .navbar {
        flex-direction: column;
    }

    .image-slider {
        height: 200px;
    }

    .member-card {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .member-card img {
        width: 150px;
        height: 225px;
    }

    .name-wrapper {
        text-align: center;
    }
}
