@charset "UTF-8";

/* =========================================================
   Woodford - main.css
   Figma「構築用」A案 に準拠
   ========================================================= */

:root {
	--blue: #005494;
	--blue-dark: #003f70;
	--ink: #24231f;
	--sub: #868c93;
	--line: #d4d4d4;
	--bg: #f1f0eb;
	--bg-alt: #f4f4f4;
	--bg-contact: #dfe5e9;
	--footer-bg: #24231f;
	--footer-border: #2a2e33;
	--footer-text: #f4f4f4;
	--footer-muted: #8c887f;
	--reverse: #f1f0eb;

	--font-en: "Inter", sans-serif;
	--font-jp: "Noto Sans JP", sans-serif;
	--font-logo: "Tiro Kannada", serif;
	--font-mark: "Cormorant Garamond", serif;

	--header-h: 96px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-jp);
	font-weight: 300;
	font-size: 14px;
	line-height: 1.9;
	letter-spacing: 0.06em;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

/* 画面には出さず、検索エンジンと読み上げにだけ伝えるテキスト */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
a { color: inherit; text-decoration: none; transition: opacity .3s ease, color .3s ease; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- 共通パーツ ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-en);
	font-weight: 300;
	letter-spacing: 0.12em;
	transition: background-color .3s ease;
}

.btn--primary { background: var(--blue); color: var(--reverse); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--lg {
	padding: 24px 128px;
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 0.14em;
	color: #f5f4f0;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: var(--blue);
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.22em;
}
.link-more__bar {
	display: block;
	width: 88px;
	height: 1px;
	background: var(--blue);
	transition: width .3s ease;
}
.link-more:hover .link-more__bar { width: 104px; }

.breadcrumb {
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--sub);
}
.breadcrumb a:hover { color: var(--blue); }

/* ---------- header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	padding-inline: 64px;
	background: rgba(244, 244, 244, .9);
	backdrop-filter: blur(6px);
}

.site-header__logo {
	display: flex;
	align-items: center;
	height: 100%;
	font-family: var(--font-logo);
	font-size: 32px;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--blue);
	transition: color .3s ease;
}
.site-header__logo:hover { color: var(--blue-dark); }

.site-header__nav { display: flex; align-items: center; gap: 64px; }

.site-header__links { display: flex; align-items: center; gap: 48px; height: 100%; }

.site-header__links a {
	position: relative;
	display: flex;
	align-items: center;
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.12em;
	color: var(--ink);
}
.site-header__links a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;
	width: 0;
	height: 1px;
	background: var(--blue);
	transform: translateX(-50%);
	transition: width .3s ease;
}
.site-header__links a:hover::after { width: 32px; }

.site-header__cta { padding: 12px 48px; font-size: 15px; }

.site-header__toggle { display: none; }

/* ---------- SP メニュー ---------- */
.sp-menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* ヘッダーの下から配置し、収まらない高さの端末ではスクロールさせる */
	padding: calc(var(--header-h) + 32px) 24px 48px;
	overflow-y: auto;
	background: var(--bg-alt);
}
.sp-menu[hidden] { display: none; }

/* 余白があるときは上下中央、無いときは上詰め（margin-block: auto） */
.sp-menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(40px, 8.5vh, 72px); margin-block: auto; }

/* 画面の高さが低い端末では間隔を詰める（844px で 56px） */
.sp-menu__links { display: flex; flex-direction: column; gap: clamp(32px, 6.6vh, 56px); }
.sp-menu__links a {
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 19px;
	letter-spacing: 0.12em;
	color: var(--blue);
}

.sp-menu__cta { align-self: stretch; padding: 16px 64px; font-size: 19px; }

/* ---------- KV ---------- */
.kv {
	position: relative;
	/* 画面の高さぴったり（固定880pxだと大きい画面で下に余白が出るため）。低すぎる窓では560pxで止める */
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: #d5d6d6;
}
.kv__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.kv__scroll {
	position: absolute;
	right: 64px;
	top: 50%;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	font-family: var(--font-en);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.25em;
	color: var(--reverse);
	white-space: nowrap;
}

