/*
Theme Name: GH Theme
Theme URI:
Description: Custom theme for Gastroenterology and Hepatology, Osaka University
Author: Antigravity
Author URI:
Version: 1.0
*/

:root {
    /* Colors */
    --color-primary: #004098;
    /* Osaka U Blue */
    --color-primary-dark: #002c6b;
    --color-accent: #C5A059;
    /* Gold */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-border: #E5E5E5;

    /* Typography */
    --font-base: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Layout */
    --container-width: 1200px;
    --header-height: 100px;
    /* Increased header height */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}


a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}


ul {
    list-style: none;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-content .container {
    max-width: var(--container-width);
    margin: 60px auto 60px auto;
    padding: 0 var(--spacing-md);
}



.breadcrumb-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}


.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}


.logo-img {
    height: 80px;
    /* Increased logo size */
    width: auto;
}


.logo-text {
    display: flex;
    flex-direction: column;
}


.logo-jp-main {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}


.logo-jp-sub {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
}


.logo-en {
    font-size: 0.65rem;
    color: var(--color-text-light);
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
    margin-top: 2px;
}


/* Navigation & Mobile Menu */
.nav-menu {
    display: flex;
    align-items: center;
}


.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}


.nav-item-wrapper {
    position: relative;
    padding: 10px 0;
}


.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    display: block;
    cursor: pointer;
}


.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}


.nav-item-wrapper:hover .nav-item::after {
    width: 100%;
}


.nav-item-wrapper:hover .nav-item {
    color: var(--color-primary);
}


/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
}


.nav-item-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: background-color 0.2s;
    white-space: nowrap;
}


.dropdown-item:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    z-index: 1002;
    /* Higher than menu */
    position: relative;
    /* Ensure z-index works */
}


/* Mobile Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }


    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        /* Keep it at right 0 */
        width: 80%;
        height: 100vh;
        background-color: white;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* Animate transform */
        transform: translateX(100%);
        /* Start hidden to the right */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Higher than header content */
        padding-top: 100px;
        /* Space for logo/header */
        overflow-y: auto;
        /* Enable scrolling */
        display: block;
        /* Use block to allow proper flow */
    }


    .nav-menu.active {
        transform: translateX(0);
        /* Slide in */
    }


    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }


    .nav-item-wrapper {
        text-align: center;
        width: 100%;
        padding: 5px 0;
    }


    .logo-en {
        display: none;
        /* Hide long English logo on mobile if needed for space */
    }


    .logo-img {
        height: 40px;
        /* Smaller logo on mobile */
    }


    .header {
        height: 60px;
        /* Smaller header on mobile */
    }


    .nav-menu {
        padding-top: 80px;
    }





    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--color-bg-alt);
        display: none;
        /* Hidden by default on mobile, can toggle with JS if desired */
        width: 100%;
    }
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -var(--header-height);
    /* Pull behind header */
    padding-top: var(--header-height);
    overflow: hidden;
}


/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


.hero-slide.active {
    opacity: 1;
}


@keyframes smoothZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-slide.zoom {
    animation: smoothZoom 8s linear forwards;
}




.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 64, 152, 0.6) 0%, rgba(0, 44, 107, 0.5) 100%);
    z-index: 1;
}


.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}


.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}


.indicator.active {
    background-color: white;
}


.hero-content {
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}


.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}


.hero-title {
    font-family: 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'MS PMincho', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
}

.hero-title-2 {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
}


.hero-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}


.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}


.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}


.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}


.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}


.btn-secondary:hover {
    background-color: white;
    color: var(--color-primary);
}


.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}


.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}


/* Section General */
.section {
    padding: 0 0 80px 0;
    scroll-margin-top: calc(var(--header-height));
}

.front-section {
    padding: 80px 0 80px 0;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 20px;
}


.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    position: relative;
    padding-left: 20px;
}


.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: var(--color-accent);
}


.view-all {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}


.view-all:hover {
    text-decoration: underline;
}


/* Instagram Section */
.instagram-section {
    padding: 30px 0;
    background-color: white;
}

.instagram-container {
    display: flex;
    justify-content: center;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.instagram-icon {
    font-size: 2rem;
}

.instagram-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}


