:root {
    --primary-color: #0b132b; /* Deep space blue */
    --secondary-color: #1c2541;
    --accent-color: #ff9f1c; /* Plasma orange */
    --accent-hover: #ffbf69;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    padding: 1.2rem 0;
}

.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(11, 19, 43, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    position: relative;
    flex-wrap: nowrap;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    display: block;
    font-size: clamp(1.15rem, 0.65rem + 1vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    color: #ffffff;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, #ffe5b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 0.5rem + 1vw, 2.5rem);
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 0.5rem + 1vw, 1.8rem);
}

.nav-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: clamp(0.78rem, 0.6rem + 0.4vw, 0.95rem);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    padding: 0.35rem 0 0.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Language Toggle */
.btn-lang {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: clamp(0.75rem, 0.65rem + 0.2vw, 0.85rem);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
}

.btn-lang:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 159, 28, 0.4);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(255,159,28,0.18);
    border-color: var(--accent-color);
}

.menu-toggle:focus-visible {
    outline: 3px solid rgba(255,159,28,0.45);
    outline-offset: 3px;
}

.menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.header.menu-open .menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.menu-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.header.menu-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* Dynamic background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(28, 37, 65, 0.8) 0%, var(--primary-color) 60%);
    animation: rotate 60s linear infinite;
    z-index: 1;
}

.hero-corona {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(90deg, rgba(11, 19, 43, 0.84) 0%, rgba(11, 19, 43, 0.46) 48%, rgba(11, 19, 43, 0.28) 100%),
        url('../photo/wide_corona.png');
    background-position: center, 75% center;
    background-size: cover, min(78vw, 900px) auto;
    background-repeat: no-repeat;
    opacity: 0.8;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 159, 28, 0.15) 0%, transparent 40%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #ffbf69 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main Section */
.main-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
}

/* Decorative background elements */
.main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%230b132b" fill-opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), #ffbf69);
    margin-top: 0.8rem;
    border-radius: 10px;
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card:hover::before {
    transform: scaleX(1);
}

.general-desc .card p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.general-desc .card p:last-child {
    margin-bottom: 0;
}

