@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');

/*基本設定*/
html{font-size: 62.5%;}
body,table{font-family: 'Rounded Mplus 1c';font-size: 1.4rem;color:#595757;}
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:#f8bddc url(../img/bg.jpg) center/cover no-repeat;
  -webkit-background-size:cover;/*Android4*/
  background-size: cover;
  }

.mb1 {margin-bottom: 1.5em;}

#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 .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;}

.outer >footer{background: none;color:#fff;text-align:center;}
.outer .inner{width: 980px;}
.outer a:hover{text-decoration:none;}

#visual {
  margin-bottom: -30px;
  position: relative;
  z-index: 2;
  mask-image: linear-gradient(to top, transparent 0%, #000 8%);
}
#visual>div{position:relative;text-align: center;margin: 0 auto;}
#visual>div>h1 {
  position: absolute;
  top: 56%;
  left: 53%;
  width: 41%;
  margin: 0 auto;
  z-index: 2;
}
#visual>div>h2 {
  position: absolute;
  top: 1%;
  left: 0%;
  width: 60%;
  z-index: 2;
}
#visual>div>h3 {
  position: absolute;
  top: 1%;
  right: 5%;
  width: 19%;
  margin: 0 auto;
  z-index: 2;
}
#visual>div>h4 {
  position: absolute;
  top: 83%;
  width: 90%;
  right: 50%;
  transform: translateX(50%);
  z-index: 2;
}
#visual>div>h5 {
  position: absolute;
  top: 22%;
  width: 10%;
  right: 10%;
  transform: translateX(50%);
  z-index: 2;
}
#visual>div>.silver {
  position: absolute;
  top: 20%;
  width: 19%;
  right: 66%;
  transform: translateX(50%);
  z-index: 2;
}
#visual>div>figure img {
  width: 100%;
  margin-left: -4%;
  margin-top: -4%;
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
#visual>div img {
  width:100%;
  height: auto;
  filter: none;
}

#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;}
div.inner>h2 img {
  width: auto;
  height: 8em;
}
#books >.inner{padding:0 10%;}

[data-ruby] {
  position: relative;
}
[data-ruby]::before {
  content: attr(data-ruby);
  position: absolute;
  top: -1em;
  left: 0em;
  right: 0;
  margin: auto;
  font-size: 0.5em;
  width: max-content;
  text-align: center;
  letter-spacing: 0;
}
#story {
  width: 980px;
  position: relative;
  z-index: 2;
  margin: 6em auto 0;
  background: transparent;
  border-radius: 4rem;
  display: block;
  padding: 3em;
  border-image: url(../img/frame.png) 70;
  border-image-width: 50px;
  filter: drop-shadow(0px 0px 6px #fdadcc);
}
#story::before {
  content: "";
  position: absolute;
  top: 2em;
  bottom: 2em;
  right: 2em;
  left: 2em;
  background-color: #fff;
  border-radius: 4rem;
}
#story .inner {
  padding: 4% 0 3%;
  z-index: 2;
  position: relative;
  width: 100%;
}
#story .inner::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translateX(50%) translateY(-50%);
  background-image: url(../img/deco.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 90%;
  z-index: -1;
  opacity: .5;
}
#story p {
  margin: 0 auto;
  text-align: center;
  color: #595757;
  line-height: 2;
  font-size: clamp(1.3rem, 1.166rem + 0.67vw, 1.8rem);
  font-weight: 600;
  font-family: "Rounded Mplus 1c", sans-serif;
  width: calc(100% - 6em);
  padding: 1em;
}

#character {
  margin: 10em auto 0
}
#character h2 {
  text-align: center;
  margin-bottom: 3rem;
}
#character ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #595757;
  gap: 10rem;
}
#character ul {
  width: 100%;
}
#character ul li {
  width: calc((80% - 2rem) / 2);
  font-family: "Rounded Mplus 1c", sans-serif;
  background-color: transparent;
  padding: 3em;
  border-radius: 2rem;
  border-image: url(../img/frame.png) 130;
  border-image-width: 46px;
  filter: drop-shadow(0px 0px 6px #fdadcc);
  position: relative;
  overflow: hidden;
}
#character ul li:nth-of-type(even){
  transform: translateY(3rem);
}
#character ul li:nth-of-type(1),
#character ul li:nth-of-type(4),
#character ul li:nth-of-type(5),
#character ul li:nth-of-type(8),
#character ul li:nth-of-type(9) {
  rotate: 5deg;
}
#character ul li:nth-of-type(2),
#character ul li:nth-of-type(3),
#character ul li:nth-of-type(6),
#character ul li:nth-of-type(7),
#character ul li:nth-of-type(10) {
  rotate: -5deg;
}
#character ul li::before {
  content: "";
  position: absolute;
  top: 1em;
  bottom: 1em;
  right: 1em;
  left: 1em;
  background-color: #ffd5e5;
  border-radius: 2rem;
  z-index: 1;
}
#character ul li::after {
  content: "";
  position: absolute;
  bottom: -21rem;
  right: 50%;
  transform: translateX(50%);
  background-image: url(../img/deco.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 65%;
  height: 100%;
  z-index: 1;
  opacity: .5;
}
#character ul li img {max-width:100%;width: 100%;}
#character ul li .chara_p {
  padding: 0 1em;
  margin: 1em 0 0;
}
#character ul li div h3 {
  font-size: clamp(1.8rem, 1.478rem + 1.61vw, 3rem);
  font-weight: 900;
  text-align: center;
  line-height: 1;
  margin-bottom: 1.2rem;
  color: #eb6da5;
  filter: drop-shadow(0px 0px 5px #fff) drop-shadow(0px 0px 5px #fff) drop-shadow(0px 0px 10px #fff);
}
#character ul li h4 {
  font-size: clamp(1.2rem, 1.093rem + 0.54vw, 1.6rem);
  font-weight: 900;
  position: relative;  
  display: flex;
  gap: .5em;
  align-items: center;
  color: #ffd000;
}
#character ul li h4::before {
  content: '';
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #ffd000;
  position: relative;
  top: 0;
  left: 0;
  display: block;
}
#character ul li figure {
  margin-bottom: 1rem;
}
#character ul li figure {
  position: relative;
  border-radius: 100%;
  z-index: 2;
  overflow: hidden;
}
#character ul li div {
  position: relative;
  z-index: 2;
}
#character ul li p {
  font-size: clamp(1.2rem, 1.093rem + 0.54vw, 1.6rem);
  font-weight: 500;
}

