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

body{
    background: #f6f6f6;
    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%;
    position: absolute;
} 

.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, background-color 0.6s ease; /* 背景色のアニメーションも追加 */
}

.hamburger.active .hamburger-line {
    background: #ffffff; /* メニューが開いているときは白 */
}

.hamburger.scrolled .hamburger-line {
    background: #ffffff; /* スクロール後の色を黒に */
}

.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 */

/* mainprofile */







/* mainprofile */

.btn__link{
}

.btn__txt {
    display: flex;
    align-items: center;
    gap: 0 4px;
    margin: 0;
    color: #000;
    font-family: "p22-mackinac-pro";
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 119.095%; /* 21.437px */
    letter-spacing: 0.18px;
    margin: 28px 0 50px;
    transition: color 0.3s ease; /* 文字色のトランジションを追加 */
    justify-content: center;
}

.btn .btn__txt{
    margin-bottom: 50px;
}

.btn__txt::before,
.btn__txt::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::before {
    background-image: url(../images/黒左@72x.png);
}

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

/* ホバー時のスタイル */
a:hover .btn__txt {
    color: #DCDCDC; /* 文字色を変更 */
}

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

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

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

.snslogo {
    margin-top: 42px;
}

.sns__item{
    width: 21px;
}



/* mainbook */

.book__container {
    display: flex; /* ブックを横並びにする */
    overflow: hidden; /* コンテナからはみ出る部分を隠す */
}

.book {
    min-width: 100%; /* 各ブックの幅をコンテナの幅に合わせる */
    max-width: 375px; /* 各ブックの最大幅を375pxに設定 */
    transition: transform 0.5s ease; /* スライドのトランジションを設定 */
    flex-shrink: 0; /* ブックの幅が縮小しないようにする */
}
.book__image,.book__image--image,.book__image--image--image {
    position: relative;
    background-position: 0px center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 340px;
}

.book__image{
    background-image: url(../images/新書籍１.jpg);
}

.book__image--image{
    background-image: url(../images/新書籍２.jpg);
    
}
.book__image--image--image{
    background-image: url(../images/新書籍３.jpg);
}

.book__txt--pc{
    display: none;
}

.book__txt {
    background: #000;
    text-align: center;
    height: 368.5px;
}

.book__tittle {
    margin: 0;
    color: #FFF;
    font-family: "Noto Serif JP";
    font-size: 2.0rem;
    font-weight: 900;
    padding-top: 28px;
}

.book__name{
    margin: 0;
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.4rem;
    padding: 18px 0;
    line-height: 1.5;
}


.book__planation{
    color: #E8E8E8;
    font-family: "Noto Sans JP";
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 1.68px;
    margin: 0 6.9%;
    text-align: left;
    padding-bottom: 34px;
}

.btn__box{
    position: absolute;
    bottom: 40%;
    right: 28px;
    text-align: center;
}

.nextclose__btn {
    font-weight: 600;
    gap: 4px;
    color: #FFF;
    font-family:'p22-mackinac-pro' ;
    font-weight: 600;
    font-size: 1.0rem;
    letter-spacing: 1.68px;
    width: 62px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px #fff solid;
    text-decoration: none;
    background-color: transparent;
    transition: opacity 0.5s ease-out 0.8s, transform 0.5s ease-out 0.8s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.nextclose__btn:hover {
    color: #000; /* テキストの色を黒に変更 */
    background-color: #FFF; /* 背景色を白に変更 */
    transform: scale(1.1); /* ボタンを少し大きくする */
    opacity: 0.8; /* 少し透明度を下げる */
}
.nextclose__btn:last-of-type{
    margin-top: 12px;
}


.indicator {
    display: flex;
    justify-content: space-between;
    width: 45px;
    background-color: #131313;
    padding: 4px 6px;
    border-radius: 8px;
    position: absolute;
    top: 200%;
    left: 14%;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #4e4e4e;
    border-radius: 50%;
}

.dot.active {
    background-color: #f6f6f6;
}



/* mainbook */

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

    .book__image,.book__image--image,.book__image--image--image{
        height: 100vh;
        background-position: -140px center;
    }

    .book__txt--pc{
        display: block;
        background: none;
        position: absolute;
        top: 30%;
        left: 50%;
        text-align: center;
        margin-right: 10px;
    }

    .book__txt{
     display: none;
    }
.book__tittle{
        font-size: 3.2rem;
        padding: 0;
        margin: 0;
    }
    
    .book__name{
        font-size: 1.8rem;
        padding: 0;
        margin: 30px 0 58px;
    }
    
    
    .book__planation{
        font-size: 1.4rem;
        padding: 0;
        margin: 0;
        text-align: center;
        letter-spacing: 1.96px;
        line-height: 1.6;
    }

    .btn__box{
        top: 75%;
        right: 28px;
    }
}

/* 最小サイズ */
@media screen and (max-width:350px) {
    .book__planation{
        font-size: 1.0rem;
        margin: 0 4.5%;
    }
    .btn__box{
        right: 58px;
    }
}

@media screen and (min-width:768px) {
    .indicator{
        left: 11%;
        top: 60px;
    }
}

/* 中サイズ */
@media screen and (min-width:1024px) {
    .book__image,.book__image--image,.book__image--image--image{
        background-position: 0px center;
    }
    .book__tittle{
        font-size: 4.0rem;
    }
    .book__name{
        font-size: 2.4rem;
    }
    .book__planation{
        font-size: 1.8rem;
    }
    .book__txt--pc{
        margin-right: 30px;
    }
    .btn__box{
        top: 83%;
        right: 28px;
    }
}

/* ここまで */
.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;
    }
}



/* 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;
    }
}



.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); /* 元の位置に移動 */
    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; /* 通常時の色 */
}

/* top */

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



.pcBr{
    display: none;
}


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