/* =========================================
   Design refresh A — Field Plus corporate
   ========================================= */
:root {
	--fp-navy: #003366;
	--fp-navy-deep: #001a33;
	--fp-navy-mid: #004d99;
	--fp-ink: #1a2332;
	--fp-muted: #5c6b7a;
	--fp-line: #e2e8ef;
	--fp-surface: #f4f7fa;
	--fp-white: #fff;
	--fp-font: "Source Sans 3", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	--fp-space-section: clamp(4.5rem, 8vw, 7rem);
	--fp-space-gutter: clamp(1.25rem, 5vw, 3rem);
	--product-card-w: 340px;
	--product-gap: 40px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--fp-font);
	margin: 0;
	padding: 0;
	color: var(--fp-ink);
	line-height: 1.8;
	background-color: var(--fp-surface);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* =========================================
   Reveal (scroll fade-in)
   ========================================= */
.reveal {
	opacity: 0;
	transform: translateY(1.25rem);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* =========================================
   Header & Nav
   ========================================= */
header {
	background-color: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	padding: 14px var(--fp-space-gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 1px 0 var(--fp-line);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.logo {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--fp-navy);
	letter-spacing: 0.06em;
	z-index: 1001;
}

nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

nav li {
	margin-left: 1.25rem;
	font-size: 14px;
	font-weight: 500;
}

nav li a {
	display: inline-block;
	color: var(--fp-ink);
}

.nav-label {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	line-height: 1.25;
	text-align: center;
}

.nav-ja {
	font-size: 13px;
	font-weight: 600;
	color: var(--fp-navy);
}

.nav-en {
	font-size: 11px;
	font-weight: 500;
	color: var(--fp-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lang-switch {
	background: var(--fp-surface);
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 12px;
}

.lang-switch a.is-active {
	font-weight: 700;
	color: var(--fp-navy);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	z-index: 1002;
	background: none;
	border: none;
	padding: 0;
}

.bar {
	width: 25px;
	height: 3px;
	background-color: var(--fp-navy);
	margin: 4px 0;
	transition: 0.4s;
}

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 1100;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: var(--fp-navy);
	color: var(--fp-white);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 51, 102, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--fp-navy-deep);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top {
		transition: none;
	}
}

/* =========================================
   Hero
   ========================================= */
.hero {
	position: relative;
	color: var(--fp-white);
	min-height: min(72vh, 640px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 4rem var(--fp-space-gutter);
	background-color: var(--fp-navy-deep);
	background-image:
		linear-gradient(105deg, rgba(0, 26, 51, 0.88) 0%, rgba(0, 51, 102, 0.72) 45%, rgba(0, 51, 102, 0.55) 100%),
		url("../images/hero-fabric.jpg");
	background-size: cover;
	background-position: center;
}

.hero-inner {
	max-width: 40rem;
}

.hero-brand {
	margin: 0 0 1.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.85rem, 4.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.hero-lead {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.15rem);
	font-weight: 400;
	line-height: 1.75;
	opacity: 0.92;
}

/* =========================================
   Sections
   ========================================= */
section {
	padding: var(--fp-space-section) var(--fp-space-gutter);
}

section:nth-of-type(odd) {
	background: var(--fp-white);
}

section:nth-of-type(even) {
	background: var(--fp-surface);
}

h2 {
	margin: 0 auto 2.75rem;
	max-width: 56rem;
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	font-weight: 700;
	color: var(--fp-navy);
	letter-spacing: 0.06em;
	position: relative;
	padding-bottom: 1rem;
}

h2::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	margin: 1rem auto 0;
	background: var(--fp-navy);
	opacity: 0.35;
}

.en-text {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--fp-muted);
	letter-spacing: 0.02em;
}

/* =========================================
   Message
   ========================================= */
.message-container {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2.5rem 0 0;
}

.message-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--fp-navy);
	margin-bottom: 1.5rem;
	letter-spacing: 0.04em;
}

.message-body {
	font-size: 1rem;
	line-height: 2;
	color: var(--fp-ink);
}

.message-body p {
	margin: 0 0 1.25em;
}

.message-sign {
	margin-top: 2rem;
	text-align: right;
	font-size: 0.95rem;
	color: var(--fp-muted);
	line-height: 1.7;
}

/* =========================================
   Products
   ========================================= */
.products-note {
	max-width: 40rem;
	margin: -1.25rem auto 2.5rem;
	text-align: center;
	font-size: 0.92rem;
	color: var(--fp-muted);
	line-height: 1.7;
}

.products-note--detail {
	margin: 1.5rem 0 0;
	text-align: left;
	font-size: 0.85rem;
}

.products-grid {
	--product-card-w: 340px;
	--product-gap: 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--product-gap);
	margin: 0 auto;
}

.products-count-1 {
	max-width: var(--product-card-w);
}

.products-count-2,
.products-count-4 {
	max-width: calc(var(--product-card-w) * 2 + var(--product-gap));
}

.products-count-3,
.products-count-5,
.products-count-6 {
	max-width: calc(var(--product-card-w) * 3 + var(--product-gap) * 2);
}

