@charset "utf-8";

/* 基本 */
html {
    background: var(--bg-color);
}

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

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("../images/bg.png") 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 #6683b1, 0 0 10px #16486d; */
    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: 10rem;
    margin-bottom: 10rem;
}
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.gallery a::before,
.fixed-menu li.gallery button::before,
.fixed-menu li.gallery span::before {
    content: "\f53f" !important;
}

.fixed-menu li.return a::before,
.fixed-menu li.return button::before,
.fixed-menu li.return span::before {
    content: "\f3e5" !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,
h4,
h5,
h6 {
    font-family: "Baloo Tammudu 2", "Kosugi Maru", sans-serif;
    font-weight: 500;
}

h3{
    font-family: "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;
    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)::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):hover::before,
footer a:not(.ic-sns):not(.img):not(.new):hover::before {
    transform: translateY(3px);
    opacity: 0;
}
main a.img,
footer a.img {
    transition: filter var(--animation);
}
main a.img:hover,
footer a.img:hover {
    filter: drop-shadow(2px 2px 6px var(--theme-color1-default));
}

/* 装飾 */
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: 15rem;
}
.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;
}

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

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