@charset "UTF-8";
/* --------------------------------------------------
  Template by espace（https://espace.i-ra.site/）
  Copyright: 2020 espace.

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

/* ----- ▼ CSS変数設定 ここから ▼ ----- */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho&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 {
    --color-main-1: #dcd4d9;
    --color-main-2: #977d8e;
    --color-main-3: #522643;
    --color-sub-1: #ead2da;
    --color-sub-2: #dc7898;
    --color-sub-3: #961e44;
    --color-neutral-1: #fbf6ec;
    --color-neutral-2: #f2e3c6;
    --color-neutral-3: #ead0a0;
    --color-accent-1: #faf1f1;
    --color-accent-2: #f1d4d6;
    --color-accent-3: #c37b80;
    --color-highlight-1: #f0dfed;
    --color-highlight-2: #d19eca;
    --color-highlight-3: #b25ea6;
    --dark: #3a3a3a;
    --white: #fff;
    --text-color: var(--dark);
    --bg-color: var(--color-neutral-1);
    --required-color: red;
    --animation: 0.7s;
    --font-family-basic: Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN, sans-serif;
    --font-family-menu: Yu Mincho, YuMincho, Hiragino Mincho Pro, serif;
    --font-family-sitename: Shippori Mincho, Yu Mincho, YuMincho, Hiragino Mincho Pro, serif;
    --font-family-heading: 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;
}
/* ----- ▲ 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: 24px;
    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 {
    width: 100%;
    padding: 24px;
    overflow-x: hidden;
    border-top: 10px solid var(--color-main-1);
}
body:has(header) {
    border: 0;
}
body:has(header)::before {
    content: "";
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    background: var(--color-main-1);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    width: 100%;
    height: 300px;
    z-index: -1;
}
body header h1 span,
body header h1 a {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.fix-menu::before {
    top: -180px;
}
body.fix-menu header {
    max-width: 100%;
}
body.fix-menu .menu {
    margin-top: 8px;
    margin-left: 8px;
}
body.fix-menu main article:first-child > *:first-child:not(h1, h2, h3, h4, h5, h6),
body.fix-menu main div:first-child > *:first-child:not(h1, h2, h3, h4, h5, h6) {
    margin-block-start: 10rem;
}
body:not(.fix-menu) header {
    position: relative;
    max-width: 660px;
    aspect-ratio: 1.86/1;
    margin: auto;
    margin-block: 4rem 8rem;
}
body:not(.fix-menu) header::before,
body:not(.fix-menu) header::after {
    content: "";
    position: absolute;
    display: block;
    top: 28px;
    left: 0;
    width: 100%;
    aspect-ratio: 2/1;
    border: 1px solid var(--color-accent-3);
    z-index: -1;
}
body:not(.fix-menu) header::before {
    background: var(--color-main-1);
    border-color: var(--color-main-2);
    transform: rotate(-4deg);
    opacity: 0.25;
}
body:not(.fix-menu) header::after {
    background: url("../img/top.jpg") center/cover;
    transform: scale(0.98);
}
body:not(.fix-menu) .menu {
    position: absolute;
    bottom: 3rem;
}
body:not(.fix-menu) .menu ul {
    right: 5px;
}

main,
footer {
    width: 100%;
    max-width: 880px;
    margin: auto;
}

footer {
    margin-block-start: 12rem;
}

/* メニュー */
.menu {
    width: 100%;
    height: 17px;
    font: 500 1.2rem/1 var(--font-family-sitename);
}
.menu ul {
    position: absolute;
    display: flex;
    justify-content: start;
    align-items: start;
    flex-wrap: wrap;
    background: var(--color-main-3);
    color: var(--color-neutral-1);
}
.menu ul::before {
    content: "menu";
    --r: 0.6em;
    width: fit-content;
    padding: 2px calc(var(--r) + 8px) 4px 8px;
    clip-path: polygon(
        -100vw 0,
        calc(100% - var(--r)) 0,
        100% 50%,
        calc(100% - var(--r)) 100%,
        -100vw 100%
    );
    border-image: conic-gradient(var(--color-main-2) 0 0) fill 0;
}
.menu ul li {
    display: block;
}
.menu ul li a {
    display: block;
    padding: 2px 6px 3px;
    color: var(--color-neutral-1);
}
.menu ul li a:hover {
    color: var(--color-highlight-2);
}

