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

  利用規約を遵守の上、ご利用ください。
  二次配布、販売は禁止しています。
  --------------------------------------------------*/

/* ----- ▼ CSS変数設定 ここから ▼ ----- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Tammudu+2:wght@400;500;600;700;800&family=Kosugi+Maru&display=swap');
@import url("https://use.fontawesome.com/releases/v6.2.0/css/all.css");
:root {
    --text-color: #333;
    --bg-color: var(--white);
    --shadow: rgba(255, 255, 255, 0.5);
    --required-color: red;
    --white: #fff;
    --gray: #f2f2f2;
    --header-text-color: #fff;
    --menu-bg-color: rgba(255, 255, 255, 0.25);
    --article-bg-color-odd: var(--theme-color1-light);
    --article-bg-color-even: var(--theme-color2-light);
    --theme-color1-light: #fff9f4;
    --theme-color1-default: #ffa500;
    --theme-color1-dark: #daa520;
    --theme-color2-light: #fff4f9;
    --theme-color2-default: #ffc0cb;
    --theme-color2-dark: #db7093;
    --animation: 0.5s;
    --slider-animation: 0.75s;
}

/* ▼ novel viewerを使用しない場合は削除してOK ▼ */
:root {
    /** 開閉ボタン **/
    /* テキスト */
    --env-button-open-text: "設定";
    --env-button-close-text: "閉じる";
    /* 上からの位置 */
    --env-button-position-top: 3rem;
    /* 右からの位置 */
    --env-button-position-right: 3rem;
    /** 設定画面 **/
    /* タイトルテキスト */
    --env-menu-title-text: "ビューア設定";
    /* リセットボタンテキスト */
    --env-menu-reset-text: "リセット";
    /* タイトル下線色 */
    --env-menu-title-border-color: var(--theme-color2-dark);
    /* 文字色 */
    --env-menu-color: var(--text-color);
    /* 背景色 */
    --env-menu-bg-color: var(--theme-color2-default);
    /* 角丸サイズ */
    --env-menu-rounded: 0;
    /* 外側の背景色 */
    --env-menu-overlay-color: var(--white);
    /* input関係要素の角丸サイズ */
    --env-menu-input-rounded: 0;
    /* inputの色（メイン） */
    --env-menu-input-main-color: var(--text-color);
    /* inputの色（サブ） */
    --env-menu-input-sub-color: var(--white);
    /* input[type="range"]のバー色 */
    --env-menu-input-bar-color: var(--theme-color2-light);
    /** ベーシックモードのビジュアル設定 **/
    /* デフォルトカラータイプ設定 */
    --env-color-type-default-bg-color: var(--article-bg-color-odd);
    --env-color-type-default-color: var(--text-color);
    /* 縦書き時の高さ */
    --env-vertical-height-pc: 80vh;
    --env-vertical-height-sp: 80vh;
    /** 各種アニメーションの時間 **/
    --env-animation: var(--animation);
}
/* ▲ novel viewerを使用しない場合は削除してOK ▲ */

/* ▼ my galleryを使用しない場合は削除してOK ▼ */
:root {
    /** PC設定 **/
    /* 1行に表示する枚数 */
    --emg-count-pc: 6;
    /** 装飾設定 **/
    /* 角丸 */
    --emg-radius: 0;
    /* 線幅 */
    --emg-border-width: 1px;
    /* 線色 */
    --emg-border-color: var(--theme-color2-default);
    /** 新着マーク設定 **/
    /* 背景色 */
    --emg-new-bg-color: var(--theme-color2-default);
    /* 文字色 */
    --emg-new-text-color: var(--white);
    /** キャプション設定 **/
    /* 背景色 */
    --emg-caption-bg-color: rgba(0, 0, 0, 0.2);
    /* 文字色 */
    --emg-caption-text-color: var(--white);
}
/* ▲ my galleryを使用しない場合は削除してOK ▲ */

