@import url('https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/*基本設定*/
html{font-size: 62.5%;}
body,table{font-family: 'Rounded Mplus 1c';font-size: 1.4rem;color:#3b3b3b;}
div{box-sizing:border-box;}
p, a{text-align:inherit}
p{word-break: normal;word-wrap: break-word;text-align:justify;}
h2{line-height:1.3em;}
ul,dl{letter-spacing: -.40em;}
li,dd,dt{letter-spacing: normal;}

a:hover>img{opacity:0.7;text-decoration:underline;}
img{  pointer-events: none;
  user-select: none;
  vertical-align: bottom;
  -webkit-user-select: none;
  width: auto;
  height: auto;
  -ms-interpolation-mode: bicubic;}
a img{display:block;}

body::before {
  content:"";
  display:block;
  position:fixed;
  top:0;
  left:0;
  z-index:-1;
  width:100%;
  height:100vh;
  background: #fcded9 url(../img/bg.png) center/ cover no-repeat;
  }

#cboxOverlay{background: #000!important;z-index:100000!important;}
#colorbox{z-index:100001!important;}

#narou_head{margin-bottom: 0;background: #000; padding: 0.5em;max-height: 42px;color:#fff;position: relative;z-index: 3;}
#narou_head ul{display:table;width: 100%;}
#narou_head ul li{display:table-cell;vertical-align: middle;}
#narou_head .ttl{padding-left: 0.5em;font-size:80%;text-align:right;}

.outer >footer{background: none;color:#fff;text-align:center;}
.outer .inner{width: 980px;}
.outer a:hover{text-decoration:none;}

#visual{margin-bottom: -6em;position:relative;z-index: 2;}
#visual>div{position:relative;text-align: center;margin: 0 auto;}
#visual>div>h1{position:absolute;top: 84px;left: 48px;z-index:1;}
#visual>div>h2{position:absolute;top: 799px;right: 0;}
#visual>div>h3{position:absolute;top: 526px;right: 0px;}
#visual>div>h4{position:absolute;top: 1082px;right: calc( 50% - 485px );}
#visual >div>figure img{width: 1180px;margin-left: -82px;margin-top: -81px;}

#buttons{position: relative;z-index: 5;margin-bottom: -3.5em;}
#buttons ul{list-style: none;display:flex;justify-content: center;}
#buttons ul li{text-align:center;margin: 0 0.5em 1em 0.5em;border-radius:0.5em;border:2px solid #fff;box-shadow:0px 0px 3px 1px #000000;width: 50%;}
#buttons ul li a{color:#fff;display:block;padding: 1em 0;font-size:125%;}
#buttons ul li a i{font-size:130%;vertical-align:middle;margin-right: 0.5em;}
#buttons ul li:hover{opacity:0.8;transition:0.5s;}
#buttons ul li:first-child{flex-grow: 1;background: #000;}
#buttons ul li:nth-child(2){flex-grow: 1;background: #000;}
#buttons ul li:nth-child(3){flex-grow: 1;background: #009fe8;}

div.inner>h2{text-align:center;}
#story h2 img {height: 7rem;width: auto;}
#character h2 img,#introduction h2 img {height: 4.5rem;width: auto;}
#books >.inner{padding:0 10%;}

#story {padding-top: 6em;}
#story .inner{width: auto;}
#story .border{
  width: 960px;position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 3em;
  background: #fff;
  overflow: hidden;
}
#story .border::before {
  content: "";
  background: url(../img/deco01.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  width: 20em;
  height: 20em;
  position: absolute;
  left: -4em;
  bottom: -4em;
}
#story .border::after {
  content: "";
  background: url(../img/deco02.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  width: 20em;
  height: 20em;
  position: absolute;
  right: -4em;
  top: -4em;
}
#story h2 {text-align: center;margin-bottom: 0.5em;}
#story p{text-align:center;color:#000; width: 100%;font-size: 1.6rem;font-family: "Noto Sans JP", sans-serif;font-weight: 500;line-height: 1.8;z-index: 2;position: relative;
  text-shadow: 0px 0px 1px #fff,
                0px 0px 2px #fff,
                0px 0px 3px #fff,
                0px 0px 4px #fff,
                0px 0px 5px #fff,
                0px 0px 6px #fff;
}


#character{padding: 6em 0 0;}
#character .inner{padding: 0;}
#character h2 {margin-left: 2em;margin-bottom: 1em;}
#character ul{display: flex;align-items: flex-end;justify-content: center;flex-wrap: wrap;}
#character ul li{width:32%;position: relative;}
#character ul li:not(:nth-child(-n+2)) {margin-top: -1%;}
#character ul li:nth-child(2),#character ul li:nth-child(4),#character ul li:nth-child(5) {margin-left: 2%;}
#character ul li:first-child {margin-left: 2%;}
#character ul li:nth-child(2) {margin-right: 2%;}
#character ul li:nth-child(3) {z-index: 2;}
#character ul li figure img{width: 100%;height: auto;filter: drop-shadow(0 -0.2em 0.4em #fff);}
#character .text {
  position: absolute;
  width: 100%;
  bottom: -27px;
  background: rgba(255,255,255,1);
  padding: 1.5em;
  z-index: 2;
  overflow: hidden;
}
#character .text::after {
  content: "";
  background: url(../img/deco01.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  width: 12em;
  height: 12em;
  position: absolute;
  right: -4em;
  bottom: -5em;
}
#character ul li h3 {color: #000;font-size: 2.4rem;font-family: "Noto Sans JP", sans-serif;font-weight: bold;text-align: center;color: #e3007f;line-height: 1;margin-bottom: 0.5em;}
#character ul li:nth-child(1) h3,#character ul li:nth-child(3) h3 {color: #ef8200;}
#character ul li p {color: #000;font-size: 1.4rem;font-family: "Noto Sans JP", sans-serif;font-weight: 400;position: relative;z-index: 3;
  text-shadow: 0px 0px 1px #fff,
                0px 0px 2px #fff,
                0px 0px 3px #fff,
                0px 0px 4px #fff,
                0px 0px 5px #fff,
                0px 0px 6px #fff;
}
#character .change_box label {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  cursor :pointer;
}
#character .change_box label span{font-size: 1rem;}
#character .change_box label:hover {opacity: 0.8;}
#character .change_box input {display: none;}
#character .change_box .hidden {display: none}
#character .change_box input:checked ~ .hidden {
  display: block;
}
#character .change_box input:checked ~ .show {
  display: none;
}


