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

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

/* ----- ▼ CSS変数設定 ここから ▼ ----- */
@import url("https://fonts.googleapis.com/css2?family=Tilt+Neon&family=Zen+Maru+Gothic:wght@500;700;900&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: #d1d1d1;
    --bg-color: var(--more-dark);
    --required-color: var(--theme-color6-default);
    --overlay: rgba(0, 0, 0, 0.5);
    --dark: #273180;
    --more-dark: #20286b;
    --menu-color1: var(--theme-color1-default);
    --menu-color2: var(--theme-color2-default);
    --menu-color3: var(--theme-color3-default);
    --menu-color4: var(--theme-color4-default);
    --menu-color5: var(--theme-color5-default);
    --theme-color1-default: #7af118;
    --theme-color2-default: #4f27ff;
    --theme-color3-default: #edf118;
    --theme-color4-light-op: rgba(217, 183, 255, 0.7);
    --theme-color4-light: #d9b7ff;
    --theme-color4-default: #7d18f1;
    --theme-color4-dark: #4e1b88;
    --theme-color5-light-op: rgba(175, 238, 238, 0.7);
    --theme-color5-light: #afeeee;
    --theme-color5-default-op: rgba(24, 180, 241, 0.7);
    --theme-color5-default: #18b4f1;
    --theme-color6-light: #dd5061;
    --theme-color6-default: #f11832;
    --animation: 0.7s;
    --font-family-basic: Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN, sans-serif;
    --font-family-sitename: "Tilt Neon", Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN, sans-serif;
    --font-family-heading: "Zen Maru Gothic", Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN,
        sans-serif;
    --font-family-menu: "Zen Maru Gothic", Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN, sans-serif;
    --font-family-icon: Material Symbols Rounded;
    --font-size-basic: 1.6rem;
    --line-height-basic: 2.65rem;
    --swiper-pagination-color: var(--theme-color2-default);
    --swiper-pagination-bottom: 0.5rem;
}
/* ----- ▲ 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 {
    margin: 0;
    padding: 0;
    list-style: none;
}

main {
    hanging-punctuation: allow-end;
}
/* ----- ▲ リセット　ここまで（基本的には触らない方が良い部分） ▲ ----- */

/* ----- ▼ PCレイアウト　ここから ▼ ----- */
/* 基本 */
html {
    background: var(--bg-color);
}

body,
button,
input,
textarea,
select {
    font: 500 var(--font-size-basic) / var(--line-height-basic) var(--font-family-basic);
    color: var(--text-color);
}

body:has(header) main,
body:has(header) footer {
    width: calc(100% - clamp(160px, 30vh, 260px) - 2rem);
    max-width: 100%;
    margin-left: calc(clamp(160px, 30vh, 260px) + 2rem);
}
body:has(header) main > *,
body:has(header) footer > * {
    max-width: 1200px;
    margin-inline: auto;
}
body:has(header) main .top-image {
    margin-inline: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: clamp(160px, 30vh, 260px);
    height: 100vh;
    padding: 4rem 0;
}

main,
footer {
    max-width: 1200px;
    margin-inline: auto;
}

main {
    min-block-size: calc(100vh - 107px - 10rem);
    margin-block-end: 10rem;
}
main .top-image {
    border-radius: 50%;
    margin-top: -25%;
    margin-inline: 2rem;
    overflow: hidden;
}
main .top-image img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    object-position: 0% 12%;
}
main article {
    padding: 2rem;
}
main article:first-child > .ecs-content {
    margin-block-start: 5rem;
}

footer {
    padding-block: 4rem;
    padding-inline: 2rem;
    border-radius: 50% 50% 0 0;
    background: var(--dark);
}

