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

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

/* ----- ▼ CSS変数設定 ここから ▼ ----- */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kosugi&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&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: var(--dark);
    --bg-color: var(--white);
    --required-color: red;
    --white: #fff;
    --light-gray: #d9dbeb;
    --gray: #a2a5b9;
    --dark: #3a3a3a;
    --main-color-more-light: #e9eaf8;
    --main-color-light: #b8bcdf;
    --main-color-basic: #898fc9;
    --main-color-shadow: rgba(137, 143, 201, 0.3);
    --accent-color-1: #f8e7d2;
    --accent-color-2: #eec896;
    --accent-color-3: #d39f5c;
    --theme-color1-default: green;
    --animation: 0.5s;
    --font-family-basic: Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN, sans-serif;
    --font-family-menu: "Inter", "Kosugi", Yu Mincho, YuMincho, Hiragino Mincho Pro, serif;
    --font-family-sitename: "Roboto Mono", Yu Gothic, Meiryo, Hiragino Kaku Gothic ProN, sans-serif;
    --font-family-heading: "Inter", "Kosugi", Yu Mincho, YuMincho, Hiragino Mincho Pro, serif;
    --font-family-icon: Material Symbols Rounded;
    --font-size-small: 1.4rem;
    --font-size-basic: 1.6rem;
    --font-size-large: 1.8rem;
    --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.get-header main {
    min-height: calc(100vh - 485px);
}
header,
main {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

header {
    margin-block: 96px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    text-align: center;
}

main {
    min-height: calc(100vh - 255px);
}

footer {
    margin-top: 96px;
    padding-block: 24px;
    background: var(--main-color-more-light);
    text-align: center;
}

/* メニュー */
.menu:not(#spotlight) {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 12px;
    font: 400 var(--font-size-small) / var(--line-height-basic) var(--font-family-menu);
}
.menu:not(#spotlight)::before {
    content: "\eac9";
    margin-top: 4px;
    font-family: var(--font-family-icon);
    font: 300 var(--font-size-large) / 1 var(--font-family-icon);
    font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
.menu:not(#spotlight) ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.menu:not(#spotlight) ul li a {
    color: var(--main-color-basic);
}
.menu:not(#spotlight) ul li a:hover {
    text-decoration: underline;
}
.fixed-menu {
    position: fixed;
    bottom: 53px;
    right: 12px;
    z-index: 60;
}
.fixed-menu ul {
    display: flex;
}
.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: 20px;
    background: var(--bg-color);
    color: var(--main-color-basic);
}
.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 span {
    color: var(--light-gray);
}
.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 {
    font: 400 2.4rem/1 var(--font-family-sitename);
}
h1 a {
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    background: var(--main-color-light);
    border-radius: 2px;
    color: var(--white);
}
h1 a::before {
    content: "";
    top: 0;
    left: 0;
    display: block;
    position: absolute;
    background: transparent;
    border: 1px solid var(--main-color-light);
    border-radius: 2px;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: top var(--animation), left var(--animation), height var(--animation),
        width var(--animation), box-shadow var(--animation) 0.4s;
}
h1 a:hover {
    text-decoration: none;
}
h1 a:hover::before {
    top: -12px;
    left: -12px;
    height: calc(100% + 24px);
    width: calc(100% + 24px);
    box-shadow: 4px 2px 10px var(--main-color-shadow);
}

h2,
h3,
h4,
h5,
h6 {
    margin-block: 84px 36px;
    font: 500 var(--font-size-basic) / var(--line-height-basic) var(--font-family-heading);
}
h2 + h2,
h2 + h3,
h2 + h4,
h2 + h5,
h2 + h6,
h3 + h2,
h3 + h3,
h3 + h4,
h3 + h5,
h3 + h6,
h4 + h2,
h4 + h3,
h4 + h4,
h4 + h5,
h4 + h6,
h5 + h2,
h5 + h3,
h5 + h4,
h5 + h5,
h5 + h6,
h6 + h2,
h6 + h3,
h6 + h4,
h6 + h5,
h6 + h6 {
    margin-block: 36px;
}

h2,
h3,
h4 {
    padding-inline-start: 12px;
    border-inline-start: 4px solid var(--main-color-light);
}

h3 {
    border-inline-start-style: double;
}

h4 {
    border-inline-start-width: 1px;
    padding-inline-start: 15px;
}

h5,
h6 {
    font-size: var(--font-size-small);
}

h6 {
    color: var(--gray);
}

/* リスト */
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: var(--gray);
}
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(--light-gray);
}
dl.inline dt,
dl.inline dd {
    border: 0;
}
dl.border {
    padding-block: 1.4rem;
    padding-inline: 2rem;
    border: 1px solid var(--light-gray);
    border-radius: 2px;
}

