html, body{
  overflow-x: hidden;
}

@supports (overflow: clip){
  html, body{
    overflow-x: clip; 
  }
}

/* =========================
ミステリーファイルベース
========================= */
:root{
  --container: 990px;
  --gutter: 16px;

  --text: #303030;
  --marker-bold:#FFC0D8;
  --marker-lite:#E34D4D;
}


/* =========================
page
========================= */
.backgroundbg-mystery{
  background-color: #3b3b3a;
}


/* =========================
Layout
========================= */
.l-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* =========================
ヘッダーhero
========================= */

.hero-image{
  width: 100%;
  max-width: var(--container);
  margin: auto;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.15);
  display: block;
  position: relative;
  z-index: 3;
}

.hero{
  margin: 0;
  padding: 0;
  line-height: 0;
  display: block;
}


/* =========================
  リード
========================= */

.lead{
  max-width: 958px; 
  margin: auto; 
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 30px 16px 100px; 
  top: 0;
  margin-top: -7px;
}

.lead__content{
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.lead__paper{
  position: absolute;
  left: 50%;
  top: 50%;

  width: 120%;
  height: 120%;
  max-width: 90%;

  background: #f6efcf;
  transform: translate(-50%, -50%) rotate(-2.8deg);
  transform-origin: center;
  z-index: 1;
  pointer-events: none;
}

.post-mystery{
  padding-top:8px;
}


/* 罫線 */
.lead__paper::before{
  content:"";
  position:absolute;
  inset: 0;
  /* 横罫線：上から一定間隔で繰り返し */
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) 32px,
      rgba(0,0,0,.10) 33px,
      rgba(0,0,0,0) 34px
    );
  /* 罫線開始位置を少し下げたいならここ */
  background-position: 0 80px;
}


.u-sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


.lead__copy{
  font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "serif";
  font-size: 18px;
  line-height: 140%;
  padding-bottom: 1%;
  font-style: normal;
  font-weight: 400;
}

.lead__note{
  color: #95907b;
    font-size: 11px;
    line-height: 140%;
}



/* =========================
  main
========================= */

.main{
  max-width: 990px;
  margin: auto;
  position: relative;
  z-index: 2;
  margin-top: -80px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.20));
  overflow-x: visible;
}



    

.case-wrap{
  position: relative;   /* ←付箋の基準 */
  overflow: visible;    /* ←はみ出しを切らない */
}

/* 付箋 */
.backnumber-anker{
  position: absolute;
  left: clamp(8px, 3vw, 24px);
  top: 0;                             /* ←紙の上辺基準 */
  transform: translateY(-55% ) rotate(2.85deg);
  z-index: -1;

  display: inline-block;
  width: min(264px, 85vw);
  padding: 10px 8px 24px 14px;
  background-color: #F7E957;
  box-shadow: 0 6px 10px rgba(0,0,0,.18);
  text-decoration: none;
  color: #111;
  border-radius: 2px;
  font-size: 16px;
  font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif !important;
}

.backnumber-anker::after{
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-3px) rotate(90deg);
  background: url("/pub/img/icon/arrow/arrow_low.svg") center / contain no-repeat;
}

.case__title_backnumber{
  color: #fff;
  padding: 16px 16px;
  font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif !important;
}

html{
  scroll-behavior: smooth;
}






/* =========================
  Case
========================= */

.case{ 
  padding: 6px 0 24px 0; 
  background: url("/pub/img/page/comic/mysteryfile/mysteryfile_background.png") top center / cover no-repeat;
}

.case__caption{
  max-width: var(--container);
  padding: 20px 24px;
  margin: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: rgba(0,0,0,.72);
}

.case__no{
  font-weight: bold;
}

.case__title{
  margin: 4px auto;
  max-width: 80%;
  line-height: 120%;
  text-align: center;
  font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "serif";
  font-size: 22px;
  letter-spacing: .08em;
  font-style: normal;
  font-weight: 400;
}

.mystery-scope,
.mystery-scope *{
  font-family: "Hina Mincho","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif !important;
  font-style: normal;
  font-weight: 400;
}



.case_deco{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; 
  pointer-events: none;
  z-index: 5; 
}

/* ペン */
.case_deco__ballpen{
  position: absolute;
  right: -70px;
  top: -370px;
  width: 30px;
  height: auto;
  transform: rotate(217deg);
  filter: drop-shadow(-4px 1px 4px rgba(0,0,0,.30));
}


