@charset "UTF-8";
/* --------------------------------------------------
  Template by espace（https://espace.monbalcon.net/）
  Copyright: 2020 espace.

  利用規約を遵守の上、ご利用ください。
  二次配布、販売は禁止しています。
  --------------------------------------------------*/
/* ----- ▼ CSS変数設定 ここから ▼ ----- */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;500&family=Zen+Kaku+Gothic+New:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
:root {
  --text-color: #333;
  --bg-color: #ebebeb;
  --required-color: red;
  --white: #fff;
  --light-gray: #ebebeb;
  --gray: #d6d6d6;
  --shadow: #a78d7975;
  --theme-color1-more-light: #fabebd;
  --theme-color1-light: #ea947c;
  --theme-color1-default: #e47a52;
  --theme-color2-more-light: #ceecbf;
  --theme-color2-light: #96c380;
  --theme-color2-default: #76bc5b;
  --animation: 0.3s;
  --menu-clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

/* ----- ▲ CSS変数設定 ここまで ▲ ----- */
/* ----- ▼ リセット　ここから（基本的には触らない方が良い部分） ▼ ----- */
/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/*
  Add by espace
*/
* {
  word-break: break-all;
}

:focus {
  outline: none;
}

html {
  font-size: 62.5%;
}

body {
  word-wrap: break-word;
}

picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  margin-block: 0;
  margin-inline: auto;
}

a,
button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  vertical-align: middle;
  max-inline-size: 100%;
}

p,
dl,
ul,
ol,
form,
.box,
.scrollbox {
  margin-block: 2.5rem;
  margin-inline: auto;
}

nav ul {
  list-style: none;
  padding: 0;
}

main {
  hanging-punctuation: allow-end;
}

/* ----- ▲ リセット　ここまで（基本的には触らない方が良い部分） ▲ ----- */
/* ----- ▼ PCレイアウト　ここから ▼ ----- */
/* 基本 */
html {
  background: var(--bg-color);
}

body,
button,
input,
textarea,
select {
  font: 500 1.6rem/2.65rem "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text-color);
}

body.get-header main, body.get-header footer {
  margin: 0 40px 0 auto;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  filter: drop-shadow(0px 0 10px var(--shadow));
  z-index: 90;
}
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--theme-color1-more-light) url("../img/layout/bg.jpg") no-repeat left center/cover;
  clip-path: var(--menu-clip-path);
  z-index: -1;
}
header h1 {
  position: absolute;
  top: 0;
  left: 200px;
  height: 100vh;
  writing-mode: vertical-lr;
  transform: rotate(3deg);
}

main, footer {
  width: calc(100vw - 350px);
  margin: 0 auto;
}

main {
  padding-block-end: 10rem;
}
main.width-sm > article > *:not(h2):not(h3):not(h4):not(h5):not(h6) {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  text-align: right;
}

/* メニュー */
.menu ul,
.sub-menu ul {
  margin: 0;
}
.menu ul li a, .menu ul li button,
.sub-menu ul li a,
.sub-menu ul li button {
  display: block;
  width: 100%;
  line-height: 1;
  font-family: "Josefin Sans", "Zen Kaku Gothic New", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}

