/* hanki — あみもの教室. Tokens come from theme.json; components use role variables only. */

:root {
	--canvas: var(--wp--preset--color--canvas, #F2F0EA);
	--surface: var(--wp--preset--color--surface, #FAF9F5);
	--line: var(--wp--preset--color--line, #D7D2C6);
	--ink: var(--wp--preset--color--ink, #1E2633);
	--ink-muted: var(--wp--preset--color--ink-muted, #59606B);
	--indigo: var(--wp--preset--color--indigo, #2B4A7A);
	--indigo-deep: var(--wp--preset--color--indigo-deep, #1F3860);
	--snow: var(--wp--preset--color--snow, #ECE7DC);
	--marker: var(--wp--preset--color--marker, #B5402F);
	--f-gothic: var(--wp--preset--font-family--gothic);
	--f-mincho: var(--wp--preset--font-family--mincho);
	--f-mono: var(--wp--preset--font-family--mono);
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1200px;
	--section: clamp(80px, 9vw, 128px);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------ base */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	overflow-wrap: anywhere;
	word-break: normal;
	line-break: strict;
	font-feature-settings: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:lang(ja) { text-autospace: normal; text-spacing-trim: trim-start; }
h1, h2, h3, .hanki-hero__lead, .wp-block-post-title { word-break: auto-phrase; text-wrap: balance; }
h1, h2 { font-feature-settings: "palt"; }
p { text-wrap: pretty; }
.hanki-front p:not([class*="hanki-facts"]):not(.hanki-row__label):not(.hanki-row__count) { max-inline-size: 36em; }
::selection { background: var(--snow); color: var(--ink); }
img { max-width: 100%; height: auto; }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--marker);
	outline-offset: 3px;
	border-radius: 1px;
}
[id] { scroll-margin-top: 24px; }

.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 !important;
	width: 1px; word-wrap: normal !important;
}

.hanki-link {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-block: 6px;
	transition: color 120ms ease-out, text-decoration-color 120ms ease-out;
}
.hanki-link::after,
.hanki-button-arrow .wp-block-button__link::after,
.is-style-hanki-text .wp-block-button__link::after,
.hanki-button::after {
	content: "";
	inline-size: 14px;
	block-size: 9px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M0 4.5h12.5M9 1l3.5 3.5L9 8' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M0 4.5h12.5M9 1l3.5 3.5L9 8' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hanki-link:hover { color: var(--indigo); text-decoration-thickness: 2px; }

/* ------------------------------------------------------------ buttons */

.wp-block-button__link { transition: background-color 120ms ease-out, transform 100ms ease-out; }
.hanki-button-arrow .wp-block-button__link,
.hanki-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-block-size: 52px;
}
.wp-block-button__link:active,
.hanki-button:active { transform: translateY(1px); }

.is-style-hanki-text .wp-block-button__link,
.is-style-hanki-text .wp-block-button__link:hover,
.is-style-hanki-text .wp-block-button__link:focus {
	background: transparent;
	color: var(--ink);
	padding-inline: 0;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 7px;
	min-block-size: 52px;
}
.is-style-hanki-text .wp-block-button__link:hover { color: var(--indigo); text-decoration-thickness: 2px; }

/* ------------------------------------------------------------ header */

.hanki-skip a {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--surface); padding: 10px 16px; font-size: 14px; text-decoration: none;
}
.hanki-skip a:focus { top: 12px; }
.hanki-skip { margin: 0; }

.hanki-header { position: relative; border-bottom: 1px solid var(--line); background: var(--canvas); }
.hanki-header__inner {
	max-inline-size: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 14px var(--gutter);
	gap: 32px;
	min-block-size: 76px;
	align-items: center;
}
.hanki-header__cta { margin: 0; flex: none; }
.hanki-header__cta .wp-block-button__link { padding: 12px 20px; min-block-size: 46px; font-size: 14px; gap: 14px; }

.hanki-sample {
	margin: 0;
	padding: 7px var(--gutter);
	background: var(--ink);
	color: var(--surface);
	font-size: 12px;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-align: center;
}
.hanki-sample strong { letter-spacing: 0.14em; }
/* the band's phrases never break inside (2026-11-18: it broke inside 「ありません」 on phones) */
.hanki-sample__nb { white-space: nowrap; }

.hanki-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--ink);
	text-decoration: none;
	flex: none;
	min-block-size: 44px;
}
.hanki-wordmark__name {
	font-family: var(--f-gothic);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1;
}
.hanki-wordmark__i { position: relative; display: inline-block; }
.hanki-wordmark__i::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -0.02em;
	inline-size: 0.2em;
	block-size: 0.2em;
	transform: translate(-50%, -20%) rotate(45deg);
	background: var(--marker);
}
.hanki-wordmark__sub {
	font-size: 12px;
	letter-spacing: 0.18em;
	color: var(--ink-muted);
	padding-inline-start: 14px;
	border-inline-start: 1px solid var(--line);
	line-height: 1.2;
}

.hanki-nav { flex: 1 1 auto; justify-content: flex-end; }
.hanki-nav .wp-block-navigation__container { gap: clamp(16px, 2.2vw, 32px); }
.hanki-nav .wp-block-navigation-item__content {
	color: var(--ink);
	text-decoration: none;
	padding-block: 12px;
	white-space: nowrap;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 calc(100% - 8px);
	background-repeat: no-repeat;
	transition: background-size 160ms var(--ease-out), color 120ms ease-out;
}
.hanki-nav .wp-block-navigation-item__content:hover { color: var(--indigo); background-size: 100% 1px; }
.hanki-nav .wp-block-navigation__responsive-container-open,
.hanki-nav .wp-block-navigation__responsive-container-close {
	inline-size: 44px; block-size: 44px; place-items: center; color: var(--ink);
}
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--canvas);
	padding: 24px var(--gutter);
}
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 4px;
	font-family: var(--f-mincho);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.04em;
	align-items: flex-start;
}
.hanki-nav .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--line); inline-size: 100%; }
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; justify-content: flex-start !important; }
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; }
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--canvas) !important; color: var(--ink) !important; }
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { inline-size: 100%; }
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; }
.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { justify-content: flex-start !important; align-items: flex-start !important; text-align: start; }
.hanki-nav .is-menu-open .wp-block-navigation-item__content { padding-block: 14px; display: block; }