/* ▼ chara setを使用しない場合は削除してOK ▼ */
:root {
    /**** リスト設定 ****/
    /* 線色 */
    --ecs-list-border-color: var(--theme-color2-default);
    /* 角丸 */
    --ecs-list-border-radius: 0;
    /* 背景色 */
    --ecs-list-bg-color: var(--white);
    /** 列設定 **/
    /* ボタンリスト・PC */
    --ecs-list-btn-count-pc: 5;
    /** 準備中設定 **/
    /* 背景色 */
    --ecs-span-bg-color: var(--theme-color2-default);
    /* テキスト色 */
    --ecs-span-tx-color: var(--white);
    /**** コンテンツ設定 ****/
    /** データ要素（項目名）設定 **/
    /* 角丸 */
    --ecs-data-border-radius: 0;
    /* 線色 */
    --ecs-data-border-color: var(--theme-color2-default);
    /* 背景色 */
    --ecs-data-bg-color: var(--theme-color2-default);
    /* テキスト色 */
    --ecs-data-text-color: var(--white);
    /** 時系列要素設定 **/
    /* 線幅 */
    --ecs-history-border-width: 8px;
    /* 線色 */
    --ecs-history-border-color: var(--white);
    /* 丸の色 */
    --ecs-history-circle-color: var(--theme-color2-default);
    /** 画像要素設定 **/
}
/* ▲ chara setを使用しない場合は削除してOK ▲ */