.menu {
  position: absolute;
  clip-path: var(--menu-clip-path);
  width: 100%;
  height: 100%;
}
.menu ul {
  margin: 2rem 0;
}
.menu ul li a, .menu ul li button {
  border: 0;
  padding: 1.5rem 3rem 1.5rem 2rem;
  background: transparent;
  border: 0;
  border-left: 10px solid transparent;
  border-radius: 0;
  color: var(--white);
}
.menu ul li a:hover, .menu ul li button:hover {
  background-color: transparent;
  border-color: var(--white);
}
.menu ul li button {
  font-weight: 500;
}
.menu ul li button[data-target-menu] {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu ul li button[data-target-menu]::after {
  content: "\e315";
  font: 700 1.6rem/1 "Material Symbols Rounded";
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 20;
}

.sub-menu {
  position: fixed;
  top: 0;
  left: -500px;
  padding: 1rem 1rem 1rem 1rem;
  width: 500px;
  background: var(--bg-color);
  opacity: 0;
  filter: drop-shadow(0px 0 10px var(--shadow));
  z-index: 89;
  transition: left var(--animation), opacity var(--animation);
}
.sub-menu.open {
  left: 0;
  opacity: 1;
}
.sub-menu ul {
  padding-left: 270px;
  padding-bottom: 2rem;
  height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}
.sub-menu ul::-webkit-scrollbar {
  inline-size: 10px;
}
.sub-menu ul::-webkit-scrollbar-track {
  background-color: transparent;
}
.sub-menu ul::-webkit-scrollbar-thumb {
  background-color: var(--bg-color);
  border: 2px solid var(--theme-color1-light);
  border-radius: 5px;
}
.sub-menu ul li a {
  padding: 1rem 0;
  color: var(--theme-color1-default);
  transition: all var(--animation);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.sub-menu ul li a:hover {
  transform: translateX(2rem);
}

.sub-menu ul li.inline {
display: flex;
justify-content: start;
align-items: center;
flex-wrap: wrap;
}
.sub-menu ul li.inline a {
display: inline-block;
width: auto;
padding: 1rem;
}
.sub-menu ul li.inline a:hover {
transform: none;
}

.fixed-menu {
  position: fixed;
  bottom: 40px;
  right: 0;
  z-index: 91;
}
.fixed-menu ul {
  margin: 0;
}
.fixed-menu ul li.pagetop a::before,
.fixed-menu ul li.pagetop button::before,
.fixed-menu ul li.pagetop span::before {
  content: "\eacf";
}
.fixed-menu ul li.prev a::before,
.fixed-menu ul li.prev button::before,
.fixed-menu ul li.prev span::before {
  content: "\e5cb";
}
.fixed-menu ul li.next a::before,
.fixed-menu ul li.next button::before,
.fixed-menu ul li.next span::before {
  content: "\e5cc";
}
.fixed-menu ul li.home a::before,
.fixed-menu ul li.home button::before,
.fixed-menu ul li.home span::before {
  content: "\e88a";
}
.fixed-menu ul li.toc a::before,
.fixed-menu ul li.toc button::before,
.fixed-menu ul li.toc span::before {
  content: "\ea19";
}
.fixed-menu ul li.characters a::before,
.fixed-menu ul li.characters button::before,
.fixed-menu ul li.characters span::before {
  content: "\e7fd";
}
.fixed-menu ul li.images a::before,
.fixed-menu ul li.images button::before,
.fixed-menu ul li.images span::before {
  content: "\e413";
}
.fixed-menu ul li.next::before {
  content: none;
}
.fixed-menu ul li a,
.fixed-menu ul li button,
.fixed-menu ul li span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg-color);
  color: var(--theme-color2-default);
}
.fixed-menu ul li a::before,
.fixed-menu ul li button::before,
.fixed-menu ul li span::before {
  font: 400 1.8rem/1 "Material Symbols Rounded";
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 20;
}
.fixed-menu ul li a:hover,
.fixed-menu ul li button:hover {
  background: var(--bg-color);
  color: var(--theme-color2-default);
}
.fixed-menu ul li span {
  color: var(--gray);
}

/* 見出し */
h1 {
  margin: 0;
  font: 300 36px/1 "Josefin Sans", "Zen Kaku Gothic New", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--theme-color2-default);
  pointer-events: none;
}
h1 a {
  pointer-events: initial;
  color: var(--theme-color2-default);
  transition: color var(--animation);
}
h1 a:hover {
  color: var(--theme-color1-default);
}

h2, h3, h4, h5, h6 {
  font: 500 1.8rem "Josefin Sans", "Zen Kaku Gothic New", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}

h2, h3 {
  font-size: 2.2rem;
}

h2 {
  margin-block: 10rem;
  text-align: center;
}
h2 span {
  padding: 5px 5rem 0;
  background: var(--theme-color1-default);
  color: var(--white);
}

