@charset "UTF-8";

/* ==========================================================
   style.css — 共通・トップページ・下層ページ
   (html の font-size は 62.5% のため 1rem = 10px)
   レスポンシブは media.css に記述
   ========================================================== */

:root {
	--ink: #333;
	--ink-soft: #666;
	--line: #ddd;
	--bg-soft: #f4f6f8;
	--brand: #4f8ccb;
	--brand-deep: #2f6aa8;
	--sea-top: #dbe3dc;
	--sea-mid: #8fa6b3;
	--sea-low: #4f6f86;
	--font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, sans-serif;
	--font-serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif;
	--header-h: 8.8rem;
	--hero-h: clamp(32rem, 52vh, 54rem);
	--shadow-bar: 0 2px 10px rgb(0 0 0 / 0.12);
}

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

body {
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.6rem;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

a:hover {
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
address {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

.wrap {
	width: min(100% - 4.8rem, 112rem);
	margin-inline: auto;
}

.wrap-narrow {
	width: min(100% - 4.8rem, 84rem);
	margin-inline: auto;
}

.section-title {
	margin-bottom: 4rem;
	font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem);
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.section-title.ruled {
	padding-bottom: 2.4rem;
	border-bottom: 1px solid var(--line);
}

.more-link {
	display: inline-block;
	padding: 0.8rem 2.8rem;
	color: var(--brand-deep);
	font-size: 1.3rem;
	letter-spacing: 0.08em;
	border: 1px solid var(--brand);
	border-radius: 2px;
}

.more-link:hover {
	color: #fff;
	background: var(--brand);
	text-decoration: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
	position: relative;
	z-index: 20;
	background: #fff;
	box-shadow: var(--shadow-bar);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.4rem;
	min-height: var(--header-h);
}

.site-logo {
	display: grid;
	place-items: center;
	align-self: stretch;
	min-width: 15.2rem;
	padding: 1.6rem;
	color: #fff;
	background: var(--brand);
	font-family: var(--font-serif);
	font-size: 1.2rem;
	line-height: 1.4;
	text-align: center;
}

.site-logo img {
	width: auto;
	max-height: 5.6rem;
}

.site-nav {
	margin-inline: auto;
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 4rem;
}

.nav-list a {
	display: block;
	padding-block: 0.8rem;
	font-size: 1.4rem;
	font-weight: 500;
}

.nav-list a:hover {
	color: var(--brand-deep);
	text-decoration: none;
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a {
	color: var(--brand-deep);
	box-shadow: 0 2px 0 var(--brand);
}

.site-lang {
	display: grid;
	gap: 0.4rem;
	font-size: 1.2rem;
	line-height: 1.5;
}

.site-lang a::before {
	content: "▸ ";
	font-size: 0.6em;
	vertical-align: 0.15em;
}

/* トップページ: ヒーロー画像の下端にヘッダー帯を重ねる */
.home .site-header {
	position: absolute;
	inset-inline: 0;
	top: var(--hero-h);
}

.home .site-main {
	padding-top: var(--header-h);
}

/* ---------- トップ: ヒーロー ---------- */
.hero {
	display: grid;
	place-items: center;
	height: var(--hero-h);
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 12px rgb(0 0 0 / 0.35);
	background: linear-gradient(180deg, var(--sea-top) 0%, var(--sea-mid) 55%, var(--sea-low) 100%) center / cover no-repeat;
}

.hero-title {
	font-size: clamp(2.8rem, 2rem + 2.6vw, 4.8rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

.hero-sub {
	margin-top: 0.8rem;
	font-size: clamp(1.2rem, 1.1rem + 0.3vw, 1.5rem);
	letter-spacing: 0.1em;
}

/* ---------- トップ: 紹介 ---------- */
.intro {
	padding-block: 8rem 6rem;
}

.intro-text {
	max-width: 84rem;
	margin-inline: auto;
	font-size: 1.5rem;
}

/* ---------- トップ: 事業 ---------- */
.services {
	padding-bottom: 8rem;
}

.service-list {
	display: grid;
	gap: 2.4rem;
	grid-template-columns: repeat(3, 1fr);
}

.service-item a {
	display: block;
	height: 100%;
	color: inherit;
}

.service-item a:hover {
	text-decoration: none;
}

.service-image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: linear-gradient(160deg, var(--sea-top), var(--sea-mid) 60%, var(--sea-low));
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.service-item a:hover .service-image img {
	transform: scale(1.04);
}

.service-body {
	padding: 2.4rem 1.6rem 1.6rem;
}

.service-name {
	margin-bottom: 0.8rem;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.5;
}

.service-name small {
	display: block;
	color: var(--brand-deep);
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.1em;
}

.service-text {
	color: var(--ink-soft);
	font-size: 1.4rem;
	line-height: 1.8;
}

/* ---------- トップ: お知らせ ---------- */
.news {
	padding-bottom: 4rem;
}

.news-list {
	border-top: 1px solid var(--line);
}

.news-list li {
	display: grid;
	grid-template-columns: 12rem 1fr;
	gap: 0.4rem 2.4rem;
	padding-block: 1.6rem;
	border-bottom: 1px solid var(--line);
}

.news-date {
	color: var(--ink-soft);
	font-size: 1.4rem;
	font-variant-numeric: tabular-nums;
}

.news-more {
	margin-top: 2.4rem;
	text-align: right;
}

/* ---------- 下層ページ ---------- */
.page-title {
	margin-block: 6rem 4rem;
	padding-bottom: 1.6rem;
	border-bottom: 3px solid var(--brand);
	font-size: clamp(2.4rem, 1.8rem + 1.4vw, 3.2rem);
	line-height: 1.5;
}

.page-body > * + * {
	margin-top: 1.6rem;
}

/* ---------- フッター ---------- */
.site-footer {
	margin-top: 8rem;
	color: #fff;
	background: #2c3e50;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.2fr 2fr;
	gap: 4rem;
	padding-block: 6rem;
}

.footer-address {
	font-size: 1.3rem;
	font-style: normal;
	line-height: 1.9;
}

.footer-address strong {
	display: block;
	margin-bottom: 0.8rem;
	font-size: 1.6rem;
}

.footer-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.8rem 2.4rem;
	font-size: 1.3rem;
}

.footer-nav a {
	display: block;
	padding-block: 0.4rem;
	color: #fff;
	opacity: 0.9;
}

.copyright {
	padding-block: 1.6rem;
	font-size: 1.2rem;
	text-align: center;
	background: rgb(0 0 0 / 0.2);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