/* ---------- section 共通 ---------- */
.section { position: relative; padding-block: 128px; }

.section__inner {
	position: relative;
	width: min(912px, 100% - 48px);
	margin-inline: auto;
}

.section__inner--split {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 48px;
}

.section__head { display: flex; flex-direction: column; gap: 24px; }
.section__head--center { align-items: center; }

.section__title {
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: 0.12em;
	color: var(--ink);
}

.section__rule { display: block; width: 25px; height: 1px; background: var(--blue); }

.section__foot { margin-top: 64px; display: flex; justify-content: flex-end; }
.section__foot--center { justify-content: center; }

.section--news { background: var(--bg-alt); }

/* セクション背景（柄は CONSULTING のみ） */
.section--business::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.section--consulting::before { background: #fff; }
.section--entertainment::before { background: var(--bg-alt); }
/* 柄は使わない（無地の背景のみ） */

/* ---------- NEWS リスト ---------- */
.news-list {
	margin-top: 64px;
	border-top: 1px solid var(--line);
}
.news-list__item { border-bottom: 1px solid var(--line); }

.news-list__link {
	display: flex;
	align-items: center;
	gap: 48px;
	padding-block: 32px;
}
.news-list__link:hover .news-list__title { color: var(--blue); }

.news-list__date {
	flex: 0 0 104px;
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.18em;
	color: var(--sub);
}

.news-list__cat {
	flex: 0 0 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: 1px solid var(--blue);
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.9;
	letter-spacing: 0.06em;
	color: var(--blue);
}
.news-list__cat--empty { border-color: transparent; }

.news-list__title {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--font-jp);
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.06em;
	color: var(--ink);
	transition: color .3s ease;
}

.news-list__arrow {
	flex: 0 0 auto;
	font-family: var(--font-mark);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--footer-muted);
}

.news-list__empty { margin-top: 64px; color: var(--sub); }

/* ---------- 事業セクション ---------- */
.business-grid {
	/* 幅が足りないタブレットでは縮める（見出しと並べると 456px 固定ではみ出すため） */
	flex: 0 1 456px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.business-grid__cell {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 64px 48px;
}

/* 2件以上なら1件ずつ縦に積み、間に区切り線 */
.business-grid--multi .business-grid__cell { flex: 1 1 100%; }
.business-grid__cell + .business-grid__cell { border-top: 1px solid var(--line); }

/* ロゴは縦横比がまちまちなので、高さ50pxの枠に収める */
.business-grid__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
}
.business-grid__logo img {
	max-height: 50px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.business-grid__name {
	margin-top: 32px;
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.75;
	letter-spacing: 0.08em;
	color: var(--ink);
	text-align: center;
}

/* 公式サイトへのリンク（外部リンクアイコン付き） */
.business-grid__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
}
.business-grid__link:hover { color: var(--blue); }
.business-grid__link .icon-external {
	flex: 0 0 auto;
	transition: transform .3s ease;
}
.business-grid__link:hover .icon-external { transform: translate(2px, -2px); }

/* ---------- CONTACT ---------- */
.section--contact { background: var(--bg-contact); overflow: hidden; }
.section--contact::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../images/contact-bg.jpg");
	background-size: 100.31% 180.57%;
	background-position: center 71%;
	background-repeat: no-repeat;
	opacity: .3;
	pointer-events: none;
}
.section--contact .section__foot { margin-top: 64px; }

/* NEWS一覧・カテゴリ・記事詳細のページ背景 */
body.blog,
body.archive,
body.category,
body.single,
body.is-about { background: var(--bg-alt); }

/* ---------- 一覧ページ ---------- */
.page-head { padding-top: calc(var(--header-h) + 45px); }
.page-head .section__head { margin-top: 64px; }

.chips {
	margin-top: 64px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	border: 1px solid var(--line);
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--sub);
	transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { border-color: var(--blue); background: var(--blue); color: var(--reverse); }

