/*
Theme Name: SkincareLab
Theme URI: https://skincarelab-30.com/
Author: メンズスキンケアLAB
Author URI: https://skincarelab-30.com/
Description: メンズスキンケアLAB 用のオリジナルクラシックテーマ。清潔・ミニマル・男性的なデザイン。ビルド工程なしの素のPHP+CSS+Vanilla JS。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skincarelab
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
	--c-base: #ffffff;
	--c-bg-sub: #f5f7f8;
	--c-text: #1a2430;
	--c-navy: #16324f;
	--c-teal: #1f8a8a;
	--c-teal-dark: #176d6d;
	--c-border: #e2e8ec;
	--c-muted: #5b6b78;
	--radius: 8px;
	--shadow: 0 1px 3px rgba(0, 0, 0, .08);
	--content-width: 760px;
	--wide-width: 1080px;
	--font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* =========================================================
   Reset / base
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font);
	color: var(--c-text);
	background: var(--c-base);
	line-height: 1.7;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--c-teal);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	color: var(--c-navy);
	line-height: 1.4;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--c-navy);
	color: #fff;
	padding: 10px 16px;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	text-decoration: none;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.container--wide {
	max-width: var(--wide-width);
}

.site-main {
	padding-block: 40px 64px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: var(--c-base);
	border-bottom: 1px solid var(--c-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	max-width: var(--wide-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.site-branding {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

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

.site-title a {
	color: var(--c-navy);
	text-decoration: none;
}

.site-description {
	margin: 0;
	font-size: 12px;
	color: var(--c-muted);
	line-height: 1.2;
}

/* Primary nav */
.main-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	display: block;
	padding: 8px 12px;
	color: var(--c-text);
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--radius);
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--c-teal);
	background: var(--c-bg-sub);
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	cursor: pointer;
	color: var(--c-navy);
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
	transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bar::before {
	top: -6px;
}

.menu-toggle__bar::after {
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after {
	top: 0;
	transform: rotate(-45deg);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--c-navy);
	color: #cdd8e1;
	padding-block: 40px;
	margin-top: 64px;
}

.site-footer a {
	color: #cdd8e1;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #fff;
}

.footer-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin: 0 0 20px;
	padding: 0;
}

.footer-navigation a {
	font-size: 14px;
	text-decoration: none;
}

.site-footer__copyright {
	text-align: center;
	font-size: 13px;
	color: #9fb0bd;
	margin: 0;
}

/* =========================================================
   Cards / grid
   ========================================================= */
.section {
	margin-bottom: 56px;
}

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.section__title {
	font-size: 22px;
	margin: 0;
	position: relative;
	padding-left: 14px;
}

.section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	bottom: .15em;
	width: 5px;
	border-radius: 3px;
	background: var(--c-teal);
}

.section__more {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.card-grid--related {
	grid-template-columns: repeat(2, 1fr);
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--c-base);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* CSS-only colored band + initial on top of each card */
.card__band {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 64px;
	padding-inline: 18px;
	background: var(--c-navy);
	color: rgba(255, 255, 255, .9);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
}

.card__band::before {
	content: attr(data-initial);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-right: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	font-size: 16px;
	flex: none;
}

/* category-specific band colors */
.card__band--basic {
	background: var(--c-navy);
}

.card__band--concerns {
	background: #6b4a8a;
}

.card__band--items {
	background: var(--c-teal-dark);
}

.card__band--lifestyle {
	background: #4a6b8a;
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 18px;
}

.card__title {
	font-size: 16px;
	margin: 0 0 8px;
	line-height: 1.5;
}

.card__title a {
	color: var(--c-navy);
	text-decoration: none;
}

.card__title a:hover,
.card__title a:focus {
	color: var(--c-teal);
}

.card__excerpt {
	font-size: 13px;
	color: var(--c-muted);
	margin: 0 0 12px;
	line-height: 1.7;
}

.card__meta {
	margin-top: auto;
	font-size: 12px;
	color: var(--c-muted);
}

/* category badge */
.cat-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--c-teal);
	background: rgba(31, 138, 138, .1);
	padding: 3px 8px;
	border-radius: 999px;
	text-decoration: none;
}

a.cat-badge:hover,
a.cat-badge:focus {
	background: rgba(31, 138, 138, .18);
	text-decoration: none;
}

/* =========================================================
   Hero (front page)
   ========================================================= */
.hero {
	background: var(--c-navy);
	color: #fff;
	padding-block: 64px;
}

.hero__inner {
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: 20px;
	text-align: center;
}

.hero__title {
	color: #fff;
	font-size: 30px;
	margin: 0 0 12px;
}

.hero__tagline {
	font-size: 16px;
	color: #cdd8e1;
	margin: 0 0 28px;
}

.button {
	display: inline-block;
	background: var(--c-teal);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 28px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background .15s ease;
}

.button:hover,
.button:focus {
	background: var(--c-teal-dark);
	color: #fff;
	text-decoration: none;
}

/* category section list (front page) */
.cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-border);
}

.cat-list li {
	border-bottom: 1px solid var(--c-border);
}

.cat-list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 4px;
	color: var(--c-text);
	text-decoration: none;
}

.cat-list a:hover,
.cat-list a:focus {
	color: var(--c-teal);
}

.cat-list__title {
	font-weight: 600;
}

.cat-list__date {
	font-size: 12px;
	color: var(--c-muted);
	white-space: nowrap;
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb {
	font-size: 13px;
	color: var(--c-muted);
	margin-bottom: 20px;
}

.breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.breadcrumb li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
	content: "›";
	color: var(--c-border);
}

