/* kinoko — Fukasawa layout for sin5d.com
   Adapted from Anders Norén's Fukasawa (GPL-2.0) */

:root {
	--bg: #f2f2f2;
	--sidebar: #fff;
	--text: #333;
	--muted: #767676;
	--line: #e7e7e7;
	--accent: #ff8833;
	--accent-link: #ff6702;
	--search-btn: #32373c;
	--sidebar-w: 280px;
	--font: "Noto Sans JP", "Lato", "Helvetica Neue", Helvetica, sans-serif;
}

html, body { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, li, figure, figcaption,
fieldset, form, label, button, table, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	line-height: 1;
	font-family: inherit;
}

html { -webkit-text-size-adjust: 100%; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 18px;
}

body * { box-sizing: border-box; }

a { color: var(--accent-link); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.clear:after,
.post-content:after {
	clear: both;
	content: "";
	display: block;
}

.skip-link {
	position: absolute;
	left: -9999rem;
	top: 1.5rem;
	z-index: 999;
}
.skip-link:focus {
	left: 1.5rem;
	background: #fff;
	padding: .6rem 1rem;
}

/* Structure */

.sidebar {
	font-size: 0.71em;
	position: absolute;
	left: 0;
	top: 0;
	padding: 50px 40px;
	width: var(--sidebar-w);
	z-index: 2;
}

.sidebar:before {
	content: "";
	display: block;
	width: var(--sidebar-w);
	background: var(--sidebar);
	position: fixed;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 0;
}

.wrapper { display: block; margin-left: var(--sidebar-w); }

.content {
	width: 1200px;
	max-width: 86%;
	margin: 40px auto 50px;
}

.content.thin {
	width: 973px;
	margin-top: 50px;
}

/* Sidebar */

.blog-title { width: 200px; }

.blog-title a {
	display: inline-block;
	padding: 9px 13px;
	border: 3px solid #333;
	font-size: 17px;
	line-height: 150%;
	font-weight: 700;
	text-align: center;
	letter-spacing: 3px;
	color: #333;
	transition: all .3s ease-in-out;
}

.blog-title a:hover {
	background: #333;
	color: #fff;
}

.main-menu:before,
.widgets:before,
.widget + .widget:before,
.credits:before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: var(--line);
	margin: 35px 0;
}

.main-menu { list-style: none; margin: 0; }

.main-menu li {
	display: block;
	line-height: 1.25;
	margin-top: 12px;
	font-weight: 700;
	letter-spacing: 1px;
}

.main-menu > li:first-child { margin-top: 0; }
.main-menu a { color: var(--muted); }
.main-menu a:hover,
.main-menu .current_page_item > a { color: #333; }

.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	margin-left: 20px;
	padding: 12px;
	cursor: pointer;
}

.nav-toggle .bars {
	height: 10px;
	width: 15px;
	float: right;
	position: relative;
}

.nav-toggle .bar {
	width: 15px;
	height: 2px;
	background: var(--muted);
	position: absolute;
	left: 0;
	top: 0;
}
.nav-toggle .bar:nth-child(2) { top: 4px; }
.nav-toggle .bar:nth-child(3) { top: 8px; }

.nav-toggle p {
	font-size: 13px;
	line-height: 10px;
	font-weight: 700;
	color: var(--muted);
	float: right;
	margin-right: 8px;
}
.nav-toggle .close { display: none; }
.nav-toggle.active .menu { display: none; }
.nav-toggle.active .close { display: inline; }

.mobile-navigation { display: none; }

.widget-title {
	color: #333;
	font-weight: 700;
	margin-bottom: 15px;
	font-size: 1em;
}

.widget-content { color: #555; }

.wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: #333;
}

.wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
}

.wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 8px 10px;
	border: 1px solid #949494;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: #333;
}