#gallary {
  margin: 12em auto 0;
}
#gallary h2 {
  text-align: center;
  margin-bottom: 2rem;
}
#gallary ul {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}
#gallary ul li {
  width: calc((100% - 4rem) / 3);
  font-family: "Rounded Mplus 1c", sans-serif;
  color: #595757;
  background-color: transparent;
  padding: 3em;
  border-radius: 2rem;
  border-image: url(../img/frame.png) 130;
  border-image-width: 46px;
  filter: drop-shadow(0px 0px 6px #fdadcc);
  position: relative;
  overflow: hidden;
}
#gallary ul li::after {
  content: "";
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  background-image: url(../img/deco.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 5rem;
  height: 5rem;
  z-index: 1;
  opacity: .5;
}
#gallary ul li::before {
  content: "";
  position: absolute;
  top: 1em;
  bottom: 1em;
  right: 1em;
  left: 1em;
  border-radius: 1em;
  z-index: 1;
  background-color: #fff;
}
#gallary ul li .gallary_img,
#gallary ul li .gallary_p {
  position: relative;
  z-index: 2;
}
#gallary ul li .gallary_img {
  margin-bottom: 1em;
}
#gallary ul li .gallary_img img {
  max-width: 100%;
  width: 100%;
}
#gallary ul li .gallary_p h3 {
  font-family: "Rounded Mplus 1c", sans-serif;
  text-align: center;
  font-weight: 900;
  font-size: clamp(1.8rem, 1.478rem + 1.61vw, 3rem);
  border-bottom: 3px solid;
  padding-bottom: 1.5rem;
}
#gallary ul li .gallary_p p {
  display: block;
  padding: 0 1em;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
  font-family: "Rounded Mplus 1c", sans-serif;
  text-align: justify;
  font-size: clamp(1.2rem, 1.093rem + 0.54vw, 1.6rem);
  font-weight: 500;
  color: #595757;
}


#read{padding: 6em 0 8em;}
#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;}
#narou_head .ttl{display:none;}
.outer{background: none;}
.outer .inner{width: 100%; box-sizing: border-box;}
#story >.inner, #character >.inner, #map >.inner, #gallary >.inner, #books >.inner, #naroulink >.inner{padding-inline: 5%!important;}
body::before {
  content:"";
  display:block;
  position:fixed;
  top:0;
  left:0;
  z-index:-1;
  width:100%;
  height:100vh;
  background: #fef6de url(../img/bg.jpg) center/cover no-repeat; /*fixedをトル！*/
  -webkit-background-size:cover;/*Android4*/
  background-size: cover;
  }

#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>div>.silver{display:none;}
#visual>figure>img{display:none;}
#visual {
  margin-bottom: -0.5em;
  margin-top: 0;
  mask-image: none;
}
#visual >div>figure img{margin-top:0;mask-image: none;width: 100%;margin-left: 0;}

div.inner>h2{width: auto;margin-bottom: 1.5em;}
div.inner>h2 img {
  width: auto;
  height: 17vw;
}

#buttons {margin-bottom: 0;margin-bottom: -3.5em;}
#buttons .bt1{display: none;}
#buttons ul li a{font-size:80%;}

#story {
  width: 90%;
  margin: 5em auto 0;
  padding: 0;
  border-image: url(../img/frame.png) 100;
  border-image-width: 43px;
}
#story::before {
  border-radius: 2rem;
}
#story .inner {
  width: 90%;
  padding: 3em 5%;
}
#story .inner>h2 {
  margin-bottom: 0;  
}
#story p {
  width: auto;
  text-align: justify;
  display: block;
}

#character {
  margin: 4em auto 0;
}
#character ul li {
  width: 100%;
  margin-left: 0;
}
#character ul {
  gap: 3rem;
}
#character ul li:nth-of-type(even){
  transform: inherit;
}
#character ul li:nth-of-type(odd) {
  rotate: 2deg;
}
#character ul li:nth-of-type(even){
  rotate: -2deg;
}


#gallary {
  margin: 4em auto 0;
}
#gallary ul {
  display: block;
  margin: 0 auto;
}
#gallary ul li {
  width: 100%;
  margin-bottom: 2rem;
}







#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%;}


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

