@keyframes saitias-fadeIn {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes saitias-fadeInSlow {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes saitias-lineGrow {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}
@keyframes saitias-slideUp {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
}

:root {
	--saitias-accent-cyan: #26eeec;
}

.saitias-anim-fade { animation: saitias-fadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.saitias-anim-fade-slow { animation: saitias-fadeInSlow 1.4s ease forwards; }
.saitias-anim-line { animation: saitias-lineGrow 1s cubic-bezier(0.22, 1, 0.36, 1) forwards; transform-origin: left; }
.saitias-anim-slide { animation: saitias-slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.saitias-delay-1 { animation-delay: 0.1s; opacity: 0; }
.saitias-delay-2 { animation-delay: 0.25s; opacity: 0; }
.saitias-delay-3 { animation-delay: 0.4s; opacity: 0; }
.saitias-delay-4 { animation-delay: 0.55s; opacity: 0; }
.saitias-delay-5 { animation-delay: 0.7s; opacity: 0; }
.saitias-delay-6 { animation-delay: 0.85s; opacity: 0; }

.saitias-nav-link { position: relative; }
.saitias-nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 1px;
	background: #26EEEC;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.saitias-nav-link:hover::after,
.saitias-nav-link.saitias-active::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* External links in primary nav: icon after label, layout stable on all widths */
.saitias-external-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	max-width: 100%;
}
.saitias-external-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	line-height: 0;
	color: inherit;
	opacity: 0.75;
	transition: opacity 0.25s ease;
}
.saitias-external-icon svg {
	display: block;
	width: 0.95em;
	height: 0.95em;
	min-width: 10px;
	min-height: 10px;
	max-width: 14px;
	max-height: 14px;
}
.saitias-external-link:hover .saitias-external-icon,
.saitias-external-link:focus-visible .saitias-external-icon {
	opacity: 1;
}
/* Mobile overlay: larger tap target, icon scales with text-3xl */
.saitias-external-link--mobile .saitias-external-icon svg {
	width: 0.85em;
	height: 0.85em;
	min-width: 12px;
	min-height: 12px;
	max-width: 1.1em;
	max-height: 1.1em;
}

.saitias-model-card { transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.saitias-model-card:hover { transform: translateY(-4px); }
.saitias-model-card:hover .saitias-model-img { transform: scale(1.02); }
.saitias-model-img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

i[data-lucide] { display: inline-block; vertical-align: middle; }

/*
 * Site shell: clip horizontal bleed without creating a scrollport.
 * overflow-x:hidden makes overflow-y compute to auto on this box, so it becomes a scroll container and
 * position:sticky (e.g. ABOUT left nav) sticks to the wrong ancestor and scrolls away with the page.
 */
#saitias-app-wrapper {
	overflow-x: clip;
}

.saitias-page-hero-title {
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0em;
}
.saitias-page-hero-title.saitias-model-detail-name {
	text-transform: none;
	letter-spacing: normal;
}

/*
 * Page / post / archive hero: single cyan bar behind glyphs (z-index layering, not z-index:-1).
 * Thickness ~1/9 em. Line width: --saitias-hero-line-width (default 94% of title box). Centered.
 * Text in .saitias-page-hero-title__text (z-index:1). Scoped to h1 — index.php uses h2 for list titles.
 *
 * Per-heading width: set on the h1, e.g.
 *   style="color:#1a1a1a; --saitias-hero-line-width: 88%;"
 * Horizontal position of the line (anchor for translate -50%): --saitias-hero-line-left (default 50%).
 * Or add a modifier class that only sets --saitias-hero-line-width (see presets below).
 */
h1.saitias-page-hero-title {
	--saitias-hero-line-width: 94%;
	--saitias-hero-line-left: 50%;
	position: relative;
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	isolation: isolate;
}

h1.saitias-page-hero-title .saitias-page-hero-title__text {
	position: relative;
	z-index: 1;
}

h1.saitias-page-hero-title::after {
	content: '';
	position: absolute;
	left: var(--saitias-hero-line-left);
	top: 50%;
	width: var(--saitias-hero-line-width);
	height: calc(1em / 9);
	transform: translate(-50%, -50%);
	background: var(--saitias-accent-cyan, #26eeec);
	z-index: 0;
	pointer-events: none;
}

/* Opt out of the cyan bar (News single, privacy, model/archive detail, etc.) */
h1.saitias-page-hero-title.saitias-page-hero-title--no-line::after {
	content: none;
}

/* About / Contact: nudge decorative line ~1% left (of the title box) */
h1.saitias-page-hero-title.saitias-page-hero-title--line-shift-left-1 {
	--saitias-hero-line-left: 49%;
}

/* Optional width presets (add one class to the h1 alongside .saitias-page-hero-title) */
h1.saitias-page-hero-title.saitias-page-hero-title--line-85 {
	--saitias-hero-line-width: 85%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-86 {
	--saitias-hero-line-width: 86%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-88 {
	--saitias-hero-line-width: 88%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-90 {
	--saitias-hero-line-width: 90%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-91 {
	--saitias-hero-line-width: 91%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-92 {
	--saitias-hero-line-width: 92%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-93 {
	--saitias-hero-line-width: 93%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-94 {
	--saitias-hero-line-width: 94%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-96 {
	--saitias-hero-line-width: 96%;
}
h1.saitias-page-hero-title.saitias-page-hero-title--line-100 {
	--saitias-hero-line-width: 100%;
}

/* Sub-pages: less space between fixed header (72px offset) and page title */
.saitias-page-main-inner {
	padding-top: 2rem;
	padding-bottom: 4rem;
}
@media (min-width: 768px) {
	.saitias-page-main-inner {
		padding-top: 3rem;
		padding-bottom: 8rem;
	}
}
/* Same top spacing; original md bottom was py-24 (6rem) */
.saitias-page-main-inner.saitias-page-main-inner--article {
	padding-bottom: 4rem;
}
@media (min-width: 768px) {
	.saitias-page-main-inner.saitias-page-main-inner--article {
		padding-bottom: 6rem;
	}
}

/*
 * Paragraph spacing in editor content.
 * Tailwind CDN Preflight sets p { margin: 0 } after theme styles — use !important.
 */
.saitias-page-content p {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.saitias-page-content p + p {
	margin-top: 0.85em !important;
}

/*
 * Lists in editor content — Tailwind Preflight sets list-style: none on ul/ol.
 * Restore disc / decimal markers and indent so bullets are visible.
 */
.saitias-page-content ul {
	list-style-type: disc;
	list-style-position: outside;
	padding-left: 1.25em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
.saitias-page-content ol {
	list-style-type: decimal;
	list-style-position: outside;
	padding-left: 1.25em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
.saitias-page-content li {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
}
.saitias-page-content ul ul {
	list-style-type: circle;
}
.saitias-page-content ul ul ul {
	list-style-type: square;
}

/* Block tables: header row — light gray (e.g. Quality Inspection & Setup) */
.saitias-page-content .wp-block-table table thead th,
.saitias-page-content .wp-block-table table thead td {
	background-color: #eae8e3;
	color: #1a1a1a;
	font-weight: 600;
}
/* No thead: first row in tbody (centered header cells); tbody is first child, or after colgroup */
.saitias-page-content .wp-block-table table > tbody:first-child > tr:first-child td.has-text-align-center,
.saitias-page-content .wp-block-table table > colgroup + tbody > tr:first-child td.has-text-align-center {
	background-color: #eae8e3;
	color: #1a1a1a;
	font-weight: 600;
}

/*
 * Privacy Policy (/privacy/, /privacy-policy/ + Polylang): restore heading/body/list/table against Preflight.
 * Scoped to .saitias-privacy-page only — does not affect other pages.
 */
.saitias-privacy-page .saitias-page-content {
	font-size: 0.875rem;
	line-height: 1.7;
}
.saitias-privacy-page .saitias-page-content h1,
.saitias-privacy-page .saitias-page-content h2,
.saitias-privacy-page .saitias-page-content h3,
.saitias-privacy-page .saitias-page-content h4,
.saitias-privacy-page .saitias-page-content h5,
.saitias-privacy-page .saitias-page-content h6 {
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
}
.saitias-privacy-page .saitias-page-content h1 {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
}
@media (min-width: 768px) {
	.saitias-privacy-page .saitias-page-content h1 {
		font-size: 1.625rem;
	}
}
.saitias-privacy-page .saitias-page-content h2 {
	font-size: 1.25rem;
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e0ddd8;
}
@media (min-width: 768px) {
	.saitias-privacy-page .saitias-page-content h2 {
		font-size: 1.375rem;
	}
}
.saitias-privacy-page .saitias-page-content h3 {
	font-size: 1.0625rem;
	margin: 1.5rem 0 0.5rem;
}
@media (min-width: 768px) {
	.saitias-privacy-page .saitias-page-content h3 {
		font-size: 1.125rem;
	}
}
.saitias-privacy-page .saitias-page-content h4 {
	font-size: 1rem;
	margin: 1.25rem 0 0.375rem;
}
.saitias-privacy-page .saitias-page-content h5 {
	font-size: 0.9375rem;
	margin: 1rem 0 0.25rem;
}
.saitias-privacy-page .saitias-page-content h6 {
	font-size: 0.875rem;
	margin: 1rem 0 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.saitias-privacy-page .saitias-page-content > h2:first-child,
.saitias-privacy-page .saitias-page-content > h3:first-child,
.saitias-privacy-page .saitias-page-content > :first-child h2:first-child,
.saitias-privacy-page .saitias-page-content > :first-child h3:first-child {
	margin-top: 0;
}
.saitias-privacy-page .saitias-page-content > .wp-block-group + .wp-block-group {
	margin-top: 1.5rem;
}
.saitias-privacy-page .saitias-page-content p {
	margin-top: 0 !important;
	margin-bottom: 1rem !important;
}
.saitias-privacy-page .saitias-page-content p + p {
	margin-top: 0 !important;
}
.saitias-privacy-page .saitias-page-content ul,
.saitias-privacy-page .saitias-page-content ol {
	margin-top: 0.5rem !important;
	margin-bottom: 1rem !important;
	padding-left: 1.35em;
}
.saitias-privacy-page .saitias-page-content li + li {
	margin-top: 0.35em;
}
.saitias-privacy-page .saitias-page-content .wp-block-table {
	overflow-x: auto;
	margin: 1rem 0;
	-webkit-overflow-scrolling: touch;
}
.saitias-privacy-page .saitias-page-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: inherit;
	line-height: 1.5;
}
.saitias-privacy-page .saitias-page-content .wp-block-table th,
.saitias-privacy-page .saitias-page-content .wp-block-table td {
	border: 1px solid #e0ddd8;
	padding: 0.5rem 0.75rem;
	vertical-align: top;
	text-align: left;
}
.saitias-privacy-page .saitias-page-content .wp-block-table figcaption {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: #666;
}

/* Front page: MODELS column — min-height for hover background (contain) display area */
#saitias-model-hover-area {
	min-height: 300px;
}
@media (min-width: 768px) {
	#saitias-model-hover-area {
		min-height: 520px;
		/* Breathing room below column top (model name links) */
		padding-top: 2.5rem;
	}
}

/* Front page: MODELS child hover backgrounds (featured image + overlay, or gray placeholder) */
.saitias-model-hover-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
.saitias-model-hover-bg.has-image {
	background-color: #eae8e3;
}
/* Featured image: brightness + opacity so base color shows through (no white veil) */
.saitias-model-hover-bg.has-image::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--saitias-model-bg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(1.22) contrast(1.02);
	opacity: 0.22;
}
.saitias-model-hover-bg--placeholder {
	background-color: #f5f5f5;
}

/* Front page: watermark emblem behind model list — contain so full logo stays visible, no horizontal bleed on narrow screens */
#saitias-model-logo-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;
	width: min(100%, 450px);
	max-width: 100%;
	aspect-ratio: 1;
	pointer-events: none;
	transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#saitias-model-logo-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--saitias-emblem-url);
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0.04;
}

/* PC: must be AFTER base #saitias-model-logo-bg or `top: 50%` wins the cascade. Shift watermark toward top of the column. */
@media (min-width: 768px) {
	#saitias-model-logo-bg {
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: min(100%, 400px);
	}
}

#saitias-model-hover-area .saitias-model-link {
	text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85), 0 0 1px rgba(255, 255, 255, 0.7);
}
#saitias-model-hover-area .saitias-model-link::before {
	height: 2px;
}

.saitias-model-link { position: relative; overflow: hidden; }
.saitias-model-link::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 1px;
	background: var(--saitias-accent-cyan);
	transform: translateX(-50%);
	transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.saitias-model-link:hover::before { width: 100%; }
.saitias-model-link:hover { opacity: 0.7; }

.saitias-stock-badge { transition: all 0.3s ease; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #999; border-radius: 2px; }

#saitias-mobile-menu {
	transform: translateX(100%);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 40;
}
#saitias-mobile-menu.saitias-open {
	transform: translateX(0);
	z-index: 60;
}

.saitias-lang-switch {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #e0ddd8;
	border-radius: 9999px;
	overflow: hidden;
	box-sizing: border-box;
}
.saitias-lang-switch > a {
	flex: 1 1 0;
	min-width: 0;
}
.saitias-lang-switch a,
.saitias-lang-switch span {
	padding: 8px 12px;
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 0;
	background: transparent;
	color: #888;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.saitias-lang-switch a:hover { opacity: 0.75; }
.saitias-lang-switch li.current-lang a:hover,
.saitias-lang-switch .saitias-lang-active:hover {
	opacity: 1;
}
.saitias-lang-switch > a.saitias-lang-active:first-of-type {
	border-radius: 9999px 0 0 9999px;
}
.saitias-lang-switch > a.saitias-lang-active:last-of-type {
	border-radius: 0 9999px 9999px 0;
}
.saitias-lang-switch > a.saitias-lang-active:only-of-type {
	border-radius: 9999px;
}
.saitias-lang-switch .saitias-lang-active {
	background: #1a1a1a;
	color: #f8f7f5;
}

/* Polylang often outputs a list */
.saitias-lang-switch ul {
	display: flex;
	flex: 1 1 auto;
	align-self: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	align-items: stretch;
	min-height: 0;
	min-width: 0;
	box-sizing: border-box;
}
.saitias-lang-switch li {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: stretch;
	flex: 1 1 0;
	min-width: 0;
}
.saitias-lang-switch li::marker {
	content: none;
}
.saitias-lang-switch li a {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 100%;
	padding: 8px 12px;
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	color: #888;
	box-sizing: border-box;
}
.saitias-lang-switch li.current-lang {
	background-color: #1a1a1a;
	overflow: hidden;
}
.saitias-lang-switch li.current-lang.lang-item-first {
	border-radius: 9999px 0 0 9999px;
}
.saitias-lang-switch li.current-lang.lang-item-last {
	border-radius: 0 9999px 9999px 0;
}
.saitias-lang-switch li.current-lang.lang-item-first.lang-item-last {
	border-radius: 9999px;
}
.saitias-lang-switch li.current-lang a {
	background-color: #1a1a1a;
	color: #f8f7f5;
}
.saitias-lang-switch li.current-lang.lang-item-first a {
	border-radius: 9999px 0 0 9999px;
}
.saitias-lang-switch li.current-lang.lang-item-last a {
	border-radius: 0 9999px 9999px 0;
}
.saitias-lang-switch li.current-lang.lang-item-first.lang-item-last a {
	border-radius: 9999px;
}

.saitias-form-input {
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	padding: 12px 0;
	width: 100%;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 14px;
	outline: none;
	transition: border-color 0.3s ease;
}
.saitias-form-input:focus { border-bottom-color: #000; }
.saitias-form-textarea {
	border: 1px solid #ccc;
	background: transparent;
	padding: 12px;
	width: 100%;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 14px;
	outline: none;
	resize: vertical;
	min-height: 120px;
	transition: border-color 0.3s ease;
}
.saitias-form-textarea:focus { border-color: #000; }

/* Contact Form 7 — labels, spacing (readable gaps), underline inputs + submit (page-contact.php) */
.saitias-contact-cf7 .wpcf7-form {
	margin: 0;
}
.saitias-contact-cf7 .wpcf7-form p {
	margin: 0;
}
/* One block = label + control; 16–24px between blocks (responsive-friendly rems) */
.saitias-contact-cf7 .saitias-cf7-field {
	margin-bottom: clamp(1rem, 0.85rem + 0.35vw, 1.5rem);
}
/*
 * Labels: #saitias-app-wrapper sets inline color:#1a1a1a; Tailwind CDN loads after theme.css
 * and Preflight can win the cascade — use #saitias-app-wrapper + form + !important for caption color.
 */
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form .saitias-cf7-label {
	display: block;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #555 !important;
	margin-bottom: 1.5rem !important;
	-webkit-font-smoothing: antialiased;
}
/* CF7 plain labels (no .saitias-cf7-label span) — caption tone; gap before control */
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form .saitias-cf7-field > label:not(:has(.saitias-cf7-label)) {
	color: #555 !important;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form .saitias-cf7-field > label:not(:has(.saitias-cf7-label)) .wpcf7-form-control-wrap {
	margin-top: 1.5rem;
}
.saitias-contact-cf7 label {
	display: block;
	color: #555 !important;
	margin-bottom: 1rem !important;
}
.saitias-contact-cf7 .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}
/*
 * Field margin + input color: Tailwind CDN injects after this file — base rules in theme.css can lose.
 * Enforced again in saitias_cf7_form_cascade_fixes() (wp_footer) with !important.
 */
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form input.wpcf7-form-control:not(.wpcf7-file):not([type='submit']),
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form input.saitias-form-input:not([type='submit']) {
	margin-bottom: 0.75rem !important;
	color: #1a1a1a !important;
}
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form textarea.wpcf7-form-control {
	margin-bottom: 0.5rem !important;
	color: #1a1a1a !important;
}
#saitias-app-wrapper .saitias-contact-cf7 form.wpcf7-form input[type='file'].wpcf7-file {
	margin-bottom: 0.75rem !important;
	color: #1a1a1a !important;
}
/* Exclude [type=submit] — CF7 adds wpcf7-form-control to the button; else it gets “underline field” styles and disappears */
.saitias-contact-cf7 input.wpcf7-form-control:not(.wpcf7-file):not(.saitias-form-input):not([type='submit']) {
	border: none;
	border-bottom: 1px solid #ccc;
	background: transparent;
	padding: 12px 0;
	width: 100%;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	outline: none;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}
/* Message / textarea — framed box (aligned with .saitias-form-textarea) */
.saitias-contact-cf7 textarea.wpcf7-form-control,
.saitias-contact-cf7 textarea.saitias-form-textarea {
	border: 1px solid #ccc;
	background: transparent;
	padding: 14px 16px;
	width: 100%;
	min-height: 160px;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 14px;
	line-height: 1.65;
	outline: none;
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
}
.saitias-contact-cf7 input.wpcf7-form-control:not(.wpcf7-file):not(.saitias-form-input):not([type='submit']):focus {
	border-bottom-color: #000;
}
.saitias-contact-cf7 textarea.wpcf7-form-control:focus,
.saitias-contact-cf7 textarea.saitias-form-textarea:focus {
	border-color: #000;
}
.saitias-contact-cf7 input[type='file'].wpcf7-file {
	border: none;
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.5;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
}
.saitias-contact-cf7 input[type='submit'].saitias-cf7-submit,
.saitias-contact-cf7 input[type='submit'] {
	margin-top: 0.75rem;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 1rem 2.5rem;
	background: #1a1a1a;
	color: #f8f7f5;
	border: none;
	cursor: pointer;
	transition: opacity 0.3s ease;
}
.saitias-contact-cf7 input[type='submit'].saitias-cf7-submit:hover,
.saitias-contact-cf7 input[type='submit']:hover {
	opacity: 0.7;
}
.saitias-contact-cf7 .wpcf7-spinner {
	margin-left: 8px;
}
.saitias-contact-cf7 .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem;
	border-width: 1px;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 14px;
}
.saitias-contact-cf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
	color: #b91c1c;
}

.saitias-about-nav-btn { cursor: pointer; }
.saitias-about-panel { display: none; }
.saitias-about-panel.saitias-visible { display: block; }

/* ABOUT / Dealer List / News: fixed viewport emblem (opacity 0.04 like TOP); content scrolls — fixed layer, not background-attachment:fixed (iOS) */
.saitias-fixed-emblem-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-size: min(450px, 90vw);
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0.04;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
body.page-about #saitias-app-wrapper > footer,
body.page-dealer-list #saitias-app-wrapper > footer,
body.blog #saitias-app-wrapper > footer,
body.archive #saitias-app-wrapper > footer,
body.single-post #saitias-app-wrapper > footer {
	position: relative;
	z-index: 1;
}

/* ABOUT (with child panels): single column on mobile */
#saitias-about-root.saitias-about-root {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/*
 * ABOUT split (md+): fixed viewport band below site header — hero + left column stay; right column scrolls.
 * Uses explicit height + flex 1 1 0% / min-height:0 so overflow-y:auto gets a real scrollport (grid+height:100% did not).
 */
@media (min-width: 768px) {
	.saitias-about-page--split {
		display: flex;
		flex-direction: column;
		height: calc(100vh - 72px);
		min-height: calc(100vh - 72px);
		overflow: hidden;
	}

	.saitias-about-page--split .saitias-about-main-inner--split {
		flex: 1 1 0%;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.saitias-about-page--split .saitias-about-hero {
		flex-shrink: 0;
	}

	/*
	 * Column widths: use CSS Grid + fr so the split is reliable (flex % basis can be subtle or
	 * resolve oddly next to flex:1 siblings). Tailwind loads after theme.css — fr tracks beat equal flex-grow.
	 */
	.saitias-about-page--split #saitias-about-root.saitias-about-root {
		flex: 1 1 0%;
		min-height: 0;
		display: grid;
		grid-template-columns: 0.4fr 0.6fr;
		grid-template-rows: minmax(0, 1fr);
		gap: 6rem;
		align-items: stretch;
	}

	.saitias-about-page--split #saitias-about-nav-section {
		min-width: 0;
		min-height: 0;
		align-self: start;
		transform: none !important;
	}

	.saitias-about-page--split .saitias-about-panels-wrap {
		min-width: 0;
		min-height: 0;
		width: 100%;
		height: 100%;
		max-height: 100%;
		align-self: stretch;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		/* Long panel (e.g. Concept) shows a scrollbar — reserve gutter so the column width matches short panels */
		scrollbar-gutter: stable;
		/* Core block layout uses these vars for constrained / wide widths — scope to this column on md+ */
		--wp--style--global--content-size: 100%;
		--wp--style--global--wide-size: 100%;
	}

	/* Match Tailwind max-w-7xl (80rem); avoid any flex/grid min-content chain shrinking this band on md+ */
	.saitias-about-page--split > .max-w-7xl.saitias-page-main-inner {
		width: 100%;
		max-width: 80rem;
		box-sizing: border-box;
	}
}

@media (max-width: 767px) {
	.saitias-about-page--split {
		display: block;
		height: auto;
		min-height: unset;
		overflow: visible;
	}

	.saitias-about-page--split .saitias-about-main-inner--split {
		display: block;
		min-height: unset;
	}

	.saitias-about-page--split #saitias-about-root.saitias-about-root {
		display: flex;
		flex-direction: column;
		min-height: unset;
		grid-template-columns: unset;
		grid-template-rows: unset;
	}

	.saitias-about-page--split .saitias-about-panels-wrap {
		overflow: visible;
		min-height: unset;
		min-width: unset;
		height: auto;
		max-height: none;
		align-self: auto;
	}
}

/* ABOUT: nav item labels + in-page headings — Helvetica Bold */
.saitias-about-page #saitias-about-root .saitias-about-nav-btn,
.saitias-about-page #saitias-about-root .saitias-about-nav-btn span {
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
}
.saitias-about-page #saitias-about-root .saitias-about-panel > h2,
.saitias-about-page .saitias-page-content h1,
.saitias-about-page .saitias-page-content h2,
.saitias-about-page .saitias-page-content h3,
.saitias-about-page .saitias-page-content h4,
.saitias-about-page .saitias-page-content h5,
.saitias-about-page .saitias-page-content h6 {
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
}

