/*
 * Sissi Creative Lab — main stylesheet (source).
 * Build: npm run build → assets/dist/css/main.css (dist is committed;
 * the production server never needs npm). No Tailwind, no CDN.
 */

/*
 * v4 (Kaikan-classic): light, formal school-site palette.
 * NOTE: variable names are kept for compatibility — their MEANING is:
 *   --scl-ink   = page background (Paper Ivory)
 *   --scl-navy  = card / panel background (White)
 *   --scl-gold  = primary accent (Deep Rose, from the atelier's flowers)
 *   --scl-ivory = body text (Sumi)
 */
:root {
	--scl-ink: #FAF8F4;
	--scl-navy: #FFFFFF;
	--scl-gold: #A4325E;
	--scl-ivory: #262420;
	--scl-muted: #6B675F;
	--scl-success: #2E7D4F;
	--scl-warning: #8A6414;
	--scl-error: #B3403C;
	--scl-line: rgba(38, 36, 32, 0.16);
	--scl-radius: 2px;
	--scl-transition: 160ms ease-out;
	--scl-shadow: 0 22px 60px rgba(57, 39, 39, 0.09);
}

/* ---------- Base ---------- */

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

body {
	background-color: var(--scl-ink);
	color: var(--scl-ivory);
	font-size: 17px; /* persona: 40s readers — roomier body copy */
	letter-spacing: 0.02em;
	line-height: 2;
	overflow-x: clip; /* final guard; components are also constrained below */
	overflow-wrap: anywhere;
}

@media (max-width: 600px) {
	body {
		font-size: 16px; /* never below 16px on mobile */
	}
}

h1,
h2,
h3 {
	letter-spacing: 0.04em;
	font-weight: 500;
}

h2::after {
	content: "";
	display: block;
	width: 42px;
	height: 1px;
	margin-top: 14px;
	background: var(--scl-gold);
}

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

/* ---------- Accessibility ---------- */

.scl-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--scl-gold);
	color: var(--scl-ink);
	font-weight: 600;
}

.scl-skip-link:focus {
	left: 8px;
	top: 8px;
}

:focus-visible {
	outline: 2px solid var(--scl-gold);
	outline-offset: 3px;
	border-radius: var(--scl-radius);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Typography helpers ---------- */

.scl-eyebrow {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.8125rem;
}

.scl-todo {
	color: var(--scl-warning);
	font-style: normal;
	border-bottom: 1px dashed var(--scl-warning);
}

.scl-muted-note {
	color: var(--scl-muted);
}

/* ---------- Links & buttons ---------- */

a {
	text-underline-offset: 3px;
	transition: color var(--scl-transition);
}

.wp-element-button,
.wp-block-button__link,
button,
input[type="submit"] {
	min-height: 44px;
	padding: 10px 24px;
	border-radius: var(--scl-radius);
	transition: background-color var(--scl-transition), color var(--scl-transition), border-color var(--scl-transition);
	cursor: pointer;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--scl-ivory);
	border: 1px solid var(--scl-line);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--scl-gold);
	color: var(--scl-gold);
}

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

.scl-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: var(--scl-navy);
	border-bottom: 1px solid var(--scl-line);
	box-shadow: 0 8px 30px rgba(38, 36, 32, 0.04);
}

.scl-site-title a {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.scl-nav a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.scl-footer {
	border-top: 1px solid var(--scl-line);
}

.scl-hr-gold {
	border: none;
	border-top: 1px solid var(--scl-line);
	height: 0;
}

/* Shop link (from [scl_shop_link]) */

.scl-shop-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--scl-gold);
	border-radius: var(--scl-radius);
	color: var(--scl-gold);
	text-decoration: none;
	letter-spacing: 0.08em;
}

.scl-shop-link:hover,
.scl-shop-link:focus-visible {
	background: var(--scl-gold);
	color: var(--scl-ink);
}

