@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
	--bg: #eef3fb;
	--surface: #ffffff;
	--ink: #1b2436;
	--muted: #5c6b84;
	--blue-1: #60a5fa;
	--blue-2: #2563eb;
	--led-amber: #ffc266;
	--led-amber-deep: #f57c1f;
	--grid-line: #e1eaf7;
	--wire: #b9cbe8;
}

.exp-page {
	background: var(--bg);
	color: var(--ink);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	padding-bottom: 72px;
}

/* ---------- Hero ---------- */
.exp-hero {
	position: relative;
	overflow: hidden;
	padding: 20px 24px 20px;
	text-align: center;
	background:
		radial-gradient(circle at 18% 20%, rgba(96,165,250,0.16), transparent 42%),
		radial-gradient(circle at 84% 78%, rgba(245,124,31,0.10), transparent 46%),
		linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.exp-hero__circuit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	pointer-events: none;
}

.exp-hero__inner {
	position: relative;
	max-width: 80%;
	margin: 0 auto;
}

.exp-hero__eyebrow-led {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 6px 16px 6px 10px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(37,99,235,0.10);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--muted);
}

.exp-hero h1 {
	font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
	font-weight: 800;
	font-size: clamp(1.7rem, 4vw, 2.35rem);
	line-height: 1.4;
	color: var(--ink);
	margin: 0 0 14px;
}

.exp-hero p {
	font-size: 1rem;
	color: var(--muted);
	line-height: 1.9;
	margin: 0;
}

/* ---------- Steps list ---------- */
.exp-steps {
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 24px 0;
}

.exp-step {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 28px;
	padding: 34px 0;
}

.exp-step + .exp-step {
	border-top: 1px dashed var(--grid-line);
}

.exp-step--reverse {
	flex-direction: row-reverse;
}

/* wire + badge column */
.exp-step__rail {
	position: relative;
	flex: 0 0 auto;
	width: 56px;
	display: flex;
	justify-content: center;
}

.exp-step__rail::before {
	content: "";
	position: absolute;
	top: -34px;
	bottom: -34px;
	left: 50%;
	width: 2px;
	background: var(--wire);
	transform: translateX(-50%);
}

.exp-step:first-child .exp-step__rail::before { top: 50%; }
.exp-step:last-child .exp-step__rail::before { bottom: 50%; }

.exp-step__badge {
	position: relative;
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 34% 28%, #ffe3ad 0%, var(--led-amber) 42%, var(--led-amber-deep) 100%);
	box-shadow: 0 0 0 6px #fff, 0 0 16px 4px rgba(245,124,31,0.45);
	color: #6b3300;
	font-family: "M PLUS Rounded 1c", sans-serif;
	font-weight: 800;
	font-size: 1.35rem;
}

/* schematic frame */
.exp-step__figure {
	flex: 0 0 auto;
	width: 168px;
}

.exp-step__frame {
	position: relative;
	background:
		linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0/16px 16px,
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0/16px 16px,
		#fbfdff;
	border: 1px solid #dbe6f5;
	border-radius: 14px;
	padding: 18px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px -14px rgba(37,99,235,0.35);
}

.exp-step__frame img.diagram {
	width: 100%;
	max-width: 118px;
	height: auto;
	image-rendering: -webkit-optimize-contrast;
}

.exp-step__photo {
	position: absolute;
	right: -14px;
	bottom: -14px;
	width: 54px;
	height: 34px;
	padding: 3px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(27,36,54,0.22);
	transform: rotate(4deg);
}

.exp-step__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

/* content */
.exp-step__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.exp-step__title {
	font-family: "M PLUS Rounded 1c", sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--ink);
	margin: 0 0 8px;
}

.exp-step__desc {
	font-size: 0.94rem;
	color: var(--muted);
	line-height: 1.8;
	margin: 0 0 16px;
}

.exp-step__link {
	align-self: flex-start;
	display: inline-block;
	padding: 9px 22px;
	border-radius: 999px;
	background: linear-gradient(145deg, var(--blue-1), var(--blue-2));
	box-shadow: 0 4px 10px rgba(37,99,235,0.35);
	color: #fff;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.exp-step__link:hover {
	color: #fff;
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 8px 16px rgba(37,99,235,0.45);
}

.exp-step__link:focus-visible {
	outline: 3px solid var(--blue-2);
	outline-offset: 2px;
}

/* final step gets a little extra emphasis */
.exp-step--final .exp-step__badge {
	background: radial-gradient(circle at 34% 28%, #fff1c9 0%, var(--led-amber) 40%, var(--led-amber-deep) 100%);
	box-shadow: 0 0 0 6px #fff, 0 0 22px 7px rgba(245,124,31,0.6);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
	.exp-hero { padding: 44px 18px 48px; }
	.exp-steps { padding: 4px 16px 0; }
	.exp-step,
	.exp-step--reverse {
		flex-direction: column;
		gap: 14px;
		padding: 28px 0;
	}
	.exp-step__rail {
		width: auto;
		justify-content: flex-start;
	}
	.exp-step__rail::before {
		left: 27px;
		top: -28px;
		bottom: -28px;
	}
	.exp-step__badge { margin-left: 0; }
	.exp-step__figure { width: 140px; margin-left: 0; }
	.exp-step__content { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.exp-step__link { transition: none; }
}
