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

body{
    background: #202D34;
    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;
    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 */



.inte__head {
    color: #FFF;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 2.4rem;
    margin: 32px 0 74px 24px;
    position: relative;
    width: 72%;
}

.inte__head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FFF;
    animation: draw-line 1s forwards ease;
}

@keyframes draw-line {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.interact{
    margin: 0 5.4%;
}

.interact__head{
    color: #FFF;
    text-align: center;
    font-family: "Noto Serif JP";
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.36px;
    /* border-bottom: 1px #FFF solid; */
    margin: 0 5.4%;
    line-height: 1.8;
}

.test{
    margin: 20px 0 120px;
    position: relative;
}

.img1{
    width: 180px;

}
.img2{
    width: 180px;
    position: absolute;
    top: 110px;
    left: 144px;
    border: #FFF 4px solid;
}

.double__degree{
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.68px;
    line-height: 1.8;
    margin-bottom: 38px;
}

.btn__white--link{
    justify-content: center;
    display: flex;
}

.btn__txt--white {
    color: #FFF;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 0.18px;
    gap: 0 4px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 26px;
    transition: color 0.3s ease; /* 文字色のトランジションを追加 */
}

.btn__txt--white::before,
.btn__txt--white::after {
    content: '';
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 9px;
    height: 34px;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease; /* 変換とフィルターのトランジションを追加 */
}

.btn__txt--white::before {
    background-image: url(../images/白左@72x.png);
}

.btn__txt--white::after {
    background-image: url(../images/白右@72x.png);
}

/* ホバー時のスタイル */
a:hover .btn__txt--white {
    color: #5A5A5A; /* 文字色を少し暗く変更 */
}

a:hover .btn__txt--white::before {
    transform: translateX(-4px); /* 左アイコンを左に移動 */
    filter: brightness(1.2); /* アイコンの明るさを増加 */
}

a:hover .btn__txt--white::after {
    transform: translateX(4px); /* 右アイコンを右に移動 */
    filter: brightness(1.2); /* アイコンの明るさを増加 */
}


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

    h1{
        display: none;
    }

    .interact__head{
        font-size: 2.4rem;
        margin: 110px 25% ;
    }

    .interact{
        display: flex;
        justify-content: center;
        gap: 340px;
    }

    .img1{
        width: 330px;
    }
    .img2{
        width: 330px;
        position: absolute;
        top: 200px;
        left: 270px;
        border: #FFF 4px solid;
    }

    .double__degree{
        font-size: 1.2rem;
        width: 626px;
        letter-spacing: 2.24px;
        line-height: 2;
        margin: 0
    }

    .btn__white--link{
        margin: 180px auto 100px;
    }
    .btn__txt--white{
        padding-bottom: 0;
    }
}


/* 最小サイズ */
@media screen and (max-width:365px) {

    .interact__head{
        font-size: 1.4rem;
        margin: 0 12.4% 40px;
    }

    .img1,.img2{
        width: 160px;
    }    

    .double__degree{
        font-size: 1.0rem;
    }
}

/* 中サイズ */
@media screen and (min-width:1023px) {
    
    .interact__head{
        font-size: 3.2rem;
    }

    .double__degree{
        font-size: 1.6rem;
    }
    .test{
        margin: 0;
    }

    .img1,.img2{
        width: 400px;
    }

    .img2{
        top: 143px;
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: none;
}

.fixed-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.interact__image--first,
.interact__image--second,
.interact__image--third {
    background-repeat: no-repeat;
    background-position: right -80px bottom;
    background-size: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.interact__image--first {
    background-image: url(../images/新国際交流１.２.png);
}

.interact__image--second {
    background-image: url(../images/新国際交流２.２.png);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.interact__image--third {
    background-image: url(../images/新国際交流４.２.png);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.scrollable-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 1;
}

.interact__interact {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
}

.interact__head--head {
    color: #FFF;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-family: "Noto Serif JP";
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 700;
    margin-top: 50px;
    padding: 20px 0;
    border-bottom: 1px solid #FFF;
}

.interact__txt,
.interact__txt--txt {
    color: #FFF;
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
    font-family: "Noto Sans JP";
    font-size: 1.4rem;
    font-weight: 500;
    padding: 12px 14px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.20);
    line-height: 1.5;
}


@media screen and (min-width:768px) {
    .interact__image--first,
    .interact__image--second,
    .interact__image--third {
        background-position: center;}

    .interact__head--head{
        font-size: 3.6rem;
        padding: 90px 0 0;
        width: 78.6%;
        line-height: 1.6;
    }
    .interact__txt,.interact__txt--txt{
        font-size: 2.2rem;
        width: 79%;
        justify-content: center;
        display: grid;
    }

    .interact__txt{
        margin-top: 60px;
        padding: 15px 10px;
    }
    .interact__txt--txt{
        width: 70%;
    }
    .interact__txt--txt:nth-of-type(1){
        margin: 50px 0 0 0px;
        width: 56%;
    }

}
  /* 最小サイズ */
@media screen and (max-width:365px) {
    .interact__txt,.interact__txt--txt{
        font-size: 1.0rem;
    }
}

/* ここまで */
.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;
        width: 100%;
        padding: 0;
        transition: background-color 0.5s ease; /* 背景色の変更をフェードインさせる */
        opacity: 1;
    }

    header.hidden{
        opacity: 0;
        pointer-events: none;
    }
    
    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;
    }
}


/* 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;
    font-weight: 700;
    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); /* 元の位置に移動 */
    z-index: 1;
}

.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; /* 通常時の色 */
}

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

/* top */

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


.progress-container {
    width: 50%;
    height: 4px;
    background-color: #ffffff;
    position: fixed;
    top: 4%;
    left: 5%;
    z-index: 99;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #a2a2a2;
}
    
    @media screen and (min-width:768px) {
     .progress-container{
        height: 8px;
        left: 1.4%;
    
    
    }
}


.pcBr{
    display: none;
}


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