.product-card {
	flex: 0 0 var(--product-card-w);
	width: var(--product-card-w);
	max-width: 100%;
	background: var(--fp-white);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(0, 51, 102, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 51, 102, 0.14);
}

.product-card-link {
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-more {
	margin-top: 12px;
	font-size: 0.9rem;
	color: var(--fp-navy);
	font-weight: 700;
}

.product-img {
	width: 100%;
	height: 220px;
	background-color: var(--fp-surface);
	object-fit: cover;
	object-position: center;
	display: block;
}

.product-info {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.product-info h3 {
	margin-top: 0;
	color: var(--fp-navy);
	font-size: 1.2rem;
	border-bottom: 1px solid var(--fp-line);
	padding-bottom: 0.65rem;
	margin-bottom: 0.85rem;
}

.product-catch {
	color: #a33a2c;
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 0.65rem;
	display: block;
}

.product-desc {
	font-size: 0.95rem;
	color: var(--fp-muted);
	margin-bottom: 1rem;
	flex-grow: 1;
}

.product-tags {
	font-size: 0.8rem;
	color: var(--fp-muted);
	margin-top: auto;
}

.products-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
}

.products-page-numbers {
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
	justify-content: center;
}

.products-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	border: 1px solid var(--fp-line);
	border-radius: 4px;
	color: var(--fp-navy);
	background: var(--fp-white);
	font-size: 0.95rem;
	text-decoration: none;
}

.products-page:hover {
	background: var(--fp-surface);
}

.products-page.is-current {
	background: var(--fp-navy);
	border-color: var(--fp-navy);
	color: var(--fp-white);
	font-weight: 700;
}

.products-page-prev,
.products-page-next {
	min-width: auto;
}

/* =========================================
   About (definition list)
   ========================================= */
.about-list {
	max-width: 42rem;
	margin: 0 auto;
	padding: 0;
}

.about-row {
	display: grid;
	grid-template-columns: minmax(7rem, 9.5rem) 1fr;
	gap: 1rem 2rem;
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--fp-line);
}

.about-row:first-child {
	border-top: 1px solid var(--fp-line);
}

.about-list dt {
	margin: 0;
	color: var(--fp-navy);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
}

.about-list .about-label {
	display: block;
}

.about-list .en-text {
	margin-top: 0.2rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.about-list dd {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.75;
	color: var(--fp-ink);
}

/* =========================================
   Contact
   ========================================= */
.contact-box {
	background: var(--fp-white);
	padding: 3rem 2.5rem;
	text-align: center;
	border: 1px solid var(--fp-navy);
	max-width: 36rem;
	margin: 0 auto;
}

.contact-box p {
	margin: 0 0 0.75rem;
	color: var(--fp-ink);
}

.btn {
	display: inline-block;
	background: var(--fp-navy);
	color: var(--fp-white);
	padding: 0.95rem 2.5rem;
	margin-top: 1.75rem;
	border-radius: 2px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: background 0.25s ease;
}

.btn:hover {
	background: var(--fp-navy-mid);
	color: var(--fp-white);
}

footer {
	background: var(--fp-navy-deep);
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	padding: 2rem var(--fp-space-gutter);
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) and (min-width: 769px) {
	.products-count-1 {
		max-width: var(--product-card-w);
	}

	.products-count-2,
	.products-count-3,
	.products-count-4,
	.products-count-5,
	.products-count-6 {
		max-width: calc(var(--product-card-w) * 2 + var(--product-gap));
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: flex;
	}

	nav {
		position: absolute;
		top: 60px;
		right: -100%;
		width: 100%;
		background-color: var(--fp-white);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
		transition: 0.3s;
		text-align: center;
	}

	nav.active {
		right: 0;
	}

	nav ul {
		flex-direction: column;
		padding: 1.25rem 0;
	}

	nav li {
		margin: 0.9rem 0;
		font-size: 16px;
	}

	.nav-ja {
		font-size: 15px;
	}

	.nav-en {
		font-size: 12px;
	}

	.back-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}

	.menu-toggle.active .bar:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px);
	}

	.menu-toggle.active .bar:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle.active .bar:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px);
	}

	.hero {
		min-height: 52vh;
		padding: 3.5rem 1.25rem;
	}

	.hero h1 {
		font-size: 1.65rem;
	}

	section {
		padding: 3.5rem 5%;
	}

	h2 {
		font-size: 1.45rem;
		margin-bottom: 2rem;
	}

	.about-row {
		grid-template-columns: 1fr;
		gap: 0.4rem;
		padding: 1.15rem 0;
	}

	.message-container {
		padding-top: 0.5rem;
	}

	.message-body {
		text-align: left;
	}

	.contact-box {
		padding: 2rem 1.25rem;
	}

	.products-grid,
	.products-count-1,
	.products-count-2,
	.products-count-3,
	.products-count-4,
	.products-count-5,
	.products-count-6 {
		max-width: none;
	}

	.product-card {
		flex: 1 1 100%;
		width: 100%;
		max-width: 420px;
	}
}
