@charset "utf-8";

/* ==========================================================================
   1. Modern Reset
   ========================================================================== */

*,
*::before,
*::after {box-sizing: border-box;margin: 0;padding: 0}
html {
	font-size: 62.5%;scroll-behavior: smooth;-webkit-text-size-adjust: 100%;
}
body {
	font-family: var(--typography-fontFamily-sans, "MFW-PA1GothicStd-Regular", "A P-OTF A1ゴシック Std R", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif);
	font-size: 1.6rem;line-height: var(--typography-lineHeight-body, 1.8);color: var(--color-text-primary, #111111);
	letter-spacing: var(--typography-letterSpacing-defaultEm, 0.05em);
	font-feature-settings: "pkna" 1;
	font-kerning: auto;
	font-weight: var(--typography-fontWeight-regular, 400);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: var(--color-bg-default, #fefefe);
}
h1, h2, h3, h4, h5, h6,
strong, b, th {
	font-family: var(--typography-fontFamily-bold, "MFW-PA1GothicStd-Bold", "A P-OTF A1ゴシック Std B", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif);
	font-weight: var(--typography-fontWeight-bold, 400);
}
ul,
ol {list-style: none}
a {color: inherit;text-decoration: none}
img {max-width: 100%;height: auto;vertical-align: bottom}
table {border-collapse: collapse}
::selection {
	background: var(--color-bg-brand, #A0CCD1);
	color: var(--color-text-onBrand, #ffffff);
}

/* ==========================================================================
   2. Layout
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

main {
	display: block;
}

/* -- Site Header -- */
.site-header {
	position: relative;
	z-index: 100;
}

.site-header .site-branding {
	padding: 20px 0;
}

.site-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.site-title a {
	color: var(--color-text-primary, #111111);
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2em;
}

.main-navigation a {
	display: block;
	padding: 0.5em 0;
	font-size: 1.4rem;
	font-weight: 500;
}

/* -- Site Footer -- */
.site-footer {
	text-align: center;
	font-size: 1.2rem;
	padding: 2em 0;
}

/* -- Main Area -- */
main.top {
	margin: 0;
}

main.entry {
	padding: 40px 0;
}

main.index {
	padding: 40px 0;
}

/* ==========================================================================
   3. Components — Lead Section (Front Page)
   ========================================================================== */

section.lead {
	max-width: 600px;
	margin: 0 auto 60px;
}

.back {
	background: var(--color-bg-muted, #f5f5f5);
	padding: 80px 0;
}

/* ==========================================================================
   4. Components — Aside (Categories Sidebar)
   ========================================================================== */

.aside {
	margin: 0 0 40px;
}

.aside ul.catelist {
	border-top: solid 1px var(--color-palette-black-pure, #000000);
}

.aside ul.catelist li {
	border-bottom: solid 1px var(--color-palette-black-pure, #000000);
}

.aside ul.catelist li a {
	font-size: 1.6rem;
	font-weight: 700;
	display: block;
	padding: 0.6em 2em 0.6em 0;
	position: relative;
	transition: opacity 0.2s;
}

.aside ul.catelist li a:hover {
	opacity: 0.6;
}

.aside ul.catelist li a::after {
	content: "";
	width: 11px;
	height: 11px;
	position: absolute;
	top: 50%;
	right: 0.3em;
	transform: translateY(-50%);
	/* Replace with your arrow icon */
	/* background: url(../images/icon/arrow01.svg) no-repeat center / 100%; */
	border-right: 2px solid var(--color-border-strong, #111111);
	border-bottom: 2px solid var(--color-border-strong, #111111);
	width: 8px;
	height: 8px;
	transform: translateY(-50%) rotate(-45deg);
}

/* ==========================================================================
   5. Components — Post List
   ========================================================================== */

.list article {
	padding: 0 0 40px;
}

.list article a {
	display: block;
	overflow: hidden;
}

.list article .head {
	width: 100%;
	margin: 0 0 10px;
	font-size: 1.2rem;
	line-height: 1;
	letter-spacing: 0;
}

.list article span.cate {
	display: inline-block;
	border-radius: 2px;
	background: var(--color-palette-gray-700, #333333);
	padding: 0.3em 1em;
	margin: 0 1em 0 0;
	color: var(--color-text-onBrand, #ffffff);
	font-size: 1.2rem;
}

.list article span.date {
	color: var(--color-text-muted, #666666);
	font-size: 1.2rem;
}

.list article .img {
	width: 100%;
	border-radius: 3px;
	overflow: hidden;
	margin: 0 0 10px;
}

.list article .img img {
	border-radius: 3px;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.list article .text {
	width: 100%;
}

.list article p.title {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

/* -- "More" link -- */
.list .more {
	text-align: center;
	margin: 20px 0 0;
}

.list .more a {
	display: inline-block;
	font-size: 1.4rem;
	font-weight: 500;
	padding: 0.8em 3em;
	border: 1px solid var(--color-border-strong, #111111);
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.list .more a:hover {
	background: var(--color-bg-brand, #A0CCD1);
	color: var(--color-text-onBrand, #ffffff);
}

/* ==========================================================================
   6. Components — Breadcrumb
   ========================================================================== */

.breadcrumb {
	padding: 0 0 20px;
	font-size: 1.2rem;
	letter-spacing: 0;
	line-height: 1.4;
}

.breadcrumb ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.breadcrumb ul li {
	padding: 0 0 0 2em;
	position: relative;
}

.breadcrumb ul li::before {
	content: ">";
	position: absolute;
	top: 0;
	left: 0.8em;
	color: var(--color-palette-gray-500, #999999);
}

.breadcrumb ul li:first-child::before {
	display: none;
}

.breadcrumb ul li:first-child {
	padding: 0;
}

/* ==========================================================================
   7. Components — Entry (Single Post)
   ========================================================================== */

main.entry .entry-header {
	margin: 0 0 20px;
}

main.entry .entry-title {
	font-size: 2.8rem;
	font-weight: 900;
	line-height: 1.33;
	margin: 0 0 8px;
}

main.entry .entry-meta time {
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
	display: block;
	margin: 0 0 20px;
	color: var(--color-text-muted, #666666);
}

main.entry .entry-thumbnail {
	margin: 0 0 30px;
}

main.entry .entry-thumbnail img {
	border-radius: 6px;
}

/* -- Social Buttons -- */
ul.social_button {
	margin: 20px 0 40px;
	display: flex;
	gap: 1em;
}

ul.social_button li {
	font-size: 1.2rem;
}

ul.social_button li a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.4em 1em;
	border: 1px solid var(--color-palette-gray-300, #dddddd);
	border-radius: 4px;
	transition: background 0.2s;
}

ul.social_button li a:hover {
	background: var(--color-bg-muted, #f5f5f5);
}

/* -- Related Posts -- */
.related {
	margin: 80px 0;
}

.related > span.title {
	font-size: 2rem;
	font-weight: 700;
	display: block;
	margin: 0 0 20px;
}

/* -- Tags -- */
main.entry ul.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 40px;
}

main.entry ul.tags a {
	display: block;
	background: var(--color-palette-gray-200, #ebebeb);
	border-radius: 2px;
	padding: 8px 14px;
	color: var(--color-text-primary, #111111);
	font-weight: 400;
	font-size: 1.2rem;
	transition: background 0.2s;
}

main.entry ul.tags a:hover {
	background: var(--color-palette-gray-300, #dddddd);
}

main.entry ul.tags a::before {
	content: "#";
}

/* ==========================================================================
   8. Entry Content (Post Body)
   ========================================================================== */

.entry-content {
	max-width: 660px;
	margin: 0 auto;
}

/* -- Headings -- */
.entry-content h2 {
	font-size: 2.4rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--color-text-onBrand, #ffffff);
	margin: 60px 0 24px;
	padding: 12px 20px;
	background: var(--color-text-primary, #111111);
	border-radius: 8px;
}

.entry-content h3 {
	font-size: 2rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 50px 0 20px;
	padding: 0 0 6px;
	position: relative;
}

.entry-content h3::before {
	content: "";
	width: 100%;
	height: 3px;
	background: var(--color-text-primary, #111111);
	position: absolute;
	bottom: 0;
	left: 0;
}

.entry-content h4 {
	font-size: 1.8rem;
	line-height: 1.3;
	font-weight: 700;
	margin: 40px 0 20px;
	padding: 0 0 0 12px;
	position: relative;
}

.entry-content h4::before {
	content: "";
	width: 2px;
	height: 100%;
	background: var(--color-text-primary, #111111);
	position: absolute;
	top: 0;
	left: 0;
}

/* -- Paragraphs -- */
.entry-content p {
	font-size: 1.6rem;
	line-height: 2;
	margin: 0 0 24px;
}

.entry-content strong {
	font-weight: 700;
}

.entry-content em {
	font-style: italic;
}

/* -- Links -- */
.entry-content a {
	color: var(--color-link-default, #0070c9);
	text-decoration: underline;
	transition: color 0.2s;
}

.entry-content a:hover {
	color: var(--color-link-hover, #005999);
}

/* -- Marker -- */
.entry-content mark {
	background: linear-gradient(transparent 60%, var(--color-highlight-marker, #BAFFED) 60%);
	padding: 0.05em 0.2em;
}

/* -- Images -- */
.entry-content figure.wp-block-image {
	margin: 0 0 30px;
}

.entry-content figure.wp-block-image figcaption {
	font-size: 1.2rem;
	padding: 0.5em;
	background: var(--color-palette-gray-50, #fafafa);
	margin: 0;
	color: var(--color-text-muted, #666666);
}

/* -- Lists -- */
.entry-content ol,
.entry-content ul {
	list-style: none;
	margin: 0 0 30px;
}

.entry-content ol ol,
.entry-content ul ul {
	margin: 12px 0;
}

.entry-content li {
	font-size: 1.4rem;
	line-height: 1.6;
	position: relative;
	padding: 0 0 0 1.4em;
	margin: 0 0 12px;
}

.entry-content ul > li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-palette-gray-400, #cccccc);
	position: absolute;
	left: 0;
	top: 0.45em;
}

.entry-content ol {
	counter-reset: ol-counter;
}

.entry-content ol > li::before {
	text-align: center;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	font-size: 1rem;
	color: var(--color-text-onBrand, #ffffff);
	background: var(--color-text-primary, #111111);
	border-radius: 50%;
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 1.4em;
	height: 1.4em;
	display: flex;
	align-items: center;
	justify-content: center;
	counter-increment: ol-counter;
	content: counter(ol-counter);
}

/* -- iframe -- */
.entry-content iframe {
	max-width: 100%;
	margin: 0 0 30px;
}

/* -- Table -- */
.entry-content figure.wp-block-table {
	margin: 0 0 30px;
}

.entry-content table {
	border: none;
	width: 100%;
	line-height: 1.4;
	font-size: 1.4rem;
	border-collapse: collapse;
	vertical-align: middle;
}

.entry-content table td,
.entry-content table th {
	border: solid 4px var(--color-palette-white, #ffffff);
	padding: 16px;
	background: var(--color-palette-table-cell, #F7F7F7);
	font-weight: 500;
}

.entry-content figure.wp-block-table table {
	margin: 0;
}

.entry-content figure.wp-block-table table tr td:nth-of-type(1),
.entry-content figure.wp-block-table table th {
	background: var(--color-palette-table-header, #F0F0E9);
	font-weight: 700;
}

.entry-content figure.wp-block-table table thead + tbody tr td:nth-of-type(1) {
	background: var(--color-palette-table-cell, #F7F7F7);
	font-weight: 500;
}

/* -- Link Button -- */
.entry-content .linkBtn {
	margin: 0 0 30px;
}

.entry-content .linkBtn a {
	display: block;
	position: relative;
	background: var(--color-text-primary, #111111);
	border-radius: 6px;
	font-size: 1.4rem;
	line-height: 1;
	padding: 16px 50px 16px 20px;
	color: var(--color-text-onBrand, #ffffff);
	text-decoration: none;
	font-weight: 700;
	transition: opacity 0.2s;
}

.entry-content .linkBtn a:hover {
	opacity: 0.8;
}

.entry-content .linkBtn a::after {
	content: "→";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/* ==========================================================================
   9. Components — Search
   ========================================================================== */

.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	padding: 10px 16px;
	font-size: 1.4rem;
	border: 1px solid var(--color-palette-gray-300, #dddddd);
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s;
}

.search-form .search-field:focus {
	border-color: var(--color-border-focus, #A0CCD1);
}

.search-form .search-submit {
	padding: 10px 20px;
	font-size: 1.4rem;
	font-weight: 600;
	background: var(--color-bg-brand, #A0CCD1);
	color: var(--color-text-onBrand, #ffffff);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.search-form .search-submit:hover {
	opacity: 0.8;
}

.search-form-container {
	padding: 40px 20px;
	text-align: center;
}

.search-form-container .search-form {
	margin: 0 auto;
}

/* ==========================================================================
   10. Components — Pagination
   ========================================================================== */

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 40px 0;
	font-size: 1.4rem;
}

.pagination .page-numbers,
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid var(--color-palette-gray-300, #dddddd);
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
	background: var(--color-bg-brand, #A0CCD1);
	color: var(--color-text-onBrand, #ffffff);
	border-color: var(--color-bg-brand, #A0CCD1);
}

.pagination .page-numbers:hover:not(.current),
.nav-links .page-numbers:hover:not(.current) {
	background: var(--color-bg-muted, #f5f5f5);
}

/* ==========================================================================
   11. Components — 404 / Not Found
   ========================================================================== */

.notfound {
	text-align: center;
	padding: 80px 20px;
}

.notfound .page-title {
	font-size: 3rem;
	font-weight: 900;
	margin: 0 0 20px;
}

.notfound .page-content p {
	font-size: 1.6rem;
	line-height: 1.8;
	color: var(--color-text-muted, #666666);
}

/* ==========================================================================
   12. Utilities
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   13. Responsive — Desktop (768px+)
   ========================================================================== */

@media (min-width: 768px) {
	.wrap {
		padding: 0 50px;
		display: flex;
		flex-wrap: wrap;
	}

	.wrap .aside {
		width: 260px;
		flex-shrink: 0;
		margin: 0 40px 0 0;
	}

	.wrap section.list,
	main.entry section {
		flex: 1;
		min-width: 0;
	}

	section.lead {
		margin: 0 auto 120px;
	}

	.back {
		padding: 120px 0;
	}

	.list article .img {
		width: 240px;
		float: left;
		margin: 0 20px 0 0;
	}

	.list article .text {
		overflow: hidden;
	}

	main.entry .entry-title {
		font-size: 3.2rem;
	}

	ul.social_button {
		justify-content: flex-end;
	}
}