/* キャップ */
.case_deco__cap{
  position: absolute;
  right: -11px;
  top: 20px;
  width: 36px;
  height: auto;
  transform: rotate(156deg);
  filter: drop-shadow(-4px 1px 4px rgba(0, 0, 0, .30));
}


/* =========================
  Case file table
========================= */


.case-record{
  --portrait-col: 90px;
  margin-top: 8px;
}
.case-record .paper__inner{
  padding: 16px 24px;
}

.case-record__frame{
  border: 2px solid #000;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  color: #000;
  max-width: var(--container);
  margin: 0 auto;
}

.case-file{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.u-underline{
  font: inherit; 
  text-decoration: underline;
  text-decoration-color: #E34D4D;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}


/* col幅 */
.case-file__col-label{ width: 42px; }
.case-file__col-portrait{ width: var(--portrait-col); }
.case-file__col-main{ width: auto; }


.case-file__row > *{
  border-top: 1px solid #000;
  padding: 16px;
  font-size: 15px;
  line-height: 1.5;
  vertical-align: top; 
}
.case-file__row:first-child > *{ border-top: 0; }

.case-file__row > *:not(:first-child){
  border-left: 1px solid #000;
}

.case-file__row--section > *{ border-top-width: 2px; }

/* 左ラベル */
.case-file__label_tate{
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 14px;
    letter-spacing: .18em;
}


.case-file__label_tate span {
    grid-template-columns: 1fr 100px;
}



.case-file__portrait{
  padding: 0;
  vertical-align: top;
}

.case-file__avatar{
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}


.case-file__avatar img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 名前セル */
.case-file__name{
  vertical-align: middle;
  font-size: 16px;
  letter-spacing: .10em;
}

.case-file__age{
  font-size: 14px;
  letter-spacing: 0;
}

/* 説明セル */
.case-file__desc{
  border-top: 1px dashed #000;
  padding: 18px;
  vertical-align: top;
}

.case-file__desc--with-leftline{
  border-left: 1px solid #000;
}



/* =========================
  investigation-memo
========================= */

.investigation-memo{
  max-width: 352px;
  margin:auto;
  transform: rotate(-2deg);
  transform-origin: center;
  position: relative;
  overflow: visible;
  top: -14px;
  z-index: 6;
}

.memo__headline{
font-size: 18px;
font-weight: bold;
padding: 0px 0px 4px 6px;
font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "serif";
font-style: normal;
font-weight: 400;
}

.memo__list{
  font-size: 15px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
  

.memo__item{
  position: relative;
  padding-left: 1.2em;
  margin: 6px 0;
  line-height: 1.5;
  font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "serif";
  font-style: normal;
  font-weight: 400;
}

.memo__item::before{
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}


.memo__item .memo-marker{
  font: inherit;
  box-shadow: inset 0 -0.25em 0 rgba(239, 69, 80, 0.8);
  padding: 0 .1em;
}


.investigation-memo__side{
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 100%;
  z-index: 2;
  pointer-events: none;

  background: url("/pub/img/page/comic/mysteryfile/torn_edge_tile_vertical.svg") top left / 32px auto repeat-y; /* 破れ帯サイズ調整ここ！② */
}


.investigation-memo__content{
  position: relative;
  z-index: 1;
  margin-left: 32px;
  background: #f6efcf;
  padding: 16px 16px 16px 16px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.28));
}

/* 罫線 */
.investigation-memo__content::before{
  content:"";
  position:absolute;
  inset: 0;
  z-index: 0;
  pointer-events:none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) 32px,
      rgba(0,0,0,.12) 33px,
      rgba(0,0,0,0) 34px
    );
  background-position: 0 22px;
}


.investigation-memo__content > *{
  position: relative;
  z-index: 1;
}





/* =========================
  Scroll Anim 共通
========================= */


.mystery-contents_deco svg{ display:block; }

/* 1) メモ */
.investigation-memo.js-anim{
  transform: translate(-30px, 30px) rotate(-2deg);
  transition: transform .7s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}
.investigation-memo.is-active{
  transform: translate(0, 0) rotate(-2deg);
}

/* 5) ペン */
.mystery-contents_deco__pen.js-anim{
      transform: translate(50px, -32px) rotate(295deg);
  transition: transform .9s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}
