/*
 * Sasaki Laboratory authority theme
 * Visual redesign only: existing HTML hooks, data sources and form behaviour remain intact.
 */

:root {
    --authority-navy: #082443;
    --authority-navy-deep: #04192f;
    --authority-ink: #142231;
    --authority-muted: #5f6b75;
    --authority-paper: #f4f6f6;
    --authority-rule: #d8dfe4;
    --authority-brass: #b69855;
    --authority-brass-light: #d7c38a;
    --primary-color: var(--authority-navy);
    --secondary-color: var(--authority-brass);
    --dark-color: var(--authority-ink);
    --light-color: #eef1f2;
    --gray: var(--authority-paper);
    --text-color: var(--authority-ink);
    --text-light: var(--authority-muted);
    --border-radius: 0;
    --box-shadow: none;
}

html {
    scroll-padding-top: 106px;
}

body {
    background: #fff;
    color: var(--authority-ink);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
    font-family: Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
}

.container {
    max-width: 1240px;
    padding-right: 32px;
    padding-left: 32px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--authority-ink);
}

a {
    color: inherit;
}

a:hover {
    color: var(--authority-brass);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--authority-brass);
    outline-offset: 4px;
}

/* Two-level institutional header */
.header {
    min-height: 106px;
    padding: 28px 0 0;
    border-bottom: 1px solid var(--authority-rule);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.header::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 0 max(32px, calc((100% - 1176px) / 2));
    border-bottom: 1px solid var(--authority-rule);
    background: var(--authority-paper);
    color: #43515d;
    content: "東京大学 大学院総合文化研究科 広域科学専攻 生命環境科学系";
    font: 600 9px/1.4 Arial, sans-serif;
    letter-spacing: 0.08em;
}

html[lang="en"] .header::before {
    content: "THE UNIVERSITY OF TOKYO · GRADUATE SCHOOL OF ARTS AND SCIENCES · KOMABA";
}

.header-inner {
    min-height: 77px;
    gap: 24px;
}

