:root {
	--accent: #cf2e2e;
	--accent-soft: rgba(207, 46, 46, 0.98);
	--ink: #161616;
	--muted: #555;
	--line: #e6e6e6;
	--bg: #f6f6f6;
	--max: 1120px;
	--header-h: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Noto Sans JP", sans-serif;
	color: var(--ink);
	background: #fff;
	line-height: 1.8;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.container {
	width: min(100% - 40px, var(--max));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 40px, 720px);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid var(--accent);
	border-radius: 2px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.btn--outline {
	background: transparent;
	color: var(--accent);
}

.btn--light {
	background: #fff;
	color: var(--accent);
	border-color: #fff;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}

.site-header__inner {
	width: min(100% - 40px, var(--max));
	height: 100%;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-logo img {
	width: min(200px, 52vw);
	height: auto;
}

.menu-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	width: 44px;
	height: 44px;
	padding: 10px;
	display: grid;
	align-content: center;
	gap: 6px;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 100%;
	height: 3px;
	background: #111;
	border-radius: 1px;
}

/* Drawer */
.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 150;
}

.drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 160;
	width: min(86vw, 360px);
	height: 100%;
	background: #fff;
	padding: 72px 28px 32px;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

.drawer.is-open {
	transform: translateX(0);
}

.drawer__close {
	position: absolute;
	top: 16px;
	right: 16px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #111;
}

.drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.drawer__list a {
	display: block;
	padding: 14px 4px;
	text-decoration: none;
	font-weight: 700;
	font-size: 18px;
	border-bottom: 1px solid var(--line);
}

.drawer__list a:hover {
	color: var(--accent);
}

body.is-drawer-open {
	overflow: hidden;
}

/* FV */
.fv {
	position: relative;
	min-height: min(78vh, 720px);
	display: grid;
	place-items: center;
	color: #fff;
	background-color: #1f1f1f;
	background-image:
		linear-gradient(105deg, rgba(20, 20, 20, 0.72) 0%, rgba(20, 20, 20, 0.35) 55%, rgba(20, 20, 20, 0.22) 100%),
		var(--fv-image);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.fv__inner {
	width: min(100% - 40px, var(--max));
	padding: 80px 0 100px;
}

.fv__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	transform: translateX(-50%);
	z-index: 2;
}

.fv__scroll-label {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	opacity: 0.9;
}

.fv__scroll-arrow {
	position: relative;
	width: 1px;
	height: 28px;
	background: rgba(255, 255, 255, 0.55);
	animation: fv-scroll-pulse 2.2s ease-in-out infinite;
}

.fv__scroll-arrow::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 7px;
	height: 7px;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	transform: translateX(-50%) rotate(45deg);
	opacity: 0.95;
}

.fv__scroll:hover .fv__scroll-label {
	opacity: 1;
}

@keyframes fv-scroll-pulse {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.65;
	}
	50% {
		transform: translateY(6px);
		opacity: 1;
	}
}

.fv__catch {
	margin: 0 0 20px;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.fv__lead {
	margin: 0;
	max-width: 36em;
	font-size: clamp(15px, 1.7vw, 18px);
}

.fv__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
	max-width: 720px;
}

.fv__stat {
	padding: 16px 14px;
	border: 1px solid rgba(232, 180, 180, 0.7);
	background: rgba(255, 245, 245, 0.92);
	color: var(--ink);
	backdrop-filter: blur(4px);
}

.fv__stat-label {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.fv__stat-value {
	margin: 0;
	font-size: clamp(16px, 2vw, 22px);
	font-weight: 800;
	line-height: 1.35;
	color: var(--accent);
}

.fv__stat-value span {
	display: inline-block;
	margin-left: 4px;
	font-size: 0.7em;
	font-weight: 500;
	color: var(--muted);
}

@media (max-width: 600px) {
	.fv {
		min-height: 0;
	}

	.fv__inner {
		padding: 36px 0 72px;
	}

	.fv__catch {
		margin-bottom: 12px;
		font-size: clamp(24px, 7vw, 30px);
	}

	.fv__lead {
		font-size: 13px;
		line-height: 1.7;
	}

	.fv__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		max-width: none;
		margin-top: 20px;
	}

	.fv__stat {
		padding: 12px 8px;
	}

	.fv__stat-label {
		font-size: 10px;
		margin-bottom: 6px;
	}

	.fv__stat-value {
		font-size: 13px;
	}

	.fv__stat-value span {
		display: block;
		margin-left: 0;
		margin-top: 2px;
		font-size: 10px;
	}

	.fv__scroll {
		bottom: 16px;
	}
}

