@charset "utf-8";
html{
    font-size: 62.5%;
}

body{
    font-family:'Noto Sans JP', 'Noto Serif JP',"p22-mackinac-pro",;
    margin: 0;
    padding: 0;
        -webkit-font-smoothing: antialiased; /* Webkit系ブラウザのフォントアンチエイリアスを改善 */
        -moz-osx-font-smoothing: grayscale; /* Firefoxのフォントアンチエイリアスを改善 */
        text-rendering: optimizeLegibility; /* フォントの可読性を最適化 */
       
}
img{
    display: block;
    max-width: 100%;
    height: auto;
}

ul{
    list-style: none;
}
a{
    text-decoration: none;
}

/* header */
header{
    display: flex;
    justify-content: end;
    padding: 28px 24px;
    align-items: center;
    position: absolute;
    z-index:1;
    box-sizing: border-box;
    width: 100%;
} 

.logo{
    width: auto;
    height: 40px;
    z-index: 1;
}

.hamburger{
    z-index: 101;
    position: fixed;
}

.bar{
    text-align: center;
}
.hamburger-line{
    display: block;
    background: #ffffff;
    width: 26px;
    height: 1.5px;
    margin: 5px auto;
    transition: transform 0.6s ease, opacity 0.6s ease; /* アニメーション時間を0.6秒に設定 */
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.hamburger-line:last-of-type{
    margin: 0 auto;
}

.hamburger p {
    font-size: 0.8rem;
    margin: 0;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    color: #ffffff;
    margin-top: 3px;
    text-align: center;
}


/* header */


/* mainimage */

.mainimage{
    height: 768px;
    content: '';
    background-image: url(../images/研究メインビジュアル4.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.mainimage__txt{
    color: #D1D1D1;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.80);
    font-family: "Noto Serif JP";
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0; 
    writing-mode: vertical-rl; /* 右から左に縦書き */
    text-orientation: upright; /* 文字の方向を縦に保つ */
    letter-spacing: 6px;
    opacity: 0;
    transform: translateY(20px); /* 初期位置を少し下に設定 */
    animation: fadeInUp 1s ease forwards;
    }

.txt__box{
    gap:5.2%;
    padding-top: 80px;
    display: flex;
    justify-content: center;
}


.mainimage__txt:nth-child(1){
    padding-top: 85px;
    animation-delay: 0.9s; /* 最初のpタグは0.3秒後に開始 */
}
.mainimage__txt:nth-child(2){
    padding-top: 37px;
    animation-delay: 0.6s; /* 最初のpタグは0.3秒後に開始 */
}
.mainimage__txt:nth-child(3){
    animation-delay: 0.3s; /* 最初のpタグは0.3秒後に開始 */
    padding-top: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 初期位置 */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 最終位置 */
    }
}

@media screen and (min-width:768px) {
    
}

/* mainimage */


/* menu */
.btn__close {
    padding: 21px 26px;
}

.nav__list {
    padding: 0;
    margin: 0;
}

.nav__item {
    color: #FFF;
    text-align: left;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 2.0rem;
    margin: 52px 0 0 40px;
    letter-spacing: 0.48px;
}

.nav__item:first-of-type {
    margin-top: 36px;
}

.nav__item:last-of-type {
    margin-top: 52px;
    padding-bottom: 39px;
}

.nav__item a {
 
    text-decoration: none;
    color: #ffffff;
    position: relative;
    padding-bottom: 4px; /* 下線との間にスペースを確保 */
}

.nav__item{
    opacity: 0;
    transform: translateY(20px); /* 初期位置を少し下に設定 */
    animation: fadeInUp 1s ease forwards;
}

.nav__item:nth-child(1){
    animation-delay: 0.2s; /* 最初のpタグは0.3秒後に開始 */
}
.nav__item:nth-child(2){
    animation-delay: 0.4s; /* 最初のpタグは0.3秒後に開始 */
}
.nav__item:nth-child(3){
    animation-delay: 0.6s; /* 最初のpタグは0.3秒後に開始 */
}
.nav__item:nth-child(4){
    animation-delay: 0.8s; /* 最初のpタグは0.3秒後に開始 */
}
.nav__item:nth-child(5){
    animation-delay: 1.0s; /* 最初のpタグは0.3秒後に開始 */
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px); /* 初期位置 */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* 最終位置 */
    }
}

.nav__item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff; /* 下線の色を設定 */
    transition: width 0.4s ease-out;
}

.nav__item a:hover::before {
    width: 100%; /* マウスオーバー時に下線が左から右に描画される */
}