/*
 * ABOUT /about/ right panel (child page content): WordPress Group "constrained" layout injects
 * max-width + horizontal auto margins on direct children (contentSize / ~650px). Panels that use
 * only that structure (e.g. Concept) look narrower than siblings with full-width blocks — fill the column.
 *
 * Desktop (md+): --wp--style--global--content-size / --wide-size are set on .saitias-about-panels-wrap
 * (see split layout block above) so core layout CSS resolves to the column width.
 */

.saitias-about-page .saitias-about-panels-wrap .saitias-page-content {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.saitias-about-page .saitias-about-panels-wrap .saitias-page-content .wp-block-post-content,
.saitias-about-page .saitias-about-panels-wrap .saitias-page-content .entry-content {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

.saitias-about-page .saitias-about-panels-wrap .saitias-page-content > .wp-block-group.is-layout-constrained,
.saitias-about-page .saitias-about-panels-wrap .saitias-page-content > .wp-block-group.wp-block-group-is-layout-constrained {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

.saitias-about-page .saitias-about-panels-wrap .saitias-page-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.saitias-about-page .saitias-about-panels-wrap .saitias-page-content .wp-block-group-is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.saitias-about-page .saitias-about-panels-wrap .saitias-page-content .is-layout-constrained > .alignwide,
.saitias-about-page .saitias-about-panels-wrap .saitias-page-content .wp-block-group-is-layout-constrained > .alignwide {
	max-width: 100% !important;
}

/* Mobile: scroll nav → panel aligns h2 below fixed header (72px) */
@media (max-width: 767px) {
	#saitias-about-root .saitias-about-panel h2 {
		scroll-margin-top: 72px;
	}
}

/* MODELS detail: ACF gallery (Swiper) + lightbox — scoped to this block only */
.saitias-model-gallery-root {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}
.saitias-model-gallery-root .saitias-model-gallery-swiper {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}
.saitias-model-gallery-root .swiper-wrapper {
	min-width: 0;
}
.saitias-model-gallery-root .saitias-model-gallery-slide {
	min-width: 0;
	box-sizing: border-box;
}
.saitias-model-gallery-root .saitias-model-gallery-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	background-color: transparent;
	overflow: hidden;
}
/* PC: 元サイズ（幅×1.5）から縦を 100px 短く。幅は従来どおり 100% */
@media (min-width: 768px) {
	.saitias-model-gallery-root .saitias-model-gallery-frame {
		aspect-ratio: auto;
		height: 0;
		padding-top: calc(150% - 100px);
	}
}
.saitias-model-gallery-root .saitias-model-gallery-open {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: zoom-in;
}
/* 枠いっぱいに収めつつ全体表示。小さい画像は拡大しない（width/height: auto） */
.saitias-model-gallery-root .saitias-model-gallery-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
	vertical-align: middle;
}
.saitias-model-gallery-root .saitias-model-gallery-prev,
.saitias-model-gallery-root .saitias-model-gallery-next {
	color: #1a1a1a;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: 0;
	top: 50%;
	transform: translateY(-50%);
	border: 1px solid #e0ddd8;
	background: rgba(248, 247, 245, 0.92);
	border-radius: 0;
}
.saitias-model-gallery-root .saitias-model-gallery-prev::after,
.saitias-model-gallery-root .saitias-model-gallery-next::after {
	font-size: 1rem;
	font-weight: 700;
}
.saitias-model-gallery-root .saitias-model-gallery-pagination {
	position: relative;
	margin-top: 1rem;
}
.saitias-model-gallery-root .saitias-model-gallery-pagination .swiper-pagination-bullet {
	background: #cfcac3;
	opacity: 1;
}
.saitias-model-gallery-root .saitias-model-gallery-pagination .swiper-pagination-bullet-active {
	background: #1a1a1a;
}

