@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap');

/* -------------------------------------------------------
* Template: 倉林
* ©2024 under my umbrella（https://um-umbrella.github.io/template/）
*------------------------------------------------------ */

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    position: relative;

    font-family: 'Noto Sans JP', system-ui;
    font-weight: 300;
    background-color: var(--body-bg);
}

main {
    position: relative;
}

::selection {
    background-color: var(--main-theme);
    color: var(--body-bg);
}

ul {
    margin: 16px;
}

li {
    margin: 8px 16px;
    padding-left: 16px;
    line-height: 1.6em;
}

li::marker {
    color: var(--main-theme);
}

a {
    text-decoration: none;
    color: var(--main-theme);
    transition: color 0.3s;
}

a:hover {
    color: var(--text-dark-color);
}

p {
    line-height: 1.8em;
    margin: 16px 0;
}

mark {
    color: inherit;
    background-color: rgb(255, 255, 255, 0);
    background-image: linear-gradient(rgba(0, 0, 0, 0) 60%, var(--sub-theme) 60%);
}

hr {
    margin: 64px;
    margin-inline: auto;
    width: 70%;
    border: none;
    border-top: 1px solid rgb(0 0 0 /0.1);
}

h2 {
    padding: 16px 0 8px;
}
h3 {
    padding: 16px 0 8px;
}

h4 {
    padding: 8px 0 0;
}

h5,
h6 {
    padding: 8px 0 0;
    font-size: 1em;
}

img:not(:where(.img-grid, .addWindow) > img) {
    display: block;
    margin: 5px auto;
    object-fit: scale-down;
    width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

img.trim {
    object-fit: cover;
    width: 100%;
    height: 300px;
}

img.title {
    object-fit: cover;
    width: 160px;
    height: 62px;
}

img.manga_title {
    width: 100%;
    height: 300px;
}

#update {
    overflow-y: scroll;
    list-style: none;

    font-family: inherit;
    font-size: inherit;

    width: 100%;
    height: 120px;
    margin: 0 auto;
    padding: 0 8px;

    line-height: 1em;
    color: var(--text-dark-color);
    background-color: #eee;
    border-radius: 4px;
    box-sizing: border-box;
}

#update > li {
    margin: 2px 0;
    padding: 0;
}

#update::-webkit-scrollbar {
    display: none;
}

#update time {
    padding-right: 1em;
}

button {

    font-size: 1.0rem;
    margin: 4px 4px;
    padding: 5px 8px;
    border: none;
    border-radius: 4px 4px 4px 4px;

    background-color: var(--main-theme);
    color: var(--text-light-color);
    transition: background-color 0.3s;
}

button a,
a button {
    color: var(--text-light-color);
}

button a:hover {
    color: var(--text-light-color);
}

button:hover {
    background-color: var(--sub-theme);
}

dl {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px 0;

    margin: 16px 0;
}

dt {
    border: 1px solid var(--main-theme);
}

dt,
dd {
    padding: 8px;
}

dd {
    line-height: 1.6em;
}

.clause {
    display: inline-block;
}

.page_top {
	position:fixed;
	bottom:10px;
	right:0px;
	padding:5px 10px;
	color:#fff;
	font-size:70%;
	text-decoration:none;
	background:#000;
}
.page_top:hover {
	background:#4d4d4d;
    transition:all 0.5s ease;
    opacity: 0.7;
    filter: alpha(opacity=70);
}
a.page_top:link,a.page_top:visited { color: #da70d6
; }


/*  メニュー類  ----------------------------*/

footer {
    position: relative;
    font-size: smaller;
}

footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0;
    padding: 16px 0 0;

    list-style: none;
}

footer li {
    margin: 0 8px;
}

#footer-c {
    display: block;
    position: relative;
    margin: 0 0 8px;
    left: 0;
    bottom: 0;

    text-align: center;
    font-size: x-small;
    color: var(--text-dark-color);
    opacity: 0.5;
}

#footer-c a {
    color: var(--text-dark-color);
}

.grid,
.grid-triple {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;

    --grid-gap: 16px;
    gap: var(--grid-gap);
}

:where(.grid, .grid-triple) > * {
    display: block;
    margin: 0 !important;
    width: 100%;
}

.img-grid {
    --grid-gap: 20px;

    margin: calc(var(--grid-gap));
    margin-inline: 0;
    gap: calc(var(--grid-gap));

    text-align: center;
}

@media screen and (min-width: 600px) {
    .grid,
    .grid-triple {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .img-grid {

        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .img-grid > img {
        max-width: 100%;
    }
} /*600px*/

/*モーダルウィンドウ*/
.addWindow {
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;

    content: '';
    z-index: 10;
    width: 100%;
    height: 100%;

    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.25s ease-out;
}

.addWindow > img {
    position: relative;
    object-fit: scale-down;
    z-index: 50;
    margin: 16px auto;
    top: 0;
    left: 0;

    width: 80%;
    height: 80%;
    max-height: 80%;
}

.addWindow > p {
    position: relative;
    top: 0;
    left: 0;
    width: 70%;
    margin: auto;
    padding: 0;

    text-align: center;
    color: var(--text-light-color);
}

/*------------------------------------------------------ */

@media screen and (min-width: 768px) {
    dl {
        grid-template-columns: 128px 1fr;
    }
} /*@media*/

/*------------------------------------------------------ */

@media screen and (min-width: 1024px) {
    .grid-triple {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media screen and (max-width: 600px) {

    .img-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}