/* ▼ my bookshelfを使用しない場合は削除してOK ▼ */
:root {
    /** 間隔の設定 **/
    /* newマーク・背景色 */
    --ebs-new-bg-color: var(--theme-color2-default);
    /* newマーク・テキスト色 */
    --ebs-new-text-color: var(--white);
    /** ebs-borderの設定 **/
    /* 線幅 */
    --ebs-border-width: 1px;
    /* 線色 */
    --ebs-border-color: var(--theme-color2-default);
    /* 角丸サイズ */
    --ebs-border-radius: 0;
    /* 内側余白 */
    --ebs-border-inner-space: 10px;
    /** 装飾の設定 **/
    /* 下線（色） */
    --ebs-text-border-color: var(--theme-color2-default);
    /* 下線（幅） */
    --ebs-text-border-width: 1px;
    /* 強調テキスト背景色 */
    --ebs-text-em-bg-color: var(--theme-color2-default);
    /* ボタン風リンク（テキスト色） */
    --ebs-link-btn-text-color: var(--white);
    /* ボタン風リンク（背景色） */
    --ebs-link-btn-bg-color: var(--theme-color1-default);
    /* ボタン風リンク（角丸サイズ） */
    --ebs-link-btn-radius: 0;
}
/* ▲ my bookshelfを使用しない場合は削除してOK ▲ */
/* ----- ▲ 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: normal;
}

: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,
blockquote,
.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 "Hiragino Maru Gothic ProN W4", "ヒラギノ丸ゴ ProN W4", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", "Kosugi Maru", sans-serif;
    color: var(--text-color);
}

header,
main,
footer {
    margin: 3rem;
}

header,
main article,
footer {
    padding: 50px 70px;
}

header,
main article {
    width: 54vw;
    min-width: 800px;
}

header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 2/1;
    background: url("../img/layout/bg.jpg") no-repeat center/cover;
    overflow: hidden;
    z-index: 50;
}
header #headerImages {
    position: absolute;
    left: -0.5%;
    top: -0.5%;
    width: 101%;
    height: 101%;
    overflow: hidden;
    z-index: 1;
}
header #headerImages.slide img {
    top: auto;
    bottom: 100%;
    opacity: 1;
}
header #headerImages.slide img.active,
header #headerImages.slide img.old-active {
    bottom: 0;
}
header #headerImages.slide-top img,
header #headerImages.slide-bottom img,
header #headerImages.slide-left img,
header #headerImages.slide-right img {
    opacity: 1;
}
header #headerImages.slide-top img {
    top: auto;
    bottom: 100%;
}
header #headerImages.slide-top img.active,
header #headerImages.slide-top img.old-active {
    bottom: 0;
}
header #headerImages.slide-bottom img {
    top: 100%;
}
header #headerImages.slide-bottom img.active,
header #headerImages.slide-bottom img.old-active {
    top: 0;
}
header #headerImages.slide-left img {
    left: auto;
    right: 100%;
}
header #headerImages.slide-left img.active,
header #headerImages.slide-left img.old-active {
    right: 0;
}
header #headerImages.slide-right img {
    left: 100%;
}
header #headerImages.slide-right img.active,
header #headerImages.slide-right img.old-active {
    left: 0;
}
header #headerImages.fade img {
    opacity: 0;
}
header #headerImages.fade img.active,
header #headerImages.fade img.old-active {
    opacity: 1;
}
header #headerImages img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: all var(--slider-animation);
    opacity: 0;
}
header #headerImages img.active {
    opacity: 1;
    z-index: 2;
}
header #headerImages img.old-active {
    z-index: 1;
}
header #headerImages nav#headerImagesNav {
    position: absolute;
    top: 0;
    right: 0.5%;
    height: 100%;
    z-index: 5;
}
header #headerImages nav#headerImagesNav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    height: 100%;
    margin: 0;
    padding: 7px;
}
header #headerImages nav#headerImagesNav ul li {
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid var(--header-text-color);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
header #headerImages nav#headerImagesNav ul li:hover {
    background: var(--header-text-color);
}
header #headerImages nav#headerImagesNav ul li.active {
    background: var(--header-text-color);
}
header > * {
    text-shadow: 0 0 7px var(--theme-color2-dark), 0 0 10px var(--theme-color2-dark);
}
header > *:not(#headerImages) {
    z-index: 5;
}

main > *:nth-child(odd) {
    margin-left: auto;
    margin-right: 0;
    background: var(--article-bg-color-odd);
}
main > *:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
    background: var(--article-bg-color-even);
}
main article {
    margin-top: 15rem;
    margin-bottom: 15rem;
}
main article.p-center {
    margin-left: auto;
    margin-right: auto;
}
main article.p-left {
    margin-left: 0;
    margin-right: auto;
}
main article.p-right {
    margin-left: auto;
    margin-right: 0;
}
main article.bg-beige {
    background: var(--article-bg-color-odd);
}
main article.bg-green {
    background: var(--article-bg-color-even);
}
main article.bg-gray {
    background: var(--gray);
}

footer {
    background: var(--gray);
}

/* メニュー */
.menu {
    padding: 1rem 1rem 0.4rem 1rem;
    background: var(--menu-bg-color);
    font-family: "Baloo Tammudu 2", "Kosugi Maru", sans-serif;
    font-weight: 400;
    line-height: 1.4;
    transition: transform var(--animation);
}
.menu ul {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
}
.menu ul.column-2 {
    grid-template-columns: repeat(2, 1fr);
}
.menu ul.column-3 {
    grid-template-columns: repeat(3, 1fr);
}
.menu ul.column-4 {
    grid-template-columns: repeat(4, 1fr);
}
.menu ul.column-5 {
    grid-template-columns: repeat(5, 1fr);
}
.menu ul li a {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    padding: 5px;
    color: var(--header-text-color);
    transition: all var(--animation);
    list-style: 1;
}
.menu ul li a:hover {
    text-shadow: 0 0 7px var(--theme-color1-dark);
    transform: translateX(15px);
}
.menu ul li a i {
    display: inline-block;
    width: 20px;
    font-size: 1.4rem;
    text-align: center;
}

header.scroll .menu ul {
    display: flex !important;
    gap: 2rem;
    text-shadow: 0 0 7px var(--white), 0 0 10px var(--white);
}
header.scroll .menu ul li a {
    color: var(--text-color);
}
header.scroll .menu ul li a:hover {
    transform: none;
    color: var(--theme-color2-dark);
    text-shadow: 0 0 7px var(--theme-color2-default);
}

body:not(.fix-menu) header.scroll .menu,
body.fix-menu header.scroll {
    position: fixed;
    top: -4rem;
    left: 0;
    width: 100%;
    margin: 0;
    background: linear-gradient(var(--white) 40%, transparent 100%);
    transform: translateY(4rem);
}
body:not(.fix-menu) header.scroll .menu {
    padding: 3rem;
}
body.fix-menu header.scroll {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    aspect-ratio: auto;
    min-width: 100%;
    padding: 3rem;
}
body.fix-menu header.scroll .menu {
    padding: 0;
    background: transparent;
}
body.fix-menu header h1 {
    text-shadow: 0 0 7px var(--white), 0 0 10px var(--white);
    color: var(--text-color);
    font-size: 3rem;
}
body.fix-menu header h1 a {
    color: var(--text-color);
}
body.fix-menu header h1 a:hover {
    color: var(--theme-color2-dark);
    text-shadow: 0 0 7px var(--theme-color2-default), 0 0 10px var(--theme-color2-default);
}