#introduction {padding: 9em 0 0;}
#introduction h2 {margin-bottom: 3em;}
#introduction ul li:not(:first-child) {margin-top: 2%;}
#introduction ul li img {width: 100%;height: auto;}


#read{padding: 4em 0 6em;}
#read span{font-size:70%;}
#read b{font-weight:bold;font-size:150%;}
#read a{width: 70%;color:#fff;display:block;padding: 1em 0;font-size:125%;background: #000;text-align:center;margin: 0 auto;border-radius:0.5em;border:2px solid #fff;box-shadow:0px 0px 3px 1px #000000;}
#read a:hover{opacity:0.8;transition:0.5s;}

#books {padding: 4em 0;background: rgba(0,0,0,0.5);}
#books .inner{padding: 0;margin-top: -6em;;}
#books h2{border-radius:0.5em;border:3px solid #000;font-size:2rem;display:inline-block;text-align:center;background: #fff;margin: 0 auto 1em;    display: table;padding:0.5em 2em;}
#books ul{justify-content:flex-start}
#books ul:has(> :nth-child(-n+4):last-child) {justify-content: center;}
#books ul li{background: #fff;padding: 0.75em;position: relative;width: 19%;margin-right: 1.25%;margin-bottom: 1.25%;}
#books ul li h4{margin-bottom: 0.5em;font-size: 1.4rem;}
#books ul li a {display:block;color: #3b3b3b;}
#books ul li a figure {width: 100%;}
.list li figure {margin-bottom: 0;}
#books ul li a div {width: 100%;margin-top: 1em;}
#books ul li i{font-size: 1rem;font-style: normal;padding: 0.15em 1.5em;position: absolute;left: 0;top: 0;z-index: 1;}
#books ul li i.bnk{background: #f39800;color:#fff;}
#books ul li i.nvl{background: #000;color:#fff;}
#books ul li i.grd{background: #009fe8;color:#fff;}

#books ul li:last-child {margin-right: 0;}
#books ul li:nth-child(5n) {margin-right: 0;}

#naroulink {padding: 4em 0;background: rgba(0,0,0,0.3);}
#naroulink .inner{margin-top: -6em;;}
#naroulink h2{border-radius:0.5em;border:3px solid #000;font-size:2rem;display:inline-block;text-align:center;background: #fff;margin: 0 auto 1em;    display: table;padding:0.5em 2em;}
#naroulink a{margin:0 auto;    display: table;border-radius: 0.5em;overflow: hidden;}
#naroulink a img{width: 100%;}

