/* ==========================================
   全体ベース設定
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background-color: #04060b;
    background-image:
        radial-gradient(at 10% 10%, rgba(0, 255, 204, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(0, 179, 255, 0.08) 0px, transparent 50%);
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
}



img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #00ffcc;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00b3ff;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.35);
}

/* ==========================================
   ヘッダー
========================================== */
header {
    background: linear-gradient(180deg, #0b1120 0%, rgba(4, 6, 11, 0) 100%);
    padding: 56px 20px 64px;
    text-align: center;
    position: relative;
}




/* ===== タイトルのグラデーション ===== */
header h1 {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 4px;

    background: linear-gradient(to right, #fff 20%, #00ffcc 50%, #fff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-size: 200% auto;
    animation: shine 4s linear infinite;

    text-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
    margin-bottom: 15px;
}

/* ===== アニメーション ===== */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}


/* ===== サブタイトル＋ロゴ横並び ===== */
.header-sub-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-top: 10px;
}

/* テキスト部分 */
.header-text {
    text-align: center;
}

/* ロゴ */
.header-logo {
    width: 80px;   /* ←サイズ調整ポイント */
    height: auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .header-sub-row {
        flex-direction: column;
        gap: 10px;
    }

    .header-logo {
        width: 60px;
    }
}









h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
    margin-bottom: 10px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.sub-title {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: #94a3b8;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.last-update {
    font-size: 0.88rem;
    color: #00ffcc;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ==========================================
   ナビゲーション ＆ ドロップダウン
========================================== */

/* ==========================================
   ナビゲーション ＆ ドロップダウン
========================================== */
nav {
    max-width: 1100px;
    margin: -20px auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1001;
}

#site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding-top: 12px;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    padding: 12px;

    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 50px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 255, 204, 0.08);
}

.nav-item {
    flex: 0 0 auto;
    display: block;
    padding: 7px 12px;
    border-radius: 30px;

    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;

    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(0, 255, 204, 0.1);
    color: #ffffff;
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    text-shadow: none;
}

.dropdown {
    position: relative;
    flex: 0 0 auto;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 240px;
    width: max-content;
    padding-top: 10px;
    z-index: 200;

    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.dropdown-menu-content {
    min-width: 180px;
    max-width: 240px;
    white-space: nowrap;

    background: rgba(11, 17, 32, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: #ffffff;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-shadow: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 204, 0.18);
    color: #00ffcc;
    text-shadow: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInTop 0.25s ease;
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translate(-50%, 8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}



/* ==========================================
   コンテンツ共通
========================================== */
.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
}

/* ==========================================
   パネル（index2風）
========================================== */
/* ==========================================
   パネル見た目を index2 風に変更
========================================== */
.panel {
    background: rgba(15, 23, 42, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-width: 0;
    box-shadow: none;
}

/* 上端のライン */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    opacity: 0.5;
}

.panel:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.08);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(0, 255, 204, 0.12);
}

/* タイトルを中央・ライン系に */
.panel-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: none;
    padding-left: 0;
    display: block;
}

/* 以前入れた before 装飾があれば消す */
.panel-title::before {
    content: none;
}

/* subtitle がある場合だけ効く */
.panel-title span {
    background: linear-gradient(180deg, #fff 0%, #00ffcc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 0.8rem;
    color: #00ffcc;
    letter-spacing: 4px;
    margin-top: 5px;
}

/* 左のアクセントバーを削除してラインに変更 */
.panel-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(#00ffcc, #00b3ff);
    border-radius: 2px;
}

/* サブタイトル（index2風） */
.panel-title span {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    margin-left: 6px;
}

.panel.intro-box {
    background: rgba(15, 23, 42, 0.30) !important;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ==========================================
   Research Topics
========================================== */
.research-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    list-style: none;
}

.research-links li {
    display: contents;
}

.research-links a {
    background: rgba(15, 23, 42, 0.45);
    padding: 12px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
}

.research-links a:hover {
    background: rgba(0, 255, 204, 0.05);
    border-color: rgba(0, 255, 204, 0.35);
}

.publication-page h2,
.publication-page h3 {
    text-align: left;
}

.language-switch {
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.language-switch a {
    text-decoration: none;
}

.language-switch span {
    margin: 0 8px;
    color: #94a3b8;
}

.research-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 20px 0;
    border-radius: 10px;
}

.publication-page p {
    line-height: 1.9;
    margin-bottom: 1.2em;
}

/* ==========================================
   What's New !
========================================== */
.news-list {
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: linear-gradient(#00ffcc, #00b3ff);
    border-radius: 4px;
}

.news-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item>div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.84rem;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 204, 0.3);
    white-space: nowrap;
    min-height: 28px;
}

