/* ==================================================
   基本設定
================================================== */

:root {
    --main-color: #790015;
    --main-dark: #50000e;
    --main-light: #a5132d;
    --text-color: #2b2b2b;
    --sub-text-color: #686868;
    --border-color: #dddddd;
    --light-background: #f5f4f2;
    --white: #ffffff;
    --content-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text-color);
    font-family:
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Meiryo",
        sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

img,
video {
    max-width: 100%;
}

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

a:hover {
    text-decoration: underline;
}

.content-container {
    width: min(92%, var(--content-width));
    margin: 0 auto;
}


/* ==================================================
   ヘッダー
================================================== */

.site-header {
    width: 100%;
    background: var(--white);
}

.header-inner {
    position: relative;
    width: min(92%, var(--content-width));
    margin: 0 auto;
    padding: 24px 0 22px;
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--sub-text-color);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.language-switch a {
    color: var(--main-color);
}

.site-identity {
    text-align: left;
}

.site-name {
    display: inline-flex;
    flex-direction: column;
    color: var(--text-color);
    text-decoration: none;
}

.site-name:hover {
    text-decoration: none;
}

.university-name {
    margin-bottom: 3px;
    color: var(--sub-text-color);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.laboratory-name {
    color: var(--main-color);
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        serif;
    font-size: clamp(26px, 4vw, 39px);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.35;
}

.laboratory-name-en {
    margin-top: 5px;
    color: var(--sub-text-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    letter-spacing: 0.12em;
}


/* ==================================================
   グローバルナビゲーション
================================================== */

.global-navigation {
    border-top: 1px solid #eeeeee;
    border-bottom: 4px solid var(--main-color);
    background: var(--white);
}

.global-menu {
    display: flex;
    width: min(92%, var(--content-width));
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.global-menu li {
    flex: 1;
    border-left: 1px solid #e5e5e5;
}

.global-menu li:last-child {
    border-right: 1px solid #e5e5e5;
}

.global-menu a {
    position: relative;
    display: flex;
    min-height: 69px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 6px 8px;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.global-menu a::after {
    position: absolute;
    right: 20%;
    bottom: 0;
    left: 20%;
    height: 3px;
    background: transparent;
    content: "";
}

.global-menu a:hover,
.global-menu a.current {
    background: #f8f4f5;
    color: var(--main-color);
}

.global-menu a:hover::after,
.global-menu a.current::after {
    background: var(--main-color);
}

.nav-ja {
    font-size: 14px;
    font-weight: 600;
}

.nav-en {
    margin-top: 1px;
    color: var(--sub-text-color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.global-menu a.current .nav-en,
.global-menu a:hover .nav-en {
    color: var(--main-color);
}

.menu-button {
    display: none;
}


/* ==================================================
   メイン写真スライドショー
================================================== */

.main-visual {
    width: min(100%, 1200px);
    margin: 0 auto;
    background: #eeeeee;
}

.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #eeeeee;
}

/* スライド写真 */
.slideshow .slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}

/* 表示中の写真 */
.slideshow .slide.active {
    opacity: 1;
    visibility: visible;
}

/* ボタンと説明文の表示領域 */
.slide-information {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 35px 20px 14px;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.76) 0%,
            rgba(0, 0, 0, 0.38) 55%,
            rgba(0, 0, 0, 0) 100%
        );
}

/* 写真切り替えボタン */
.slide-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 丸い切り替えボタン */
.slide-dot {
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.slide-dot:hover,
.slide-dot:focus-visible {
    transform: scale(1.2);
}

.slide-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* 表示中の写真に対応するボタン */
.slide-dot.active {
    background: #ffffff;
}

/* 写真の説明文 */
.slide-caption {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.03em;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9);
}


/* ==================================================
   共通タイトルセクション
================================================== */

.title-section {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    padding: 12px 18px;
    border-left: 7px solid var(--main-dark);
    background: var(--main-color);
}

/* タイトルセクション内を白文字に統一 */
.title-section h1,
.title-section h2,
.title-section h3,
.title-section p {
    margin: 0;
    color: var(--white);
}

.title-section h1,
.title-section h2,
.title-section h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.title-section p {
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    opacity: 0.82;
}


/* ==================================================
   研究室について
================================================== */

.laboratory-introduction {
    padding: 58px 0 50px;
}

.introduction-text {
    max-width: 920px;
    margin: 0 auto;
    color: #3b3b3b;
    font-size: 16px;
    line-height: 2;
}

.introduction-text p {
    margin: 0 0 15px;
}


/* ==================================================
   お知らせ・ニュース
================================================== */

.information-section {
    padding: 50px 0 58px;
    background: var(--light-background);
}

.information-layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(420px, 1.5fr);
    gap: 42px;
}

.information-column,
.news-column {
    min-width: 0;
}

.information-list,
.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.information-list li:first-child {
    border-top: 1px solid var(--border-color);
}

.information-list a {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    gap: 13px;
    min-height: 63px;
    padding: 12px 5px;
    color: var(--text-color);
    text-decoration: none;
}

.information-list a:hover {
    color: var(--main-color);
}

.information-language {
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.information-text {
    font-size: 14px;
}

.arrow {
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.news-box {
    height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 18px;
    border: 1px solid var(--border-color);
    background: var(--white);
    scrollbar-color:
        var(--main-color)
        #eeeeee;
    scrollbar-width: thin;
}

.news-box::-webkit-scrollbar {
    width: 8px;
}

.news-box::-webkit-scrollbar-track {
    background: #eeeeee;
}

.news-box::-webkit-scrollbar-thumb {
    border: 2px solid #eeeeee;
    background: var(--main-color);
}

.news-box:focus {
    outline: 3px solid rgba(121, 0, 21, 0.23);
    outline-offset: 2px;
}

.news-item {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 18px;
    align-items: start;
    padding: 17px 3px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-date {
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.news-text {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}


/* ==================================================
   研究室紹介動画
================================================== */

.movie-section {
    padding: 58px 0;
    background: var(--white);
}

.movie-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: #111111;
}

.movie-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}


/* ==================================================
   関連リンク
================================================== */

.related-links-section {
    padding: 50px 0 65px;
    background: var(--light-background);
}

.related-links {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-color);
    list-style: none;
}

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

.related-links li:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}

.related-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 59px;
    padding: 13px 18px;
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.related-links a:hover {
    background: var(--white);
    color: var(--main-color);
}

.related-links a span {
    color: var(--main-color);
    font-size: 13px;
}


/* ==================================================
   フッター
================================================== */

.site-footer {
    border-top: 6px solid var(--main-color);
    background: #252525;
    color: #e8e8e8;
}

.footer-inner {
    display: flex;
    width: min(92%, var(--content-width));
    margin: 0 auto;
    padding: 38px 0 34px;
    justify-content: space-between;
    gap: 40px;
}

.footer-information,
.footer-copyright {
    font-size: 12px;
    line-height: 1.8;
}

.footer-laboratory-name {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.footer-information address {
    color: #cccccc;
    font-style: normal;
}

.footer-copyright {
    max-width: 410px;
    color: #bdbdbd;
    text-align: right;
}

.footer-copyright p {
    margin: 0 0 8px;
}


/* ==================================================
   タブレット・スマートフォン
================================================== */

@media (max-width: 800px) {

    .header-inner {
        padding: 17px 0;
    }

    .language-switch {
        margin-bottom: 8px;
    }

    .university-name {
        font-size: 12px;
    }

    .laboratory-name {
        font-size: clamp(24px, 7vw, 32px);
    }

    .laboratory-name-en {
        font-size: 10px;
    }

    .global-navigation {
        position: relative;
    }

    .menu-button {
        display: flex;
        width: 92%;
        min-height: 48px;
        margin: 0 auto;
        justify-content: space-between;
        align-items: center;
        border: 0;
        background: var(--white);
        color: var(--main-color);
        font-family: Arial, sans-serif;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.12em;
        cursor: pointer;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--main-color);
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before,
    .menu-icon::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .menu-icon::before {
        top: -7px;
    }

    .menu-icon::after {
        top: 7px;
    }

    .global-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        border-top: 1px solid #e5e5e5;
    }

    .global-menu.is-open {
        display: flex;
    }

    .global-menu li {
        border: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .global-menu li:last-child {
        border-right: 0;
    }

    .global-menu a {
        min-height: 54px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 5%;
        text-align: left;
    }

    .global-menu a::after {
        display: none;
    }

    .nav-en {
        margin-top: 0;
    }

    .slideshow {
        aspect-ratio: 4 / 3;
    }

    .slide-information {
        padding: 28px 12px 12px;
    }

    .slide-caption {
        margin-top: 7px;
        font-size: 12px;
    }

    .laboratory-introduction,
    .movie-section {
        padding: 42px 0;
    }

    .information-section,
    .related-links-section {
        padding: 42px 0;
    }

    .information-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .title-section {
        margin-bottom: 18px;
        padding: 10px 14px;
    }

    .title-section h1,
    .title-section h2,
    .title-section h3 {
        font-size: 18px;
    }

    .introduction-text {
        font-size: 14px;
        line-height: 1.9;
    }

    .news-box {
        height: 230px;
        padding: 0 14px;
    }

    .related-links {
        grid-template-columns: 1fr;
    }

    .related-links li:nth-child(odd) {
        border-right: 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 25px;
    }

    .footer-copyright {
        max-width: none;
        text-align: left;
    }

}


/* ==================================================
   小型スマートフォン
================================================== */

@media (max-width: 520px) {

    .language-switch {
        font-size: 11px;
    }

    .laboratory-name {
        font-size: 24px;
        letter-spacing: 0.04em;
    }

    .laboratory-name-en {
        letter-spacing: 0.05em;
    }

    .title-section {
        display: block;
    }

    .title-section p {
        margin-top: 2px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 2px;
    }

    .news-date {
        font-size: 12px;
    }

    .information-list a {
        grid-template-columns: 60px 1fr auto;
        gap: 8px;
    }

}


/* ==================================================
   動きを減らす設定
================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .slideshow .slide {
        transition: none;
    }

}
/* ==================================================
   メンバーページ
================================================== */

/* ページタイトル */
.page-heading {
    padding: 58px 0 52px;
    border-bottom: 1px solid #e3e3e3;
    background:
        linear-gradient(
            135deg,
            #f7f4f4 0%,
            #ffffff 70%
        );
}

.page-heading-en {
    margin: 0 0 4px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.page-heading h1 {
    margin: 0;
    color: var(--text-color);
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.page-heading-description {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}


/* ページ内ナビゲーション */
.member-local-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.member-local-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-local-navigation li {
    flex: 1;
    border-left: 1px solid #e5e5e5;
}

.member-local-navigation li:last-child {
    border-right: 1px solid #e5e5e5;
}

.member-local-navigation a {
    display: block;
    padding: 15px 10px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.member-local-navigation a:hover {
    background: #f7f2f3;
    color: var(--main-color);
}


/* 各メンバーセクション */
.member-section {
    scroll-margin-top: 70px;
    padding: 64px 0;
    background: var(--white);
}

.member-section-alternate {
    background: var(--light-background);
}

.alumni-section {
    background: var(--white);
}


/* ==================================================
   教職員
================================================== */

/* 教職員を横2名で配置 */
.faculty-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.faculty-member {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 22px;
    padding: 22px;
    border-top: 4px solid var(--main-color);
    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    background: #ffffff;
}

.faculty-photo {
    display: flex;
    min-width: 110px;
    flex: 0 0 auto;
    justify-content: center;
    align-items: flex-start;
}

/*
 * HTMLのwidth・height属性を優先します。
 * 河野教授は100×130px、高武秘書は110×130pxです。
 */
.faculty-photo img {
    display: block;
    max-width: none;
    object-fit: fill;
}

.faculty-information {
    min-width: 0;
    flex: 1;
    padding: 0;
}

.member-position {
    display: inline-block;
    margin: 0 0 9px;
    padding: 3px 11px;
    background: var(--main-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.member-name {
    margin: 0;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.member-name-en {
    margin: 3px 0 17px;
    color: var(--sub-text-color);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.faculty-concurrent-position {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #dddddd;
}

.faculty-concurrent-position > p {
    margin: 0 0 5px;
    color: var(--sub-text-color);
    font-size: 12px;
    font-weight: 700;
}

.faculty-concurrent-position ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 17px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.faculty-concurrent-position a {
    font-size: 13px;
    font-weight: 600;
}

.faculty-links {
    margin-top: 17px;
}

.profile-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.profile-button:hover {
    background: var(--main-color);
    color: #ffffff;
    text-decoration: none;
}


/* ==================================================
   現役学生
================================================== */

.student-group {
    margin-top: 52px;
}

.student-group:first-of-type {
    margin-top: 0;
}

.student-group-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--main-color);
}

.student-group-heading h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.student-group-heading p {
    margin: 0;
    color: var(--sub-text-color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
}

/* PCでは横3名 */
.member-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.member-card {
    display: flex;
    min-width: 0;
    min-height: 156px;
    align-items: flex-start;
    gap: 15px;
    padding: 17px;
    border: 1px solid #dddddd;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.member-card:hover {
    border-color: #b8a1a6;
    transform: translateY(-2px);
}

/* 学生写真は90×120pxで固定 */
.member-card-photo {
    width: 90px;
    height: 120px;
    flex: 0 0 90px;
    background: #eeeeee;
}

.member-card-photo img {
    display: block;
    width: 90px;
    height: 120px;
    max-width: none;
}

.member-card-information {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.member-grade {
    display: inline-block;
    margin: 0 0 9px;
    padding: 2px 9px;
    background: var(--main-color);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.member-card h4 {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.member-research {
    margin: 9px 0 0;
    color: var(--sub-text-color);
    font-size: 12px;
    line-height: 1.6;
}

.member-research::before {
    display: block;
    margin-bottom: 1px;
    color: var(--main-color);
    content: "Research";
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
}


/* ==================================================
   OB・OG
================================================== */

.alumni-introduction {
    margin: -4px 0 40px;
    color: var(--sub-text-color);
    font-size: 14px;
}

.alumni-year-group {
    margin-top: 46px;
}

.alumni-year-group:first-of-type {
    margin-top: 0;
}

.alumni-year-group > h3 {
    margin: 0 0 20px;
    padding: 8px 13px;
    border-left: 5px solid var(--main-color);
    background: #f4f1f1;
    color: var(--text-color);
    font-size: 17px;
    font-weight: 600;
}

/* OB・OGもPCでは横3名 */
.alumni-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.alumni-card {
    display: flex;
    min-width: 0;
    min-height: 154px;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

/* OB・OG写真も90×120px */
.alumni-card img {
    display: block;
    width: 90px;
    height: 120px;
    max-width: none;
    flex: 0 0 90px;
}

.alumni-card > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0;
}

.alumni-card h4 {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.alumni-card p {
    margin: 7px 0 0;
    color: var(--sub-text-color);
    font-size: 12px;
}


/* ページ先頭へのリンク */
.back-to-top {
    margin-top: 45px;
    text-align: right;
}

.back-to-top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.back-to-top a:hover {
    text-decoration: underline;
}


/* ==================================================
   タブレット
================================================== */

@media (max-width: 960px) {

    /* タブレットでは学生とOB・OGを横2名 */
    .member-grid,
    .alumni-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /* 教職員は1段に1名 */
    .faculty-grid {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   スマートフォン
================================================== */

@media (max-width: 650px) {

    .page-heading {
        padding: 38px 0 34px;
    }

    .page-heading h1 {
        font-size: 30px;
    }

    .page-heading-description {
        font-size: 13px;
    }

    .member-local-navigation a {
        padding: 12px 5px;
        font-size: 12px;
    }

    .member-section {
        padding: 45px 0;
    }

    .faculty-grid,
    .member-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
    }

    .faculty-member {
        gap: 16px;
        padding: 17px;
    }

    .faculty-photo {
        min-width: 110px;
    }

    .member-name {
        font-size: 19px;
    }

    .faculty-concurrent-position ul {
        display: block;
    }

    .faculty-concurrent-position li {
        margin-top: 5px;
    }

    .student-group {
        margin-top: 40px;
    }

    .student-group-heading {
        display: block;
    }

    .student-group-heading p {
        margin-top: 2px;
    }

    .member-card {
        min-height: 154px;
    }

    .alumni-year-group {
        margin-top: 36px;
    }

}


/* ==================================================
   小型スマートフォン
================================================== */

@media (max-width: 420px) {

    .faculty-member {
        gap: 12px;
        padding: 14px;
    }

    .faculty-information {
        font-size: 13px;
    }

    .member-card,
    .alumni-card {
        gap: 12px;
        padding: 13px;
    }

    .member-card h4,
    .alumni-card h4 {
        font-size: 13px;
    }

}
/* ==================================================
   イベントページ
================================================== */

/* 年度ナビゲーション */
.event-year-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.event-year-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.event-year-navigation li {
    flex: 1 0 auto;
    border-left: 1px solid #e5e5e5;
}

.event-year-navigation li:last-child {
    border-right: 1px solid #e5e5e5;
}

.event-year-navigation a {
    display: block;
    min-width: 115px;
    padding: 14px 12px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.event-year-navigation a:hover {
    background: #f7f2f3;
    color: var(--main-color);
}


/* イベント一覧全体 */
.events-section {
    padding: 64px 0 75px;
    background: var(--white);
}

.event-notice {
    margin-bottom: 55px;
    padding: 20px 24px;
    border-left: 5px solid var(--main-color);
    background: var(--light-background);
}

.event-notice p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.9;
}

.event-notice p + p {
    margin-top: 6px;
    color: var(--sub-text-color);
    font-size: 13px;
}


/* 年度セクション */
.event-year-section {
    scroll-margin-top: 70px;
    margin-top: 78px;
}

.event-year-section:first-of-type {
    margin-top: 0;
}

.event-year-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--main-color);
}

.event-year-heading h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.event-year-heading p {
    margin: 0;
    color: var(--sub-text-color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
}


/* ==================================================
   イベント1件分の枠
================================================== */

.event-entry {
    position: relative;
    margin-top: 32px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
}

.event-entry:first-of-type {
    margin-top: 0;
}


/* イベント上部 */
.event-entry-header {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #e3e3e3;
    background: #f7f5f5;
}


/* 日付 */
.event-date {
    display: block;
    padding: 8px 10px;
    background: var(--main-color);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}


/* タイトル部分 */
.event-title-area {
    min-width: 0;
}


/* イベント分類 */
.event-category {
    margin: 0 0 3px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}


/* イベント名 */
.event-entry-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.5;
}


/* 説明文 */
.event-description {
    margin: 0;
    padding: 20px 26px;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}


/* 写真エリア */
.event-photo-grid {
    display: grid;
    gap: 18px;
    align-items: start;
    padding: 0 26px 26px;
}


/* 写真1枚 */
.event-photo-grid.photo-count-1 {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}


/* 写真2枚 */
.event-photo-grid.photo-count-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


/* 写真3枚 */
.event-photo-grid.photo-count-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* 写真と説明文 */
.event-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dfdfdf;
    background: #eeeeee;
}


/* 写真は切り抜かずに表示 */
.event-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    margin: 0 auto;
    background: #eeeeee;
    object-fit: contain;
}


/* 写真説明 */
.event-photo figcaption {
    min-height: 45px;
    padding: 10px 12px;
    border-top: 1px solid #dfdfdf;
    background: #f7f7f7;
    color: var(--sub-text-color);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}


/* ==================================================
   最新イベント
================================================== */

.event-entry.latest-event {
    border-color: var(--main-color);
    border-top-width: 5px;
}


/* LATEST表示 */
.event-entry.latest-event::before {
    position: absolute;
    top: 0;
    right: 24px;
    z-index: 3;
    padding: 5px 15px;
    background: var(--main-color);
    color: #ffffff;
    content: "LATEST";
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}


/* トップページ用の代表画像 */
.event-entry.latest-event img[data-top-image] {
    outline: 3px solid rgba(121, 0, 21, 0.18);
    outline-offset: -3px;
}


/* ==================================================
   卒業式用レイアウト
================================================== */

.graduation-photo-grid {
    grid-template-columns:
        2fr 1fr 1fr;
}

.graduation-photo-grid .event-photo {
    height: 100%;
}

.graduation-photo-grid .event-photo img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: contain;
}

.graduation-photo-grid .event-photo-wide img {
    min-height: 300px;
}


/* ページ先頭へのリンク */
.events-section .back-to-top {
    margin-top: 58px;
}


/* ==================================================
   イベントページ：タブレット
================================================== */

@media (max-width: 900px) {

    .event-photo-grid.photo-count-3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .graduation-photo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .graduation-photo-grid .event-photo-wide {
        grid-column: 1 / -1;
    }

}


/* ==================================================
   イベントページ：スマートフォン
================================================== */

@media (max-width: 650px) {

    .events-section {
        padding: 45px 0 55px;
    }

    .event-notice {
        margin-bottom: 42px;
        padding: 17px;
    }

    .event-year-section {
        margin-top: 58px;
        scroll-margin-top: 62px;
    }

    .event-year-heading {
        display: block;
    }

    .event-year-heading h2 {
        font-size: 23px;
    }

    .event-year-heading p {
        margin-top: 2px;
    }

    .event-entry {
        margin-top: 24px;
    }

    .event-entry-header {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 17px 16px;
    }

    .event-date {
        justify-self: start;
        min-width: 105px;
    }

    .event-entry-header h3 {
        padding-right: 0;
        font-size: 18px;
    }

    .event-description {
        padding: 17px;
        font-size: 13px;
    }

    .event-photo-grid {
        padding: 0 17px 17px;
    }

    .event-photo-grid.photo-count-1,
    .event-photo-grid.photo-count-2,
    .event-photo-grid.photo-count-3,
    .graduation-photo-grid {
        grid-template-columns: 1fr;
    }

    .graduation-photo-grid .event-photo-wide {
        grid-column: auto;
    }

    .graduation-photo-grid .event-photo img,
    .graduation-photo-grid .event-photo-wide img {
        min-height: 0;
    }

    .event-entry.latest-event::before {
        right: 15px;
    }

}


/* ==================================================
   イベントページ：小型スマートフォン
================================================== */

@media (max-width: 420px) {

    .event-year-navigation a {
        min-width: 100px;
        padding: 12px 9px;
        font-size: 12px;
    }

    .event-entry {
        padding: 0;
    }

    .event-photo figcaption {
        font-size: 11px;
    }

}
/* ==================================================
   研究内容ページ
================================================== */

/* ページ内ナビゲーション */
.research-local-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.research-local-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.research-local-navigation li {
    flex: 1 0 auto;
    border-left: 1px solid #e5e5e5;
}

.research-local-navigation li:last-child {
    border-right: 1px solid #e5e5e5;
}

.research-local-navigation a {
    display: flex;
    min-width: 180px;
    min-height: 58px;
    justify-content: center;
    align-items: center;
    padding: 11px 15px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.research-local-navigation a:hover {
    background: #f7f2f3;
    color: var(--main-color);
}


/* 研究内容一覧 */
.research-page-section {
    padding: 64px 0 75px;
    background: var(--light-background);
}

.research-page-introduction {
    margin: -2px 0 34px;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}


/* 研究テーマ一覧 */
.research-topic-list {
    display: grid;
    gap: 27px;
}


/* 研究テーマ1件分 */
.research-topic {
    position: relative;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 220px;
    overflow: hidden;
    scroll-margin-top: 85px;
    border: 1px solid #d8d8d8;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.research-topic:hover {
    border-color: #bca3a8;
    transform: translateY(-2px);
}


/* 研究テーマ番号 */
.research-topic-number {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 26px;
    border-right: 1px solid #e2e2e2;
    background: #f4f1f1;
    color: var(--main-color);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 37px;
    font-weight: 600;
    line-height: 1;
}


/* 研究テーマ本文 */
.research-topic-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px 34px;
}


/* 英語分類 */
.research-topic-category {
    margin: 0 0 7px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}


/* 研究テーマ名 */
.research-topic h2 {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(20px, 2.6vw, 27px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.65;
}


/* 後から追加する説明文 */
.research-topic-description {
    max-width: 850px;
    margin: 18px 0 0;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}


/* 後から追加する画像 */
.research-topic-image {
    max-width: 760px;
    margin: 23px 0 0;
}

.research-topic-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #dddddd;
}

.research-topic-image figcaption {
    margin-top: 7px;
    color: var(--sub-text-color);
    font-size: 11px;
    line-height: 1.6;
}


/* 詳細リンク領域 */
.research-topic-footer {
    display: flex;
    margin-top: auto;
    padding-top: 28px;
    justify-content: flex-end;
}


/* 詳細を見るボタン */
.research-more-link {
    display: inline-flex;
    min-width: 150px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 15px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.research-more-link:hover {
    background: var(--main-color);
    color: #ffffff;
    text-decoration: none;
}

.research-more-link span {
    font-family: Arial, sans-serif;
    font-size: 17px;
}


/* 準備中表示 */
.research-detail-preparing {
    align-self: flex-end;
    margin: auto 0 0;
    padding-top: 28px;
    color: #888888;
    font-size: 12px;
}


/* ページ先頭へのリンク */
.research-page-section .back-to-top {
    margin-top: 48px;
}


/* ==================================================
   研究内容ページ：タブレット
================================================== */

@media (max-width: 800px) {

    .research-page-section {
        padding: 48px 0 58px;
    }

    .research-topic {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .research-topic-number {
        padding-top: 26px;
        font-size: 31px;
    }

    .research-topic-content {
        padding: 26px;
    }

    .research-topic h2 {
        font-size: 21px;
    }

}


/* ==================================================
   研究内容ページ：スマートフォン
================================================== */

@media (max-width: 600px) {

    .research-local-navigation a {
        min-width: 150px;
        min-height: 52px;
        padding: 9px 11px;
        font-size: 12px;
    }

    .research-page-introduction {
        font-size: 13px;
    }

    .research-topic-list {
        gap: 21px;
    }

    .research-topic {
        display: block;
        min-height: 0;
        scroll-margin-top: 70px;
    }

    .research-topic-number {
        display: block;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid #e2e2e2;
        font-size: 23px;
    }

    .research-topic-content {
        padding: 22px 18px;
    }

    .research-topic-category {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .research-topic h2 {
        font-size: 19px;
        line-height: 1.7;
    }

    .research-topic-description {
        margin-top: 14px;
        font-size: 13px;
    }

    .research-topic-footer {
        padding-top: 22px;
    }

    .research-more-link {
        width: 100%;
    }

    .research-detail-preparing {
        align-self: auto;
        padding-top: 22px;
        text-align: right;
    }

}
/* ==================================================
   実験装置ページ
================================================== */

/* ページ内ナビゲーション */
.facilities-local-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.facilities-local-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.facilities-local-navigation li {
    flex: 1 0 auto;
    border-left: 1px solid #e5e5e5;
}

.facilities-local-navigation li:last-child {
    border-right: 1px solid #e5e5e5;
}

.facilities-local-navigation a {
    display: flex;
    min-width: 165px;
    min-height: 58px;
    justify-content: center;
    align-items: center;
    padding: 11px 15px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.facilities-local-navigation a:hover {
    background: #f7f2f3;
    color: var(--main-color);
}


/* 実験装置一覧全体 */
.facilities-section {
    padding: 64px 0 75px;
    background: var(--light-background);
}


/*
 * PCでは装置を横2列で表示します。
 * 装置が奇数の場合、最後の装置は左側に表示されます。
 */
.facility-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 28px;
}


/* 装置1件分 */
.facility-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    scroll-margin-top: 85px;
    border: 1px solid #d8d8d8;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.facility-item:hover {
    border-color: #bca3a8;
    transform: translateY(-2px);
}


/* 装置名ヘッダー */
.facility-item-header {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 99px;
    padding: 18px 21px;
    border-bottom: 1px solid #e2e2e2;
    background: #f7f5f5;
}


/* 装置番号 */
.facility-number {
    display: flex;
    width: 52px;
    height: 52px;
    margin: 0;
    justify-content: center;
    align-items: center;
    background: var(--main-color);
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}


/* 英語分類 */
.facility-category {
    margin: 0 0 3px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
}


/* 装置名 */
.facility-item-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
}


/* 写真とキャプション */
.facility-figure {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0;
}


/* 写真表示エリア */
.facility-image-area {
    display: flex;
    min-height: 390px;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: #eeeeee;
}


/*
 * HTMLに指定した画像サイズを上限とします。
 *
 * 550×280、550×350、446×250など、
 * 元コードの縦横比を維持します。
 *
 * 枠より画像が大きい場合のみ縮小し、
 * 小さい画像を無理に引き伸ばしません。
 */
.facility-image-area img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}


/* 写真説明 */
.facility-figure figcaption {
    min-height: 52px;
    padding: 13px 17px;
    border-top: 1px solid #dddddd;
    background: #ffffff;
    color: var(--sub-text-color);
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}


/*
 * 後から装置説明を追加する場合に使用します。
 */
.facility-description {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}


/* ページ先頭へのリンク */
.facilities-section .back-to-top {
    margin-top: 50px;
}


/* ==================================================
   実験装置ページ：タブレット
================================================== */

@media (max-width: 900px) {

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .facility-image-area {
        min-height: 330px;
    }

}


/* ==================================================
   実験装置ページ：スマートフォン
================================================== */

@media (max-width: 600px) {

    .facilities-local-navigation a {
        min-width: 145px;
        min-height: 52px;
        padding: 9px 11px;
        font-size: 12px;
    }

    .facilities-section {
        padding: 45px 0 58px;
    }

    .facility-grid {
        gap: 22px;
    }

    .facility-item {
        scroll-margin-top: 70px;
    }

    .facility-item-header {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        min-height: 84px;
        padding: 15px;
    }

    .facility-number {
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .facility-item-header h2 {
        font-size: 17px;
    }

    .facility-category {
        font-size: 8px;
    }

    .facility-image-area {
        min-height: 0;
        padding: 16px;
    }

    .facility-image-area img {
        max-height: none;
    }

    .facility-figure figcaption {
        min-height: 0;
        padding: 11px 13px;
        font-size: 11px;
    }

    .facility-description {
        padding: 0 17px 18px;
        font-size: 13px;
    }

}
/* ==================================================
   お問い合わせ・アクセスページ
================================================== */

/* ページ内ナビゲーション */
.contact-local-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #dddddd;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.contact-local-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-local-navigation li {
    flex: 1;
    border-left: 1px solid #e5e5e5;
}

.contact-local-navigation li:last-child {
    border-right: 1px solid #e5e5e5;
}

.contact-local-navigation a {
    display: block;
    padding: 15px 10px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.contact-local-navigation a:hover {
    background: #f7f2f3;
    color: var(--main-color);
}


/* 各セクション */
.contact-section {
    scroll-margin-top: 70px;
    padding: 64px 0;
    background: var(--white);
}

.access-section {
    background: var(--light-background);
}

.map-section {
    background: var(--white);
}


/* ==================================================
   連絡先
================================================== */

.contact-layout {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.contact-address-card,
.contact-person-card {
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
}

.contact-card-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 96px;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e2e2;
    background: #f7f5f5;
}

.contact-card-number {
    display: flex;
    width: 52px;
    height: 52px;
    margin: 0;
    justify-content: center;
    align-items: center;
    background: var(--main-color);
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 20px;
    font-weight: 600;
}

.contact-card-label {
    margin: 0 0 3px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.contact-card-heading h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* 住所 */
.laboratory-address {
    display: flex;
    min-height: 265px;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: var(--text-color);
    font-size: 14px;
    font-style: normal;
    line-height: 1.9;
}

.laboratory-address span,
.laboratory-address strong {
    display: block;
}

.laboratory-address .postal-code {
    margin-bottom: 5px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.laboratory-address strong {
    margin: 7px 0;
    color: var(--main-color);
    font-size: 17px;
    font-weight: 600;
}


/* 担当者情報 */
.contact-person-information {
    min-height: 265px;
    padding: 27px 30px;
}

.contact-person-information dl {
    margin: 0;
}

.contact-person-information dl > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e5e5;
}

.contact-person-information dl > div:first-child {
    border-top: 1px solid #e5e5e5;
}

.contact-person-information dt {
    color: var(--sub-text-color);
    font-size: 12px;
    font-weight: 700;
}

.contact-person-information dd {
    min-width: 0;
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-person-information dd a {
    font-family: Arial, sans-serif;
    font-weight: 600;
}

.contact-email-note {
    margin: 20px 0 0;
    padding: 12px 14px;
    border-left: 4px solid var(--main-color);
    background: #f4f1f1;
    color: var(--sub-text-color);
    font-size: 11px;
    line-height: 1.8;
}


/* ==================================================
   アクセスリンク
================================================== */

.access-introduction {
    margin: -2px 0 30px;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}

.access-link-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.access-link-card {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 135px;
    padding: 20px;
    border: 1px solid #d8d8d8;
    border-top: 4px solid var(--main-color);
    background: #ffffff;
    color: var(--text-color);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.access-link-card:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.access-link-number {
    display: flex;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    background: var(--main-color);
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 15px;
    font-weight: 600;
}

.access-link-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.access-link-label {
    margin-bottom: 3px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.access-link-content strong {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

.access-link-url {
    margin-top: 5px;
    color: var(--sub-text-color);
    font-size: 11px;
}

.access-link-arrow {
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 17px;
}


/* 管理者向けURL更新メモ */
.url-update-note {
    margin-top: 27px;
    padding: 17px 20px;
    border: 1px dashed #bdaeb1;
    background: #ffffff;
}

.url-update-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--main-color);
    font-size: 12px;
}

.url-update-note p {
    margin: 0;
    color: var(--sub-text-color);
    font-size: 12px;
    line-height: 1.8;
}

.url-update-note code {
    padding: 2px 5px;
    background: #eeeeee;
    color: #444444;
    font-family: Consolas, monospace;
    font-size: 11px;
}


/* ==================================================
   地図
================================================== */

.map-layout {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.65fr)
        minmax(480px, 1.35fr);
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
}

.map-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
    background: #f7f5f5;
}

.map-location-label {
    margin: 0 0 5px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.map-information h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.6;
}

.map-information address {
    margin-top: 18px;
    color: var(--sub-text-color);
    font-size: 13px;
    font-style: normal;
    line-height: 1.8;
}

.map-external-link {
    display: inline-flex;
    align-self: flex-start;
    min-width: 175px;
    margin-top: 25px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 14px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.map-external-link:hover {
    background: var(--main-color);
    color: #ffffff;
    text-decoration: none;
}

.map-embed {
    min-height: 430px;
    background: #eeeeee;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}


/* ページ先頭へのリンク */
.contact-section .back-to-top {
    margin-top: 44px;
}


/* ==================================================
   お問い合わせページ：タブレット
================================================== */

@media (max-width: 900px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .access-link-grid {
        grid-template-columns: 1fr;
    }

    .access-link-card {
        min-height: 105px;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .map-information {
        padding: 27px;
    }

}


/* ==================================================
   お問い合わせページ：スマートフォン
================================================== */

@media (max-width: 600px) {

    .contact-section {
        padding: 45px 0;
        scroll-margin-top: 62px;
    }

    .contact-local-navigation a {
        padding: 12px 5px;
        font-size: 12px;
    }

    .contact-card-heading {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        min-height: 84px;
        padding: 15px;
    }

    .contact-card-number {
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .contact-card-heading h3 {
        font-size: 18px;
    }

    .laboratory-address {
        min-height: 0;
        padding: 22px 18px;
        font-size: 13px;
    }

    .contact-person-information {
        min-height: 0;
        padding: 20px 18px;
    }

    .contact-person-information dl > div {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
    }

    .access-link-card {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding: 17px;
    }

    .map-information {
        padding: 22px 18px;
    }

    .map-information h3 {
        font-size: 18px;
    }

    .map-embed,
    .map-embed iframe {
        min-height: 330px;
    }

}

/* ==================================================
   研究内容・個別ページ
================================================== */

/* ページタイトル */
.research-detail-heading h1 {
    max-width: 930px;
    font-size: clamp(29px, 4.5vw, 44px);
    line-height: 1.55;
}


/* ==================================================
   パンくずリスト
================================================== */

.breadcrumb-navigation {
    border-bottom: 1px solid #e3e3e3;
    background: #ffffff;
}

.breadcrumb-navigation ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 13px 0;
    list-style: none;
}

.breadcrumb-navigation li {
    color: var(--sub-text-color);
    font-size: 11px;
    line-height: 1.6;
}

.breadcrumb-navigation li:not(:last-child)::after {
    margin-left: 7px;
    color: #999999;
    content: "?";
}

.breadcrumb-navigation a {
    color: var(--main-color);
    text-decoration: none;
}

.breadcrumb-navigation a:hover {
    text-decoration: underline;
}


/* ==================================================
   研究内容本文
================================================== */

.research-detail-section {
    padding: 64px 0 75px;
    background: var(--light-background);
}


/* 研究概要 */
.research-detail-article {
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid #d8d8d8;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
}

.research-detail-text {
    padding: 32px 38px;
}

.research-detail-text p {
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
    line-height: 2.05;
    text-align: justify;
}

.research-detail-text p + p {
    margin-top: 19px;
}

.research-detail-text .research-collaboration {
    margin-top: 24px;
    padding: 14px 17px;
    border-left: 4px solid var(--main-color);
    background: #f5f2f2;
    color: var(--sub-text-color);
    font-size: 13px;
    line-height: 1.8;
}


/* ==================================================
   研究内容の各ブロック
================================================== */

.research-detail-block {
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-top: 5px solid var(--main-color);
    background: #ffffff;
}

.research-detail-block-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 19px 25px;
    border-bottom: 1px solid #e3e3e3;
    background: #f7f5f5;
}

.research-detail-number {
    display: flex;
    width: 52px;
    height: 52px;
    margin: 0;
    justify-content: center;
    align-items: center;
    background: var(--main-color);
    color: #ffffff;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 19px;
    font-weight: 600;
}

.research-detail-label {
    margin: 0 0 3px;
    color: var(--main-color);
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.research-detail-block-heading h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
}


/* ==================================================
   研究画像
================================================== */

.research-detail-figure {
    margin: 0;
    padding: 30px;
}

.research-detail-image-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    padding: 24px;
    background: #eeeeee;
}

/*
 * HTMLに指定されている元の画像サイズを上限にします。
 * 小さい画像を無理に拡大せず、縦横比を維持します。
 */
.research-detail-image-area img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.figure-original-size .research-detail-image-area img {
    max-width: 510px;
}

.figure-square .research-detail-image-area img {
    max-width: 300px;
}


/* ==================================================
   HPT加工動画
================================================== */

.research-movie-block {
    display: grid;
    grid-template-columns:
        minmax(230px, 0.65fr)
        minmax(400px, 1.35fr);
    gap: 28px;
    align-items: center;
    margin: 0 30px 30px;
    padding: 26px;
    border-top: 1px solid #e5e5e5;
    background: #f7f7f7;
}

.research-movie-description h3 {
    margin: 0 0 15px;
    color: var(--text-color);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.research-movie-description p {
    margin: 0;
    color: var(--sub-text-color);
    font-size: 14px;
    line-height: 1.9;
}

.research-movie-description p + p {
    margin-top: 10px;
}

.research-movie-wrapper {
    background: #111111;
}

.research-movie-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
}


/* ==================================================
   研究結果
================================================== */

.research-result-text {
    padding: 28px 30px 0;
}

.research-result-text p {
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.95;
}

.research-result-text p + p {
    margin-top: 7px;
}


/* ==================================================
   ページ下部のナビゲーション
================================================== */

.research-detail-navigation {
    display: flex;
    margin-top: 45px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.research-back-link,
.research-top-link {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.research-back-link:hover,
.research-top-link:hover {
    background: var(--main-color);
    color: #ffffff;
    text-decoration: none;
}


/* ==================================================
   研究内容・個別ページ：タブレット
================================================== */

@media (max-width: 800px) {

    .research-detail-section {
        padding: 48px 0 58px;
    }

    .research-detail-text {
        padding: 27px;
    }

    .research-movie-block {
        grid-template-columns: 1fr;
    }

}


/* ==================================================
   研究内容・個別ページ：スマートフォン
================================================== */

@media (max-width: 600px) {

    .research-detail-heading h1 {
        font-size: 27px;
        line-height: 1.6;
    }

    .breadcrumb-navigation ol {
        padding: 11px 0;
    }

    .research-detail-section {
        padding: 43px 0 53px;
    }

    .research-detail-text {
        padding: 22px 18px;
    }

    .research-detail-text p {
        font-size: 13px;
        line-height: 2;
        text-align: left;
    }

    .research-detail-text .research-collaboration {
        padding: 12px 13px;
        font-size: 12px;
    }

    .research-detail-block {
        margin-top: 25px;
    }

    .research-detail-block-heading {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .research-detail-number {
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .research-detail-block-heading h2 {
        font-size: 18px;
    }

    .research-detail-figure {
        padding: 17px;
    }

    .research-detail-image-area {
        min-height: 0;
        padding: 13px;
    }

    .research-movie-block {
        gap: 19px;
        margin: 0 17px 17px;
        padding: 18px;
    }

    .research-movie-description h3 {
        font-size: 17px;
    }

    .research-movie-description p {
        font-size: 13px;
    }

    .research-result-text {
        padding: 20px 18px 0;
    }

    .research-result-text p {
        font-size: 13px;
    }

    .research-detail-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .research-back-link,
    .research-top-link {
        width: 100%;
        justify-content: space-between;
    }

}