@charset "UTF-8";

.breadcrumb {
	margin-top: 5px;
	margin-left: 3%;
	position: static
}

.title-container {
	width: 100%;
	max-height: 380px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative
}

.title-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block
}

h1 {
	font-size: 2em;
	line-height: 1.3;
	margin-bottom: 0.5em;
	font-weight: bold;
	letter-spacing: -.01em;
	text-align: center
}

.title-container h1 {
	position: absolute;
	bottom: 15px;
	left: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	text-align: left;
	margin: 0;
	text-shadow: 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color), 0px 0px 3px var(--main-color)
}

@media all and (max-width: 600px) {
	.title-container h1 {
		display: none
	}
}

@media not all and (max-width: 600px) {
	.content h1 {
		display: none
	}
}

h6 {
	margin-bottom: var(--dynamic-margin-large);
	font-weight: normal;
	color: var(--white)
}

h6 a {
	color: var(--white)
}

h6 .label {
	background: var(--bg2);
	padding: 2px 6px;
	border-radius: 15px;
	cursor: pointer;
	text-decoration: none;
	margin-right: 1px
}

h6 i {
	margin-right: 3px;
	font-size: 1.1em
}

#blog {
	display: flex;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 20px
}

@media (max-width: 768px) {
	#blog {
		flex-direction: column
	}
}

@media (max-width: 450px) {
	#blog {
		padding: 15px 5px
	}
}

/*--------------------------------------------
	ブログ本文 Section
	main画像の比率は5対3
--------------------------------------------*/
.content {
	flex: 1;
	padding: 20px;
	text-align: left
}

.content article {
	margin-bottom: var(--dynamic-margin-verylarge)
}

.content article p {
	line-height: 2;
	margin-bottom: var(--dynamic-margin-small)
}

.content article p span {
	display: block;
	margin-bottom: var(--dynamic-margin-small)
}

.content article img {
	display: block;
	margin: 0 auto;
	width: 85%;
	height: auto;
	padding: var(--dynamic-margin-small) 0;
	opacity: 0;
	transform: translateY(11px);
	transition: opacity 1s ease, transform 1s ease
}

.content article img.mini {
	width: 50%
}

.content article img.active {
	opacity: 1;
	transform: translateY(0)
}

.content a {
	color: var(--text-color);
	text-decoration-color: var(--muted-2)
}

.content li {
	margin-bottom: 5px;
}

.content ul {
	padding-left: 1.5em;
	margin-bottom: var(--dynamic-margin-small);
	list-style-position: outside
}

.content table {
	border-collapse: collapse;
	margin: 0 auto var(--dynamic-margin-small);
	width: 100%;
	max-width: 550px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	table-layout: fixed
}

.content table.v2 {
	border-collapse: collapse;
	table-layout: auto !important;
	table-layout: fixed;
	word-break: break-word;
	white-space: normal
}

.content .v2 th,
.content .v2 td {
	padding-left: .5em;
	text-align: left
}

.content th,
.content td {
	border: 1px solid var(--muted-2);
	padding: 10px 0;
	text-align: center;
	color: var(--text-dark);
	background-color: var(--white)
}

.content thead th {
	background-color: var(--bg2);
	color: var(--text-color)
}

.content tbody th[scope="row"] {
	background-color: var(--bg2);
	color: var(--text-color);
	white-space: nowrap
}

@media (max-width: 768px) {
	.content article img {
		width: 100%
	}

	.content article p {
		line-height: 1.8
	}
}

/*--------------------------------------------
	プロフィール Section
	プロフィールやほしいも当の宣伝も
--------------------------------------------*/
.myprofile {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: var(--dynamic-margin) auto;
	padding: 0 20px;
	max-width: 800px
}

.myprofile .pic {
	width: 150px;
	text-align: center;
	font-size: 1.2em;
	margin-bottom: 20px;
	text-decoration: none;
	color: inherit
}

.myprofile .pic img {
	border-radius: 50%;
	display: block;
	margin-bottom: 10px;
	width: 100%;
	height: auto
}

.myprofile .word {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.1em;
	line-height: 1.5;
	padding-left: 40px;
	width: calc(100% - 150px)
}

.myprofile .word p {
	position: relative;
	padding-top: 15px;
	padding-left: 15px
}

.myprofile .word p::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--text-color);
	width: 25px;
	height: 1px
}

.myprofile .word p::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--text-color);
	width: 1px;
	height: 25px
}

.myprofile .word span {
	position: relative;
	display: block;
	padding-right: 15px;
	padding-bottom: 15px
}

.myprofile .word span::before {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	right: 0;
	background-color: var(--text-color);
	width: 25px;
	height: 1px
}

.myprofile .word span::after {
	content: "";
	display: block;
	position: absolute;
	bottom: 0;
	right: 0;
	background-color: var(--text-color);
	width: 1px;
	height: 25px
}