.manu-toggler {
    display: none;
}

.fixed-menu {
    position: fixed;
    bottom: 0;
    right: 1rem;
    z-index: 60;
}
.fixed-menu ul {
    display: flex;
    justify-content: center;
}
.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: 4rem;
    height: 3.4rem;
    margin: 0;
    padding: 0;
    background: var(--color-main-1);
    border: 0;
    border-radius: 2rem 2rem 0 0;
    box-shadow: none !important;
    transition: none !important;
    color: var(--color-main-3);
}
.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 {
    transform: none !important;
    background: var(--color-main-1) !important;
}
.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";
}

/* 見出し */
h1 {
    margin-inline: 8px;
    font: 500 2.4rem/1 var(--font-family-sitename);
    color: var(--color-main-3);
}
h1 a {
    display: block;
    color: var(--color-main-3);
}

h2 {
    margin-block: 100px;
    font: 500 2.2rem/1 var(--font-family-sitename);
    text-align: center;
}

h3 {
    margin-block: 100px 50px;
    font: 600 var(--font-size-basic) / 1 var(--font-family-heading);
    padding-block-end: 20px;
    border-bottom: 2px solid var(--color-main-2);
}

h4,
h5,
h6 {
    margin-block: 50px;
    font: 600 1.4rem/1 var(--font-family-heading);
}

h4 span,
h5 span {
    padding-block-end: 10px;
    border-bottom: 2px solid var(--color-main-2);
}

h5 span {
    border-color: var(--color-main-1);
}

/* リスト */
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: 12px;
    padding-inline-start: 5rem;
    padding-block-end: 12px;
}
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: 12px 0;
}
dl.inline dt,
dl.inline dd {
    margin-block-end: 0;
    padding-block-end: 12px;
}
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: blue;
}
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: 1px solid var(--color-main-1);
}
dl.inline dt,
dl.inline dd {
    border-block-end: 1px solid var(--color-main-1);
}
dl.border {
    padding-block: 1.4rem;
    padding-inline: 2rem;
    border: 1px solid var(--color-main-1);
    border-radius: 3px;
}

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

.form-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.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: 12px 0;
}
.form-block dl.inline dt {
    inline-size: 13rem;
}
.form-block dl.inline dd {
    inline-size: 100%;
}
.form-block > *,
.form-block dl dd > * {
    inline-size: 100%;
}

input,
textarea,
select {
    border: 1px solid var(--color-main-1);
    border-radius: 3px;
    transition: border-color var(--animation);
}
input:hover,
input:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus {
    border-color: var(--color-accent-3);
}

button:not(.manu-toggler),
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding-block: 0.4rem;
    padding-inline: 0.8rem;
    font-weight: bold;
    border: 0;
    border-radius: 2rem;
    background: var(--color-accent-2);
    color: var(--text-color);
    overflow: hidden;
}
button:not(.manu-toggler):disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    filter: grayscale(0.8);
}
button:not(.manu-toggler):not(:disabled),
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled) {
    box-shadow: var(--color-neutral-2) 2px 4px 10px;
    transition: background var(--animation), box-shadow var(--animation), transform var(--animation);
}
button:not(.manu-toggler):not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="button"]:not(:disabled):hover {
    color: var(--text-color);
    box-shadow: var(--color-neutral-2) 0 0 10px;
    transform: translate(2px, 4px);
    background: var(--color-neutral-3);
}

/* リンク */
a.arrow::before,
span.arrow::before {
    content: "\e315";
    margin-inline-end: 0.4rem;
    font-family: var(--font-family-icon);
    vertical-align: middle;
}