/* メニュー */
.menu:not(#spotlight) ul {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    font: 900 clamp(1.2rem, 2vh, 1.8rem) / 1 var(--font-family-menu);
    letter-spacing: 0.4rem;
}
.menu:not(#spotlight) ul li a {
    display: inline-block;
    padding: 1.4rem 4rem 1.4rem 7rem;
    border-radius: 0 4rem 4rem 0;
    color: var(--bg-color);
    transform: translateX(-4rem);
    transition: transform var(--animation);
}
.menu:not(#spotlight) ul li a:hover {
    transform: translateX(0);
}
.menu:not(#spotlight) ul li:nth-child(5n + 1) a {
    background: var(--menu-color1);
    color: var(--menu-color2);
}
.menu:not(#spotlight) ul li:nth-child(5n + 2) a {
    background: var(--menu-color2);
    color: var(--menu-color3);
}
.menu:not(#spotlight) ul li:nth-child(5n + 3) a {
    background: var(--menu-color3);
    color: var(--menu-color4);
}
.menu:not(#spotlight) ul li:nth-child(5n + 4) a {
    background: var(--menu-color4);
    color: var(--menu-color5);
}
.menu:not(#spotlight) ul li:nth-child(5n) a {
    background: var(--menu-color5);
    color: var(--menu-color1);
}

.manu-toggler {
    display: none;
}

.fixed-menu {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 60;
}
.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;
    background: transparent !important;
    border: 0 !important;
    color: var(--theme-color3-default) !important;
}
.fixed-menu ul li a::before,
.fixed-menu ul li button::before,
.fixed-menu ul li span::before {
    font: 400 24px/1 var(--font-family-icon);
}
.fixed-menu ul li a:hover,
.fixed-menu ul li button:hover {
    color: var(--theme-color3-default) !important;
}
.fixed-menu ul li span {
    opacity: 0.5;
}
.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: "\e314";
}
.fixed-menu ul li.next a::before,
.fixed-menu ul li.next button::before,
.fixed-menu ul li.next span::before {
    content: "\e315";
}
.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: "\e7ef";
}
.fixed-menu ul li.images a::before,
.fixed-menu ul li.images button::before,
.fixed-menu ul li.images span::before {
    content: "\e413";
}

.menu-sub ul {
    font-family: var(--font-family-menu);
}
.menu-sub ul li a {
    position: relative;
    padding-inline: 2rem 1rem;
    color: var(--theme-color1-default);
    transition: transform var(--animation);
}
.menu-sub ul li a::before {
    content: "";
    position: absolute;
    top: 50%;
    display: block;
    width: 1rem;
    aspect-ratio: 1/1;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: var(--theme-color1-default);
}
.menu-sub ul li a:hover {
    transform: translateX(1rem);
}
.menu-sub ul li a:hover::before {
    background: var(--theme-color6-default);
}

/* 見出し */
h1 {
    font: 500 clamp(1.6rem, 4vh, 3rem) / 1 var(--font-family-sitename);
    text-align: center;
}
h1 a {
    position: relative;
    display: block;
    width: clamp(160px, 30vh, 260px);
    padding-top: clamp(155px, 25vh, 320px);
    color: var(--theme-color6-default);
    transition: color var(--animation);
}
h1 a::before {
    content: "";
    position: absolute;
    display: block;
    top: 10px;
    left: 20%;
    width: 60%;
    aspect-ratio: 1/1;
    background: url("../img/layout/logo.png") no-repeat center/contain;
    transform-origin: center;
    animation: animationH1In 3s ease-out, animationH1Loop 3s linear 3s infinite;
}
h1 a:hover {
    color: var(--theme-color3-default);
}

body.fix-menu h1 a::before {
    animation: animationH1Loop 3s linear infinite;
}

@keyframes animationH1In {
    0% {
        top: -80%;
        left: 70%;
        transform: rotate(200deg);
    }
    50% {
        top: 0;
        transform: rotate(220deg);
    }
    80% {
        top: -40%;
        left: 20%;
        transform: rotate(360deg);
    }
    100% {
        top: 10px;
        transform: rotate(360deg);
    }
}
@keyframes animationH1Loop {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}
h2,
h3,
h4,
h5,
h6 {
    margin-block: 6rem 4rem;
    font: 500 1.6rem/1 var(--font-family-heading);
}

h2 {
    margin-block: 10rem;
    padding-inline-start: 0.4rem;
    color: var(--theme-color5-light);
    font-size: 3.2rem;
    letter-spacing: 0.4rem;
    text-align: center;
}

