@font-face {
    font-family: 'NagomiGokubosoGothic-ExtraLight';
    src: url('fonts/NagomiGokubosoGothic-ExtraLight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 30%, #7dd3fc 100%);
    background-attachment: fixed;
    color: #0f172a;
    line-height: 1.7;
}

.container {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 20px;
}

.header-style {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    clip-path: path('M 0,0 L 100%,0 L 100%,25 C 85%,35 70%,15 50%,25 C 30%,35 15%,20 0,30 Z');
    padding: 5px 40px 35px 40px;
    position: relative;
    filter: none;
    border-bottom: none;
}
.header-main-content {
    display: flex;
    align-items: center;
    margin-top: 0;
}
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand img {
    width: 95px;
    height: auto;
    margin: 0 25px 0 5px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img {
    transform: scale(1.05) translateY(-2px);
}
.title-group {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    margin-top: 5px;
    transition: transform 0.3s ease;
}
.main-title {
    font-family: 'NagomiGokubosoGothic-ExtraLight', 'M PLUS Rounded 1c', sans-serif;
    font-size: 42px;
    letter-spacing: 3px;
    color: #0369a1;
    margin: 0;
    line-height: 1.2;
}
.title-group .main-title {
    font-size: 28px;
    font-weight: 700;
    color: #075985;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}
.title-group .sub-title-en {
    margin: 4px 0 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    letter-spacing: 0.06em;
}
.nav {
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 100;
    width: 100%;
    margin-top: 10px;
}
.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.menu-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-links {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dropdown-links a {
    display: inline-block;
    padding: 4px 12px;
    text-decoration: none;
    color: #075985;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}
.dropdown-links a:hover {
    background-color: #bae6fd;
    color: #0369a1;
    transform: translateY(-1px);
}
.menu-trigger {
    display: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding-left: 15px;
    border-left: 1px solid rgba(3, 105, 161, 0.25);
    margin-left: 10px;
}
.lang-switch a {
    text-decoration: none;
    color: #0369a1;
    transition: all 0.2s ease;
    padding: 3px 10px;
    border-radius: 12px;
    text-shadow: none;
    display: inline-block;
}
.lang-switch a:hover {
    color: #0284c7;
    background-color: #bae6fd;
}
.lang-switch a.active {
    color: #ffffff;
    background-color: #075985;
    pointer-events: none;
}
.lang-switch .separator {
    display: none;
}

.card-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(224, 242, 254, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.08);
    margin-bottom: 30px;
}
.card-section a img {
    display: block;
    margin: 20px auto;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0369a1;
    margin: 15px 0 0 0;
    position: relative;
    padding-left: 20px;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 18px;
    background-color: #38bdf8;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}
.sub-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px dashed rgba(56, 189, 248, 0.4);
    padding-bottom: 6px;
    margin: 25px 0 15px 0;
}

/* お知らせ・研究関連 */
.news-header-meta {
    margin-bottom: 25px;
    border-bottom: 2px dashed rgba(56, 189, 248, 0.4);
    padding-bottom: 15px;
}
.news-header-meta .date {
    font-weight: 700;
    color: #0369a1;
    background-color: #bae6fd;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
}
.news-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list li {
    padding: 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    font-size: 15px;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list li a {
    display: block;
    padding: 12px 10px;
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.news-list li a:hover {
    background-color: rgba(56, 189, 248, 0.15);
    color: #0369a1;
    transform: translateX(4px);
}
.news-list .date {
    font-weight: 700;
    color: #0369a1;
    margin-right: 15px;
    background-color: #bae6fd;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}
.news-more-btn {
    display: block;
    margin: 20px auto 0 auto;
    padding: 8px 24px;
    border: 1px solid #7dd3fc;
    background-color: rgba(255, 255, 255, 0.6);
    color: #0369a1;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    width: fit-content;
    transition: all 0.3s ease;
    font-weight: 600;
}
.news-more-btn:hover {
    background-color: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: scale(1.03);
}
.research-list, .styled-list, .ordered-list {
    padding-left: 20px;
}
.research-list li, .styled-list li {
    margin-bottom: 12px;
}
.ordered-list li {
    margin-bottom: 10px;
    font-size: 15px;
}
.research-list .summary {
    color: #64748b;
    font-size: 14px;
    display: block;
    margin-top: 4px;
}
.publications-scroll-box {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    background-color: rgba(248, 250, 252, 0.6);
    padding: 15px 10px 15px 15px;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.6);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #7dd3fc;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

.access-info {
    background-color: rgba(248, 250, 252, 0.5);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #38bdf8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.access-row {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}
.access-label {
    font-weight: 700;
    color: #0369a1;
    width: 95px;
    flex-shrink: 0;
}
.access-text {
    color: #334155;
    flex-grow: 1;
}
.keyword-container {
    margin: 40px 0 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.keyword-tag {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0f2fe 100%);
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid #7dd3fc;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.keyword-tag:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.3);
}
.map-container {
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
}

.footer-style {
    background-color: #075985;
    color: #e0f2fe;
    padding: 80px 20px 40px 20px;
    margin-top: 80px;
    position: relative;
    clip-path: ellipse(140% 100% at 50% 100%);
}
.footer-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.footer-info-block {
    margin-bottom: 25px;
    border-bottom: 2px dashed rgba(224, 242, 254, 0.2);
    padding-bottom: 25px;
}
.footer-lab-name {
    font-family: 'NagomiGokubosoGothic-ExtraLight', 'M PLUS Rounded 1c', sans-serif;
    font-size: 28px;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.footer-address {
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #bae6fd;
}
.footer-email {
    font-size: 13px;
    margin: 0;
}
.footer-email strong {
    color: #38bdf8;
    font-weight: 700;
}
.copyright {
    margin: 0;
    font-size: 11px;
    color: #7dd3fc;
    letter-spacing: 0.02em;
}

.research-image-wrapper {
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    text-align: center;
}
.research-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(3, 105, 161, 0.1);
}
.image-caption {
    margin-top: 8px;
    font-size: 13px;
    color: #334155;
}
.image-caption-link {
    color: #0ea5e9;
    font-weight: 600;
}
.member-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #0284c7;
    background-color: #bae6fd;
    border: 1px solid #7dd3fc;
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    margin-left: 6px;
    vertical-align: middle;
}
.copy-target {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
    color: #0f172a;
    background-color: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}
.copy-btn, .tel-link {
    background-color: #ffffff;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    text-decoration: none;
    display: inline-block;
}
.copy-btn:hover, .tel-link:hover {
    background-color: #e0f2fe;
    transform: translateY(-1px);
}
.copy-btn.copied {
    background-color: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    animation: pulse 0.3s ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.tel-note {
    font-size: 12px;
    color: #52525b;
    margin-left: 6px;
}
.to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0284c7 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}
.to-top-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.6);
}
.to-top-button.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.member-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 15px;
}
.detail-toggle {
    display: none;
}
.member-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}
.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}
.member-photo {
    width: 90px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.1);
}
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-detail {
    flex-grow: 1;
}
.member-name {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #0369a1;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.member-name strong,
.member-name strong + text {
    white-space: nowrap;
}
.open-arrow {
    font-size: 11px;
    font-weight: 700;
    color: #0ea5e9;
    background-color: #e0f2fe;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: auto;
}
.open-arrow::before { content: "▼ "; }
.member-en {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.member-meta {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}
.member-hidden-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}
.detail-inner {
    padding-top: 15px;
    border-top: 1px dashed rgba(14, 165, 233, 0.2);
    margin-top: 10px;
}
.detail-text {
    font-size: 13px;
    color: #475569;
    margin: 10px 0;
    line-height: 1.6;
}
.member-links-area {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.member-ext-btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background-color: #ffffff;
    border: 1px solid #7dd3fc;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.member-ext-btn:hover {
    background-color: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}
.detail-toggle:checked + .member-card {
    background-color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.12);
}
.detail-toggle:checked + .member-card .member-hidden-detail {
    max-height: 600px;
    opacity: 1;
}
.detail-toggle:checked + .member-card .open-arrow {
    background-color: #0ea5e9;
    color: #ffffff;
}
.detail-toggle:checked + .member-card .open-arrow::before { content: "▲ "; }

.gallery-item {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: fadeIn 0.4s ease forwards;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2);
}
.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: 19px;
    display: block;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(3, 105, 161, 0.06);
    position: relative;
    top: -20px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}
