/* v2 の部品。全ページで使うものだけを置く。ページ固有の節は <ページ>.css */
@layer components {
	/* ===== 見出し: 細く大きい英字＋和文 ===== */
	.v2-heading__en {
		display: block;
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-display);
		line-height: 1;
		letter-spacing: 0.06em;
	}

	.v2-heading__ja {
		display: block;
		margin-top: var(--sp-3);
		font-size: var(--fs-md);
		font-weight: 700;
		color: var(--c-accent-text);
	}

	.v2-heading--sm .v2-heading__en {
		font-size: var(--fs-sm);
		font-weight: 600;
		letter-spacing: var(--ls-en-wide);
	}

	.v2-heading--sm .v2-heading__ja {
		margin-top: 2px;
		font-size: var(--fs-xl);
		color: var(--c-ink);
	}

	.v2-heading--center {
		text-align: center;
	}

	/* ===== 斜めに切った札 ===== */
	.v2-tag {
		display: inline-block;
		width: 12px;
		height: 28px;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	/* ===== 印・丸い矢印 ===== */
	.v2-icon {
		width: 1em;
		height: 1em;
		flex: none;
	}

	.v2-arrow {
		flex: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-size: var(--fs-sm);
		transition: transform var(--dur-fast) ease;
	}

	.v2-arrow--lg {
		width: 44px;
		height: 44px;
		font-size: var(--fs-lg);
	}

	/* ===== ボタン ===== */
	.v2-btn {
		display: inline-flex;
		align-items: center;
		gap: var(--sp-3);
		min-height: 52px;
		padding: 0 var(--sp-6);
		border: 2px solid var(--c-brand);
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-weight: 700;
		text-decoration: none;
		cursor: pointer;
		transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
	}

	.v2-btn--line {
		background: transparent;
		color: var(--c-ink);
	}

	.v2-btn__arrow {
		display: inline-flex;
		font-size: var(--fs-lg);
		transition: transform var(--dur-fast) ease;
	}

	/* View More: 文字＋右の紫の丸い矢印 */
	.v2-more {
		display: inline-flex;
		align-items: center;
		gap: var(--sp-3);
		min-height: 44px;
		padding: 0 6px 0 var(--sp-5);
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: transparent;
		color: var(--c-ink);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-md);
		letter-spacing: var(--ls-en);
		text-decoration: none;
		white-space: nowrap;
		transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
	}

	.v2-more--white {
		background: var(--c-bg);
	}

	.v2-more--fill {
		border-color: var(--c-brand);
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-more--fill .v2-arrow {
		background: var(--c-bg);
		color: var(--c-brand);
	}

	/* 小さな丸い札のリンク（対応技術・ランキングなど） */
	.v2-chip {
		display: inline-flex;
		align-items: center;
		gap: var(--sp-2);
		min-height: 44px;
		padding: 0 var(--sp-5);
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		color: var(--c-ink);
		font-size: var(--fs-sm);
		font-weight: 700;
		text-decoration: none;
		transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
	}

	@media (hover: hover) and (pointer: fine) {
		.v2-btn:hover,
		.v2-more:hover,
		.v2-chip:hover {
			transform: translateY(-2px);
			box-shadow: var(--shadow-lift);
		}

		.v2-btn:hover .v2-btn__arrow,
		.v2-more:hover .v2-arrow {
			transform: translateX(4px);
		}
	}

	/* 部門ごとの主なサービス（template-parts/top-service-links.php の ul.service-sublinks） */
	.service-sublinks {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.service-sublinks a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
		padding: 2px 12px;
		border: 1px solid var(--c-line);
		border-radius: var(--radius-pill);
		background: var(--c-soft);
		font-size: var(--fs-xs);
		line-height: 1.5;
		text-decoration: none;
	}

	/* ===== 本文へ移動 ===== */
	.v2-skip {
		position: absolute;
		left: var(--sp-4);
		top: -100px;
		z-index: 100;
		padding: var(--sp-2) var(--sp-4);
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-skip:focus {
		top: var(--sp-4);
	}

	/* ===== ヘッダー ===== */
	.v2-header {
		position: relative;
		z-index: 20;
	}

	.v2-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-4);
		max-width: calc(var(--w-content) + var(--gutter) * 2);
		margin-inline: auto;
		padding: 22px var(--gutter);
	}

	.v2-header__logo {
		line-height: 0;
	}

	.v2-header__logo img {
		width: 132px;
		height: auto;
	}

	.v2-gnav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-2) 22px;
		margin: 0;
		padding: 0;
		list-style: none;
		font-family: var(--f-en);
		font-weight: 500;
		font-size: var(--fs-sm);
		letter-spacing: 0.1em;
	}

	.v2-gnav__list > li {
		position: relative;
	}

	.v2-gnav__list > li > a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		text-decoration: none;
	}

	.v2-gnav__list > li > a[href$="/contact/"] {
		gap: var(--sp-2);
		padding: 0 var(--sp-5);
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-weight: 600;
	}

	.v2-gnav__list > .current-menu-item > a:not([href$="/contact/"]),
	.v2-gnav__list > .current-menu-ancestor > a {
		text-decoration: underline;
		text-underline-offset: 6px;
		text-decoration-color: var(--c-accent);
		text-decoration-thickness: 2px;
	}

	@media (max-width: 1023px) {
		.v2-gnav {
			display: none;
		}
	}

	/* SERVICE に重ねて開くパネル（template-parts/gnav-service-panel.php）。開くのはマウスを乗せるかフォーカスが中にあるとき */
	/* パネルはメニューの項目ではなくヘッダー（position: relative）を基準に置き、本文と同じ幅で中央にそろえる */
	.v2-gnav .has-gnav-panel {
		position: static;
	}

	.v2-gnav .gnav-panel {
		position: absolute;
		top: 100%;
		left: 50%;
		width: min(calc(var(--w-content) + var(--gutter) * 2), calc(100vw - 48px));
		transform: translateX(-50%);
		padding-top: var(--sp-3);
		visibility: hidden;
		opacity: 0;
		transition: opacity var(--dur-fast) ease, visibility var(--dur-fast);
		font-family: var(--f-ja);
		letter-spacing: 0;
	}

	.v2-gnav .has-gnav-panel:hover > .gnav-panel,
	.v2-gnav .has-gnav-panel:has(:focus-visible) > .gnav-panel {
		visibility: visible;
		opacity: 1;
	}

	.v2-gnav .has-gnav-panel.is-dismissed > .gnav-panel {
		visibility: hidden;
		opacity: 0;
	}

	.v2-gnav .gnav-panel__inner {
		display: grid;
		grid-template-columns: 1fr 1.5fr 1.5fr;
		gap: var(--sp-6);
		padding: var(--sp-6);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		box-shadow: var(--shadow-card);
	}

	.v2-gnav .gnav-panel__head {
		display: block;
		padding-bottom: var(--sp-3);
		margin-bottom: var(--sp-3);
		border-bottom: 1px solid var(--c-line);
		text-decoration: none;
	}

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

	.v2-gnav .gnav-panel__ja {
		font-weight: 700;
	}

	.v2-gnav .gnav-panel__list {
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: var(--fs-sm);
		line-height: 1.6;
	}

	.v2-gnav .gnav-panel__list--2col {
		columns: 2;
		column-gap: var(--sp-4);
	}

	.v2-gnav .gnav-panel__list a {
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 4px 0;
		text-decoration: none;
	}

	.v2-gnav .gnav-panel__list a:hover,
	.v2-gnav .gnav-panel__list a[aria-current="page"] {
		color: var(--c-accent-text);
		text-decoration: underline;
	}

	.v2-gnav .gnav-panel__list .bx {
		color: var(--c-ink-mute);
	}

	/* ===== ドロワー（1023px 以下）。開閉の本体は checkbox（#nav-input）、JS は library/js/scripts.js ===== */
	.v2-drawer {
		display: none;
	}

	@media (max-width: 1023px) {
		.v2-drawer {
			display: block;
		}
	}

	.v2-drawer__input {
		position: fixed;
		top: 0;
		left: 0;
		width: 1px;
		height: 1px;
		opacity: 0;
	}

	.v2-drawer__toggle {
		position: fixed;
		top: 14px;
		right: 14px;
		z-index: 40;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		border-radius: 50%;
		background: var(--c-brand);
		cursor: pointer;
		box-shadow: var(--shadow-lift);
	}

	.v2-drawer__input:focus-visible ~ .v2-drawer__toggle {
		outline: 3px solid var(--c-focus);
		outline-offset: 3px;
	}

	.v2-drawer__bars {
		position: relative;
		width: 22px;
		height: 16px;
	}

	.v2-drawer__bars span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: var(--c-on-brand);
		transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
	}

	.v2-drawer__bars span:nth-child(1) {
		top: 0;
	}

	.v2-drawer__bars span:nth-child(2) {
		top: 7px;
	}

	.v2-drawer__bars span:nth-child(3) {
		top: 14px;
	}

	.v2-drawer__input:checked ~ .v2-drawer__toggle .v2-drawer__bars span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.v2-drawer__input:checked ~ .v2-drawer__toggle .v2-drawer__bars span:nth-child(2) {
		opacity: 0;
	}

	.v2-drawer__input:checked ~ .v2-drawer__toggle .v2-drawer__bars span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.v2-drawer__overlay {
		position: fixed;
		inset: 0;
		z-index: 30;
		background: rgba(30, 22, 38, 0.5);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--dur-fast) ease;
	}

	.v2-drawer__content {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 35;
		width: min(88vw, 400px);
		height: 100%;
		overflow-y: auto;
		padding: var(--sp-6) var(--sp-5) var(--sp-8);
		background: var(--c-brand);
		color: var(--c-on-brand);
		transform: translateX(105%);
		transition: transform 0.35s var(--ease-out);
		visibility: hidden;
	}

	.v2-drawer__input:checked ~ .v2-drawer__overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.v2-drawer__input:checked ~ .v2-drawer__content {
		transform: none;
		visibility: visible;
	}

	.v2-drawer__logo img {
		width: 120px;
		height: auto;
	}

	.v2-drawer__contact {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 52px;
		margin-top: var(--sp-5);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		color: var(--c-ink);
		font-family: var(--f-en);
		font-weight: 600;
		letter-spacing: var(--ls-en-wide);
		text-decoration: none;
	}

	.v2-drawer__head {
		margin: var(--sp-6) 0 var(--sp-2);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en-wide);
	}

	.v2-drawer .v2-footer__links a {
		display: flex;
		align-items: center;
		min-height: 44px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}

	/* ===== フッター（紫の地。文字は白と薄い紫灰だけ） ===== */
	.v2-footer {
		position: relative;
		overflow: hidden;
		padding: var(--sp-9) 0 var(--sp-7);
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-footer::before {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 40%;
		height: 100%;
		background: rgba(255, 255, 255, 0.04);
		clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
		pointer-events: none;
	}

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

	.v2-footer__top {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-6);
		padding-bottom: var(--sp-8);
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	.v2-footer__logo img {
		width: 185px;
		height: auto;
	}

	.v2-footer__contact {
		display: inline-flex;
		align-items: center;
		gap: var(--sp-5);
		min-height: 72px;
		padding: 0 12px 0 36px;
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		color: var(--c-ink);
		font-family: var(--f-en);
		font-weight: 500;
		font-size: var(--fs-2xl);
		letter-spacing: 0.12em;
		text-decoration: none;
		transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
	}

	.v2-footer__contact .v2-arrow--lg {
		width: 52px;
		height: 52px;
		font-size: var(--fs-lg);
	}

	.v2-footer__cols {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
		gap: var(--sp-7) var(--sp-6);
		margin-top: var(--sp-8);
	}

	.v2-footer__head {
		margin-bottom: var(--sp-4);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-md);
		letter-spacing: 0.14em;
	}

	.v2-footer__head--sns {
		margin-top: var(--sp-6);
	}

	.v2-footer__links {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.v2-footer__links ul {
		margin: 0;
		padding: 0 0 0 var(--sp-4);
		list-style: none;
	}

	.v2-footer__links a {
		color: var(--c-on-brand-sub);
		font-size: var(--fs-sm);
		line-height: 2.2;
		text-decoration: none;
	}

	.v2-footer__links a:hover {
		color: var(--c-on-brand);
		text-decoration: underline;
	}

	.v2-footer__cert {
		margin: 0;
		padding: 0;
		list-style: none;
		display: grid;
		gap: 14px;
		font-size: var(--fs-sm);
		line-height: 1.7;
		color: var(--c-on-brand);
		font-weight: 700;
	}

	.v2-footer__cert span {
		display: block;
		font-weight: 400;
		color: var(--c-on-brand-sub);
	}

	.v2-footer .sns-links,
	.v2-drawer .sns-links {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-2);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.v2-footer .sns-links a,
	.v2-drawer .sns-links a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 40px;
		padding: 0 14px;
		border: 1px solid rgba(255, 255, 255, 0.35);
		border-radius: var(--radius-pill);
		color: var(--c-on-brand);
		font-size: var(--fs-sm);
		text-decoration: none;
	}

	.v2-footer .sns-links svg,
	.v2-drawer .sns-links svg {
		width: 16px;
		height: 16px;
		fill: currentColor;
	}

	.v2-footer__copy {
		margin-top: var(--sp-8);
		padding-top: var(--sp-5);
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		font-family: var(--f-en);
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en);
		color: var(--c-on-brand-sub);
	}

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

	/* ===== ページ先頭へ（表示の切り替えは scripts.js が #page_top に付けるクラス） ===== */
	.v2-pagetop a {
		position: fixed;
		right: var(--sp-5);
		bottom: var(--sp-5);
		z-index: 10;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 52px;
		border: 1px solid var(--c-line-strong);
		border-radius: 50%;
		background: var(--c-bg);
		color: var(--c-ink);
		font-size: var(--fs-lg);
		box-shadow: 0 6px 18px rgba(40, 30, 50, 0.14);
	}

	/* ===== 横に送る帯（開発実績・コラム・テックブログ）。カードは斜めの継ぎ目で連なり、右の外まで続く ===== */
	.v2-strip {
		position: relative;
		margin-top: var(--sp-6);
		padding-left: max(var(--gutter), calc((100% - var(--w-content)) / 2));
	}

	.v2-strip__list {
		display: flex;
		margin: 0;
		padding: 0 0 4px;
		list-style: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
	}

	.v2-strip__list::-webkit-scrollbar {
		display: none;
	}

	.v2-strip__item {
		position: relative;
		flex: 0 0 min(330px, 82vw);
		margin-right: -22px;
		scroll-snap-align: start;
	}

	.v2-strip__card {
		display: flex;
		flex-direction: column;
		height: 100%;
		background: var(--strip-card-bg, var(--c-bg));
		text-decoration: none;
		clip-path: polygon(26px 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
	}

	.v2-strip__img {
		position: relative;
		display: block;
		overflow: hidden;
		line-height: 0;
		border-bottom: 4px solid var(--c-accent);
	}

	.v2-strip__img img {
		width: 100%;
		aspect-ratio: 16 / 10;
		object-fit: cover;
		transition: transform 0.6s var(--ease-out);
	}

	.v2-band--works .v2-strip__img img {
		object-fit: contain;
		background: var(--c-bg);
	}

	.v2-strip__body {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: var(--sp-2);
		padding: 18px 44px 22px 34px;
	}

	.v2-strip__date {
		font-family: var(--f-en);
		font-weight: 500;
		font-size: var(--fs-sm);
		letter-spacing: 0.1em;
		color: var(--c-ink-mute);
	}

	.v2-strip__title {
		flex: 1 1 auto;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: var(--fs-md);
		font-weight: 500;
		line-height: 1.75;
	}

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

	.v2-strip__more {
		align-self: flex-end;
		display: inline-flex;
		align-items: center;
		gap: 10px;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en);
	}

	.v2-strip__plus {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		border: 1px solid var(--c-input-line);
		border-radius: 50%;
		font-size: var(--fs-xs);
		transition: transform 0.3s ease;
	}

	@media (hover: hover) and (pointer: fine) {
		.v2-strip__card:hover .v2-strip__img img {
			transform: scale(1.06);
		}

		.v2-strip__card:hover .v2-strip__plus {
			transform: rotate(90deg);
		}

		.v2-strip__card:hover .v2-strip__title {
			text-decoration: underline;
			text-underline-offset: 4px;
			text-decoration-thickness: 1px;
		}
	}

	/* カテゴリの札（template-parts/card-category.php）は、カードのリンクの外から画像の左上に重ねる */
	.v2-strip__item .card-cat {
		position: absolute;
		top: 12px;
		left: 30px;
		z-index: 1;
		padding: 0 10px;
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-size: var(--fs-xs);
		font-weight: 700;
		line-height: 1.9;
		text-decoration: none;
	}

	/* 閲覧数・いいね・NEW・急上昇の札（issoh_article_card_badges の .eyecatch-stats）。画像の右下に重ねる */
	.eyecatch-stats {
		position: absolute;
		right: 8px;
		bottom: 8px;
		left: 8px;
		z-index: 1;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 6px;
		line-height: 1.4;
		pointer-events: none;
	}

	.v2-strip__img .eyecatch-stats {
		right: 34px;
	}

	.eyecatch-stat {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 2px 9px;
		border-radius: var(--radius-pill);
		background: rgba(255, 255, 255, 0.94);
		color: var(--c-ink);
		font-size: var(--fs-xs);
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	}

	.eyecatch-stat__svg {
		flex: none;
		width: 13px;
		height: 13px;
	}

	.eyecatch-stat--like .eyecatch-stat__svg {
		fill: var(--c-like);
	}

	.eyecatch-stat--readers .eyecatch-stat__svg,
	.eyecatch-stat--trend .eyecatch-stat__svg {
		fill: none;
		stroke: currentColor;
		stroke-width: 2.4;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.eyecatch-stat--new {
		background: var(--c-brand);
		color: var(--c-on-brand);
		letter-spacing: 0.05em;
	}

	.eyecatch-stat--trend {
		background: #b45309;
		color: #fff;
	}


	.v2-strip__nav {
		display: flex;
		align-items: center;
		gap: var(--sp-4);
		margin-top: var(--sp-5);
		padding-right: max(var(--gutter), calc((100vw - var(--w-content)) / 2));
	}

	.v2-strip__nav[hidden] {
		display: none;
	}

	.v2-strip__progress {
		position: relative;
		flex: 1 1 auto;
		height: 2px;
		background: var(--c-line);
	}

	.v2-strip__progress span {
		position: absolute;
		top: 0;
		left: 0;
		width: var(--strip-progress, 12%);
		height: 2px;
		background: var(--c-brand);
		transition: width 0.3s ease;
	}

	.v2-strip__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--c-line-strong);
		border-radius: 50%;
		background: var(--c-bg);
		color: var(--c-ink);
		font-size: var(--fs-md);
		cursor: pointer;
		transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
	}

	.v2-strip__btn:hover {
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	/* ===== 背景の斜線の格子（トップのファーストビュー・SERVICE・WORKS と下層ページの見出し）。ゆっくり横へ流れ、スクロールに合わせてずれる（--v2-sy は v2.js）。文字の側へ向けて薄く消す ===== */
	.v2-bg {
		position: absolute;
		inset: 0;
		overflow: hidden;
		pointer-events: none;
	}

	.v2-bg span {
		position: absolute;
		inset: -40px;
		background-image:
			repeating-linear-gradient(-66deg, rgba(67, 57, 78, 0.09) 0 1px, transparent 1px 28px),
			repeating-linear-gradient(-66deg, rgba(117, 196, 180, 0.22) 0 1px, transparent 1px 196px);
		transform: translate3d(calc(var(--v2-sy, 0) * -0.06px), 0, 0);
		animation: v2-bg-lines 40s linear infinite;
		-webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 75%);
		mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 75%);
	}

	.v2-bg--at-hero span {
		-webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 55%);
		mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 55%);
	}

	@keyframes v2-bg-lines {
		from {
			background-position: 0 0, 0 0;
		}

		to {
			background-position: 280px 0, 196px 0;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.v2-bg span {
			animation: none;
			transform: none;
		}
	}

	.v2-bg--at-pagehead span {
		-webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.45) 35%, transparent 60%);
		mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.45) 35%, transparent 60%);
	}

	/* ===== CLIENT（ロゴと社名が横に流れる。乗せると止まる） ===== */
	.v2-client {
		padding: var(--sp-8) 0 var(--sp-9);
	}

	.v2-client__head {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--sp-3);
	}

	.v2-client__marquee {
		margin-top: 28px;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	}

	.v2-client__track {
		display: flex;
		gap: var(--sp-3);
		width: max-content;
		margin: 0;
		padding: 0;
		list-style: none;
		animation: v2-marquee 60s linear infinite;
	}

	.v2-client__marquee:hover .v2-client__track,
	.v2-client__marquee:focus-within .v2-client__track {
		animation-play-state: paused;
	}

	@keyframes v2-marquee {
		from {
			transform: translateX(0);
		}

		to {
			transform: translateX(-50%);
		}
	}

	.v2-client__item a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--sp-2);
		width: 176px;
		text-decoration: none;
	}

	.v2-client__logo {
		display: block;
		width: 100%;
		padding: var(--sp-2) var(--sp-3);
		border: 1px solid var(--c-line);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		line-height: 0;
	}

	.v2-client__logo img {
		width: 100%;
		height: 64px;
		object-fit: contain;
	}

	.v2-client__name {
		font-size: var(--fs-xs);
		line-height: 1.5;
		text-align: center;
		color: var(--c-ink-mute);
	}

	/* ===== WORKS・COLUMN・TECH BLOG の帯 ===== */
	.v2-band {
		position: relative;
		padding: var(--section-y) 0;
		overflow: hidden;
	}

	.v2-band--works,
	.v2-band--soft {
		background: var(--c-soft);
	}

	.v2-band--white {
		--strip-card-bg: var(--c-soft);
	}

	.v2-band__plane {
		position: absolute;
		top: 0;
		left: 0;
		width: 30%;
		height: 100%;
		background: var(--c-soft-2);
		clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
	}

	.v2-band .v2-container,
	.v2-band .v2-strip {
		position: relative;
	}

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

	.v2-band__intro {
		flex: 0 1 600px;
		line-height: 2;
	}

	.v2-band__intro .v2-cluster {
		margin-top: var(--sp-5);
	}

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

	/* ===== 縦の動画の並び（template-parts/short-grid-list.php。再生と「もっと見る」は scripts.js） ===== */
	.short-grid .short-grid__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--sp-5);
		margin: var(--sp-7) 0 0;
		padding: 0;
		list-style: none;
	}

	.short-grid .short-video__player {
		position: relative;
		width: 100%;
		aspect-ratio: 9 / 16;
		overflow: hidden;
		border-radius: var(--radius-md);
		background: #111;
	}

	.short-grid .short-video__player iframe {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		border: 0;
	}

	.short-grid .short-video__btn {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.short-grid .short-video__btn img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s ease;
	}

	.short-grid .short-video__btn:hover img {
		transform: scale(1.04);
	}

	.short-grid .short-video__btn:focus-visible {
		outline: 3px solid var(--c-focus);
		outline-offset: -3px;
	}

	.short-grid .short-video__play {
		position: absolute;
		left: 50%;
		top: 50%;
		width: 64px;
		height: 64px;
		margin: -32px 0 0 -32px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.92);
		pointer-events: none;
	}

	.short-grid .short-video__play::after {
		content: "";
		position: absolute;
		left: 26px;
		top: 21px;
		border-style: solid;
		border-width: 11px 0 11px 18px;
		border-color: transparent transparent transparent var(--c-brand);
	}

	.short-grid .short-video__len {
		position: absolute;
		right: 12px;
		bottom: 12px;
		padding: 2px 10px;
		border-radius: var(--radius-sm);
		background: rgba(20, 14, 28, 0.78);
		color: #fff;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		line-height: 1.6;
		pointer-events: none;
	}

	.short-grid .short-grid__name {
		margin-top: 14px;
		font-size: var(--fs-md);
		font-weight: 700;
		line-height: 1.7;
	}

	.short-grid .short-grid__name a {
		text-decoration: none;
	}

	.short-grid .short-grid__name a:hover {
		text-decoration: underline;
	}

	/* 最初は PC で 6 本・SP で 4 本まで見せ、残りは「もっと見る」（.is-open）で開く。ボタンは残りがあるときだけ（short-grid--more-pc / --more-sp） */
	.short-grid:not(.is-open) .short-grid__item:nth-child(n + 7) {
		display: none;
	}

	.short-grid__expand {
		margin-top: var(--sp-5);
		text-align: center;
	}

	.short-grid:not(.short-grid--more-pc) .short-grid__expand,
	.short-grid.is-open .short-grid__expand {
		display: none;
	}

	.short-grid__more-btn {
		min-height: 44px;
		padding: 0 var(--sp-6);
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		color: var(--c-ink);
		font-weight: 700;
		cursor: pointer;
	}

	.short-grid__rest-sp {
		display: none;
	}

	@media (max-width: 600px) {
		.short-grid:not(.is-open) .short-grid__item:nth-child(n + 5) {
			display: none;
		}

		.short-grid.short-grid--more-sp:not(.is-open) .short-grid__expand {
			display: block;
		}

		.short-grid:not(.short-grid--more-sp) .short-grid__expand {
			display: none;
		}

		.short-grid__rest-pc {
			display: none;
		}

		.short-grid__rest-sp {
			display: inline;
		}
	}

	/* ドラマの欄の見出し・説明・問い合わせ（template-parts/service-dramas.php） */
	.short-video__eyebrow {
		margin: 0;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en-wide);
		color: var(--c-accent-text);
	}

	.short-video__title {
		margin: 4px 0 0;
		font-size: var(--fs-xl);
		line-height: 1.5;
	}

	.short-video__lead {
		margin: var(--sp-3) 0 0;
		line-height: 1.9;
	}

	.short-video__note {
		margin: var(--sp-2) 0 0;
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
	}

	.short-grid .short-video__more {
		display: flex;
		align-items: center;
		justify-content: center;
		width: fit-content;
		min-width: 280px;
		min-height: 56px;
		margin: var(--sp-6) auto 0;
		padding: 0 var(--sp-7);
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-weight: 700;
		text-decoration: none;
	}

	.short-grid__all {
		margin: var(--sp-4) 0 0;
		font-size: var(--fs-sm);
		text-align: center;
	}

	@media (max-width: 767px) {
		.short-grid .short-grid__list {
			display: flex;
			overflow-x: auto;
			scroll-snap-type: x mandatory;
			margin-right: calc(var(--gutter) * -1);
			padding-right: var(--gutter);
		}

		.short-grid .short-grid__item {
			flex: 0 0 70%;
			scroll-snap-align: start;
		}
	}

	/* ===== ご発注を検討中の方へ（template-parts/v2/guides.php） ===== */
	.v2-guide {
		padding: var(--section-y) 0;
	}

	.v2-guide__head {
		text-align: center;
	}

	.v2-guide__head p {
		margin-top: var(--sp-3);
	}

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

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

	.v2-guide__en {
		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-guide__title {
		font-size: var(--fs-xl);
		font-weight: 700;
		line-height: 1.5;
	}

	.v2-guide__text {
		flex: 1 1 auto;
		font-size: var(--fs-md);
		line-height: 1.9;
	}

	.v2-guide__more {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin-top: var(--sp-2);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-md);
		letter-spacing: var(--ls-en);
	}

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

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

	/* ===== 数字の帯（template-parts/v2/stats.php） ===== */
	.v2-stats {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.v2-stats__item {
		position: relative;
		padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
		border-left: 1px solid var(--c-line);
	}

	.v2-stats__item:first-child {
		border-left: 0;
	}

	.v2-stats__item::before {
		content: "";
		position: absolute;
		left: var(--sp-4);
		top: calc(var(--sp-5) + 0.5em);
		width: 7px;
		height: 18px;
		background: var(--c-accent);
		clip-path: var(--clip-tag);
	}

	.v2-stats__link {
		display: block;
		text-decoration: none;
	}

	.v2-stats__link:hover .v2-stats__label {
		text-decoration: underline;
	}

	.v2-stats__num {
		display: block;
		padding-left: var(--sp-4);
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-en);
		line-height: 1.1;
		letter-spacing: 0.02em;
	}

	.v2-stats__unit {
		margin-left: 4px;
		font-family: var(--f-ja);
		font-size: var(--fs-md);
		font-weight: 700;
	}

	.v2-stats__label {
		display: block;
		margin-top: var(--sp-2);
		padding-left: var(--sp-4);
		font-size: var(--fs-sm);
		color: var(--c-ink-sub);
	}

	@media (max-width: 599px) {
		.v2-stats {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}

		.v2-stats__item:nth-child(odd) {
			border-left: 0;
		}
	}

	/* ===== 下層ページの紹介の文と節の間隔（主要取引先・開発実績・ニュース） ===== */
	.v2-pageintro {
		padding-block: var(--sp-8) var(--sp-6);
	}

	/* リード文の大きさはサービス一覧の説明（.v2-svclist__lead）にそろえる */
	.v2-pageintro__lead {
		max-width: var(--w-text);
		font-size: var(--fs-md);
		line-height: 2;
	}

	.v2-pageintro .v2-stats {
		margin-top: var(--sp-6);
		border-block: 1px solid var(--c-line);
	}

	/* ===== 下層ページの見出し（部品集 P01。template-parts/v2/page-head.php） ===== */
	.v2-pagehead {
		position: relative;
		overflow: hidden;
		padding: 140px 0 var(--sp-7);
		background: var(--c-bg);
	}

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

	.v2-pagehead__plane--l {
		top: 0;
		left: 0;
		width: 58%;
		height: 100%;
		background: var(--c-soft);
		clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
	}

	/* 右端に上から下まで届く紫の斜めの面と、下の辺の緑の斜線（トップのファーストビューと同じ作り） */
	.v2-pagehead__plane--r {
		top: 0;
		right: 0;
		width: 30%;
		height: 100%;
		background: var(--c-brand);
		clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
	}

	.v2-pagehead::after {
		content: "";
		position: absolute;
		left: -40px;
		bottom: 0;
		width: 62%;
		height: 6px;
		background: var(--c-accent);
		transform: skewX(-24deg);
		pointer-events: none;
	}

	.v2-pagehead__inner {
		position: relative;
	}

	.v2-pagehead__en {
		display: block;
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-display);
		line-height: 1;
		letter-spacing: 0.06em;
	}

	/* 詳細ページでは h1 を本文の題名に譲って p で出す。h1 と同じ行の高さにして、パンくずの位置をそろえる */
	.v2-pagehead__heading {
		line-height: var(--lh-tight);
	}

	.v2-pagehead__heading--ja-first {
		display: flex;
		flex-direction: column-reverse;
		align-items: flex-start;
	}

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

	.v2-pagehead__ja {
		display: block;
		margin-top: var(--sp-3);
		font-size: var(--fs-md);
		font-weight: 700;
		color: var(--c-accent-text);
	}

	.v2-pagehead__title {
		display: block;
		margin-top: var(--sp-2);
		font-size: var(--fs-2xl);
		font-weight: 700;
		line-height: 1.45;
	}

	.v2-pagehead__crumb {
		margin-top: var(--sp-6);
	}

	/* パンくず（functions.php の custom_breadcrumb の div#breadcrumb） */
	#breadcrumb ul {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 0;
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: var(--fs-sm);
		color: var(--c-ink-mute);
	}

	#breadcrumb li {
		display: inline-flex;
		align-items: center;
	}

	#breadcrumb li + li::before {
		content: "";
		width: 6px;
		height: 12px;
		margin: 0 10px;
		background: var(--c-line-strong);
		clip-path: var(--clip-tag);
	}

	#breadcrumb a {
		color: var(--c-ink);
		text-decoration: none;
	}

	#breadcrumb a:hover {
		text-decoration: underline;
	}

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

		/* SP は見出しの文字に重ならないよう、右下の細い斜めの帯にする */
		.v2-pagehead__plane--r {
			top: auto;
			bottom: 0;
			width: 46%;
			height: 28px;
			clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
		}

		.v2-pagehead::after {
			width: 58%;
		}
	}

	/* ===== ページ下の回遊（template-parts/v2/site-footer.php）。紫の帯を斜めの線で 3 つの面に分ける。紫の地の文字は白と薄い紫灰だけ ===== */
	/* 下のフッターも紫なので、帯は一段濃くして細い線で分ける */
	.v2-loop {
		position: relative;
		overflow: hidden;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		background: color-mix(in srgb, var(--c-brand) 82%, #000);
		color: var(--c-on-brand);
	}

	.v2-loop::before {
		content: "";
		position: absolute;
		inset: 0 auto 0 0;
		width: 6px;
		background: var(--c-accent);
	}

	.v2-loop__list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
		max-width: calc(var(--w-content) + var(--gutter) * 2);
		margin: 0 auto;
		padding: 0;
		list-style: none;
	}

	.v2-loop__list li {
		position: relative;
		margin: 0;
	}

	.v2-loop__list li + li::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		width: 1px;
		background: rgba(255, 255, 255, 0.18);
		transform: skewX(-14deg);
		pointer-events: none;
	}

	.v2-loop__item {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 6px;
		min-height: 240px;
		height: 100%;
		padding: var(--sp-7) calc(var(--gutter) + 56px) var(--sp-7) var(--gutter);
		overflow: hidden;
		color: var(--c-on-brand);
		text-decoration: none;
	}

	.v2-loop__no {
		position: absolute;
		right: var(--sp-4);
		bottom: -0.18em;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-display);
		line-height: 1;
		color: transparent;
		-webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
		pointer-events: none;
		transition: -webkit-text-stroke-color var(--dur-fast) ease;
	}

	.v2-loop__en {
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-en);
		line-height: 1;
		letter-spacing: 0.06em;
	}

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

	.v2-loop__desc {
		margin-top: auto;
		padding-top: var(--sp-4);
		font-size: var(--fs-sm);
		color: var(--c-on-brand-sub);
	}

	.v2-loop__item .v2-arrow {
		position: absolute;
		right: var(--gutter);
		top: var(--sp-7);
		background: var(--c-bg);
		color: var(--c-brand);
	}

	.v2-loop__item:hover .v2-loop__no {
		-webkit-text-stroke-color: rgba(255, 255, 255, 0.4);
	}

	.v2-loop__item:hover .v2-arrow {
		transform: translateX(4px);
	}

	.v2-loop__item:focus-visible {
		outline: 2px solid var(--c-on-brand);
		outline-offset: -6px;
	}

	@media (max-width: 767px) {
		.v2-loop__list li + li::before {
			top: 0;
			bottom: auto;
			left: var(--gutter);
			right: var(--gutter);
			width: auto;
			height: 1px;
			transform: none;
		}

		.v2-loop__item {
			min-height: 0;
			padding-block: var(--sp-6);
		}

		.v2-loop__desc {
			padding-top: var(--sp-2);
		}

		.v2-loop__no {
			font-size: var(--fs-display);
		}
	}

	/* ===== 記事のカードの格子（部品集 P06。template-parts/v2/article-card.php） ===== */
	.v2-cards {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
		gap: var(--sp-6) var(--sp-5);
		margin: var(--sp-6) 0 0;
		padding: 0;
		list-style: none;
	}

	.v2-card {
		position: relative;
	}

	.v2-card__link {
		display: flex;
		flex-direction: column;
		height: 100%;
		background: var(--c-bg);
		text-decoration: none;
		clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
		box-shadow: inset 0 0 0 1px var(--c-line);
	}

	.v2-card__img {
		position: relative;
		display: block;
		overflow: hidden;
		line-height: 0;
		border-bottom: 4px solid var(--c-accent);
	}

	.v2-card__img img {
		width: 100%;
		aspect-ratio: 16 / 10;
		object-fit: cover;
		transition: transform 0.6s var(--ease-out);
	}

	.v2-card__body {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: 6px;
		padding: var(--sp-4) 30px var(--sp-4) 26px;
	}

	.v2-card__date {
		font-family: var(--f-en);
		font-weight: 500;
		font-size: var(--fs-sm);
		letter-spacing: 0.1em;
		color: var(--c-ink-mute);
	}

	.v2-card__title {
		flex: 1 1 auto;
		font-size: var(--fs-md);
		font-weight: 500;
		line-height: 1.75;
	}

	.v2-card__more {
		align-self: flex-end;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en);
	}

	.v2-card__plus {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 26px;
		height: 26px;
		border: 1px solid var(--c-input-line);
		border-radius: 50%;
		font-size: var(--fs-xs);
		transition: transform 0.3s ease;
	}

	.v2-card .card-cat {
		position: absolute;
		top: 10px;
		left: 24px;
		z-index: 1;
		padding: 0 10px;
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-size: var(--fs-xs);
		font-weight: 700;
		line-height: 1.9;
		text-decoration: none;
	}

	@media (hover: hover) and (pointer: fine) {
		.v2-card__link:hover .v2-card__img img {
			transform: scale(1.06);
		}

		.v2-card__link:hover .v2-card__plus {
			transform: rotate(90deg);
		}

		.v2-card__link:hover .v2-card__title {
			text-decoration: underline;
			text-underline-offset: 4px;
			text-decoration-thickness: 1px;
		}
	}

	/* 一覧へ戻る（矢印が左） */
	.v2-more--back {
		padding: 0 var(--sp-5) 0 6px;
	}

	@media (hover: hover) and (pointer: fine) {
		.v2-more--back:hover .v2-arrow {
			transform: translateX(-4px);
		}
	}

	/* ===== 業種から探す・課題から探す の入口（template-parts/guide-entrance.php の ul.guide-nav） ===== */
	.guide-nav {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
		gap: var(--sp-4);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.guide-nav a {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 2px;
		padding: var(--sp-5) 72px var(--sp-5) 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;
	}

	.guide-nav a::after {
		content: "";
		position: absolute;
		right: var(--sp-5);
		top: 50%;
		width: 44px;
		height: 44px;
		margin-top: -22px;
		border-radius: 50%;
		background: var(--c-brand) var(--icon-arrow-white) no-repeat center / 18px;
	}

	.guide-nav a:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 40px rgba(40, 30, 50, 0.12);
	}

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

	.guide-nav__ja {
		font-size: var(--fs-xl);
		font-weight: 700;
	}

	.v2-page__guide {
		padding-bottom: var(--sp-9);
	}

	/* ===== 動き ===== */
	@keyframes v2-up {
		from {
			transform: translateY(28px);
			opacity: 0;
		}

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

	@keyframes v2-pop {
		from {
			transform: translateY(32px) scale(0.97);
			opacity: 0;
		}

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

	@keyframes v2-rise-in {
		from {
			transform: translateY(48px);
			opacity: 0;
		}

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

	.v2-rise {
		display: inline-block;
		animation: v2-up var(--dur-slow) var(--ease-out) both;
		animation-delay: var(--d, 0s);
	}

	p.v2-rise,
	div.v2-rise {
		display: block;
	}

	.v2-pop {
		animation: v2-pop 0.9s 0.7s var(--ease-out) both;
	}

	/* スクロールで浮かぶ。animation-timeline の無いブラウザ（Safari・Firefox）と、動きを減らす設定では止まったまま見える
	  （base.css の「動きを減らす」は時間を縮めるだけで、スクロールに結んだ動きは画面に入るまで消えたままになるため、ここで外す） */
	@supports (animation-timeline: view()) {
		@media (prefers-reduced-motion: no-preference) {
			.v2-reveal {
				animation: v2-rise-in linear both;
				animation-timeline: view();
				animation-range: entry 0% entry 60%;
			}
		}
	}

	/* ページ先頭へ: 少し下へ進んでから出す（v2.js が is-visible を付ける） */
	.v2-pagetop a {
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--dur-fast) ease, visibility var(--dur-fast);
	}

	.v2-pagetop.is-visible a {
		opacity: 1;
		visibility: visible;
	}
}

/*
 * ここから @layer の外。プラグインの CSS は @layer の外で読まれ、@layer の中の指定に必ず勝つため、上書きだけはここに書く。
 * WPFront Scroll Top のボタンは、v2 の「ページ先頭へ」（#page_top）と同じ右下に重なるので、v2 のページでは出さない。
 */
body.v2 #wpfront-scroll-top-container {
	display: none !important;
}