/* Optional caption below gallery (ACF note_text); only rendered when filled */
.saitias-model-note {
	margin: 1.125rem 0 0;
	padding: 0;
	max-width: 100%;
	box-sizing: border-box;
	font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
	font-size: 0.75rem;
	line-height: 1.65;
	font-weight: 400;
	color: #777672;
	font-style: italic;
	word-break: break-word;
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.saitias-model-note {
		margin-top: 1.25rem;
		font-size: 0.8125rem;
		line-height: 1.6;
	}
}

.saitias-model-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}
.saitias-model-lightbox[hidden] {
	display: none !important;
}
.saitias-model-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 0;
}
.saitias-model-lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(30, 30, 30, 0.55);
	color: #fff;
	cursor: pointer;
	border-radius: 0;
}
.saitias-model-lightbox-close:hover {
	opacity: 0.85;
}
.saitias-model-lightbox-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: min(96vw, 1200px);
	height: min(92vh, 900px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.saitias-model-lightbox .saitias-model-lightbox-swiper {
	width: 100%;
	height: 100%;
	position: relative;
}
.saitias-model-lightbox .saitias-model-lightbox-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 100%;
}
.saitias-model-lightbox .saitias-model-lightbox-img {
	max-width: 100%;
	max-height: min(88vh, 860px);
	width: auto;
	height: auto;
	object-fit: contain;
}
.saitias-model-lightbox .saitias-model-lightbox-prev,
.saitias-model-lightbox .saitias-model-lightbox-next {
	color: #fff;
	width: 2.75rem;
	height: 2.75rem;
	margin-top: 0;
	top: 50%;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(30, 30, 30, 0.45);
	border-radius: 0;
}
.saitias-model-lightbox .saitias-model-lightbox-prev::after,
.saitias-model-lightbox .saitias-model-lightbox-next::after {
	font-size: 1rem;
	font-weight: 700;
}
.saitias-model-lightbox .saitias-model-lightbox-pagination {
	bottom: 0.5rem !important;
}
.saitias-model-lightbox .saitias-model-lightbox-pagination .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
}
.saitias-model-lightbox .saitias-model-lightbox-pagination .swiper-pagination-bullet-active {
	background: #fff;
}

