/* Variables */
:root {
	--color-primary: #12395F;
	--color-primary-dark: #0B2743;
	--color-sub: #EEF3F9;
	--color-accent: #EA580C;
	--color-accent-hover: #F97316;
	--color-safe: #15803D;
	--color-alert: #B91C1C;
	--color-text: #111827;
	--color-text-muted: #4B5563;
	--color-border: #E5E7EB;
	--color-bg: #FFFFFF;
	--color-surface: #F8FAFC;
	--color-surface-strong: #E6EEF7;
	--font-heading: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--font-number: "Inter", "Helvetica Neue", Arial, sans-serif;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 32px;
	--space-6: 40px;
	--space-7: 48px;
	--space-8: 56px;
	--space-9: 64px;
	--space-10: 72px;
	--space-11: 80px;
	--space-12: 96px;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 24px;
	--shadow-sm: 0 5px 20px rgba(17, 24, 39, .08);
	--shadow: 0 12px 36px rgba(17, 24, 39, .12);
	--container: 1200px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.8;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--color-primary);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--color-accent);
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

.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;
}

/* Base */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0;
}

h1 {
	margin: 0 0 var(--space-4);
	font-size: 2rem;
}

h2 {
	font-size: 1.55rem;
}

h3 {
	font-size: 1.22rem;
}

p {
	margin-top: 0;
}

/* Layout */
.l-container {
	width: min(100% - 32px, var(--container));
	margin-inline: auto;
}

.l-main {
	min-height: 60vh;
}

.l-section {
	padding: var(--space-7) 0;
}

.l-section--sub {
	background: var(--color-sub);
}

.l-content-sidebar {
	display: grid;
	gap: var(--space-6);
	align-items: start;
}

.l-content {
	min-width: 0;
}

.l-sidebar {
	min-width: 0;
}

/* Header */
.l-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.l-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: var(--space-3);
}

.l-site-header__site-brand {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: var(--color-primary);
	text-decoration: none;
}

.l-site-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	color: var(--color-primary);
	text-decoration: none;
}

.l-site-header__brand .custom-logo {
	display: block;
	width: auto;
	max-width: 170px;
	max-height: 40px;
	object-fit: contain;
}

.l-site-header__brand-mark {
	position: relative;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	background: radial-gradient(circle at 48% 50%, #fff 0 18%, var(--color-primary) 19% 42%, transparent 43%),
		linear-gradient(90deg, var(--color-primary) 0 58%, var(--color-accent) 58% 100%);
}

.l-site-header__brand-mark::before,
.l-site-header__brand-mark::after {
	position: absolute;
	top: 50%;
	border-radius: 999px;
	content: "";
	transform: translateY(-50%);
}

.l-site-header__brand-mark::before {
	right: -.35rem;
	width: .55rem;
	height: .95rem;
	background: var(--color-accent);
}

.l-site-header__brand-mark::after {
	left: -.35rem;
	width: .45rem;
	height: .9rem;
	background: var(--color-primary-dark);
}

.l-site-header__brand-mark span {
	position: absolute;
	left: .54rem;
	top: .54rem;
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--color-primary-dark);
}

.l-site-header__brand-text {
	display: grid;
	gap: .05rem;
	line-height: 1.15;
}

.l-site-header__site-name {
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
}

.l-site-header__tagline {
	color: var(--color-text-muted);
	font-size: .56rem;
	font-weight: 700;
	white-space: nowrap;
}

.l-site-header__nav,
.l-site-header__actions {
	display: none;
}

.p-global-nav,
.p-footer-nav,
.p-sp-nav {
	display: flex;
	gap: var(--space-3);
	padding: 0;
	margin: 0;
	list-style: none;
}

.p-global-nav a,
.p-sp-nav a {
	color: var(--color-text);
	font-weight: 700;
	text-decoration: none;
}

.c-menu-toggle {
	display: inline-grid;
	place-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--color-primary);
	border: 0;
	border-radius: var(--radius);
}

.c-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 3px 0;
	background: #fff;
}

.p-sp-drawer {
	position: fixed;
	inset: 72px 0 0;
	z-index: 999;
	padding: var(--space-5);
	background: var(--color-bg);
	overflow-y: auto;
}

.p-sp-nav {
	display: grid;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
	font-size: 1.15rem;
}

body.is-menu-open {
	overflow: hidden;
}