@layer components {
	/* ===== サービス 7 部門への入口（template-parts/v2/dept-links.php。会社概要） ===== */
	.v2-deptlinks {
		padding-block: var(--section-y);
		background: var(--c-soft);
	}

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

	.v2-deptlinks__card {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 4px;
		height: 100%;
		padding: var(--sp-5) 64px var(--sp-5) var(--sp-5);
		background: var(--c-bg);
		text-decoration: none;
		clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
		transition: background-color var(--dur-fast), color var(--dur-fast);
	}

	.v2-deptlinks__card .v2-arrow {
		position: absolute;
		right: var(--sp-5);
		top: 50%;
		margin-top: -16px;
	}

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

	.v2-deptlinks__name {
		font-size: var(--fs-lg);
		font-weight: 700;
	}

	.v2-deptlinks__card:hover {
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-deptlinks__card:hover .v2-deptlinks__en {
		color: var(--c-on-brand-sub);
	}

	.v2-deptlinks__card:hover .v2-arrow {
		background: var(--c-bg);
		color: var(--c-brand);
		transform: translateX(4px);
	}

	/* ===== 新しい記事とお知らせを受け取る（ニュースの一覧） ===== */
	.v2-follow {
		padding-block: var(--sp-8) var(--sp-9);
	}

	.v2-follow__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-6);
		padding-block: var(--sp-7);
		border-block: 1px solid var(--c-line);
	}

	.v2-follow__text {
		flex: 1 1 420px;
	}

	.v2-follow__en {
		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-follow__title {
		margin-top: 4px;
		font-size: var(--fs-xl);
		font-weight: 700;
	}

	.v2-follow__text p:last-child {
		margin-top: var(--sp-2);
		color: var(--c-ink-sub);
	}

	.v2-follow__actions {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-4);
	}

	.v2-follow .sns-links {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-2);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.v2-follow .sns-links a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-width: 44px;
		min-height: 44px;
		padding: 0 12px;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		color: var(--c-ink);
		font-size: var(--fs-sm);
		text-decoration: none;
	}

	.v2-follow .sns-links svg {
		width: 16px;
		height: 16px;
		fill: currentColor;
	}
}

