@charset "utf-8";

/* ============================================================
   1. リセット & 共通（元のCSSの役割を継承）
   ============================================================ */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,form,input,p,blockquote,th,td {
    margin:0;
    padding:0;
}
ul,ol { list-style: none; }
img { border:0; vertical-align: top; }
a { outline: none; text-decoration:none; transition: 0.4s; }

.clearfix:after {
    visibility:hidden; height:0; display: block; font-size: 0; content: " "; clear: both;
}

/* ============================================================
   2. ベース設定
   ============================================================ */
body {
    font-size: 62.5%;
    /* Google Fontsが効かない場合でも美しく見えるようシステムフォントを厳選 */
    font-family: 'Inter', 'Shippori Mincho', "Hiragino Mincho ProN", serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #000; /* 全体背景を黒に（サイドバーと連動） */
    min-width: 1000px;
    -webkit-font-smoothing: antialiased;
}

#conteiner {
    position: relative;
    width: 100%;
}

/* ============================================================
   3. 背景スライドショー（新機能）
   ============================================================ */
.slideshow {
    position: fixed;
    top: 0;
    left: 220px; /* サイドバー幅 */
    width: calc(100% - 220px);
    height: 100%;
    z-index: 1; /* コンテナーより背面に置く */
    overflow: hidden;
    background-image: url('slide1.jpeg'); 
    background-size: cover;
    background-position: center;
}
.slideshow:after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.45); /* 透かし */
}

/* --- 背景スライドショー（4枚対応版） --- */

.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    /* 1枚目が即座に表示されるよう、animation-fill-modeを適用 */
    animation: slideAnime 40s infinite;
}

.slide:nth-child(1) { 
    background-image: url('slide1.jpeg'); 
    animation-delay: 0s; 
}
.slide:nth-child(2) { 
    background-image: url('slide2.png'); 
    animation-delay: 10s; 
}
.slide:nth-child(3) { 
    background-image: url('slide3.jpg'); 
    animation-delay: 20s; 
}
.slide:nth-child(4) { 
    background-image: url('slide4.jpg'); 
    animation-delay: 30s; 
} 

@keyframes slideAnime {
    /* 0%の時点でopacityを1にすることで、1枚目が真っ黒になるのを防ぎます */
    0% { opacity: 0; transform: scale(1.0); }
    2.5% { opacity: 1; }   /* 1秒かけてフェードイン */
    25% { opacity: 1; }    /* 10秒まで表示維持 */
    27.5% { opacity: 0; transform: scale(1.1); } /* 1秒かけてフェードアウト */
    100% { opacity: 0; }
}

/* ============================================================
   4. サイドバー（元のheaderをブラッシュアップ）
   ============================================================ */
#header {
    position: fixed;
    left: 0; top: 0; height: 100%; width: 220px;
    background-color: #000;
    box-shadow: 1px 0 0 rgba(255,255,255,0.1);
    z-index: 20;
}

#header-top { padding: 50px 0 30px; text-align: center; }
#header-top img { filter: brightness(0) invert(1); width: 130px; }

/* 互換性を持たせたNav */
#gnav-wrap { padding: 30px 0; }
#nav li a {
    font-size: 1.2rem;
    display: block;
    color: #999;
    padding: 15px 30px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
#nav li a:hover {
    background: #111;
    color: #fff;
    padding-left: 35px;
}

/* 元の矢印装飾をより細くモダンに */
#gnav-wrap li a:after {
    content: "";
    border-right: 1px solid #666;
    border-top: 1px solid #666;
    height: 5px; width: 5px;
    right: 20px; position: absolute;
    transform: rotate(45deg);
    top: 20px;
}

/* 住所・リンクエリア */
#address, #link {
    padding: 30px 20px;
    border-top: 1px solid #222;
    color: #dcd9d9;
}
#address p { font-size: 1.1rem; margin-bottom: 15px; }

.button-contact {
    display: block;
    height: 40px; width: 100%;
    background: #fff; color: #000 !important;
    text-align: center; line-height: 40px;
    font-weight: bold; font-size: 1.1rem;
}

/* ============================================================
   5. メインコンテンツ（浮遊パネル）
   ============================================================ */