h3 span,
h4 span,
h5 span,
h6 span {
    padding-block: 1rem;
    padding-inline: 3rem;
    display: inline-block;
    border: 2px solid var(--theme-color5-light);
    border-radius: 5rem;
}

h3,
h4 {
    color: var(--bg-color);
}

h3 span {
    background: var(--theme-color5-light);
}

h4 span {
    background: var(--theme-color5-light-op);
}

h5,
h6 {
    color: var(--theme-color5-light);
}

h6 span {
    border: 0;
}

/* リスト */
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: 0.5rem 2.5rem;
}
ul.column.column-2 > *,
ol.column.column-2 > * {
    inline-size: calc((100% - 2.5rem) / 2) !important;
}
ul.column.column-3 > *,
ol.column.column-3 > * {
    inline-size: calc((100% - 2.5rem) / 3) !important;
}
ul .description,
ol .description {
    margin-inline-start: 1rem;
}
ul .description::before,
ol .description::before {
    content: "…";
    margin-inline-end: 1rem;
}
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: grid;
    grid-template-columns: 20rem 1fr;
    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 dd {
    padding-inline-start: 0;
}

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

dl dd {
    border-block-end: 0.4rem dotted var(--theme-color2-default);
}
dl.inline {
    gap: 1.25rem 0.4rem;
}
dl.inline dt,
dl.inline dd {
    border-block-end: 0.4rem dotted var(--theme-color2-default);
}
dl.border {
    padding-block: 1.4rem;
    padding-inline: 2rem;
    border: 2px solid var(--theme-color2-default);
    border-radius: 2rem;
}

/* フォーム */
.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 > *,
.form-block dl dd > * {
    inline-size: 100%;
}

input,
textarea,
select,
button:not(.manu-toggler):not(.env-button),
input[type="submit"],
input[type="button"] {
    border-radius: 2rem;
}

input,
textarea,
select {
    background: var(--dark);
    border: 2px solid var(--theme-color2-default);
    transition: border-color var(--animation);
}
input:hover,
input:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus {
    border-color: var(--theme-color4-light);
}
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: var(--theme-color4-light-op);
}

button:not(.manu-toggler):not(.env-button):not(.laymic_uiButton),
input[type="submit"],
input[type="button"] {
    background: var(--theme-color4-light);
    border: 2px solid var(--theme-color4-light);
    color: var(--bg-color);
    font-weight: 600;
}
button:not(.manu-toggler):not(.env-button):not(.laymic_uiButton):disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    filter: grayscale(0.8);
}
button:not(.manu-toggler):not(.env-button):not(.laymic_uiButton):not(:disabled),
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled) {
    transition: color var(--animation), background var(--animation), border-color var(--animation);
}
button:not(.manu-toggler):not(.env-button):not(.laymic_uiButton):not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="button"]:not(:disabled):hover {
    background: var(--bg-color);
    border-style: dotted;
    border-color: var(--theme-color3-default);
    color: var(--theme-color3-default);
}

.form-block button:not(.manu-toggler):not(.env-button),
.form-block input[type="submit"],
.form-block input[type="button"] {
    padding-block: 0.4rem;
    padding-inline: 0.8rem;
}

/* リンク */
a.arrow::before,
button.arrow::before,
span.arrow::before {
    content: "\e315";
    margin-inline-end: 0.4rem;
    font-family: var(--font-family-icon);
    vertical-align: middle;
}
a.btn,
button.btn,
span.btn {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    padding: 0.8rem;
    border: 2px solid var(--theme-color4-light);
    border-radius: 3rem;
    background: var(--theme-color4-light);
    color: var(--bg-color);
    font-weight: 600;
}
a.btn.btn-block,
button.btn.btn-block,
span.btn.btn-block {
    display: block;
    margin-block: 1rem;
    text-align: center;
}
a.btn.btn-arrow::after,
button.btn.btn-arrow::after,
span.btn.btn-arrow::after {
    content: "\e315";
    margin-inline-start: 0.4rem;
    font-family: var(--font-family-icon);
    vertical-align: middle;
}
a.btn.btn-arrow.btn-block,
button.btn.btn-arrow.btn-block,
span.btn.btn-arrow.btn-block {
    position: relative;
    padding-inline-end: 2rem;
}
a.btn.btn-arrow.btn-block::after,
button.btn.btn-arrow.btn-block::after,
span.btn.btn-arrow.btn-block::after {
    position: absolute;
    right: 0.6rem;
}
a.btn.btn-download::before,
button.btn.btn-download::before,
span.btn.btn-download::before {
    content: "\f090";
    font: 600 2.2rem/1 var(--font-family-icon);
    margin-inline-end: 0.8rem;
    vertical-align: middle;
}