.highlight-red {
    color: #ff5a5a;
    font-weight: bold;
}

.news-item a {
    color: #00ffcc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-item a:hover {
    color: #00b3ff;
}

/* ==========================================
   Laboratory 紹介
========================================== */
.intro-box {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.75));
}

.intro-box p {
    margin-bottom: 14px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.btn-sns {
    display: inline-block;
    margin-top: 10px;
    background: #00ffcc;
    color: #0b0f19;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.35);
    text-shadow: none;
}

.btn-sns:hover {
    background: #00b3ff;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 179, 255, 0.5);
    transform: scale(1.03);
}

footer {
    background: #070a12;
    text-align: center;
    padding: 28px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.85rem;
}

/* ==========================================
   Page top
========================================== */
.back-to-top {
    font-size: 0.8rem;
    color: #00ffcc;
    text-decoration: none;
    margin-left: auto;
}

.back-to-top:hover {
    text-decoration: underline;
}

.pagetop {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagetop a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.28);
    color: #00ffcc;
    text-decoration: none;
}

.pagetop a:hover {
    background: rgba(0, 255, 204, 0.2);
    text-decoration: none;
}

/* ==========================================
   学生の受賞ページ
========================================== */
.award-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.award-item {
    background: #f2fbfd;
    border-left: 5px solid #1f4e79;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.award-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    background: #ffe863;
}

.award-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.award-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1f4e79;
    line-height: 1.6;
    margin-bottom: 6px;
}

.award-work {
    font-size: 0.96rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 6px;
}

.award-recipient {
    font-size: 0.96rem;
    color: #111;
    font-weight: 500;
}

/* ==========================================
   Publication page
========================================== */
.publication-page {
    padding: 42px 44px 28px;
    text-align: left;
}

.publication-page li {
    overflow-wrap: break-word;
    word-break: break-word;
}

.publication-lead {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.publication-toc {
    background: #f7f9fc;
    border-left: 4px solid #4a6fa5;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.publication-toc .toc-title {
    font-weight: 700;
    color: #2f4f75;
    margin-bottom: 8px;
}

.publication-toc ul {
    margin: 0;
    padding-left: 1.2em;
}

.publication-toc li {
    margin-bottom: 6px;
}

.publication-toc a {
    color: #2f4f75;
    text-decoration: none;
}

.publication-toc a:hover {
    text-decoration: underline;
}

.publication-section {
    margin-top: 32px;
}

.publication-section h2 {
    font-size: 1.35rem;
    color: #5188cc;
    border-bottom: 2px solid #d7e1ef;
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.publication-subsection {
    margin-top: 24px;
}

.publication-subsection h3 {
    font-size: 1.08rem;
    color: #3f5f86;
    background: #f7f9fc;
    border-left: 4px solid #8aa4c6;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.publication-page h4 {
    display: block;
    margin: 24px 0 12px;
    padding: 8px 14px;

    background: linear-gradient(90deg, rgba(0,255,204,0.2), rgba(0,255,204,0));
    border-left: 4px solid #00ffcc;

    color: #00ffcc;
    font-weight: 800;
    font-size: 1.05rem;
}

.publication-list {
    padding-left: 1.6em;
    margin: 0;
}

.publication-list li {
    margin-bottom: 12px;
    line-height: 1.85;
    color: #1f2937;
}

.publication-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.publication-note strong {
    display: inline-block;
    color: #2f4f75;
    margin-bottom: 8px;
}

.publication-list-compact {
    margin-top: 4px;
}

.presentation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /* ←追加 */
    gap: 28px;
    margin-top: 24px;
}

.presentation-item {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* ←追加 */
}

.presentation-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto 14px auto;
    border-radius: 8px;
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);

    justify-content: center;
    align-items: center;
}