/* Footer */
.l-site-footer {
	padding: var(--space-7) 0 var(--space-4);
	background: var(--color-primary-dark);
	color: #fff;
}

.l-site-footer a {
	color: #fff;
}

.l-site-footer__inner {
	display: grid;
	gap: var(--space-5);
}

.l-site-footer__site-name {
	margin-bottom: var(--space-2);
	font-family: var(--font-heading);
	font-weight: 700;
}

.p-footer-nav {
	display: grid;
	gap: var(--space-2);
}

.l-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.l-site-footer__copy {
	margin-top: var(--space-5);
	color: rgba(255, 255, 255, .75);
	font-size: .9rem;
}

/* Components */
.c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.c-button--accent {
	background: var(--color-accent);
	color: #fff;
}

.c-button--accent:hover {
	background: var(--color-accent-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.c-button--primary {
	background: var(--color-primary);
	color: #fff;
}

.c-button--light {
	background: #fff;
	color: var(--color-primary);
}

.c-button--outline {
	border-color: var(--color-border);
	background: #fff;
	color: var(--color-primary);
}

.c-button--wide {
	width: 100%;
}

.c-section-title {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0 0 var(--space-5);
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--color-border);
}

.c-section-title::before {
	content: "";
	width: 4px;
	height: 1.6em;
	background: var(--color-primary);
	border-radius: 999px;
}

.c-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 2px 8px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
}

.c-label:hover {
	color: #fff;
	background: var(--color-primary-dark);
}

.p-labels {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.p-breadcrumb {
	margin: var(--space-4) 0;
	color: var(--color-text-muted);
	font-size: .88rem;
}

.p-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	padding: 0;
	margin: 0;
	list-style: none;
}

.p-breadcrumb li + li::before {
	content: "/";
	margin-right: var(--space-2);
	color: var(--color-border);
}

.p-card-grid {
	display: grid;
	gap: var(--space-4);
}

.p-card {
	display: grid;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.p-card:hover {
	border-color: var(--color-primary);
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.p-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--color-sub);
	overflow: hidden;
}

.p-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-card__body {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-3);
}

.p-card__title {
	display: -webkit-box;
	min-height: 3.2em;
	margin: 0;
	overflow: hidden;
	font-size: 1rem;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

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

.p-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--color-text-muted);
	font-size: .92rem;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.p-card__date,
.p-entry-meta {
	color: var(--color-text-muted);
	font-family: var(--font-number);
	font-size: .88rem;
}

.p-page-header {
	padding: var(--space-5) 0;
}

.p-page-header h1 {
	color: var(--color-primary-dark);
}

.p-page-header__lead {
	max-width: 760px;
	color: var(--color-text-muted);
}

.p-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.p-search-form input {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.p-widget {
	margin-bottom: var(--space-4);
	padding: var(--space-4);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.p-widget__title {
	margin: 0 0 var(--space-3);
	font-size: 1.05rem;
}

.p-mini-posts,
.p-category-list {
	display: grid;
	gap: var(--space-3);
	padding: 0;
	margin: 0;
	list-style: none;
}

.p-mini-posts__item a {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: var(--space-2);
	align-items: center;
	color: var(--color-text);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}

.p-mini-posts__item img {
	width: 80px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius);
}

.p-cta-box {
	padding: var(--space-5);
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: #fff;
	border-radius: var(--radius);
}

.p-cta-box__title {
	margin: 0 0 var(--space-2);
	font-size: 1.35rem;
}

.p-cta-box__text {
	color: rgba(255, 255, 255, .88);
}

.p-cta-box__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.p-cta-box--sidebar {
	padding: var(--space-4);
}

.p-cta-box--sidebar .p-cta-box__title {
	font-size: 1.05rem;
}

.p-cta-box--article-end {
	margin-bottom: var(--space-5);
}

.p-sidebar-sticky {
	position: static;
}

.p-mobile-cta {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: grid;
	grid-template-columns: 1fr 96px;
	gap: var(--space-2);
	padding: var(--space-2);
	background: rgba(255, 255, 255, .96);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -10px 24px rgba(17, 24, 39, .12);
}

.p-mobile-cta.is-hidden {
	display: none;
}

/* Page Specific */
.p-hero {
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 100% auto;
}

.p-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: clamp(460px, 38.2vw, 775px);
	align-items: center;
	padding: var(--space-8) 0;
}