.scl-shop-link--button {
	background: var(--scl-gold);
	color: var(--scl-ink);
	font-weight: 600;
}

.scl-shop-link--button:hover {
	background: var(--scl-ivory);
	color: var(--scl-ink);
}

/* ---------- Cards & sections ---------- */

.scl-card {
	background: var(--scl-navy);
	border: 1px solid var(--scl-line);
	border-radius: var(--scl-radius);
	padding: 24px;
	box-shadow: 0 12px 38px rgba(57, 39, 39, 0.05);
	transition: transform var(--scl-transition), box-shadow var(--scl-transition);
}

.scl-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--scl-shadow);
}

.scl-hero-cover {
	color: #fff;
	isolation: isolate;
}

.scl-hero-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(46, 29, 38, 0.82) 0%, rgba(46, 29, 38, 0.61) 42%, rgba(46, 29, 38, 0.08) 76%);
}

.scl-hero-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.scl-hero-cover h1 {
	max-width: 680px;
	font-size: clamp(2.35rem, 5vw, 4.85rem) !important;
	line-height: 1.35;
	text-shadow: 0 3px 24px rgba(24, 13, 18, 0.22);
}

.scl-hero-cover p:not(.scl-eyebrow) {
	max-width: 580px;
}

.scl-hero-cover .scl-eyebrow {
	color: #f5dce5;
}

.scl-hero-cover .wp-element-button {
	background: #fff;
	color: #6f1f40;
}

.scl-feature-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-shadow: var(--scl-shadow);
}

.scl-phone-panel {
	margin-top: 28px;
	padding: clamp(28px, 5vw, 52px);
	background: #fff;
	border: 1px solid var(--scl-line);
	border-left: 4px solid var(--scl-gold);
	box-shadow: var(--scl-shadow);
}

.scl-pro-panel {
	margin: 36px 0 48px;
	padding: clamp(28px, 5vw, 52px);
	background: linear-gradient(135deg, #fff 0%, #f8edf1 100%);
	border-top: 1px solid var(--scl-gold);
	border-bottom: 1px solid var(--scl-line);
	box-shadow: var(--scl-shadow);
}

.scl-pro-panel ul {
	padding-left: 1.3em;
}

.scl-pro-panel li + li {
	margin-top: 8px;
}

.scl-phone-panel h3 {
	font-size: clamp(1.8rem, 4vw, 3rem);
	letter-spacing: 0.08em;
}

@media (max-width: 700px) {
	.scl-hero-cover {
		min-height: 72vh !important;
	}
	.scl-hero-cover::before {
		background: linear-gradient(90deg, rgba(46, 29, 38, 0.84), rgba(46, 29, 38, 0.48));
	}
	.scl-card:hover { transform: none; }
}

.scl-pedigree {
	border-top: 1px solid var(--scl-line);
	border-bottom: 1px solid var(--scl-line);
}

.scl-hero h1 {
	max-width: 22em;
}

/* ---------- Forms (application form + generic) ---------- */

.scl-form {
	max-width: 720px;
}

.scl-form fieldset {
	border: 1px solid var(--scl-line);
	border-radius: var(--scl-radius);
	padding: 24px;
	margin: 0 0 24px;
}

.scl-form legend {
	padding: 0 8px;
	font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

.scl-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.scl-form .scl-field {
	margin-bottom: 20px;
}

.scl-form .scl-desc {
	color: var(--scl-muted);
	font-size: 0.875rem;
	margin: 4px 0 8px;
}

.scl-form input[type="text"],
.scl-form input[type="email"],
.scl-form input[type="tel"],
.scl-form select,
.scl-form textarea {
	width: 100%;
	min-height: 48px; /* persona: generous touch targets */
	padding: 12px 14px;
	background: var(--scl-navy);
	color: var(--scl-ivory);
	border: 1px solid var(--scl-line);
	border-radius: var(--scl-radius);
	font-size: 1.0625rem;
}

.scl-form textarea {
	min-height: 120px;
}

.scl-form input:focus-visible,
.scl-form select:focus-visible,
.scl-form textarea:focus-visible {
	outline: 2px solid var(--scl-gold);
	outline-offset: 2px;
}

.scl-form .scl-radio-group label,
.scl-form .scl-check-group label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	min-height: 44px;
	padding: 8px 0;
	cursor: pointer;
}

.scl-form input[type="radio"],
.scl-form input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 4px;
	accent-color: var(--scl-gold);
	flex-shrink: 0;
}