/* Lead */
.lead {
	padding: 72px 0;
}

.lead__heading {
	margin: 0 0 28px;
	padding: 18px 24px;
	background: var(--accent-soft);
	color: #fff;
	font-size: clamp(20px, 2.4vw, 28px);
	line-height: 1.5;
	text-align: center;
}

.lead__content {
	margin: 0 auto;
	max-width: 52em;
}

.lead__content p {
	margin: 0;
	color: var(--muted);
	line-height: 1.9;
	text-align: left;
}

/* Sections */
.section {
	padding: 72px 0;
}

.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.section-header__en {
	margin: 0 0 8px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.section-header__ja {
	margin: 0;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1.35;
}

.section--service {
	padding-bottom: 0;
}

.section--service .section-header {
	margin-bottom: 48px;
}

.service-list {
	width: 100%;
}

.service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	width: 100%;
	margin: 0;
	min-height: 520px;
	overflow: hidden;
	background: #f4f4f4;
}

.service__body {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 56px clamp(28px, 4vw, 72px);
	background: var(--accent);
	color: #fff;
	position: relative;
	z-index: 1;
}

.service__body-inner {
	width: min(100%, 560px);
}

.service--reverse .service__body {
	order: 2;
	justify-content: flex-start;
}

.service--reverse .service__media {
	order: 1;
}

.service__media {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(28px, 4vw, 56px);
	background: #f4f4f4;
	min-height: 520px;
	box-sizing: border-box;
}

.service h3 {
	margin: 0 0 16px;
	font-size: clamp(24px, 2.4vw, 30px);
	color: #fff;
}

.service p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.92);
}

.service__action {
	margin-top: 24px !important;
}

.service__media img {
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: min(460px, 70vh);
	object-fit: contain;
	object-position: center;
	display: block;
}

.service__placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: min(460px, 70vh);
	background: #fff;
	border: 1px solid #d8d8d8;
	box-sizing: border-box;
}

.btn--on-fill {
	background: #fff;
	color: var(--accent);
	border-color: #fff;
}

.btn--on-fill:hover {
	opacity: 0.92;
}

.note-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	background: #fff5f5;
	border: 0;
}

.note-list li {
	margin: 0;
	padding: 12px 16px;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.7;
	border-bottom: 1px dashed #e8b4b4;
}

.note-list li:last-child {
	border-bottom: 0;
}

/* Stats */
.section--achievements,
.section--column {
	background: #fff5f5;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.stats__item {
	border: 1px solid #f0d5d5;
	padding: 36px 20px;
	text-align: center;
	background: rgba(255, 255, 255, 0.7);
}

.stats__label {
	margin: 0 0 12px;
	color: var(--muted);
}

.stats__value {
	margin: 0;
	color: var(--accent);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 800;
	line-height: 1.4;
}

.stats__note {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.more-wrap {
	margin: 40px 0 0;
	text-align: center;
}

.more-link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}

.more-link__label {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.35em;
	text-indent: 0.35em;
	text-transform: uppercase;
	line-height: 1;
}