.box{background: rgba(255,255,255,0.75);padding:4em;margin-bottom: 1em;box-shadow:0 0 1px 1px rgba(0,0,0,0.5);border-radius:1em;}

.outer footer dl dd{display: inline-block;text-align:center;margin: 0 0.5em;}
.outer footer dl {margin-bottom: 1em;}

/*smartphone*****************************************************************************************************************************************************************************************/
@media screen and (max-width: 768px) {
#narou_head{
  	padding: 0.75em 0.5em 0.75em 5rem;
    background: #000;
    height: 42px;
    display: none;
}
#narou_head .ttl{display:none;}
.outer{background: none;}
.outer .inner{width: 100%;;}
#story >.inner, #character >.inner, #keyword >.inner, #books >.inner, #naroulink >.inner{padding: 0 5%!important;}

body::before {
  content:"";
  display:block;
  position:fixed;
  top:0;
  left:0;
  z-index:-1;
  width:100%;
  height:100vh;
  background: #fcded9 url(../img/bg.png) center/ cover no-repeat;
  }


#visual>div>h1{display:none;}
#visual>div>h2{display:none;}
#visual>div>h3{display:none;}
#visual>div>h4{display:none;}
#visual>div>h5{display:none;}

#visual>figure>img{display:none;}
#visual{margin-bottom: -6em;margin-top: 0;}
#visual >div>figure img{width: 100%; margin:0;}

#story h2 img {height: 11vw;width: auto;}
#character h2 img, #introduction h2 img {height: 7vw;width: auto;}

#buttons {margin-top: 4.5em;}
#buttons .bt1{display: none;}
#buttons ul li a{font-size:80%;}

#story {padding: 3em 0 0;}
#story .border {width: 100%;padding: 2.5em 1.5em 3em;}
#story p {text-align: justify;font-size: min(3.6vw,1.6rem);}

#character {padding: 4.5em 0 0;}
#character h2 {margin-left: 1.2em;margin-bottom: 0.5em;}
#character ul {justify-content: flex-start;}
#character ul li{width: 50%;position: relative;}
#character ul li:not(:nth-child(-n+2)) {margin-top: 0;}
#character ul li:nth-child(2),#character ul li:nth-child(4),#character ul li:nth-child(5) {margin-left: 0;}
#character ul li:first-child {margin-left: 0;}
#character ul li:nth-child(2) {margin-right: 0;}
#character ul li:nth-child(3),#character ul li:nth-child(4),#character ul li:nth-child(5) {margin-top: 7.6em;}
#character .text {bottom: -26%;padding: 8%;width: 96%;margin-left: 2%;}
#character ul li h3 {font-size: min(4.4vw,2.4rem);}
#character ul li p {font-size: min(3.1vw,1.4rem);}

#introduction {padding: 12em 0 2em;}
#introduction h2 {margin-bottom: 2em;}
#introduction ul {width: 90%;margin: 0 auto;}
#introduction ul li:not(:first-child) {margin-top: 4%;}

#read {padding: 1em 0 4em;}
#read a{padding: 0.5em;width: 90%;}
#read span{margin-bottom: 0.5em;display: block;}
#read br{display:none;}

#books{padding: 5em 0 1em;}
#books ul li {width: 100%;padding: 0.5% 1.5% 0.5% 0.5%;margin-right: 0;}
#books ul li a {display: flex;justify-content: space-between;align-items: center;}
#books ul li a figure {width: 25%;}
#books ul li a div {width: 72%;}
#books h2{height: auto;font-size:90%;}
#books ul li figure i{padding: 0.15em 1em;font-size:70%;left: auto;right: 0;}
#books ul li h4 {font-size: 1.3rem;font-weight: bold;}

#naroulink h2{height: auto;font-size:90%;}


/*
.box{padding: 1em;}
.inner{    width: 95%;}
#catch{margin-bottom: 1em;}
#read h3:before,#read h3:nth-child(3):before{display:block;margin: 0 auto;margin-bottom: 0.25em;    width: 60px;
    height: 60px;
}
#detail table td:first-child{width: 30%;}
.outer >footer{background: none;color:#fff;text-align:center;font-size:70%;padding-bottom: 2em;}

.outer footer dl dd{width: 45%;}
.outer footer dl dd img{width: 100%;}
.outer footer dl {margin-bottom: 1em;}
*/
}