.btn {
    display: inline-block;
    padding-block: 0.4rem;
    padding-inline: 0.8rem;
    font-weight: bold;
    border-radius: 2rem;
    background: var(--color-accent-2);
    color: var(--text-color);
    overflow: hidden;
}
.btn.btn-block {
    display: block;
    margin-block: 0.6rem;
    text-align: center;
}
.btn.btn-arrow::after {
    content: "\e315";
    margin-inline-start: 0.4rem;
    font-family: var(--font-family-icon);
    vertical-align: middle;
}
.btn.btn-arrow.btn-block {
    position: relative;
    padding-inline-end: 2rem;
}
.btn.btn-arrow.btn-block::after {
    position: absolute;
    right: 0.6rem;
}

a {
    color: var(--color-sub-2);
    transition: color var(--animation);
}
a:hover {
    color: var(--color-sub-3);
}
a.btn,
a.btn-block {
    box-shadow: var(--color-neutral-2) 2px 4px 10px;
    transition: background var(--animation), box-shadow var(--animation), transform var(--animation);
}
a.btn:hover,
a.btn-block:hover {
    color: var(--text-color);
    box-shadow: var(--color-neutral-2) 0 0 10px;
    transform: translate(2px, 4px);
    background: var(--color-neutral-3);
}

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

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

em {
    font-style: normal;
    background: linear-gradient(transparent 50%, var(--color-neutral-3) 50%);
}

strong {
    background: var(--color-neutral-3);
}

hr {
    margin-block: 10rem;
    margin-inline: auto;
    max-width: 300px;
    width: 100%;
    border: 0;
    border-bottom: 4px solid var(--color-main-1);
}

.box {
    padding: 2rem;
    border: 1px solid var(--color-main-1);
    border-radius: 3px;
}
.box > *:first-child {
    margin-block-start: 0;
    padding-block-start: 0;
}
.box > *:last-child {
    margin-block-end: 0;
    padding-block-end: 0;
}

.dir {
    padding: 2rem;
    border: 1px solid var(--color-main-1);
    border-radius: 3px;
}
.dir > *:first-child {
    margin-block-start: 0;
}
.dir > *:first-child > *:first-child {
    margin-block-start: 0;
}
.dir > *:last-child {
    margin-block-end: 0;
}
.dir + .dir {
    margin-block-start: 8rem;
}
.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: 24px;
}
.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: 24px;
}
details summary {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
}
details summary.btn {
    display: flex;
    justify-content: space-between;
    text-align: left;
    box-shadow: var(--color-neutral-2) 2px 4px 10px;
    transition: background var(--animation), box-shadow var(--animation), transform var(--animation);
}
details summary.btn:hover {
    color: var(--text-color);
    box-shadow: var(--color-neutral-2) 0 0 10px;
    transform: translate(2px, 4px);
    background: var(--color-neutral-3);
}
details summary::after {
    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-color1-default);
    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::after {
    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(--color-main-1);
    border-radius: 1rem;
}
.scrollbox > *:first-child {
    margin-block-start: 0;
    padding-block-start: 0;
}
.scrollbox > *:last-child {
    margin-block-end: 0;
    padding-block-end: 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: 24px;
    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;
}

/* インデックス */
#INDEX {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
#INDEX h1 {
    margin-inline: 0;
    margin-block: 10rem;
}
#INDEX main,
#INDEX footer {
    max-width: 400px;
}
/* ----- ▲ PCレイアウト　ここまで ▲ ----- */

/* ----- ▼ SPレイアウト　ここから ▼ ----- */
@media only screen and (max-width: 725px) {
    body:has(header)::before {
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
        height: calc(40vw + 40px);
    }
    body.fix-menu::before {
        top: calc(-30vw + 40px);
    }
    body:not(.fix-menu) .menu {
        bottom: 1rem;
    }
    /* メニュー */
    .menu {
        bottom: 1rem;
    }
}
@media only screen and (max-width: 1000px) {
    /* 基本 */
    body,
    button,
    input,
    textarea {
        font-size: 1.6rem;
        line-height: 2.65rem;
    }
    /* 見出し */
    h1 {
        font-size: 2rem;
    }
    /* リスト */
    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: 12px;
    }
    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);
    }
    .column.column-sp-gap-sm {
        gap: 1.25rem;
    }
}
/* ----- ▲ SPレイアウト　ここまで ▲ ----- */