h3 {
  margin-block: 10rem;
  position: relative;
}
h3::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: 1;
  height: 2px;
  width: 100%;
  background: var(--theme-color1-default);
  z-index: -1;
}
h3 span {
  background: var(--bg-color);
  padding-inline-end: 1rem;
}

h4, h5, h6 {
  margin-block: 5rem 2.5rem;
}
h4 span, h5 span, h6 span {
  display: inline-block;
  padding: 0.2rem 2rem;
}

h4 span, h5 span {
  border: 2px solid var(--theme-color1-default);
}

h4 span {
  background: var(--theme-color1-default);
}

h6 span {
  border-bottom: 2px solid var(--theme-color1-default);
}

/* リスト */
ul.no-style, ol.no-style {
  padding: 0;
  list-style: none;
}
ul.column, ol.column {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
ul.column > *, ol.column > * {
  margin: 0 !important;
}
ul.column.gap, ol.column.gap {
  gap: 5px 25px;
}
ul.column.column-2 > *, ol.column.column-2 > * {
  inline-size: calc((100% - 25px) / 2) !important;
}
ul.column.column-3 > *, ol.column.column-3 > * {
  inline-size: calc((100% - 50px) / 3) !important;
}
ul .description, ol .description {
  margin-inline-start: 10px;
}
ul .description::before, ol .description::before {
  content: "…";
  margin-inline-end: 10px;
}
ul .description:has(ul.small), ul .description:has(ol.small), ol .description:has(ul.small), ol .description:has(ol.small) {
  display: flex;
  justify-content: flex-start;
}
ul .description:has(ul.small)::before, ul .description:has(ol.small)::before, ol .description:has(ul.small)::before, ol .description:has(ol.small)::before {
  content: "└";
}
ul .description > ul.small, ol .description > ul.small {
  display: inline-block;
  margin-block: 0;
  margin-inline: 0;
}

dl dd {
  margin-block-end: 1.25rem;
  padding-inline-start: 5rem;
  padding-block-end: 1.25rem;
}
dl dd:last-of-type {
  padding-block-end: 0 !important;
  border-block-end: 0 !important;
}
dl.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 0;
}
dl.inline dt, dl.inline dd {
  margin-block-end: 0;
  padding-block-end: 1.25rem;
}
dl.inline dt:last-of-type, dl.inline dd:last-of-type {
  padding-block-end: 0 !important;
  border-block-end: 0 !important;
}
dl.inline dt {
  inline-size: 200px;
}
dl.inline dd {
  inline-size: calc(100% - 200px);
  padding-inline-start: 0;
}


ul li.next {
  list-style: none;
}
ul li.next::before {
  content: "→";
  margin-inline-end: 5px;
  font-size: 120%;
}
ul.small {
  list-style: none;
  padding-inline-start: 0;
}
ul.small li {
  display: inline;
}
ul.small li::before {
  color: var(--theme-color1-light);
}
ul.small li:not(:first-child):not(.next)::before {
  content: ":";
  margin-block: 0;
  margin-inline: 2px 5px;
  font-weight: 900;
}
ul.small li.next::before {
  margin-block: 0;
  margin-inline: 2px 7px;
}

dl dd {
  border-block-end: 2px solid var(--gray);
}
dl.inline dt,
dl.inline dd {
  border-block-end: 2px solid var(--gray);
}
dl.border {
  padding-block: 15px;
  padding-inline: 20px;
  border: 2px solid var(--gray);
}

