@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Zen+Kaku+Gothic+New&display=swap');

/*------------------------------------------------------------
	デフォルトスタイル
------------------------------------------------------------*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 1em;
}

html {
    font-size: 62.5%;
}

body, table, input, textarea, select, option {
    font-family: "Noto Sans JP", "游ゴシック", "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}


article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
    display: block;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

:focus {
    outline: 0;
}

ins {
    text-decoration: none;
}

del {
    text-decoration: line-through;
}

img {
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

a,
a:link {
    color: #222;
    text-decoration: none;
    transition: .3s;
    -webkit-transition: .3s;
}

a:visited {
    color: #222;
}

a:hover {
    color: #222;
}

a:active {
    color: #222;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

@media all and (max-width: 767px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }
}

body {
    font-size: 1.6rem;
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    background-color: #fff;
    background-image: linear-gradient(180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 25%,
        rgba(235, 248, 255, 1) 40%,
        rgba(235, 248, 255, 1) 60%,
        rgba(255, 255, 255, 1) 75%,
        rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 38%;
    left: 0;
    width: 100%;
    height: 24%;
    background:
        radial-gradient(ellipse 80% 100% at 25% 50%, rgba(200, 230, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 100% at 75% 50%, rgba(180, 220, 250, 0.15) 0%, transparent 55%);
    animation: bodyGradientMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 40%;
    left: 0;
    width: 100%;
    height: 20%;
    background:
        radial-gradient(ellipse 60% 100% at 50% 50%, rgba(220, 210, 245, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 100% at 70% 50%, rgba(210, 200, 240, 0.1) 0%, transparent 55%);
    animation: bodyGradientMove2 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bodyGradientMove {
    0%, 100% {
        transform: translateX(-15%);
        opacity: 1;
    }
    50% {
        transform: translateX(15%);
        opacity: 0.5;
    }
}

@keyframes bodyGradientMove2 {
    0%, 100% {
        transform: translateX(15%);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-15%);
        opacity: 1;
    }
}

/* 背景ラインアニメーション */
.bg-lines-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    perspective: 1000px;
}

.bg-line-layer {
    position: absolute;
    top: max(60%, 700px);
    left: 50%;
    width: 100%;
    height: auto;
    aspect-ratio:1440 / 372;
    background-image: url(../img/bg_line.png);
    background-repeat: repeat;
    background-size: 100% 100%;
    opacity: 1;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    transition: top 0.3s ease-out;
}

.bg-line-1 {
    animation: rotateLines1 20s ease-in-out infinite;
}

.bg-line-2 {

    animation: rotateLines2 25s ease-in-out infinite;
    opacity: 0.5;
}

.bg-line-3 {
    animation: rotateLines3 30s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes rotateLines1 {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotate(4deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    75% {
        transform: translate(-50%, -50%) rotate(-4deg);
    }
}

@keyframes rotateLines2 {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    33% {
        transform: translate(-50%, -50%) rotate(-6deg);
    }
    66% {
        transform: translate(-50%, -50%) rotate(6deg);
    }
}

@keyframes rotateLines3 {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(5deg);
    }
}
@media all and (max-width: 767px) {
    body {
        font-size: 1.6rem;
        font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
        background: #FFF;
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 1) 3%,
                rgba(224, 243, 255, 1) 8%,
                rgba(224, 243, 255, 1) 78%,
                rgba(255, 255, 255, 1) 90%,
                rgba(255, 255, 255, 1) 100%);
    }
}
/* ローディング画面 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 15%,
        rgba(240, 248, 255, 1) 30%,
        rgba(230, 245, 255, 1) 50%,
        rgba(240, 248, 255, 1) 70%,
        rgba(255, 255, 255, 1) 85%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

#loading-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, rgba(180, 220, 255, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 70% 60%, rgba(200, 235, 255, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 30%, rgba(190, 225, 250, 0.4) 0%, transparent 50%);
    animation: loadingGradientMove 6s ease-in-out infinite;
    pointer-events: none;
}

#loading-screen::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 50% 50% at 60% 50%, rgba(210, 240, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 25% 60%, rgba(195, 230, 255, 0.35) 0%, transparent 55%);
    animation: loadingGradientMove2 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loadingGradientMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15%, -10%) scale(1.05);
    }
    66% {
        transform: translate(-10%, 15%) scale(0.95);
    }
}

@keyframes loadingGradientMove2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20%, 10%) scale(1.1);
    }
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    text-align: center;
}

.loading-logo {
    margin-bottom: 20px;
}

.rotating-logo {
    width: 40vw;
    max-width:600px;
    min-width:350px;
    height: auto;
    /* animation: rotate3D 2s linear infinite; */
    filter: drop-shadow(0 1px 1px rgba(100, 100, 100, 0.5));
}

