@charset "utf-8";

:root {
    --newmark-color: #e53935;
}

:root[theme="light"] {
    --mode-color: #f9a825;
}

:root[theme="dark"] {
    --mode-color: #fcc800;
}

body {
    font-family: "Helvetica Neue", Helvetica, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Arial, "Yu Gothic", Meiryo, sans-serif;
    font-weight: 500;
}

/* for Glightbox setting with Water.css */

.glightbox-open body {
    margin: 20px auto;
}

/* dateseparater */

.dateseparator {
    display: none;
}

/* utilitylinks */

.utilitylinks {
    display: none;
}

/* youtube */

.embeddedmovie {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.embeddedmovie iframe {
    width: 100%;
    height: 100%;
}

/* powerd */

.powerd a,
.themeby a {
    color: var(--text-muted);
}

/*
    Darkmode, Lightmode
*/

#theme-switch {
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    box-sizing: border-box;
    width: 3rem;
    height: 3rem;
}

#theme-switch::-moz-focus-inner {
    border: 0;
    padding: 0;
}

#theme-switch:focus {
    box-shadow: none;
}

#mode-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
}

#mode-icon.lightmode {
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
            mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
    background-color: var(--mode-color);
}

#mode-icon.darkmode {
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>');
            mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>');
    background-color: var(--mode-color);
}

/* custom class */

.dn {
    display: none;
}

.ma0 {
    margin: 0;
}

.mh0 {
    margin-left: 0;
    margin-right: 0;
}

.mb0 {
    margin-bottom: 0;
}

.mb1 {
    margin-bottom: 0.25rem;
}

.mb2 {
    margin-bottom: 0.5rem;
}

.mb3 {
    margin-bottom: 1rem;
}

.mb4 {
    margin-bottom: 2rem;
}

.mt3 {
    margin-top: 1rem;
}

.mt4 {
    margin-top: 2rem;
}

.mt5 {
    margin-top: 3rem;
}

.mv1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.mv2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mv3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mv4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ml1 {
    margin-left: 0.25rem;
}

.ml2 {
    margin-left: 0.5rem;
}

.ml3 {
    margin-left: 1rem;
}

.mr1 {
    margin-right: 0.25rem;
}

.mr2 {
    margin-right: 0.5rem;
}

.mr3 {
    margin-right: 1rem;
}

.pa0 {
    padding: 0;
}

.ph0 {
    padding-left: 0;
    padding-right: 0;
}

.pl3 {
    padding-left: 1rem;
}

.pv1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.pv2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pv4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.pv5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.same-text-color {
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.875rem;
}

.normal {
    font-weight: normal;
}

.b {
    font-weight: bold;
}

.lh-content {
    line-height: 1.8;
}

.tc {
    text-align: center;
}

.db { display: block; }

.dib { display: inline-block; }

.di { display: inline; }

.flex { display: flex; }

.justicy-center { justify-content: center; }

.items-center { align-items: center; }

.flex-wrap { flex-wrap: wrap; }

/* font-size */

.f1 { font-size: 3rem; }

.f2 { font-size: 2.25rem; }

.f3 { font-size: 1.5rem; }

.f4 { font-size: 1.25rem; }

.f5 { font-size: 1rem; }

.f6 { font-size: 0.875rem; }

.f7 { font-size: 0.75rem; }

.no-underline,
.no-underline:hover {
    text-decoration: none;
}

/* list-style */

.list {
    list-style-type: none;
}

/* List page Situation */

