@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: #FFF;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 10%,
            rgba(224, 243, 255, 1) 24%,
            rgba(224, 243, 255, 1) 78%,
            rgba(255, 255, 255, 1) 90%,
            rgba(255, 255, 255, 1) 100%);
    position: relative;
}

/* 背景ラインアニメーション */
.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: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 18%, rgba(250, 253, 255, 1) 25%, rgba(237, 251, 255, 1) 51%, rgba(245, 251, 255, 1) 77%, rgba(255, 255, 255, 1) 83%, 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;
}

#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;
}

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

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

}

/* ヘッダー */
.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;
}

.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;
}

.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;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.4rem;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

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

.project-content {
    padding: 15px 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.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: 1.7rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 23px;
    line-height: 2;
}

.project-title {
    font-size: 1.7rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 23px;
    line-height: 2;
    display: none;
}
.project-org-title .highlight,
.project-title .highlight {
    border-bottom: 3px solid #00BCD4;
    padding-bottom: 2px;
}



.project-researcher {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

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

.researcher-details {
    flex: 1;
}

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

.researcher-name {
    font-weight: 500;
}

/* モーダル */
.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: url(../img/modal-bg.jpg);
    background-size: cover;
    max-width: 1000px;
    width: 100%;
    padding: 50px;
    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;
    background: rgba(255,255,255,0.5);
}

.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-content .main-title {
    font-size: 3.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.8;
}
.modal-content .main-org-title {
    background:#efefef;
    font-size:12px;
    line-height: 1.4;
    color: #333;
    padding:6px 4px;
    border-radius:4px;
    display: none;
}
.modal-content .main-org-title::before{
    content:'採択名：'
}
.modal-content .main-title .highlight {
    border-bottom: 5px solid #00AFEC;
    padding-bottom: 2px;
}


.modal-content .intro-text {
    line-height: 1.8;

    margin-bottom: 50px;
}

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

.modal-content .section-title {
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
}

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

.modal-content .text-content {
    flex: 1;
    line-height: 1.8;
    color: #333;
}
@media (max-width: 768px) {
    .modal-content{
        background: url(../img/modal-bg.png);
        background-size: 100% 100%;
    }
    .modal-main{
        padding: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;
        margin-bottom: 30px;
    }
    .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 300px;
}

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

.modal-content .researcher-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 15px 30px;
    background-color: #E4F9FF;
}

.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;
    }

    .modal-content {
        padding: 30px 20px;
    }

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

    .subtitle {
        font-size: 2.6rem;
    }

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

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

    .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;
    }
}

#gFooter .pageTop {
    display: none;
    position: fixed;
    right: 58px;
    bottom: 53px;
    background: rgba(255, 255, 255, 0.9);
}

@media all and (max-width: 767px) {

    #gFooter .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;
    }
}