.logo h1,
html[lang="en"] .logo h1 {
    margin: 0;
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.main-nav ul {
    gap: clamp(12px, 1.35vw, 22px);
}

.main-nav li,
html[lang="en"] .main-nav li {
    margin-left: 0;
}

.main-nav a,
html[lang="en"] .main-nav a {
    padding: 27px 0 25px;
    color: var(--authority-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.main-nav a::after {
    bottom: 19px;
    height: 1px;
    background: var(--authority-navy);
}

.main-nav .lang-switch a,
html[lang="en"] .main-nav .lang-switch a {
    min-width: 42px;
    padding: 9px 11px;
    border: 1px solid var(--authority-navy);
    border-radius: 0;
    background: var(--authority-navy);
    color: #fff;
    text-align: center;
}

.mobile-menu-btn span {
    height: 2px;
    background: var(--authority-navy);
}

/* Hero */
.hero {
    height: 560px;
    min-height: 560px;
    margin-top: 106px;
    align-items: center;
    background: var(--authority-navy-deep);
    color: #fff;
    text-align: left;
}

.hero-slides {
    left: 42%;
}

.hero-slide {
    filter: saturate(0.76) contrast(1.03);
}

.hero-slide--campus {
    object-position: center 50%;
}

.hero-slide--lab {
    object-position: center 54%;
}

.hero-slide--group {
    object-position: center 35%;
}

.hero-overlay {
    background:
        linear-gradient(90deg, var(--authority-navy-deep) 0%, rgba(4, 25, 47, 0.98) 37%, rgba(4, 25, 47, 0.62) 63%, rgba(4, 25, 47, 0.18) 100%),
        linear-gradient(0deg, rgba(4, 25, 47, 0.34), transparent 42%);
}

.hero::before,
.hero::after {
    position: absolute;
    z-index: 2;
    content: "";
    pointer-events: none;
}

.hero::before {
    top: 46px;
    right: 0;
    left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero::after {
    top: 0;
    bottom: 0;
    left: max(32px, calc((100% - 1176px) / 2));
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    margin: 0;
    padding: 0;
}

.hero .hero-lab-title,
html[lang="en"] .english-hero-title {
    margin: 0;
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(23px, 2.45vw, 36px);
    font-weight: 500;
    line-height: 1.63;
    letter-spacing: 0.055em;
    text-shadow: none;
}

.hero-lab-title span:last-child {
    margin-top: 8px;
    font-size: clamp(36px, 4vw, 58px);
}

html[lang="en"] .english-hero-affiliation {
    max-width: 610px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.hero-slider-toggle {
    right: max(20px, calc((100% - 1176px) / 2));
    bottom: 24px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 0;
    background: rgba(4, 25, 47, 0.62);
    box-shadow: none;
    color: #fff;
}

/* Section system */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--authority-paper);
}

.section-title,
.news-section-heading h2 {
    margin: 0 0 56px;
    padding: 0 0 22px 58px;
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-align: left;
}

.section-title::before {
    position: absolute;
    top: 7px;
    left: 0;
    color: var(--authority-brass);
    content: attr(data-index);
    font: 400 17px/1 "Times New Roman", serif;
}

.section-title::after {
    right: auto;
    bottom: 0;
    left: 58px;
    width: 72px;
    height: 0;
    border-bottom: 2px solid var(--authority-navy);
    background: none;
    transform: none;
}

.section-title[data-kicker] span {
    display: block;
}

/* News */
#news {
    background: #fff;
}

.news-section-heading {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    margin-bottom: 44px;
}

.news-section-heading::before {
    padding-top: 8px;
    color: var(--authority-brass);
    content: "02";
    font: 400 17px/1 "Times New Roman", serif;
}

.news-section-heading h2 {
    margin-bottom: 0;
    padding-left: 0;
}

.news-section-heading h2::after {
    display: block;
    width: 72px;
    margin-top: 20px;
    border-bottom: 2px solid var(--authority-navy);
    content: "";
}

.news-section-heading p {
    grid-column: 2;
    margin: 0 0 44px;
    color: var(--authority-muted);
    font: 700 10px/1.5 Arial, sans-serif;
    letter-spacing: 0.14em;
}

.news-list {
    border-top: 2px solid var(--authority-navy);
}

.news-row {
    min-height: 94px;
    grid-template-columns: 112px 82px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 0 8px;
    border-bottom: 1px solid var(--authority-rule);
    border-radius: 0;
}

.news-row:hover,
.news-row:focus-visible {
    background: var(--authority-paper);
    transform: none;
}

.news-item time {
    color: var(--authority-ink);
    font: 600 12px/1 Arial, sans-serif;
    letter-spacing: 0.08em;
}

.news-category {
    padding: 5px 7px;
    border: 1px solid var(--authority-navy);
    border-radius: 0;
    background: transparent;
    color: var(--authority-navy);
    font-size: 10px;
    text-align: center;
}

.news-item h3 {
    color: var(--authority-navy);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
}

.news-index-link {
    margin-top: 28px;
    text-align: right;
}

.news-index-link a,
.achievement-more {
    display: inline-flex;
    gap: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    color: var(--authority-navy);
    font-size: 12px;
    font-weight: 700;
}

/* About / principal investigator */
#about {
    background: #fff;
}

.about-content {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(48px, 7vw, 90px);
}

.about-image {
    order: -1;
    max-width: 300px;
    padding: 0;
    border: 0;
    background: none;
}

.about-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 52% center;
    border-radius: 0;
    filter: saturate(0.75) contrast(1.02);
    box-shadow: none;
}

.about-image img:hover {
    transform: none;
}

.about-text {
    padding: 0;
}

.about-text > h3 {
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--authority-rule);
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 27px;
    font-weight: 600;
}

.about-text > p,
.about-text .member-bio p {
    color: #46545f;
    font-size: 14px;
    line-height: 2;
}

.about-profile-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin: 28px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--authority-rule);
}

.about-profile-name strong {
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 24px;
}

.about-profile-name span,
.about-profile-name a {
    font-size: 11px;
}

.about-profile-name a {
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    color: var(--authority-navy);
    font-weight: 700;
}

.about-text div[style*="margin-top"] {
    margin-top: 46px !important;
    padding: 28px 0;
    border-top: 1px solid var(--authority-rule);
    border-bottom: 1px solid var(--authority-rule);
}

.about-text div[style*="margin-top"] h3 {
    margin-bottom: 18px !important;
    color: var(--authority-muted) !important;
    font: 700 10px/1.5 Arial, sans-serif !important;
    letter-spacing: 0.14em;
}

.about-text span[style] {
    padding: 7px 13px !important;
    border: 1px solid var(--authority-rule);
    border-radius: 0 !important;
    background: var(--authority-paper) !important;
    color: #34434f !important;
    font-size: 12px !important;
}

/* Research */
#research {
    background: var(--authority-paper);
}