#main-wrap {
    margin-left: 220px;
    padding: 80px 0;
    min-height: 100vh;
    background: transparent !important;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contents {
    width: 65%;
    max-width: 960px;
    padding: 100px 80px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 20vh;
}

/* 氏名・プロフ上部 */
.profile {
    display: flex;
    align-items: flex-start;
    margin-bottom: 80px;
    border-bottom: 1px solid #111;
    padding-bottom: 50px;
}

.profile-picture img {
    width: 220px; height: auto;
    filter: grayscale(1);
    transition: 0.8s;
}
.profile-picture img:hover { filter: grayscale(0); }

.profile-name { margin-left: 60px; flex: 1; }

/* 名前エリアの再構築 */
h2.name {
    margin-bottom: 40px;
    line-height: 1.2;
    color: #000;
}

/* 日本語名：サイズを劇的に落とし、"誠実な研究者"の佇まいに */
h2.name span.jp {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.8rem; /* 大きすぎず、小さすぎない */
    font-weight: 600;
    letter-spacing: 0.1em;
    display: block; /* 改行させる */
    margin-bottom: 5px;
}

/* 英字名：こちらをデザインの主役に。細く、広く、美しく */
h2.name span.en-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 200; /* 極細 */
    letter-spacing: 0.5em; /* 圧倒的な字間 */
    text-transform: uppercase;
    color: #707070; /* 少し色を抜いて上品に */
    display: block;
    border-top: 1px solid #eee; /* 上に細い線を入れてセパレート */
    padding-top: 10px;
    margin-top: 10px;
    width: fit-content;
}

/* --- 修正箇所：profile-name dl --- */
.profile-name dl { 
    font-size: 1.3rem; 
    display: grid; 
    /* 100px固定をやめ、中身に合わせる(auto)設定に変更 */
    grid-template-columns: auto 1fr; 
    gap: 15px 30px; /* 項目間の余白を少し広げるとより綺麗です */
}

.profile-name dt { 
    font-weight: 700; 
    color: #0095bd; 
    letter-spacing: 0.1em;
    white-space: nowrap; /* 絶対に折り返さないように指定 */
}
.profile-name dd { font-family: 'Shippori Mincho', serif; color: #222; }

/* 記事セクション */
h3.profile-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-top: 60px;
    margin-bottom: 30px;
}
.en { color: #9e9e9e; font-weight: 400; font-size: 0.9rem; letter-spacing: 0.1em; }

p.profile-article {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.8rem;
    line-height: 2.2;
    color: #222;
    word-break: keep-all;
}

/* 一覧へ戻るボタン */
.to-member a {
    display: block;
    width: 260px;
    margin: 100px auto 0;
    padding: 20px;
    border: 1px solid #000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    letter-spacing: 0.3em;
}
.to-member a:hover { background: #000; color: #fff; letter-spacing: 0.4em; }

/* ============================================================
   6. フッター・権利表記（最前面・互換性重視）
   ============================================================ */
#footer-wrap {
    clear: both;            /* フロート（clearfix）の影響を確実にリセット */
    position: relative;     /* 配置を確定させる */
    z-index: 1000;          /* 背景スライド(1)やサイドバー(20)を圧倒する数値 */
    
    margin-left: 220px;     /* サイドバーの幅に合わせる（180pxなら180pxに変更） */
    background: #000;       /* 完全な黒 */
    padding: 80px 20px;     /* 贅沢な余白 */
    border-top: 1px solid #222;
    text-align: center;
}

#copyright {
    font-family: 'Inter', sans-serif;
    font-size: 1.0rem;
    color: #868585;
    letter-spacing: 0.3em;  /* 字間を広げて洗練させる */
    text-transform: uppercase;
    line-height: 1.8;
}

/* ラインアクセント */
#copyright:before {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: #333;
    margin: 0 auto 30px;
}

/* ============================================================
   7. 追加演出（アニメーション & プログレスバー）
   ============================================================ */

/* コンテンツ全体に浮き上がるアニメーションを適用 */
#contents {
    animation: fadeUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スクロール状況を示すプログレスバー */
#scroll-line {
    position: fixed;
    top: 0;
    left: 220px; /* サイドバーの幅に合わせて調整 */
    width: 0%;   /* JavaScriptで制御 */
    height: 3px;
    background: #0095bd; /* アクセントカラー（青） */
    z-index: 1001;
}