/* フォーム */
.required::after {
  content: "*";
  color: var(--required-color);
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-block > dl:first-child {
  margin-block-start: 0;
}
.form-block > dl:last-of-type {
  margin-block-end: 0;
}
.form-block dl dt,
.form-block dl dd {
  margin: 0;
  padding: 0;
  border-block-end: 0;
}
.form-block dl dd > * {
  margin: 0;
}
.form-block dl.inline {
  gap: 1.25rem 0;
}
.form-block dl.inline dt {
  inline-size: 130px;
}
.form-block dl.inline dd {
  inline-size: calc(100% - 130px);
}
.form-block > *,
.form-block dl dd > * {
  inline-size: 100%;
}

input,
textarea,
select,
button,
input[type=submit],
input[type=button] {
  border: 2px solid var(--gray);
  transition: border-color var(--animation), background-color var(--animation);
  border-radius: 20px;
}

input:hover, input:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus {
  border-color: var(--theme-color2-light);
}

button,
input[type=submit],
input[type=button] {
  border-color: var(--theme-color2-light);
  background-color: var(--theme-color2-more-light);
  color: var(--theme-color2-default);
  font-weight: 600;
}
button:hover,
input[type=submit]:hover,
input[type=button]:hover {
  background-color: var(--theme-color2-light);
  color: var(--white);
} /* リンク */
a.arrow::before, span.arrow::before {
  content: "\e5cc";
  margin-right: 5px;
  font-family: "Material Symbols Rounded";
  vertical-align: middle;
}
a.btn, span.btn {
  overflow: hidden;
  padding: 5px 7px;
  font-weight: bold;
}
a.btn.btn-block, span.btn.btn-block {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}
a.btn.btn-arrow::after, span.btn.btn-arrow::after {
  content: "\e5cc";
  margin-left: 5px;
  font-family: "Material Symbols Rounded";
  vertical-align: middle;
}
a.btn.btn-arrow.btn-block, span.btn.btn-arrow.btn-block {
  position: relative;
  padding-right: 30px;
}
a.btn.btn-arrow.btn-block::after, span.btn.btn-arrow.btn-block::after {
  position: absolute;
  right: 5px;
}

a {
  color: var(--theme-color2-default);
  transition: color var(--animation), border-color var(--animation);
}
a.btn, a.btn-block {
  border: 2px solid var(--gray);
  border-radius: 20px;
}
a.btn:hover, a.btn-block:hover {
  border-color: var(--theme-color2-light);
}

span.btn, span.btn-block {
  filter: grayscale(1);
}

/* 装飾 */
b, em, strong {
  font-weight: bold;
}

em {
  font-style: normal;
  background: linear-gradient(transparent 50%, var(--theme-color1-light) 50%);
}

strong {
  background: var(--theme-color1-light);
}

hr {
  margin-block: 10rem;
  border: 0;
  border-bottom: 2px solid var(--gray);
}

.box {
  padding: 20px;
  border: 2px solid var(--gray);
}
.box > *:first-child {
  margin-block-start: 0;
  padding-block-start: 0;
}
.box > *:last-child {
  margin-block-end: 0;
  padding-block-end: 0;
}

.scrollbox {
  overflow-y: auto;
  max-block-size: 14rem;
}
.scrollbox::-webkit-scrollbar {
  inline-size: 10px;
}
.scrollbox::-webkit-scrollbar-track {
  background-color: transparent;
}
.scrollbox::-webkit-scrollbar-thumb {
  background-color: var(--bg-color);
  border: 2px solid var(--theme-color1-light);
  border-radius: 5px;
}
.scrollbox > *:first-child {
  margin-block-start: 0;
  padding-block-start: 0;
}
.scrollbox > *:last-child {
  margin-block-start: 0;
  padding-block-start: 0;
}

.onlyrow {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.material-symbols-rounded {
  font-size: initial;
  vertical-align: unset;
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 24;
}

.column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-block: 2.5rem;
  margin-inline: auto;
}
.column > * {
  margin: 0 !important;
}
.column.column-2 {
  grid-template-columns: repeat(2, 1fr);
}
.column.column-3 {
  grid-template-columns: repeat(3, 1fr);
}

.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-bold {
  font-weight: bold;
}
.text-small {
  font-size: smaller;
}
.text-large {
  font-size: larger;
}

/* ▼ novel viewerを使用しない場合は削除してOK ▼ */
.env-writing-mode-vertical::-webkit-scrollbar {
  inline-size: 10px;
}
.env-writing-mode-vertical::-webkit-scrollbar-track {
  background-color: transparent;
}
.env-writing-mode-vertical::-webkit-scrollbar-thumb {
  background-color: var(--theme-color1-light);
}

/* ▲ novel viewerを使用しない場合は削除してOK ▲ */
/* インデックス */
#INDEX {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}
#INDEX main, #INDEX footer {
  width: 450px;
}
#INDEX main {
  padding: 5rem;
  border: 2px solid var(--gray);
}