body.saitias-model-lightbox-open {
	overflow: hidden;
}

/* Polylang / WPML: language switcher often injects .lang-item — keep header tidy */
.saitias-header-inner .pll-parent-menu-item { list-style: none; }

/* News archive: JA-only fallback when UI language is English */
.saitias-news-ja-only .saitias-news-ja-only-badge { vertical-align: middle; }

/*
 * Legacy post content (imported flex rows) — flex items default to min-width:auto and can
 * refuse to shrink, causing horizontal overflow on narrow screens.
 */
.saitias-specs-legacy-content .flex.justify-between {
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem 1.5rem;
}
.saitias-specs-legacy-content .flex.justify-between > span:last-child {
	min-width: 0;
	flex: 1 1 10rem;
	word-break: break-word;
}
@media (max-width: 767px) {
	.saitias-specs-legacy-content .flex.justify-between > span:last-child {
		text-align: left !important;
	}
}

/* Editor images / wide blocks — avoid overflow past the column */
.saitias-page-content img,
.saitias-specs-legacy-content img {
	max-width: 100%;
	height: auto;
}
.saitias-page-content .alignfull,
.saitias-specs-legacy-content .alignfull {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* MODELS detail: ACF specs table + oEmbed (YouTube / Instagram) */
.saitias-specs-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.saitias-specs-table .saitias-specs-value {
	word-break: break-word;
}
.saitias-specs-oembed {
	margin-top: 0.35rem;
	max-width: 100%;
}
.saitias-specs-oembed iframe {
	max-width: 100%;
	width: 100% !important;
}
/*
 * Instagram iframe fallback
 * - Table cells use Tailwind py-4 (~1rem) — trim when row contains IG embed (:has).
 * - IG’s /embed/ page often leaves chrome under the video; a slightly shorter ratio + overflow clips it.
 * - line-height:0 on the cell kills leftover line-box gap under the iframe wrapper.
 */
.saitias-specs-table tr:has(.saitias-specs-oembed--instagram) .saitias-specs-label,
.saitias-specs-table tr:has(.saitias-specs-oembed--instagram) .saitias-specs-value,
.saitias-specs-table tr.saitias-specs-row--instagram .saitias-specs-label,
.saitias-specs-table tr.saitias-specs-row--instagram .saitias-specs-value {
	padding-top: 0.75rem;
	/* Keep a clear gap above row border — do not use negative margins on the embed (they overlap border-b). */
	padding-bottom: 0.65rem;
}
.saitias-specs-table tr:has(.saitias-specs-oembed--instagram) .saitias-specs-value,
.saitias-specs-table tr.saitias-specs-row--instagram .saitias-specs-value {
	line-height: 0;
}
.saitias-specs-oembed.saitias-specs-oembed--instagram {
	margin-top: 0;
	margin-bottom: 0;
	max-width: 540px;
	margin-inline: auto;
	line-height: 0;
	font-size: 0;
}
.saitias-specs-oembed--instagram .saitias-specs-ig-frame {
	position: relative;
	width: 100%;
	max-width: 540px;
	/* Shorter than 9/16: crops IG /embed/ footer + “View on Instagram” chrome */
	aspect-ratio: 9 / 14;
	max-height: min(82vh, 840px);
	overflow: hidden;
	background: #fafafa;
}
.saitias-specs-oembed--instagram .saitias-specs-ig-iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100% !important;
	/* Taller than frame: bottom spills out and is clipped (removes inner white band) */
	height: 104% !important;
	max-width: none !important;
	border: 0;
	display: block;
}
@media (max-width: 767px) {
	.saitias-specs-table .saitias-specs-row {
		display: block;
		border-bottom: 1px solid #e0ddd8;
		padding: 0.75rem 0;
	}
	.saitias-specs-table .saitias-specs-label,
	.saitias-specs-table .saitias-specs-value {
		display: block;
		width: 100% !important;
		text-align: left !important;
		padding-top: 0.25rem;
		padding-bottom: 0.25rem;
	}
	.saitias-specs-table .saitias-specs-label {
		padding-bottom: 0.35rem;
	}
	/* After generic mobile padding — IG row: compact but clear of border-b */
	.saitias-specs-table tr:has(.saitias-specs-oembed--instagram) .saitias-specs-label,
	.saitias-specs-table tr:has(.saitias-specs-oembed--instagram) .saitias-specs-value,
	.saitias-specs-table tr.saitias-specs-row--instagram .saitias-specs-label,
	.saitias-specs-table tr.saitias-specs-row--instagram .saitias-specs-value {
		padding-top: 0.35rem;
		padding-bottom: 0.5rem;
	}
}