.gallery-grid .gallery-item {
  aspect-ratio: 16 / 10;
}
.gallery-grid .gallery-item img {
    height: 100%;
}
.gallery-caption {
    position: relative;
    width: 100%;
    background: transparent;
    color: #1e293b;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    border-top: 1px dashed rgba(14, 165, 233, 0.15);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -20px;
}
.gallery-more-area {
    text-align: center;
    margin-top: 35px;
}
.gallery-more-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #7dd3fc;
    background-color: #ffffff;
    color: #0ea5e9;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}
.gallery-more-btn:hover {
    background-color: #e0f2fe;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}
.gallery-tab {
    padding: 8px 18px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    color: #0369a1;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.1);
}
.gallery-tab:hover, .gallery-tab.active {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(14, 165, 233, 0.3);
}
        
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; margin-top: 20px;
}
.gallery-page-grid .gallery-item {
    display: flex;
} 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.back-to-home-area {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed rgba(14, 165, 233, 0.2);
}
@media (max-width: 992px) {
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .gallery-page-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.15);
}
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 15s infinite ease-in-out;
}
.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 5s; }
.slide-img:nth-child(3) { animation-delay: 10s; }
@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; }
    33.33% { opacity: 1; }
    43.33% { opacity: 0; transform: scale(1.0); }
    100% { opacity: 0; }
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 89, 133, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 40px;
    text-align: center;
    color: #ffffff;
}
.hero-sub {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #38bdf8;
    margin-bottom: 12px;
}
.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.hero-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #e0f2fe;
    max-width: 640px;
    margin: 0 auto 28px auto;
}
.hero-btn {
    display: inline-block;
    background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0ea5e9 100%);
    color: #ffffff;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-btn:hover {
    background: #ffffff;
    color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}