@layer components {
	/* ===== 資料請求・ご相談の帯（template-parts/v2/request-cta.php）。紫の地の上は白と薄い紫灰の文字だけ ===== */
	.v2-cta {
		padding-block: var(--sp-8) var(--sp-9);
	}

	.v2-cta__inner {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-6) var(--sp-8);
		overflow: hidden;
		padding: clamp(28px, 4vw, 56px);
		border-radius: var(--radius-md);
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-cta__inner::before {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 38%;
		height: 100%;
		background: rgba(255, 255, 255, 0.05);
		clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
		pointer-events: none;
	}

	.v2-cta__text {
		position: relative;
		flex: 1 1 440px;
	}

	.v2-cta__en {
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en-wide);
		color: var(--c-on-brand-sub);
	}

	.v2-cta__title {
		margin-top: 4px;
		font-size: var(--fs-2xl);
		font-weight: 700;
		line-height: 1.4;
	}

	.v2-cta__lead {
		margin-top: var(--sp-3);
		line-height: 1.9;
		color: var(--c-on-brand-sub);
	}

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

	.v2-cta__docs li {
		padding: 2px 12px;
		border: 1px solid rgba(255, 255, 255, 0.35);
		border-radius: var(--radius-pill);
		font-size: var(--fs-xs);
	}

	.v2-cta__actions {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
		min-width: min(100%, 280px);
	}

	.v2-cta__btn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-4);
		min-height: 60px;
		padding: 0 8px 0 var(--sp-6);
		border: 1px solid rgba(255, 255, 255, 0.6);
		border-radius: var(--radius-pill);
		color: var(--c-on-brand);
		font-weight: 700;
		text-decoration: none;
		transition: transform var(--dur-fast), box-shadow var(--dur-fast);
	}

	.v2-cta__btn .v2-arrow {
		width: 44px;
		height: 44px;
		background: var(--c-bg);
		color: var(--c-brand);
	}

	.v2-cta__btn--doc {
		border-color: var(--c-bg);
		background: var(--c-bg);
		color: var(--c-ink);
	}

	.v2-cta__btn--doc .v2-arrow {
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-cta__btn:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	}

	.v2-cta__btn:hover .v2-arrow {
		transform: translateX(4px);
	}

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