/* ----- ▲ PCレイアウト　ここまで ▲ ----- */
/* ----- ▼ SPレイアウト　ここから ▼ ----- */
@media only screen and (max-width: 1000px) {
  :root {
    --menu-clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
  }
  /* 基本 */
  body,
  button,
  input,
  textarea {
    font-size: 1.6rem;
    line-height: 2.65rem;
  }
  body.get-header main, body.get-header footer {
    padding: 5rem 1.25rem;
  }
  header {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.25rem;
  }
  header::before {
    height: 170px;
  }
  header h1 {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    writing-mode: initial;
    transform: none;
    text-align: right;
    text-shadow: 0 0 5px var(--theme-color1-more-light);
  }
  header h1 a {
    color: var(--white);
  }
  main, footer {
    width: 100%;
    padding: 0 1.25rem 5rem;
  }
  main.width-sm > article > *:not(h2):not(h3):not(h4):not(h5):not(h6) {
    max-width: auto;
  }
  footer {
    text-align: left;
  }
  /* メニュー */
  /* メニュー */
  .menu {
    position: relative;
  }
  .menu ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    margin: 1.25rem 0 0 0;
  }
  .menu ul li a, .menu ul li button {
    padding: 0.625rem 0;
    border: 0;
  }
  .menu ul li button[data-target-menu] {
    justify-content: start;
    gap: 1.25rem;
  }
  .menu ul li button[data-target-menu]::after {
    content: "\e313";
  }
  .sub-menu {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    transition: top var(--animation), opacity var(--animation);
  }
  .sub-menu ul {
    margin-top: 170px;
    height: auto;
    max-height: calc(80vh - 170px - 2.5rem);
    padding: 0;
  }
  .sub-menu.open {
    top: 0;
  }
  .fixed-menu {
    bottom: 0;
    right: 0;
  }
  .fixed-menu ul {
    display: flex;
  }
  /* 見出し */
  /* リスト */
  ul.no-style, ol.no-style {
    padding: 0;
    list-style: none;
  }
  ul.column, ol.column {
    display: flex;
    flex-direction: column;
  }
  ul.column.column-2 > *, ul.column.column-3 > *, ol.column.column-2 > *, ol.column.column-3 > * {
    inline-size: 100% !important;
  }
  ul .description, ol .description {
    display: block;
    margin-inline-start: 10px;
  }
  ul .description::before, ol .description::before {
    content: "└";
    margin-inline-end: 10px;
  }
  dl.border, dl.inline {
    display: block;
  }
  dl.border dt, dl.border dd, dl.inline dt, dl.inline dd {
    inline-size: 100%;
  }
  dl.border dt, dl.inline dt {
    padding-block-end: 0;
    border-block-end: 0;
  }
  dl.border dd, dl.inline dd {
    padding-inline-start: 5rem;
    margin-block-end: 1.25rem;
  }
  dl.border dd:last-of-type, dl.inline dd:last-of-type {
    margin-block-end: 0;
  }
  /* フォーム */
  .form-inline input {
    inline-size: 40%;
  }
  .form-block dl {
    flex-direction: column;
  }
  .form-block dl.inline dt, .form-block dl.inline dd {
    inline-size: 100%;
  }
  /* リンク */
  /* 装飾 */
  .column.column-sp-1 {
    grid-template-columns: 1fr;
  }
  .column.column-sp-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .column.column-sp-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  /* インデックス */
  /* インデックス */
  #INDEX main, #INDEX footer {
    width: calc(100vw - 30px);
  }
  #INDEX main {
    padding: 3rem;
  }
}
/* ----- ▲ SPレイアウト　ここまで ▲ ----- */