/* custom */

/* header-nav */
@media only screen and (max-width: 820px) {
	.header-nav .nav-title {
		margin-left: inherit;
	}
	.header-nav .nav-links {
		margin-right: inherit;
	}
}
.nav-title {
	font-size: larger;
}

/* breadcrumb */
.breadcrumb {
	padding: 0;
	font-size: smaller;
	color: gray;
	width: 75%;
}
.breadcrumb a {
	text-decoration: none;
}
.breadcrumb ol {
	padding-inline-start: 0;
}
.breadcrumb li {
	display: inline;
	list-style: none;
}
.breadcrumb li:not(:last-child)::after {
	content: "/";
	padding: 0 0.5em;
	color: gray;
}
@media only screen and (max-width: 820px) {
	.breadcrumb {
		width: 100%;
	}
}

/* .post-title .post-link */
@media only screen and (max-width: 820px) {
	.post-title .post-link {
		width: inherit;
	}
}

/* post date */
.post-date {
	font-size: smaller;
}
.update {
	margin-left: 1em;
}

/* post taxonomy */
.post-taxonomies {
	display: flex;
	gap: 10px;
	color: gray;
	margin-top: -0.5em;
	font-size: smaller;
}
.post-taxonomies ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: center;
}
.post-taxonomies li {
	margin-left: 5px;
	margin-right: 5px;
}
.post-taxonomies li:last-child {
	margin-right: 0;
}
.post-taxonomies a {
	text-decoration: none;
}

/* content */
.post .post-content {
	line-height: 2;
	margin-top: 1em;
}
.post.container {
	padding: 0 1.5rem;
}
.post-content a {
	text-decoration: none;
}
@media only screen and (max-width: 820px) {
	.post.container {
		padding: 0;
	}
}

/* toc */
#toc {
	padding-right: 1em;
	top: 100px;
	padding-left: 35px;
}
#TableOfContents {
	ul {
		list-style: none;
		padding-left: 0;
	}
	li {
		padding-left: 1.2em;      /* マーカー文字分のスペース */
		text-indent: -1.2em;      /* マーカー文字を1行目だけ左に寄せる */
	}
}
.toc-label {
	margin-left: 1em;
}
.post-toc-content {
	display: flex;
	flex-direction: row-reverse;
}
.toc-toggle {
	appearance: none;
}
@media only screen and (max-width: 820px) {
	.post-toc-content {
		display: flex;
		flex-direction: column;
	}
    .post-toc {
		pointer-events: all;
        width: 100%;
        padding-left: 0;
    }
    #toc {
        position: static;
        padding: 1em;
        display: block;
		transition: max-height 0.3s ease, padding 0.3s ease;
		max-height: 25px;
		border: 1px solid gainsboro;
		border-radius: 12px;
		overflow: hidden;
    }
	input:checked + #toc{
		max-height: 500px;
		padding: 1em;
	}
	#toc li{
		padding: 0 8px;
		line-height: 0;
		opacity: 0;
		transition: all 0.3s ease;
	}
	input:checked + #toc li{
		line-height: 1.5;
		opacity: 1;
	}
	.toc-label {
		display: block;
		margin: initial;
	}
	label, input[type='checkbox'] {
		cursor: pointer;
	}
}

/* page_navi_link */
.prev-next {
	padding-bottom: 3em
}
.prev-post, .next-post {
	max-width: inherit;
	font-size: smaller;
}
.prev-post a, .next-post a {
	text-decoration: none;
}
.prev-post-date, .next-post-date {
	line-height: 0.3rem;
}

/* footer */
.footer a {
	text-decoration: none;
}

/* back to top button */
@media screen and (max-width: 600px) {
	#btt-button {
		visibility: inherit;
	}
}

/* taxonomy */
.post-taxos {
	list-style-type: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.post-taxo {
	margin-right: 1rem;
}
@media only screen and (max-width: 820px) {
	.post-taxo {
		margin-right: 0.7rem;
	}
}
.post-taxo a {
	padding: 6px 0 6px 6px;
	text-decoration: none;
}

/* post-summary */
.post-summary {
	margin-left: 3rem;
}
.readmore {
	text-align: right;
}

/* search */
#result {
	margin: 1rem 0;
}
#resultCount {
	margin: 0rem;
}
.search {
	width: 200px;
	padding: 5px 10px;
	font-size: inherit;
	border-radius: 5px;
	border: 1px solid #334156;
	background-color: whitesmoke;
}
.search:focus {
	outline: 0;
	border: 2px solid #2196f3;
}
.item {
	margin: 2rem 0;
}
.item_title {
	text-decoration: none;
}
.item_excerpt {
	margin-top: 0.5rem;
	margin-left: 1.5rem;
}
.item_excerpt b {
	color: red;
}

/* rakuten book info */
.bookinfo {
	font-size: 0.9em;
	margin: 1em 0;
	padding: 1em;
	border-radius: 12px;
	border: 1px solid gainsboro;
}
.bookele {
	font-size: 0.9em;
}
ul.booklist {
	list-style: none;
	margin-left: -1rem;
	word-break: break-all;
	line-height: 1.5rem;
}
blockquote.bookcite {
	margin-left: 1.4rem;
}
.bookcite-source {
	display: block;
	clear: both;
	font-size: small;
	text-align: right;
	margin-top: -0.5rem;
	a {
		text-decoration: none;
	}
}
.thumimg {
	max-width: 100%;
	height: auto;
	margin: 1rem 7px 0;
	float: right;
}
.bookinfo:after {
	display: block;
	content: '';
	clear: both;
}
@media screen and (max-width: 640px) {
	.bookinfo .thumimg {
	float: none;
	margin: 0.5rem;
	text-align: center;
	}
}

/* private contents */
.private {
	background-color: aliceblue;
	padding: 0.5em;
	margin-left: 2rem;
	border: solid 1px skyblue;
	border-radius: 5px;
	font-size: 0.9em;
}
.private::before {
	content: "Private メモ";
	display: block;
	font-weight: bolder;
}

/* if server, edit-path-info */
.edit-page {
	font-size: 0.7rem;
	text-align: right;
}
.editpath {
	font-size: 0.5rem;
	word-wrap: break-word;
}