@charset "UTF-8";

/* =========================================
   ベーススタイル
   ========================================= */
:root {
    --primary-color: #2c3e50;
    --accent-color: #105F75;
    --bg-color: #f9f9f9;
    --surface-color: #ffffff;
    --text-color: #333333;
    --font-base: "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* =========================================
   ヘッダー (Header)
   ========================================= */
header {
    position: relative;
    background: linear-gradient(150deg, #b3ddf0 0%, #cce9f8 45%, #e2f3fb 100%);
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 28px 30px 0;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 28px rgba(16, 95, 117, 0.13);
}

/* Decorative soft-light glow — upper-right corner */
header::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, transparent 65%);
    pointer-events: none;
}

header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

header p {
    font-size: 1rem;
    color: #666;
    margin-top: 0;
}

/* Nav: frosted-glass strip at the bottom of the header */
header nav {
    position: relative;
    z-index: 1;
    margin: 16px -30px 0;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.38);
    border-top: 1px solid rgba(16, 95, 117, 0.14);
    backdrop-filter: blur(6px);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================
   ★ アニメーション付きボタン (.btn) - 小さく修正
   ========================================= */
.btn {
    display: inline-block;
    
    /* サイズを小さく調整 */
    padding: 4px 16px;    /* 内側の余白を減らす */
    font-size: 0.8rem;    /* 文字サイズを小さく */
    
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none !important;
    
    /* アニメーション設定 */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn2 {
    display: inline-block;
    
    /* サイズを小さく調整 */
    padding: 4px 16px;    /* 内側の余白を減らす */
    font-size: 0.8rem;
    
    color: var(--primary-color);
    border: 0.5px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none !important;
    
    /* アニメーション設定 */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(16, 95, 117, 0.35);
}

.btn2:hover {
    background: rgba(16, 95, 117, 0.12);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 95, 117, 0.15);
}

/* =========================================
   メインコンテンツ (Main)
   ========================================= */
#contents {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* スマホ対応 */
@media (max-width: 600px) {
    header, #contents {
        padding-left: 15px;
        padding-right: 15px;
    }
    #contents {
        padding: 20px;
    }
    header nav {
        margin-left: -15px;
        margin-right: -15px;
    }
}

section { margin-bottom: 50px; }

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

section p { margin-bottom: 10px; }
section p a { font-weight: 500; }

footer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 40px;
    color: #888;
    font-size: 0.85rem;
}

/* ページトップボタン */
.pagetop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}

.pagetop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 95, 117, 0.3);
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hide the Font Awesome <i> placeholder */
.pagetop a i { display: none; }

/* CSS chevron arrow pointing up */
.pagetop a::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2.5px solid rgba(255, 255, 255, 0.92);
    border-top: 2.5px solid rgba(255, 255, 255, 0.92);
    transform: rotate(45deg) translate(2px, 2px);
}

.pagetop a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(16, 95, 117, 0.45);
    text-decoration: none !important;
}

#menubar { display: none; }

/* =========================================
   ヘッダー内プロフィール (Header Hero)
   ========================================= */
.header-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.header-profile-text {
    text-align: left;
}

header .header-profile-text h1 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 599px) {
    .header-hero {
        flex-direction: column;
        gap: 10px;
    }
    .header-profile-text,
    header .header-profile-text h1 {
        text-align: center;
    }
}

.header-name-en {
    font-size: 2rem !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.06em;
    margin: 0 !important;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

/* Animated accent underline — expands on hover */
.header-name-en::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(16, 95, 117, 0.15));
    border-radius: 1px;
    transition: width 0.35s ease;
}

.header-name-en:hover::after {
    width: 100%;
}

.header-name-ja {
    font-size: 1.2rem !important;
    color: var(--accent-color) !important;
    font-weight: 500;
    letter-spacing: 0.14em;
    margin: 0 !important;
    transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.header-name-ja:hover {
    letter-spacing: 0.2em;
    color: var(--primary-color) !important;
}

/* Affiliation — pill badge */
.header-affiliation {
    display: inline-block !important;
    margin-top: 5px !important;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(16, 95, 117, 0.25);
    border-radius: 30px;
    padding: 4px 18px;
    font-size: 0.88rem !important;
    color: #2c5060 !important;
}

/* Photo: circular with hover glow */
.header-photo {
    flex-shrink: 0;
    width: 160px;
}

.header-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 18px rgba(16, 95, 117, 0.22);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header-photo img:hover {
    transform: scale(1.07);
    box-shadow: 0 10px 32px rgba(16, 95, 117, 0.42);
    border-color: var(--accent-color);
}

@media (max-width: 599px) {
    .header-photo {
        width: 100px;
    }
}

/* =========================================
   研究課題リスト (Research list)
   ========================================= */
.research-list {
    padding-left: 1.4em;
    margin: 0;
}
.research-list li {
    margin-bottom: 6px;
    line-height: 1.8;
}

/* =========================================
   タイムライン (Timeline)
   ========================================= */
.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--surface-color);
}

.timeline-year {
    flex-shrink: 0;
    min-width: 150px;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    padding-top: 2px;
}

.timeline-desc {
    line-height: 1.7;
    color: var(--text-color);
}

@media (max-width: 599px) {
    .timeline-item {
        flex-direction: column;
        gap: 2px;
    }
    .timeline-year {
        min-width: auto;
    }
}

/* =========================================
   業績サブセクション (Achievement subsections)
   ========================================= */
.subsection {
    margin-bottom: 28px;
}

.subsection h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    padding: 4px 0 4px 12px;
    border-left: 3px solid var(--accent-color);
    letter-spacing: 0.03em;
}

.placeholder {
    color: #aaa;
    font-style: italic;
}

/* =========================================
   業績リスト (Achievement list)
   ========================================= */
.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.7;
}

.achievement-list li:last-child {
    border-bottom: none;
}

.ach-title {
    flex: 1;
}

.date {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: #999;
    white-space: nowrap;
}

.award {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    background-color: #fff8e1;
    color: #7a5c00;
    border: 1px solid #ffe082;
    padding: 1px 7px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 599px) {
    .achievement-list li {
        flex-direction: column;
        gap: 4px;
    }
}