/* ==========================================================
   Lacunae Tech — base
   tokens / reset / typography / header / footer / buttons
   ========================================================== */

:root {
	--ink: #0b1118;
	--ink-2: #07101b;
	--white: #fff;
	--muted: #5c6670;
	--muted-2: #67717b;
	--line: #dfe3e8;
	--surface: #f5f7f9;
	--blue: #2b7cff;
	--blue-text: #1f63d6;   /* 白背景上の小さい文字用（コントラスト確保） */
	--green: #41d394;
	--green-text: #1f7a5b;  /* 白背景上の小さい文字用 */
	--green-strong: #28b875;

	--header: 74px;
	--gutter: clamp(20px, 5vw, 78px);
	--section-pad: clamp(56px, 6vw, 100px);

	--font: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--ease-wipe: cubic-bezier(.76, 0, .24, 1);
}

@media (max-width: 640px) {
	:root { --header: 64px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
@media (prefers-reduced-motion: no-preference) {
	html:not(.motion-off) { scroll-behavior: smooth; }
}
body {
	margin: 0;
	color: var(--ink);
	background: var(--white);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.9;
	letter-spacing: .01em;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 500; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }

/* 角張り・影なし・グラスなしを全体で担保 */
button, input, select, textarea { border-radius: 0; }

/* ---------- a11y ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: 12px; top: 12px;
	z-index: 200;
	padding: 12px 16px;
	background: var(--ink);
	color: var(--white);
	font-size: 13px;
	font-weight: 700;
	transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}
.site-main:focus { outline: none; }

/* ---------- shared type ---------- */
.kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.4;
	color: var(--green-text);
	text-transform: uppercase;
}
.display-title {
	margin: 18px 0 0;
	font-size: clamp(46px, 7vw, 110px);
	line-height: .96;
	letter-spacing: -.06em;
	font-weight: 500;
}
.display-title--sm { font-size: clamp(40px, 5vw, 76px); }
.is-accent { color: var(--blue); }

/* ---------- links / buttons ---------- */
.stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 38px;
	min-width: 180px;
	min-height: 48px;
	padding: 13px 16px;
	border: 1px solid currentColor;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.4;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--line { color: var(--white); border-color: var(--white); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn:hover,
.btn:focus-visible { background: var(--green); border-color: var(--green); color: #08130e; }

.text-link {
	display: inline-flex;
	gap: 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
}
.text-link:hover { color: var(--blue); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
	position: relative;
	z-index: 50;
	height: var(--header);
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 34px;
	align-items: center;
	padding: 0 34px;
	background: var(--white);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.has-overlay-header .site-header {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
	color: var(--white);
	border-bottom-color: rgba(255, 255, 255, .22);
}
.brand {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1;
	justify-self: start;
}
.brand span { font-weight: 400; }
.custom-logo { max-height: 40px; width: auto; }

.site-nav .nav-list {
	display: flex;
	gap: 26px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.site-nav .nav-list a { opacity: .84; padding: 8px 0; }
.site-nav .nav-list a:hover,
.site-nav .nav-list .current-menu-item > a { opacity: 1; }
.site-nav .nav-contact { display: none; }

.contact-mini {
	padding: 11px 15px;
	border: 1px solid currentColor;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.2;
	transition: background-color .2s, color .2s;
}
.contact-mini:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.has-overlay-header .contact-mini { border-color: rgba(255, 255, 255, .72); }
.has-overlay-header .contact-mini:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid currentColor;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	position: absolute;
	left: 12px;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform .2s, opacity .2s;
}
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.site-header { grid-template-columns: 1fr auto auto; gap: 12px; padding: 0 16px; }
	.menu-toggle { display: block; }
	.contact-mini { padding: 12px 12px; }

	/* JS 有効時のみドロワー化。無効時は通常のリストとして下に展開 */
	.js .site-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		padding: calc(var(--header) + 24px) 20px 32px;
		background: var(--ink);
		color: var(--white);
		display: flex;
		flex-direction: column;
		gap: 32px;
		visibility: hidden;
		opacity: 0;
		transition: opacity .2s, visibility .2s;
		overflow-y: auto;
	}
	.js .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity .2s, visibility 0s; }
	.js .menu-open .site-header { color: var(--white); background: transparent; border-bottom-color: rgba(255, 255, 255, .22); }
	.js .menu-open { overflow: hidden; }
	.site-nav .nav-list {
		flex-direction: column;
		gap: 0;
		font-size: clamp(28px, 8vw, 44px);
		font-weight: 500;
		letter-spacing: -.03em;
	}
	.site-nav .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, .18); }
	.site-nav .nav-list a { display: block; padding: 14px 0; opacity: 1; }
	.site-nav .nav-contact {
		display: flex;
		justify-content: space-between;
		padding: 16px;
		background: var(--white);
		color: var(--ink);
		font-size: 12px;
		font-weight: 800;
		letter-spacing: .12em;
	}
	html:not(.js) .site-nav { grid-column: 1 / -1; }
	html:not(.js) .menu-toggle { display: none; }
}
@media (max-width: 380px) {
	.contact-mini { display: none; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
	min-height: 72px;
	padding: 18px 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--muted);
}
.footer-nav { display: flex; gap: 20px; }
.home .site-footer { padding-right: 150px; }
.footer-nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
	.site-footer,
	.home .site-footer { padding: 20px 20px 64px; display: block; line-height: 2; }
	.site-footer > * { display: block; }
	.footer-nav { flex-wrap: wrap; }
}

/* ==========================================================
   Motion toggle
   ========================================================== */
.motion-toggle {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 120;
	min-height: 32px;
	padding: 8px 10px;
	border: 1px solid var(--ink);
	background: var(--white);
	color: var(--ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .11em;
	line-height: 1;
	cursor: pointer;
}
.motion-toggle:hover { background: var(--ink); color: var(--white); }
/* ヒーロー表示中はスライダー自身の PAUSE があるため隠す（操作の重なり防止） */
.motion-toggle.is-hidden { visibility: hidden; opacity: 0; }
.motion-toggle { transition: opacity .2s, visibility .2s; }

/* ==========================================================
   Reduced motion / motion-off
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
.motion-off *, .motion-off *::before, .motion-off *::after {
	animation: none !important;
	transition: none !important;
}
html:not(.js) .motion-toggle { display: none; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