.breadcrumb a {
	color: var(--c-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus {
	color: var(--c-teal);
}

/* =========================================================
   Single / page
   ========================================================= */
.entry-header {
	margin-bottom: 28px;
}

.entry-header__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.entry-title {
	font-size: 28px;
	margin: 0 0 8px;
	line-height: 1.4;
}

.entry-dates {
	font-size: 13px;
	color: var(--c-muted);
}

.entry-dates time + time::before {
	content: " / ";
}

/* =========================================================
   Entry content typography
   ========================================================= */
.entry-content {
	font-size: 16px;
}

.entry-content > * {
	margin-block: 1.4em;
}

.entry-content p {
	line-height: 1.9;
	margin: 1.4em 0;
}

.entry-content h2 {
	font-size: 23px;
	margin: 2.5em 0 .8em;
	padding: 6px 0 10px 14px;
	border-bottom: 2px solid var(--c-border);
	border-left: 5px solid var(--c-teal);
	scroll-margin-top: 80px;
}

.entry-content h3 {
	font-size: 19px;
	margin: 2em 0 .6em;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--c-border);
	scroll-margin-top: 80px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	line-height: 1.9;
}

.entry-content li {
	margin: .4em 0;
}

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

.entry-content a {
	text-decoration: underline;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 12px 20px;
	border-left: 4px solid var(--c-teal);
	background: var(--c-bg-sub);
	color: var(--c-muted);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content blockquote p {
	margin: .6em 0;
}

/* Tables: full width, horizontal scroll on small screens */
.entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 14px;
	-webkit-overflow-scrolling: touch;
}

.entry-content table th,
.entry-content table td {
	border: 1px solid var(--c-border);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.entry-content table thead th,
.entry-content table tr:first-child th {
	background: var(--c-navy);
	color: #fff;
	font-weight: 700;
	border-color: var(--c-navy);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content code {
	background: var(--c-bg-sub);
	padding: .1em .4em;
	border-radius: 4px;
	font-size: .92em;
}

/* =========================================================
   Table of contents
   ========================================================= */
.toc {
	background: var(--c-bg-sub);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 1.5em 0 2.5em;
}

.toc__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--c-navy);
	margin: 0 0 10px;
}

.toc ol {
	margin: 0;
	padding-left: 1.4em;
	line-height: 1.7;
}

.toc ol ol {
	margin-top: .3em;
	padding-left: 1.2em;
	list-style: lower-roman;
}

.toc li {
	margin: .3em 0;
}

.toc a {
	color: var(--c-text);
	text-decoration: none;
}

.toc a:hover,
.toc a:focus {
	color: var(--c-teal);
	text-decoration: underline;
}

/* =========================================================
   Post navigation (prev / next)
   ========================================================= */
.post-navigation {
	margin: 48px 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-navigation .nav-link {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--c-navy);
	background: var(--c-base);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.post-navigation .nav-link:hover,
.post-navigation .nav-link:focus {
	border-color: var(--c-teal);
	box-shadow: var(--shadow);
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-label {
	display: block;
	font-size: 12px;
	color: var(--c-muted);
	margin-bottom: 4px;
}

.post-navigation .nav-text {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

/* =========================================================
   Related posts
   ========================================================= */
.related-posts {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--c-border);
}

/* =========================================================
   Archive / search list
   ========================================================= */
.page-header {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--c-border);
}

.page-title {
	font-size: 26px;
	margin: 0 0 8px;
}

.archive-description {
	color: var(--c-muted);
	margin: 0;
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-list__item {
	padding: 22px 0;
	border-bottom: 1px solid var(--c-border);
}

.post-list__item:first-child {
	padding-top: 0;
}

.post-list__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 12px;
	color: var(--c-muted);
}

.post-list__title {
	font-size: 19px;
	margin: 0 0 8px;
	line-height: 1.5;
}

.post-list__title a {
	color: var(--c-navy);
	text-decoration: none;
}

.post-list__title a:hover,
.post-list__title a:focus {
	color: var(--c-teal);
}

.post-list__excerpt {
	font-size: 14px;
	color: var(--c-muted);
	margin: 0;
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	color: var(--c-navy);
	text-decoration: none;
	font-size: 14px;
}

.pagination .page-numbers.current {
	background: var(--c-navy);
	color: #fff;
	border-color: var(--c-navy);
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus {
	border-color: var(--c-teal);
	color: var(--c-teal);
	text-decoration: none;
}

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

.search-form__field {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font-size: 15px;
	font-family: inherit;
	color: var(--c-text);
}

.search-form__field:focus {
	outline: 2px solid var(--c-teal);
	outline-offset: 1px;
	border-color: var(--c-teal);
}

.search-form__submit {
	flex: none;
	padding: 11px 20px;
	background: var(--c-teal);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.search-form__submit:hover,
.search-form__submit:focus {
	background: var(--c-teal-dark);
}

/* =========================================================
   404 / no results
   ========================================================= */
.error-404,
.no-results {
	text-align: center;
	padding-block: 24px;
}

.error-404__code {
	font-size: 64px;
	font-weight: 700;
	color: var(--c-navy);
	margin: 0;
	line-height: 1;
}

.error-404 .search-form,
.no-results .search-form {
	margin: 24px auto 0;
}

.error-404__links {
	margin-top: 28px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	body {
		font-size: 15px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--c-base);
		border-bottom: 1px solid var(--c-border);
		box-shadow: var(--shadow);
		display: none;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
	}

	.main-navigation a {
		padding: 12px 20px;
		border-radius: 0;
	}

	.card-grid,
	.card-grid--related {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-block: 44px;
	}

	.hero__title {
		font-size: 24px;
	}

	.entry-title {
		font-size: 23px;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.section__title {
		font-size: 20px;
	}
}