.research-intro {
    max-width: 980px;
    margin: -16px 0 58px 58px;
    color: #33424e;
    line-height: 2;
}

.research-theme,
.research-theme.reverse {
    position: relative;
    min-height: 390px;
    margin: 0;
    display: grid;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-top: 1px solid var(--authority-rule);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.research-theme:not(.reverse) {
    grid-template-columns: 30% 70%;
}

.research-theme.reverse {
    grid-template-columns: 70% 30%;
}

.research-theme:not(.reverse) .research-theme-content {
    order: 2;
}

.research-theme:not(.reverse) .research-theme-image {
    order: 1;
}

.research-theme.reverse .research-theme-content {
    order: 1;
}

.research-theme.reverse .research-theme-image {
    order: 2;
}

.research-theme:last-of-type {
    border-bottom: 1px solid var(--authority-rule);
}

.research-theme::after {
    position: absolute;
    top: 26px;
    right: 32px;
    color: #e3e8eb;
    content: attr(data-theme-number);
    font: 400 76px/1 "Times New Roman", serif;
}

.research-theme-content {
    position: relative;
    z-index: 1;
    padding: 50px clamp(34px, 5vw, 72px);
}

.research-theme h3 {
    max-width: 570px;
    margin-bottom: 24px;
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(23px, 2.1vw, 31px);
    font-weight: 600;
    line-height: 1.55;
}

.research-theme h3::after {
    display: none;
}

.research-theme p {
    color: #41505c;
    font-size: 14px;
    line-height: 2;
}

.research-theme-image {
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 0;
    border-right: 1px solid var(--authority-rule);
    border-radius: 0;
    background: #eef1f2;
}

.research-theme.reverse .research-theme-image {
    border-right: 0;
    border-left: 1px solid var(--authority-rule);
}

.research-theme-image img {
    width: 100%;
    max-height: 290px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.research-theme-image:hover img {
    transform: none;
}

.research-more {
    margin-top: 42px;
    text-align: center;
}

.research-more .btn {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* Members */
#members {
    background: var(--authority-navy);
    color: #fff;
}

#members .section-title,
#members h3,
#members h4,
#members a,
#members p,
#members li {
    color: #fff;
}

#members .section-title::before {
    color: var(--authority-brass-light);
}

#members .section-title::after {
    border-color: var(--authority-brass);
}

.member-category {
    margin-bottom: 0;
    padding: 25px 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 0;
}

.member-category:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.member-category h3 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 19px;
}

.member-card {
    gap: 34px;
    padding: 4px 0 12px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.member-image {
    flex: 0 0 150px;
}

.member-image img {
    height: 180px;
    border-radius: 0;
    filter: saturate(0.72);
}

.member-info h4 {
    margin-bottom: 6px;
    font-size: 20px;
}

.member-title,
.member-bio {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 12px;
}

#members .member-category > div[style],
#members .member-category > ul[style] {
    margin: 0 !important;
    font-size: 14px !important;
}

#members .member-category li[style] {
    margin-bottom: 10px !important;
}

#members .member-researchmap {
    border-color: rgba(255, 255, 255, 0.64);
}

/* Achievements */
#publications,
.achievement-page {
    background: var(--authority-paper);
}

.achievement-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--authority-ink);
    border-left: 1px solid var(--authority-rule);
}

.achievement-preview {
    min-width: 0;
    padding: 0 28px 28px;
    border-right: 1px solid var(--authority-rule);
    border-bottom: 1px solid var(--authority-rule);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.achievement-preview > h3 {
    min-height: 82px;
    display: flex;
    align-items: center;
    margin: 0;
    border-bottom: 2px solid var(--authority-navy);
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 21px;
}

.achievement-item {
    display: block;
    padding: 23px 0;
    border-color: var(--authority-rule);
}

.achievement-date {
    display: block;
    margin-bottom: 8px;
    color: var(--authority-brass);
    font: 700 11px/1 Arial, sans-serif;
}

.achievement-title {
    margin-bottom: 5px;
    color: var(--authority-navy);
    font-size: 13px;
    line-height: 1.65;
}

.achievement-authors,
.achievement-detail {
    margin-bottom: 4px;
    color: var(--authority-muted);
    font-size: 11px;
    line-height: 1.65;
}

.achievement-more {
    margin-top: 22px;
}

.achievement-archive {
    max-width: none;
    border-top: 2px solid var(--authority-navy);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.achievement-archive .achievement-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 28px;
    padding: 28px 30px;
}

.achievement-archive .achievement-date {
    grid-row: 1 / span 4;
    padding-top: 4px;
    font-size: 12px;
}

/* Research environment */
#facilities {
    background: #fff;
}