@keyframes rotate3D {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(90deg) rotateX(15deg);
    }
    50% {
        transform: perspective(1000px) rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: perspective(1000px) rotateY(270deg) rotateX(-15deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) rotateX(0deg);
    }
}

.loading-text {
    font-size: 1.6rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.page-header {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.page-header .page-header-logo {
    position: absolute;
    left: 10px;
    top: 10px;
    width:10%;
    min-width:140px;
    z-index: 10;
}

.page-header .page-header-image {
    margin: 0 auto;
}

.page-header .page-header-image img {
    width: 100%;
}

/* PC版ヘッダー：背景画像 + タイトル画像 */
.page-header .page-header-image.pc {
    position: relative;
    width: 100%;
    height: 784px;
    overflow: hidden;
}

.page-header .page-header-image.pc .mv-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    max-width: none;
    height: auto;
}

.page-header .page-header-image.pc .mv-title {
    position: absolute;
    top: 18%;
    left: calc(50% - 520px);
    width: 600px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.page-header .page-header-image.pc .mv-title.fade-up {
    opacity: 1;
    transform: translateY(0);
}

@media all and (max-width: 1100px) {
    .page-header .page-header-image.pc .mv-title {
        left: 4%;
    }
}

/* SP版ヘッダー：背景画像 + タイトル画像 */
.page-header .page-header-image.sp {
    position: relative;
    width: 100%;
    aspect-ratio: 786 / 1200;
    overflow: hidden;
}

.page-header .page-header-image.sp .mv-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header .page-header-image.sp .mv-title {
    position: absolute;
    top: 18%;
    left: 5%;
    width: 80%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.page-header .page-header-image.sp .mv-title.fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* メインコンテンツラッパー（ヘッダーに被せる） */
.main-content-wrapper {
    position: relative;
    z-index: 3;
    margin-top: -400px;
}

@media all and (max-width: 767px) {
    .main-content-wrapper {
        margin-top: -220px;
    }
}

/* ヘッダー */
.list-header {
    max-width: 1040px;
    margin: 0 auto 40px;
    padding:0 4%;
    position: relative;
    z-index: 2;
}

.list-title {
    font-size: 3.6rem;
    font-weight: 400;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 30px;
    font-family: "Oswald", sans-serif;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6);
}

.list-title-ja {
    font-size: 1.4rem;
    color: #666;
    font-weight: normal;
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

/* プロジェクトグリッド */
.projects-container {
    max-width: 1040px;
    padding: 0 4%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    position: relative;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.8s ease-out;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.project-card.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    aspect-ratio: 310 / 200;
    object-fit: cover;
    background: #fff;
    display: flex;
    padding-top: 8px;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.4rem;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg,
        rgb(100, 180, 220) 0%,
        rgb(140, 200, 230) 25%,
        rgb(180, 215, 235) 50%,
        rgb(200, 225, 240) 75%,
        rgb(230, 240, 250) 100%
    );
    z-index: 1;
}

.project-image img {
    width: 100%;
}

.project-image.contain-img {
    background: #f5f5f5;
}

.project-image.contain-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 20px 20px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-org-title-label span{
    background:#efefef;
    font-size:12px;
    line-height: 1.4;
    color: #333;
    padding:4px 6px;
    border-radius:4px;
}

.project-org-title {
    font-size: 2.0rem;
    font-weight: 700;
    color: #1a5c6b;
    margin-bottom: 20px;
    margin-top: 10px;
    line-height: 1.6;
}

.project-title {
    font-size: 2.0rem;
    font-weight: 700;
    color: #1a5c6b;
    margin-bottom: 20px;
    margin-top: 10px;
    line-height: 1.6;
    display: none;
}

.project-org-title .highlight,
.project-title .highlight {
    border-bottom: none;
    padding-bottom: 0;
}

.project-researcher {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.researcher-avatar {
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    object-fit: cover;
    border-radius: 50%;
}

.researcher-details {
    flex: 1;
}

.researcher-affiliation {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: #333;
}

.researcher-role {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #006777;
}

.researcher-name {
    font-weight: 700;
    font-size: 1.8rem;
    color: #333;
}

/* モーダル */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
}

.modal-content {
    background: transparent;
    max-width: 1000px;
    width: 100%;
    padding: 0;
    margin: 40px auto;
    position: relative;
    box-sizing: border-box;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-main {
    padding: 50px 0;
    background: url(../img/modal-bg.jpg) center center;
    background-size: cover;
}

/* ブロック1：header + intro（右側に余白） */
.modal-block-top {
    background: rgba(255, 255, 255, 0.8);
    margin-right: 60px;
    margin-bottom: 30px;
    position: relative;
    padding:50px 40px 40px;
}

.modal-block-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg,
        rgba(100, 180, 220, 0.9) 0%,
        rgba(140, 200, 230, 0.8) 25%,
        rgba(180, 215, 235, 0.6) 50%,
        rgba(200, 225, 240, 0.4) 75%,
        rgba(230, 240, 250, 0.2) 100%
    );
}

/* ブロック2：solution（左側に余白） */
.modal-block-bottom {
    background: rgba(255, 255, 255, 0.8);
    margin-left: 60px;
    margin-bottom: 30px;
    position: relative;
}

.modal-block-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg,
        rgba(100, 180, 220, 0.9) 0%,
        rgba(140, 200, 230, 0.8) 25%,
        rgba(180, 215, 235, 0.6) 50%,
        rgba(200, 225, 240, 0.4) 75%,
        rgba(230, 240, 250, 0.2) 100%
    );
}