@layer components {
	/* 業種・課題の入口のカードに添える数（template-parts/guide-entrance.php の count） */
	.guide-nav__count {
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
	}
}

@layer components {
	/* ===== 記事の写真付きのカード（template-parts/v2/related-cards.php。部門ページの関連記事・サービス詳細の関連リンク） ===== */
	.v2-relcards {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
		gap: var(--sp-5);
		margin: var(--sp-6) 0 0;
		padding: 0;
		list-style: none;
	}

	.v2-relcards li {
		margin: 0;
		padding: 0;
	}

	.v2-relcards li::before {
		content: none;
	}

	.v2-relcards__link {
		position: relative;
		display: flex;
		flex-direction: column;
		height: 100%;
		overflow: hidden;
		border-radius: var(--radius-md);
		background: var(--c-bg);
		box-shadow: 0 1px 0 var(--c-line), 0 0 0 1px var(--c-line);
		color: var(--c-ink);
		text-decoration: none;
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.v2-relcards__img {
		position: relative;
		display: block;
		overflow: hidden;
		aspect-ratio: 16 / 9;
		border-bottom: 4px solid var(--c-accent);
		background: var(--c-soft);
		line-height: 0;
	}

	.v2-relcards__img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.6s ease;
	}

	.v2-relcards__no {
		position: absolute;
		top: 0;
		left: 0;
		padding: 6px 18px 6px 12px;
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		line-height: 1.2;
		clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
	}

	.v2-relcards__body {
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: 6px;
		padding: var(--sp-4) calc(var(--sp-5) + 40px) var(--sp-5) var(--sp-5);
	}

	.v2-relcards__body::after {
		content: "";
		position: absolute;
		right: var(--sp-4);
		bottom: var(--sp-4);
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: var(--c-brand) var(--icon-arrow-white) no-repeat center / 14px;
		transition: transform 0.3s ease;
	}

	.v2-relcards__type {
		font-size: var(--fs-xs);
		font-weight: 700;
		color: var(--c-accent-text);
	}

	.v2-relcards__title {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		font-size: var(--fs-md);
		font-weight: 700;
		line-height: 1.6;
	}

	.v2-relcards__link:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 40px rgba(40, 30, 50, 0.14), 0 0 0 1px var(--c-brand);
	}

	.v2-relcards__link:hover .v2-relcards__img img {
		transform: scale(1.06);
	}

	.v2-relcards__link:hover .v2-relcards__body::after {
		transform: translateX(4px);
	}
}