.facility-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    border: 1px solid var(--authority-rule);
}

.facility-visual {
    min-height: 500px;
    overflow: hidden;
}

.facility-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72);
}

.facility-category {
    margin: 0;
    padding: 46px 40px;
    border-left: 1px solid var(--authority-rule);
    background: var(--authority-paper);
}

.facility-category h3 {
    margin: 0 0 22px;
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 27px;
}

.facility-list {
    display: block;
    padding-inline-start: 1.25rem;
    border-top: 0;
    list-style: disc outside;
}

.facility-list li {
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--authority-ink);
    font-size: 13px;
    text-align: left;
}

.facility-list li::before {
    content: none;
}

.facility-list li::marker {
    color: var(--authority-brass);
}

.facility-list li:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.facility-list-note {
    margin: 7px 0 0 1.25rem;
    color: var(--authority-muted);
    font-size: 13px;
}

/* Collaboration */
#contact {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    background: var(--authority-brass);
    color: var(--authority-navy-deep);
}

#contact::before {
    position: absolute;
    inset: 0 0 0 auto;
    width: clamp(210px, 23vw, 430px);
    background: rgba(4, 25, 47, 0.08);
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
    content: "";
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact .section-title {
    margin-bottom: 30px;
    color: var(--authority-navy-deep);
}

#contact .section-title::before {
    color: rgba(4, 25, 47, 0.64);
}

#contact .section-title::after {
    border-color: var(--authority-navy-deep);
}

#contact .research-participant,
#contact .research-participant[style] {
    max-width: 780px;
    text-align: left !important;
}

#contact .research-participant p,
#contact .research-participant p[style] {
    margin: 0;
    color: var(--authority-navy-deep);
    font-size: 15px !important;
    line-height: 2;
}

#contact .research-participant a {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--authority-navy);
    font-weight: 800;
}

#contact .research-participant a:hover {
    color: var(--authority-navy-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#contact .research-participant a:focus-visible {
    outline-color: var(--authority-navy-deep);
}

/* Access and laboratory gallery */
#access {
    background: #fff;
}

.access-content {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 7vw;
    align-items: center;
}

.access-info h3 {
    margin: 0 0 18px;
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 26px;
}

.access-info address {
    margin-bottom: 28px;
    color: var(--authority-ink);
    line-height: 2;
}

.access-station {
    padding: 20px 0;
    border-top: 1px solid var(--authority-rule);
    border-bottom: 1px solid var(--authority-rule);
}

.access-map {
    min-height: 450px;
    overflow: hidden;
    border: 1px solid var(--authority-rule);
    border-radius: 0;
}

.access-map iframe {
    min-height: 450px;
    filter: saturate(0.82) contrast(0.98);
}

.culture-figure {
    margin: 58px 0 0;
}

.culture-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.culture-images img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    filter: saturate(0.78);
}

.culture-images img:first-child {
    object-position: 50% 24%;
}

.culture-figure figcaption {
    padding-top: 12px;
    color: var(--authority-muted);
    font: 700 10px/1.5 Arial, sans-serif;
    letter-spacing: 0.13em;
}

/* Linked-page mastheads */
.page-header,
.volunteer-header {
    position: relative;
    overflow: hidden;
    margin-top: 106px;
    padding: 78px 0 66px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    background: var(--authority-navy-deep) !important;
    color: #fff;
    text-align: left !important;
}

.page-header::before,
.volunteer-header::before {
    position: absolute;
    top: 0;
    right: max(32px, calc((100% - 1176px) / 2));
    bottom: 0;
    width: min(34vw, 430px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    content: "";
    transform: skewX(-10deg);
}

.page-header .container,
.volunteer-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1,
.volunteer-header h1,
.page-header h1[style],
.volunteer-header h1[style] {
    margin: 0 0 14px !important;
    color: #fff !important;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(34px, 4.2vw, 52px) !important;
    font-weight: 500;
    line-height: 1.35;
}

.page-header p,
.volunteer-header p,
.page-header p[style] {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px !important;
}

.achievement-page,
main[style*="padding-top: 2rem"],
.document-page,
.volunteer-content,
.article-page {
    background: var(--authority-paper);
}

main[style*="padding-top: 2rem"] {
    padding-top: 0 !important;
}

.article-page {
    min-height: 60vh;
    padding-top: 166px !important;
}

#article-container {
    max-width: 900px !important;
    padding: 56px 64px;
    border-top: 2px solid var(--authority-navy);
    background: #fff;
}