.wn-list:not(.nofiltering) .situation {
    display: block;
    font-size: 0.875rem;
    background-color: var(--background-alt);
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

/* List page onelog information */

.wn-list .onelog-hashtag-list .taglink,
.wn-list .onelog-hashtag-list .categorylink {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

/* List page navigation menu */

.wn-list .nav {
    display: flex;
    -moz-column-gap: 1rem;
         column-gap: 1rem;
    flex-wrap: wrap;
}

/* List page oneglog hashtag */

.wn-list .onelog-hashtag-list .categorylink::before {
    content: "#";
}

/*
    List page Pager
*/

/* Pager: next/prev links */

.wn-list .pagelinks {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    font-size: 0.875rem;
}

.wn-list .pagelinks .prevlink,
.wn-list .pagelinks .nextlink {
    display: block;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    text-align: center;
    background-color: transparent;
    text-decoration: none;
    border-radius: 9999px;
}

.wn-list .pagelinks .prevlink {
    order: 1;
}

.wn-list .pagelinks .pagenums {
    order: 2;
}

.wn-list .pagelinks .nextlink {
    order: 3;
}

.wn-list .pagelinks .prevlink:hover,
.wn-list .pagelinks .nextlink:hover {
    background-color: var(--background-alt);
}

.wn-list .pagelinks .linkseparator {
    display: none;
}

/* Pager: number links */

.wn-list .pagenums {
    display: flex;
    -moz-column-gap: 0.1rem;
         column-gap: 0.1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.wn-list .pagenums .pagenumlink {
    display: flex;
    color: var(--text-muted);
    width: 2rem;
    height: 2rem;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    text-decoration: none;
}

/* Pager: number link is here */

.wn-list .pagenums .pagenumlink.pagenumhere,
.wn-list .pagenums .pagenumlink.pagenumhere:hover {
    background-color: var(--text-main);
    color: var(--background-alt);
}

.wn-list .pagenums .pagenumlink:hover {
    background-color: var(--background);
}

/* Listpage: Article New Mark */

.newsign {
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--newmark-color);
    vertical-align: middle;
}

.newsign:empty {
    display: none;
}

/* Listpage: Categorylist separator */

.wn-list .catseparator {
    display: none;
}

/* Listpage: lock post item */

.wn-list .onelog-list-item.logstatus-lock .post-title::after {
    content: "\01f512";
    font-size: 0.75rem;
}

/*
    Listpage display:none; compornent
*/

.wn-list.onelog .situation,
.wn-list.nofiltering .situation,
.wn-list:not(.nofiltering) .freespace,
.wn-list.onelog .pagelinks,
.wn-list.onelog .pagenums {
    display: none;
}

/*
    Singlepage display:none; compornent
*/

:not(.onelog).wn-single .onelog-item,
.onelog.wn-single .oops {
    display: none;
}

/* Singlepage header */

.wn-single header {
    display: flex;
    align-items: center;
}

/* single-post category list */

.wn-single .categorylink {
    display: inline-block;
    color: var(--background-body);
    background-color: var(--links);
    margin-right: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    text-decoration: none;
}

.wn-single .categorylink:hover {
    opacity: 0.8;
}

.wn-single .category-links:empty,
.wn-single .catseparator {
    display: none;
}

.wn-single .information li {
    display: inline-block;
}

.wn-single .information li + li::before {
    content: "\30fb";
    padding: 0 0.25rem;
}

/* Singlepage: embed image */

.wn-single .embeddedimage:hover {
    cursor: zoom-in;
}

/* Scroll to top button */

#scrolltop {
    display: none;
    background-color: var(--text-bright);
    opacity: 0.5;
    border: none;
    color: var(--background-alt);
    cursor: pointer;
    font-size: 16px;
    width: 48px;
    height: 48px;
    position: fixed;
    right: 15px;
    bottom: 30px;
    border-radius: 0.25rem;
}

#scrolltop .scrolltop-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Taxonomy page Categories Tree,
   Taxonomy page Hashtag List */

.taxonomy .categories,
.taxonomy .hashtags {
    margin: 1rem 0;
}

/* category */

.taxonomy .categories * {
    display: inline;
    margin: 0;
    padding: 0;
}

.taxonomy .categories .catlink {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    color: var(--text-main);
    background-color: var(--background-alt);
    text-decoration: none;
    border-radius: 2px;
}

.taxonomy .categories .catlink:hover {
    color: var(--background);
    background-color: var(--links);
}

/* hashtags */

.taxonomy .hashtags .hashtaglist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.taxonomy .hashtaglist li {
    display: inline-block;
    margin: 0.25rem;
}

.taxonomy .hashtags .taglink {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    color: var(--text-main);
    background-color: var(--background-alt);
    text-decoration: none;
    border-radius: 2px;
}

.taxonomy .hashtags .hashtaglist .num {
    display: none;
}

.taxonomy .hashtags .taglink:hover {
    color: var(--background);
    background-color: var(--links);
}

/* Lock post */

.passkeyerror {
    display: block;
    color: var(--newmark-color);
    font-weight: 700;
    position: relative;
    padding-left: 2rem;
}

.passkeyerror::before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    content: "\026a0";
    font-size: 1.5rem;
}

.passkeyguide {
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
