@charset "UTF-8";
/* 初期設定 */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  line-height: 1.6;
  color: #3b3b3b;
  text-align: left;
}
table {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
p, a {
  text-align: inherit;
  word-wrap: break-word;
}
li, dd, dt {
  letter-spacing: normal;
  list-style: none;
}
a {
  text-decoration: none;
}
a img {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* 関数設定 */
:root {
  --main-color: #FFFCF4;
  --white: #ffffff;
  --font-size: 1em;/* 16px */
  --font-color: #7F4F21;
  --font-family: "Noto Sans JP", serif;
  --fw-m: 500;/* ミディアム（フォントによって変化） */
  --fw-b: 700;/* ボールド（フォントによって変化） */
  --line-hight: 1.6;
  --drop-shadow: drop-shadow(0px 0px 6px #DDBB99);
}

/* 背景設定 */
/* body::before {content:"";display:block;position:fixed;top:0;left:0;z-index:-1;width:100%;height:100vh;
  background:url(../img/bg.png) center/cover no-repeat;
} */

/* 画面トップ黒帯設定 */
#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;}
#narou_head .inner{max-width: 980px;width: 100%;}
#logo a img{max-width: none;}

/* Lightboxのデザイン変更 */
#cboxOverlay{background: #000!important;z-index:100000!important;}
#colorbox{z-index:100001!important;}

/* 背景設定 */

    body::before {
        content: "";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100vh;
        background: url(../img/bg_pc.webp) top center / cover no-repeat;
    }

/* その他設定 */
.outer .inner{max-width:980px;width:100%;}
.outer a:hover{text-decoration:none;}
a:hover > img {
  opacity: 0.7;
}

/* FV設定 */
#visual{
  position:relative;
  z-index:2;
  max-width:980px;
  width:100%;
  margin: 0 auto;
  overflow: hidden;
}
#visual img {width: 100%;}
#visual>div>h1{
position: absolute;
    width: 74%;
    top: -4%;
    right: -3%;
    z-index: 1;
}
#visual>div>h2{
position: absolute;
    width: 90%;
    top: 68%;
    left: 6%;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
}
#visual>div>h3{
position: absolute;
    width: 36%;
    top: -2%;
    left: 1%;
    /* transform: translateX(-50%); */
    z-index: 1;
}
#visual>div>h4{
position: absolute;
    width: 90%;
    top: 78%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
#visual>div>h5{
position: absolute;
    width: 24%;
    top: 18%;
    right: -1%;
    /* transform: translateX(-50%); */
    z-index: 1;
}
#visual >div>figure{mask-image: linear-gradient(to top, transparent 0%, #000 10%);}
#visual >div>figure img{mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);}

/* ボタンエリア(margin以外はいじらない) */
#buttons{
  position: relative;
  z-index: 5;
  margin: -6em 0 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%;}
#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;}

/* section設定 */
section{
  text-align: center;
  padding: 100px 0 0;
}
/* タイトル設定 */
section div.inner>h2{
  text-align:center;
  margin-bottom: 4em;
  width: auto;
  height: 8em;
}
section div.inner>h2 img{
  width: auto;
  height: 100%;
}

/* ストーリー｜あらすじ設定 */
#story{
  padding: 0;
  margin: 2.5em auto 0;
  background: rgba(255, 252, 244, 0.8);
  max-width: 980px;
  /* border: 80px solid;
  border-image-source: url(../img/frame_s.webp);
  border-image-slice: 136; */
  position: relative;
      filter: drop-shadow(0 0 6px #DDBB99);
}
#story .inner{
padding: 4rem 0 6rem;}
#story span{
    position: absolute;
}
#story span.corner{
    width: 100px;
    height: 100px;
    background-image: url(../img/frame_s_c.webp);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}
#story span.top-left {
    top: 12px;
    left: 12px;
    transform: rotate(270deg);
}
#story span.top-right {
top: 12px;
    right: 12px;
    transform: rotate(0deg);
}
#story span.bottom-left {
    bottom: 12px;
    left: 12px;
    transform: rotate(180deg);
}
#story span.bottom-right {
    bottom: 12px;
    right: 12px;
