@charset "utf-8";

/*
Theme Name: MyTheme
Author: Yousuke
Description: original my theme
Version： 1.0.0
*/

body {
	background-color: #FFF;
	color: #000;
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	font-size: 18px;
	padding: 0;
	margin: 0;
}

a {
	color: blue;
}

h1 {
	margin-block: 0.67em;
	font-size: 2em;
}

header,
footer {
	padding: 5px;
}

#header-top {
	display: flex;
	align-items: center;
}

#site-logo {
	width: 64px;
	height: 64px;
	margin-left: 15px;
}

#site-title a {
	color: #1f6b53;
	margin-left: 15px;
	font-size: 1em;
	text-decoration: none;
}

#header-navi {
	width: 100%;
	background: #1f6b53;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#header-navi ul {
	display: flex;
	margin: 0 auto;
	padding: 0;
	max-width: 900px;
	width: 100%;
}

#header-navi li {
	flex: 1;
	list-style: none;
}

#header-navi li a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px 0;
	color: #FFF;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

#header-navi li a:hover {
	background: #41cba0;
}

/* 検索フォーム */
.search-form-container {
	padding: 10px 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.search-form-container form {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.search-form-container input[type="search"] {
	width: 250px;
	padding: 8px;
	background: #FFF;
	border: 1px solid #1f6b53;
	border-radius: 3px;
	color: #000;
	font-size: 18px;
	margin-top: 0px;
}

.search-form-container input[type="search"]:focus {
	outline: none;
	border: 2px solid #1f6b53;
}

.search-form-container input[type="search"]::placeholder {
	color: #444;
}

.search-form-container button[type="submit"],
.search-form-container input[type="submit"] {
	width: 60px;
	padding: 6px;
	background: #1f6b53;
	border: 1px solid #1f6b53;
	border-radius: 3px;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s;
}

.search-form-container button[type="submit"]:hover,
.search-form-container input[type="submit"]:hover {
	background: #42c299;
	color: #fff;
	border-color: #48ae8e;
}

main {
	max-width: 900px;
	padding: 20px;
	margin: 0 auto;
	background: linear-gradient(to right, #FFF, #FFF);
}

.article-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 20px 0;
	gap: 20px;
}

.article-item {
	width: 400px;
	height: 300px;
	max-width: 100%;
	text-align: left;
	transition: 0.5s;
}


.article-item a:hover {
	color: #00f;
}

.article-item a {
	color: #007bff;
}

.article-item img {
	max-width: 100%;
	height: auto;
}

.article-item h2 {
	font-size: 16px;
	margin: 0;
	padding: 0 0 5px 5px;
}

.article-item .text-wrap {
	display: flex;
	align-items: center;
	padding: 0 10px;
}

.article-main h2 {
	font-size: 22px;
	color: green;
	border-bottom: 1px solid green;
	padding-bottom: 5px;
}

.article-info .article-cat {
	display: flex;
	align-items: center;
}

.article-info .article-cat a {
	padding: 5px;
	margin-top: 5px;
}

.article-author {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	text-align: right;
}

.article-date {
	display: flex;
	align-items: center;
}

.article-author svg,
time svg {
	margin: -3px 5px 0 0;
}

figure {
	margin: 0 10px;
}

figure img {
	max-width: 100%;
	height: auto;
}

figcaption {
	font-size: 14px;
	text-align: right;
	margin-right: 5px;
	color: #333;
}

footer .copyright {
	text-align: center;
}

pre {
	font-family: 'Courier New', monospace;
	background: #000;
	color: #FFF;
	padding: 10px;
	white-space: pre;
}

p code {
	font-weight: bold;
	margin: 0 6px;
}

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background-color: #1a1a1a;
	color: #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

table th,
table td {
	padding: 12px 15px;
	border: 1px solid #333;
	text-align: left;
	vertical-align: middle;
}

table th {
	background-color: #2c2c2c;
	font-weight: bold;
	color: #f0f0f0;
	text-transform: uppercase;
}

/* コメントジャンプボタン */
.comment-jump-button {
	text-align: center;
	margin: 30px 0;
}

.btn-jump-to-comments {
	display: inline-block;
	padding: 12px 30px;
	background-color: #1f6b53;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-jump-to-comments:hover {
	background-color: #41cba0;
	color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

html {
	scroll-behavior: smooth;
}

/* 関連アイテム */
.related-posts {
	padding: 15px;
	margin: 20px 0;
}

.related-posts ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.related-posts ul li {
	margin-bottom: 10px;
}

.related-posts ul li a {
	display: flex;
	text-decoration: none;
	color: #FFF;
	background-color: #1e5f4a;
	padding: 12px 15px;
	border-radius: 8px;
	transition: background-color 0.3s;

}

.related-posts ul li a:hover,
.related-posts ul li a:active {
	background-color: #1f6b53;
}

.pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.pagination ul.page-numbers li {
	margin: 0 5px;
	/* ボタン間のスペース */
}

.pagination ul.page-numbers a,
.pagination ul.page-numbers span {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 5px;
	text-decoration: none;
	color: #333;
	font-size: 16px;
	border: 1px solid #ddd;
	background-color: #fff;
}

.pagination ul.page-numbers a:hover {
	background-color: #eee;
}

.pagination ul.page-numbers .current {
	background-color: #007bff;
	color: #fff;
	border-color: #007bff;
}

.pagination ul.page-numbers .next i.material-symbols-outlined {
	font-size: 20px;
}

.pagination ul.page-numbers .dots {
	color: #333;
	border: none;
	background-color: transparent;
}


.adsense {
	width: 100%;
	min-height: 280px;
	text-align: center;
	margin: 30px auto;
}

.wp-post-image {
	width: 100%;
	max-width: 800px;
	height: auto;
	display: block;
	margin: 0 auto;
}


/* 目次 */
.table-of-contents {
	background-color: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin: 30px 0;
}

.table-of-contents .toc-title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin: 0 0 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
	text-align: center;
}

.table-of-contents ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.table-of-contents ul li {
	margin-bottom: 10px;
}

.table-of-contents ul li:last-child {
	margin-bottom: 0;
}

.table-of-contents ul li a {
	display: block;
	color: #333;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.3s ease;
	background-color: #fff;
}

.table-of-contents ul li a:hover {
	background-color: #e9e9e9;
	color: #000;
	padding-left: 20px;
	border-left: 3px solid #0693e3;
}

/* コメント */
.comments-area {
	padding: 20px;
}

.comments-title {
	font-size: 22px;
	font-weight: bold;
	border-bottom: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 30px;
	color: #333;
}


.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment-list li {
	margin-bottom: 25px;
	list-style: none;
}

.comment-list .children {
	list-style: none;
	margin-left: 50px;
	margin-top: 20px;
	padding: 0;
	border-left: 3px solid #1f6b53;
	padding-left: 20px;
}

.comment-body {
	position: relative;
	padding: 20px;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	transition: box-shadow 0.3s ease;
}

.comment-body:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 15px;
}

.comment-author img.avatar {
	border-radius: 4px;
	background-color: #d0d0d0;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 2px solid #e0e0e0;
}

.comment-meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	flex: 1;
}