.mystery-contents_deco__pen.is-active{
  transform: translate(0, 0) rotate(306deg);
}

/* =========================
  SVG draw
========================= */

/* 初期：SVGは見せない */
.js-draw{
  opacity: 0;
}

/* 発火：見えるようにする（消さない） */
.js-draw.is-active{
  opacity: 1;
}

/* 初期：線の見た目＋“隠す状態”を固定（ここでは transition しない） */
.js-draw path{
  fill: none !important;
  stroke: #f72a5c;
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;

  stroke-dasharray: var(--len, 1);
  stroke-dashoffset: var(--len, 1);
}

/* 発火した時だけ transition を付けて、0 に向かって描く */
.js-draw.is-active path{
  transition: stroke-dashoffset 1.1s ease;
  stroke-dashoffset: 0;
}

/* =========================
  作品紹介　mystery-contents
========================= */

.mystery-contents{
  max-width: 990px;
  position: relative;
  top: auto;
  margin-top: -40px;
  /* overflow: hidden; */

}

.mystery-contents-main{
  background-image: linear-gradient(#E7E7E7 1px, transparent 1px), linear-gradient(90deg, #E7E7E7 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #f2f2f2; 
}

.mystery-contents-wrapper{
  max-width: 327px;
  margin:auto;
  padding: 60px 24px 24px 24px;
  transform-origin: center;
  top: -0px;
  position: relative;
  isolation: isolate;
}  


.mystery-contents__title{
  margin:0 0 0 0;
  font-size: 20px;
  line-height: 120%;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mystery-contents__link{
  color: inherit;
  text-decoration: none;
  display: block;
}

.mystery-contents__name{
padding-top: 8px;
line-height: 140%;
max-width: 100%;
font-size: 12px;
color:#303030;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.mystery-title{
  position: relative;
  padding: 12px 0 32px 0;
  z-index: 94;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.24));
}

/*書影 */
.mystery-title .mysteryfile_coverwrap{
  display: block;
  z-index: 9;
}

.mystery-title .mysteryfile_cover{
  display: block;
  max-width: 290px;
  margin: 0 auto;
  margin-left: auto;
  z-index: 9;
}

.mysteryfile_coverwrap::after{
  border: 0;
  z-index: 9;
}


/* =========================
  作品周り装飾
========================= */

.mystery-contents_deco{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}


.mystery-contents-paper{
  position: relative;
  z-index: 2;
}

.mystery-contents_deco--back{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mystery-contents_deco--front{
  position: absolute;
  inset: 0;
  z-index: 5; 
  pointer-events: none;
}


.mystery-contents-card__body{
  position: relative;
  z-index: 3;
}

.mystery-contents_deco__line_03{
position: absolute;
    transform-origin: center;
    right: 20%;
    top: -13px;
    width: 64px;
    height: auto;
    transform: rotate(357deg);
    z-index: 4;
    mix-blend-mode: multiply;
}

.mystery-contents_deco__line_01{
position: absolute;
    right: 77%;
    top: 42px;
    width: 88px;
    height: auto;
    transform: rotate(357deg);
    z-index: 4;
    mix-blend-mode: multiply;
}

.mystery-contents_deco__line_02{
position: absolute;
    right: 78%;
    top: 126px;
    width: 82px;
    height: auto;
    transform: rotate(357deg);
    z-index: 4;
    mix-blend-mode: multiply;
}


.mystery-contents_deco__pen{ 
  position: absolute;
  right: -33%; 
  top: 442px; 
  width: 46px; 
  transform: rotate(306deg); 
}

/* =========================
  Buttons
========================= */


.mystery-contents-card__body{
  position: relative;
  padding: 12px 16px 20px 16px;
  border-radius: 8px;
  isolation: isolate;
  max-width: 250px;
  margin: auto;
}


.mystery-contents-card__body::before{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: #FFEEB7;
  box-shadow: 0 10px 14px rgba(0,0,0,.25);
  transform-origin: left bottom;
  transform: rotate(358deg);
  z-index: 0;
}


.mystery-contents-card__body::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: #FFC0D8;
  transform-origin: left bottom;
  transform: rotate(360deg);
  right: -8px;
  z-index: -1;
}


.mystery-contents-card__body > a{
  position: relative;
  z-index: 1;
}