.p-hero__decor {
	position: absolute;
	right: -160px;
	bottom: -90px;
	width: min(82vw, 900px);
	color: #fff;
	opacity: .12;
}

.p-hero__content {
	max-width: 760px;
}

.p-hero h1 {
	font-size: 2.2rem;
}

.p-hero p {
	max-width: 680px;
	color: #31506d;
	font-size: 1.05rem;
}

.p-hero__actions,
.p-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.p-hero__badges {
	padding: 0;
	margin: var(--space-4) 0 0;
	list-style: none;
}

.p-hero__badges li {
	padding: 4px 10px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	font-weight: 700;
}

.p-category-grid {
	display: grid;
	gap: var(--space-3);
}

.p-category-card {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-4);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

.p-category-card:hover {
	border-color: var(--color-primary);
}

.p-category-card h3 {
	margin: 0;
}

.p-category-card p {
	margin: 0;
	color: var(--color-text-muted);
}

.p-category-card__icon {
	width: 36px;
	height: 36px;
	background: radial-gradient(circle at center, var(--color-accent) 0 24%, transparent 25%), conic-gradient(from 20deg, var(--color-primary), var(--color-safe), var(--color-primary));
	border-radius: 50%;
}

.p-cost-banner {
	display: grid;
	gap: var(--space-1);
	padding: var(--space-5);
	background: #fff;
	border: 1px solid var(--color-border);
	border-left: 6px solid var(--color-accent);
	border-radius: var(--radius);
	color: var(--color-text);
	text-decoration: none;
}

.p-cost-banner span {
	color: var(--color-accent);
	font-weight: 700;
}

.p-cost-banner strong {
	font-size: 1.25rem;
}

.p-about-site {
	display: grid;
	gap: var(--space-4);
	align-items: center;
}

.p-entry__header {
	margin-bottom: var(--space-4);
}

.p-entry__header h1 {
	margin-top: var(--space-3);
	color: var(--color-primary-dark);
}

.p-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
	padding: 0;
	margin: 0;
	list-style: none;
}

.p-entry__updated-note {
	margin-top: var(--space-3);
	padding: var(--space-2) var(--space-3);
	background: var(--color-sub);
	border-radius: var(--radius);
	color: var(--color-text-muted);
}

.p-entry__thumbnail {
	margin: var(--space-5) 0;
}

.p-entry__thumbnail img {
	width: 100%;
	border-radius: var(--radius);
}

.p-summary-box,
.p-toc,
.p-author-box,
.p-related {
	margin: var(--space-5) 0;
}

.p-summary-box {
	padding: var(--space-4);
	background: #f8fafc;
	border: 1px solid var(--color-border);
	border-left: 5px solid var(--color-safe);
	border-radius: var(--radius);
}

.p-summary-box h2,
.p-toc__toggle {
	margin: 0 0 var(--space-3);
	font-size: 1.15rem;
}

.p-summary-box ul {
	display: grid;
	gap: var(--space-2);
	padding-left: 1.2em;
	margin-bottom: 0;
}

.p-toc {
	padding: var(--space-4);
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.p-toc__toggle {
	width: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--color-primary);
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.p-toc__list {
	display: grid;
	gap: var(--space-2);
	padding-left: 1.4em;
	margin: 0;
}

.p-toc__item--h3 {
	margin-left: var(--space-3);
	font-size: .94rem;
}

.p-toc a.is-current {
	color: var(--color-accent);
	font-weight: 700;
}

.p-author-box {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-4);
	background: var(--color-sub);
	border-radius: var(--radius);
}

.p-author-box h2 {
	margin: 0;
}

.p-author-box__item {
	display: grid;
	gap: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border);
}

.p-author-box__item img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border: 1px solid #d9e3ef;
	border-radius: 8px;
}

.p-author-box__role,
.p-author-box__cert,
.p-author-box__title {
	margin: 0 0 var(--space-1);
	color: var(--color-text-muted);
	font-size: .9rem;
}

/* Article Content */
.entry-content {
	font-size: 16px;
	line-height: 1.9;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: var(--space-4);
}

.entry-content h2 {
	display: flex;
	gap: var(--space-3);
	align-items: center;
	margin-top: var(--space-7);
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--color-border);
}

.entry-content h2::before {
	content: "";
	flex: 0 0 4px;
	width: 4px;
	height: 1.5em;
	background: var(--color-primary);
	border-radius: 999px;
}