.comment-meta cite.fn {
	font-style: normal;
	font-weight: bold;
	font-size: 17px;
	color: #1f6b53;
}

.comment-metadata {
	font-size: 13px;
	color: #666;
}

.comment-content {
	padding-left: 75px;
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.comment-content p {
	margin: 0 0 10px 0;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

/* 返信ボタン */
.reply {
	text-align: right;
	margin-top: 15px;
}

.comment-reply-link {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid #1f6b53;
	background-color: #fff;
	color: #1f6b53;
	text-decoration: none;
	font-size: 14px;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.comment-reply-link:hover {
	background-color: #1f6b53;
	color: #fff;
}

/* フォーム周りの調整 */
.comment-respond {
	margin-top: 40px;
	background: #f9f9f9;
	padding: 30px;
}

.comment-reply-title {
	font-size: 18px;
	margin-bottom: 20px;
}

.comment-form-author,
.comment-form-comment {
	margin-bottom: 20px;
}

.comment-form-author label,
.comment-form-comment label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.comment-form input[type="text"],
.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

.form-submit {
	text-align: center;
}

.submit {
	background-color: #333;
	color: #fff;
	border: none;
	padding: 10px 40px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.submit:hover {
	background-color: #555;
}

@media (max-width: 768px) {
	body {
		font-size: 18px;
	}

	main {
		padding: 10px;
	}
}