.mystery-contents-card__body .mysteryfile-btn{
  display: block;
  font-size: 18px;
  font-weight: bold;
  color:#eb375c;
  margin: 0 auto;
  text-align: center;
}




/* =========================
  コピーライト
========================= */

.mystery-copy{
  display: block;
  color: #cbcbcb;
  font-size: 10px;
  max-width: 70%;
  padding: 16px 16px ;
}



/* =========================
追加カルーセル
========================= */

.mystery_backnumber_wrap{
padding: 0px 16px 24px 16px;
}


.c_mysteryfile_swiper-wrapper .swiper-slide {
width: 230px !important;
}

.c_mysteryfile_swiper-wrapper .swiper-slide img{
width: 100%;
display: block; 
}

.mystery_backnumber_list{
background: #fff;
padding: 10px;
border: 1px solid rgba(0,0,0,.06);
border-radius: 2px;

box-shadow:
0 10px 22px rgba(0,0,0,.12),
0 2px 6px rgba(0,0,0,.08);

box-sizing: border-box;
position: relative;
overflow: hidden;
}

.mystery_backnumber_list p{
padding:8px 0 0 0;
line-height: 140%;
}



/* カルーセルの矢印*/
.c_mysteryfile_slider_contents .swiper-button-prev {
    position: absolute;
    left: 2px;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    background: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-top: -16px;
    font-size: 0;
    opacity: 1;
    box-shadow: var(--box-shadow-high);
}
.c_mysteryfile_slider_contents .swiper-button-prev::after{
    display: block;
    content: url("/pub/img/icon/arrow/arrow_uigreen.svg");
    width: 12px;
    height: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -6px;
    font-size: 0;
    transform: rotate(180deg);
}

.c_mysteryfile_slider_contents .swiper-button-next {
    position: absolute;
    right: 2px;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    background: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-top: -16px;
    font-size: 0;
    opacity: 1;
    box-shadow: var(--box-shadow-high);
}
.c_mysteryfile_slider_contents .swiper-button-next::after{
    display: block;
    content: url("/pub/img/icon/arrow/arrow_uigreen.svg");
    width: 12px;
    height: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -6px;
    font-size: 0;
}
.c_mysteryfile_slider_contents .swiper-button-prev,
.c_mysteryfile_slider_contents .swiper-button-next
{
    display: none;
}
.c_mysteryfile_slider_contents:hover .swiper-button-next,
.c_mysteryfile_slider_contents:hover .swiper-button-prev
{
    display: block;
}
.c_mysteryfile_slider_contents:hover .swiper-button-disabled{
    display: none;
}




/* =========================
  Responsive
========================= */

/* =========================
  Responsive600
========================= */
@media screen and (min-width: 600px){

  .mystery-contents_deco__pen.js-anim{
    transform: translate(68px, -71px) rotate(281deg);
  }


  .case-file__row > *{
    font-size: 16px;
  }

  /* 表 */

  .case-record{
  --portrait-col: 140px;
  }

  /* 名前セル */

  .case-file__name{
    font-size: 18px;
  }

  .case-file__age{
    font-size: 16px;
  }

  /* メモ */

  .memo__headline{
    font-size: 20px;
    padding: 0px 0px 4px 6px;
    font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "serif";
    font-style: normal;
    font-weight: 400;
  }

  .memo__list{
    font-size: 17px;
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .investigation-memo {
  max-width: 436px;
  }

  .investigation-memo__content {
    padding: 32px;
  }

}



/* =========================
  Responsive1038
========================= */

@media screen and (min-width: 1038px){ 


  .mystery-contents_deco__pen.js-anim{
    transform: translate(33px, -251px) rotate(238deg)
  }



  .case-record .paper__inner {
    padding: 24px 40px;
  }

  /* 表 */
  .case-file__row > *{
    font-size: 18px;
  }

  .case-record{
    --portrait-col: 160px;
  }

  /* 名前セル */

  .case-file__name{
    font-size: 20px;
  }
  .case-file__age{
    font-size: 18px;
  }


  /* メモ */

  .memo__headline{
    font-size: 22px;
    padding: 0px 0px 4px 6px;
    font-family: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "serif";
    font-style: normal;
    font-weight: 400;
  }

  .memo__list{
    font-size: 20px;
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
    
  .investigation-memo {
  max-width: 500px;
  }

  .investigation-memo__content {
  padding: 40px;
  }

}