/* v2 のトップページ（v2/front-page.php）の節 */
@layer components {
	/* ヘッダーはファーストビューの斜めの面に重ねる */
	.home .v2-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
	}

	/* ===== ファーストビュー ===== */
	.v2-hero {
		position: relative;
		padding: 150px 0 120px;
		overflow: hidden;
	}

	.v2-hero__plane {
		position: absolute;
		pointer-events: none;
	}

	.v2-hero__plane--l {
		top: 0;
		left: 0;
		width: 46%;
		height: 100%;
		background: var(--c-soft);
		clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
		animation: v2-plane-l 1s var(--ease-out) both;
	}

	.v2-hero__plane--r {
		top: 120px;
		right: 0;
		width: 50%;
		height: calc(100% - 180px);
		background: var(--c-brand);
		clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
		animation: v2-plane-r 1.1s 0.1s var(--ease-out) both;
	}

	@keyframes v2-plane-l {
		from {
			transform: translateX(-24%);
			opacity: 0;
		}

		to {
			transform: none;
			opacity: 1;
		}
	}

	@keyframes v2-plane-r {
		from {
			transform: translateX(24%);
			opacity: 0;
		}

		to {
			transform: none;
			opacity: 1;
		}
	}

	.v2-hero__scroll {
		position: absolute;
		left: 24px;
		top: 420px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--sp-3);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-xs);
		letter-spacing: 0.2em;
	}

	.v2-hero__scroll > span:first-child {
		writing-mode: vertical-rl;
	}

	.v2-hero__scroll-line {
		position: relative;
		display: block;
		width: 1px;
		height: 120px;
		background: var(--c-line);
		overflow: hidden;
	}

	.v2-hero__scroll-line span {
		position: absolute;
		inset: 0;
		background: var(--c-ink);
		animation: v2-scroll 2.4s ease-in-out infinite;
	}

	@keyframes v2-scroll {
		0% {
			transform: scaleY(0);
			transform-origin: top;
		}

		45% {
			transform: scaleY(1);
			transform-origin: top;
		}

		55% {
			transform: scaleY(1);
			transform-origin: bottom;
		}

		100% {
			transform: scaleY(0);
			transform-origin: bottom;
		}
	}

	.v2-hero__inner {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-7);
	}

	.v2-hero__stripe {
		position: absolute;
		bottom: -64px;
		left: -100vw;
		width: calc(100vw + 40%);
		height: 8px;
		background: var(--c-accent);
		transform: skewX(-24deg);
		animation: v2-stripe 1.2s 0.5s var(--ease-out) both;
		pointer-events: none;
	}

	@keyframes v2-stripe {
		from {
			transform: translateX(-140%) skewX(-24deg);
		}

		to {
			transform: translateX(0) skewX(-24deg);
		}
	}

	.v2-hero__text {
		flex: 1 1 480px;
		min-width: 0;
	}

	.v2-hero__eyebrow {
		margin-bottom: var(--sp-5);
		font-size: var(--fs-sm);
		font-weight: 500;
		letter-spacing: 0.08em;
		color: var(--c-accent-text);
	}

	.v2-hero__title {
		font-size: var(--fs-en);
		line-height: 1.45;
		letter-spacing: 0.02em;
		font-feature-settings: "palt";
	}

	.v2-hero__catch {
		margin-top: var(--sp-6);
		font-size: var(--fs-md);
		font-weight: 700;
		line-height: 2;
	}

	.v2-hero__lead {
		margin-top: var(--sp-2);
		font-size: var(--fs-sm);
		line-height: 2;
	}

	.v2-hero__actions {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-4);
		margin-top: var(--sp-7);
	}

	.v2-hero__ask-wrap {
		flex: 1 1 420px;
		min-width: 0;
		display: flex;
		justify-content: flex-end;
	}

	.v2-hero__ask {
		width: 100%;
		max-width: 480px;
		overflow: hidden;
		border-radius: 12px;
		background: var(--c-bg);
		box-shadow: var(--shadow-card);
	}

	.v2-hero__ask-head {
		padding: 26px 32px 46px;
		background: var(--c-soft-2);
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
	}

	.v2-hero__ask-label {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-3);
	}

	.v2-hero__ask-en {
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: 0.24em;
		color: var(--c-brand);
	}

	.v2-hero__ask-tag {
		padding: 2px 12px;
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-size: var(--fs-xs);
		font-weight: 500;
	}

	.v2-hero__ask-title {
		margin-top: var(--sp-3);
		font-size: var(--fs-xl);
		font-weight: 700;
		line-height: 1.5;
		letter-spacing: 0.02em;
	}

	.v2-hero__ask-body {
		padding: 36px 32px 32px;
	}

	.v2-hero__ask-lead {
		font-size: var(--fs-sm);
		line-height: 1.8;
	}

	.v2-hero__ask .issoh-ask {
		margin-top: var(--sp-4);
	}

	.v2-hero__ask-fallback {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-2);
		margin: var(--sp-4) 0 0;
		padding: 0;
		list-style: none;
	}

	.v2-hero__ask.is-ready .v2-hero__ask-fallback {
		display: none;
	}

	.v2-hero__ask-fallback a {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 0 var(--sp-4);
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-soft);
		font-size: var(--fs-sm);
		text-decoration: none;
	}

	@media (max-width: 1023px) {
		.v2-hero {
			padding-top: 110px;
		}

		.v2-hero__scroll {
			display: none;
		}

		/* SP は見出しが画面の右近くまで伸びるので、灰の面を文字の後ろまで広げる */
		.v2-hero__plane--l {
			width: 92%;
			clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
		}

		.v2-hero__plane--r {
			top: auto;
			bottom: 0;
			width: 100%;
			height: 46%;
			clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
		}

		.v2-hero__ask-wrap {
			justify-content: center;
		}
	}

	/* ===== SERVICE ===== */
	.v2-service {
		position: relative;
		padding: var(--section-y) 0;
		background: var(--c-soft);
	}

	.v2-service__plane {
		position: absolute;
		top: 0;
		right: 0;
		width: 38%;
		height: 100%;
		background: var(--c-soft-2);
		clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
	}

	.v2-service .v2-container {
		position: relative;
	}

	.v2-service__head,
	.v2-videos__head {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--sp-5) var(--sp-7);
	}

	.v2-service__intro,
	.v2-videos__intro {
		flex: 0 1 600px;
		line-height: 2;
	}

	.v2-service__intro p + p {
		margin-top: var(--sp-2);
	}

	.v2-service__intro .v2-more,
	.v2-videos__intro .v2-more {
		margin-top: var(--sp-5);
	}

	.v2-service__no {
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: 0.14em;
		color: var(--c-accent-text);
	}

	.v2-service__desc {
		font-size: var(--fs-md);
		line-height: 1.9;
	}

	.v2-service__desc p + p {
		margin-top: var(--sp-2);
	}

	.v2-service__feature {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-7);
		margin-top: 56px;
		padding: clamp(28px, 4vw, 48px);
		border-radius: var(--radius-md);
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-service__feature .v2-service__no {
		color: var(--c-on-brand);
		font-size: var(--fs-sm);
	}

	.v2-service__feature-main {
		flex: 1 1 420px;
		min-width: 0;
	}

	.v2-service__feature-title {
		margin-top: var(--sp-2);
		font-size: var(--fs-2xl);
	}

	.v2-service__feature .v2-service__desc {
		margin-top: var(--sp-4);
		font-size: var(--fs-md);
		line-height: 2;
	}

	.v2-service__feature .service-sublinks {
		margin-top: var(--sp-5);
	}

	.v2-service__feature .service-sublinks a {
		border-color: rgba(255, 255, 255, 0.4);
		background: transparent;
		color: var(--c-on-brand);
		font-size: var(--fs-sm);
	}

	.v2-service__feature .v2-more {
		margin-top: var(--sp-6);
		min-height: 52px;
		border-color: var(--c-bg);
	}

	.v2-service__feature :focus-visible {
		outline-color: var(--c-on-brand);
	}

	.v2-service__live {
		flex: 1 1 360px;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
	}

	.v2-service__live-head {
		font-size: var(--fs-sm);
		font-weight: 700;
		letter-spacing: 0.06em;
		color: var(--c-on-brand-sub);
	}

	.v2-service__live-item {
		padding: var(--sp-4) 20px;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: var(--radius-md);
		background: rgba(255, 255, 255, 0.08);
	}

	.v2-service__live-title {
		font-weight: 700;
	}

	.v2-service__live-text {
		margin-top: 4px;
		font-size: var(--fs-sm);
		line-height: 1.7;
		color: var(--c-on-brand-sub);
	}

	.v2-service__grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
		gap: var(--sp-5);
		margin-top: var(--sp-5);
	}

	.v2-service__card {
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
		padding: var(--sp-6);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		box-shadow: 0 2px 12px rgba(40, 30, 50, 0.06);
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.v2-service__title {
		font-size: var(--fs-xl);
		line-height: 1.5;
	}

	.v2-service__card .v2-service__desc {
		flex: 1 1 auto;
	}

	.v2-service__card .v2-more {
		align-self: flex-start;
		margin-top: var(--sp-2);
	}

	@media (hover: hover) and (pointer: fine) {
		.v2-service__card:hover,
		.v2-finder:hover,
		.v2-guide__card:hover,
		.v2-company__partner:hover {
			transform: translateY(-6px);
			box-shadow: 0 18px 40px rgba(40, 30, 50, 0.12);
		}

		.v2-finder:hover .v2-arrow,
		.v2-guide__card:hover .v2-arrow {
			transform: translateX(4px);
		}
	}

	.v2-service__finders {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
		gap: var(--sp-5);
		margin: var(--sp-7) 0 0;
		padding: 0;
		list-style: none;
	}

	.v2-finder {
		display: flex;
		flex-direction: column;
		gap: var(--sp-4);
		height: 100%;
		padding: var(--sp-6);
		border: 1px solid var(--c-line);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		text-decoration: none;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.v2-finder__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-4);
	}

	.v2-finder__en {
		display: block;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en-wide);
		color: var(--c-accent-text);
	}

	.v2-finder__ja {
		display: block;
		margin-top: 2px;
		font-size: var(--fs-xl);
		font-weight: 700;
	}

	.v2-finder__items {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.v2-finder__items span {
		padding: 2px 10px;
		border-radius: var(--radius-pill);
		background: var(--c-soft);
		font-size: var(--fs-xs);
	}

	.v2-finder__count {
		font-size: var(--fs-sm);
		color: var(--c-ink-mute);
	}

	/* ===== VIDEOS ===== */
	.v2-videos {
		padding: var(--section-y) 0;
	}

	/* ===== COMPANY ===== */
	.v2-company {
		position: relative;
		padding: var(--section-y) 0;
		background: var(--c-soft);
	}

	.v2-company__plane {
		position: absolute;
		top: 0;
		right: 0;
		width: 44%;
		height: 100%;
		background: var(--c-bg);
		clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
	}

	.v2-company .v2-container {
		position: relative;
	}

	.v2-company__main {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-7) var(--sp-8);
	}

	.v2-company__head {
		flex: 1 1 360px;
		min-width: 0;
	}

	.v2-company__logo {
		width: 220px;
		margin-top: var(--sp-7);
	}

	.v2-company__body {
		flex: 1 1 480px;
		min-width: 0;
		line-height: 2;
	}

	.v2-company__lead,
	.v2-recruit__lead {
		margin-bottom: var(--sp-3);
		font-size: var(--fs-lg);
		font-weight: 700;
		line-height: 1.8;
	}

	.v2-company__links {
		margin-top: 28px;
	}

	.v2-company__partner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-3) var(--sp-6);
		margin-top: 56px;
		padding: var(--sp-5) 28px;
		border: 1px solid var(--c-line);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		text-decoration: none;
		font-size: var(--fs-sm);
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.v2-company__partner .v2-icon {
		font-size: var(--fs-lg);
	}

	.v2-company__partner-text {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px 20px;
	}

	.v2-company__partner-title {
		font-size: var(--fs-md);
		font-weight: 700;
	}

	/* ===== NEWS ===== */
	.v2-news {
		padding: var(--section-y) 0;
	}

	.v2-news__inner {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-6) var(--sp-8);
	}

	.v2-news__head {
		flex: 0 0 260px;
	}

	.v2-news__head .v2-more {
		margin-top: var(--sp-5);
	}

	.v2-news__list {
		flex: 1 1 520px;
		min-width: 0;
		margin: 0;
		padding: 0;
		list-style: none;
		border-top: 1px solid var(--c-line);
	}

	.v2-news__list li {
		border-bottom: 1px solid var(--c-line);
	}

	.v2-news__list a {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px var(--sp-6);
		padding: var(--sp-5) var(--sp-2);
		text-decoration: none;
	}

	.v2-news__date {
		font-family: var(--f-en);
		font-weight: 500;
		font-size: var(--fs-md);
		letter-spacing: var(--ls-en);
		color: var(--c-ink-mute);
	}

	.v2-news__title {
		flex: 1 1 0;
		min-width: 0;
		font-weight: 500;
		line-height: 1.8;
	}

	/* 日付は上の行に置き、題名と矢印を同じ行に保つ（SP で矢印が題名の下に落ちないように） */
	.v2-news__date {
		flex-basis: 100%;
	}

	@media (min-width: 768px) {
		.v2-news__date {
			flex-basis: auto;
		}
	}

	.v2-news__list .v2-icon {
		font-size: var(--fs-lg);
		transition: transform var(--dur-fast) ease;
	}

	.v2-news__list a:hover .v2-news__title {
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.v2-news__list a:hover .v2-icon {
		transform: translateX(4px);
	}

	/* ===== RECRUIT ===== */
	.v2-recruit {
		position: relative;
		padding: var(--section-y) 0;
	}

	.v2-recruit__plane {
		position: absolute;
		top: 0;
		left: 0;
		width: 56%;
		height: 100%;
		background: var(--c-soft);
		clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
	}

	.v2-recruit__inner {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-7) var(--sp-8);
	}

	.v2-recruit__img {
		flex: 1 1 460px;
		min-width: 0;
	}

	.v2-recruit__img img {
		width: 100%;
		border-radius: var(--radius-md);
	}

	.v2-recruit__body {
		flex: 1 1 420px;
		min-width: 0;
		line-height: 2;
	}

	.v2-recruit__lead {
		margin-top: 28px;
	}

	.v2-recruit__body .v2-more {
		margin-top: 28px;
	}
}