a {
    color: var(--theme-color4-light);
    transition: color var(--animation);
}
a:hover {
    color: var(--theme-color3-default);
}

a.btn,
a.btn-block,
button.btn,
button.btn-block {
    transition: color var(--animation), background var(--animation), border-color var(--animation);
}
a.btn:hover,
a.btn-block:hover,
button.btn:hover,
button.btn-block:hover {
    background: var(--bg-color);
    border-style: dotted;
    border-color: var(--theme-color3-default);
    color: var(--theme-color3-default);
}

button.btn,
button.btn-block {
    border-radius: 3rem !important;
}
button.btn-block {
    width: 100%;
}

span.btn,
span.btn-block {
    opacity: 0.5;
}

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

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

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

hr {
    display: flex;
    justify-content: center;
    align-items: center;
    block-size: 6rem;
    margin-block: 6rem;
    border: 0;
}
hr::before {
    content: "";
    display: block;
    inline-size: 5rem;
    aspect-ratio: 1/1;
    background: radial-gradient(var(--theme-color2-default) 30%, transparent 30%),
        radial-gradient(var(--theme-color5-default-op) 30%, transparent 30%) 0.15rem 0.15rem;
    background-size: 1rem 1rem;
    transform: rotate(15deg);
}

.box {
    padding: 2rem;
    border: 2px solid var(--theme-color2-default);
    border-radius: 2rem;
}
.box > *:first-child {
    margin-block-start: 0;
    padding-block-start: 0;
}
.box > *:last-child {
    margin-block-end: 0;
    padding-block-end: 0;
}

.games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0;
    list-style: none;
}
.games li a {
    display: block;
    color: var(--theme-color3-default);
}
.games li a span {
    display: inline-block;
    padding-block: 0.25rem;
    padding-inline: 0.5rem;
    margin-inline-end: 0.5rem;
    border-radius: 2rem;
    background: var(--theme-color3-default);
    color: var(--bg-color);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1;
}
.games li a img {
    width: 100%;
}

.story-title {
    position: relative;
    margin-block: 6rem 4rem;
    font: 500 2.4rem/1 var(--font-family-heading);
    text-align: center;
    color: var(--theme-color5-light);
}
.story-title::before {
    content: "";
    position: absolute;
    top: 50%;
    display: block;
    height: 1px;
    width: 100%;
    background: var(--theme-color5-light);
    z-index: -1;
}
.story-title span {
    display: inline-block;
    padding-inline: 2rem;
    background: var(--bg-color);
}
.story-title span:has(ruby) {
    margin-block-start: -2rem;
}
.story-description {
    position: relative;
    margin-block: 2.5rem;
    padding-block: 1.25rem;
    text-align: center;
}
.story-description::before,
.story-description::after {
    content: "";
    position: absolute;
    display: block;
    width: 20px;
    aspect-ratio: 1/2;
    border: 1px solid var(--theme-color5-light);
}
.story-description::before {
    top: 0;
    left: 0;
    border-inline-end: 0;
    border-block-end: 0;
}
.story-description::after {
    bottom: 0;
    right: 0;
    border-inline-start: 0;
    border-block-start: 0;
}
.story-description p {
    margin-block: 1.25rem;
}
.story-description > *:first-child {
    margin-block-start: 0;
}
.story-description > *:last-child {
    margin-block-end: 0;
}
.story-tag {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    list-style: none;
    gap: 1.25rem;
    font-size: 80%;
    line-height: 1;
}
.story-tag li {
    display: inline-block;
    padding-inline: 0.6rem;
    padding-block: 0.4rem 0.2rem;
    background: var(--theme-color5-light);
    border-radius: 1rem;
    color: var(--bg-color);
    font-weight: 600;
}