.entry-content h3 {
	display: flex;
	gap: var(--space-2);
	align-items: center;
	margin-top: var(--space-5);
}

.entry-content h3::before {
	content: "";
	flex: 0 0 2px;
	width: 2px;
	height: 1.4em;
	background: var(--color-accent);
}

.entry-content a {
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: underline;
}

.entry-content blockquote {
	margin-left: 0;
	padding: var(--space-3) var(--space-4);
	background: #f8fafc;
	border-left: 4px solid var(--color-primary);
	color: var(--color-text-muted);
}

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

.entry-content table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: .95rem;
}

.entry-content th,
.entry-content td {
	padding: 12px;
	border: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--color-primary);
	color: #fff;
}

.entry-content tr:nth-child(even) td {
	background: #f8fafc;
}

.p-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Column article design */
.single-post .l-main {
  background: linear-gradient(180deg, #fff 0, #fff 320px, #f8fafc 320px);
}

.single-post .l-container {
  width: min(100% - 32px, 1120px);
}

.single-post .l-content-sidebar {
  margin-top: var(--space-4);
}

.single-post .p-entry {
  width: 100%;
  max-width: 760px;
}

.p-entry__header {
  padding: var(--space-4) 0 var(--space-2);
}

.p-entry__header h1 {
  max-width: 12em;
  margin: var(--space-3) 0 var(--space-3);
  color: var(--color-primary-dark);
	font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.32;
  letter-spacing: 0;
}

.single-post .p-entry__header h1 {
  max-width: 760px;
}

.p-entry-meta {
	color: var(--color-text-muted);
	font-size: .88rem;
}

.p-labels {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
}

.c-label {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: .22rem .65rem;
	background: rgba(234, 88, 12, .1);
	border: 1px solid rgba(234, 88, 12, .22);
	border-radius: var(--radius-sm);
	color: var(--color-accent);
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
}

.p-entry__thumbnail {
	margin: var(--space-5) 0 var(--space-6);
}

.p-entry__thumbnail img {
	display: block;
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.p-summary-box {
	background: #fff;
	border-color: #d9e3ef;
	border-left-color: var(--color-accent);
	box-shadow: 0 12px 28px rgba(18, 57, 95, .06);
}

.p-toc {
	background: #fff;
	border: 1px solid #d9e3ef;
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(18, 57, 95, .06);
}

.p-toc--inline {
	margin: var(--space-5) 0 var(--space-6);
}

.p-toc--sidebar {
	display: none;
	margin: 0 0 var(--space-4);
	padding: var(--space-4);
}

.p-toc__title,
.p-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 var(--space-3);
	color: var(--color-primary-dark);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
}

.p-toc__toggle {
	min-height: 44px;
	cursor: pointer;
}

.p-toc__toggle::after {
	color: var(--color-accent);
	content: "+";
	font-size: 1.2rem;
	line-height: 1;
}

.p-toc__toggle[aria-expanded="true"]::after {
	content: "-";
}

.p-toc__list {
	display: grid;
	gap: .18rem;
	max-height: min(58vh, 560px);
	padding: 0;
	margin: 0;
	overflow-y: auto;
	list-style: none;
	scrollbar-width: thin;
}

.p-toc__list[hidden] {
	display: none;
}

.p-toc__item {
	margin: 0;
}

.p-toc__item--h3,
.p-toc__item--h4 {
	margin-left: 0;
	font-size: inherit;
}

.p-toc__item a {
	display: grid;
	grid-template-columns: 3.6em minmax(0, 1fr);
	gap: .45rem;
	align-items: start;
	padding: .45rem .55rem;
	border-left: 3px solid transparent;
	border-radius: 6px;
	color: var(--color-text-muted);
	font-size: .92rem;
	line-height: 1.45;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.p-toc__item--h2 a {
	color: var(--color-primary-dark);
	font-size: .94rem;
	font-weight: 700;
}

.p-toc__item--h3 a {
	margin-left: 20px;
	font-size: .86rem;
}

.p-toc__item--h4 a {
	margin-left: 38px;
	color: #64748b;
	font-size: .8rem;
}

.p-toc__number {
	font-variant-numeric: tabular-nums;
	color: #6b7280;
	font-weight: 500;
}

.p-toc a:hover,
.p-toc a.is-current {
	background: var(--color-sub);
	border-left-color: var(--color-accent);
	color: var(--color-primary-dark);
}

.p-toc a:hover .p-toc__number,
.p-toc a.is-current .p-toc__number {
	color: #4b5563;
	font-weight: 600;
}

.entry-content {
	color: var(--color-text);
	font-size: 16.5px;
	line-height: 1.95;
}

.entry-content > * {
	margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--color-primary-dark);
	letter-spacing: 0;
	scroll-margin-top: 112px;
}

.entry-content h2 {
	display: block;
	margin-top: 3.4rem;
	padding: .15rem 0 .7rem 1rem;
	border-bottom: 2px solid #d9e3ef;
	border-left: 5px solid var(--color-accent);
	font-size: clamp(1.55rem, 3vw, 1.8rem);
	line-height: 1.5;
}

.entry-content h2::before {
	display: none;
}

.entry-content h3 {
	display: block;
	margin-top: 2.45rem;
	padding: .7rem .9rem;
	background: var(--color-sub);
	border-left: 4px solid var(--color-primary);
	border-radius: 0 8px 8px 0;
	font-size: clamp(1.25rem, 2.3vw, 1.38rem);
	line-height: 1.55;
}

.entry-content h3::before {
	display: none;
}

.entry-content h4 {
	margin-top: 2rem;
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.65;
}

.entry-content p {
	margin-bottom: 1.25em;
}

.entry-content ul,
.entry-content ol {
	display: grid;
	gap: .55rem;
	padding-left: 1.45em;
	margin-bottom: 1.35em;
}

.entry-content strong,
.entry-content b {
	background: linear-gradient(transparent 62%, rgba(234, 88, 12, .24) 62%);
	color: var(--color-primary-dark);
	font-weight: 800;
}

.entry-content blockquote {
	padding: var(--space-4);
	background: var(--color-sub);
	border-left-color: var(--color-accent);
	border-radius: 0 8px 8px 0;
	color: #31506d;
}

.entry-content table {
	border: 1px solid #d9e3ef;
	background: #fff;
}

.entry-content th {
	background: var(--color-primary);
	color: #fff;
	font-weight: 700;
}

.entry-content td {
	background: #fff;
}

.entry-content tr:nth-child(even) td {
	background: #f8fafc;
}

.p-widget {
	border-color: #d9e3ef;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(18, 57, 95, .05);
}

.p-widget__title {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--color-primary-dark);
	font-size: .98rem;
	font-weight: 800;
}