/* News Section */
.front-section.news-section {
    padding: 0 0 80px 0;
}

.news-grid {
    display: grid;
    gap: 20px;
}


.news-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}


.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.news-date {
    font-family: monospace;
    color: var(--color-text-light);
    margin-right: 20px;
    white-space: nowrap;
}


.news-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 20px;
    color: white;
    white-space: nowrap;
}


.tag-info {
    background-color: var(--color-primary);
}


.tag-event {
    background-color: var(--color-accent);
}




.news-title {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}


/* Access Cards */
.access-section {
    background-color: var(--color-bg-alt);
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.access-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}


.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}


.access-card:hover::before {
    transform: scaleX(1);
}


.access-card:hover {
    transform: translateY(-5px);
}


.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}


.access-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-text);
}


.access-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}


.card-arrow {
    margin-top: auto;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}


.access-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* Message Section */
.message-container {
    display: flex;
    gap: 40px;
    align-items: center;
}


.message-image {
    flex: 1;
}


.message-image img {
    width: 60%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}


.message-content {
    flex: 1;
}


.message-role {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
}


.message-name {
    font-size: 1.5rem;
    margin-bottom: 20px;
}


.message-text {
    margin-bottom: 30px;
}


/* Footer */
.footer {
    background-color: #F8F9FA;
    border-top: 1px solid var(--color-border);
    padding-top: 60px;
}


.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}


.footer-logo {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}


.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}


@media (max-width: 1200px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}


.link-group h5 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1rem;
}


.link-group a {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}


.link-group a:hover {
    color: var(--color-primary);
}


.footer-bottom {
    background-color: var(--color-primary);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}


/* Mobile */
@media (max-width: 768px) {
    /* Legacy nav-menu and mobile-menu-btn rules removed to avoid conflicts */

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title-2 {
        font-size: 1.8rem;
    }


    .card-grid {
        grid-template-columns: 1fr;
    }


    .message-container {
        flex-direction: column;
    }


    .footer-content {
        grid-template-columns: 1fr;
    }


    .footer-links {
        grid-template-columns: 1fr;
    }
}


/* Education Page Styles */

/* Page Header (General) */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: var(--header-height);
    background-color: var(--color-primary);
    overflow: hidden;
}


.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 64, 152, 0.8) 0%, rgba(0, 44, 107, 0.9) 100%);
    z-index: 0;
}


.page-header-content {
    position: relative;
    z-index: 1;
}


.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}


.page-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.9;
    font-family: serif;
    font-style: italic;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .page-header {
        margin-top: 60px;
        /* Smaller header on mobile */
    }
}


/* Career Path Diagram (Flow Chart Style) */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 30%;
    margin-bottom: 0;
}


/* Connector Arrow between items */
.timeline-item:not(:last-child)::after {
    content: '\f061';
    /* FontAwesome Arrow Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 25px;
    right: -25%;
    /* Position between items */
    font-size: 2rem;
    color: var(--color-accent);
    z-index: 1;
}


.timeline-year {
    width: auto;
    padding: 10px 20px;
    text-align: center;
    margin-bottom: 20px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.timeline-content {
    width: 100%;
    text-align: center;
    border-top: 4px solid var(--color-primary);
    padding-top: 20px;
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


.timeline-content h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}


.timeline-content p {
    color: var(--color-text-light);
    text-align: left;
}


@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
    }


    .timeline-item {
        width: 100%;
        margin-bottom: 60px;
    }


    .timeline-item:not(:last-child)::after {
        content: '\f063';
        /* Arrow Down */
        top: auto;
        bottom: -40px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Program Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}


.program-card {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}


.program-card:hover {
    transform: translateY(-5px);
}


.program-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}


.program-card h3 {
    margin-bottom: 15px;
}


/* Hospital List */
.hospital-list ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}


.hospital-list li {
    background-color: white;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.hospital-list i {
    color: var(--color-accent);
}


.hospital-list .note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}


/* Contact Box */
.contact-box {
    background-color: var(--color-bg-alt);
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    margin-top: 60px;
}


.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}


.contact-box p {
    margin-bottom: 30px;
}


/* Career Support */
.support-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}


.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.support-card {
    background-color: white;
    border: 2px solid var(--color-border);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}