/* News Widget */
.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.5);
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.news-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-list li {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-list li:hover {
    transform: translateX(5px);
}

.news-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.news-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-tag.info { background: rgba(2, 132, 199, 0.1); color: #0284c7; }
.news-tag.event { background: rgba(234, 179, 8, 0.15); color: #a16207; }
.news-tag.research { background: rgba(22, 101, 52, 0.1); color: #166534; }
.news-tag.prize { background: rgba(147, 51, 234, 0.12); color: #7e22ce; }
.news-tag.seminar { background: rgba(219, 39, 119, 0.1); color: #be185d; }

.news-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 100%, rgba(28, 37, 65, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.footer-text-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 2.5rem 4rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.footer-p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.footer-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-link:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 10px rgba(255, 159, 28, 0.3);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    position: relative;
    z-index: 10;
}

/* Utilities */
.mt-4 { margin-top: 1.5rem; }
.bg-light { background-color: #f1f5f9; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* News Full Section */
.news-more-link {
    padding: 1.5rem;
    text-align: right;
    border-top: 1px solid var(--border-color);
}

.news-more-link a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.news-more-link a:hover {
    color: var(--accent-color);
}

/* Accordion */
.accordion-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.accordion-btn {
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    padding: 1.5rem 2rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn:hover {
    background: var(--secondary-color);
}

.accordion-btn .icon {
    font-size: 1.5rem;
    font-weight: 400;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-card);
}

/* Footer Links */
.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 1080px) {
    .header,
    .header.scrolled {
        padding: 0.75rem 0;
    }

    .header.menu-open {
        background: rgba(11, 19, 43, 0.98);
        box-shadow: var(--shadow-md);
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        max-height: calc(100vh - 88px);
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        overflow-y: auto;
        color: #ffffff;
        background: rgba(11, 19, 43, 0.98);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 0 0 14px 14px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .header.menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        line-height: 1.2;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255,255,255,0.08);
    }

    .nav-links a::after {
        top: 0.65rem;
        bottom: 0.65rem;
        left: 0;
        width: 2px;
        height: auto;
        transform: none;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 2px;
    }

    .lang-toggle {
        padding: 0.25rem;
    }

    .btn-lang {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .footer-text-block { padding: 2rem; }
}

/* Page Specific Styles (News & Members) */
.page-content {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header .title-line {
    margin: 0 auto;
}

/* News Page */
.news-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.fy-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.fy-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Members Page */
.members-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.member-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.member-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.member-details {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    width: 100%;
}

.member-detail {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 60px;
}

.member-detail a {
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.member-detail a:hover {
    text-decoration: underline;
}

/* Card Link Overlay */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-radius: var(--radius);
}

.member-card:has(.card-link-overlay):hover {
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

/* News Image */
.news-image-wrapper {
    display: block;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 320px;
    border-radius: calc(var(--radius) / 2);
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Gallery Page */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-caption {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.links-list {
    padding: 2rem;
}

.links-list ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links-list li {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.links-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.external-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.external-link:hover {
    color: var(--accent-color);
}

.link-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Shared content pages: seminars, admissions, and theses */
.page-top-spacer {
    height: 2.5rem;
}

.page-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.page-lead {
    max-width: 720px;
    margin: 1.5rem auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.content-page-section {
    padding-top: 2rem;
}

.content-page-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.content-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-hover));
}

.content-link {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.5;
}

.content-link span,
.thesis-title-link span {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--accent-color);
}

.content-link:hover,
.thesis-title-link:hover {
    color: #c96f00;
}

.content-link:focus-visible,
.thesis-title-link:focus-visible,
.button-link:focus-visible,
.archive-block summary:focus-visible {
    outline: 3px solid rgba(255, 159, 28, 0.45);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Seminar page */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.program-card {
    padding: 2rem;
}

.program-heading {
    min-height: 5.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.program-heading h3,
.program-heading .content-link {
    display: inline-block;
    font-size: 1.25rem;
}

.program-year {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.detail-list {
    margin-top: 1.25rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.75rem;
    padding: 0.45rem 0;
}

.detail-row dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-row dd {
    color: var(--text-main);
    font-size: 0.95rem;
}

.archive-stack,
.thesis-page-wrapper {
    gap: 1rem;
}

.archive-block {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.archive-block summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.75rem;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    list-style: none;
    transition: var(--transition);
}

.archive-block summary::-webkit-details-marker {
    display: none;
}

.archive-block summary:hover {
    background: #fff9f1;
}

.summary-icon {
    position: relative;
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.summary-icon::before,
.summary-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transition: transform 0.2s ease;
}

.summary-icon::after {
    transform: rotate(90deg);
}

.archive-block[open] .summary-icon::after {
    transform: rotate(0);
}

.archive-list,
.thesis-list {
    padding: 0 1.75rem 0.75rem;
    border-top: 1px solid var(--border-color);
}

.archive-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item h3,
.archive-item .content-link {
    font-size: 1.02rem;
}

.archive-item p {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.related-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.25rem;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 159, 28, 0.32), transparent 30%),
        var(--primary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.callout-label {
    margin-bottom: 0.3rem;
    color: var(--accent-hover);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.related-callout h2 {
    font-size: 1.35rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.8rem 1.2rem;
    color: var(--primary-color);
    background: var(--accent-color);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.button-link:hover {
    color: var(--primary-color);
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Admission page */
.admission-intro {
    padding: 2.5rem;
}

.admission-intro > p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.route-card {
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.route-teacher {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.contact-note {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.faculty-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faculty-profile {
    padding: 2.25rem 2.5rem;
}

.faculty-header {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
    gap: 2rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faculty-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.faculty-photo {
    width: 112px;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.faculty-kicker {
    margin-bottom: 0.35rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 800;
}

.faculty-header h3 {
    color: var(--primary-color);
    font-size: 1.45rem;
}

.faculty-name-link {
    display: inline;
    color: inherit;
    transition: color 0.2s ease;
}

.faculty-name-link span {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--accent-color);
    font-size: 0.8em;
}

.faculty-name-link:hover {
    color: #c96f00;
}

.faculty-name-link:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(255, 159, 28, 0.45);
    outline-offset: 3px;
}

.faculty-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faculty-contact p {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.faculty-contact span {
    color: var(--text-muted);
    font-weight: 700;
}

.faculty-body {
    display: grid;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.faculty-body h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.faculty-body p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.85;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.resource-card {
    padding: 1.75rem 2rem;
}

.resource-card h3 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
}

.resource-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.resource-card li {
    position: relative;
    padding-left: 1rem;
}

.resource-card li::before {
    content: '';
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
}

.resource-card .content-link {
    font-size: 0.92rem;
    font-weight: 600;
}

/* Thesis page */
.thesis-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.thesis-year .summary-icon {
    margin-left: 0;
}

.thesis-item {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.thesis-item:last-child {
    border-bottom: none;
}

.thesis-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.degree-badge {
    display: inline-flex;
    padding: 0.22rem 0.65rem;
    color: #8a4a00;
    background: #fff2df;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.thesis-author {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.thesis-title-link {
    display: inline;
    color: var(--primary-color);
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.65;
}

/* Detailed seminar pages */
.seminar-detail-wrapper,
.paper-review-wrapper {
    gap: 3.5rem;
}

.seminar-info-card {
    padding: 2rem 2.5rem;
}

.seminar-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;
}

.seminar-info-list dt,
.paper-info-list dt {
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.seminar-info-list dd,
.paper-info-list dd {
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.65;
}

.seminar-schedule-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 0.93rem;
    line-height: 1.7;
}

.seminar-record-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seminar-record {
    padding: 1.65rem 2rem 1.75rem 2.25rem;
}

.seminar-record-date {
    margin-bottom: 0.45rem;
    color: var(--accent-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.seminar-record h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    line-height: 1.55;
}

.seminar-record h3 .content-link {
    font-size: inherit;
}

.seminar-presenter {
    margin-top: 0.75rem;
    color: var(--text-main);
    font-size: 0.92rem;
}

.seminar-presenter span {
    margin-right: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
}

.paper-info-heading {
    margin-top: 1.15rem;
    color: var(--primary-color);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.paper-review-attendees h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.paper-review-attendees p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.paper-review-archive-hint {
    margin: -0.75rem 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.paper-review-empty {
    padding: 1.65rem 2rem 1.75rem 2.25rem;
    color: var(--text-muted);
}

.paper-review-archive-list {
    padding-top: 1.25rem;
}

.paper-info-list {
    display: flex;
    gap: 2rem;
    margin-top: 0.55rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.paper-info-list > div {
    min-width: 9rem;
}

@media (max-width: 768px) {
    .hero-corona {
        background-position: center, 65% center;
        background-size: cover, min(130vw, 760px) auto;
        opacity: 0.62;
    }

    .seminar-info-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .seminar-info-card {
        padding: 1.75rem;
    }
}

@media (max-width: 520px) {
    .seminar-record {
        padding: 1.4rem 1.5rem 1.5rem 1.75rem;
    }

    .paper-info-list {
        flex-direction: column;
        gap: 0.85rem;
    }
}

@media (max-width: 768px) {
    .content-page-wrapper {
        gap: 3.75rem;
    }

    .program-grid,
    .route-grid,
    .resource-grid,
    .faculty-header {
        grid-template-columns: 1fr;
    }

    .program-heading {
        min-height: 0;
    }

    .faculty-profile,
    .admission-intro {
        padding: 1.75rem;
    }

    .related-callout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .faculty-identity {
        align-items: flex-start;
        gap: 1rem;
    }

    .faculty-photo {
        width: 88px;
        border-radius: 12px;
    }

    .logo a {
        font-size: 1rem;
        letter-spacing: 0;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .page-title {
        font-size: 2.15rem;
    }

    .program-card,
    .resource-card {
        padding: 1.5rem;
    }

    .detail-row,
    .faculty-contact p {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .archive-block summary,
    .archive-list,
    .thesis-list {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .thesis-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