.p-widget__title::before {
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--color-accent);
	content: "";
}

.p-mini-posts {
	gap: .85rem;
}

.p-mini-posts__item a {
	grid-template-columns: 72px minmax(0, 1fr);
	gap: .75rem;
	align-items: start;
	font-size: .88rem;
	line-height: 1.45;
}

.p-mini-posts__item a:hover .p-mini-posts__title {
	color: var(--color-accent);
}

.p-mini-posts__item img {
	width: 72px;
	height: 48px;
	aspect-ratio: auto;
	border-radius: 6px;
}

.p-mini-posts__body {
	display: grid;
	gap: .22rem;
	min-width: 0;
}

.p-mini-posts__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	align-items: center;
	color: #64748b;
	font-size: .72rem;
	font-weight: 700;
}

.p-mini-posts__category {
	color: var(--color-accent);
}

.p-mini-posts__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--color-text);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color .2s ease;
}

.p-category-list {
	gap: .4rem;
}

.p-category-list li {
	margin: 0;
}

.p-category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	min-height: 42px;
	padding: .55rem .7rem;
	background: #fff;
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--color-text);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}

.p-category-list a:hover {
	background: var(--color-sub);
	border-color: #d9e3ef;
	color: var(--color-primary-dark);
}

.p-category-list__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2em;
	height: 1.7em;
	padding: 0 .45rem;
	background: rgba(18, 57, 95, .1);
	border-radius: 999px;
	color: var(--color-primary);
	font-size: .76rem;
	font-weight: 800;
}

.p-sidebar-extra {
	margin-top: var(--space-4);
}

ul.is-style-bp-check {
	padding-left: 0;
	list-style: none;
}

ul.is-style-bp-check li {
	position: relative;
	padding-left: 1.8em;
}

ul.is-style-bp-check li::before {
	content: "";
	position: absolute;
	top: .72em;
	left: 0;
	width: 12px;
	height: 7px;
	border-bottom: 3px solid var(--color-safe);
	border-left: 3px solid var(--color-safe);
	transform: rotate(-45deg);
}