@layer components {
	/* ===== 本文の「関連サービス」（library/v2/helpers.php の issoh_v2_related_lists が ul に付ける）。斜めに切った面を連ねた帯 ===== */
	.v2-prose .v2-relsvc {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
		gap: 6px 0;
		margin: var(--sp-5) 0 0;
		padding: 0 14px 0 0;
		list-style: none;
	}

	.v2-prose .v2-relsvc li {
		margin: 0;
		padding: 0;
	}

	.v2-prose .v2-relsvc li::before {
		content: none;
	}

	.v2-prose .v2-relsvc li > a {
		position: relative;
		display: flex;
		align-items: center;
		height: 100%;
		min-height: 88px;
		margin-right: -14px;
		padding: var(--sp-4) 64px var(--sp-4) 36px;
		background: var(--c-soft);
		color: var(--c-ink);
		font-weight: 700;
		line-height: 1.55;
		text-decoration: none;
		clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
		transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
	}

	.v2-prose .v2-relsvc li:nth-child(even) > a {
		background: var(--c-soft-2);
	}

	.v2-prose .v2-relsvc li > a::after {
		content: "";
		position: absolute;
		right: 34px;
		top: 50%;
		width: 32px;
		height: 32px;
		margin-top: -16px;
		border-radius: 50%;
		background: var(--c-brand) var(--icon-arrow-white) no-repeat center / 14px;
		transition: transform var(--dur-fast) ease;
	}

	.v2-prose .v2-relsvc li > a:hover {
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.v2-prose .v2-relsvc li > a:hover::after {
		background-color: var(--c-bg);
		background-image: var(--icon-arrow-brand);
		transform: translateX(4px);
	}

	/* 本文の中の横に送る帯。本文の幅の中で送る（右のサイドバーに重ねない） */
	.v2-prose .v2-strip--inline {
		margin-top: var(--sp-5);
		padding-left: 0;
	}

	.v2-prose .v2-strip--inline .v2-strip__list {
		margin: 0;
		padding: 0 0 4px;
	}

	.v2-prose .v2-strip--inline .v2-strip__list > li {
		margin: 0;
		padding: 0;
	}

	.v2-prose .v2-strip--inline .v2-strip__list > li::before {
		content: none;
	}

	/* 本文のリンクの色・下線と、画像の上下の余白を、帯のカードでは打ち消す（カテゴリの札の白い文字は残す） */
	.v2-prose .v2-strip--inline .v2-strip__card,
	.v2-prose .v2-strip--inline .v2-strip__card:hover {
		color: var(--c-ink);
		text-decoration: none;
	}

	.v2-prose .v2-strip--inline .card-cat {
		color: var(--c-on-brand);
		text-decoration: none;
	}

	.v2-prose .v2-strip--inline img {
		margin: 0;
	}

	/* 本文の中の写真付きのカード。本文のリンクの色・下線・リストの印を打ち消す */
	.v2-prose .v2-relcards {
		margin-top: var(--sp-5);
	}

	.v2-prose .v2-relcards a,
	.v2-prose .v2-relcards a:hover {
		color: var(--c-ink);
		text-decoration: none;
	}

	.v2-prose .v2-relcards li::marker {
		content: none;
	}
}
