/*reset css */
@import url('./css/font.css');
@import url('./css/animate.css');
@import url('./css/glink.css');

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
  padding: 0;
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset,
img {
  border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
  font-weight: normal;
  font-style: normal;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: 100%;
}

q:before,
q:after {
  content: '';
}

abbr,
acronym {
  border: 0;
}

span[style*='KaiseiDecol-Bold'] rt {
  transform: translate(0, 10px);
}

/*smart novel original css */

.vertical_text {
  font-family: '@ＭＳ 明朝';
  /*color:white;*/
  writing-mode: tb-rl;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  float: right;
  height: 100%;
}

.layer_menu {
  display: none;
  font-size: 1.3em;
  font-weight: bold;
  position: absolute;
  width: 100%;
  height: 100%;
}

/*メニュ－ボタン系*/
.menu_item {
  cursor: url(../data/image/cursor3.png) 6 1, pointer !important;
}

.display_menu .button:first-child {
  margin-top: 0;
}

.display_menu {
  overflow: visible;
  padding: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  /*overflow:visible;padding:2%;display:table-cell;vertical-align:middle*/
}

/* セーブ時の画面の設定
--------------------------*/
/* セーブデータリスト全体の設定 */
.save_list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, max-content);
  grid-template-columns: repeat(2, 1fr);
  font-family: craftmincho;
  width: 80%;
  column-gap: 8%;
  margin-top: 120px;
  margin-left: 130px;
  position: absolute;
  top: 0;
  left: 0;
}

.save_display_area {
  cursor: url(../data/image/cursor3.png) 6 1, pointer !important;
}

.save_list_item_border_container {
  height: 188px;
  background-size: contain;
  background-position: center;
}

/* セーブデータの設定 */
.save_list_item_scale_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: transform 0.15s ease-out;
  transform: scale(1);
}

.save_list_item_date {
  font-size: 1.02rem;
}

.save_list_item_subtitle {
  text-align: left;
  font-weight: normal;
  color: #2ea6b6;
  font-size: 0.8em;
  padding-left: 5px;
}
.save_list_item_subtitle.bel {
  color: red;
}

.save_list_item:not(:nth-child(3n)) {
  border-bottom: 2px solid #beaf9d;
  padding-bottom: 24px;
}

.save_list_item:not(:nth-child(3n + 1)) {
  padding-top: 24px;
}

.save_list_item.save_no_data {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: max-content 1fr;
  cursor: url(../data/image/cursor3.png) 6 1, pointer !important;
}

.save_list_item_thumb {
  position: relative;
}

.save_list_item_thumb .img_hover {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.save_list_item_thumb .img_new {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 88px;
  height: 32px;
}

/* セーブデータのサムネイル部分の設定 */
.save_list_item_thumb img {
  display: block;
  width: 250px;
  height: 188px;
}

/* セーブデータのテキスト部文の設定 */
.save_list_item_area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.save_list_item_area .phase {
  display: block;
  position: relative;
  text-align: left;
}

.save_list_item_area .phase_meter {
  position: absolute;
  z-index: 1;
  top: 92px;
}

.save_list_item_area .phase_meter:nth-of-type(1) {
  left: 18px;
}

.save_list_item_area .phase_meter:nth-of-type(2) {
  left: 83px;
}

.save_list_item_area .phase_meter:nth-of-type(3) {
  left: 148px;
}

/* セーブデータの日付の設定 */
.save_list_item_date {
  display: block;
  padding: 5px;
  line-height: 1;
  text-align: left;
  color: #322e4e;
}

/* セーブデータのテキストの設定 */
.save_list_item_text {
  display: block;
  line-height: 1.3;
  height: 48px;
  overflow: hidden;
  color: #322e4e;
}

.layer_event_click {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: rgba(0, 0, 0, 0);
}

body > .layer_event_click {
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  top: 0;
  left: 0;
  z-index: 1;
}

body > .layer_event_guard {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 2;
}

.layer {
  background-size: 100% 100%;
}

.button_menu {
  position: absolute;
  z-index: 99999;
  top: 20px;
  cursor: pointer;
}

/*
 CSSを修正することで、ゲーム画面をカスタマイズすることが可能です
 * */

/*ゲーム枠の外側の色を指定します*/

body {
  background-color: black;
  background-position: center;
  backdrop-filter: brightness(0);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  touch-action: manipulation;
  cursor: url(../data/image/cursor2.png) 6 1, auto !important;
  position: relative;
}

/*次へのクリックを促すアイコン*/

.img_next {
  padding-left: 3px;
}

.tyrano_base {
  -moz-user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -webkit-text-size-adjust: none;
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 3;
}

/* 反転 */
.reflect {
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  transform: scaleX(-1);
  filter: FlipH;
}

.reflection {
  transition-property: opacity;
  transition-function: linear;
}

/*ダイアログボックス*/
#alertify {
  z-index: 9999999;
}