h2 + .story-description {
    margin-block: -5rem 10rem;
}

.laymic_root {
    z-index: 1;
}

.emg-base > * img + * {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding-inline: 1rem;
    padding-bottom: 0.5rem;
    font-size: 80%;
    line-height: 1;
    text-align: left;
    z-index: 1;
}

.game {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}
.game > * {
    width: 100%;
}
.game .btn-block {
    max-width: 400px;
    margin-inline: auto;
}
.game .game-title-img {
    text-align: center;
    margin-inline: auto;
}
.game .game-info,
.game .game-info-outline {
    position: relative;
    margin-block-start: 4rem;
    padding: 2rem;
    border: 2px solid var(--theme-color2-default);
    border-radius: 2rem;
}
.game .game-info::before,
.game .game-info-outline::before {
    content: attr(data-title);
    position: absolute;
    margin-inline: auto;
    top: -2.4rem;
    left: calc((100% - 200px) / 2);
    display: block;
    width: 200px;
    text-align: center;
    padding: 1rem 2rem;
    background: var(--theme-color2-default);
    border: 2px solid var(--theme-color2-default);
    border-radius: 3rem;
}
.game .game-info dl,
.game .game-info-outline dl {
    margin-block-end: 0;
}
.game .game-info dl dd ul,
.game .game-info-outline dl dd ul {
    margin: 0;
    padding-inline-start: 2rem;
}
.game .game-info-outline::before {
    background: var(--bg-color);
}

.mark-ok,
.mark-ng {
    display: inline-block;
    padding: 4.5px 6px;
    border-radius: 30px;
    color: var(--bg-color);
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}
.mark-ok::before,
.mark-ng::before {
    font: 900 2rem/1 var(--font-family-icon);
}
.mark-ok {
    background: var(--theme-color1-default);
}
.mark-ok::before {
    content: "\e5ca";
}
.mark-ng {
    background: var(--theme-color6-default);
}
.mark-ng::before {
    content: "\e5cd";
}

.dir {
    border: 2px solid var(--theme-color4-light-op);
    border-radius: 2rem;
}
.dir + .dir {
    margin-block-start: 4rem;
}
.dir .dir-image {
    text-align: center;
}
.dir .dir-image img {
    max-width: 100%;
}
.dir .dir-image.dir-image-sm,
.dir .dir-image.dir-image-md,
.dir .dir-image.dir-image-lg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}
.dir .dir-image.dir-image-sm > * {
    width: 25%;
}
.dir .dir-image.dir-image-md > * {
    width: 50%;
}
.dir ul.dir-info {
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
    font-size: small;
    list-style: none;
}
.dir ul.dir-info li::before {
    margin-inline-end: 0.4rem;
    font: 400 1.6rem/1 var(--font-family-icon);
    vertical-align: middle;
}
.dir ul.dir-info li.date::before {
    content: "\ebcc";
}

details {
    margin-block: 2.5rem;
}
details summary {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: var(--theme-color4-light);
    transition: background var(--animation);
    cursor: pointer;
}
details summary.btn {
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: 0.25rem;
    font-weight: bold;
    text-align: left;
}
details summary.btn:hover {
    background: var(--gray);
}
details summary::before {
    content: "\e313";
    display: block;
    font-family: var(--font-family-icon);
    font-size: 2.4rem;
    font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 48;
    color: var(--theme-color4-light);
    transition: transform var(--animation);
}
details summary::-webkit-details-marker {
    display: none;
}
details > summary + div {
    padding-block-start: 0;
}
details > summary + div > *:first-child {
    margin-block-start: 0;
}
details > *:not(summary) {
    transition: padding-block-start var(--animation), padding-block-end var(--animation);
}
details > *:not(summary):last-child {
    padding-block-end: 0;
}
details > *:not(summary):last-child > *:last-child {
    margin-block-end: 0;
}
details[open] > summary::before {
    transform: rotate(180deg);
}
details[open] > summary + div {
    padding-block-start: 2rem;
}
details[open] > *:not(summary):last-child {
    padding-block-end: 3rem;
}