.bp-note,
.bp-point,
.bp-caution {
	position: relative;
	padding: var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.bp-point {
	border-color: var(--color-primary);
}

.bp-caution {
	border-color: var(--color-alert);
}

.bp-point::before,
.bp-caution::before {
	display: inline-block;
	margin-bottom: var(--space-2);
	padding: 2px 8px;
	border-radius: 999px;
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
}

.bp-point::before {
	content: "POINT";
	background: var(--color-primary);
}

.bp-caution::before {
	content: "注意";
	background: var(--color-alert);
}

.bp-compare {
	overflow-x: auto;
}

.bp-compare table th:first-child,
.bp-compare table td:first-child,
table.bp-compare th:first-child,
table.bp-compare td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
}

.bp-faq h3 {
	padding-left: 0;
}

.bp-faq h3::before {
	content: "Q";
	display: inline-grid;
	place-content: center;
	width: 28px;
	height: 28px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50%;
	font-family: var(--font-number);
}

.bp-faq h3 + p {
	position: relative;
	padding-left: 40px;
}

.bp-faq h3 + p::before {
	content: "A";
	position: absolute;
	top: 0;
	left: 0;
	display: inline-grid;
	place-content: center;
	width: 28px;
	height: 28px;
	background: var(--color-accent);
	color: #fff;
	border-radius: 50%;
	font-family: var(--font-number);
	font-weight: 700;
}

.bp-source {
	color: var(--color-text-muted);
	font-size: .85rem;
}

.wpcf7 form {
	display: grid;
	gap: var(--space-3);
}