@media (max-width: 1180px) {
	.hanki-header__inner { gap: 20px; }
	.hanki-nav .wp-block-navigation__container { gap: 18px; }
}
@media (max-width: 1080px) {
	.hanki-header .wp-block-buttons.hanki-header__cta { display: none; }
	/* WordPress only collapses the menu below 600px; six links need the overlay up to tablet width */
	.hanki-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hanki-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.hanki-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
}
.hanki-header__inner > .hanki-nav { margin-left: auto; }

/* ------------------------------------------------------------ shared section shells */

.hanki-front > .entry-content,
.hanki-front .wp-block-post-content { max-inline-size: none; }

.hanki-hero,
.hanki-facts,
.hanki-row,
.hanki-about,
.hanki-points,
.hanki-section {
	max-inline-size: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto !important;
	padding-inline: var(--gutter);
	box-sizing: border-box;
}
.hanki-h2 { margin: 0 0 24px; }
.hanki-section { margin-block: 56px var(--section) !important; }
.hanki-section__head { display: grid; gap: 16px; margin-block-end: 48px; }
.hanki-section__head p { color: var(--ink-muted); margin: 0; }
.hanki-section__head .hanki-h2 { margin: 0; }
.hanki-empty { color: var(--ink-muted); }

/* ------------------------------------------------------------ hero */