.sp-only {
    display: none;
}
.highlight-news {
    animation: pulseHighlight 1.5s ease-out;
}
@keyframes pulseHighlight {
    0% { background-color: rgba(56, 189, 248, 0.4); transform: scale(1.01); }
    50% { background-color: rgba(56, 189, 248, 0.2); }
    100% { background-color: transparent; transform: scale(1); }
}

.index-page .header-style {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    opacity: 0;
}
.index-page .header-style.first-time-animation {
    animation: headerPureFadeIn 3.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 5s;
    opacity: 0;
}
.index-page .header-style.already-visited {
    opacity: 1;
}
@keyframes headerPureFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.index-page .title-group .main-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.6), 0 1px 2px rgba(15, 23, 42, 0.8);
}
.index-page .title-group .sub-title-en {
    color: #e0f2fe;
    text-shadow: 0 1px 4px rgba(15, 23, 42, 0.6);
}
.index-page .dropdown-links a {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.6), 0 1px 2px rgba(15, 23, 42, 0.8);
}
.index-page .dropdown-links a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.index-page .hero-section {
    height: 100vh;
    border-radius: 0;
    margin-bottom: 50px;
}
.index-page .slide-img {
    height: 100vh;
}

.student-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.student-grid-container.teacher-independent-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-items: start;
}
.student-compact-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.student-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.12);
}
.student-photo-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background-color: #f8fafc;
}
.student-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.student-compact-card:hover .student-photo-box img {
    transform: scale(1.05);
}
.student-name-box {
    padding: 12px 15px;
    text-align: center;
    background: #ffffff;
}
.student-name-box .grade {
    display: inline-block !important;
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 6px 0 0 !important;
    vertical-align: middle;
}
.student-name-box .grade::after {
    content: "" !important;
    margin-right: 0 !important;
}
.student-name-box .name-ja {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: inline-block;
    vertical-align: middle;
}
.student-name-box .name-en {
    display: block !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-left: 0 !important;
    margin-top: 2px !important;
}

.alumni-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}
.alumni-year-group {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 16px;
    padding: 18px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.alumni-year-title {
    font-size: 15px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}
.alumni-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.alumni-list li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #334155;
}
.alumni-degree {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 10px;
    flex-shrink: 0;
}
.alumni-name-ja {
    font-weight: 700;
    color: #0f172a;
    margin-right: 6px;
}
.alumni-name-en {
    font-size: 12px;
    color: #64748b;
}
@media (max-width: 576px) {
    .alumni-year-group {
        padding: 15px;
    }
    .alumni-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.news-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed rgba(14, 165, 233, 0.2);
}
.news-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.news-nav-cell {
    flex: 1;
    min-width: 0;
}
.news-nav-center {
    text-align: center;
}
.news-btn-common {
    display: block;
    padding: 10px 24px;
    min-width: 140px;
    border: 1px solid #7dd3fc;
    background-color: rgba(255, 255, 255, 0.6);
    color: #0369a1;
    border-radius: 24px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    width: fit-content;
    margin: 0 auto;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}