.support-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.support-icon {
    font-size: 2.5rem;
    color: #e91e63;
    /* Pink for support accent? or keep primary */
    color: var(--color-primary);
    margin-bottom: 20px;
    background-color: #fce4ec;
    /* Light pink bg or primary light */
    background-color: rgba(0, 64, 152, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}


.support-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}


@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Patient Page Styles */
.lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--color-text);
}


.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.content-grid.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}


.text-block {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 8px;
}


.text-block h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}


.text-block p {
    margin-bottom: 15px;
}


.text-block p:last-child {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .content-grid.two-column {
        grid-template-columns: 1fr;
    }
}


/*Recruitment Records */




.record-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
}


.record-table th {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 500;
}


.record-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}


.record-table tr:last-child td {
    border-bottom: none;
}


.record-table tr:nth-child(even) {
    background-color: #f8f9fa;
    /* Light gray stripe */
}


.record-table td:first-child {
    text-align: center;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* Clean numbers */
    font-size: 1.1rem;
    color: var(--color-primary);
}


.record-table td:nth-child(2) {
    text-align: center;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* Clean numbers */
    font-size: 1.1rem;
    color: var(--color-primary);
}










/* Contact Page Styles */
.contact-info-block {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}


.org-name {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}


.address {
    font-size: 1.1rem;
    margin-bottom: 30px;
}


.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}


.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.contact-item .label {
    background: var(--color-secondary);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}


.contact-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}


.inquiry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.inquiry-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s;
}


.inquiry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}


.inquiry-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.1rem;
}


.inquiry-card h3 i {
    margin-right: 8px;
    color: var(--color-accent);
}


.inquiry-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #666;
}


.email-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}


.email-link:hover {
    text-decoration: underline;
}


.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
}


.access-list {
    list-style: none;
    padding: 0;
}


.access-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}


.transport-icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}


.access-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
}


@media (max-width: 900px) {
    .inquiry-grid {
        grid-template-columns: 1fr;
    }


    .access-content {
        grid-template-columns: 1fr;
    }


    .access-content {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Page Navigation (Local Menu) */










/* Staff Grid Design (Photo Card Style) */
.group-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--color-primary);
    color: var(--color-text);
}


.staff-grid {
    display: grid;
    /* Force 5 columns on desktop as requested */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}


.staff-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}


.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}


.staff-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}


.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Apply a slight padding if it's the silhouette to look cleaner */
    object-fit: contain;
    padding: 20px;
    background: #fff;
}


.staff-info {
    padding: 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.staff-role {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-block;
}


.staff-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}


.staff-specialty {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    border-top: 1px dotted var(--color-border);
    padding-top: 6px;
    margin-top: auto;
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }


    .staff-photo img {
        padding: 10px;
    }
}


/* Training Banner Styles */
.banner-container {
    padding: 0 20px;
    margin-bottom: 20px;
}


.training-banner {
    display: block;
    background: linear-gradient(135deg, var(--color-primary), #0056b3);
    color: white;
    text-decoration: none;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 64, 152, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}


.training-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}


.training-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 64, 152, 0.3);
}


.training-banner:hover::before {
    transform: translateX(100%);
}


.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}


.banner-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
}


.banner-icon-arrow {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-left: auto;
}


@media (max-width: 600px) {
    .banner-content {
        font-size: 1rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }


    .banner-icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }


    .banner-icon-arrow {
        display: none;
    }
}


/* News Detail Styles */
.news-content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.news-header-block {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}


.news-article-title {
    font-size: 2rem;
    margin-top: 15px;
    color: var(--color-text);
}


.news-body p {
    line-height: 1.8;
    margin-bottom: 20px;
}


.sub-heading {
    font-size: 1.3rem;
    color: var(--color-primary);
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
    margin: 30px 0 15px;
}


.schedule-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}


.schedule-list {
    list-style: none;
    padding: 0;
}


.schedule-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}


.schedule-list li:last-child {
    border-bottom: none;
}


.schedule-label {
    background: var(--color-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}


.schedule-date {
    font-weight: 700;
    margin-right: 15px;
}


.contact-box {
    border: 2px solid var(--color-border);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    margin-top: 40px;
}


.box-title {
    color: var(--color-primary);
    margin-bottom: 15px;
}


.contact-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}