.hanki-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 4vw, 72px);
	align-items: center;
	max-inline-size: none;
	padding-inline-end: 0;
	padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
	margin-block: 0 !important;
}
.hanki-hero__text { padding-block: 48px; }
.hanki-hero__place {
	font-size: 13px;
	letter-spacing: 0.14em;
	color: var(--ink-muted);
	margin: 0 0 28px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.hanki-hero__place::before { content: ""; inline-size: 24px; block-size: 1px; background: var(--ink); }
.hanki-hero__title { margin: 0 0 32px; }
.hanki-hero__lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.95; letter-spacing: 0.05em; margin: 0 0 40px; }
.hanki-hero__actions { gap: 16px 36px; align-items: center; }

/* knit figure */
.hanki-knit { margin: 0; position: relative; }
.hanki-knit__frame { position: relative; line-height: 0; overflow: hidden; background: var(--indigo-deep); }
.hanki-knit__frame img { display: block; inline-size: 100%; block-size: auto; }
.hanki-knit__marker {
	position: absolute;
	left: var(--x);
	top: var(--y);
	inline-size: 30px;
	block-size: 30px;
	margin: -15px 0 0 -15px;
	border-radius: 50%;
	border: 2px solid var(--surface);
	box-shadow: 0 0 0 2px var(--marker), 0 0 0 3px rgba(30, 38, 51, 0.35);
}
.hanki-knit__marker::after {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: var(--marker);
}
.hanki-knit__lead { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.hanki-knit__lead line { stroke: var(--surface); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hanki-knit__note {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-100%, 0);
	margin: 0;
	padding: 12px 16px 13px;
	background: var(--surface);
	border: 1px solid var(--ink);
	display: grid;
	gap: 4px;
	line-height: 1.5;
	max-inline-size: none !important;
	white-space: nowrap;
}
.hanki-knit__where { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--marker); }
.hanki-knit__what { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.hanki-knit__ruler {
	display: grid;
	grid-template-columns: repeat(var(--n), 1fr);
	border-top: 1px solid var(--ink);
	block-size: 30px;
	font-family: var(--f-mono);
	font-size: 11px;
	line-height: 1;
	color: var(--ink-muted);
	margin-inline-end: var(--gutter);
}
.hanki-knit__tick { position: relative; text-align: center; padding-top: 12px; white-space: nowrap; display: flex; justify-content: center; }
.hanki-knit__tick::before { content: ""; position: absolute; top: 0; left: 50%; inline-size: 1px; block-size: 4px; background: var(--ink-muted); }
.hanki-knit__tick.is-major::before { block-size: 8px; background: var(--ink); }
.hanki-knit__tick.is-marker { color: var(--marker); font-weight: 400; white-space: nowrap; }
.hanki-knit__tick.is-marker::before { background: var(--marker); block-size: 8px; inline-size: 2px; }
.hanki-knit > .hanki-fig { margin-inline-end: var(--gutter); }

.hanki-fig {
	font-size: 13px;
	line-height: 1.7;
	color: var(--ink-muted);
	margin-block-start: 12px;
	display: flex;
	gap: 12px;
	align-items: baseline;
}
.hanki-fig__no { font-family: var(--f-mincho); font-size: 15px; color: var(--ink); flex: none; }

@media (prefers-reduced-motion: no-preference) {
	.hanki-knit__lead { opacity: 0; animation: hanki-fade 400ms 500ms ease-out forwards; }
	.hanki-knit__note { opacity: 0; animation: hanki-fade 400ms 700ms ease-out forwards; }
	.hanki-knit__marker { animation: hanki-pulse 900ms 200ms var(--ease-out) 1 both; }
}
@keyframes hanki-fade { to { opacity: 1; } }
@keyframes hanki-pulse {
	0% { transform: scale(0.6); opacity: 0; }
	55% { transform: scale(1.12); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------ facts */

.hanki-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block: 56px 0 !important;
}
.hanki-facts > * { border-top: 1px solid var(--ink); padding: 18px 24px 4px 0; margin: 0 !important; }
.hanki-facts > * + * { border-left: 1px solid var(--line); padding-left: 24px; }
.hanki-facts__label { font-size: 12px; letter-spacing: 0.14em; color: var(--ink-muted); margin: 0 0 10px; }
.hanki-facts__value { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 2px; line-height: 1.6; }
.hanki-facts__sub { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.7; }

.hanki-next__date { display: flex; align-items: baseline; gap: 10px; margin: 0; line-height: 1; }
.hanki-next__date time { font-family: var(--f-mincho); font-size: 36px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.hanki-next__wd { font-size: 13px; font-weight: 700; }
.hanki-next__name { margin: 10px 0 8px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.hanki-next__name a { color: var(--ink); text-underline-offset: 4px; }
.hanki-next__seats { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--ink-muted); }
.hanki-next__seats .hanki-seats { margin: 0; }
.hanki-next__empty { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* Upcoming dates (2026-11-18): the blocks also print the later sessions, hidden, so a page shown after
   its date (a cache, or the static copy) can move on to the next one (see the plugin's blocks.php). */
[data-hanki-upcoming] [hidden] { display: none !important; }
.hanki-class__upcoming, .hanki-class__next { display: contents; }

/* seat cells: one square per seat, read from the right like a chart */
.hanki-seats { display: inline-flex; gap: 3px; vertical-align: middle; }
.hanki-seats__cell { inline-size: 12px; block-size: 12px; background: var(--snow); box-shadow: inset 0 0 0 1px var(--indigo); }
.hanki-seats__cell.is-taken { background: var(--indigo); }
.hanki-seats.is-full .hanki-seats__cell { background: repeating-linear-gradient(135deg, var(--indigo) 0 1.5px, var(--snow) 1.5px 4px); }
.hanki-seats.is-closed .hanki-seats__cell { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------ row divider (R.01) */

.hanki-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	margin-block: var(--section) 0 !important;
	row-gap: 10px;
}
.hanki-row__label { margin: 0; display: flex; gap: 16px; align-items: baseline; font-size: 13px; letter-spacing: 0.1em; }
.hanki-row__no { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; }
.hanki-row__name { font-weight: 700; }
.hanki-row__count { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); }
.hanki-row__ruler {
	grid-column: 1 / -1;
	block-size: 10px;
	border-top: 1px solid var(--ink);
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) top left / 100% 8px no-repeat,
		repeating-linear-gradient(90deg, var(--ink-muted) 0 1px, transparent 1px 8px) top left / 100% 4px no-repeat;
}

/* ------------------------------------------------------------ about */

.hanki-about {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
	margin-block: 56px 0 !important;
}
.hanki-about__text p { margin-block: 0 24px; }

.hanki-cf { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.hanki-cf__chart { position: relative; }
.hanki-chart { display: block; inline-size: 100%; block-size: auto; }
.hanki-chart__bg { fill: var(--surface); }
.hanki-chart__ink rect { fill: var(--indigo); }
.hanki-chart__grid line { stroke: var(--line); stroke-width: 0.6; }
.hanki-chart__grid line.is-5 { stroke: #B9B2A3; stroke-width: 1; }
.hanki-chart__frame { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hanki-chart__num text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-muted); }
.hanki-chart__marker { fill: none; stroke: var(--marker); stroke-width: 2; }
.hanki-chart__first { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.hanki-cf__read { margin: 6px 0 0; font-size: 12px; color: var(--ink-muted); }
.hanki-cf__arrow { margin: 0; display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.hanki-cf__arrow::after {
	content: ""; inline-size: 56px; block-size: 9px; background: var(--ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 9'%3E%3Cpath d='M0 4.5h54.5M51 1l3.5 3.5L51 8' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 9'%3E%3Cpath d='M0 4.5h54.5M51 1l3.5 3.5L51 8' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hanki-cf__fabric { position: relative; line-height: 0; }
.hanki-cf__fabric img { display: block; inline-size: 100%; block-size: auto; }
.hanki-cf__first {
	position: absolute; right: calc(100% / 13 / 2); bottom: calc(100% / 13 / 2);
	inline-size: 22px; block-size: 22px; margin: 0 -11px -11px 0;
	border-radius: 50%; border: 1.5px solid var(--surface); box-shadow: 0 0 0 1px var(--ink);
}
.hanki-cf__first-label { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-muted); }
.hanki-cf > .hanki-fig { grid-column: 1 / -1; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }

/* points (no numbers: there is no order) */
.hanki-points {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-block: 64px 0 !important;
	padding-block: 0;
}
.hanki-points__item { border-top: 1px solid var(--ink); padding-top: 18px; margin: 0 !important; }
.hanki-points__item h3 { font-size: 16px; margin: 0 0 8px; }
.hanki-points__item p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.85; }

/* ------------------------------------------------------------ classes */

.hanki-classes { display: grid; }
.hanki-class {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) minmax(0, 17em) 240px;
	grid-template-areas: "no body spec swatch";
	gap: 0 clamp(24px, 3vw, 48px);
	border-top: 1px solid var(--ink);
	padding-block: 32px 44px;
}
.hanki-class:last-child { border-bottom: 1px solid var(--ink); }
.hanki-class__no { grid-area: no; margin: 0; font-family: var(--f-mincho); font-size: 72px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.hanki-class__body { grid-area: body; }
.hanki-class__title { font-family: var(--f-mincho); font-weight: 500; font-size: 26px; letter-spacing: 0.06em; margin: 0 0 6px; }
.hanki-class__title a { color: var(--ink); text-decoration: none; }
.hanki-class__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.hanki-class__meta { font-size: 13px; color: var(--ink-muted); margin: 0 0 16px; letter-spacing: 0.06em; }
.hanki-class__text p { margin: 0; font-size: 15px; }
.hanki-class__spec { grid-area: spec; margin: 0; align-self: start; }
.hanki-class__spec > div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; border-top: 1px solid var(--line); padding-block: 10px; font-size: 14px; line-height: 1.6; }
.hanki-class__spec > div:first-child { border-top: 0; padding-top: 2px; }
.hanki-class__spec dt { color: var(--ink-muted); }
.hanki-class__spec dd { margin: 0; font-weight: 700; display: grid; }
.hanki-class__spec small { font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.hanki-class__spec a { color: var(--indigo); text-underline-offset: 4px; }
.hanki-class__swatch { grid-area: swatch; margin: 0; align-self: start; line-height: 0; }
.hanki-class__swatch img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------------------ schedule */

.hanki-schedule__table { inline-size: 100%; border-collapse: collapse; font-size: 15px; }
.hanki-schedule__table thead th {
	text-align: start; font-size: 12px; font-weight: 400; letter-spacing: 0.12em; color: var(--ink-muted);
	padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink);
}
.hanki-schedule__table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hanki-schedule__date time { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hanki-schedule__md { font-family: var(--f-mincho); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.hanki-schedule__wd { font-size: 13px; font-weight: 700; }
.hanki-schedule__class { display: grid; }
.hanki-schedule__cname { font-weight: 700; }
.hanki-schedule__part { font-size: 13px; color: var(--ink-muted); }
.hanki-schedule__time { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hanki-schedule__seats { white-space: nowrap; }
.hanki-schedule__left { display: inline-block; margin-inline-start: 12px; font-size: 13px; font-weight: 700; min-inline-size: 4em; }
.hanki-schedule tr.is-full .hanki-schedule__left,
.hanki-schedule tr.is-closed .hanki-schedule__left { color: var(--ink-muted); font-weight: 400; }
.hanki-schedule tr.is-few .hanki-schedule__left { color: var(--marker); }
.hanki-schedule__action { text-align: end; padding-right: 0 !important; }
.hanki-schedule__action .hanki-link { font-size: 14px; white-space: nowrap; }
.hanki-schedule__off { font-size: 13px; color: var(--ink-muted); }
.hanki-section__cta { margin-top: 48px; }

/* ------------------------------------------------------------ kits */

.hanki-kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.hanki-kit { margin: 0; }
.hanki-kit__swatch { margin: 0 0 20px; line-height: 0; }
.hanki-kit__swatch img { inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hanki-kit__title { font-family: var(--f-mincho); font-weight: 500; font-size: 22px; letter-spacing: 0.06em; margin: 0 0 4px; }
.hanki-kit__title a { color: var(--ink); text-decoration: none; }
.hanki-kit__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.hanki-kit__contents { margin: 0 0 12px; font-size: 13px; color: var(--ink-muted); }
.hanki-kit__text p { margin: 0 0 12px; font-size: 15px; }
.hanki-kit__fee { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.hanki-kit__fee span { font-weight: 400; font-size: 13px; color: var(--ink-muted); }

/* ------------------------------------------------------------ online + faq + news */

.hanki-more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.hanki-faq { border-top: 1px solid var(--line); }
.hanki-faq:last-child { border-bottom: 1px solid var(--line); }
.hanki-faq summary {
	list-style: none;
	word-break: auto-phrase;
	text-wrap: pretty;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 20px 0;
	font-weight: 700;
	line-height: 1.6;
	min-block-size: 44px;
}
.hanki-faq summary::-webkit-details-marker { display: none; }
.hanki-faq summary::after {
	content: "";
	flex: none;
	inline-size: 14px;
	block-size: 14px;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
	transition: transform 160ms var(--ease-out);
}
.hanki-faq[open] summary::after { transform: rotate(45deg); }
.hanki-faq > :not(summary) { margin: 0 0 22px; color: var(--ink-muted); }
.hanki-faq summary:hover { color: var(--indigo); }

.hanki-news-home { margin-top: 0 !important; }
.hanki-news__list { list-style: none; padding: 0; margin: 0 0 24px; }
.hanki-news__item {
	display: grid;
	grid-template-columns: 8em minmax(0, 1fr);
	gap: 24px;
	align-items: baseline;
	padding-block: 18px;
	border-bottom: 1px solid var(--line);
}
.hanki-news__list > li:first-child .hanki-news__item { border-top: 1px solid var(--ink); }
.hanki-news__date { font-family: var(--f-mono); font-size: 13px; color: var(--ink-muted); }
.hanki-news__title { font-family: var(--f-gothic); font-size: 16px; font-weight: 700; margin: 0; letter-spacing: 0.04em; }
.hanki-news__title a { color: var(--ink); text-decoration: none; }
.hanki-news__title a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--indigo); }

/* ------------------------------------------------------------ pages */

.hanki-page { padding-block: 72px var(--section); }
.hanki-page__title { margin-block: 8px 40px; }
.hanki-page__kicker { margin: 0; }
.hanki-page__h2 { margin-block: 72px 24px; }
.hanki-page .hanki-schedule,
.hanki-page .hanki-form { margin-block: 32px; }
.hanki-single__date { font-family: var(--f-mono); font-size: 13px; color: var(--ink-muted); }
.hanki-single__back { margin-top: 72px !important; }

/* ------------------------------------------------------------ form */

.hanki-form { max-inline-size: 640px; }
.hanki-field { margin: 0 0 28px; }
.hanki-field__label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.hanki-field__req { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 6px; border: 1px solid var(--ink-muted); color: var(--ink-muted); line-height: 1.4; }
.hanki-field input,
.hanki-field select,
.hanki-field textarea {
	box-sizing: border-box;
	inline-size: 100%;
	font: inherit;
	font-size: 16px;
	letter-spacing: 0.03em;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid #8D8678;
	border-radius: 2px;
	padding: 12px 14px;
	min-block-size: 50px;
}
.hanki-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E2633' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 44px; }
.hanki-field textarea { min-block-size: 132px; line-height: 1.8; }
.hanki-field input:hover, .hanki-field select:hover, .hanki-field textarea:hover { border-color: var(--ink); }
.hanki-field__help { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }
.hanki-field.is-error input, .hanki-field.is-error select, .hanki-field.is-error textarea { border: 2px solid var(--marker); padding: 11px 13px; }
.hanki-field__error { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--marker); display: flex; gap: 8px; }
.hanki-field__error::before { content: "!"; flex: none; inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--marker); color: var(--surface); font-size: 12px; line-height: 18px; text-align: center; }
.hanki-form__errors { border: 2px solid var(--marker); background: var(--surface); padding: 20px 24px; margin-bottom: 32px; }
.hanki-form__errors p { margin: 0 0 8px; font-weight: 700; }
.hanki-form__errors ul { margin: 0; padding-left: 1.2em; }
.hanki-form__errors a { color: var(--marker); }
.hanki-form__hp { position: absolute; left: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.hanki-form__actions { margin-top: 40px; display: grid; gap: 14px; justify-items: start; }
.hanki-button {
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 16px;
	color: #fff;
	background: var(--indigo);
	border: 0;
	border-radius: 2px;
	padding: 15px 28px;
	cursor: pointer;
	transition: background-color 120ms ease-out, transform 100ms ease-out;
}
.hanki-button:hover { background: var(--indigo-deep); }
.hanki-form__note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.hanki-form__done { border-top: 2px solid var(--indigo); background: var(--surface); padding: 28px 28px 24px; }
.hanki-form__done-title { font-family: var(--f-mincho); font-size: 26px; margin: 0 0 16px; }
.hanki-form__summary { display: grid; margin: 0 0 16px; }
.hanki-form__summary > div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding-block: 8px; border-top: 1px solid var(--line); }
.hanki-form__summary dt { color: var(--ink-muted); }
.hanki-form__summary dd { margin: 0; font-weight: 700; }

/* ------------------------------------------------------------ footer */

.hanki-footer { border-top: 1px solid var(--ink); background: var(--surface); margin-top: 0; }
.hanki-front .hanki-news-home { margin-bottom: var(--section) !important; }
.hanki-footer__inner {
	max-inline-size: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 64px var(--gutter) 48px;
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
	gap: 48px;
}
.hanki-footer__brand p, .hanki-footer__sample p { font-size: 14px; color: var(--ink-muted); margin: 16px 0 0; line-height: 1.85; }
.hanki-footer__sample p { margin-top: 0; padding: 16px 18px; border: 1px solid var(--line); background: var(--canvas); }
.hanki-footer__nav .wp-block-navigation__container { gap: 2px; }
.hanki-footer__nav .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; font-size: 14px; padding-block: 8px; display: inline-block; }
.hanki-footer__nav .wp-block-navigation-item__content:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: 5px; }
.hanki-footer__copy {
	inline-size: calc(100% - 2 * var(--gutter));
	max-inline-size: var(--max);
	margin: 0 auto !important;
	padding: 18px 0 28px;
	font-size: 12px;
	color: var(--ink-muted);
	border-top: 1px solid var(--line);
	box-sizing: border-box;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
	.hanki-class { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 14em); grid-template-areas: "no body spec" "no swatch spec"; }
	.hanki-class__no { font-size: 52px; }
	.hanki-class__swatch { max-inline-size: 240px; margin-top: 20px; }
}

@media (max-width: 960px) {
	.hanki-hero { grid-template-columns: 1fr; padding-inline: var(--gutter); gap: 8px; }
	.hanki-hero__text { padding-block: 40px 24px; }
	.hanki-knit { margin-inline: calc(-1 * var(--gutter)); }
	.hanki-knit__ruler, .hanki-knit > .hanki-fig { margin-inline: var(--gutter); }
	.hanki-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; margin-top: 40px !important; }
	.hanki-facts > :nth-child(3) { border-left: 0; padding-left: 0; }
	.hanki-about, .hanki-more { grid-template-columns: 1fr; }
	.hanki-kits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hanki-footer__inner { grid-template-columns: 1fr 1fr; }
	.hanki-footer__sample { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.hanki-header__inner { min-block-size: 64px; padding-block: 10px; }
	.hanki-wordmark__name { font-size: 26px; }
	.hanki-wordmark__sub { font-size: 11px; padding-inline-start: 10px; letter-spacing: 0.12em; }
	.hanki-sample { font-size: 12px; text-align: start; }
	.hanki-hero__title { font-size: 36px; }
	.hanki-hero__lead { font-size: 16px; }
	.hanki-hero__lead br { display: none; }
	.hanki-hero__actions { flex-direction: column; align-items: stretch; }
	.hanki-hero__actions .wp-block-button { inline-size: 100%; }
	.hanki-hero__actions .hanki-button-arrow .wp-block-button__link { inline-size: 100%; box-sizing: border-box; }
	.hanki-hero__actions .is-style-hanki-text { inline-size: auto; }
	.hanki-knit__note { transform: translate(-100%, 0); padding: 8px 10px; }
	.hanki-knit__what { font-size: 12px; }
	.hanki-knit__marker { inline-size: 24px; block-size: 24px; margin: -12px 0 0 -12px; }
	.hanki-knit__marker::after { inset: 5px; }
	.hanki-knit__tick:not(.is-major):not(.is-marker) { color: transparent; }
	.hanki-knit__tick.is-major:not(.is-marker):nth-child(n) { font-size: 10px; }
	.hanki-facts { grid-template-columns: 1fr; row-gap: 0; }
	.hanki-facts > * { border-left: 0 !important; padding: 16px 0 18px !important; }
	.hanki-next__date time { font-size: 32px; }
	.hanki-cf { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; }
	.hanki-cf__arrow { font-size: 10px; letter-spacing: 0; text-align: center; }
	.hanki-cf__arrow::after { inline-size: 32px; }
	.hanki-cf__first-label { display: none; }
	.hanki-cf__read { font-size: 11px; }
	.hanki-points { grid-template-columns: 1fr; gap: 20px; margin-top: 48px !important; }
	.hanki-class { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "no body" "spec spec" "swatch swatch"; padding-block: 24px 32px; }
	.hanki-class__no { font-size: 40px; }
	.hanki-class__title { font-size: 22px; }
	.hanki-class__spec { margin-top: 20px; }
	.hanki-class__swatch { max-inline-size: none; margin-top: 20px; }
	.hanki-class__swatch img { aspect-ratio: 5 / 2; }
	.hanki-schedule__table thead { display: none; }
	.hanki-schedule__table, .hanki-schedule__table tbody, .hanki-schedule__table tr, .hanki-schedule__table td { display: block; }
	.hanki-schedule__table tr {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-areas: "date class" "date time" "seats seats" "action action";
		gap: 4px 16px;
		padding-block: 20px;
		border-bottom: 1px solid var(--line);
	}
	.hanki-schedule__table tbody tr:first-child { border-top: 1px solid var(--ink); }
	.hanki-schedule__table td { border: 0; padding: 0 !important; }
	.hanki-schedule__date { grid-area: date; }
	.hanki-schedule__date time { flex-direction: column; gap: 4px; }
	.hanki-schedule__table td.hanki-schedule__class { grid-area: class; display: grid; }
	.hanki-schedule__time { grid-area: time; }
	.hanki-schedule__seats { grid-area: seats; margin-top: 10px !important; }
	.hanki-schedule__action { grid-area: action; text-align: start; }
	.hanki-kits { grid-template-columns: 1fr; }
	.hanki-news__item { grid-template-columns: 1fr; gap: 4px; }
	.hanki-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
	.hanki-page { padding-top: 48px; }
}

/* page helpers: inner pages share one left edge; text keeps a reading width, tables and forms run wide */
.hanki-main.hanki-page > p,
.hanki-main.hanki-page > .hanki-page__lead,
.hanki-main.hanki-page > .wp-block-heading {
	max-inline-size: 36em !important;
	margin-left: max(0px, calc((100% - var(--max)) / 2)) !important;
	margin-right: auto !important;
}
.hanki-page__lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.95; color: var(--ink-muted); margin-block: 0 48px; }
.hanki-list { padding-inline-start: 1.2em; }
.hanki-list li { margin-block-end: 10px; }
.hanki-list li::marker { color: var(--indigo); }