.news-btn-common:hover {
    background-color: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: scale(1.03);
}
.news-btn-center {
    background-color: rgba(255, 255, 255, 0.85);
}
.news-btn-disabled {
    display: block;
    padding: 10px 24px;
    min-width: 140px;
    border: 1px dashed #cbd5e1;
    background-color: rgba(241, 245, 249, 0.4);
    color: #94a3b8;
    border-radius: 24px;
    font-size: 13px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    font-weight: 500;
    white-space: nowrap;
    cursor: not-allowed;
}

.teacher-info-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.teacher-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
}
.teacher-info-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.teacher-info-box .grade {
    display: inline-block !important;
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    padding: 3px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle;
}
.teacher-info-box .grade::after {
    content: "" !important;
    margin-right: 0 !important;
}
.teacher-info-box .name-ja {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: inline-block;
    vertical-align: middle;
}
.teacher-info-box .name-en {
    display: inline-block;
    font-size: 13px;
    color: #64748b;
    margin-left: 10px;
    font-weight: 500;
    vertical-align: middle;
}
.teacher-details {
    border-top: 1px dashed rgba(14, 165, 233, 0.2);
    padding-top: 16px;
    margin-top: 16px;
}
.teacher-specialty, .teacher-email {
    font-size: 13px;
    color: #475569;
    margin: 0 0 8px 0;
    line-height: 1.6;
}
.teacher-info-box .member-links-area {
    margin-top: 12px;
    justify-content: flex-start;
}
.profile-accordion-wrapper {
    margin-top: 20px;
}
.profile-toggle-input,
.profile-toggle-label {
    display: none;
}
.profile-hidden-content {
    display: block;
    max-height: none;
    opacity: 1;
}
.profile-content-inner {
    padding: 0;
    border-top: none;
    text-align: left;
}
.profile-block-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-block-item:not(:last-child) {
    margin-bottom: 20px;
}
.profile-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    padding-bottom: 4px;
    width: 100%;
}
.profile-detail {
    width: 100%;
}
.profile-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}
.profile-timeline li {
    display: flex;
    align-items: flex-start;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
    text-align: left !important;
    justify-content: flex-start !important;
}
.profile-timeline li:last-child {
    margin-bottom: 0;
}
.profile-timeline .year {
    font-weight: 700;
    color: #0ea5e9;
    width: 110px;
    flex-shrink: 0;
    position: relative;
    padding-right: 12px;
    text-align: right !important;
}
.profile-timeline .year::after {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 1px;
    height: 14px;
    background-color: rgba(14, 165, 233, 0.25);
}
.profile-timeline .desc {
    flex: 1;
    padding-left: 12px;
}
.profile-rich-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.profile-rich-list li {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.7;
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
    text-align: left !important;
}
.profile-rich-list li:last-child {
    margin-bottom: 0;
}
.profile-rich-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: #38bdf8;
    border-radius: 50%;
}

