/* ==========================================================================
   業務区分サービス LP - Main Styles
   ========================================================================== */

:root {
	--color-primary: #1a4d7c;
	--color-primary-dark: #0f3558;
	--color-accent: #c9a227;
	--color-text: #1f2937;
	--color-text-muted: #6b7280;
	--color-bg: #ffffff;
	--color-bg-alt: #f4f7fb;
	--color-border: #e5e7eb;
	--font-sans: "Noto Sans JP", system-ui, sans-serif;
	--font-serif: "Noto Serif JP", Georgia, serif;
	--container: min(1120px, 92vw);
	--radius: 12px;
	--shadow: 0 8px 30px rgba(15, 53, 88, 0.08);
	--header-h: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.75;
	color: var(--color-text);
	background: var(--color-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	width: var(--container);
	margin-inline: auto;
}

.container--narrow {
	max-width: 720px;
}

/* Skip link */
.gyomu-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	padding: 0.5rem 1rem;
	background: var(--color-primary);
	color: #fff;
}

.gyomu-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 1rem;
}

.site-title {
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--color-primary-dark);
	text-decoration: none;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	color: var(--color-text);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.primary-menu a:hover {
	color: var(--color-primary);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: flex;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		padding: 1rem;
		display: none;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
	}
}

/* Hero */
.hero {
	position: relative;
	min-height: clamp(420px, 70vh, 640px);
	display: flex;
	align-items: center;
	color: #fff;
}

.hero__media {
	position: absolute;
	inset: 0;
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 53, 88, 0.85), rgba(26, 77, 124, 0.65));
}

.hero__content {
	position: relative;
	z-index: 1;
	padding: 4rem 0;
}

.hero__label {
	font-size: 0.875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.9;
	margin: 0 0 0.5rem;
}

.hero__title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.3;
	margin: 0 0 1rem;
}

.hero__lead {
	font-size: 1.125rem;
	max-width: 36em;
	opacity: 0.95;
	margin: 0 0 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.btn--primary {
	background: var(--color-accent);
	color: var(--color-primary-dark);
	border-color: var(--color-accent);
}

.btn--secondary {
	background: var(--color-primary);
	color: #fff;
}

.btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.8);
}

.btn--block {
	width: 100%;
}

/* Sections */
.section {
	padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--alt {
	background: var(--color-bg-alt);
}

.section__title {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 1rem;
	color: var(--color-primary-dark);
}

.section__title--small {
	font-size: 1.35rem;
}

.section__subtitle {
	color: var(--color-text-muted);
	margin: 0 0 2rem;
	max-width: 40em;
}

.section-header--center {
	text-align: center;
}

.section-header--center .section__subtitle {
	margin-inline: auto;
}

.section__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.section__grid--reverse .section__media {
	order: 2;
}

.section__grid--reverse .section__body {
	order: 1;
}

@media (max-width: 768px) {
	.section__grid,
	.section__grid--reverse {
		grid-template-columns: 1fr;
	}

	.section__grid--reverse .section__media,
	.section__grid--reverse .section__body {
		order: unset;
	}
}

.section__image {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.section__link-wrap {
	margin-top: 1.5rem;
}

.section__link-wrap--center {
	text-align: center;
}

.section__note {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	text-align: center;
}

.text-link {
	font-weight: 600;
}

/* Company table */
.company-table dl {
	display: grid;
	grid-template-columns: 8em 1fr;
	gap: 0.75rem 1rem;
	margin: 0;
}

.company-table dt {
	font-weight: 600;
	color: var(--color-primary);
	margin: 0;
}

.company-table dd {
	margin: 0;
}

.greeting__name {
	font-weight: 700;
	color: var(--color-primary);
}

.greeting__name--large {
	font-size: 1.25rem;
}

/* Service cards */
.service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.service-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid var(--color-border);
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15, 53, 88, 0.12);
	text-decoration: none;
}

.service-card__image-wrap {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.service-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.service-card__title {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
	color: var(--color-primary-dark);
}

.service-card__excerpt {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
	flex: 1;
}

.service-card__more {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary);
}

