@font-face {
    font-display: swap;
    font-family: "Zen Kaku Gothic Antique";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/zen-kaku-gothic-antique-v13-japanese_latin-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Rampart One";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/rampart-one-v7-japanese_latin-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Mochiy Pop One";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/mochiy-pop-one-v7-japanese_latin-regular.woff2") format("woff2");
}
  
body {
    background-color: #497174;
    background-image: url("../layout/bg.gif");
    font-size: 1.2em;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    margin: 0;
}

* {
    box-sizing: border-box;
}

#container {
    max-width: 1000px;
    margin: 3em auto;
    width: 90%;
    color: #524234;
}

a, a:visited {
    color: #B83B5C;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
    font-weight: bold;
    color: #83338E;
}

#header {
    width: 100%;
    background-color: #83338E;
    background-size: 100%;
    margin-bottom: 10px;
    outline-color: #000000;
    outline-style: dashed;
    outline-width: 2px;
    padding: 10px;
}

#navbar {
    background-color: #B83B5C;
    width: 100%;
    padding: 0 5%;
    border-style: none;
    border-width: 0 0 6px 0;
    margin-bottom: 10px;
    outline-color: #000000;
    outline-style: dashed;
    outline-width: 2px;
    color: #000000;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1.2em;
    display: inline-block;
    margin-right: 1.5em;
    margin-bottom: 0.2em;
    margin-top: 0.2em;
    font-family: "Mochiy Pop One", sans-serif;
}

#navbar li a, #navbar li a:visited {
    color: #FFBF80;
    text-decoration: none;
}

#navbar li a:hover {
    background-color: #FFBF80;
    color: #B83B5C;
    margin: -3px -6px;
    padding: 3px 6px;
    border-radius: 15px;
    text-decoration: none;
}

#flex {
    display: flex;
}

aside {
    background-color: #84c9ce;
    width: 300px;
    padding: 20px;
    font-size: smaller;
    outline-color: #000000;
    outline-style: dashed;
    outline-width: 2px;
    color: black;
}

aside h2 {
    text-align: center;
}

aside a, aside a:visited {
    color: #1C3144;
    text-decoration: none;
    font-weight: bold;
}

aside a:hover {
    color: #000000;
}

article {
    padding: 10px 5% 20px 5%;
    width: 700px;
    outline-color: #000000;
    outline-style: dashed;
    outline-width: 2px;
    color: #000000;
    background-color: #F0CAA3;
}

article p {
    text-indent: 1em;
}

hr {
    border: dashed #000000;
    border-width: 2px 0 0 0;
}

footer {
    background-color: #B83B5C;
    width: 100%;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
    outline-color: #000000;
    outline-style: dashed;
    outline-width: 2px;
    color: #FFE5CC;
    font-family: "Mochiy Pop One", sans-serif;
    font-size: smaller;
}

footer a, footer a:visited {
    text-decoration: underline;
    color: #FFE5CC;
}

footer a:hover {
    text-decoration: none;
}

footer.Footnotes {
    background-color: #ffffff;
    width: 100%;
    padding: 5%;
    text-align: left;
    outline-width: 2px;
    outline-style: dashed;
    outline-color: #213435;
}

.Footnotes__title {
    text-align: center;
    color: #000000;
}
.Footnotes ol {
    color: #000000;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
}
.Footnotes ol a, a:visited {
    color: #B83B5C;
    text-decoration: none;
    font-weight: bold;
}
.Footnotes a:hover {
    text-decoration: underline;
    font-weight: bold;
    color: #83338E;
}

h1, h2 {
    font-family: "Rampart One", Impact;
    font-size: 1.6em;
    line-height: 1.6em;
}

h3, h3, h5, h6 {
    font-family: "Mochiy Pop One", sans-serif;
    line-height: 1.6em;
}

p {
    line-height: 1.6em;
}

