@charset "utf-8";

/* --------------------------------------------------------------------------------
	keihin-contents article layout (souvenir-like)
	- Max width: 1080px (PC)
	- Two-column layout (PC): main + sidebar
	- Sticky section nav (PC/SP)
-------------------------------------------------------------------------------- */

:root {
	--kt-text: #222;
	--kt-muted: #666;
	--kt-border: #e6e6e6;
	--kt-bg: #fff;
	--kt-bg-soft: #f7f7f7;
	--kt-accent: #A3744D;
	--kt-radius: 12px;
	--kt-shadow: 0 6px 20px rgba(0, 0, 0, .06);
	--kt-max: 1080px;

	--kt-gap: 24px;
}

/* container */
.kt-container {
	max-width: var(--kt-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* hero */
.kt-hero {
	position: relative;
	background: var(--kt-bg);
	border-bottom: 1px solid var(--kt-border);
}

.kt-hero__media {
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: var(--kt-bg-soft);
}

.kt-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kt-hero__inner {
	padding: 18px 0 18px;
}

.kt-hero__kicker {
	font-size: 12px;
	color: var(--kt-muted);
	margin: 0 0 6px;
}

.kt-hero h1 {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.35;
}

.kt-hero__lead p {
	margin: 0 0 10px;
	color: var(--kt-text);
}

.kt-article__meta {
	font-size: 12px;
	color: var(--kt-muted);
	margin: 10px 0 0;
}

.kt-dot {
	margin: 0 6px;
}

/* sticky section nav (souvenir-like) */
.kt-sectionnav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, .98);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--kt-border);
}

.kt-sectionnav__inner {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	overflow: auto;
	white-space: nowrap;
}

.kt-sectionnav a {
	display: inline-block;
	padding: 10px 12px;
	border-radius: 999px;
	border: 1px solid var(--kt-border);
	text-decoration: none;
	color: var(--kt-text);
	font-weight: 700;
	font-size: 14px;
}

.kt-sectionnav a:hover {
	box-shadow: var(--kt-shadow);
}

.kt-sectionnav a.kt-btnPrimary {
	background: var(--kt-accent);
	border-color: var(--kt-accent);
	color: #fff;
}

/* layout */
.kt-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--kt-gap);
	padding-top: 20px;
	padding-bottom: 28px;
}

.kt-main {
	min-width: 0;
}

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

.kt-sidebar__sticky {
	position: sticky;
	top: 70px;
	/* sectionnav height offset */
}

/* toc (existing, refined) */
.kt-toc {
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius);
	background: #fff;
	padding: 14px 14px;
	box-shadow: var(--kt-shadow);
	margin: 0 0 18px;
}

.kt-toc__title {
	font-weight: 700;
	margin: 0 0 10px;
	font-size: 15px;
}

.kt-toc__list {
	margin: 0;
	padding-left: 18px;
}

.kt-toc__list li {
	margin: 6px 0;
}

.kt-toc__list a {
	color: var(--kt-text);
	text-decoration: none;
}

.kt-toc__list a:hover {
	text-decoration: underline;
}

/* sidebar CTA card */
.kt-card {
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius);
	background: #fff;
	box-shadow: var(--kt-shadow);
	padding: 14px;
}

.kt-card__title {
	font-weight: 700;
	margin: 0 0 10px;
	font-size: 15px;
}

.kt-btn {
	display: block;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	border-radius: 10px;
	padding: 12px 12px;
	border: 1px solid var(--kt-border);
	color: var(--kt-text);
	margin: 10px 0 0;
}

.kt-btn--primary {
	background: var(--kt-accent);
	border-color: var(--kt-accent);
	color: #fff;
}

.kt-btn--ghost {
	background: #fff;
}

/* article body typography - keep existing site styles, only minimal safety */
#column section {
	margin: 0 0 22px;
}

#column h2 {
	margin: 26px 0 10px;
}

#column h3 {
	margin: 18px 0 8px;
}

/* responsive */
@media (max-width: 1024px) {
	.kt-layout {
		grid-template-columns: 1fr 300px;
	}

	.kt-hero h1 {
		font-size: 26px;
	}
}

@media (max-width: 768px) {
	.kt-container {
		padding-left: 14px;
		padding-right: 14px;
	}

	.kt-hero__media {
		height: 200px;
	}

	.kt-hero h1 {
		font-size: 22px;
	}

	.kt-layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.kt-sidebar__sticky {
		position: static;
		top: auto;
	}
}