@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

html {
    touch-action: manipulation;
  }

body{
    background: #dadada;
    font-family: Arial, Helvetica, sans-serif;
}

li{
    list-style: none;
}

header,.navbar{
    background: #000020;
}

.navbar-brand,.nav-item,.nav-link,.nav-link:focus,.nav-link:hover,
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: white;
}

footer{
    background: #000020;
}

button{
    border-radius: 5px;
    border: solid 2px white;
    background: #000020;
    color: white;
    font-size: 1.25rem;
    padding: .1rem .5rem;
}
button:active{
    background: #202060;
    border: double 2px;
}
button:disabled{
    background: #545477;
}

button a,button a:hover,button a:active{
    color: white;
    display: block;
    text-decoration: none;
}

/* トップ */

#mainImage{
    position: relative;
    height: 70vh;
}

#mainImage img{
    position: absolute;
    opacity: 0;
}

@keyframes fadeInHero1 {
    from {
        opacity: 0;
        left: -10%;
    }
    to {
        opacity: 1;
        left: 0;
    }
}
@keyframes fadeInHero2 {
    from {
        top: 60%;
        opacity: 0;
    }
    to {
        top: 50%;
        opacity: 1;
    }
}
@keyframes fadeInHero3 {
    from {
        opacity: 0;
        right: -10%;
    }
    to {
        opacity: 1;
        right: 0;
    }
}

#mainImage img:nth-child(1) {
    animation-delay: .1s;
    top: 0;
    left: 0;
    animation: fadeInHero1 .5s ease forwards;
    animation-delay: .1s;
}
#mainImage img:nth-child(2) {
    animation-delay: .2s;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInHero2 1s ease forwards;
    animation-delay: .5s;
}
#mainImage img:nth-child(3) {
    animation-delay: .3s;
    right: 0;
    bottom: 0;
    animation: fadeInHero3 .5s ease forwards;
    animation-delay: .3s;
}

#fixNav{
    position: fixed;
    top: 5rem;
    padding: 1rem 1rem 1rem 0;
    background: white;
    border-left: solid 2rem #000020;
    border-radius: 0 10px 10px 0;
}
#fixNav li{
    border-bottom: dotted #dadada;
}
#fixNav li:first-child{
    padding-bottom: .5rem;
}
#fixNav li:last-child{
    border: none;
}
#fixNav li a{
    color: #000020;
    text-decoration: none;
    display: block;
    padding: .5rem 0;
}
#fixNav li a:hover{
    opacity: .5;
}

#topMain{
    padding-bottom: 5rem;
    background: url(../img/repeat1.png);
    background-repeat: repeat-x;
    background-position: bottom;
}

#topMain > div{
    position: relative;
}

#topMain ul{
    position: absolute;
    bottom: 0;
}

#topMain ul li a{
    position: relative;
    display: block;
    background: white;
    border-radius: 10px;
}

#topMain ul li a img:first-child{
    position: absolute;
    opacity: 1;
    transition: .1s;
}

#topMain ul li a img:last-child{
    opacity: 0;
    transition: .1s;
}

#topMain ul li a:hover img:first-child{
    opacity: 0;
}
#topMain ul li a:hover img:last-child{
    opacity: 1;
}
section[id^="kaisyaku"]{
    margin: 0 auto;
    padding: 7.5rem 0 3rem 0;
    overflow: hidden;
}
#kaisyaku1{
    background-color: #e43e59;
    background-image: url(../img/repeat2.png);
    background-repeat: repeat-x;
    background-position: bottom;
}
#kaisyaku2{
    background: #295bf0;
    background-image: url(../img/repeat3.png);
    background-repeat: repeat-x;
    background-position: bottom;
}
#kaisyaku3{
    background: #ffb94e;
    background-image: url(../img/repeat4.png);
    background-repeat: repeat-x;
    background-position: bottom;
}
#kaisyaku4{
    background: #9c76c3;
    background-image: url(../img/repeat5.png);
    background-repeat: repeat-x;
    background-position: bottom;
}
#kaisyaku5{
    background: #53c826;
    background-image: url(../img/repeat6.png);
    background-repeat: repeat-x;
    background-position: bottom;
}
#kaisyaku6{
    background: #6f6f7e;
}

div[id^="list"] li{
    position: relative;
    display: flex;
    justify-content: center;
}

div[id^="list"] li a{
    filter: grayscale(0%);
    overflow: hidden;
}

div[id^="list"] li a:hover{
    transition: .3s;
    filter: grayscale(100%);
    
}

div[id^="list"] li div.tips{
    position: absolute;
    bottom: 0;
    padding: 1rem;
    width: 100%;
    line-height: 0;
    letter-spacing: .25rem;
    text-align: center;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    animation: fadeIn 0.1s ease; /* 追加：フェードインアニメーションを適用 */
}

/* 追加：フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        bottom: -2rem;
    }
    to {
        opacity: 1;
        bottom: 0;
    }
}


div[id^="text"]{
    position: relative;
    background: white;
    margin-left: 25%;
    margin-right: calc(50% - 50vw);
}

div[id^="text"] p{
    padding: 2rem;
}
div#text1::before,
div#text2::before,
div#text3::before,
div#text4::before,
div#text5::before,
div#text6::before{
    content: "";
    width: 100%;
    height: 100vh;
    max-width: 421px;
    max-height: 143px;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: -6rem;
    left: -25%;
}
div#text1::before{background-image: url(../img/title1.png);}
div#text2::before{background-image: url(../img/title2.png);}
div#text3::before{background-image: url(../img/title3.png);}
div#text4::before{background-image: url(../img/title4.png);}
div#text5::before{background-image: url(../img/title5.png);}
div#text6::before{background-image: url(../img/title6.png);}

@media screen and (max-width: 768px){
    div[id^="text"]{
        margin-left: 0;
        margin-right: 0;
    }
    div#text1::before,
    div#text2::before,
    div#text3::before,
    div#text4::before,
    div#text5::before,
    div#text6::before{
        left: 50%;
        transform: translateX(-50%);
        top: -7rem;
    }
    div[id^="list"] li div.tips{
        display: none;
    }
}

/* キャラクター */