.section--list { padding-top: 64px; }
.section--list .news-list { margin-top: 64px; }

/* ページネーション */
.pagination { margin-top: 64px; }
.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 12px;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 49px;
	padding-inline: 12px;
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 18px;
	letter-spacing: 0.06em;
	color: var(--sub);
	transition: color .3s ease;
}
.pagination .page-numbers:hover { color: var(--blue); }
.pagination .page-numbers.current { color: var(--blue); border-bottom: 1px solid var(--blue); }

/* ---------- ABOUT（会社概要） ---------- */
.section--about { padding-top: 64px; padding-bottom: 160px; }
.company-table {
	width: min(640px, 100%);
	margin: 0 auto;
	border-top: 1px solid var(--line);
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 14px;
}
.company-table__row {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-block: 32px;
	border-bottom: 1px solid var(--line);
}
.company-table__label {
	flex: 0 0 180px;
	letter-spacing: 0.04em;
	color: var(--blue);
}
.company-table__value {
	flex: 1;
	margin: 0;
	font-weight: 300;
	line-height: 2;
	letter-spacing: 0.06em;
	color: var(--ink);
}

/* ---------- 記事詳細 / 固定ページ ---------- */
.section--article { padding-top: calc(var(--header-h) + 45px); padding-bottom: 128px; }

.article { width: min(640px, 100% - 48px); margin-inline: auto; }

.article__head { margin-top: 73px; }

.article__meta { display: flex; align-items: center; gap: 24px; }

.article__date {
	font-family: var(--font-en);
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.18em;
	color: var(--sub);
}

.article__cat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 16px;
	border: 1px solid var(--blue);
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.06em;
	color: var(--blue);
}

.article__title {
	margin-top: 24px;
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.9;
	letter-spacing: 0.06em;
	color: var(--ink);
}

.article__content { margin-top: 48px; font-size: 15px; line-height: 2.2; }
.article__content > * + * { margin-top: 1.8em; }
.article__content h2 {
	padding-left: 16px;
	border-left: 3px solid var(--blue);
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.6;
	letter-spacing: 0.06em;
}
.article__content h3 {
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: 0.06em;
}
.article__content a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-thickness: 0.5px;
	text-underline-offset: 4px;
	transition: color .3s ease;
}
.article__content a:hover { color: var(--blue-dark); }
.article__content img { display: block; }
.article__content ul { list-style: disc; padding-left: 1.4em; }
.article__content ol { list-style: decimal; padding-left: 1.4em; }
.article__content blockquote {
	margin-inline: 0;
	padding: 24px 32px;
	background: var(--bg-alt);
	color: var(--sub);
}

.article__back { margin-top: 64px; display: flex; justify-content: center; }

/* 404ページは中央揃え */
.error404 .article__title,
.error404 .article__content { text-align: center; }

/* ---------- footer ---------- */
.site-footer {
	padding: 64px 120px 48px;
	background: var(--footer-bg);
	border-top: 1px solid var(--footer-border);
	color: var(--footer-text);
}

.site-footer__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 48px;
}

.site-footer__logo {
	font-family: var(--font-logo);
	font-size: 31px;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--footer-text);
	transition: opacity .3s ease;
}
.site-footer__logo:hover { opacity: .7; }

.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 48px; }
.site-footer__nav a {
	font-family: var(--font-en);
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 0.12em;
	color: var(--footer-text);
}
.site-footer__nav a:hover { color: var(--blue); }

.site-footer__copyright {
	margin-top: 48px;
	font-family: var(--font-en);
	font-weight: 400;
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--footer-muted);
}

/* =========================================================
   SP
   ========================================================= */
/* ---------- タブレット ---------- */
/* ナビが5項目になり1行に収まらなくなるため、余白と間隔を詰める */
@media screen and (max-width: 1100px) {
	.site-header { padding-inline: 40px; }
	.site-header__nav { gap: 40px; }
	.site-header__links { gap: 32px; }

	.site-footer { padding-inline: 64px; }
	.site-footer__nav ul { gap: 32px; }
}

