@import url('https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css');
@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&family=Zen+Old+Mincho:wght@400;500;600;700;900&display=swap');

/*基本設定*/
:root {
  --base-font-size: 16px;
  --border-radius:0.5em;
  --border-radius-b:2em;
  --clamp:clamp(0px, calc(16/1280*100vw), 1.72em);
  --swiper-theme-color:#54B332;
  --allwidth:1180px;
  --innerwidth:980px;
}

main{width: var(--allwidth);margin:0 auto}
.inner{max-width: var(--innerwidth);margin:0 auto;position: relative;}

html{font-size: 62.5%;}
body,table{font-family: 'Zen Old Mincho', serif;font-size: 1.4rem;color:#000;}
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{display:block;pointer-events: all;}
body::before {
  content:"";
  display:block;
  position:fixed;
  top:0;
  left:0;
  z-index:-1;
  width:100%;
  height:100vh;
  background:#33333E url(../img/bg.png) bottom/cover no-repeat;
  -webkit-background-size:cover;/*Android4*/
  background-size: cover;
  }


/*コンテンツ*/
.outer{max-width:var(--allwidth);margin: 0 auto;}

div.visual img{width: 100%;margin-bottom: -30em;}
div.visual{width: 100%;}
div.visual .inner{width: 90%;}
div.visual h1,div.visual h2,div.visual h5,div.visual h3,div.visual h4{position: absolute;z-index: 1;}
div.visual figure img{mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);}
div.visual h1{width: 80%;left: 0;right: 0;top: 51em;margin: auto;}
div.visual h2{width: 10%;right: 0%;top: 1em;}
div.visual h3{width:20%;top: 2em;left: 10%;}
div.visual h4{width:90%;left: 0;right: 0;margin: auto;top: 74em;}
div.visual h5{width:20%;width:90%;left: 0;right: 0;margin: auto;top: 63em;}



