:root {
	margin: 0;
	overflow: hidden;
    background: #000205;
    background-image: url("/img/stars.png");
	font-family: "Noto Sans JP", sans-serif;
	--bk-color: #fefdfa;
	--text-color: #010205;
	--red-color: #f55;
    --yellow-color: #ff5;
    --green-color: #5f5;
}
body {
	margin-top: 0;
}
p {
	color: var(--text-color);
	font-size: 14px;
	margin-top: 4px;
	margin-bottom: 4px;
}
p > span {
	display: block;
    text-align: justify;
}
p.jp-text {
    font-size: 16px;
}
a {
	font-size: 14px;
	text-decoration: none;
}
span {
	color: var(--text-color);
	font-size: 14px;
}
span.further-info {
	text-decoration: underline dotted var(--text-color);
}
h1 {
	color: var(--text-color);
	font-size: 32px;
	margin-top: 24px;
	margin-bottom: 12px;
}
h2 {
	color: var(--text-color);
	font-size: 24px;
	margin-top: 24px;
	margin-bottom: 8px;
}
h3 {
	color: var(--text-color);
	font-size: 20px;
	margin-top: 8px;
	margin-bottom: 4px;
}
h4 {
	color: var(--text-color);
	font-size: 16px;
	margin-top: 6px;
	margin-bottom: 4px;
}
li {
	list-style-type: "- ";
}
ul {
	margin: 0px;
}
section {
	width: 1200px;
	height: 100vh;
}
footer {
	padding-bottom: 30px;
	z-index: 2;
	width: 250px;
}
img {
    width: 100%;
}
button {
	text-align: right;
	background: none;
    border: 1px solid var(--text-color);
    border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-family: "Noto Sans JP", sans-serif;
}

main {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100vw;
}

article {
    background: #fefdfa;
    flex-shrink: 0;
    padding: 22px 40px 40px 40px;
    width: 1200px;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: thin;
}
article hr {
    width: 1200px;
}

aside {
    background: #fefdfa;
    flex-shrink: 0;
    height: auto;
    width: 300px;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 20px 20px 20px 0px;
    border-right: 1px solid #333;
    scrollbar-width: none;
}
aside a {
	color: var(--text-color);
	text-decoration: none;
}
aside.not-finished {
	text-decoration: underline wavy var(--red-color);
}
aside ul {
	padding-left: 16px;
}
aside li {
	list-style-type: "";
}

.hover-text {
	text-decoration: underline dotted;
}
.show-more-button {
    border: none;
}

section#sideboard {
    background: var(--bk-color);
    z-index: 100;
    flex-shrink: 0;
    width: 300px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 20px;
    scrollbar-width: none;
    transition: transform 0.3s ease;
}
.sidebar-toggle {
    background: var(--bk-color);
    z-index: 200;
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.romaji-input {
    display: flex;
}
.romaji-input input {
    text-align: center !important;
    width: 1120px;
    margin: 20px;
    min-height: 30px;
    font-size: 16px;
}
.romaji-input button {
    height: 36px;
    margin: 20px;
}

.romaji-output {
    padding-right: 84px;
    text-align: center;
}
.romaji-output span {
    text-align: center;
}

span#counter-word-kanji {
    font-size: 70px;
}
span#counter-word-english {
    font-size: 24px;
}
span#counter-word-number {
    font-size: 24px;
}

.counter-selection {
    display: grid;
    grid-template-columns: 200px 200px 200px 200px 200px;
    gap: 10px;
    row-gap: 0px;
}

.generic-calculator-element {
	display:grid;
	grid-template-columns: 160px 200px 60px;
	gap: 10px;
	row-gap: 0px;
}
.generic-calculator-element > input {
	text-align: right;
}
.generic-calculator-element > select {
	text-align: right;
}
.generice-calculator-element-wide {
    grid-template-columns: 160px 500px;
}

.required-marker {
	color: var(--red-color);
}

.split-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
}
.left-column {
    flex: 2;
    display: flex;
    flex-direction: column;
}
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1549px) {
    aside {
        visibility: collapse;
    }

    section#sideboard {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        transform: translateX(-100%);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
        border-right: 1px solid #333;
        padding-top: 40px;
    }

    section#sideboard.open {
        visibility: initial;
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 1260px) {
    article {
        width: 100%;
    }

    p {
        margin-left: 10px;
        margin-right: 10px;
    }
}