#article-container h1[style] {
    color: var(--authority-navy) !important;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 600;
    line-height: 1.5;
}

#article-container time[style] {
    color: var(--authority-brass) !important;
    font: 700 12px/1 Arial, sans-serif;
}

.news-article-image {
    margin: 0 0 36px;
    border: 1px solid var(--authority-rule);
    background: var(--authority-paper);
}

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

#article-container .article-content[style] {
    color: #3e4d59;
    font-size: 14px !important;
    line-height: 2 !important;
}

#article-container .article-content a {
    color: var(--authority-navy);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-color: var(--authority-brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.24em;
}

#article-container .article-content a:hover {
    color: #6f5419;
    text-decoration-color: currentColor;
}

/* Live volunteer form */
.volunteer-content {
    max-width: none;
    padding: 76px max(32px, calc((100% - 980px) / 2)) 100px;
}

.volunteer-description {
    margin-bottom: 34px;
    padding: 30px 34px;
    border: 1px solid var(--authority-rule);
    border-left: 3px solid var(--authority-brass);
    border-radius: 0;
    background: #fff;
    color: #3d4c58;
    font-size: 14px;
}

.volunteer-form-container {
    padding: clamp(32px, 5vw, 58px);
    border: 1px solid var(--authority-rule);
    border-top: 2px solid var(--authority-navy);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.volunteer-form-container h2 {
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--authority-rule);
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 25px;
}

.volunteer-withdrawal-note {
    border-left-color: var(--authority-brass) !important;
    border-radius: 0 !important;
    background: var(--authority-paper) !important;
    font-size: 13px;
}

.form-group label {
    color: var(--authority-ink);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #bcc6ce;
    border-radius: 0;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--authority-navy);
    box-shadow: 0 0 0 2px rgba(8, 36, 67, 0.1);
}

.btn,
.form-group .btn {
    min-height: 50px;
    border: 1px solid var(--authority-navy);
    border-radius: 0;
    background: var(--authority-navy);
    color: #fff;
    box-shadow: none;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.btn:hover,
.form-group .btn:hover {
    background: #fff;
    color: var(--authority-navy);
    transform: none;
    box-shadow: none;
}

/* Privacy and English document pages */
.document-page {
    padding: 166px 0 100px;
}

.document-container {
    max-width: 960px;
    padding: clamp(36px, 6vw, 70px);
    border-top: 2px solid var(--authority-navy);
    background: #fff;
}

.page-kicker {
    color: var(--authority-brass);
    font: 700 10px/1.5 Arial, sans-serif;
    letter-spacing: 0.14em;
}

.document-page h1 {
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 600;
}

.document-page h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--authority-rule);
    color: var(--authority-navy);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 22px;
}

.document-page p,
.document-page li,
.document-page address {
    color: #3f4e5a;
    font-size: 14px;
}

.document-contact {
    padding: 26px 30px;
    border-left: 3px solid var(--authority-brass);
    border-radius: 0;
    background: var(--authority-paper);
}

/* Footer */
.footer {
    padding: 72px 0 26px;
    background: var(--authority-navy-deep);
    color: #fff;
}

.footer-content {
    grid-template-columns: 0.85fr 1.4fr;
    gap: 7vw;
    padding-bottom: 58px;
}

.footer-logo h3 {
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.8;
}

.footer-links {
    gap: 30px;
}

.footer-column h4 {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--authority-brass-light);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 15px;
}

.footer-column h4::after {
    display: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.72);
    font: 600 11px/1.6 Arial, sans-serif;
    letter-spacing: 0.06em;
}

.language-switch a {
    color: rgba(255, 255, 255, 0.72);
}

.language-switch a.active {
    color: #fff;
}