h2.cent {margin-bottom: 2em;}
h2.cent img{width: 100%;}
div.story{box-shadow: 0 0 1em 0 #00000050;width: 80%;margin: 0 auto 5em;position: relative;padding: 6em;border-image: url(../img/frame.png) 60;border-image-width: 3em;background: url(../img/bg2.png);border-radius: 4em;}
div.story >div{width: 100%;}
div.story >div p{text-align:center;line-height: 1.8;font-size: 1.2em;}

div.character{margin: 0 auto 5em;}
div.character h2.cent {width: calc(80% - 6em );margin: 0 auto 2em;}
div.character ul{display: flex;justify-content: center;gap: 2.5%;flex-wrap: wrap;}
div.character ul li{box-shadow: 0 0 1em 0 #00000050;border-image: url(../img/frame.png) 80;border-image-width: 2em;padding: 2.5em;display: flex;position:relative;background: url(../img/bg2.png);}
div.character ul li img{width: 100%;border-radius: 1em;}
div.character ul li img.change:hover{cursor: pointer;}
div.character ul li div{display: flex;flex-direction: column;flex-grow: 1;}
div.character ul li .detail{flex-grow: 1;display: flex;flex-direction: column;}
div.character ul li .detail p{flex-grow: 1;text-align: center;}
div.character ul li div h3{text-align: center;font-size: 1.4em;margin-top: 1em;margin-bottom: 0.5em;}
div.character ul li h3:after{content:"";background:url(../img/line.svg) no-repeat center center; height: 1em;width: 60%;display: block;margin: 0 auto;}
div.character ul li .click{position: absolute ;right:0;top:-1em ;animation: rotate1 7.5s infinite linear;width: 7em;}
div.character ul li .click > span {animation: rotate2 7.5s infinite linear;width: 6.5em;display: block;}
div.character ul.first li{width: 31%;border-radius: 2em;margin-bottom: 2em;}
div.character ul.second li{width: 32%;}
div.character ul.first{margin-bottom: 2em;}

div.keyword{margin: 0 auto 5em;}
div.keyword ul{display: flex;width: 100%;}
div.keyword ul li{border-image: url(../img/frame02.png) 80;border-image-width: 2em;padding: 2em;display: flex;width: 80%; margin: 0 auto;}
div.keyword ul li div{background: #fff;display: flex;align-items: center;width: 100%;}
div.keyword ul li div > div{width: 30%;font-size: 3em;text-align: center;justify-content: center;}
div.keyword ul li div >p{width: 70%;border-left: 0.03em #000 solid;;padding-left: 3em;}


div.gallery{margin: 0 auto 5em;}
div.gallery h2.cent {width: calc(80% - 6em );margin: 0 auto 2em;}
div.gallery ul{display: flex;justify-content: center;gap:1.3%}
div.gallery ul li{box-shadow: 0 0 1em 0 #00000050;border-image: url(../img/frame.png) 80;border-image-width: 2em;padding: 2.5em;display: flex;position:relative;background: url(../img/bg2.png);border-radius: 2em;}
div.gallery ul li img:hover{cursor: pointer;}
div.gallery ul li img{width: 100%;border-radius: 1em;}
div.gallery ul li div{display: flex;flex-direction: column; flex-grow: 1;}
div.gallery ul li .detail{padding: 1em 1em 0 1em;flex-grow: 1;display: flex;flex-direction: column;}
div.gallery ul li .detail p{flex-grow: 1;text-align: center;}
div.gallery ul li div h3{text-align: center;font-size: 1.4em;}

.modal {transition: opacity 0.3s ease-in-out;position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.9);display: none;align-items: center;justify-content: center;z-index: 10000;}

.modal img {border-radius: 1em;max-width: 90%;max-height: 80%;border-radius: 10px;}
.modal-close {position: absolute;top: 15px;right: 15px;font-size: 30px;color: white;cursor: pointer;background: none;border: none;outline: none;}
.modal-close{text-indent: 100%;white-space: nowrap; overflow: hidden;width: 2.5em; height: 2.5em;}
.modal-close:before{content: "";display: block;width:2.5em; position: absolute;right: 0;top: calc(50% - 1px); border-top: solid 1px #fff; transform: rotate(-45deg) translateY(-50%);color: inherit;}
.modal-close:after{content: "";display: block;width: 2.5em;position: absolute;right: 0;top: calc(50% - 1px); border-top: solid 1px #fff;transform: rotate(45deg) translateY(-50%);color: inherit;}




/*共通*/
#narou_head{margin-bottom: 0;background: #000; padding: 0.5em;max-height: 42px;color:#fff;position: relative;z-index: 3;}
#narou_head .inner img {height: 17px;width: auto;}
#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;font-family: 'Rounded Mplus 1c', sans-serif;font-family: 'Rounded Mplus 1c', sans-serif;}


.buttons{position: relative;z-index: 5;margin-bottom: 1.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%;font-family: 'Rounded Mplus 1c', sans-serif;}
.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;}

#read{padding: 6em 0 8em;}
#read span{font-size:70%;}
#read b{font-weight:bold;font-size:150%;}
#read a{font-family: 'Rounded Mplus 1c', sans-serif;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{font-family: 'Rounded Mplus 1c', sans-serif;color: #3b3b3b;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;font-family: 'Rounded Mplus 1c', sans-serif;}
#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;font-family: 'Rounded Mplus 1c', sans-serif;}
#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{font-family: 'Rounded Mplus 1c', sans-serif;color: #3b3b3b;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;    width: 50%;}
#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;}


/*smartphone*****************************************************************************************************************************************************************************************/
@media screen and (max-width: 1180px) {
  .outer {font-size: calc(9.5/390*60vw);width: 100vw;}
  .outer .visual{font-size: calc(7.5/390*60vw);width: 100vw;}
  .inner{max-width: 100%;width: 100%;}
}


@media screen and (max-width: 768px) {
#narou_head{
  	padding: 0.75em 0.5em 0.75em 5rem;
    background: #000;
    height: 42px;}
#narou_head .ttl{display:none;}

.outer{font-size: calc(9.5/390*60vw);overflow: hidden;}
.outer .visual{font-size: calc(9.5/390*60vw);}
.outer div.visual figure img{mask-image: none;}

.buttons ul{display: flex;flex-wrap: wrap;width: 90%;margin: 0 auto;}
.buttons ul li{border: 0.2em #fff solid;}
.buttons ul li a{padding: 1.25em;font-size: 2em;}


/*コンテンツ*/
div.visual img{margin-bottom: -10em;}
div.visual h2{width: 12%;right:0;}
div.visual h3{left: 0;}
div.visual h4{    top: 71em;width: 100%;}
h2.cent img{width: 100%;position: relative;width: 200%;left: -50%;}

div.story{width:90%;font-size: 2em;padding: 3em;}
div.story >div p{text-align: left;}
div.character{width: 90%;}
div.character ul{justify-content: space-around;flex-wrap: wrap;}
div.character ul.first li,
div.character ul.second li{width: 48%;}
div.character ul.second li{margin-bottom: 1.5em;}
div.character ul li .detail h3{font-size: 2.4em;}
div.character ul li .detail p{font-size: 2em;text-align: left;}
div.keyword p{font-size: 2em;}
div.keyword ul li{width: 90%;}
div.gallery{width: 90%;}
div.gallery ul{justify-content: space-around;flex-wrap: wrap;}
div.gallery ul li{width: 48%;margin-bottom: 1.5em;}
div.gallery ul li p{font-size: 2em;text-align: left;}

/*--------*/

#read {padding: 4em 0;}
#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%;}
#naroulink a{width: 90%; margin: 0 auto;}

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

