@charset "utf-8";

/* || フォントのインポート */
@font-face {
    font-family: "MainB";
    src: url("fonts/KleeOne-SemiBold.ttf") format("truetype")
}

@font-face {
    font-family: "MainR";
    src: url("fonts/KleeOne-Regular.ttf") format("truetype")
}

/* || 一般的なスタイル */
html {
    font-family: "MainB", serif;
    letter-spacing: -0.05em;
    -webkit-user-select: none;
    user-select: none;
}

* {
    z-index: 2;
}

body {
    width: 100svw;
    height: 100svh;
    overflow: hidden;
    color: #000000;
    text-shadow: 0 1px 0.1em #cccccc;
    background-color: #000000;
    background-image: url(imgs/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

body::-webkit-scrollbar {
    display: none;
}

.dark-mode body {
    color: #ffffff;
    text-shadow: 0 1px 0.1em #333333;
    background-image: url("imgs/dark-background.jpg");
}

h1 {
    margin-top: 0.05em;
    font-family: "MainR", serif;
    font-size: 2.4rem;
    letter-spacing: -0.1em;
}

h2 {
    font-family: "MainB";
    font-size: 1rem;
    margin-top: -1em;
}

h2::before {
    content: "▪ ";
}

h3 {
    line-break: strict;
    font-weight: 400;
    font-size: 0.7rem;
    border: solid 1px #000000;
    padding: 1.5em 0.125em 0 0.1em;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 1px 1px 0 #333333aa;
    background-color: #ffffffdd;
}

.h3-05em {
    padding-top: 1em;
}

.dark-mode h3 {
    border: solid 1px #ffffff;
    box-shadow: 1px 1px 0 #ddddddaa;
    background-color: #000000dd;
}

p {
    font-size: 0.8rem;
    text-indent: 1.1em;
}

.noindent {
    text-indent: 0em;
}

ruby {
    display: ruby;
}

rt {
    font-size: 0.5em;
}

s {
    font-size: 0.8em;
}

/* || ヘッダーとメインナビゲーション */
/* ヘッダーと棒 */
header {
    position: fixed;
    bottom: 73svh;
    right: 2rem;
    text-align: right;
    transform: rotate(1deg);
}

@media (min-width: 1024px) and (orientation: landscape) {
    header {
        right: 15svw;
    }
}

header+.hr {
    position: fixed;
    width: 100svw;
    bottom: 70svh;
    border-top: solid 1px #000000;
    box-shadow: 0 1px 1px #dddddd;
}

.dark-mode header+.hr {
    border-top: solid 1px #ffffff;
    box-shadow: 0 1px 1px #333333;
}

.background {
    visibility: hidden;
    position: fixed;
    width: 100svw;
    height: 100svh;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #f9f8fa;
}

.dark-mode .background {
    background-color: #0e1217;
}

/* キャラクターシートへのリンクとメニュー */
.toeden,
.menu-toggle,
nav {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    position: fixed;
    left: 0svw;
    padding: 0.5em 1.5em 0.4em 3em;
    border: solid 1px #000000;
    border-left: none;
    border-radius: 0 2em 2em 0;
    box-shadow: 1px 1px 0 #333333aa;
    background-color: #ffffffdd;
    z-index: 3;
}

.dark-mode .toeden,
.dark-mode .menu-toggle,
.dark-mode nav {
    border: solid 1px #ffffff;
    border-left: none;
    box-shadow: 1px 1px 0 #333333aa;
    background-color: #000000dd;
}

.toeden::after {
    content: url(imgs/_blank.svg);
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
}

.dark-mode .toeden::after {
    content: url(imgs/dark-_blank.svg);
}

.toeden {
    bottom: 93svh;
}

.menu-toggle {
    bottom: 87svh;
}

#menu-toggle {
    -webkit-appearance: none;
    appearance: none;
}

nav {
    position: fixed;
    width: 16em;
    left: -16.5em;
    top: 14svh;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: left 1s ease;
}

nav p {
    margin-left: -1em;
    font-size: 0.6rem;
}

nav p:first-child {
    margin-top: 1em;
}

nav ol:last-child {
    margin-bottom: 0.5em;
}

nav p::before {
    content: "▪ ";
}


@media (min-width: 1024px) and (orientation: landscape) {
    nav {
        width: calc 14em;
        left: calc(-14.5em - 3rem);
    }
}

#menu-toggle:checked~nav {
    left: 0;
}

@media (min-height: 800px) {
    .menu-toggle {
        bottom: 89svh;
    }

    nav {
        top: 12svh;
    }

    nav p::before {
        content: "▪";
    }
}

input {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

nav ol {
    display: block;
    margin: 1em 0 2em;
}

li {
    display: block;
    height: 1.75em;
}

.switch {
    display: block;
    position: relative;
    font-size: 0.5rem;
    width: 7rem;
    height: 3em;
    margin: 1.5em 0 0 0.7em;
    padding: 0;
    border: solid 1px #000000;
    box-shadow: 1px 1px 0 #333333aa;
    background-color: #ffffffdd;
    border-radius: 0.25em;
}

.switch+.switch {
    margin-top: 0.5em;
}

.dark-mode .switch {
    border: solid 1px #ffffff;
    box-shadow: 1px 1px 0 #333333aa;
    background-color: #000000dd;
}

.switch div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.dark-mode #toggle-button01:checked~#tb01 {
    color: #000000;
    text-shadow: 0 1px 0.1em #cccccc;
    border: solid 1px #000000;
    box-shadow: none;
    background-color: #ffffffdd;
}

