/* ==========================================================================
   Axiora – Framer Neiden Strategy / How We Work Section
   Architecture:
   - Full-width boxed layout with strictly 30px end padding on left and right.
   - NO horizontal line across the top of the section / left column.
   - Right side features a top spacer block (~130px) with center vertical divider
     and a horizontal grid line directly on top of Card 01 & Card 02.
   - Pinned / sticky left column with display title, red 5-pill mark, and author quote.
   - Exact DM Sans typography (semi-bold 600, tight line-height and letter-spacing).
   - 2x2 Strategy step cards (01. Discovery, 02. Strategy, 04. Growth, 03. Creating).
   - Card 01 is active in black by default. Hovering/clicking any card smoothly
     switches the active black card state.
   ========================================================================== */

.framer-strategy-section {
	position: relative;
	z-index: 5;
	background-color: #f4f4f4;
	color: #000000;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
	border-top: none !important; /* No top horizontal line across section */
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* --- 3-Column Lined Grid Overlay --- */
.framer-strategy-grid-lines {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	padding-inline: 30px;
	pointer-events: none;
	z-index: 1;
	box-sizing: border-box;
}

.strategy-grid-col {
	border-right: 1px solid rgba(0, 0, 0, 0.1);
	height: 100%;
}

.strategy-grid-col:first-child {
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.strategy-grid-col:last-child {
	border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- Full-Width Boxed Layout with 30px End Padding --- */
.framer-strategy-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	padding-inline: 30px;
	box-sizing: border-box;
}

/* Layout Grid with Outer Left, Right, and Bottom Borders */
.framer-strategy-layout {
	display: grid;
	grid-template-columns: 1fr 2fr; /* 33.333% Left, 66.666% Right (matching Neiden architecture) */
	position: relative;
	border-top: none !important; /* No top horizontal line across layout */
	border-left: 1px solid rgba(0, 0, 0, 0.1);
	border-right: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

/* ==========================================================================
   LEFT COLUMN: Sticky in Viewport with Padded Margins
   ========================================================================== */

.framer-strategy-left-col {
	position: relative;
	border-right: 1px solid rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.framer-strategy-sticky-inner {
	position: sticky;
	top: var(--header-h, 56px);
	height: calc(100vh - var(--header-h, 56px));
	height: calc(100svh - var(--header-h, 56px));
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: clamp(48px, 5.5vw, 76px);
	padding-bottom: clamp(38px, 4.5vw, 56px);
	padding-left: clamp(28px, 3.5vw, 48px);
	padding-right: clamp(28px, 3.5vw, 48px);
	box-sizing: border-box;
}

/* Top Heading Group */
.framer-strategy-top-group {
	display: flex;
	flex-direction: column;
}

/* --- Tag Badge [ ND® ‒ STEPS / 構想から公開へ ] --- */
.framer-geo-tag-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1.15rem;
}

.framer-geo-icons {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.framer-geo-icons svg {
	display: block;
	height: 14px;
	width: auto;
}

.framer-geo-tag-text {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #000000;
	white-space: nowrap;
}

.framer-geo-tag-text .bracket,
.framer-geo-tag-text .dash {
	color: rgba(0, 0, 0, 0.35);
	font-weight: 400;
}

.framer-geo-tag-text .label {
	color: #000000;
}

.framer-geo-tag-text .jp-label {
	color: rgba(0, 0, 0, 0.4);
	font-weight: 400;
	font-size: 0.78rem;
}

/* Main Display Title (Exact Framer Neiden Specs) */
.framer-strategy-title {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: clamp(48px, 4.8vw, 68px);
	font-weight: 600;
	line-height: 0.92;
	letter-spacing: -0.055em;
	color: #000000;
	margin: 0.8rem 0 1.5rem;
	text-transform: none;
}

.framer-strategy-title span {
	display: inline-block;
}

/* Lead Subtitle (Exact Framer Neiden Specs) */
.framer-strategy-lead {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.015em;
	color: rgba(0, 0, 0, 0.6);
	margin: 0;
	max-width: 380px;
}

/* Bottom Quote Block */
.framer-strategy-quote-block {
	display: flex;
	flex-direction: column;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.framer-strategy-quote-icon {
	margin-bottom: 16px;
}

.framer-strategy-quote-text {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.025em;
	color: #000000;
	margin: 0 0 22px;
	quotes: none;
}

/* Author Profile Row */
.framer-strategy-author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.author-avatar-wrap {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.author-meta-text {
	display: flex;
	flex-direction: column;
}

.author-meta-text .author-name {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #000000;
	line-height: 1.2;
}

.author-meta-text .author-role {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.5);
	margin-top: 2px;
}

/* ==========================================================================
   RIGHT COLUMN: Top Spacer + 2x2 Strategy Feature Step Cards
   ========================================================================== */

.framer-strategy-cards-col {
	position: relative;
	box-sizing: border-box;
}

/* Top Spacer Row with center vertical line and bottom horizontal grid line */
.framer-strategy-cards-top-spacer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	height: clamp(100px, 12vw, 150px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.cards-spacer-cell:first-child {
	border-right: 1px solid rgba(0, 0, 0, 0.1);
	height: 100%;
}

.framer-strategy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	box-sizing: border-box;
}

/* Base Step Card: Occupies entire cell, perfectly aligned */
.strategy-step-card {
	position: relative;
	box-sizing: border-box;
	cursor: pointer;
	padding: clamp(38px, 4vw, 56px) clamp(30px, 3.2vw, 46px);
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: transparent;
	transition: background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
	            box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
	            border-radius 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dividing lines in the 2x2 grid */
.strategy-step-card:nth-child(1) {
	border-right: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.strategy-step-card:nth-child(2) {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.strategy-step-card:nth-child(3) {
	border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.strategy-step-card:nth-child(4) {
	border-right: none;
	border-bottom: none;
}

/* Card Header (Pill + Category) */
.step-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 48px;
}

/* Default Light Pill */
.step-pill {
	background-color: #ffffff;
	color: #000000;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Default Category */
.step-category {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #000000;
	transition: color 0.25s ease;
}

/* Default Title */
.step-title {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: clamp(22px, 2.1vw, 26px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.035em;
	color: #000000;
	margin: 0;
	text-transform: none;
	transition: color 0.25s ease;
}

/* Default Description */
.step-desc {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: -0.01em;
	color: rgba(0, 0, 0, 0.6);
	margin: 16px 0 0;
	max-width: 380px;
	transition: color 0.25s ease;
}

/* ==========================================================================
   ACTIVE & HOVERED STATE: ELEVATED BLACK CARD WITH RED PILL
   - Card 01 is active by default.
   - Hovering/clicking any card smoothly switches the active black card state.
   - Flush with the top horizontal line and column dividers, with rounded bottom.
   ========================================================================== */

.strategy-step-card.is-active,
.strategy-step-card:hover {
	background-color: rgb(25, 25, 25) !important;
	color: #ffffff !important;
	border-bottom-left-radius: 22px;
	border-bottom-right-radius: 22px;
	box-shadow: 0 32px 64px -10px rgba(0, 0, 0, 0.5);
	z-index: 5;
}

/* Top corners remain square/flush with horizontal borders */
.strategy-step-card:nth-child(1).is-active,
.strategy-step-card:nth-child(1):hover,
.strategy-step-card:nth-child(2).is-active,
.strategy-step-card:nth-child(2):hover {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.strategy-step-card:nth-child(3).is-active,
.strategy-step-card:nth-child(3):hover,
.strategy-step-card:nth-child(4).is-active,
.strategy-step-card:nth-child(4):hover {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* Step Pill turns red with white text and glowing red shadow */
.strategy-step-card.is-active .step-pill,
.strategy-step-card:hover .step-pill {
	background-color: #f02b42 !important;
	color: #ffffff !important;
	border-color: transparent !important;
	box-shadow: 0 4px 14px rgba(240, 43, 66, 0.4) !important;
}

/* Category turns pure white */
.strategy-step-card.is-active .step-category,
.strategy-step-card:hover .step-category {
	color: #ffffff !important;
}

/* Title turns pure white */
.strategy-step-card.is-active .step-title,
.strategy-step-card:hover .step-title {
	color: #ffffff !important;
}

/* Description turns translucent white */
.strategy-step-card.is-active .step-desc,
.strategy-step-card:hover .step-desc {
	color: rgba(255, 255, 255, 0.68) !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
	.framer-strategy-layout {
		grid-template-columns: 1fr;
	}

	.framer-strategy-left-col {
		border-right: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}

	.framer-strategy-sticky-inner {
		position: static;
		height: auto;
		padding-left: clamp(20px, 3vw, 36px);
		padding-right: clamp(20px, 3vw, 36px);
		padding-bottom: 48px;
	}

	.framer-strategy-quote-block {
		margin-top: 36px;
	}

	.framer-strategy-cards-top-spacer {
		height: 60px;
	}
}

@media (max-width: 768px) {
	.framer-strategy-cards-top-spacer {
		display: none;
	}

	.framer-strategy-grid {
		grid-template-columns: 1fr;
	}

	.strategy-step-card:nth-child(1),
	.strategy-step-card:nth-child(3) {
		border-right: none;
	}

	.strategy-step-card:nth-child(1),
	.strategy-step-card:nth-child(2),
	.strategy-step-card:nth-child(3) {
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}

	.strategy-step-card {
		min-height: auto;
		padding: 36px 20px;
	}
}

@media (max-width: 640px) {
	.framer-strategy-container,
	.framer-strategy-grid-lines {
		padding-inline: 16px;
	}

	.framer-strategy-layout {
		border-left: 1px solid rgba(0, 0, 0, 0.1);
		border-right: 1px solid rgba(0, 0, 0, 0.1);
	}

	.framer-strategy-title {
		font-size: clamp(38px, 10vw, 48px);
	}
}