.manu-toggler {
    display: none;
}

.fixed-menu {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 60;
}
.fixed-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
}
.fixed-menu a,
.fixed-menu button,
.fixed-menu span {
    position: relative;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 1px solid var(--theme-color2-default) !important;
    border-radius: 50% !important;
    color: var(--theme-color2-dark) !important;
}
.fixed-menu a::before,
.fixed-menu button::before,
.fixed-menu span::before {
    left: auto !important;
    bottom: auto !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    font: 900 12px/1 "Font Awesome 6 Free";
    transition: transform var(--animation);
}
.fixed-menu a:hover,
.fixed-menu button:hover {
    box-shadow: none !important;
}
.fixed-menu a:hover::before,
.fixed-menu button:hover::before {
    transform: translateY(-3px) !important;
    opacity: 1 !important;
}
.fixed-menu span {
    opacity: 0.5;
}
.fixed-menu li.next::before {
    content: none;
}
.fixed-menu li.pagetop a::before,
.fixed-menu li.pagetop button::before,
.fixed-menu li.pagetop span::before {
    content:"\f102" !important;
}
.fixed-menu li.prev a::before,
.fixed-menu li.prev button::before,
.fixed-menu li.prev span::before {
    content: "\f104" !important;
}
.fixed-menu li.next a::before,
.fixed-menu li.next button::before,
.fixed-menu li.next span::before {
    content: "\f105" !important;
}
.fixed-menu li.home a::before,
.fixed-menu li.home button::before,
.fixed-menu li.home span::before {
    content: "\f015" !important;
}
.fixed-menu li.toc a::before,
.fixed-menu li.toc button::before,
.fixed-menu li.toc span::before {
    content: "\f02d" !important;
}
.fixed-menu li.characters a::before,
.fixed-menu li.characters button::before,
.fixed-menu li.characters span::before {
    content: "\f0c0" !important;
}
.fixed-menu li.images a::before,
.fixed-menu li.images button::before,
.fixed-menu li.images span::before {
    content: "\f302" !important;
}

/* 見出し */
h1 {
    margin: 0;
    font: 500 5rem/1.4 "Baloo Tammudu 2", "Kosugi Maru", sans-serif;
    color: var(--header-text-color);
}
h1 a {
    color: var(--header-text-color);
    transition: text-shadow var(--animation);
}
h1 a:hover {
    text-shadow: 0 0 7px var(--theme-color1-dark), 0 0 10px var(--theme-color1-dark);
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Baloo Tammudu 2", "Kosugi Maru", sans-serif;
    font-weight: 500;
}

h2 {
    margin-block: 2.5rem 5rem;
    text-align: center;
    font-size: 2.6rem;
}
h2 i {
    display: block !important;
    margin-block-end: 20px;
    font-size: 1.6rem;
}

h3,
h4,
h5 {
    margin-block: 7rem 5rem;
    color: var(--theme-color2-dark);
}

h3 {
    padding-block: 2rem;
    padding-bottom: 10px;
    border: 2px solid var(--theme-color2-dark);
    border-inline: 0;
    font-size: 2rem;
    line-height: 100%;
    color: var(--theme-color2-dark);
}

h4,
h5 {
    font-size: 1.6rem;
}

h4 {
    overflow: hidden;
    block-size: 4.8rem;
}
h4 span {
    padding-block: 1rem;
    padding-inline: 1.4rem;
    background: var(--theme-color2-default);
    line-height: 5.8rem;
}

h5::before {
    content: "\f0da";
    margin-inline-end: 5px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* リスト */
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-color2-default);
}
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: 1px solid var(--theme-color2-default);
}
dl.inline dt,
dl.inline dd {
    border-block-end: 1px solid var(--theme-color2-default);
}
dl.border {
    padding-block: 15px;
    padding-inline: 20px;
    border: 1px solid var(--theme-color2-default);
}

