/* ============================================================
   固定ページ共通（テーマ内専用）
   subpage.css の後に読む
   ============================================================ */

/* Lightning Origin2 の h2 上罫線・余白／h3 下線を打ち消し */
body.totop-page h2,
body.totop-page h3,
body.totop-page h4,
body.totop-page .sec-title {
	padding: 0;
	border: 0;
	border-top: none;
	border-bottom: none;
	background: none;
	clear: none;
}

body.totop-page h3::after,
body.totop-page h3:after {
	content: none;
	display: none;
}

body.totop-page .sec-title {
	margin: 0 0 52px;
}

/* 編集画面本文エリア（汎用 page.php） */
body.totop-page .page-body {
	max-width: 760px;
	font-size: 15.5px;
	line-height: 2;
}

body.totop-page .page-body > *:first-child {
	margin-top: 0;
}

body.totop-page .page-body p {
	margin: 0 0 1.6em;
}

body.totop-page .page-body h2 {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.6;
	margin: 2.4em 0 1em;
}

body.totop-page .page-body a {
	color: var(--teal-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 会社概要表（Lightning dt/dd リセット込み） */
body.totop-page .company-table {
	max-width: 760px;
	margin: 0;
}

body.totop-page .company-table > div {
	display: grid;
	grid-template-columns: 160px 1fr;
	padding: 20px 8px;
	border-bottom: 1px solid var(--line);
	font-size: 14.5px;
}

body.totop-page .company-table > div:first-child {
	border-top: 1px solid var(--line);
}

body.totop-page .company-table dt,
body.totop-page .company-table dd {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

body.totop-page .company-table dt {
	font-weight: 700;
	color: var(--ink-soft);
}

@media (max-width: 767px) {
	body.totop-page .company-table > div {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 14px 4px;
	}
}

/* ---------- reveal（トップと同仕様。JS 有効時のみ初期非表示） ---------- */
html.js body.totop-page .totop-page .reveal,
html.js body.totop-page .totop-page .reveal-group > *,
html.js body.totop-page main.totop-page .reveal,
html.js body.totop-page main.totop-page .reveal-group > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease, var(--totop-ease, cubic-bezier(0.22, 0.61, 0.36, 1))), transform 0.7s var(--ease, var(--totop-ease, cubic-bezier(0.22, 0.61, 0.36, 1)));
}

html.js body.totop-page .totop-page .reveal.visible,
html.js body.totop-page .totop-page .reveal-group.visible > *,
html.js body.totop-page main.totop-page .reveal.visible,
html.js body.totop-page main.totop-page .reveal-group.visible > * {
	opacity: 1;
	transform: translateY(0);
}

body.totop-page .totop-page .reveal-group.visible > *:nth-child(2),
body.totop-page main.totop-page .reveal-group.visible > *:nth-child(2) {
	transition-delay: 0.08s;
}

body.totop-page .totop-page .reveal-group.visible > *:nth-child(3),
body.totop-page main.totop-page .reveal-group.visible > *:nth-child(3) {
	transition-delay: 0.16s;
}

body.totop-page .totop-page .reveal-group.visible > *:nth-child(4),
body.totop-page main.totop-page .reveal-group.visible > *:nth-child(4) {
	transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
	html.js body.totop-page .totop-page .reveal,
	html.js body.totop-page .totop-page .reveal-group > *,
	html.js body.totop-page main.totop-page .reveal,
	html.js body.totop-page main.totop-page .reveal-group > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* タイル判子（page.js が .sec-label / .page-hero-en に注入） */
body.totop-page .tile-mark {
	display: inline-block;
	width: 0.46em;
	height: 0.46em;
	margin-right: 0.24em;
	vertical-align: 0.02em;
}

body.totop-page .tile-mark svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

body.totop-page .tile-mark .t4 {
	transform-box: fill-box;
	transform-origin: center;
	transform: rotate(0deg);
	transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

body.totop-page .tile-mark.turn .t4 {
	transform: rotate(45deg);
}

@media (max-width: 767px) {
	body.totop-page .tile-mark {
		width: 0.56em;
		height: 0.56em;
		margin-right: 0.26em;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.totop-page .tile-mark .t4 {
		transform: rotate(45deg) !important;
		transition: none !important;
	}
}

/* CTA（ダークバンド） */
body.totop-page .cta {
	position: relative;
	overflow: hidden;
	text-align: center;
	background:
		var(--totop-noise-cta),
		linear-gradient(160deg, #27433e 0%, #1d3531 100%);
	color: #fff;
	padding: 104px 0;
}

body.totop-page .cta-copy {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(28px, 4.2vw, 44px);
	letter-spacing: 0.05em;
	line-height: 1.5;
	margin: 0 0 20px;
	color: #fff;
	font-feature-settings: "palt";
	word-break: auto-phrase;
}

body.totop-page .cta-text {
	margin: 0 0 36px;
	font-size: 14.5px;
	line-height: 1.9;
	opacity: 0.78;
	color: #fff;
}

body.totop-page .btn-primary {
	display: inline-block;
	background: var(--teal);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	padding: 15px 40px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
	border: 0;
}

body.totop-page .btn-primary.large {
	padding: 18px 56px;
	font-size: 16px;
}

body.totop-page .btn-primary:hover {
	background: #35c6c5;
	color: #fff;
}

@media (max-width: 767px) {
	body.totop-page .cta {
		padding: 64px 0;
	}
}
