html,
body {
  margin: 0;
  padding: 0;
  background: #f5f2eb;
  color: #282622;
}

body {
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;
}

a,
a:visited {
  color: #282622;
}

a:hover {
  opacity: 0.6;
}


/* ========================================
   ALICE REQUIRED
======================================== */

.alice-required {
  display: none;
}


/* ========================================
   GRADATIM COVER
======================================== */

.gradatim-page {
  box-sizing: border-box;
  width: min(88%, 760px);
  margin: 7vh auto;
  padding: 3.5em 3.4em 3.2em;
  border: 1px solid rgba(40, 38, 34, 0.36);
}


/* TITLE */

.gradatim-heading h1 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.gradatim-reading {
  margin-top: 0.45em;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(40, 38, 34, 0.48);
}


/* ========================================
   MOTIF
======================================== */

.gradatim-motif {
  position: relative;
  height: 56px;
  margin: 1.25em 0 1.4em;
  overflow: hidden;
}

.gradatim-motif .line {
  position: absolute;
  display: block;
  height: 1px;
  transform-origin: left center;
}

.line-blue {
  left: -2%;
  top: 28px;
  width: 58%;
  background: rgba(102, 119, 132, 0.7);
  transform: rotate(-3deg);
}

.line-blue::after {
  content: "";
  position: absolute;
  left: 63%;
  top: 0;
  width: 80%;
  height: 1px;
  background: rgba(102, 119, 132, 0.42);
  transform-origin: left center;
  transform: rotate(7deg);
}

.line-orange {
  left: 6%;
  top: 37px;
  width: 53%;
  background: rgba(217, 107, 43, 0.72);
  transform: rotate(3deg);
}

.line-orange::after {
  content: "";
  position: absolute;
  left: 68%;
  top: 0;
  width: 85%;
  height: 1px;
  background: rgba(217, 107, 43, 0.46);
  transform-origin: left center;
  transform: rotate(-8deg);
}


/* 圧縮 */

.glass {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.glass-1 {
  width: 30px;
  height: 21px;
  left: 7%;
  top: 10px;

  border: 1px solid rgba(102, 119, 132, 0.22);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;

  transform: rotate(-18deg);
}

.glass-1::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 14px;
  left: 5px;
  top: 3px;

  border: 1px solid rgba(102, 119, 132, 0.14);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}


/* 爆破 */

.glass-2 {
  width: 14px;
  height: 1px;
  right: 11%;
  top: 32px;

  background: rgba(217, 107, 43, 0.68);
  transform: rotate(-27deg);
}

.glass-2::before,
.glass-2::after {
  content: "";
  position: absolute;
  display: block;
  height: 1px;

  background: rgba(217, 107, 43, 0.5);
  transform-origin: left center;
}

.glass-2::before {
  width: 8px;
  left: 5px;
  top: -4px;
  transform: rotate(48deg);
}

.glass-2::after {
  width: 6px;
  left: 8px;
  top: 4px;
  transform: rotate(-44deg);
}

.glass-3 {
  width: 38px;
  height: 26px;
  right: 22%;
  top: 7px;

  border: 1px solid rgba(102, 119, 132, 0.16);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;

  transform: rotate(19deg);
}


/* ========================================
   ATTENTION
======================================== */