.news-body figure,
.news-body div,
.news-body p,
.news-body .wp-block-image,
.news-body .wp-block-image .aligncenter,
.news-body .wp-block-image .alignleft,
.news-body .wp-block-image .alignright {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}
.news-body img,
.news-body figure img,
.news-body div img,
.news-body p img,
.news-body .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.08) !important;
}
.news-body figcaption,
.news-body .wp-element-caption {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 8px auto 25px auto !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

@media (min-width: 769px) {
    .student-grid-container.teacher-independent-wrapper {
        grid-template-columns: 1fr 2fr;
    }
    .map-container iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .title-group .main-title {
        display: flex;
        flex-direction: column;
        font-size: 22px;
        line-height: 1.3;
    }
    .title-group .main-title span {
        display: block;
    }
    .nav-container {
        padding: 10px 20px;
    }
    .menu-trigger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .menu-trigger .bar {
        width: 100%;
        height: 3px;
        background-color: #0369a1;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .menu-dropdown:hover .menu-trigger .bar {
        background-color: #0ea5e9;
    }
    .dropdown-links {
        display: block;
        position: absolute;
        top: 30px;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        min-width: 200px;
        box-shadow: 0 10px 25px rgba(3, 105, 161, 0.15);
        border-radius: 16px;
        border: 1px solid #bae6fd;
        padding: 8px 0 12px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .dropdown-links a {
        display: block;
        padding: 12px 20px;
        font-size: 14px;
        color: #0369a1;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
        text-shadow: none;
    }
    .dropdown-links a:hover {
        background-color: #f0f9ff;
    }
    .menu-dropdown:hover .dropdown-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .access-row {
        flex-direction: column;
        gap: 2px;
    }
    .access-label {
        width: auto;
    }
    .to-top-button {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .hero-section {
        height: 350px;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .hero-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .sp-only {
        display: inline;
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .member-name {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .open-arrow {
        margin-left: 0;
    }
    .member-links-area {
        justify-content: center;
    }
    .member-meta {
        font-size: 11px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .index-page .hero-section {
        height: 100vh;
    }
    .index-page .menu-trigger .bar {
        background-color: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    .index-page .dropdown-links a {
        color: #075985 !important;
        text-shadow: none !important;
    }
    .index-page .dropdown-links a:hover {
        background-color: #bae6fd !important;
        color: #0369a1 !important;
    }
    .lang-switch {
        justify-content: center;
        gap: 8px;
        margin: 12px 15px 4px 15px;
        padding: 10px 0 0 0;
        border-left: none;
        border-top: 1px solid #f1f5f9;
    }
    .lang-switch a {
        padding: 5px 16px;
        border-radius: 20px;
        text-align: center;
    }
    .lang-switch a:hover {
        color: #0284c7;
        background-color: #bae6fd;
    }
    .lang-switch a.active {
        color: #ffffff !important;
        background-color: #075985 !important;
        pointer-events: none;
    }
    .lang-switch .separator {
        display: none;
    }
    
    .student-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .student-compact-card { padding: 0 !important; }
    .student-name-box { padding: 10px 8px !important; }
    .student-name-box .grade { font-size: 10px !important; padding: 2px 8px !important; }
    .student-name-box .name-ja { font-size: 14px !important; }
    .student-name-box .name-en { font-size: 11px !important; }

    .student-grid-container.teacher-independent-wrapper {
        display: block;
        height: auto;
    }
    .teacher-info-card {
        grid-column: 1 / -1 !important;
        padding: 20px !important;
        text-align: center !important;
        height: auto !important;
        display: block !important;
        overflow: visible !important;
    }
    .teacher-info-box {
        align-items: center !important;
        text-align: center !important;
    }
    .teacher-info-box .member-links-area { justify-content: center !important; }
    .teacher-info-box .name-en { display: block !important; margin-left: 0 !important; margin-top: 6px !important; }
    .news-btn-common, 
    .news-btn-disabled {
        min-width: 90px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    @media (max-width: 480px) {
    .news-nav-flex { gap: 6px; }
    .news-btn-common, .news-btn-disabled { 
        padding: 6px 10px; 
        min-width: 80px;
        font-size: 11px;
    }
}
}
.news-archive-area {
    text-align: center;
    margin-top: 20px;
    display: none;
}
.archive-year-title {
    font-size: 18px;
    font-weight: 700;
    color: #0369a1;
    border-left: 4px solid #0ea5e9;
    padding-left: 10px;
    margin: 20px 0 12px 0;
}
.archive-year-title:first-child {
    margin-top: 0;
}
.archive-month-group {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px 18px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.archive-month-title {
    font-size: 15px;
    font-weight: 700;
    color: #075985;
    margin-bottom: 8px;
}
.archive-scroll-box {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    background-color: rgba(248, 250, 252, 0.5);
    padding: 20px;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.links-grid:last-of-type {
    margin-bottom: 0;
}
.links-card-btn {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.links-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}
.links-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    background-color: rgba(248, 250, 252, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.1);
}
.links-table th {
    background-color: #0369a1;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 700;
}
.links-table td {
    padding: 12px 15px;
    color: #64748b;
}
.links-table .course-name {
    font-weight: 700;
    color: #334155;
}
.links-table tr {
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}
.links-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}
.links-table tr:last-child {
    border-bottom: none;
}
.dropdown-links a.portal-nav-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: none !important;
}

.dropdown-links a.portal-nav-btn:hover {
    background: #ffffff;
    color: #0284c7 !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
    border-color: #38bdf8;
}

@media (max-width: 768px) {
    .dropdown-links a.portal-nav-btn {
        margin: 8px 15px;
        text-align: center;
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    }
}