.nav-button-container {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {

    .news-content-wrapper {
        padding: 40px 20px;
    }
}


/* Greeting Page Styles */
.greeting-section {
    background: #fff;
    padding: 60px 0;
}


.greeting-container {
    max-width: 900px;
    margin: 0 auto;
}


.greeting-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--color-primary);
}


.greeting-photo {
    width: 450px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}


.greeting-photo img {
    width: 100%;
    display: block;
}


.greeting-profile-info {
    flex: 1;
}


.greeting-name {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}


.greeting-title {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}


.greeting-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
}


.greeting-heading {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 5px solid var(--color-accent);
}


.greeting-signature {
    margin-top: 60px;
    text-align: right;
    font-size: 1.1rem;
}


.signature-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
}


@media (max-width: 768px) {
    .greeting-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }


    .greeting-photo {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }


    .greeting-name {
        font-size: 2rem;
    }
}


/* News Page Premium Styles */
.news-page-section {
    padding-top: 80px;
    background-color: var(--color-bg-alt);
}


/* Filters */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}


.filter-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}


.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 64, 152, 0.25);
}


/* News List */
.news-list-container {
    max-width: 900px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Reduced gap */
    border: none;
}


.news-list-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    /* Reduced padding */
    border: none;
    border-radius: 8px;
    /* Slightly smaller radius */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    /* More subtle shadow */
    position: relative;
    overflow: hidden;
}


.news-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s;
}


.news-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}


.news-list-item:hover::before {
    opacity: 1;
}


.news-item-meta {
    display: flex;
    align-items: center;
    min-width: 220px;
    /* Reduced width */
    flex-shrink: 0;
}


.news-list-item .news-date {
    font-family: 'Roboto', monospace;
    font-weight: 500;
    font-size: 0.95rem;
    /* Slightly smaller date */
    color: var(--color-text-light);
    margin-right: 15px;
}


.news-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    /* reduced padding */
    border-radius: 20px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* Tag Colors */
.tag-info {
    background-color: var(--color-primary);
}


.tag-event {
    background-color: var(--color-accent);
}






.news-list-item .news-title {
    margin: 0;
}


.news-item-title {
    flex: 1;
    margin: 0;
    line-height: 1.5;
    /* tighter line height */
}


.news-item-title a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    /* Slightly reduced font size */
    font-weight: 600;
    transition: color 0.2s;
}


.news-list-item:hover .news-item-title a {
    color: var(--color-primary);
}


.news-arrow {
    width: 32px;
    /* Smaller arrow circle */
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-left: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}


.news-list-item:hover .news-arrow {
    background-color: var(--color-primary);
    color: white;
    transform: translateX(5px);
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}


.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: white;
    color: var(--color-text);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}


.page-link:hover,
.page-link.active {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 64, 152, 0.2);
}


@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }


    .news-item-meta {
        margin-bottom: 12px;
        width: 100%;
        justify-content: flex-start;
    }


    .news-arrow {
        display: none;
    }
}


/* History List Styles (New) */
.history-list {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.history-card {
    background: white;
    border-radius: 8px;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: baseline;
    gap: 32px;
    border-left: 4px solid var(--color-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.history-date {
    font-weight: 700;
    color: var(--color-primary);
    min-width: 200px;
    font-size: 1.1rem;
    flex-shrink: 0;
}


.history-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}


@media (max-width: 768px) {
    .history-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px;
    }


    .history-date {
        min-width: auto;
        margin-bottom: 4px;
    }
}


/* Simple Staff List Styles */














/* Name-Only Staff List Styles */
.staff-name-list {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.staff-year-group {
    margin-bottom: 24px;
}


.staff-year-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}


.staff-names-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}


.staff-name-item {
    font-size: 0.95rem;
    color: var(--color-text);
    white-space: nowrap;
}


.overseas-item {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-size: 0.95rem;
}


.overseas-name {
    font-weight: 700;
    margin-right: 10px;
}


.overseas-place {
    color: #666;
    font-size: 0.9rem;
}


/* Staff Profile Page Styles */
.staff-profile-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.profile-header {
    display: flex;
    gap: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}


.profile-image-container {
    width: 240px;
    flex-shrink: 0;
}


.profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.profile-header-info {
    flex: 1;
}


.profile-role {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}


.profile-internal-role {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 10px;
    margin-bottom: 15px;
}


.profile-name-jp {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text);
}


.profile-name-en {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 25px;
}


.profile-specialty-box {
    background-color: #f8fbfd;
    border-left: 5px solid var(--color-primary);
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
}


.profile-label {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}


.profile-text {
    font-size: 1rem;
    line-height: 1.6;
}


.profile-section {
    margin-bottom: 40px;
}


.profile-section-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}


.profile-data-list {
    list-style: none;
    padding: 0;
}


.profile-data-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}


.profile-data-list li::before {
    content: "";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-size: 0.8em;
    top: 0.2em;
}








@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }


    .profile-image-container {
        width: 180px;
    }


    .profile-name-jp {
        font-size: 1.8rem;
    }


    .profile-specialty-box {
        text-align: left;
    }
}


/* Link wrapper for staff card */
.staff-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.staff-card-link:hover .staff-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


/* Hub Page Card Styles (Reused from About Page) */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}


.hub-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}


.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


.hub-card-image {
    height: 200px;
    overflow: hidden;
}


.hub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.hub-card:hover .hub-card-image img {
    transform: scale(1.05);
}


.hub-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


.hub-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}


.hub-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}


.hub-card-arrow {
    margin-top: auto;
    align-self: flex-end;
    color: var(--color-primary);
    font-size: 1.2rem;
}


/* Modern Stats Table */
.stats-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}


.modern-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Noto Sans JP', sans-serif;
}


.modern-stats-table th {
    background-color: var(--color-primary);
    /* Use Site Theme Color */
    color: white;
    font-weight: 700;
    padding: 15px 20px;
    text-align: center;
    font-size: 1rem;
    border: none;
}


.modern-stats-table th:first-child {
    text-align: left;
}


.modern-stats-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 1rem;
    vertical-align: middle;
}


.modern-stats-table tr:last-child td {
    border-bottom: none;
}


.modern-stats-table td:first-child {
    font-weight: 500;
    color: #444;
}


.modern-stats-table td:not(:first-child) {
    text-align: center;
    /* Center align for multi-year columns */
    font-weight: 700;
    color: var(--color-primary);
    /* Match numbers to theme color too */
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
}


/* Zebra Striping */
.modern-stats-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
    /* Light Gray */
}


.modern-stats-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
    /* White */
}




@media (max-width: 768px) {
    .stats-table-container {
        overflow-x: auto;
    }


    .modern-stats-table {
        min-width: 600px;
    }
}


/* Refactoring Additions */
.hero-slide-team {
    background-image: url('images/hero_team.jpg');
}


.hero-slide-research {
    background-image: url('images/hero_research.jpg');
}


.hero-slide-endoscopy {
    background-image: url('images/hero_endoscopy.jpg');
}


.banner-wrapper {
    margin-top: 40px;
    text-align: center;
}


/* Styles from education.html */
.education-image-container {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.education-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}


.contact-box-left {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    text-align: left;
}


/* Styles from visit.html */
.visit-text-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}


.visit-text-block h3 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}


.visit-text-block p {
    font-size: 1.05rem;
    line-height: 1.8;
}


.btn-container {
    text-align: center;
    margin-top: 40px;
}


/* Styles from disease.html and disease-gi.html */
.disease-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
}


.disease-section-title-small {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.disease-img {
    width: 80%;
    height: auto;
    /* 縦横比を保持 */
    display: block;
    /* 余白（インライン要素由来）防止 */
}

.disease-img-small {
    width: 40%;
    height: auto;
    /* 縦横比を保持 */
    display: block;
    /* 余白（インライン要素由来）防止 */
}

@media (max-width: 768px) {
    .disease-img {
        width: 100%;
    }

    .disease-img-small {
        width: 100%;
    }
}


/* News Tags */
.tag-news {
    background-color: #0D0099;
    color: white;
}


.tag-pressrelease {
    background-color: #E68600;
    color: white;
}


.tag-event {
    background-color: #00990D;
    color: white;
}


.tag-article {
    background-color: #99008C;
    color: white;
}

/* Styles from affiliated-hospital.html */

.map-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* Aspect ratio for responsive map */
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
    /* Reduced margin */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .map-container {
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio on desktop */
        height: 600px;
        /* Fixed height can be better for very wide screens */
        padding-bottom: 0;
    }
}