/* MODELS / Dealer List / Archives: fixed “scroll to top” (HTML conditional in footer.php) */
.saitias-scroll-top {
	display: none;
}
@media (max-width: 767px) {
	.saitias-scroll-top {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		right: 0.75rem;
		bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
		z-index: 30;
		width: 2.25rem;
		height: 2.25rem;
		margin: 0;
		padding: 0;
		border: 1px solid #e0ddd8;
		border-radius: 0;
		background: rgba(248, 247, 245, 0.95);
		color: #1a1a1a;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.saitias-scroll-top:active {
		opacity: 0.85;
	}
}

/* Archives pagination */
.saitias-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}
.saitias-pagination li { display: inline-flex; }
.saitias-pagination a,
.saitias-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #e0ddd8;
	font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-decoration: none;
	color: #1a1a1a;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.saitias-pagination a:hover { background: #eae8e3; }
.saitias-pagination .current {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}
.saitias-pagination .dots {
	border: none;
	pointer-events: none;
}

/*
 * Direct Order (/direct-order/) — single-column redesign
 * Sections: title → video → description → how-it-works → downloads → links
 */

/*
 * Direct Order — mobile h1: when the title wraps to 2+ lines, a single h1::after bar (50% of the
 * whole block) misaligns, so it is hidden and each line uses the same per-line band as the old
 * word-split path (box-decoration-break on .saitias-page-hero-title__text). Single-line titles on
 * mobile also get one band on the inner span (~94% width, centered in content box).
 * Optional: text-wrap: balance + CJK keep-all for nicer breaks.
 *
 * Tablet/desktop: slightly inset vs full box width so the cyan bar does not bleed past glyphs.
 */