.image-modal img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 10px;
}

.image-modal.active {
    display: flex;
}

.presentation-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.presentation-item figcaption {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Member page
========================================== */
.member-page {
    padding: 42px 44px 28px;
    text-align: left;
}

.member-lead {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.member-section {
    margin-top: 32px;
}

.member-section h2 {
    font-size: 1.35rem;
    color: #5188cc;
    border-bottom: 2px solid #d7e1ef;
    padding-bottom: 8px;
    margin-bottom: 20px;
        display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.member-group {
    margin-top: 22px;
}

.member-group h3 {
    font-size: 1.05rem;
    color: #3f5f86;
    background: #f7f9fc;
    border-left: 4px solid #8aa4c6;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.member-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.member-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.member-list li span {
    color: #94a3b8;
}

.member-list li em {
    font-style: normal;
    color: #00ffcc;
    font-size: 0.92rem;
    margin-left: 6px;
}

.member-list a {
    color: #e2e8f0;
    text-decoration: none;
}

.member-list a:hover {
    color: #00ffcc;
}

.empty-list li {
    color: #94a3b8;
}

/* ==========================================
   lecture
========================================== */
.lecture-page h4 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: #1f3c88;
    border-left: 4px solid #1f3c88;
    padding-left: 0.75rem;
}

.lecture-page p {
    text-align: left;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.lecture-lead {
    margin-bottom: 2rem;
    color: #ffffff;
}

.lecture-group {
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    color: #111111;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 10px;
}

.lecture-note {
    color: #111111;
    font-size: 0.95rem;
}

/* ==========================================
   employment
========================================== */
.employment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 1.5rem;
}

.employment-card {
    color: #111;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 10px;
    padding: 14px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;

    transition: all 0.2s ease;
    cursor: default;
}

.employment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: #ffe863;
    background: #ffe863;
}

/* ==========================================
   album
========================================== */
.album-section {
    margin-top: 1.8rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 0.8rem;
}

.album-card {
    display: block;
    padding: 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);

    text-align: center;
    text-decoration: none;
    color: #e2e8f0;

    transition: all 0.2s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.album-page {
    padding: 42px 44px 28px;
    text-align: left;
}

.album-lead {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.album-section h2 {
    font-size: 1.35rem;
    color: #5188cc;
    border-bottom: 2px solid #d7e1ef;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

.album-card {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.album-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
}

.album-card-date {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.album-parent {
    margin-top: 16px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.album-parent-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.album-parent-date {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.album-subgrid {
    margin-top: 0;
}

/* panelを基準にする */
.album-detail-page {
    position: relative;
}

/* 右上ボタン */
.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    font-size: 14px;
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.28);
    color: #00ffcc;
    text-decoration: none;
    border-radius: 6px;
}

.back-button:hover {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    text-decoration: none;
}

/* ==========================================
   album detail
========================================== */
.album-detail-page {
    padding: 42px 44px 28px;
    text-align: left;
}

.album-breadcrumb {
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.album-breadcrumb a {
    color: #00ffcc;
}

.album-detail-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.album-detail-date {
    color: #94a3b8;
    font-size: 0.98rem;
    margin-bottom: 24px;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.album-photo-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.album-photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ==========================================
   event
========================================== */

.event-table-wrap {
    overflow-x: auto;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 15px;
}

.event-table th {
    width: 80px;
    padding: 12px;
    text-align: center;

    background: rgba(0, 255, 204, 0.12);
    color: #00ffcc;

    border: 1px solid rgba(0, 255, 204, 0.2);
    font-weight: 600;
}

.event-table td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
}

.event-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   link
========================================== */
.link-page {
  text-align: left;
}

.link-list {
  padding-left: 20px; /* リストのインデント復活 */
}

.link-section h2 {
  text-align: left;
}

.link-list li {
  margin-bottom: 6px;
}

/* ==========================================
   contact
========================================== */

.contact-page {
  text-align: left;
}

.contact-block {
  margin-top: 20px;
}

.contact-block h4 {
  margin-top: 10px;
  color: #00ffcc;
}

.contact-block p {
  margin: 4px 0 10px;
  color: #ddd;
}

.teacher-tag {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 6px;

    background: rgba(0, 255, 204, 0.15);
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 999px;

    color: #00ffcc;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.contact-block p:first-of-type {
    font-weight: 700;
    font-size: 1.05rem;
}


/* ==========================================
   PC用
========================================== */
@media screen and (min-width: 768px) {
    .research-links {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   タブレット対応
========================================== */
@media screen and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .intro-box {
        grid-column: auto;
    }

    .panel {
        padding: 24px 22px;
    }
}

/* ==========================================
   スマホ対応
========================================== */
@media screen and (max-width: 768px) {
    header {
        padding: 42px 16px 52px;
    }

    nav {
        margin: -16px auto 28px auto;
        padding: 0 12px;
        top: 10px;
    }

.nav-container {
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
}

.nav-item {
    font-size: 0.82rem;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 20px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 140px;
    max-width: 200px;
    padding-top: 0;
}

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        user-select: none;
    }

    .container {
        padding: 0 12px 40px;
        gap: 18px;
    }

	.panel {
	    padding: 25px;
	    border-radius: 16px;
	}

	.panel-title {
	    font-size: 1.4rem;
	    margin-bottom: 30px;
	}

    .news-list {
        max-height: 50vh;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 0.93rem;
        line-height: 1.65;
    }

    .date {
        justify-self: start;
    }

    .research-links {
        grid-template-columns: 1fr;
    }

    .research-links a {
        min-height: 46px;
        font-size: 0.92rem;
    }

    .intro-box p {
        font-size: 0.97rem;
    }

    .btn-sns {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .award-item {
        padding: 12px 14px;
    }

    .award-title {
        font-size: 1rem;
    }

    .award-work,
    .award-recipient {
        font-size: 0.93rem;
    }

    .publication-page,
    .member-page {
        padding: 28px 18px 22px;
    }

    .publication-section h2,
    .member-section h2 {
        font-size: 1.18rem;
    }

    .publication-subsection h3,
    .member-group h3 {
        font-size: 0.98rem;
    }

    .publication-list li,
    .member-list li {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .album-page {
        padding: 28px 18px 22px;
    }

    .album-section h2 {
        font-size: 1.18rem;
    }

    .album-card {
        min-height: 78px;
        padding: 12px;
    }

    .album-card-title {
        font-size: 0.96rem;
    }

    .album-card-date {
        font-size: 0.86rem;
    }

    .album-parent {
        padding: 14px;
    }

    .album-detail-page {
        padding: 28px 18px 22px;
    }

    .album-detail-title {
        font-size: 1.4rem;
    }

    .album-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .album-photo-item img {
        height: 150px;
    }

    .event-table {
        font-size: 13px;
    }

    .event-table th,
    .event-table td {
        padding: 8px;
    }
}

/* ==========================================
   極小画面対応
========================================== */
@media screen and (max-width: 480px) {
    h1 {
        letter-spacing: 1px;
    }

    .sub-title {
        font-size: 0.9rem;
    }

    .last-update {
        font-size: 0.8rem;
    }

    .nav-container {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 16px 14px;
    }

    .news-item {
        font-size: 0.91rem;
    }

    .album-photo-grid {
        grid-template-columns: 1fr;
    }

    .album-photo-item img {
        height: auto;
        aspect-ratio: 4 / 3;
    }





}