/* フォーム */
.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:not(.manu-toggler),
input[type="submit"],
input[type="button"] {
    border-radius: 0;
    border: 1px solid var(--theme-color2-default);
}
input::-moz-placeholder,
textarea::-moz-placeholder,
select::-moz-placeholder,
button:not(.manu-toggler)::-moz-placeholder,
input[type="submit"]::-moz-placeholder,
input[type="button"]::-moz-placeholder {
    color: var(--theme-color2-default);
}
input::placeholder,
textarea::placeholder,
select::placeholder,
button:not(.manu-toggler)::placeholder,
input[type="submit"]::placeholder,
input[type="button"]::placeholder {
    color: var(--theme-color2-default);
}

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

button:not(.manu-toggler),
input[type="submit"],
input[type="button"] {
    background: var(--theme-color2-default);
    border-radius: 20px;
    transition: border-color var(--animation), box-shadow var(--animation);
}
button:not(.manu-toggler):hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    border-color: var(--theme-color2-dark);
    box-shadow: 2px 2px 7px var(--theme-color2-default);
}

/* リンク 改変済み*/
main a:not(.ic-sns):not(.img):not(.new),
footer a:not(.ic-sns):not(.img):not(.new) {
    position: relative;
    display: inline-block;
    color: var(--theme-color1-default);
}
main a:not(.ic-sns):not(.img):not(.new):not(.readmorebutton):not(.categorylink)::before,
footer a:not(.ic-sns):not(.img):not(.new)::before {
    content: "";
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    display: block;
    inline-size: 100%;
    block-size: 1px;
    background: var(--theme-color1-default);
    transition: transform var(--animation), opacity var(--animation);
}
main a:not(.ic-sns):not(.img):not(.new):not(.readmorebutton):not(.categorylink):hover::before,
footer a:not(.ic-sns):not(.img):not(.new):hover::before {
    transform: translateY(3px);
    opacity: 0;
}
main a.img, a.readmorebutton, a.categorylink,
footer a.img {
    transition: filter var(--animation);
}
main a.img:hover, main a.readmorebutton:hover, main a.categorylink:hover,
footer a.img:hover {
    filter: drop-shadow(2px 2px 6px var(--theme-color1-default));
}


/* 均等割り付けとカーニング 改変済み */
p {
    text-align: justify;
}

p, ul, dl {
    font-feature-settings: "palt";
    text-justify: inter-character;
}

.env-writing-mode-vertical p {
    font-feature-settings: initial;
}

/* ルビ 改変済み */
rt {
    text-transform: full-size-kana;
}

/* 引用 改変済み */
blockquote {
    opacity: 0.75;
}

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

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

strong {
    background: var(--theme-color2-default);
}

hr {
    margin-block: 6rem;
    border: 0;
    border-bottom: 5px dotted var(--theme-color2-default);
}

.box {
    padding: 20px;
    border: 1px solid var(--theme-color2-default);
}
.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 {
    border: 1px solid var(--theme-color2-default);
    border-radius: 7px;
}
.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;
}

.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);
}
.column.column-4 {
    grid-template-columns: repeat(4, 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-menu.open {
    z-index: 70;
}

.env-writing-mode-vertical h5::before {
    content: "f0d7";
}
.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-color2-default);
}
/* ▲ novel viewerを使用しない場合は削除してOK ▲ */

/* ▼ chara setを使用しない場合は削除してOK ▼ */
.ecs-list > a {
    color: var(--theme-color2-dark) !important;
}
.ecs-list > a::before {
    content: none !important;
}

.ecs-list-btn-img > *,
.ecs-list-thumbnail > * {
    display: flex !important;
}
/* ▲ chara setを使用しない場合は削除してOK ▲ */

/* ▼ my bookshelfを使用しない場合は削除してOK ▼ */
.ebs-link-btn {
    color: var(--ebs-link-btn-text-color) !important;
}
.ebs-link-btn::before {
    content: none !important;
}
/* ▲ my bookshelfを使用しない場合は削除してOK ▲ */