.gradatim-attention {
  margin-top: 0.7em;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.gradatim-attention a {
  display: inline-block;
  color: rgba(40, 38, 34, 0.6);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(102, 119, 132, 0.35);
}

.gradatim-attention a::after {
  content: " →";
  color: #d96b2b;
}


/* ========================================
   NAME
======================================== */

.gradatim-dream {
  margin-top: 1.8em;
  padding: 1.1em 0 1.25em;

  border-top: 1px solid rgba(40, 38, 34, 0.14);
  border-bottom: 1px solid rgba(40, 38, 34, 0.14);
}

.gradatim-dream-label {
  margin-bottom: 0.8em;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(40, 38, 34, 0.5);
}

.gradatim-dream-form {
  display: grid;
  grid-template-columns: 110px 110px 54px;
  gap: 0.6em;
  align-items: end;
  justify-content: start;
}

.gradatim-dream-form label {
  display: block;
}

.gradatim-dream-form label span {
  display: block;
  margin-bottom: 0.35em;

  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(40, 38, 34, 0.62);
}

.gradatim-dream-form input[type="text"] {
  box-sizing: border-box;
  width: 110px;
  height: 28px;
  padding: 0 0.55em;

  border: 1px solid rgba(40, 38, 34, 0.22);
  border-radius: 0;

  background: rgba(255, 255, 255, 0.14);
  color: #282622;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 0.68rem;

  -webkit-appearance: none;
  appearance: none;
}

.gradatim-dream-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(102, 119, 132, 0.6);
}


/* 変換 */

.gradatim-dream-form input[type="submit"].gradatim-dream-submit,
.gradatim-dream-submit {
  box-sizing: border-box !important;
  display: inline-block !important;

  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;

  justify-self: start !important;
  align-self: end !important;

  margin: 0 !important;
  padding: 0 0.15em 2px !important;

  border: 0 !important;
  border-bottom: 1px solid rgba(217, 107, 43, 0.5) !important;
  border-radius: 0 !important;

  outline: none !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  box-shadow: none !important;
  text-shadow: none !important;

  color: #d96b2b !important;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif !important;

  font-size: 0.62rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;

  cursor: pointer !important;

  -webkit-appearance: none !important;
  appearance: none !important;
}


/* ========================================
   CHAPTERS
======================================== */

.gradatim-episodes {
  margin-top: 2.5em;
}

.chapter-block {
  margin-top: 3em;
}

.chapter-block:first-child {
  margin-top: 0;
}