.scrollbox {
    overflow-y: auto;
    max-block-size: 14rem;
}
.scrollbox::-webkit-scrollbar {
    inline-size: 1rem;
}
.scrollbox::-webkit-scrollbar-track {
    background-color: transparent;
}
.scrollbox::-webkit-scrollbar-thumb {
    background-color: var(--dark);
    border-radius: 1rem;
}
.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: 2.5rem;
    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);
}
.column.column-gap-sm {
    gap: 1.25rem;
}

.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;
}

@media only screen and (min-width: 880px) {
    .none-pc {
        display: none;
    }
    #INDEX {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #INDEX h1 a {
        margin-inline: auto;
        padding-top: 200px;
    }
    #INDEX main,
    #INDEX footer {
        max-width: 100%;
        min-width: 500px;
    }
}
/* ▼ novel viewerを使用しない場合は削除してOK ▼ */
.env-writing-mode-vertical {
    margin-top: 5vh;
    border-radius: 0.6rem;
}
.env-writing-mode-vertical::-webkit-scrollbar {
    inline-size: 1rem;
}
.env-writing-mode-vertical::-webkit-scrollbar-track {
    background-color: transparent;
}
.env-writing-mode-vertical::-webkit-scrollbar-thumb {
    background-color: var(--dark);
    border-radius: 1rem;
}

.env-menu .env-menu-inner dl dt,
.env-menu .env-menu-inner dl dd {
    margin-bottom: 0;
}
/* ▲ novel viewerを使用しない場合は削除してOK ▲ */

/* ▼ chara setを使用しない場合は削除してOK ▼ */
.ecs-list > a:hover {
    opacity: 1 !important;
}
.ecs-list > *[data-no] {
    position: relative;
    padding-top: 22px;
}
.ecs-list > *[data-no]::after {
    content: attr(data-no);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px;
    text-align: center;
    font-size: 1.2rem;
}

.ecs-content dl.ecs-data dt,
.ecs-content dl.ecs-data dd,
.ecs-content dl.ecs-data-num dt,
.ecs-content dl.ecs-data-num dd {
    border-block-end: 0;
}

.character-no,
.character-name,
.character-quote {
    text-align: center;
}
.character-no,
.character-name {
    font: 500 1.8rem/1 var(--font-family-heading);
}
.character-no {
    margin-bottom: 3rem !important;
}
.character-no span {
    border-bottom: 1px solid var(--text-color);
    padding: 0 1rem;
}
.character-name {
    padding: 0.5rem;
    background: var(--text-color);
    color: var(--bg-color);
    border: 3px double var(--dark);
}
.character-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-content: stretch;
}
.character-right > * {
    width: 100%;
}
.character-quote {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}
.character-quote li {
    position: relative;
    padding: 0 1rem;
    list-style: none;
    vertical-align: middle;
}
.character-quote li::before,
.character-quote li::after {
    content: "";
    display: inline-block;
    width: 1rem;
    aspect-ratio: 1/2;
    border: 2px solid var(--theme-color2-default);
}
.character-quote li::before {
    margin-block-end: 0.4rem;
    margin-inline-end: 0.6rem;
    border-block-end: 0;
    border-inline-end: 0;
}
.character-quote li::after {
    margin-block-end: -0.6rem;
    margin-inline-start: 0.6rem;
    border-block-start: 0;
    border-inline-start: 0;
}
.character-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
}
.character-tab > label {
    flex: 1 1;
    order: -1;
    border: 2px solid var(--theme-color2-default);
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    font-size: 1.4rem;
    text-align: center;
    cursor: pointer;
}
.character-tab > label input[type="radio"] {
    display: none;
}
.character-tab > label:has(:checked) {
    background: var(--theme-color2-default);
}
.character-tab > label:has(:checked) + div {
    display: block;
    margin-top: 0;
}
.character-tab > div {
    display: none;
    width: 100%;
    padding: 2.5rem;
    border: 2px solid var(--theme-color2-default);
    border-radius: 0 0 1rem 1rem;
    transition: margin-top var(--animation);
}
.character-tab > div > *:first-child {
    margin-block-start: 0;
}
.character-tab > div > *:last-child {
    margin-block-end: 0;
}
.character-img-frame {
    position: relative;
    aspect-ratio: 1/1.5;
}
.character-img-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    aspect-ratio: 1/1.4;
    background: url("../img/layout/frame.png") no-repeat center/cover;
    z-index: 1;
    pointer-events: none;
}
.character-img-frame .swiper {
    width: 100%;
    height: 100%;
    padding: 5% 5% 15%;
}
.character-img-frame .swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: start;
    background: var(--dark);
}
.character-img-frame .swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1.4;
    object-fit: cover;
}
/* ▲ chara setを使用しない場合は削除してOK ▲ */