/*
 * ここから @layer の外。widget.js（AI 相談）とプラグインの CSS は @layer の外で読まれ、@layer の中の指定に必ず勝つため、
 * それらの上書きだけはここに書く。.v2-hero__ask を前に付けて、widget が head に足す CSS より詳細度を上げる。
 */
.v2-hero__ask .issoh-ask {
	margin: 16px 0 0;
}

.v2-hero__ask .issoh-ask .issoh-ask__toggle {
	display: flex;
	width: 100%;
	justify-content: center;
	min-height: 48px;
	border: 2px solid var(--c-brand);
	background: var(--c-brand);
	color: var(--c-on-brand);
	font-weight: 700;
}

.v2-hero__ask .issoh-ask .issoh-ask__toggle[hidden] {
	display: none;
}

.v2-hero__ask .issoh-ask .issoh-ask__toggle[aria-expanded="true"] {
	background: var(--c-bg);
	color: var(--c-ink);
}

.v2-hero__ask .issoh-ask .issoh-ask__toggle:hover {
	background: var(--c-brand-deep);
	color: var(--c-on-brand);
}

.v2-hero__ask .issoh-ask .issoh-ask__panel {
	margin-top: 0;
}

.v2-hero__ask .issoh-ask .issoh-ask__q {
	background: var(--c-brand);
	color: var(--c-on-brand);
}

.v2-hero__ask .issoh-ask .issoh-ask__form {
	border-color: var(--c-input-line);
	box-shadow: none;
}

.v2-hero__ask .issoh-ask .issoh-ask__form:focus-within {
	border-color: var(--c-brand);
	box-shadow: 0 0 0 3px rgba(67, 57, 78, 0.15);
}

.v2-hero__ask .issoh-ask .issoh-ask__send {
	background: var(--c-brand);
}

.v2-hero__ask .issoh-ask .issoh-ask__send:disabled {
	background: var(--c-line-strong);
}

.v2-hero__ask .issoh-ask .issoh-ask__chip {
	border-color: var(--c-line-strong);
	background: var(--c-soft);
	color: var(--c-ink);
}

.v2-hero__ask .issoh-ask .issoh-ask__caret,
.v2-hero__ask .issoh-ask .issoh-ask__rec-title,
.v2-hero__ask .issoh-ask .issoh-ask__fold-head {
	color: var(--c-brand);
}

.v2-hero__ask .issoh-ask .issoh-ask__caret {
	background: var(--c-brand);
}

.v2-hero__ask .issoh-ask :focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