.nav {
    background: #202D34;
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.nav.active {
    transform: translateX(0);
}

.sns {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 50px 0 50px 0;
    justify-content: center;
    gap: 24px;
}

.snslogo {
    margin-top: 42px;
}
/* menu */

@media screen and (min-width:768px) {

    header {
        height: 72px;
        position: fixed;
        width: 100%;
        padding: 0;
        transition: background-color 0.5s ease; /* 背景色の変更をフェードインさせる */
    }
    
    header.scrolled {
        background: rgba(255, 255, 255, 0.50);


    }

    .hamburger{
        display: none;
    }

    .nav {
        background:transparent;
        width: 100%;
        height: auto;
        position: none;
        transform: translateX(0%);
        transition: transform 0.4s;
    }

    .nav__list {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0 75px;
        padding-left: 20px;
    }
    .nav__item {
        color: #FFF;
        text-align: left;
        font-family:'p22-mackinac-pro' ;
        font-weight: 600;
        font-size: 2.0rem;
        margin: 0;
        letter-spacing: 0.48px;
        opacity: 1;
        transform: none; /* 初期位置を少し下に設定 */
        height: 24px;
        transform: translateY(0px); /* 初期位置を少し下に設定 */
        animation: fadeInUp 0s ease forwards;
    }

    .nav__item:first-of-type {
        margin-top: 0px;
    }
    
    .nav__item:last-of-type {
        margin-top: 0;
        padding-bottom: 0;
    }
    /* 各項目の遅延設定 */
.nav__item:nth-child(1) {
    animation-delay: none;
}
.nav__item:nth-child(2) {
    animation-delay: none;
}
.nav__item:nth-child(3) {
    animation-delay: none;
}
.nav__item:nth-child(4) {
    animation-delay: none;
}
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px); /* 初期位置 */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* 最終位置 */
    }
}
    

    .snslogo{
        margin-top: 0px;
        
    }

    .sns{
        height: 72px;
        margin:  0;
    }

    .nav__item a {
        padding: 0;
    }

    .btn__close{
        display: none;
    }

    .mainimage__txt{
        font-size: 2.8rem;
    }


    .mainimage{
        height: 1200px;
    }

    .mainimage__txt{
        color: #D1D1D1;
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.80);
        font-family: "Noto Serif JP";
        font-weight: 700;
        margin: 0; 
        writing-mode: vertical-rl; /* 右から左に縦書き */
        text-orientation: upright; /* 文字の方向を縦に保つ */
        letter-spacing: 6px;
        opacity: 0;
        transform: translateY(20px); /* 初期位置を少し下に設定 */
        animation: fadeInUp 1s ease forwards;
        }
    
    .txt__box{
        padding: 260px 0 0 570px;
    }

}

/* thema */
.work__head{
padding-bottom: 60px;
font-size: 2.4rem;
}

.thema{
    background: linear-gradient(-180deg, #000 0%, #202D34 100%);
    padding-bottom: 58px;
}


.thema__menu{
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.90);
    margin: 0 4.5%;
    padding: 18px 0;
}

.thema__nav{
    padding: 0;
    margin: 18px 8.2% 0;
    display: grid;
    gap: 42px;
}

h2{
    color: #000;
    text-align: center;
    font-family: "Noto Serif JP";
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.36px;
    margin: 0;
}


.thema__item{
    height: 117px;
    display: flex;
    border: 1px #0057BF solid;
    justify-content: center;
    align-items: center;
    gap: 15px;
}