/* フォーム */
.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,
button:not(.manu-toggler),
input[type="submit"],
input[type="button"] {
    border: 1px solid var(--light-gray);
}

input,
textarea,
select {
    border-radius: 2px;
}
input:not(:disabled),
textarea:not(:disabled),
select:not(:disabled) {
    transition: border-color var(--animation);
}
input:not(:disabled):hover,
input:not(:disabled):focus,
textarea:not(:disabled):hover,
textarea:not(:disabled):focus,
select:not(:disabled):hover,
select:not(:disabled):focus {
    border-color: var(--main-color-light);
}

button:not(.manu-toggler),
input[type="submit"],
input[type="button"] {
    overflow: hidden;
    padding-block: 0.4rem;
    padding-inline: 0.8rem;
    background: transparent;
    border-radius: 50px;
    color: var(--accent-color-3);
    font-weight: bold;
}
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) {
    transition: border-color var(--animation), background var(--animation);
}
button:not(.manu-toggler):not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="button"]:not(:disabled):hover {
    border-color: var(--accent-color-1);
    background: var(--accent-color-1);
}

/* リンク */
a.arrow::before,
span.arrow::before {
    content: "\e315";
    font-family: var(--font-family-icon);
    vertical-align: middle;
}
a.btn,
span.btn {
    overflow: hidden;
    padding-block: 0.4rem;
    padding-inline: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-weight: bold;
}
a.btn.btn-block,
span.btn.btn-block {
    display: block;
    margin-block: 0.6rem;
    text-align: center;
}
a.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,
span.btn.btn-arrow.btn-block {
    position: relative;
    padding-inline-end: 2rem;
}
a.btn.btn-arrow.btn-block::after,
span.btn.btn-arrow.btn-block::after {
    position: absolute;
    right: 0.6rem;
}

a {
    color: var(--accent-color-3);
}
a:hover {
    text-decoration: underline;
}
a.btn,
a.btn-block {
    transition: border-color var(--animation), background var(--animation);
}
a.btn:hover,
a.btn-block:hover {
    border-color: var(--accent-color-1);
    background: var(--accent-color-1);
}

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(--accent-color-1) 50%);
}

strong {
    background: var(--accent-color-1);
}

hr {
    position: relative;
    margin-block: 50px;
    height: 42px;
    border: 0;
}
hr::before,
hr::after {
    content: "";
    position: absolute;
    display: block;
    aspect-ratio: 1/1;
    width: 42px;
    border-radius: 50%;
    top: 0;
}
hr::before {
    left: calc(50% - 6px);
    border: 1px solid var(--main-color-light);
}
hr::after {
    right: calc(50% - 6px);
    background: transparent
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            var(--main-color-light) 2px,
            var(--main-color-light) 3px
        );
}

.box {
    padding: 2rem;
    border: 1px solid var(--light-gray);
    border-radius: 2px;
}
.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: 1rem;
}
.scrollbox::-webkit-scrollbar-track {
    background-color: transparent;
}
.scrollbox::-webkit-scrollbar-thumb {
    background: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 2px;
}
.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;
    height: 100vh;
}
#INDEX main {
    max-width: none;
    min-height: auto;
}
#INDEX main h1 {
    text-align: center;
}
#INDEX footer {
    background: none;
}
/* ----- ▲ PCレイアウト　ここまで ▲ ----- */

/* ----- ▼ SPレイアウト　ここから ▼ ----- */
@media only screen and (max-width: 1000px) {
    /* 基本 */
    body,
    button,
    input,
    textarea {
        font-size: 1.6rem;
        line-height: 2.65rem;
    }
    header,
    main {
        margin-inline: 12px;
    }
    /* メニュー */
    .menu {
        justify-content: start;
    }
    .menu ul {
        justify-content: start;
    }
    /* リスト */
    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レイアウト　ここまで ▲ ----- */