.box {
    padding: 5%;
    margin-top: 1em;
    font-size: 1.1em;
    line-height: 1.6em;
    outline-color: #213435;
    outline-style: dashed;
    outline-width: 2px;
    background-color: #ffffff;
    min-height: 150px;
}
.topbox {
    padding: 5%;
    margin: 1em 0em;
    font-size: 1.1em;
    line-height: 1.6em;
    outline-color: #213435;
    outline-style: dashed;
    outline-width: 2px;
    background-color: #ffffff;
}
.storelinks {
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

blockquote {
    padding: 0 20px;
    margin-left: 0;
    border-left: 2px solid #B83B5C;
    font-size: 1.2em;
    line-height: 1.6em;
}

code {
    background-color: #eab676;
    padding: 0.2em;
    font-family: monospace;
}

img {
    max-width: 100%;
    height: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

ul.none {
    padding: 0;
    list-style-type: none;
}

ul.archives {
    padding: 0;
    font-size: 1.2em;
    list-style-type: none;
}

.right {
    float: right;
    margin-left: 1em;
}
.left {
    float: left;
    margin-right: 1em;
}

.center {
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

summary {
    font-family: "Mochiy Pop One", sans-serif;
}

.byline {
    font-family: "Mochiy Pop One", sans-serif;
}

.caption {
    margin-top: 0;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    color: #000000;
    margin-top: -0.5em;
}

.caption a {
    text-decoration: underline;
    color: #83338E;
}

.caption a:hover {
    text-decoration: none;
    color: #000000;
}

#nextprev {
    text-align: center;
    margin-top: 1.4em;
}

@media only screen and (max-width: 900px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    article {
        order: 1;
    }
    
    #leftSidebar {
        order: 2;
    }
    
    #navbar ul {
        flex-wrap: wrap;
    }
}

/* Top button */
#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #B83B5C;
    color: white;
    font-family: "Mochiy Pop One", sans-serif;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
}
#topBtn:hover {
    background-color: #83338E;
}

/* Recent Posts */
.post-grid {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 5px;
    width: 100%;
    margin: 0 auto;
}
.post-grid .post-grid-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: initial;
    padding: 5px;
    width: 296px;
    height: 250px;
    outline-color: #000000;
    outline-style: solid;
    outline-width: 1px;
}
.post-grid-image {
    max-height: 250px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.post-grid-title {
    background-color: #B83B5C;
    padding: 5px;
}
.post-grid .post-grid-item .post-grid-title {
    font-weight: bold;
    background-color: rgba(184,59,92,0.9);
    color: #FFE5CC;
    padding: 8px;
    overflow: hidden;
    text-decoration: none;
    font-family: "Mochiy Pop One", sans-serif;
    outline-color: #000000;
    outline-style: solid;
    outline-width: 1px;
}
.post-grid .post-grid-item .post-grid-date {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 5px;
    gap: 5px;
}
.post-grid .post-grid-item .post-grid-date  {
    padding: 4px;
    box-sizing: border-box;
    display: inline-block;
}
.post-grid .post-grid-item .post-grid-date {
    background-color: rgba(184,59,92,0.9);
    color: #FFE5CC;
    width: 105px;
    background-size: auto;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    outline-color: #000000;
    outline-style: solid;
    outline-width: 1px;
}

/* Newsletter button */
input[type=button],
    input[type=submit] {
        background-color: #B83B5C;
        border: none;
        color: #fff;
        padding: 10px 30px;
        text-decoration: none;
        font-weight: bolder;
        border-radius: 8px;
        margin: 4px 2px;
        cursor: pointer;
    }

/* External links */
:root {
	/*
	line left
	line right
	line bottom
	line top
	arrow left
	arrow right
	arrow diagonal
	*/
	--icon-external-link: url('data:image/svg+xml,\
	<svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 20 20"> \
		<g style="stroke:rgb(0,0,0);stroke-width:1"> \
			<line x1="5" y1="5" x2="5" y2="14" /> \
			<line x1="14" y1="9" x2="14" y2="14" /> \
			<line x1="5" y1="14" x2="14" y2="14" /> \
			<line x1="5" y1="5" x2="9" y2="5"  /> \
			<line x1="10" y1="2" x2="17" y2="2"  /> \
			<line x1="17" y1="2" x2="17" y2="9" /> \
			<line x1="10" y1="9" x2="17" y2="2" style="stroke-width:1.5" /> \
		</g> \
	</svg>');
}
a[target="_blank"]::after {
	content: '';
	background: no-repeat var(--icon-external-link);
	padding-right: 1em;
}

a.plainlinks::after {
    display: none;
    text-decoration: none;
}
a.plainlinks:hover {
    text-decoration: none;
}