section[id^="character"]{
    margin-top: 6rem;
}

#characterImageWrap{
    max-width: 500px;
    max-height: 720px;
    position: relative;
}
#characterImageWrap #buttonImageEx{
    position: absolute;
    top: 1rem;
    right: 1rem;
}
#characterImageWrap #buttonChange{
    position: absolute;
    top: 4rem;
    right: 1rem;

}

#characterProfileWrap{
    max-width: 780px;
    /* max-height: 720px; */
}

@media screen and (max-width: 1399px){

#characterDataText{
    height: 15rem;
    overflow-y: auto;
}

}

#characterClassTextWrap{
    max-width: 480px;
}

#characterImageThumbnail{
    opacity: 1;
    transition: all 0.2s ease;
}

.move {
    transform: translateX(20px);
  }

.card{
    background: none;
    border: none;
}

.card a:hover{
    display: block;
    border: solid 2px #000020;
    border-radius: 5px;
    transition: all .1s ease;
    filter: contrast(200%);
}

.card-body h5 img{
    width: 1.5rem;
}

#exampleModal p{
    width: 100%;
}

/* 色指定など */

.color0{color:white}
.color1{color:#e43e59}
.color2{color:#295bf0}
.color3{color:#ffa51c}
.color4{color:#9c76c3}
.color5{color:#53c826}
.color6{color:#6f6f7e}

section[id$="01"],section[id$="02"],section[id$="03"],
section[id$="04"],section[id$="05"],section[id$="06"],
section[id$="07"],section[id$="08"],section[id$="09"]{
    background-repeat: no-repeat;
    background-position: right 10% top 25%;
    animation: pagein .5s;
}
@keyframes pagein {
	from {opacity: 0}
	to {opacity: 1}
}
section[id$="01"]{background-image: url(../img/character_bg1.png);}
section[id$="02"]{background-image: url(../img/character_bg2.png);}
section[id$="03"]{background-image: url(../img/character_bg3.png);}
section[id$="04"]{background-image: url(../img/character_bg4.png);}
section[id$="05"]{background-image: url(../img/character_bg5.png);}
section[id$="06"]{background-image: url(../img/character_bg6.png);}

section[id$="01"] #characterData,
section[id$="01"] #characterClassTitle{
    border-bottom: solid 10px #e43e59;
}
section[id$="01"] dt{color:#e43e59;}
section[id$="01"] #exampleModal p,
section[id$="01"] #exampleModal .modal-body > div{
    border-top: solid 10px #e43e59;
}

section[id$="02"] #characterData,
section[id$="02"] #characterClassTitle{
    border-bottom: solid 10px #295bf0;
}
section[id$="02"] dt{color:#295bf0;}
section[id$="02"] #exampleModal p,
section[id$="02"] #exampleModal .modal-body > div{
    border-top: solid 10px #295bf0;
}

section[id$="03"] #characterData,
section[id$="03"] #characterClassTitle{
    border-bottom: solid 10px #ffb94e;
}
section[id$="03"] dt{color:#ffa51c;}
section[id$="03"] #exampleModal p,
section[id$="03"] #exampleModal .modal-body > div{
    border-top: solid 10px #ffb94e;
}

section[id$="04"] #characterData,
section[id$="04"] #characterClassTitle{
    border-bottom: solid 10px #9c76c3;
}
section[id$="04"] dt{color:#9c76c3;}
section[id$="04"] #exampleModal p,
section[id$="04"] #exampleModal .modal-body > div{
    border-top: solid 10px #9c76c3;
}

section[id$="05"] #characterData,
section[id$="05"] #characterClassTitle{
    border-bottom: solid 10px #53c826;
}
section[id$="05"] dt{color:#53c826;}
section[id$="05"] #exampleModal p,
section[id$="05"] #exampleModal .modal-body > div{
    border-top: solid 10px #53c826;
}

section[id$="06"] #characterData,
section[id$="06"] #characterClassTitle{
    border-bottom: solid 10px #6f6f7e;
}
section[id$="06"] dt{color:#6f6f7e;}
section[id$="06"] #exampleModal p,
section[id$="06"] #exampleModal .modal-body > div{
    border-top: solid 10px #6f6f7e;
}

section[id$="07"] #characterData,
section[id$="08"] #characterData,
section[id$="09"] #characterData{
border-bottom: solid 10px white;
}
section[id$="07"] dt,
section[id$="08"] dt,
section[id$="09"] dt{color:white;}



#page-top{
    position: relative;
    opacity: .5;
    transition: .2s;
}

#page-top:hover{
    opacity: 1;
}

#page-top .page-top-icon{
    position: fixed;
    right: 3%;
    bottom: 3%;
}

#page-top .page-top-icon a{
    background: #000020;
    width: 3rem;
    height: 3rem;
}

#page-top i{
    color: white;
    font-size: 3rem;
}