/* ブロック3：researcher（グラデーションなし） */
.modal-block-researcher {
    background: rgba(255, 255, 255, 0.8);
    margin-left: 60px;
    margin-right: 60px;
    position: relative;
    border:1px solid #ccc;
}

.modal-close {
    position: absolute;
    top: -5px;
    right: -55px;
    width: 50px;
    height: 46px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close::before, .modal-close::after { /* 共通設定 */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px; /* 棒の幅（太さ） */
  height: 46px; /* 棒の高さ */
  background: #fff;
}



.modal-close::before {
  transform: translate(-50%,-50%) rotate(45deg);
}
 
.modal-close::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

/* モーダル ヘッダー部分 */
.modal-header {
    display: flex;
    align-items: stretch;
    margin-bottom:30px;
}

/* PC版：縦書き＋左ボーダー */
.modal-header .title-label {
    width:100px;
    height:100px;
    padding: 10px;
    font-size: 1.3rem;
    color: #006777;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #006777;
}

.modal-header .title-content {
    padding: 0 0 0 25px;
    flex: 1;
}

.modal-content .main-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.6;
    color: #1a5c6b;
}

.modal-content .main-org-title {
    display: none;
}

.modal-content .main-title .highlight {
    border-bottom: none;
    padding-bottom: 0;
}

/* モーダル イントロ部分 */
.modal-intro {

}

.modal-content .intro-text {
    line-height: 2;
    margin-bottom: 0;
    font-size: 1.5rem;
    color: #333;
}

/* モーダル SOLUTION&VISION セクション */
.modal-solution {
    padding: 50px 40px 40px;
}

.modal-content .section-label {
    font-family: "Oswald", sans-serif;
    color: #00AFEC;
    font-size: 2.0rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.modal-content .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #1a5c6b;
}

.modal-content .content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 0;
}

.modal-content .text-content {
    flex: 1;
    line-height: 2;
    color: #333;
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .modal-content{
        background: url(../img/modal-bg.jpg);
        background-size: cover;
        padding: 20px 0;
    }
    .modal-content .content-wrapper {
        display: block;
        margin-bottom: 0;
    }
    .modal-main{
        padding:20px 0;
        background:none;
    }

    .modal-block-top {
        padding: 40px 20px 30px;
        margin-right:20px;
        margin-bottom:20px;
    }
    .modal-header {
        display: block;
        margin-bottom:20px;
    }
    /* SP版：横書きグラデーションラベル */
    .modal-header .title-label {
        height:auto;
        text-align: center;
        aspect-ratio:unset;
        display: inline-block;
        writing-mode: horizontal-tb;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 6px 16px;
        margin-bottom: 15px;
        min-width: auto;
    }
    .modal-header .title-content {
        padding: 0;
    }
    .modal-solution {
        padding: 40px 20px 30px;
    }


    .modal-block-bottom{
        margin-left:20px;
        margin-bottom:20px;
    }

    .modal-block-researcher{
        margin-left:20px;
        margin-right:20px;
    }
    .modal-content .researcher-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    .modal-close {
        position: absolute;
        top: -55px;
        right: -5px;
    }
    .modal-content .main-title {
        font-size: 2.4rem;
    }
    .modal-content .intro-text {
        font-size:1.4rem;
    }
    .modal-content .section-label {
        font-size: 2.0rem;
    }
    .modal-content .section-title {
        font-size: 2.0rem;
        margin-bottom: 20px;
    }
    .modal-content .text-content {
        font-size:1.4rem;
    }
}
.modal-content .image-container {
    flex: 0 0 280px;
}