transform: rotate(90deg);
}
#story span.border-right{
    top: 0;
    bottom: 0;
    width: 2px;
    background: #DDBB99;
    height: 58%;
    margin: auto 0;
    right: 26px;
}
#story span.border-left{
    top: 0;
    bottom: 0;
    width: 2px;
    background: #DDBB99;
    height: 58%;
    margin: auto 0;
    left: 26px;
}
#story h2{
  margin-bottom: 2em;
}
#story p{
  color:var(--font-color);
  font-size: 1em;
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom:2rem;
  letter-spacing: 0.1em;
}
#story p.bold_text{
  font-size: 2rem;
    color: #E95377;
    font-weight: bold;
    margin: 0;
}

/* キャラクターリストの基本レイアウト */
#character ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  list-style: none;
  padding: 0;
  align-items: baseline;
}

#character ul li {
  width: 49%;
  filter: var(--drop-shadow);
  margin: 0;
  position: relative; /* z-index制御のため */
}


/* --- 回転と拡大のアニメーション設定 --- */

/* 1〜4番目の li の画像ラッパー (5番目以降は除外) */
#character ul li:not(:nth-of-type(n+5)) .c-body-wrap-b {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

/* ホバー：拡大 (1.05倍) */
#character ul li:not(:nth-of-type(n+5)) .c-body-wrap:hover .c-body-wrap-b {
  transform: scale(1.05);
  z-index: 10;
}

/* クリック時：反転 (180度) */
#character ul li:not(:nth-of-type(n+5)).is-active .c-body-wrap-b {
  transform: rotateY(180deg);
}

/* クリック中かつホバー中：反転したまま拡大 (競合防止) */
#character ul li:not(:nth-of-type(n+5)).is-active .c-body-wrap:hover .c-body-wrap-b {
  transform: rotateY(180deg) scale(1.05);
}

/* --- 画像の重ね合わせ設定 --- */
.c-body, .c-body2 {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 0 12px #DDBB99);
}

.c-body2 {
  display: block; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: rotateY(180deg); /* あらかじめ裏を向けておく */
}

/* --- ボタン（ゆらゆら） --- */
.c-btn {
  position: absolute;
  width: 120px;
  height: 120px;
  bottom: -12px;
  left: -37px;
  animation: yura-yura-float 3s ease-in-out infinite;
  display: inline-block;
  cursor: pointer;
  z-index: 10;
   pointer-events: auto;
}

@keyframes yura-yura-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* --- その他のパーツ設定 --- */
#character ul li div h3 {
  height: 23.5px;
  text-align: left;
}

#character ul li div h3 img {
  height: 100%;
  width: auto;
}

.c-body-wrap {
  position: relative;
  margin-bottom: -1.5rem;
}

.c-body-wrap figure.c-body-wrap-b {
  margin: 0 auto;
  width: 72%;
}

/* 個別幅の設定 */
#character ul li:nth-of-type(2) figure.c-body-wrap-b { width: 57%; }
#character ul li:nth-of-type(3) figure.c-body-wrap-b { width: 89.8%; }
#character ul li:nth-of-type(4) figure.c-body-wrap-b { width: 72%; }
#character ul li:nth-of-type(5) figure.c-body-wrap-b { width: 70%; }
#character ul li:nth-of-type(6) figure.c-body-wrap-b { width: 96%; }

.c-cc {
  width: 60px;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-5deg);
}
#character ul li:nth-of-type(6) .c-cc{
  top: -80%;
}

.c-text {
  display: flex;
  gap: 2rem;
  text-align: left;
  background: rgba(255, 252, 244, 0.8);
  border-radius: 12px;
      box-shadow: 0 0 12px #DDBB99;
     height: 212px;
}
.c-text figure { width: 12%; }
.c-text figure:nth-of-type(2) { transform: rotateY(180deg); }
.c-text img { height: 100%; }
.c-text div { margin: 24px 0; }

#character ul li div p {
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: var(--line-hight);
  color: var(--font-color);
  padding-top: 1.6rem;
  font-family: var(--font-family);
}

/* コンテンツ_1(作品によってコンテンツ量は変動) */
#keyword ul{
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    list-style: none;
    padding: 0;
    align-items: baseline;
    margin: 0 auto;
        justify-content: center;
}
#keyword ul li{
    margin: 0 auto;
    width: 49%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(255, 252, 244, 0.8);
    border-radius: 12px;
    box-shadow: 0 0 12px #DDBB99;
    font-family: var(--font-family);
    color: var(--font-color);
}
#keyword ul li h3{
    height: 51px;
    margin-bottom: 20px;
}
#keyword ul li h3 img{
    height: 100%;
    width: auto;
}
#keyword ul li .rote img{
    transform: rotateX(180deg);
}