.wp-block-search__input:focus { outline: 1px solid #333; }

.wp-block-search__button {
	flex: 0 0 auto;
	border: 0;
	background: var(--search-btn);
	color: #fff;
	padding: 0 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.aioseo-breadcrumbs {
	line-height: 1.6;
	color: #666;
	word-break: break-word;
}

.aioseo-breadcrumb a { color: #666; }
.aioseo-breadcrumb a:hover { color: #333; }
.aioseo-breadcrumb-separator {
	display: inline;
	margin: 0 .35em;
	color: #999;
}

.wp-block-latest-posts {
	list-style: none;
	margin: 0;
}

.wp-block-latest-posts li {
	padding: 8px 0;
	line-height: 1.45;
	border: 0;
}

.wp-block-latest-posts a {
	color: var(--accent-link);
	font-size: 1em;
}

.wp-block-latest-posts a:hover { text-decoration: underline; }

.credits p {
	color: var(--muted);
	line-height: 160%;
}

/* Masonry archive */

.posts { position: relative; }

.posts .post-container {
	width: 33.333%;
	padding: 10px;
}

.posts .post {
	background: #fff;
	padding: 16px;
}

.posts .featured-media { margin: 0; position: relative; }
.posts .featured-media img { width: 100%; height: auto; }

.posts .featured-media + .post-header { margin-top: 16px; }

.posts .post-title {
	font-size: 1.25em;
	line-height: 1.25;
	font-weight: 700;
	background: var(--accent);
	padding: 16px;
}

.posts .post-title a { color: #fff; }
.posts .post-title a:hover { color: #fff; opacity: .88; }

.post-excerpt {
	margin-top: 12px;
	font-size: 0.9em;
}

.post-excerpt p {
	line-height: 1.55;
	color: #333;
}

.page-title {
	margin: 0 10px 20px;
}

.archive-title {
	font-size: 1.4em;
	font-weight: 700;
}

.no-posts { margin: 20px 10px; color: var(--muted); }

.archive-nav {
	display: flex;
	justify-content: space-between;
	margin: 24px 10px 0;
	font-size: .85em;
	font-weight: 700;
}

.archive-nav a { color: #666; }
.archive-nav a:hover { color: #333; }

/* Single */

.post.single { background: #fff; }

.post.single .featured-media img { width: 100%; }

.post-inner {
	width: 620px;
	max-width: 85%;
	padding: 7.5% 0;
	margin: 0 auto;
}

.post.single .post-title {
	font-size: 2em;
	line-height: 1.25;
	font-weight: 700;
	margin-bottom: 40px;
	word-break: break-word;
}

.post-meta-bottom {
	margin-top: 40px;
	font-size: 0.85em;
	color: var(--muted);
}

.post-meta-bottom:before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: #ddd;
	margin-bottom: 18px;
}

.post-meta-bottom ul { list-style: none; }
.post-meta-bottom li {
	float: left;
	margin-right: 20px;
	line-height: 1.4;
}
.post-meta-bottom a { color: var(--muted); }
.post-meta-bottom a:hover { color: #666; }
.post-meta-bottom .post-tags a:before { content: "#"; }

.post-navigation {
	background: var(--bg);
	min-height: 2px;
}

.post-navigation a {
	display: block;
	width: 48.5%;
	height: 120px;
	margin-top: 3%;
	margin-bottom: 3%;
	background: #e2e2e2;
	position: relative;
}

.post-navigation .post-nav-prev { float: left; }
.post-navigation .post-nav-next { float: right; }

.post-navigation p {
	width: 100%;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 2px;
	color: #666;
	position: absolute;
	top: 50%;
	margin-top: -7px;
	left: 0;
}

.post-navigation a:hover { background: #333; }
.post-navigation a:hover p { color: #fff; }

/* Content */

.post-content { color: #333; }
.post-content a:hover { text-decoration: underline; }

.post-content p,
.post-content blockquote,
.post-content ul,
.post-content ol,
.post-content pre,
.post-content table {
	line-height: 1.7;
	margin-bottom: 1.1em;
}

.post-content > *:first-child { margin-top: 0; }
.post-content > *:last-child { margin-bottom: 0; }

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
	margin: 50px 0 25px;
	font-weight: 700;
	line-height: 1.35;
}

.post-content h1 { font-size: 2em; }
.post-content h2 { font-size: 1.8em; }
.post-content h3 { font-size: 1.6em; }
.post-content h4 { font-size: 1.4em; }
.post-content h5 { font-size: 1.2em; }
.post-content h6 { font-size: .9em; }

.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li { margin: .35em 0; }

.post-content blockquote {
	margin: 2em 0;
	padding: 0 0 0 1.2em;
	border-left: 3px solid var(--accent);
	color: #666;
	font-style: italic;
}

.post-content img { margin: 1em 0; }
.post-content figure { margin: 1.2em 0; }

.post-content table {
	width: 100%;
	border-collapse: collapse;
}
.post-content th,
.post-content td {
	border: 1px solid #ddd;
	padding: .5em .7em;
	text-align: left;
}

.post-content pre,
.post-content code {
	font-family: Menlo, Monaco, Consolas, monospace;
	background: #eee;
}
.post-content code { padding: 2px 5px; border-radius: 3px; }
.post-content pre { padding: 1em; overflow: auto; }

.post-content iframe,
.post-content video {
	max-width: 100%;
}

.post-content hr {
	width: 50%;
	height: 2px;
	border: 0;
	background: #ddd;
	margin: 2em auto;
}

/* Plugin hooks in sidebar footer of old theme no longer used */

.plugin-search,
.plugin-categories,
.plugin-tags,
.plugin-static-pages {
	margin-top: 1.5em;
}

/* Media queries */

@media (max-width: 1200px) {
	.posts .post-container { width: 50%; }
}

@media (max-width: 1000px) {
	.wrapper { margin-left: 0; }

	.sidebar {
		align-items: center;
		background: #fff;
		border-bottom: 1px solid #ddd;
		display: flex;
		justify-content: space-between;
		font-size: 1em;
		margin: 0;
		padding: 30px 5%;
		position: relative;
		width: 100%;
	}

	.sidebar:before { content: none; }

	.content,
	.content.thin {
		max-width: 90%;
		margin: 5% auto;
	}

	.main-menu,
	.widgets,
	.credits { display: none; }

	.nav-toggle { display: block; }

	.mobile-navigation {
		background: #fff;
		border-bottom: 1px solid #ddd;
		padding: 20px 5% 30px;
	}

	.mobile-menu { list-style: none; }
	.mobile-menu li { margin-top: 12px; font-weight: 700; }
	.mobile-menu a { color: var(--muted); }

	.posts .post-container { width: 50%; }
}

@media (max-width: 600px) {
	.sidebar { padding: 20px 5%; }

	.blog-title a {
		padding: 5px 7px;
		font-size: 16px;
		letter-spacing: 2px;
	}

	.posts .post-container {
		width: 100%;
		padding: 0;
	}

	.posts .post-container + .post-container { margin-top: 20px; }

	.post.single .post-inner { padding-top: 30px; }
	.post.single .post-title {
		font-size: 1.75em;
		margin-bottom: 20px;
	}

	.post-navigation a {
		width: 100%;
		float: none;
		height: 80px;
		margin: 8px 0;
	}
}