/* Honeypot — hidden from humans, present for bots */

.scl-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Notices (never colour-only: icon glyph + text) ---------- */

.scl-notice {
	border: 1px solid var(--scl-line);
	border-left-width: 3px;
	border-radius: var(--scl-radius);
	padding: 16px 20px;
	margin: 16px 0;
	background: var(--scl-navy);
}

.scl-notice--success { border-left-color: var(--scl-success); }
.scl-notice--warning { border-left-color: var(--scl-warning); }
.scl-notice--error { border-left-color: var(--scl-error); }
.scl-notice--info { border-left-color: var(--scl-gold); }

.scl-notice .scl-notice-title {
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}

.scl-error-summary a {
	color: var(--scl-error);
}

.scl-field-error {
	color: var(--scl-error);
	font-size: 0.875rem;
	margin-top: 6px;
}

.scl-form .is-invalid {
	border-color: var(--scl-error);
}

/* Self-check verdict */

.scl-verdict {
	margin-top: 16px;
}

/* ---------- Amelia fallback box ---------- */

.scl-amelia-fallback {
	border: 1px solid var(--scl-line);
	border-radius: var(--scl-radius);
	padding: 24px;
	background: var(--scl-navy);
}

/* ---------- Vivid floral signature (Dark × colourful) ----------
 * Colours sampled from the atelier's own work: coral, sunflower,
 * cornflower blue, orchid violet, peony pink. Used ONLY as thin
 * hairlines and small accents — the photography carries the colour.
 */

:root {
	--scl-floral-coral: #B84A32;
	--scl-floral-sun: #9A7414;
	--scl-floral-blue: #3D63A8;
	--scl-floral-violet: #7A4FA8;
	--scl-floral-pink: #A4325E;
	--scl-floral-strip: linear-gradient(90deg, #B84A32, #9A7414, #3D63A8, #7A4FA8, #A4325E);
}

.scl-header {
	border-bottom: 2px solid;
	border-image: var(--scl-floral-strip) 1;
}

.scl-footer {
	border-top: 2px solid;
	border-image: var(--scl-floral-strip) 1;
}

.wp-block-columns > .scl-card:nth-of-type(5n + 1) { border-top: 2px solid var(--scl-floral-pink); }
.wp-block-columns > .scl-card:nth-of-type(5n + 2) { border-top: 2px solid var(--scl-floral-sun); }
.wp-block-columns > .scl-card:nth-of-type(5n + 3) { border-top: 2px solid var(--scl-floral-blue); }
.wp-block-columns > .scl-card:nth-of-type(5n + 4) { border-top: 2px solid var(--scl-floral-coral); }
.wp-block-columns > .scl-card:nth-of-type(5n + 5) { border-top: 2px solid var(--scl-floral-violet); }

/* Full-bleed editorial hero (McQueens-style: one image, one message) */

.scl-hero-cover {
	display: flex;
	align-items: flex-end;
}

.scl-hero-cover .scl-eyebrow {
	color: var(--scl-ivory);
}

.scl-voice {
	border-left: 2px solid var(--scl-floral-pink);
	border-radius: 0;
	padding: 16px 24px;
	font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
	font-size: 1.125rem;
	line-height: 2;
}

.scl-voice cite {
	display: block;
	margin-top: 8px;
	font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
	font-style: normal;
	font-size: 0.875rem;
	color: var(--scl-muted);
}

/* ---------- Kaikan-style school components (v4) ---------- */

/* Notice bar (期生募集などのお知らせ) */

.scl-notice-bar {
	background: var(--scl-navy);
	border: 1px solid var(--scl-line);
	border-left: 3px solid var(--scl-gold);
	padding: 14px 20px;
}

/* Anchor navigation under the hero */

.scl-anchor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border: 1px solid var(--scl-line);
	background: var(--scl-navy);
}