.title_menu {
  rotate: 6deg;
}

/* メニューアイテム */
#menu_items img {
  position: absolute;
}

#menu_items p {
  position: absolute;
  font-family: craftmincho;
}

/* 無効なボタン */
.photo_button.disabled,
.skip_button.disabled,
.log_button.disabled,
.menu_button.disabled {
  filter: brightness(0.5);
}

.photo_button.in_skip,
.skip_button.in_skip,
.log_button.in_skip,
.menu_button.in_skip {
  display: none;
}

.disabled.in_skip {
  display: inline;
}
.skip_button.unread {
  display: none !important;
}
.skip_button.in_choice2,
.skip_button.in_zyagan {
  display: none !important;
}
.disabled.in_choice2,
.disabled.in_zyagan {
  display: inline !important;
}

/* スキップ中（初期状態は非表示） */
.skipping {
  visibility: hidden;
}

/* 名前欄 */
.chara_name_area {
  transform: rotate(-1deg);
}

/* 選択肢の枠はフォントサイズの影響を受けないように */
.waku,
.waku_small {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}

p.waku {
  height: 80px;
}

/* エンディングの選択肢枠はフェードのため最初は非表示に */
.waku.ending,
.waku_small.ending {
  opacity: 0;
}

.waku.neo {
  opacity: 0;
}

/* DEAL WITH BLINK */
.__glink_enterimg_tmp {
  opacity: 0;
}

/* カーソル（リンク） */
.event-setting-element {
  cursor: url(../data/image/cursor3.png) 6 1, pointer !important;
}

/* MPゲージ */
.mp_gauge {
  left: 1210px;
  bottom: 331px;
  width: 26px;
  max-height: 0;
  object-fit: cover;
  object-position: left bottom;
}

.message0_fore > .message_outer {
  background-size: cover;
  background-position: center;
}

/* UIレイヤー（前面に表示） */
.message2_fore {
  z-index: 100;
}

/* 邪眼ゲージ */
.zyagan_waku {
  opacity: 0;
}

/* 邪眼ボタン */
.zyagan_eye {
  animation: 0.4s cubic-bezier(0, 0.1, 0.2, 1) 1 zoom-out;
}

.kuro.skeleton {
  opacity: 0.5;
}

@keyframes zoom-out {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

/* 目 */
.metozi,
.meake,
.metozi_,
.meake_ {
  z-index: 99;
}

/* 水晶 */
.suisyou {
  opacity: 0;
  transition: opacity 0.4s;
}

.suisyou:hover {
  opacity: 0.6;
}

.suisyou_hatena {
  opacity: 0;
}

/* 名前入力欄 */
.text_box {
  color: white;
  border: 3px solid #ae9475;
  background-color: #484d73;
  text-align: center;
}

.gaku_input_bg,
.text_box[name='f.gakuInput'] {
  position: absolute;
  color: lime;
  border: 3px solid lime;
  background-color: rgb(0 0 0 / 0.5);
  text-align: left;
}

*:focus {
  outline: none;
}

/* 本のスタイル指定 */
.hon1,
.hon2,
.hon3 {
  padding: 0;
}

/* コレクション */
.collection_book {
  padding: 0;
}

.collection_book > span {
  display: inline-block;
  margin-top: 540px;
  color: #f6ebad;
}

#collection_menu {
  display: grid;
  grid-auto-rows: max-content;
  gap: 10px;
  position: absolute;
  overflow-x: hidden;
  overflow-y: scroll;
  transition: opacity 0.2s;
  -webkit-overflow-scrolling: touch;
  top: 135px;
}

#collection_menu.character {
  grid-template-columns: repeat(3, max-content);
  width: 560px;
  height: 730px;
  left: 690px;
}

#collection_menu.ending {
  grid-template-columns: 1fr;
  width: 500px;
  height: 680px;
  left: 720px;
}

#collection_menu::-webkit-scrollbar {
  width: 12px;
  background: none;
}

#collection_menu::-webkit-scrollbar-thumb {
  background-color: #ad9375;
  border-radius: 6px;
}

.collection_image {
  opacity: 0;
  transition: opacity 0.3s;
}

.collection_label {
  border-bottom: 4px solid #5f2a0b;
  padding-bottom: 11px;
}

.collection_label rt {
  position: relative;
  top: -0.2em;
}

.collection_chara {
  padding: 0;
}

.collection_text.desc {
  line-height: 1;
}

.collection_ending {
  display: flex;
  align-items: center;
  padding: 0;
  padding-left: 40px;
  height: 40px;
}