.chapter-title {
  display: flex;
  align-items: center;
  gap: 1em;

  margin: 0 0 1.15em;

  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.chapter-title::after {
  content: "";

  width: 150px;
  height: 1px;

  background: linear-gradient(
    to right,
    rgba(102, 119, 132, 0.5),
    rgba(217, 107, 43, 0.18),
    rgba(40, 38, 34, 0.06)
  );
}


/* ========================================
   EPISODE LIST
======================================== */

.episode-list {
  border: 0;
}

.episode-item {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 0.7em;
  align-items: baseline;

  padding: 0.48em 0;

  border: 0;
  text-decoration: none;
}

.episode-no {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #d96b2b;
}

.episode-title {
  font-size: 0.8rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
}


/* ========================================
   COVER BACK
======================================== */

.gradatim-back {
  margin-top: 3.6em;
  text-align: center;

  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.gradatim-back a {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(40, 38, 34, 0.36);
}


/* ========================================
   NOVEL ARTICLE
======================================== */

.novel-page {
  box-sizing: border-box;
  width: min(88%, 720px);
  margin: 7vh auto;
  padding: 3.8em 3.4em;

  border: 1px solid rgba(40, 38, 34, 0.38);
}

.novel-header {
  text-align: left;
}

.novel-series {
  display: inline-block;
  margin-bottom: 2.7em;

  font-size: 0.76rem;
  letter-spacing: 0.2em;

  text-decoration: none;
  padding-bottom: 3px;

  border-bottom: 1px solid rgba(102, 119, 132, 0.45);
}

.novel-number {
  margin-bottom: 0.8em;

  font-size: 0.74rem;
  letter-spacing: 0.18em;

  color: rgba(40, 38, 34, 0.52);
}


/* 話タイトル：PC */

.novel-title {
  margin: 0;

  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.novel-rule {
  height: 1px;
  margin: 2.8em 0 3.2em;

  background: linear-gradient(
    to right,
    rgba(102, 119, 132, 0.42),
    rgba(217, 107, 43, 0.2),
    rgba(40, 38, 34, 0.16)
  );
}

.novel-rule-bottom {
  margin-top: 4em;
  margin-bottom: 2.4em;
}


/* 小説本文：PC */

.novel-text {
  font-size: 0.84rem;
  line-height: 2.1;
  letter-spacing: 0.035em;

  overflow-wrap: break-word;
}


/* ========================================
   NOVEL NAV
======================================== */

.novel-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5em;
  align-items: center;

  font-size: 0.8rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.novel-nav a {
  text-decoration: none;
  padding-bottom: 3px;

  border-bottom: 1px solid rgba(40, 38, 34, 0.38);
}

.novel-prev {
  text-align: left;
}

.novel-list {
  text-align: center;
}

.novel-next {
  text-align: right;
}

.novel-home {
  margin-top: 4em;
  text-align: center;

  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.novel-home a {
  text-decoration: none;
  padding-bottom: 3px;

  border-bottom: 1px solid rgba(40, 38, 34, 0.38);
}


/* ========================================
   NAME CHANGE PAGE
======================================== */

.dream-page {
  box-sizing: border-box;
  width: min(88%, 620px);
  margin: 7vh auto;
  padding: 3.8em 3.4em;

  border: 1px solid rgba(40, 38, 34, 0.38);
}

.dream-title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.dream-subtitle {
  margin-top: 0.6em;

  font-size: 0.64rem;
  letter-spacing: 0.16em;

  color: rgba(40, 38, 34, 0.5);
}

.dream-rule {
  width: 100%;
  height: 1px;
  margin: 1.8em 0 2.3em;

  background: linear-gradient(
    to right,
    rgba(102, 119, 132, 0.62),
    rgba(102, 119, 132, 0.3),
    rgba(217, 107, 43, 0.32),
    rgba(217, 107, 43, 0.58)
  );
}

.dream-field {
  margin-bottom: 1.4em;
}

.dream-label {
  margin-bottom: 0.5em;

  font-size: 0.7rem;
  letter-spacing: 0.1em;

  color: rgba(40, 38, 34, 0.7);
}

.dream-form input[type="text"],
.dream-form input:not([type]) {
  box-sizing: border-box;
  width: 100%;
  padding: 0.65em 0.8em;

  border: 1px solid rgba(40, 38, 34, 0.26);
  border-radius: 0;

  background: rgba(255, 255, 255, 0.14);
  color: #282622;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 0.82rem;
}

.dream-buttons {
  display: flex;
  gap: 0.8em;
  margin-top: 1.8em;
}

.dream-form input[type="submit"],
.dream-form input[type="reset"],
.dream-form button {
  padding: 0.5em 1.4em;

  border: 1px solid rgba(40, 38, 34, 0.3);
  border-radius: 0;

  background: transparent;
  color: #282622;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 0.7rem;
}

.dream-note {
  margin-top: 2.5em;
  padding-top: 1.7em;

  border-top: 1px solid rgba(40, 38, 34, 0.14);

  font-size: 0.7rem;
  line-height: 2;

  color: rgba(40, 38, 34, 0.6);
}

.dream-back {
  margin-top: 3em;
  text-align: center;

  font-size: 0.72rem;
}

.dream-back a {
  text-decoration: none;
  padding-bottom: 3px;

  border-bottom: 1px solid rgba(40, 38, 34, 0.36);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

  /* COVER */

  .gradatim-page {
    width: 88%;
    margin: 4vh auto;
    padding: 2.4em 1.6em 2.5em;
  }

  .gradatim-heading h1 {
    font-size: 1.08rem;
    letter-spacing: 0.14em;
  }

  .gradatim-reading {
    font-size: 0.58rem;
  }


  /* MOTIF */

  .gradatim-motif {
    height: 46px;
    margin: 1.05em 0 1.2em;
  }

  .line-blue {
    top: 23px;
    width: 58%;
  }

  .line-orange {
    top: 31px;
    width: 52%;
  }

  .glass-1 {
    width: 25px;
    height: 18px;
    left: 3%;
    top: 7px;
  }

  .glass-1::after {
    width: 17px;
    height: 11px;
    left: 4px;
    top: 3px;
  }

  .glass-2 {
    width: 12px;
    right: 7%;
    top: 27px;
  }

  .glass-3 {
    width: 30px;
    height: 21px;
    right: 20%;
    top: 6px;
  }


  /* ATTENTION */

  .gradatim-attention {
    margin-top: 0.6em;
    font-size: 0.62rem;
  }


  /* NAME */

  .gradatim-dream {
    margin-top: 1.6em;
    padding: 1em 0 1.15em;
  }

  .gradatim-dream-label {
    margin-bottom: 0.7em;
    font-size: 0.56rem;
  }

  .gradatim-dream-form {
    grid-template-columns: 92px 92px 48px;
    gap: 0.45em;
  }

  .gradatim-dream-form label span {
    font-size: 0.56rem;
  }

  .gradatim-dream-form input[type="text"] {
    width: 92px;
    height: 27px;
    padding: 0 0.5em;
    font-size: 0.66rem;
  }

  .gradatim-dream-form input[type="submit"].gradatim-dream-submit,
  .gradatim-dream-submit {
    width: auto !important;
    min-width: 0 !important;
    height: 27px !important;

    padding: 0 0.1em 2px !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(217, 107, 43, 0.5) !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;

    color: #d96b2b !important;

    font-size: 0.58rem !important;

    -webkit-appearance: none !important;
    appearance: none !important;
  }


  /* CHAPTER */

  .gradatim-episodes {
    margin-top: 2.2em;
  }

  .chapter-block {
    margin-top: 2.5em;
  }

  .chapter-title {
    gap: 0.8em;
    margin-bottom: 0.9em;

    font-size: 0.72rem;
  }

  .chapter-title::after {
    width: 92px;
  }


  /* EPISODES */

  .episode-item {
    grid-template-columns: 2.2em 1fr;
    gap: 0.55em;

    padding: 0.42em 0;
  }

  .episode-no {
    font-size: 0.62rem;
  }

  .episode-title {
    font-size: 0.74rem;
    line-height: 1.7;
  }


  /* COVER BACK */

  .gradatim-back {
    margin-top: 2.8em;
    font-size: 0.68rem;
  }


  /* NOVEL */

  .novel-page {
    width: 88%;
    margin: 4vh auto;
    padding: 2.5em 1.7em 2.7em;
  }

  .novel-series {
    margin-bottom: 2.2em;
    font-size: 0.7rem;
  }

  .novel-number {
    font-size: 0.68rem;
  }


  /* 話タイトル：スマホ */

  .novel-title {
    font-size: 1rem;
    line-height: 1.7;
  }

  .novel-rule {
    margin: 2.2em 0 2.6em;
  }

  .novel-rule-bottom {
    margin-top: 3.4em;
    margin-bottom: 2em;
  }


  /* 小説本文：スマホ */

  .novel-text {
    font-size: 0.78rem;
    line-height: 2.1;
  }

  .novel-nav {
    gap: 0.7em;
    font-size: 0.7rem;
  }

  .novel-home {
    margin-top: 3em;
    font-size: 0.7rem;
  }


  /* NAME PAGE */

  .dream-page {
    width: 88%;
    margin: 4vh auto;
    padding: 2.5em 1.6em;
  }

  .dream-title {
    font-size: 1.05rem;
  }

  .dream-subtitle {
    font-size: 0.6rem;
  }

  .dream-form {
    font-size: 0.76rem;
  }

  .dream-form input[type="text"],
  .dream-form input:not([type]) {
    font-size: 0.78rem;
  }

  .dream-note {
    font-size: 0.68rem;
  }

  .dream-back {
    font-size: 0.68rem;
  }
}