.wpcf7 label {
	display: grid;
	gap: var(--space-1);
	font-weight: 700;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.wpcf7 input[type="submit"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	background: var(--color-accent);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	font-weight: 700;
	cursor: pointer;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
	color: var(--color-alert);
	font-weight: 700;
}

/* Utilities */
.u-text-muted {
	color: var(--color-text-muted);
}

/* Media Queries */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media (min-width: 640px) {
	.p-card-grid,
	.p-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p-author-box__item {
		grid-template-columns: 96px 1fr;
	}
}

@media (min-width: 768px) {
	body {
		font-size: 17px;
	}

	.entry-content {
		font-size: 17px;
	}

	.p-card-grid,
	.p-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.p-about-site,
	.l-site-footer__inner {
		grid-template-columns: 1.4fr 1fr;
	}

	.p-hero h1 {
		font-size: 3rem;
	}
}

@media (min-width: 1024px) {
	.l-site-header__nav,
	.l-site-header__actions {
		display: flex;
		align-items: center;
		gap: var(--space-3);
	}

	.c-menu-toggle,
	.p-sp-drawer {
		display: none !important;
	}

	.l-content-sidebar {
		grid-template-columns: minmax(0, 760px) 320px;
		column-gap: var(--space-5);
		justify-content: center;
	}

	.single-post .l-container {
		width: min(100% - 48px, 1120px);
	}

	.single-post .l-content-sidebar {
		grid-template-columns: minmax(0, 760px) 304px;
		column-gap: clamp(24px, 3vw, 40px);
	}

	.l-sidebar {
		position: sticky;
		top: 110px;
		align-self: start;
		max-height: none;
		overflow: visible;
		overscroll-behavior: contain;
	}

	.p-sidebar-sticky,
	.p-sidebar-sticky.is-sticky {
		position: static;
		overflow: visible;
	}

	.single-post .p-toc--inline {
		display: none;
	}

	.single-post .p-toc--sidebar {
		display: block;
	}

	.single-post .p-toc--sidebar .p-toc__list {
		max-height: min(42vh, 360px);
		overflow-y: auto;
		scroll-behavior: smooth;
		overscroll-behavior: contain;
	}

	.p-mobile-cta {
		display: none;
	}
}

@media (min-width: 1280px) {
	:root {
		--container: 1240px;
	}

	.p-hero h1 {
		font-size: 4rem;
	}
}

/* Kitchen Car Press inspired layout refinements */
.l-section {
	padding: 3.5rem 0;
}

.l-site-header {
	background: rgba(255, 255, 255, .96);
}

.l-site-header__inner {
	min-height: 72px;
}

.c-button {
	border-radius: var(--radius-sm);
}

.c-text-link,
.c-section-link {
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: none;
}

.c-text-link:hover,
.c-section-link:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

.c-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.c-section-title {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.c-section-title::before {
	display: none;
}

.p-hero {
	position: relative;
	overflow: hidden;
	background-color: #fff;
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 100% auto;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
}

.p-hero::before {
	display: none;
	content: none;
}

.p-hero__inner {
	position: relative;
	display: grid;
	min-height: clamp(460px, 38.2vw, 775px);
	align-items: center;
	padding-block: 4rem;
}

.p-hero__content {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.p-hero h1 {
	max-width: 100%;
	margin-bottom: 1.35rem;
	color: var(--color-primary-dark);
	font-size: clamp(2rem, 7.2vw, 3rem);
	line-height: 1.22;
	text-wrap: auto;
}

.p-hero .p-hero__lead {
	max-width: 46rem;
	color: #31506d;
	font-size: 1rem;
	line-height: 1.95;
}

.p-hero__actions {
	margin-top: 1.5rem;
}

.p-card {
	overflow: hidden;
	border: 1px solid #d9e3ef;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.p-card:hover {
	border-color: #b9cbe0;
	box-shadow: var(--shadow);
	transform: translateY(-4px);
}

.p-card__thumb {
	aspect-ratio: 16 / 10;
	background: var(--color-surface-strong);
}

.p-card__thumb img {
	transition: transform .35s ease;
}

.p-card:hover .p-card__thumb img {
	transform: scale(1.035);
}

.p-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.15rem;
}

.p-labels {
	margin-bottom: .55rem;
}

.c-label {
	padding: .18rem .65rem;
	background: var(--color-surface-strong);
	color: var(--color-primary-dark);
	font-size: .72rem;
}

.c-label:hover {
	background: var(--color-primary);
	color: #fff;
}

.p-card__title {
	min-height: auto;
	margin-bottom: .6rem;
	font-size: 1.08rem;
	line-height: 1.6;
}

.p-card__excerpt {
	margin-bottom: 1rem;
	color: var(--color-text-muted);
	font-size: .88rem;
	line-height: 1.75;
}

.p-card__meta {
	display: flex;
	width: 100%;
	justify-content: space-between;
	gap: .5rem;
	margin-top: auto;
	padding-top: .75rem;
	border-top: 1px dashed var(--color-border);
	color: var(--color-text-muted);
	font-family: var(--font-number);
	font-size: .75rem;
}

.p-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.p-category-card {
	display: flex;
	min-width: 0;
	min-height: 132px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem .5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 3px 4px 0 var(--color-border);
	color: var(--color-text);
	text-align: center;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.p-category-card:hover {
	border-color: var(--color-border);
	box-shadow: 1px 2px 0 var(--color-border);
	color: var(--color-primary-dark);
	transform: translate(2px, 2px);
}

.p-category-card__icon {
	display: block;
	width: auto;
	height: auto;
	background: none;
	border-radius: 0;
	font-size: 1.8rem;
	line-height: 1.2;
}

.p-category-card__name {
	overflow: hidden;
	max-width: 100%;
	font-family: var(--font-heading);
	font-size: .92rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p-category-card__count {
	color: var(--color-text-muted);
	font-size: .68rem;
}

.p-about-site {
	gap: 2rem;
}

.p-cta-box {
	background: #fff;
	color: var(--color-text);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.p-cta-box__title {
	color: var(--color-primary-dark);
}

.p-cta-box__text {
	color: var(--color-text-muted);
}

.p-widget {
	padding: 1.15rem;
	box-shadow: var(--shadow-sm);
}

.p-widget__title {
	font-size: 1rem;
}

.p-mobile-cta {
	grid-template-columns: 1fr;
}

.p-summary-box,
.p-toc,
.p-author-box {
	box-shadow: var(--shadow-sm);
}

.p-related > h2 {
	margin-bottom: 1.5rem;
}

.p-page {
	max-width: 860px;
	margin-inline: auto;
}

.p-page .entry-content h2 {
	display: block;
	margin-top: 2.75rem;
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-primary-dark);
}

.p-page .entry-content h2::before {
	display: none;
}

.is-contact-page .p-page {
	max-width: 900px;
}

.is-contact-page .p-page-header {
	padding: 3.2rem 0 1.6rem;
}

.is-contact-page .p-page-header h1 {
	margin-bottom: 2.4rem;
	padding-bottom: 2.2rem;
	border-bottom: 2px dotted var(--color-accent);
	color: var(--color-text);
	font-size: 2.7rem;
	line-height: 1.25;
}

.bp-contact-intro {
	max-width: 760px;
	margin-bottom: 3rem;
	font-weight: 700;
	line-height: 2;
}

.bp-contact-notes {
	display: grid;
	gap: .35rem;
	margin: 0 0 4.4rem;
	padding-left: 1.3rem;
	font-weight: 700;
}

.bp-contact-notes a,
.bp-form-acceptance a {
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .18em;
}

.bp-contact-form {
	display: grid;
	gap: 4.2rem;
	max-width: 440px;
}

.bp-contact-form .bp-form-field,
.bp-contact-form .bp-form-acceptance,
.bp-contact-form .bp-form-submit {
	margin: 0;
}

.bp-contact-form label {
	display: grid;
	gap: .45rem;
	color: var(--color-text);
	font-weight: 700;
	line-height: 1.6;
}

.bp-required {
	margin-left: .25rem;
	color: var(--color-text);
	font-size: .95em;
}

.wpcf7 .bp-contact-form input[type="text"],
.wpcf7 .bp-contact-form input[type="email"],
.wpcf7 .bp-contact-form input[type="tel"],
.wpcf7 .bp-contact-form textarea,
.wpcf7 .bp-contact-form select {
	width: min(100%, 390px);
	min-height: 40px;
	padding: .45rem .55rem;
	border: 1px solid #b8bec7;
	border-radius: 2px;
	background: #fff;
	box-shadow: none;
	color: var(--color-text);
	font-size: 1rem;
	line-height: 1.5;
}

.wpcf7 .bp-contact-form select {
	width: min(100%, 220px);
}

.wpcf7 .bp-contact-form textarea {
	width: min(100%, 360px);
	min-height: 300px;
	resize: vertical;
}

.bp-form-acceptance {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	width: min(100vw - 32px, 720px);
	font-weight: 700;
	line-height: 1.8;
}

.bp-form-acceptance .wpcf7-form-control-wrap {
	display: contents;
}

.bp-form-acceptance .wpcf7-list-item {
	margin: 0;
}

.bp-form-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	font-weight: 700;
}

.bp-form-acceptance input[type="checkbox"] {
	width: 14px;
	height: 14px;
	margin-top: .45em;
	accent-color: var(--color-primary);
}

.wpcf7 .bp-contact-form input[type="submit"] {
	width: auto;
	min-height: 34px;
	padding: .35rem .8rem;
	border-radius: 3px;
	background: var(--color-primary);
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
}

.wpcf7 .bp-contact-form input[type="submit"]:disabled {
	background: #f1f5f9;
	color: #a8b0bb;
	cursor: not-allowed;
}

.wpcf7 .bp-contact-form input:focus,
.wpcf7 .bp-contact-form textarea:focus,
.wpcf7 .bp-contact-form select:focus {
	border-color: var(--color-primary);
	outline: 3px solid rgba(234, 88, 12, .22);
	outline-offset: 1px;
}

.bp-contact-form-fallback {
	max-width: 620px;
	padding: 1rem 1.2rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-sub);
}

@media (min-width: 768px) {
	.is-contact-page .p-page-header h1 {
		font-size: 3.25rem;
	}
}

.l-site-footer__inner {
	align-items: start;
}

.l-site-footer__site-name {
	font-size: 1.35rem;
}

.l-site-footer__about p:not(.l-site-footer__site-name) {
	max-width: 34rem;
	color: rgba(255, 255, 255, .82);
	font-size: .88rem;
}

@media (min-width: 640px) {
	.p-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.p-hero h1 {
		font-size: 3rem;
	}

	.p-category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.l-site-header {
		position: sticky;
		top: 0;
	}

	.l-site-header__inner {
		min-height: 82px;
	}

	.p-hero__inner {
		justify-items: start;
		min-height: clamp(460px, 38.2vw, 775px);
		padding-block: 5rem;
	}

	.p-category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.p-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.p-hero h1 {
		font-size: 3.1rem;
		white-space: nowrap;
	}

	.p-hero .p-hero__lead {
		max-width: 44rem;
	}
}

@media (hover: none) {
	.p-card:hover,
	.p-category-card:hover {
		transform: none;
	}
}