.modal-content .image-container img {
    width: 100%;
    height: auto;
    border-radius: 0;
    background: #e0e0e0;
}

/* モーダル 研究者セクション（独立ブロック） */
.modal-content .researcher-section {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    align-items: flex-start;
    padding: 40px;
}

.modal-content .researcher-photo {
    flex: 0 0 150px;
}

.modal-content .researcher-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #e0e0e0;
}

.modal-content .researcher-info {
    flex: 1;
}

.modal-content .researcher-title {
    margin-bottom: 4px;
    font-size: 1.4rem;
    color: #333;
}

.modal-content .researcher-role {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #006777;
}

.modal-content .researcher-name {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.modal-content .researcher-name-en {
    font-size: 1.4rem;
    font-weight: 400;
    margin-left: 15px;
    color: #666;
}

.modal-content .researcher-description {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #333;
}

.modal-content .researcher-info {
    flex: 1;
}

.modal-content .researcher-title {
    margin-bottom: 12px;
}

.modal-content .researcher-name {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.modal-content .researcher-description {
    font-size: 1.4rem;
    line-height: 1.5;
}

.modal-content .researcher-photo {
    flex: 0 0 120px;
}

.modal-content .researcher-photo img {
    width: 100%;
    height: 135px;
    background: #e0e0e0;
    object-fit: cover;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }


    .main-title {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 2.6rem;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .image-container {
        flex: 1;
        width: 100%;
        margin-top:20px;
    }
    .modal-content .researcher-name{
        font-size:1.6rem;
    }
    .modal-content .researcher-section {
        flex-direction: column;
        padding: 30px 20px;
    }

    .researcher-photo {
        flex: 1;
        max-width: 200px;
        margin: 0 auto;
    }
}

/*------------------------------------------------------------
	footer
------------------------------------------------------------*/
#gFooter {
    padding: 57px 0;
    background: #fff;
    color: #000;
    text-align: center;
    position: relative;
    z-index: 2;
}

#gFooter .pageTop a:hover {
    opacity: 0.7;
}

#gFooter .logo {
    margin: 0 auto 24px;
    text-align: center;
}

#gFooter .logo img {
    width: 140px;
}

#gFooter .logo div {
    font-size: 1.4rem;
}

#gFooter .logo .cname {
    margin-top: 0.5em;
    margin-bottom: 1em;
    font-weight: bold;
}

#gFooter .privacy {
    font-size: 1.4rem;
    margin-bottom: 1.5em;
}

#gFooter .copyright {
    letter-spacing: 0.02em;
    font-size: 1.4rem;
    font-weight: 500;
}

@media all and (max-width: 767px) {
    #gFooter {
        padding: 22px 0 16vw;
    }

    #gFooter .logo {
        margin: 0 auto 24px;
    }

    #gFooter .logo img {
        width: 20vw;
        max-width: 140px;
    }

    #gFooter .logo div {
        font-size: 1.2rem;
    }

    #gFooter .logo .cname {
        margin-bottom: 1em;
        font-weight: bold;
    }

    #gFooter .privacy {
        font-size: 1.2rem;
    }

    #gFooter .copyright {
        font-size: 1.2rem;
    }
}

.pageTop {
    display: none;
    position: fixed;
    right: 58px;
    bottom: 53px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9998;
}

.pageTop a:hover {
    opacity: 0.7;
}

@media all and (max-width: 767px) {
    .pageTop {
        right: 25px;
        bottom: 25px;
        width: 50px;
    }
}

/*------------------------------------------------------------
    画像拡大モーダル
------------------------------------------------------------*/
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
}

.zoom-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.5)} 
    to {transform: scale(1)}
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 50px;
    height: 46px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.image-zoom-close::before, .image-zoom-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 46px;
    background: #fff;
}

.image-zoom-close::before {
    transform: translate(-50%,-50%) rotate(45deg);
}

.image-zoom-close::after {
    transform: translate(-50%,-50%) rotate(-45deg);
}

.image-zoom-close:hover::before,
.image-zoom-close:hover::after {
    background: #bbb;
}

#zoomCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 14px;
}

/* モーダル内の画像をクリック可能にする */
.image-container img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* レスポンシブ対応 */
@media all and (max-width: 767px) {
    .zoom-modal-content {
        max-width: 100%;
    }
    
    .image-zoom-close {
        top: 10px;
        right: 20px;
        width: 40px;
        height: 36px;
    }
    
    .image-zoom-close::before, .image-zoom-close::after {
        height: 36px;
    }
}