/* Pricing */
.pricing-table-wrap {
	overflow-x: auto;
	margin-bottom: 1rem;
}

.pricing-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
	padding: 1rem 1.25rem;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}

.pricing-table thead th {
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
}

.pricing-table tbody tr:hover {
	background: var(--color-bg-alt);
}

/* Contact */
.contact-info {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.contact-info li {
	margin-bottom: 0.5rem;
}

.contact-form {
	background: #fff;
	padding: 1.5rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--color-border);
}

.contact-form__field {
	margin-bottom: 1rem;
}

.contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.contact-form .required {
	color: #b91c1c;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font: inherit;
}

.contact-form__note {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	margin-top: 0.75rem;
}

/* Blog cards */
.blog-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.blog-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid var(--color-border);
}

.blog-card__link {
	color: inherit;
	text-decoration: none;
	display: block;
}

.blog-card__link:hover {
	text-decoration: none;
}

.blog-card__image-wrap {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-bg-alt);
}

.blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__body {
	padding: 1.25rem;
}

.blog-card__body time {
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.blog-card__title {
	font-size: 1rem;
	margin: 0.35rem 0 0.5rem;
	color: var(--color-primary-dark);
}

.blog-card--placeholder {
	opacity: 0.85;
}

/* Page templates */
.page-header {
	background: var(--color-bg-alt);
	padding: 2rem 0;
	border-bottom: 1px solid var(--color-border);
}

.page-header__title {
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	margin: 0.5rem 0 0;
	color: var(--color-primary-dark);
}

.breadcrumb {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin: 0;
}

.breadcrumb a {
	color: var(--color-primary);
}

.page-content {
	padding: clamp(2rem, 5vw, 4rem) 0;
}

.page-content__grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2.5rem;
	align-items: start;
}

.page-content__grid--reverse {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
	.page-content__grid,
	.page-content__grid--reverse {
		grid-template-columns: 1fr;
	}
}

.page-hero {
	position: relative;
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	margin-bottom: 2rem;
}

.page-hero__media {
	position: absolute;
	inset: 0;
}

.page-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 53, 88, 0.9), transparent);
}

.page-hero__content {
	position: relative;
	padding: 3rem 0 2rem;
}

.page-hero__title {
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0.5rem 0;
}

.page-hero__lead {
	opacity: 0.9;
	max-width: 40em;
}

.flow-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 1rem;
}

.flow-steps li {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: var(--color-bg-alt);
	border-radius: var(--radius);
}

.flow-steps span {
	font-weight: 700;
	color: var(--color-accent);
	font-size: 1.25rem;
}

.page-sidebar .sidebar-box {
	background: var(--color-bg-alt);
	padding: 1.25rem;
	border-radius: var(--radius);
	margin-bottom: 1rem;
}

.sidebar-box h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.sidebar-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-links li {
	margin-bottom: 0.35rem;
}

.prose h2 {
	font-size: 1.25rem;
	margin-top: 2rem;
}

.prose--compact p {
	margin-bottom: 0.75rem;
}

.notice {
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
}

.notice--success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
}

.notice--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
}

.post-featured-image {
	margin-bottom: 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.post-meta {
	color: var(--color-text-muted);
	font-size: 0.9rem;
}

/* Footer */
.site-footer {
	background: var(--color-primary-dark);
	color: rgba(255, 255, 255, 0.9);
	margin-top: 0;
}

.site-footer a {
	color: #fff;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
	padding: 2.5rem 0;
}

.site-footer__title {
	font-weight: 700;
	font-size: 1.125rem;
	color: #fff;
	text-decoration: none;
}

.site-footer__tagline {
	font-size: 0.9rem;
	opacity: 0.8;
	margin: 0.5rem 0 0;
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 1rem 0;
	font-size: 0.85rem;
	opacity: 0.75;
}

.site-footer__bottom p {
	margin: 0;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	gap: 0.5rem;
}