/* それでも収まらない幅は、ヘッダーをハンバーガーに、フッターはロゴの下にナビ */
@media screen and (max-width: 960px) {
	.site-header__nav { display: none; }

	.site-header__toggle {
		display: block;
		position: relative;
		width: 32px;
		height: 22px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.site-header__toggle span {
		position: absolute;
		left: 0;
		width: 32px;
		height: 1px;
		background: var(--blue);
		transition: transform .3s ease, opacity .3s ease;
	}
	.site-header__toggle span:nth-child(1) { top: 4px; }
	.site-header__toggle span:nth-child(2) { bottom: 4px; }

	.site-header__toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] span:nth-child(2) { bottom: auto; top: 50%; transform: rotate(-45deg); }

	.site-footer__row { flex-direction: column; gap: 48px; }
}

@media screen and (max-width: 768px) {
	/* ヘッダーを細く */
	:root { --header-h: 72px; }

	.site-header { padding-inline: 24px; }
	.site-header__logo { font-size: 26px; }

	/* 画面の高さの65%（クライアント要望で写真を引きに。svh未対応ブラウザは vh にフォールバック） */
	.kv {
		height: 65vh;
		height: 65svh;
		min-height: 0;
	}
	/* デザイン通り、画像の右寄りを見せる */
	.kv__img { object-position: 64.7% center; }
	.kv__scroll { right: 8px; top: 50%; }

	.section { padding-block: 96px; }

	.section__inner--split { flex-direction: column; gap: 40px; }

	.section__title { font-size: 25px; }

	.section__foot { margin-top: 48px; justify-content: center; }

	/* NEWS リストは縦積み */
	.news-list__link {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		position: relative;
		padding-block: 32px;
	}
	.news-list__date { flex: none; }
	.news-list__cat {
		flex: none;
		width: 200px;
		margin-top: 24px;
		justify-content: center;
		font-size: 12px;
		letter-spacing: 0.06em;
	}
	.news-list__title { margin-top: 24px; }
	.news-list__arrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

	.business-grid { flex: none; width: 100%; }
	.business-grid__cell,
	.business-grid--multi .business-grid__cell { flex: 1 1 100%; padding: 48px 24px; }

	.btn--lg { padding: 24px 96px; }

	/* CONTACT：写真の比率を保ったまま、猫がボタンの上に来る位置に
	   （高さが変わっても猫の縦位置が 49.5% で固定されるよう auto 指定） */
	.section--contact { padding-block: 128px; }
	.section--contact::before {
		background-size: auto 120.78%;
		background-position: 57% 99%;
	}

	.page-head { padding-top: calc(var(--header-h) + 20px); }
	.page-head .section__head { margin-top: 48px; }
	.chips { margin-top: 48px; justify-content: flex-start; }
	.chip { padding: 10px 24px; }

	/* カテゴリ下から記事一覧までを 3/4 詰める（128px → 32px） */
	.section--list { padding-top: 16px; }
	.section--list .news-list { margin-top: 16px; }

	/* ABOUT：SPデザインが無いため、NEWSのSPに合わせて項目名を上・内容を下に */
	.section--about { padding-top: 48px; padding-bottom: 96px; }
	.company-table__row { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 24px; }
	.company-table__label { flex: none; }

	.section--article { padding-top: calc(var(--header-h) + 20px); padding-bottom: 96px; }
	.article__head { margin-top: 48px; }
	.article__title { font-size: 22px; }
	.article__content { margin-top: 40px; font-size: 15px; }

	.site-footer { padding: 64px 24px 48px; }
	.site-footer__row { flex-direction: column; align-items: flex-start; gap: 48px; }
	.site-footer__nav ul { flex-direction: column; align-items: flex-start; gap: 32px; }
	.site-footer__copyright { margin-top: 96px; text-align: left; }
}

/* スクロール抑止（SPメニュー展開中） */
body.is-menu-open { overflow: hidden; }