/* Table Styles from optout.html*/

.table-responsive {
    overflow-x: auto;
    margin-bottom: 40px;
}

.research-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.research-table th {
    background-color: var(--color-primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.research-table th:hover {
    background-color: var(--color-primary-dark);
}

.research-table th::after {
    content: '\f0dc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 0.8em;
}

.research-table th.asc::after {
    content: '\f0de';
    opacity: 1;
}

.research-table th.desc::after {
    content: '\f0dd';
    opacity: 1;
}

.research-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.research-table tr:hover {
    background-color: var(--color-bg-alt);
}

.research-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.col-disease {
    width: 10%;
    font-weight: 700;
    color: var(--color-primary);
}

.col-title {
    width: 60%;
}

.col-date {
    width: 10%;
    white-space: nowrap;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.research-link {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s;
    display: block;
}

.research-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Styles from publication.html */

.publication-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.year-title {
    font-size: 1.8rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 30px;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    transition: color 0.3s;
}

.year-title::before {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.year-title.active::before {
    transform: translateY(-50%) rotate(180deg);
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.publication-list {
    list-style: none;
    display: none;
    animation: fadeIn 0.5s ease;
}

.year-title.active+.publication-list {
    display: block;
}

.publication-list {
    list-style: none;
    padding: 0;
}

.publication-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #eee;
    transition: border-color 0.3s;
}

.publication-item:hover {
    border-left-color: var(--color-primary);
}

.pub-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 5px;
    display: block;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 3px;
    display: block;
}

.pub-source {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-style: italic;
}

/* Styles from research-detail.html */
.research-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: calc(var(--header-height) - 40px);
}

.research-section:last-child {
    border-bottom: none;
}

.group-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--color-accent);
}

.research-item {
    margin-bottom: 40px;
}

.research-item h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.research-item h3::before {
    content: "■";
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 0.8em;
}

.research-item p {
    line-height: 1.8;
    color: var(--color-text);
    text-align: justify;
}

.toc-container {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.toc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-primary);
}

.toc-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.toc-item a {
    display: block;
    padding: 12px 24px;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.toc-item a:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Styles from research-group.html */
.main-visual {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.future-outlook {
    background-color: #f0f7ff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 4rem;
}

.future-outlook h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.paper-list-section {
    margin-bottom: 3rem;
}

.paper-list-section h3 {
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.paper-list {
    padding-left: 1.5rem;
}

.paper-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* Contact Form */
.form-intro {
    background-color: var(--color-bg-alt);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text);
}

.required {
    background-color: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 64, 152, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 225px;
}

.privacy-box {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.privacy-box h4 {
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

.privacy-box h4:first-child {
    margin-top: 0;
}

.privacy-box p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-box ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}

.privacy-check {
    margin: 30px 0;
    text-align: center;
}

.checkbox-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-submit-btn {
    min-width: 200px;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 64, 152, 0.2);
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 64, 152, 0.3);
}

/* Confirm Page */
.confirm-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.confirm-item:last-of-type {
    border-bottom: none;
}

.confirm-label {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.confirm-value {
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: 10px;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.confirm-fix-btn {
    background-color: #999;
    border-color: #999;
    color: white;
}

.confirm-fix-btn:hover {
    background-color: #777;
    border-color: #777;
    color: white;
}

@media screen and (max-width: 768px) {
    .contact-form {
        padding: 0 10px;
    }

    .form-submit-btn {
        width: 100%;
    }
}

/* Admin Bar Adjustment */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* Greeting Section Items */
.greeting-section-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.greeting-section-item.reverse {
    flex-direction: row-reverse;
}

.greeting-image {
    flex: 1;
}

.greeting-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.greeting-text {
    flex: 1;
}

/* Adjust heading specific to this layout if needed */
.greeting-section-item .greeting-heading {
    margin-top: 0;
}

@media (max-width: 768px) {

    .greeting-section-item.reverse,
    .greeting-section-item {
        flex-direction: column;
    }

    .greeting-image {
        width: 100%;
    }
}