.collection_ending.selected {
  background-image: url('../data/image/menu/selected_end.png');
  background-repeat: no-repeat;
}

.collection_ending.selected p {
  color: #fdefde !important;
}

.collection_paging {
  width: 360px;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 115px;
  left: 785px;
  gap: 10px;
}

.album_photo {
  border: 6px solid white;
}

.waku.album,
.waku.ng.view {
  opacity: 0;
}

.snap_modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 960px;
  z-index: 100;
  background-image: url(../data/image/collection/modal_bg.png);
  box-shadow: black 0 3px;
}

#deco_canvas {
  position: absolute;
  top: 45px;
  left: 36px;
  width: 960px;
  height: 720px;
  overflow: hidden;
  z-index: 100;
  background-size: contain;
}

#deco_menu {
  display: grid;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(2, max-content);
  gap: 7px;
  position: absolute;
  overflow-x: hidden;
  overflow-y: scroll;
  transition: opacity 0.2s;
  -webkit-overflow-scrolling: touch;
  left: 1014px;
  top: 44px;
  width: 230px;
  height: 817px;
}

#deco_menu::-webkit-scrollbar {
  width: 8px;
  background: none;
}

#deco_menu::-webkit-scrollbar-thumb {
  width: 8px;
  background-color: #ad9375;
  border-radius: 4px;
}

.sticker_button {
  z-index: 99999999;
  width: 96px;
  height: 96px;
  background-image: url('../data/image/photo/sticker_button.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: flex;
  align-items: center;
}

.sticker_button > img {
  object-fit: contain;
  width: 100%;
}

.sticker_button.disabled > img {
  filter: grayscale(100%) contrast(30%);
}

.sticker {
  position: absolute;
}

.sticker.wip {
  opacity: 0;
}

.sticker.current {
  outline: 1px solid beige;
}

.ui.count,
.ui.count_max {
  letter-spacing: -2px;
}

.omake_boxes {
  position: absolute;
  left: 104px;
  top: 556px;
  display: grid;
  width: max-content;
  grid-template-columns: repeat(8, 56px);
  grid-auto-rows: 56px;
  border-width: 2px 0 0 2px;
  border-style: solid;
  border-color: white;
}

.omake_boxes > .box {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  border-width: 0 2px 2px 0;
  border-style: solid;
  border-color: white;
  background-color: #eecfa4;
  box-shadow: 0 2px #deb4a2, inset 0 2px #dbaa90;
  font-family: 'funwari-round';
  font-size: 36px;
  color: #8e676c;
  letter-spacing: -4px;
  text-indent: -4px;
}

.omake_boxes > .box > img {
  position: absolute;
  top: 3px;
  left: 7px;
}

.gallery.thumb,
.ng.thumb {
  box-shadow: 0 0 8px #36142c;
  backface-visibility: hidden;
  background-color: #9e8582;
}

.gallery.thumb.t1 {
  transform: rotate(2deg);
}

.gallery.thumb.t2 {
  transform: rotate(-2deg);
}

.gallery.thumb.t3 {
  transform: rotate(1deg);
}

.gallery.thumb.t4 {
  transform: rotate(-1deg);
}

.gallery.image {
  box-shadow: 0 0 8px #0b0821;
}

.gallery.view.page_no {
  text-shadow: 0 0 6px #0b0821, 0 0 4px #0b0821;
}

.total_mp_gauge {
  object-fit: cover;
  object-position: left;
}

.newspaper.photo {
  filter: grayscale(1);
  border: 8px solid white;
}

/* kupya2.png の回転 */
.ring {
  animation: 56s linear infinite rotate;
}

/* エンディングムービー */
.ending_movie {
  opacity: 0;
  transition: opacity 5s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* フェードアニメーション */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ネオでび用アニメーション */
@keyframes flash0 {
  from {
    filter: brightness(1.6);
  }

  to {
    filter: brightness(1);
  }
}

@keyframes flash1 {
  from {
    filter: brightness(1.6);
  }

  to {
    filter: brightness(1);
  }
}

@keyframes quake0 {
  from {
    transform: none;
  }

  50% {
    transform: translate(8px);
  }

  to {
    transform: none;
  }
}

@keyframes quake1 {
  from {
    transform: none;
  }

  50% {
    transform: translate(8px);
  }

  to {
    transform: none;
  }
}

@keyframes scale0 {
  0% {
    scale: 0.95;
  }

  99.99% {
    scale: 0.95;
  }

  100% {
    scale: 1;
  }
}

@keyframes scale1 {
  0% {
    scale: 0.95;
  }

  99.99% {
    scale: 0.95;
  }

  100% {
    scale: 1;
  }
}