@media (min-width: 768px) {
	.saitias-direct-order-page h1.saitias-page-hero-title {
		--saitias-hero-line-width: 94%;
	}
	/* Two+ lines: single ::after can extend past shorter lines — tighten slightly (class from main.js). */
	.saitias-direct-order-page h1.saitias-page-hero-title.saitias-page-hero-title--wrapped {
		--saitias-hero-line-width: 90%;
	}
}

@media (max-width: 767px) {
	.saitias-direct-order-page h1.saitias-page-hero-title {
		max-width: 100%;
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
		text-wrap: balance;
	}
	.saitias-direct-order-page h1.saitias-page-hero-title:lang(ja) {
		overflow-wrap: break-word;
		word-break: keep-all;
	}
	.saitias-direct-order-page h1.saitias-page-hero-title::after {
		display: none;
	}
	/* One span (default) — per-line band behind glyphs */
	.saitias-direct-order-page h1.saitias-page-hero-title .saitias-page-hero-title__text:not(.saitias-page-hero-title__text--word-split) {
		padding: 0 0.06em;
		box-decoration-break: clone;
		-webkit-box-decoration-break: clone;
		background-image: linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(50% - (1em / 18)),
			var(--saitias-accent-cyan, #26eeec) calc(50% - (1em / 18)),
			var(--saitias-accent-cyan, #26eeec) calc(50% + (1em / 18)),
			transparent calc(50% + (1em / 18)),
			transparent 100%
		);
		background-repeat: no-repeat;
		background-origin: content-box;
		background-size: 94% 100%;
		background-position: center center;
	}
	/* Wrapped title (2+ lines): per-line band — shorter so the right end does not bleed past glyphs. */
	.saitias-direct-order-page h1.saitias-page-hero-title.saitias-page-hero-title--wrapped .saitias-page-hero-title__text:not(.saitias-page-hero-title__text--word-split) {
		background-size: 88% 100%;
	}
	/* Optional: two-word split from PHP (do-first + do-rest) */
	.saitias-direct-order-page h1.saitias-page-hero-title .saitias-page-hero-title__text--word-split {
		padding: 0;
		background: none;
	}
	.saitias-direct-order-page h1.saitias-page-hero-title .saitias-page-hero-title__do-first,
	.saitias-direct-order-page h1.saitias-page-hero-title .saitias-page-hero-title__do-rest {
		position: relative;
		z-index: 1;
		background-image: linear-gradient(
			to bottom,
			transparent 0,
			transparent calc(50% - (1em / 18)),
			var(--saitias-accent-cyan, #26eeec) calc(50% - (1em / 18)),
			var(--saitias-accent-cyan, #26eeec) calc(50% + (1em / 18)),
			transparent calc(50% + (1em / 18)),
			transparent 100%
		);
		background-repeat: no-repeat;
	}
	.saitias-direct-order-page h1.saitias-page-hero-title .saitias-page-hero-title__do-first {
		display: inline-block;
		overflow: hidden;
		vertical-align: baseline;
		max-width: 100%;
		padding: 0;
		box-decoration-break: slice;
		-webkit-box-decoration-break: slice;
		background-origin: content-box;
		background-clip: padding-box;
		background-size: 87% 100%;
		background-position: 48% center;
		contain: paint;
	}
	.saitias-direct-order-page h1.saitias-page-hero-title .saitias-page-hero-title__do-rest {
		box-decoration-break: clone;
		-webkit-box-decoration-break: clone;
		padding: 0;
		background-origin: content-box;
		background-size: 94% 100%;
		background-position: center center;
	}
	.saitias-direct-order-page h1.saitias-page-hero-title.saitias-page-hero-title--wrapped .saitias-page-hero-title__do-rest {
		background-size: 88% 100%;
	}
}

/* Shared section spacing */
.saitias-direct-order-page .saitias-do-section {
	margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.saitias-direct-order-page .saitias-do-section:last-child {
	margin-bottom: 0;
}

/* Section titles */
.saitias-direct-order-page .saitias-do-section-title {
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
	letter-spacing: 0.02em;
}

/* 2. Video */
.saitias-direct-order-page .saitias-do-video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1a1a1a;
	overflow: hidden;
}
.saitias-direct-order-page .saitias-do-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* 3. Description */
.saitias-direct-order-page .saitias-do-lead {
	line-height: 1.85;
	color: #555;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.saitias-direct-order-page .saitias-do-lead + .saitias-do-lead {
	margin-top: 1em !important;
}

/* 4. How it works */
.saitias-direct-order-page .saitias-do-hiw-section {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid #e0ddd8;
	background: #fafaf8;
}
.saitias-direct-order-page .saitias-do-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hiw-step;
}
.saitias-direct-order-page .saitias-do-steps li {
	counter-increment: hiw-step;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid #eae8e3;
	color: #444;
	line-height: 1.6;
}
.saitias-direct-order-page .saitias-do-steps li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.saitias-direct-order-page .saitias-do-steps li::before {
	content: counter(hiw-step);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #1a1a1a;
	color: #f8f7f5;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
}

/* 5. Download grid */
.saitias-direct-order-page .saitias-do-download-desc {
	margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}
.saitias-direct-order-page .saitias-do-download-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 1rem;
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
.saitias-direct-order-page .saitias-do-download-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) 1rem;
	border: 1px solid #e0ddd8;
	text-align: center;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.saitias-direct-order-page .saitias-do-download-card:hover {
	border-color: #ccc;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.saitias-direct-order-page .saitias-do-download-model {
	font-size: 1.125rem;
	font-weight: 400;
	color: #1a1a1a;
	letter-spacing: 0.02em;
}
.saitias-direct-order-page .saitias-do-btn-download {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.5rem;
	background: #1a1a1a;
	color: #f8f7f5;
	text-decoration: none;
	transition: opacity 0.25s ease;
	white-space: nowrap;
}
.saitias-direct-order-page .saitias-do-btn-download:hover {
	opacity: 0.75;
}
.saitias-direct-order-page .saitias-do-btn-download svg {
	flex-shrink: 0;
}
.saitias-direct-order-page .saitias-do-download-meta {
	font-size: 0.6875rem;
	color: #999;
}
.saitias-direct-order-page .saitias-do-download-unavailable {
	color: #bbb;
	padding: 0.625rem 1.5rem;
	border: 1px dashed #ddd;
}
.saitias-direct-order-page .saitias-do-download-contact {
	color: #555;
}
.saitias-direct-order-page .saitias-do-download-contact a {
	color: #1a1a1a;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
}
.saitias-direct-order-page .saitias-do-download-contact a:hover {
	opacity: 0.65;
}

/* 6. Related links */
.saitias-direct-order-page .saitias-do-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
}
.saitias-direct-order-page .saitias-do-link-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
	border: 1px solid #e0ddd8;
	text-decoration: none;
	color: #1a1a1a;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}