.back-to-top {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 0;
    background: var(--authority-navy);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .main-nav ul {
        gap: 10px;
    }

    .main-nav a,
    html[lang="en"] .main-nav a {
        font-size: 10px;
    }

    .logo h1,
    html[lang="en"] .logo h1 {
        font-size: 17px;
    }

    .achievement-preview-grid {
        grid-template-columns: 1fr;
    }

    .achievement-preview {
        display: grid;
        grid-template-columns: 180px 1fr auto;
        gap: 25px;
        align-items: start;
        padding-top: 24px;
    }

    .achievement-preview > h3 {
        min-height: 0;
        padding-bottom: 16px;
    }

    .achievement-more {
        align-self: end;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 72px;
    }

    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .header {
        min-height: 72px;
        padding-top: 0;
    }

    .header::before {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .logo h1,
    html[lang="en"] .logo h1 {
        font-size: 16px;
    }

    .main-nav {
        top: 72px;
        padding: 18px 20px 28px;
        border-top: 1px solid var(--authority-rule);
        background: #fff;
    }

    .main-nav ul {
        gap: 0;
    }

    .main-nav a,
    html[lang="en"] .main-nav a {
        padding: 12px 0;
        font-size: 13px;
    }

    .main-nav .lang-switch a,
    html[lang="en"] .main-nav .lang-switch a {
        margin-top: 8px;
        padding: 10px 14px;
    }

    .hero {
        height: 520px;
        min-height: 520px;
        margin-top: 72px;
    }

    .hero-slides {
        left: 0;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(4, 25, 47, 0.92), rgba(4, 25, 47, 0.46));
    }

    .hero-lab-title,
    html[lang="en"] .english-hero-title {
        font-size: 20px;
        line-height: 1.75;
    }

    .hero-lab-title span:last-child {
        font-size: 35px;
    }

    .section {
        padding: 66px 0;
    }

    #contact::before {
        width: 92px;
        clip-path: polygon(52% 0, 100% 0, 100% 100%, 0 100%);
    }

    .section-title,
    .news-section-heading h2 {
        margin-bottom: 42px;
        padding-left: 40px;
        font-size: 30px;
    }

    .section-title::after {
        left: 40px;
    }

    .news-section-heading {
        grid-template-columns: 40px 1fr;
    }

    .news-section-heading h2 {
        margin-bottom: 0;
        padding-left: 0;
    }

    .news-row {
        min-height: 0;
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
        padding: 20px 4px;
    }

    .news-item time {
        grid-column: 1;
        grid-row: 1;
    }

    .news-category {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        white-space: nowrap;
    }

    .news-item h3 {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .news-arrow {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-image {
        max-width: 260px;
        margin: 0 auto;
    }

    .research-intro {
        margin: 0 0 38px;
    }

    .research-theme,
    .research-theme.reverse,
    .research-theme:not(.reverse) {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .research-theme .research-theme-content,
    .research-theme.reverse .research-theme-content,
    .research-theme:not(.reverse) .research-theme-content {
        order: 2;
        padding: 38px 26px 46px;
    }

    .research-theme .research-theme-image,
    .research-theme.reverse .research-theme-image,
    .research-theme:not(.reverse) .research-theme-image {
        min-height: 270px;
        order: 1;
        border: 0;
        border-bottom: 1px solid var(--authority-rule);
    }

    .research-theme::after {
        top: 304px;
        right: 20px;
        font-size: 54px;
    }

    .member-card {
        grid-template-columns: 1fr;
    }

    .member-image {
        max-width: 180px;
    }

    .achievement-preview-grid {
        display: block;
    }

    .achievement-preview {
        display: block;
    }

    .achievement-preview > h3 {
        margin-bottom: 0;
    }

    .facility-layout,
    .access-content {
        grid-template-columns: 1fr;
    }

    .facility-visual {
        min-height: 340px;
    }

    .facility-category {
        border-top: 1px solid var(--authority-rule);
        border-left: 0;
    }

    .access-map,
    .access-map iframe {
        min-height: 360px;
    }

    .culture-images {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .culture-images img {
        aspect-ratio: 16 / 10;
    }

    .page-header,
    .volunteer-header {
        margin-top: 72px;
        padding: 58px 0 50px !important;
    }

    .achievement-archive .achievement-item {
        grid-template-columns: 1fr;
        padding: 24px 22px;
    }

    .achievement-archive .achievement-date {
        grid-row: auto;
    }

    .article-page {
        padding: 116px 18px 60px !important;
    }

    #article-container {
        padding: 36px 24px;
    }

    .news-article-image {
        margin-bottom: 28px;
    }

    .volunteer-content {
        padding: 48px 20px 70px;
    }

    .document-page {
        padding: 116px 20px 70px;
    }

    .document-container {
        padding: 32px 24px;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 520px) {
    .hero {
        height: 500px;
        min-height: 500px;
    }

    .hero-lab-title span:last-child {
        font-size: 30px;
    }

    .section-title,
    .news-section-heading h2 {
        font-size: 27px;
    }

    .facility-category,
    .volunteer-form-container {
        padding: 30px 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