.thema__txtbtn{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.thema__txt{
    font-family: "Noto Sans JP";
    letter-spacing: 0.2px;
        margin: 0 0 15px 0;
}

.thema__item img{
    width: 21%;
    max-width: 78px;
}

.thema__btn {
    height: 20px;
    /* width: 158px; */
    background-color: #0057BF;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease; /* スムーズなトランジションを追加 */
}

.thema__btn:hover {
    background-color: #004a99; /* ボタンの色を変える */
    transform: scale(1.05); /* ボタンを少し拡大する */
}
.thema__btn p{
    color: #FFF;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08px;
    margin:0  50px;
}
/* .thema__btn .arrow{
    content: '';
    background-image: url(../images/矢印白２@72x.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 4px;
    height: 5px;
    margin-left: 37px;
    rotate: 90deg;
} */

/* thema */

@media screen and (min-width:768px) {

    .thema{
        padding-bottom: 300px;
    }

    .thema__menu{
        padding: 60px 0 70px;  
        margin: 0 3.5%;      
    }

    h2{
        padding-bottom: 60px;
        font-size: 2.4rem;
    }

    .thema__nav{
        display: flex;
        justify-content: center;
        gap: 2%;
        margin: 0;
    }
    .thema__item{
        flex-direction: column-reverse;
        height: auto;
        padding: 20px 2%;
        justify-content: initial;
        width: 220px;
    }
}


/* work */

.work{
    background: #202D34;
}

.work__item{
    border-bottom: #FFF 1px solid;
    opacity: 0;
    transform: translateY(30px); /* 下に少しずらした状態から始める */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* アニメーションの設定 */
}

.work__item.show{
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻す */
}

.work__box{
    margin: 0 5.0%;
}

.work__heading{
    padding-top: 122px;
}

.work__item h3{
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.28px;
    margin: 0;
}

.eg__txt{
    color: #D3D3D3;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 1.0rem;
    letter-spacing: 0.2px;
    margin: 5px 0 34px;
    line-height: 1.3;
}






.work__txt{
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.2rem;
    font-weight: 350;
    letter-spacing: 1.4px;
    margin: 10px 0 0;
    padding-bottom: 100px;
    line-height: 1.8;
}


.work__item:nth-of-type(2) .work__txt{
    letter-spacing: 1.96px;
}
/* .work__item:nth-of-type(3) .work__txt{
    letter-spacing: 1.96px;
} */
.work__item:nth-of-type(4) .work__txt{
    letter-spacing: 1.96px;
}

.blue__txt{
    margin-top: 2px;
    color: #ADD8E6;
}

/* work */

@media screen and (min-width:768px) {


        .work__item h3{
         font-size: 2.4rem;
        }

        .eg__txt{
            font-size: 16px;
            margin: 5px 0 4px
        }


        .work__txt{
        font-size: 1.6rem;
        margin: 0;
        letter-spacing: 2.52px;
        width: 800px;
        padding-bottom: 268px;
    }

    .thema img{
        width: 91px;
    }

    .work__photobox{
        width: 609px;
    }


    .work__txtphoto{
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        gap: 0px 60px;
        margin-top: 72px;
    }

    .work__heading{
        border-bottom: #FFF 1px solid;
    }
    
}
    



/* footer */
.footer__nav {
    background-color: #FFF;
    border-top: 0.5px solid;
    margin: 0;
    padding: 12px 0;
    display: flex;
    justify-content: center;
}

.footer__item {
    padding-left: 8px;
    gap: 0 8px;
    color: #000;
    text-align: center;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 0.8rem;
    font-style: normal;
    line-height: normal;
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.footer__item p {
    list-style: none;
    position: relative;
}

.footer__item p::after {
    content: '';
    position: absolute;
    bottom: -2px; /* liの下に線を配置 */
    left: 0;
    width: 0;
    height: 0.5px;
    background-color: #000;
    transition: width 0.4s ease-out;
}

.footer__item:hover p::after {
    width: 100%; /* ホバー時に下線が左から右に描画される */
}

.footer__item::before {
    content: '';
    width: 0.5px;
    height: 10px;
    background-color: #000;
    display: inline-block;
}

.footer__nav a.footer__item:first-child::before {
    content: none; /* 最初のfooter__itemの擬似要素を非表示にする */
}

.copy p{
    margin: 0;
}
.copy{
    background: #1D2026;
    color: #FFF;
    text-align: center;
    font-family: "Noto Serif JP";
    font-size: 0.8rem;
    padding: 18px 0;
    gap: 4px;
    display: grid;
}

@media screen and (min-width:768px) {
    .footer__item{
        font-size: 1.6rem;
        padding-left: 36px;
    }
    .footer__item::before{
        height: 20px;
        margin-right: 32px;
    }
    .footer__nav{
        padding: 28px 0;
    }

    .copy{
        font-size: 1.2rem;
        gap: 6px;
        padding: 22px;
    }
}

/* loading */
.line{
    width: 0%;
    height: 1px;
    background-color: #fff;
    position: fixed;
    z-index: 10000;
    top: 50%;
}
.up{
    width: 100%;
    height: 50%;
    background-color: #000;
    position: fixed;
    top: 0;
    z-index: 2;
}
.down{
    width: 100%;
    height: 50%;
    background-color: #000;
    position: fixed;
    bottom: 0;
    z-index: 2;
}
 
/* top */

.top {
    position: fixed;
    z-index: 1000;
    top: 525px;
    right: 0;
    padding-right: 10px;
    color: #fff; /* 通常時の色 */
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    text-align: center;
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(-20px); /* 少し上に配置 */
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
    z-index: 0;
}

.top.show {
    opacity: 1; /* 表示状態 */
    transform: translateY(0); /* 元の位置に移動 */
}

.top::after,
.top::before {
    content: '';
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 10px;
    display: grid;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.top::before {
    background-image: url(../images/白上@72x.png);
    transform: translateY(-1px); /* 初期位置を少し上に調整 */
}

.top::after {
    background-image: url(../images/白下@72x.png);
    transform: translateY(1px); /* 初期位置を少し下に調整 */
}

/* ホバー時 */
.top:hover {
    color: #5A5A5A; /* ホバー時の色 */
}

/* アクティブ（クリック時） */
.top:active {
    color: #333; /* クリック時の色 */
}

.top:hover::before,
.top:hover::after,
.top:active::before,
.top:active::after {
    transform: translateY(0); /* ホバー・アクティブ時に中央へ移動 */
}

/* カーソルを外したら色が元に戻る */
.top {
    color: #fff; /* 通常時の色 */
}

/* top */

@media screen and (min-width:768px) {

    .top{
        letter-spacing: 0.8px;
        font-size: 1.4rem;
        padding-right: 18px;
    }

    .top::after,
    .top::before{
        width: 30px;
        height: 20px;
    }
}


.pcBr{
    display: none;
}


@media screen and (min-width:768px) {
    .pcBr{
        display: block;
    }
    .spBr{
        display: none;
    }
}