.saitias-direct-order-page .saitias-do-link-card:hover {
	border-color: #ccc;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.saitias-direct-order-page .saitias-do-link-label {
	font-size: 1.125rem;
	font-weight: 400;
	white-space: nowrap;
}
.saitias-direct-order-page .saitias-do-link-desc {
	flex: 1;
	color: #888;
}
.saitias-direct-order-page .saitias-do-link-arrow {
	flex-shrink: 0;
	color: #bbb;
	transition: transform 0.25s ease, color 0.25s ease;
}
.saitias-direct-order-page .saitias-do-link-card:hover .saitias-do-link-arrow {
	transform: translateX(4px);
	color: #1a1a1a;
}

/* Legacy post_content classes (kept for backward compat if DB content is still rendered) */
.saitias-direct-order-page .saitias-direct-order-btn-download {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 2rem;
	background: #1a1a1a;
	color: #f8f7f5;
	text-decoration: none;
	transition: opacity 0.25s ease;
}
.saitias-direct-order-page .saitias-direct-order-btn-download:hover {
	opacity: 0.75;
}
.saitias-direct-order-page .saitias-direct-order-download-wrap {
	margin: 0 0 0.75rem;
}
.saitias-direct-order-page .saitias-direct-order-video-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1a1a1a;
	overflow: hidden;
}
.saitias-direct-order-page .saitias-direct-order-video-inner iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 767px) {
	/*
	 * Download cards: 2列は ~150px 台になり、.saitias-do-btn-download の
	 * white-space: nowrap + padding で必ずはみ出す。1列にしてビュー幅内に収める。
	 */
	.saitias-direct-order-page .saitias-do-download-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.saitias-direct-order-page .saitias-do-download-card {
		min-width: 0;
	}
	.saitias-direct-order-page .saitias-do-btn-download {
		max-width: 100%;
		box-sizing: border-box;
		justify-content: center;
		text-align: center;
		white-space: normal;
		flex-wrap: wrap;
		row-gap: 0.25rem;
		/* 横を切らずタップ域を保つ */
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.saitias-direct-order-page .saitias-do-download-model {
		overflow-wrap: anywhere;
	}
	.saitias-direct-order-page .saitias-do-link-desc {
		display: none;
	}
}

/*
 * Layout shift (short vs long page): theme previously did not enqueue style.css, so base fixes never ran.
 * Tailwind CDN Preflight injects after linked CSS — use !important so this wins on `html`.
 * PC only: avoid forcing a scrollbar track on mobile overlay UIs.
 */
@media (min-width: 768px) {
	html {
		overflow-y: scroll !important;
		scrollbar-gutter: stable;
	}
}