/* インデックス */
#INDEX {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
#INDEX main {
    margin: 0;
}
#INDEX main h1 {
    text-align: center;
    transition: color var(--animation), text-shadow var(--animation);
}
#INDEX main h1 a::before {
    content: none;
}
#INDEX main h1 a:hover {
    color: var(--white);
}
#INDEX main article {
    margin: auto;
}
#INDEX footer {
    margin: 0;
    padding: 0;
    background: none;
    text-align: center;
}
/* ----- ▲ PCレイアウト　ここまで ▲ ----- */

/* ----- ▼ SPレイアウト　ここから ▼ ----- */
@media only screen and (max-width: 1000px) {
    /* ▼ novel viewerを使用しない場合は削除してOK ▼ */
    :root {
        /* 上からの位置 */
        --env-button-position-top: 1rem;
        /* 右からの位置 */
        --env-button-position-right: 1rem;
    }
    /* ▲ novel viewerを使用しない場合は削除してOK ▲ */

    /* 基本 */
    body,
    button,
    input,
    textarea {
        font-size: 1.6rem;
        line-height: 2.65rem;
    }
    body.get-header main {
        margin-top: 2rem;
    }
    body.fix-menu header {
        justify-content: flex-end;
        height: auto;
    }
    body.fix-menu header h1 {
        color: var(--white);
        text-shadow: 0 0 7px var(--theme-color2-dark), 0 0 10px var(--theme-color2-dark);
        font-size: 3.6rem;
    }
    body.fix-menu header h1 a {
        color: var(--white);
    }
    header,
    main,
    footer {
        margin: 2rem;
    }
    main article,
    footer {
        padding: 2rem;
    }
    header {
        justify-content: center;
        width: calc(100% - 4rem);
        min-width: calc(100% - 4rem);
        height: calc(100vh - 4rem);
        padding: 1rem;
    }
    header h1 {
        font-size: 4.2rem;
    }
    main article {
        width: 100%;
        min-width: 100%;
    }
    main {
        margin-top: 8rem;
    }
    main article {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    /* メニュー */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding: 2rem;
        background: var(--white);
        z-index: 70 !important;
        visibility: hidden;
        opacity: 0;
        transition: opacity var(--animation) linear;
    }
    .menu ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 2rem;
        background: var(--theme-color2-default);
    }
    .menu ul li a {
        padding: 1rem 0;
    }
    .menu.open {
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }
    .manu-toggler {
        position: fixed;
        top: 0;
        left: calc(50% - 50px);
        display: block;
        width: 100px;
        height: 50px;
        background: var(--theme-color2-default);
        border: 0;
        border-radius: 0 0 50px 50px;
        color: var(--white);
        font-size: 1.4rem;
        font-family: "Baloo Tammudu 2", "Kosugi Maru", sans-serif;
        font-weight: 400;
        z-index: 72;
        transition: background var(--animation);
    }
    .manu-toggler::after {
        content: "menu";
    }
    .manu-toggler.open {
        background: var(--theme-color2-dark);
    }
    .manu-toggler.open::after {
        content: "close";
    }
    .fixed-menu {
        bottom: 1rem;
        right: 1rem;
    }
    .fixed-menu a,
    .fixed-menu button,
    .fixed-menu span {
        background: rgba(255, 255, 255, 0.75) !important;
    }

    /* 見出し */
    h1 {
        font-size: 3.6rem;
        text-align: center;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    h4,
    h5 {
        font-size: 1.4rem;
    }

    /* リスト */
    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-inline button{
        margin-top:5px;
    }
    .form-block dl {
        flex-direction: column;
    }
    .form-block dl.inline dt,
    .form-block dl.inline dd {
        inline-size: 100%;
    }

    /* リンク 改変済み*/
    main a:not(.ic-sns):not(.img):not(.new):not(.readmorebutton):not(.categorylink),
    footer a:not(.ic-sns):not(.img):not(.new) {
        position: initial;
        display: initial;
        color: var(--theme-color1-default);
        text-decoration: underline;
    }
    main a:not(.ic-sns):not(.img):not(.new):not(.readmorebutton):not(.categorylink)::before,
    footer a:not(.ic-sns):not(.img):not(.new)::before {
        content: none;
    }

    /* 装飾 */
    .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);
    }
}
/* ----- ▲ SPレイアウト　ここまで ▲ ----- */