.scl-anchor-nav a {
	flex: 1 1 25%;
	min-width: 140px;
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-right: 1px solid var(--scl-line);
	font-size: 0.9375rem;
}

.scl-anchor-nav a:last-child {
	border-right: none;
}

.scl-anchor-nav a:hover {
	color: var(--scl-gold);
}

/* Access table (TEL / 住所 / アクセス / 受付時間) */

.scl-access-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--scl-navy);
}

.scl-access-table th,
.scl-access-table td {
	border: 1px solid var(--scl-line);
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}

.scl-access-table th {
	width: 8em;
	background: var(--scl-ink);
	white-space: nowrap;
}

/* Big telephone CTA */

.scl-tel {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.75rem;
	letter-spacing: 0.06em;
}

/* Sticky mobile CTA bar (電話・体験レッスン・お問い合わせ) */

.scl-cta-bar {
	display: none;
}

@media (max-width: 767px) {
	.scl-cta-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		background: var(--scl-navy);
		border-top: 2px solid;
		border-image: var(--scl-floral-strip) 1;
	}

	.scl-cta-bar a {
		flex: 1;
		min-height: 52px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 0.875rem;
		text-decoration: none;
		border-right: 1px solid var(--scl-line);
	}

	.scl-cta-bar a:last-child {
		border-right: none;
	}

	.scl-cta-bar .scl-cta-primary {
		background: var(--scl-gold);
		color: var(--scl-ink);
		font-weight: 600;
	}

	body {
		padding-bottom: 56px; /* keep content clear of the fixed bar */
	}
}

/* Breadcrumb ([scl_breadcrumb]) */

.scl-breadcrumb {
	font-size: 0.875rem;
	color: var(--scl-muted);
	margin-bottom: 8px;
}

.scl-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.scl-breadcrumb li + li::before {
	content: "＞";
	margin: 0 6px;
	color: var(--scl-muted);
}

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

.scl-breadcrumb a:hover {
	color: var(--scl-gold);
}

/* Page-top button (injected by main.js) */

.scl-pagetop {
	position: fixed;
	right: 16px;
	bottom: 72px;
	z-index: 85;
	width: 48px;
	height: 48px;
	border: 1px solid var(--scl-line);
	border-radius: 50%;
	background: var(--scl-navy);
	color: var(--scl-ivory);
	font-size: 1.125rem;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.scl-pagetop.is-visible {
	display: inline-flex;
}

.scl-pagetop:hover {
	border-color: var(--scl-gold);
	color: var(--scl-gold);
}

@media (min-width: 768px) {
	.scl-pagetop {
		bottom: 24px;
	}
}

/* Alternating feature rows (魅力セクション) */

.scl-feature-img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--scl-line);
	border-radius: var(--scl-radius);
}

.scl-image-fallback {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.scl-access-table {
	display: table;
	max-width: 100%;
}

.scl-about-portrait {
	max-width: 420px;
}

.scl-feature-media {
	background: var(--scl-navy);
	border: 1px solid var(--scl-line);
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--scl-muted);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
	.scl-access-table th,
	.scl-access-table td {
		padding: 10px 8px;
	}

	.scl-access-table th {
		width: auto;
		white-space: normal;
	}
	.scl-pedigree-cols {
		flex-wrap: wrap !important;
	}

	.scl-pedigree-cols .wp-block-column {
		flex-basis: 100% !important;
	}

	.scl-card {
		padding: 16px;
	}
}