/* ▼ my bookshelfを使用しない場合は削除してOK ▼ */
.ebs-base {
    margin-block: 2.5rem;
}
.ebs-base .ebs-text-border + .story-tag {
    margin-block-start: 1.25rem;
}

/* ▲ my bookshelfを使用しない場合は削除してOK ▲ */
/* ----- ▲ PCレイアウト　ここまで ▲ ----- */

/* ----- ▼ SPレイアウト　ここから ▼ ----- */
@media only screen and (max-width: 880px) {
    /* 基本 */
    body,
    button,
    input,
    textarea {
        font-size: 1.6rem;
        line-height: 2.65rem;
    }
    body:has(header) main,
    body:has(header) footer {
        width: 100%;
        max-width: 100%;
        margin: auto;
    }
    body:has(header):has(.top-image) main {
        margin-top: calc(286px + 4rem);
    }
    body:has(header) main {
        margin-top: calc(286px + 4rem);
    }
    body:has(header).fix-menu main {
        margin-top: 0;
    }
    header {
        width: 100%;
        height: auto;
        padding: 4rem 2rem;
        transition: padding var(--animation);
        z-index: 70;
    }
    header.scroll {
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        flex-direction: row;
    }
    header.scroll h1 {
        margin-bottom: 0;
    }
    header.scroll h1 a {
        width: auto;
        padding-top: 0;
    }
    header.scroll h1 a::before {
        content: none;
    }
    header.scroll .menu:not(#spotlight) ul {
        letter-spacing: 0;
    }
    header.scroll .menu:not(#spotlight) ul li a {
        font-size: 1.4rem;
        padding-block: 0.4rem;
        padding-inline: 1.6rem;
    }
    main .top-image {
        width: calc(100vw - 4rem);
        margin-top: 0;
        margin-left: 2rem;
        margin-bottom: 4rem;
        border-radius: 50vw 0 0 50vw;
    }
    footer {
        padding-block: 4rem;
    }
    /* メニュー */
    .menu:not(#spotlight) ul {
        display: flex;
        flex-direction: row;
        text-align: center;
    }
    .menu:not(#spotlight) ul li {
        width: 100%;
    }
    .menu:not(#spotlight) ul li a {
        display: block;
        padding-inline: 0;
        border-radius: 4rem;
        transform: none;
        transition: padding-block var(--animation);
    }
    /* 見出し */
    h1 {
        margin-bottom: 2rem;
    }
    h1 a {
        width: 200px;
        padding-top: 150px;
        margin-inline: auto;
    }
    /* リスト */
    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.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%;
    }
    /* 装飾 */
    .none-sp {
        display: none;
    }
    .character-img-frame {
        width: 50vw;
        margin: 0 auto;
    }
    .character-quote {
        width: calc(100% - 10rem);
    }
    .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);
    }
    .column.column-sp-gap-sm {
        gap: 1.25rem;
    }
    /* インデックス */
    #INDEX main,
    #INDEX footer {
        min-width: auto;
    }
}
/* ----- ▲ SPレイアウト　ここまで ▲ ----- */