.more-link__line {
	display: block;
	width: 48px;
	height: 1px;
	background: currentColor;
	transform-origin: center;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.more-link:hover {
	color: var(--accent);
}

.more-link:hover .more-link__line {
	width: 72px;
}

/* Cards */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bg);
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__title {
	margin: 16px 0 10px;
	font-size: 17px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__title a {
	text-decoration: none;
}

.card__title a:hover {
	color: var(--accent);
}

.card__text,
.card__meta,
.empty {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.card__action {
	margin-top: auto;
	padding-top: 20px;
}

/* Tabs */
.tabs__nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}

.tabs__tab {
	appearance: none;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	min-width: 140px;
	min-height: 44px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.tabs__tab.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.tabs__panel[hidden] {
	display: none;
}

/* News */
.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 800px;
	margin-inline: auto;
	border-top: 1px solid var(--line);
}

.news-list__item {
	border-bottom: 1px solid var(--line);
}

.news-list__item a {
	display: flex;
	gap: 20px;
	align-items: baseline;
	padding: 16px 4px;
	text-decoration: none;
	color: var(--ink);
	transition: color 0.2s ease;
}

.news-list__item a:hover {
	color: var(--accent);
}

.news-list__item time {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.news-list__item span {
	flex: 1 1 auto;
	font-weight: 500;
	line-height: 1.6;
}

/* Company */
.cta-panel--company {
	min-height: 280px;
	display: grid;
	place-items: center;
	background-color: #111;
}

.cta-panel__en {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.section-action {
	margin: 0;
	text-align: center;
}

.contact-lead {
	margin: 0 auto 28px;
	text-align: center;
	color: var(--muted);
	font-size: 17px;
}

/* CTA pair */
.cta-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.cta-panel {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 360px;
	padding: 48px 32px;
	text-align: center;
	text-decoration: none;
	color: #fff;
	overflow: hidden;
	background-color: #333;
	background-image: none;
}

.cta-panel--downloads {
	background-color: #2b2b2b;
}

.cta-panel--aio {
	background-color: var(--accent);
}

.cta-panel__inner {
	position: relative;
	z-index: 1;
	max-width: 28em;
}

.cta-panel h2 {
	margin: 0 0 16px;
	font-size: clamp(24px, 3vw, 32px);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.cta-panel p {
	margin: 0 auto 28px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.cta-panel .btn {
	pointer-events: none;
}

.cta-panel:hover .btn {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Bands (legacy unused) */
.band {
	padding: 72px 0;
	text-align: center;
	color: #fff;
}

.band--dark {
	background: #2b2b2b;
}

.band--accent {
	background: var(--accent);
}

.band h2 {
	margin: 0 0 16px;
	font-size: clamp(26px, 3.5vw, 34px);
}

.band p {
	margin: 0 auto 28px;
	max-width: 40em;
}

.band p:last-child {
	margin-bottom: 0;
}

/* Contact */
.contact-form {
	display: grid;
	gap: 18px;
}

.contact-form__row {
	display: grid;
	gap: 8px;
}

.contact-form__row span {
	font-weight: 700;
	font-size: 14px;
}

.contact-form__row input,
.contact-form__row textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 2px;
	padding: 12px 14px;
	font: inherit;
	background: #fff;
}

.contact-form__submit {
	margin: 8px 0 0;
	text-align: center;
}

/* Footer */
.site-footer {
	background: #111;
	color: #fff;
	padding: 48px 0 32px;
}

.site-footer__inner {
	display: grid;
	gap: 24px;
	justify-items: start;
}

.site-footer__logo img {
	width: 160px;
	filter: brightness(0) invert(1);
}

.site-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.site-footer__nav a {
	text-decoration: none;
	color: #ddd;
	font-size: 14px;
}

.site-footer__nav a:hover {
	color: #fff;
}

.site-footer__copy {
	margin: 8px 0 0;
	color: #999;
	font-size: 13px;
}

/* Floating CTA bar */
.float-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: rgba(207, 46, 46, 0.96);
	color: #fff;
	transform: translateY(100%);
	transition: transform 0.35s ease;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
}

.float-bar.is-visible {
	transform: translateY(0);
}

.float-bar__inner {
	width: min(100% - 32px, var(--max));
	margin-inline: auto;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 10px 0;
}

.float-bar__text {
	margin: 0;
	font-size: clamp(14px, 2vw, 18px);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.float-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 20px;
	border: 1px solid #fff;
	background: #fff;
	color: var(--accent);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-bar__btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

body.has-float-bar {
	padding-bottom: 72px;
}

@media (max-width: 600px) {
	.float-bar__inner {
		gap: 12px;
		min-height: 52px;
		padding: 8px 0;
	}

	.float-bar__text {
		font-size: 13px;
		line-height: 1.4;
	}

	.float-bar__btn {
		min-height: 36px;
		padding: 0 14px;
		font-size: 13px;
	}

	body.has-float-bar {
		padding-bottom: 64px;
	}
}

@media (max-width: 900px) {
	.service,
	.cards,
	.cta-pair {
		grid-template-columns: 1fr;
	}

	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.stats__item {
		padding: 20px 12px;
	}

	.service {
		min-height: 0;
	}

	.service__body,
	.service--reverse .service__body {
		order: 1;
		justify-content: flex-start;
		padding: 40px 24px;
	}

	.service__body-inner {
		width: 100%;
	}

	.service__media,
	.service--reverse .service__media {
		order: 2;
		margin: 0;
		min-height: 0;
		padding: 28px 24px;
	}

	.service__media img {
		max-height: 320px;
	}

	.section,
	.lead,
	.band {
		padding: 56px 0;
	}

	.news-list__item a {
		flex-direction: column;
		gap: 6px;
	}

	.cta-panel {
		min-height: 300px;
	}
}

@media (max-width: 600px) {
	.tabs__nav {
		flex-direction: column;
	}

	.tabs__tab {
		width: 100%;
	}
}
