/* --- 変数定義 (Accessページと統合) --- */
:root {
    --primary-dark: #1a1a1a;
    --text-medium: #333333;
    --text-light: #666666;
    --accent-blue: #004080;
    --border-color: #dddddd;
    --section-bg: #ffffff;
    --table-header-gray: #f7f7f7;
    
    /* プロフィールページ固有の変数 */
    --nav-width: 200px;
    --divider-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--primary-dark);
    background-color: var(--section-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- サイドナビゲーション --- */
.side-nav {
    position: fixed;
    top: 50%;
    left: 18%; 
    transform: translateY(-50%);
    z-index: 0; 
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    width: var(--nav-width);
    opacity: 1; 
}

.side-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: block;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav li {
    margin: 0;
}

.side-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
    display: inline-block;
    padding-left: 0; 
}

.side-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-dark);
    transition: width 0.3s;
}

.side-nav a:hover {
    color: var(--primary-dark);
}

.side-nav a:hover::after {
    width: 100%;
}

/* --- ヒーローセクション --- */
.hero-split-screen {
    display: flex;
    height: 100vh;
    min-height: 500px;
    width: 100%;
    position: relative;
    z-index: 10;
    background-color: #fff; 
}

.hero-text-area {
    flex: 0 0 40%;
    width: 40%;
    padding: 0 60px 0 100px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    box-sizing: border-box;
    background-color: #fff;
    z-index: 1;
}

.hero-image-area {
    flex: 0 0 60%;
    width: 60%;
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
}

.hero-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* --- タイポグラフィ (Hero) --- */
.top-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--primary-dark);
    padding-bottom: 4px;
    display: inline-block;
    margin-bottom: 30px;
}

.catchphrase {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: #222;
    text-align: left;
    margin: 0 0 50px 0;
}

.profile-block {
    margin-top: 0;
}

.affiliation-text {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 500;
}

.name-large {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    display: block;
}

.name-en {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-left: 10px;
    font-weight: 400;
}

.meta-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    line-height: 1.5;
}

/* --- コンテンツエリア --- */
.content-container {
    margin-left: 40%;
    width: 60%; 
    padding-right: 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 5; 
}

.content-section {
    width: 100%;
    max-width: 800px;
    padding: 100px 0 100px 0;
    /* Accessページの main-content の gap: 5rem を再現するため Flexbox化 */
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* --- セクションタイトル周り (Accessページのデザイン) --- */
section {
    /* アンカーリンクの位置調整 */
    scroll-margin-top: 100px;
}

.section-title-h2 {
    text-align: left;
    color: var(--primary-dark);

    font-size: 1.8rem;
    /* アンカーリンクのずれ補正 */
}

.small-note {
    font-size: 14px;
    color: var(--text-light);
    text-align: left;
    margin-top: 5px;
    margin-bottom: 0; 
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 10px 0 35px 0;
}

/* --- リスト・タグ等 --- */
.edu-txt{
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px; 
}
.bio-list,.edu-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px 0;
    /* gap:5remでセクション間隔を取るため、ここはリスト内の下マージンとして扱うか0にする */
    margin-bottom: 0; 
}
.bio-year {
    font-weight: 700;
    color: var(--primary-dark);
}
.bio-desc {
    color: var(--text-light);
    line-height: 1.6;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
}
.tags-list li {
    background-color: var(--table-header-gray);
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    border-radius: 2px;
    border: 1px solid var(--border-color);
}

.affili-list {
    /* マーカーを直接ハイフンに指定 */
    list-style-type: "- "; 
    
    /* 左側の余白を調整（必要に応じて） */
    padding-left: 0.5rem; 
    
    /* 変数の色を適用 */
    color: var(--primary-dark); 
}

.affili-list li {
    /* 行間やテキストの色を調整 */
    line-height: 1.6;
    color: #333; /* テキスト自体の色は別で指定する場合 */
	margin-bottom:15px
}

/* CVボタン */
.btn-cv {
    margin-top: 40px; 
    display: inline-block; 
    padding: 15px 40px; 
    background: var(--primary-dark);
    color: #fff; 
    text-decoration: none; 
    border-radius: 4px; 
    letter-spacing: 0.05em; 
    transition: opacity 0.3s; 
    font-size: 0.9rem;
}
.btn-cv:hover {
    opacity: 0.8;
}

/* --- 詳細プロフィールのスタイル --- */
.section-card {
    background: var(--section-bg);
    margin-bottom: 20px;
}

/* メインアコーディオン */
.accordion-header {
    cursor: pointer;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-dark);
    transition: color 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.accordion-header:hover {
    color: var(--accent-blue);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
}

.accordion-content.active {
    max-height: 3000px; /* ネストがあるため十分な高さを確保 */
    opacity: 1;
    padding-bottom: 30px;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.accordion-header.active .arrow {
    transform: rotate(180deg);
}

.accordion-inner-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}
.accordion-inner-content li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
    font-size: 0.95rem;
    color: var(--text-light);
    word-wrap: break-word; /* 長いタイトル対策 */
}
.accordion-inner-content li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

.sub-section-title {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
	text-decoration: underline;
}

.list-link {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* ネストされたアコーディオン (論文セクション用) */
.nested-accordion-item {
    margin: 15px 20px 0px auto;
}

.nested-accordion-header {
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: color 0.2s;
    border-bottom: 1px dashed var(--border-color);
}

.nested-accordion-header:hover {
    color: var(--primary-dark);
}

.nested-accordion-content {
    display: none;
    padding: 10px 0 10px 10px;
}

.nested-accordion-content.active {
    display: block;
}

.nested-accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nested-accordion-content li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-light);
}

.nested-accordion-content a {
    text-decoration: underline;
    color: inherit;
    transition: color 0.3s;

}

.nested-accordion-content a:hover {
    color: var(--accent-blue);
}

.accordion-inner-content a:hover {
    color: var(--accent-blue);
}

.link-deco a{
	text-decoration: underline;
}

.link-deco a:hover{
	color: var(--accent-blue);

}

.link-deco li{
    list-style:none;
}

.nested-arrow {
    font-weight: normal;
    font-size: 1rem;
    margin-left: 10px;
}

/* モバイル対応 */
@media (max-width: 900px) {
    .side-nav {
        display: none; 
    }

    .hero-split-screen {
        flex-direction: column-reverse;
        height: auto;
        min-height: auto;
    }
    
    .hero-image-area {
        height: 300px;
        flex: none;
        width: 100%;
    }

    .hero-text-area {
        flex: none;
        width: 100%;
        padding: 50px 30px 60px 30px;
        align-items: flex-start;
    }

    .content-container {
        margin-left: 0;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .content-section {
        margin:0 auto;
        max-width: 85%;
    }

    .catchphrase {
        font-size: 1.8rem;
    }
}