#toggle-button02:checked~#tb02 {
    color: #ffffff;
    text-shadow: 0 1px 0.1em #cccccc;
    border: solid 1px #ffffff;
    box-shadow: none;
    background-color: #000000dd;
}

#toggle-button03:checked~#tb03 {
    color: #ffffff;
    text-shadow: 0 1px 0.1em #cccccc;
    border: solid 1px #ffffff;
    box-shadow: none;
    background-color: #000000dd;
}

.dark-mode #toggle-button02:checked~#tb02 {
    color: #000000;
    text-shadow: 0 1px 0.1em #cccccc;
    border: solid 1px #000000;
    box-shadow: none;
    background-color: #ffffffdd;
}

.dark-mode #toggle-button03:checked~#tb03 {
    color: #000000;
    text-shadow: 0 1px 0.1em #cccccc;
    border: solid 1px #000000;
    box-shadow: none;
    background-color: #ffffffdd;
}

.switch+p {
    margin-top: 1.4em;
}

/* メイン */
main {
    position: fixed;
    top: 30svh;
    right: 0;
    width: 100svw;
    height: 70svh;
    padding: 2rem 2rem 3rem;
    overflow-y: hidden;
    writing-mode: vertical-rl;
}

main::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) and (orientation: landscape) {
    main {
        width: calc(60svw + 8rem);
        left: calc(20svw - 4rem);
        padding: 2rem 0 3rem;
    }
}

main p {
    margin: 1em;
    font-size: 0.8rem;
    text-justify: inter-word;
    line-break: strict;
    letter-spacing: 0.1em;
    line-height: 2em;
}

@media (min-height: 800px) {
    main {
        padding-bottom: 5rem;
        padding-left: 5rem;
    }

    main p {
        font-size: 0.725rem;
    }
}

main p+p {
    margin: 1em -0.5em 1em 1em;
}

section+section {
    margin-right: 3rem;
}

section *::not(ruby) {
    position: relative;
    height: 100%;
}

.caption {
    border: dashed 1px #000000;
    padding: 1rem 0.5rem;
    margin-bottom: 0.75rem;
}

.caption p {
    margin: 0 auto;
}

.dark-mode .caption {
    border: dashed 1px #ffffff;
}

.caption p {
    font-size: 0.6rem;
}

main .top {
    margin-right: 1.5em;
}

main .ma {
    margin-right: 2em;
}

main .maex {
    margin-right: 2em;
    padding-right: 3em;
    border-right: dotted 1px #000000dd;
}

.dark-mode main .maex {
    border-right: dotted 1px #ffffffdd;
}

.inner {
    margin-right: 2.25rem;
}

.novel {
    padding: 1rem;
}

.dash {
    margin-top: calc(0.25em);
    letter-spacing: -0.025em;
}

table {
    margin: 1rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    height: 90%;
}

table tr {
    line-height: 1.6em;
}

table tr+tr {
    border-right: dotted 1px #000000dd;
}

.dark-mode table tr+tr {
    border-right: dotted 1px #ffffffdd;
}

table tr th {
    text-align: center;
    font-weight: 400;
    line-height: 1em;
    vertical-align: middle;
    height: 5rem;
    border-bottom: 1px solid #000000;
}

table tr th a {
    display: block;
    width: 100%;
    height: 100%;
}

table tr td a {
    display: block;
    width: 100%;
    height: 100%;
}

.dark-mode table tr th {
    border-bottom: 1px solid #ffffff;
}

table tr td {
    padding-top: 1em;
}

table td {
    padding: 0 0.75em;
}

/* リンクまとめページ用 */
.linksre {
    position: relative;
    width: 100svw;
    height: 100svh;
    overflow-y: auto;
}

.linksab {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
}

.linksab section {
    margin: 10px auto;
    padding: 2rem 2rem 0rem;
    justify-content: center;
    width: 80%;
    background-color: #ffffff22;
    border: solid 1px #00000022;
    box-shadow: 5px 5px #00000022;
}

.linksab h1 {
    font-family: "MainB";
    display: inline;
    font-size: 0.8rem;
}

.linksab h1+p {
    display: inline;
    font-size: 0.8rem;
}

.linksab h2 {
    padding: 0 0 0.5em 0;
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}

.linksab h2::before,
.linksab h2::after {
    content: " - ";
}

.linksab h2+ul {
    margin-top: 1rem;
}

.linksab p+ul {
    margin-top: 1.5rem;
}

.linksab p {
    text-decoration: underline;
    font-size: 1em;
    line-height: 2em;
}

.linksab div::after {
    content: ">";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin: 0 0.4em;
}

.linksab section p {
    font-size: 0.8rem;
}

.linksab ul {
    margin-top: 0.5em;
}

.linksab li {
    border-radius: 0.1rem;
    position: relative;
    font-size: 0.9rem;
    margin: 0.3em auto;
    height: 3em;
    justify-content: center;
    text-align: right;
}

.linksab li div {
    position: absolute;
    width: 100%;
    right: 0%;
    border-bottom: dotted 1px #000000;
}

.linksab .small {
    margin-left: 0.75em;
    font-size: 0.8em;
}