@media (max-width: 700px) {
	.myprofile .word {
		padding: 0;
		margin-bottom: 20px;
		width: 100%
	}

	.myprofile .pic {
		margin: 0 auto
	}
}

.myprofile .please-present,
.myprofile .follow-x {
	width: 50%;
	display: flex;
	justify-content: center;
	margin-top: 20px
}

.myprofile .want-btn,
.myprofile .x-btn {
	display: flex;
	align-items: center;
	width: 170px;
	height: 70px;
	padding: 7px;
	border: 1px solid var(--bg2);
	border-radius: 5px;
	background-color: var(--white);
	text-decoration: none;
	color: var(--main-color)
}

.myprofile .want-btn svg,
.myprofile .x-btn svg {
	width: 50px;
	height: 50px;
	margin-right: 5px
}

@media (max-width: 480px) {

	.myprofile .please-present,
	.myprofile .follow-x {
		width: 100%
	}
}

.myprofile .follow-x .x-btn i,
.myprofile .please-present .want-btn i {
	display: inline-block;
	transition: transform 0.3s ease
}

.myprofile .follow-x .x-btn:hover i,
.myprofile .please-present .want-btn:hover i {
	transform: translateX(10px)
}

.myprofile .follow-x .x-btn:hover,
.myprofile .please-present .want-btn:hover {
	background-color: var(--muted-2)
}

/*--------------------------------------------
	過去の記事 Section
	最近の記事や過去の記事を紹介
--------------------------------------------*/
.sidebar {
	flex: 0 0 30%;
	padding: 20px;
	border-left: 1px solid var(--white);
	margin: 0;
	position: sticky;
	top: 65px;
	align-self: flex-start;
	max-height: calc(100vh - 65px);
	overflow-y: auto
}

.sidebar h3 {
	margin-bottom: 10px
}

/* 最近の記事 */
.recent-posts ul {
	list-style: none;
	padding: 0;
	text-align: center
}

.recent-posts li {
	display: flex;
	align-items: center;
	text-align: left;
	margin-bottom: 10px
}

.recent-posts img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	margin-right: 3px
}

.recent-posts a {
	text-decoration: none;
	color: var(--text-color)
}

.recent-posts a:hover {
	text-decoration: underline
}

/* 過去の記事 */
.nested-menu {
	margin: 0;
	padding: 0;
	width: 100%;
	text-align: left
}

.nested-menu ul {
	list-style: none;
	padding-left: 0
}

.nested-menu label {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1px
}

.nested-menu .submenu {
	display: none;
	padding-left: 20px
}

.nested-menu input[type="checkbox"] {
	display: none
}

.nested-menu input[type="checkbox"]:checked+label+.submenu {
	display: block
}

.nested-menu label:hover {
	color: var(--white)
}

.nested-menu a {
	color: var(--text-color);
	text-decoration: none;
	display: inline-block;
	width: calc(100vw - 100px);
	max-width: 230px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.nested-menu a:hover {
	text-decoration: underline
}

.nested-menu .arrow {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	background-color: currentColor;
	mask: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>') no-repeat center;
	mask-size: contain;
	margin-right: 60px;
	transition: transform 0.3s ease
}

.nested-menu input[type="checkbox"]:checked+label .arrow {
	transform: rotate(450deg)
}

@media (max-width: 768px) {
	.sidebar {
		border-left: none;
		margin: 0;
		position: static;
		top: auto;
		align-self: auto;
		max-height: none;
		overflow-y: visible;
		border-top: 1px solid var(--white)
	}

	.content,
	.sidebar {
		min-width: 100%
	}

	nav.nested-menu {
		width: 90%
	}

	.nested-menu a {
		max-width: none;
		min-width: 260px;
	}
}

/*--------------------------------------------
	プログラムコード
	プログラムコードを表示
--------------------------------------------*/
.code {
	text-align: left;
	position: relative;
	background: #000000;
	color: var(--text-color);
	padding: 15px;
	border-radius: 8px;
	width: calc(70vw - 90px);
	/*.sidebarの幅がが30%+20px*2なので、*/
	overflow: auto;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin: var(--dynamic-margin-small) auto
}

@media (max-width: 768px) {
	.code {
		width: calc(100vw - 80px)
	}
}

.code .copy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	color: #ccc;
	cursor: pointer
}

.code .copy-btn:hover {
	color: var(--text-color)
}

.code pre {
	margin: 0;
	white-space: pre;
	overflow-x: auto;
	padding-bottom: 0.5em
}

.code .copy-success {
	position: absolute;
	top: 40px;
	right: 10px;
	background: var(--main-color);
	color: var(--text-color);
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	display: none
}

.code .filename {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background: #1e1e1e;
	color: #ccc;
	padding: 6px 12px;
	font-size: 14px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	transform: translateY(-100%);
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
}

.code:hover .filename {
	transform: translateY(0);
	opacity: 1
}