.top_bn{
    max-width: 980px;
    margin: 0 auto;}
    
.top_bn a{
        width: 90%;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 12px #DDBB99;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}
.top_bn a:hover{
     transform: scale(1.05);
}



/* 下記共通コンテンツのためいじらない */
#read{padding: 4em 0 6em;}
#read span{font-size:61%;}
#read b{font-weight:bold;font-size:130%;}
#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;}

/*smartphone*****************************************************************************************************************************************************************************************/
@media screen and (max-width: 768px) {
/* 画面トップ、その他設定 */
#narou_head{padding: 0.75em 0.5em 0.75em 5rem;height: 42px;}
#narou_head .ttl{display:none;}
.outer .inner{width: 100%;}

/* FV以外に左右余白を設置 */
section .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: url(../img/sp_bg.webp) top center / cover no-repeat;
    }

/* FV設定 */
#visual >div>figure img{
  width: 100%;
  margin-left:0;
  margin-top:0;
  mask-image: linear-gradient(to top, transparent 0%, #000 10%);
}

/* ボタンエリア(#buttonsのmargin以外はいじらない) */
#buttons{
  margin: -10vw 0 0;
}
#buttons .bt1{display: none;}
#buttons ul li {margin-bottom: 0;}
#buttons ul li a{font-size:80%;}


/* section設定 */
section{
  padding: 60px 0 0;
}

/* タイトル設定 */
section div.inner>h2{
  margin-bottom: 8%;
  height: 16vw;
  min-height: 6em;
}

/* ストーリー｜あらすじ設定 */
#story{
          margin-top: 6vw;
  width: 90%;
}
section#story div.inner {
   padding: 6vw 10vw 10vw 10vw !important;
}

#story span.corner {
    width: 60px;
    height: 60px;}

    #story span.border-right {
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #DDBB99;
    height: 72%;
    margin: auto 0;
    right: 4%;}
    #story span.border-left {
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #DDBB99;
    height: 72%;
    margin: auto 0;
    left: 4%;
}
#story h2{
  margin-bottom: 6%;
}
#story p{
  font-size: 1em;
  text-align: left;
  margin-top: 20px;
}

/* キャラクター｜人物紹介 */
#character ul{
  justify-content: center;
}
#character ul li{
  width: 100%;
  max-width: 38rem;
}
#character ul li div h3{
height: 2rem;
        text-align: center;
        margin-top: 0.5rem;
}
#character ul li div p{
  padding-top: 1rem;
}
.c-text figure {
    width: auto;
}
.c-text div {
    margin: 20px 0;
}
.c-text{
    height: auto;
}
ul li:nth-of-type(1) .c-text figure{
        width: 19%;
}
ul li:nth-of-type(3) .c-text figure{
        width: 15%;
}


.c-cc {
    min-width: 40px;
    position: absolute;
    top: 0;
            left: 4%;
    transform: rotate(-5deg);
    width: 7vw;}
    #character ul li:nth-of-type(6) .c-cc {
    top: 0%;
    left: 0%;}


    .c-btn {
    position: absolute;
    width: 90px;
    height: 90px;
    bottom: -12px;
    left: -12px;
    animation: yura-yura-float 3s ease-in-out infinite;
    display: inline-block;
}

#character ul li:not(:nth-of-type(n+5)) .c-body-wrap:hover .c-body-wrap-b {
    transform: scale(1);
    z-index: auto;
  }

  /* 反転中かつホバー中の拡大も 1（等倍）に戻す */
  #character ul li:not(:nth-of-type(n+5)).is-active .c-body-wrap:hover .c-body-wrap-b {
    transform: rotateY(180deg) scale(1);
  }

  /* 念のため transition も短くするか none にすると操作感が軽くなります */
  #character ul li:not(:nth-of-type(n+5)) .c-body-wrap-b {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }


    #keyword ul li{
    flex-direction: column;
}
#keyword ul li {width: 100%;        max-width: 380px;gap: 24px;}
#keyword ul li div{width: 90%;}
#keyword ul li h3 {
    min-height: 40px;
    margin-bottom: 16px;
    height: 7vw;
}

.top_bn{
    margin-top: 6vw;}

.top_bn a{
border-radius: 12px;}



/* 下記共通コンテンツのためいじらない */

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

    }
