/*
 * sub.css — 下層ページ共通（トップページ以外のすべてのページで読み込む）。
 *
 * 基本の並び: PAGE HERO → 本文（セクション） → お問い合わせ誘導 → フッター
 * ページ固有のスタイルはここに書かない（会社概要は company.css、.ws-page--company 配下）。
 */

/* ------------------------------------------------------------
 * PAGE HERO（ページ上部の見出し。濃いネイビー）
 * 写真を指定したページでは、写真を背景にして左側をネイビーで覆う。
 * ------------------------------------------------------------ */
.ws-page-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(220px, 26vw, 380px);
	overflow: hidden;
	background: linear-gradient(120deg, var(--ws-color-navy-deep) 0%, var(--ws-color-navy) 55%, #1f335c 100%);
	color: var(--ws-color-white);
}

.ws-page-hero__media {
	position: absolute;
	inset: 0;
}

.ws-page-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--ws-media-position-sp, 50% 50%);
}

.ws-page-hero__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(13, 26, 54, 0.95) 0%, rgba(13, 26, 54, 0.86) 50%, rgba(13, 26, 54, 0.62) 100%);
	content: "";
}

.ws-page-hero__body {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(40px, 6vw, 72px) 0;
}

.ws-page-hero__label {
	margin: 0 0 14px;
	color: var(--ws-color-coral);
	font-family: var(--ws-font-en);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.26em;
}

.ws-page-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.08em;
	word-break: auto-phrase;
}

.ws-page-hero__lead {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
	line-height: 2;
	letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
	.ws-page-hero__media img {
		object-position: var(--ws-media-position, 50% 50%);
	}

	.ws-page-hero__media::after {
		background: linear-gradient(90deg, rgba(13, 26, 54, 0.96) 0%, rgba(13, 26, 54, 0.9) 30%, rgba(13, 26, 54, 0.5) 56%, rgba(13, 26, 54, 0.2) 78%, rgba(13, 26, 54, 0.12) 100%);
	}
}

/* ------------------------------------------------------------
 * セクション共通の部品
 * ------------------------------------------------------------ */
.ws-section {
	padding: clamp(56px, 7.5vw, 112px) 0;
}

/* 英字の小見出し */
.ws-eyebrow {
	margin: 0 0 18px;
	color: var(--ws-color-rose-deep);
	font-family: var(--ws-font-en);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.24em;
}

.ws-heading {
	margin: 0;
	color: var(--ws-color-navy);
	font-size: clamp(1.375rem, 1.1rem + 1.5vw, 2rem);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
 * 本文（ブロックエディタで書いた内容）
 * ------------------------------------------------------------ */
.ws-content {
	padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.ws-entry-meta {
	margin: 0 0 24px;
	color: var(--ws-color-text-sub);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

.ws-empty {
	margin: 0;
}

.ws-entry {
	color: #333b4d;
	font-size: 0.9375rem;
	line-height: 2.1;
	letter-spacing: 0.04em;
}

.ws-entry > :first-child {
	margin-top: 0;
}

.ws-entry > :last-child {
	margin-bottom: 0;
}

/* ブロックの「幅を制限」設定で本文が細くなりすぎないようにする（幅はテーマ側で決める）。 */
.ws-entry .wp-block-group__inner-container > *,
.ws-entry .is-layout-constrained > * {
	max-width: none;
}

.ws-entry h1,
.ws-entry h2,
.ws-entry h3,
.ws-entry h4 {
	color: var(--ws-color-navy);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.06em;
	word-break: auto-phrase;
}

.ws-entry h1 {
	margin: 2.4em 0 1em;
	font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
}

.ws-entry h2 {
	margin: 2.6em 0 1.1em;
	padding-bottom: 0.7em;
	border-bottom: 1px solid var(--ws-color-line);
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
}

.ws-entry h3 {
	margin: 2.2em 0 0.8em;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
}

.ws-entry h4 {
	margin: 2em 0 0.8em;
	font-size: 1rem;
}

.ws-entry p,
.ws-entry ul,
.ws-entry ol {
	margin: 0 0 1.5em;
}

.ws-entry p {
	text-wrap: pretty;
}

.ws-entry p:empty {
	display: none;
}

.ws-entry ul,
.ws-entry ol {
	padding-left: 1.5em;
}

.ws-entry a {
	color: var(--ws-color-rose-deep);
	text-underline-offset: 0.2em;
}

.ws-entry img {
	border-radius: 10px;
}

.ws-entry hr,
.ws-entry .wp-block-separator {
	width: 100%;
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--ws-color-line);
}

/* 表: 縦線を無くし、行の区切り線だけにする */
.ws-entry .wp-block-table {
	margin: 0 0 2em;
	overflow-x: auto;
}

.ws-entry table {
	width: 100%;
	border-top: 1px solid var(--ws-color-line-strong);
	border-collapse: collapse;
}

.ws-entry table th,
.ws-entry table td {
	/* 見出し列が1文字ずつ折り返されないよう、セルの最小幅を確保する。 */
	min-width: 5em;
	padding: 0.9em 0.75em;
	border: 0;
	border-bottom: 1px solid var(--ws-color-line);
	line-height: 1.9;
	text-align: left;
	vertical-align: top;
	/* メールアドレス等の長い英数字もセル内で折り返し、狭い画面で表が横にはみ出さないようにする。 */
	overflow-wrap: anywhere;
}

.ws-entry table th,
.ws-entry table thead td {
	border-bottom-color: var(--ws-color-line-strong);
	color: var(--ws-color-navy);
	font-weight: 600;
}

@media (min-width: 768px) {
	.ws-entry table th,
	.ws-entry table td {
		padding: 1.1em 1em;
	}
}

/* ------------------------------------------------------------
 * 記事一覧・ページ送り・検索フォーム
 * ------------------------------------------------------------ */
.ws-post-list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ws-color-line);
	list-style: none;
}

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

.ws-post-list__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	min-height: var(--ws-tap);
	padding: 18px 4px;
	color: var(--ws-color-text);
	letter-spacing: 0.04em;
	text-decoration: none;
}

.ws-post-list__link:hover .ws-post-list__title {
	color: var(--ws-color-rose-deep);
}

.ws-post-list__date {
	flex: 0 0 auto;
	color: var(--ws-color-text-sub);
	font-size: 0.875rem;
}

.ws-post-list__title {
	flex: 1 1 240px;
	min-width: 0;
	font-weight: 600;
	transition: color 0.2s;
}

/* ページ送り（the_posts_pagination の出力） */
.ws-main .navigation.pagination {
	margin-top: 40px;
}

.ws-main .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ws-main .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--ws-tap);
	min-height: var(--ws-tap);
	padding: 0 12px;
	border: 1px solid var(--ws-color-line-strong);
	border-radius: var(--ws-radius);
	color: var(--ws-color-text);
	text-decoration: none;
}

.ws-main .page-numbers.current {
	background-color: var(--ws-color-navy);
	border-color: var(--ws-color-navy);
	color: var(--ws-color-white);
}

.ws-main .page-numbers.dots {
	border-color: transparent;
}

/* 検索フォーム（get_search_form の出力） */
.ws-search {
	margin-bottom: 40px;
}

.ws-main .search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px;
	max-width: 560px;
}

.ws-main .search-form label {
	flex: 1 1 200px;
	min-width: 0;
}

.ws-main .search-form .search-submit {
	flex: 0 0 auto;
	min-width: 0;
	min-height: var(--ws-tap);
	padding: 8px 24px;
}

/* ------------------------------------------------------------
 * お問い合わせ誘導（白〜淡いローズ）
 * ------------------------------------------------------------ */
.ws-cta {
	padding: clamp(48px, 6vw, 88px) 0;
	background: linear-gradient(120deg, #fff 0%, #fdf1f1 38%, #fae4e7 100%);
}

.ws-cta__inner {
	display: grid;
	gap: 24px;
}

.ws-cta__text {
	margin: 0 0 24px;
	color: #333b4d;
	font-size: 0.9375rem;
	line-height: 2.1;
	letter-spacing: 0.04em;
	text-wrap: pretty;
	word-break: auto-phrase;
}

.ws-cta .ws-button {
	min-width: min(100%, 240px);
	min-height: 52px;
	padding: 10px 32px;
	font-size: 0.9375rem;
}

@media (min-width: 1024px) {
	.ws-cta__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		gap: 64px;
	}
}

/* ============================================================
 * スマホ（767px 以下）専用
 * ============================================================ */
@media (max-width: 767px) {
	/* ---------- セクション共通 ---------- */
	.ws-section {
		padding: 72px 0;
	}

	.ws-eyebrow {
		margin-bottom: 14px;
		font-size: 0.75rem;
		letter-spacing: 0.22em;
	}

	.ws-heading {
		font-size: clamp(1.375rem, 6.7vw, 1.875rem);
		line-height: 1.5;
		letter-spacing: 0.06em;
	}

	/* ---------- PAGE HERO ---------- */
	.ws-page-hero__title {
		font-size: clamp(1.875rem, 8.6vw, 2.25rem);
		line-height: 1.4;
		letter-spacing: 0.06em;
	}

	.ws-page-hero__lead {
		margin-top: 12px;
		font-size: 0.9375rem;
		line-height: 1.85;
	}

	/*
	 * 写真つきの PAGE HERO: 写真を上に大きく見せ、下へ向かってネイビーに溶かす。
	 * 文字は下端に置き、写真とコピーを1つのまとまりに見せる。
	 */
	.ws-page-hero--photo {
		align-items: flex-end;
		min-height: clamp(300px, 86vw, 400px);
	}

	.ws-page-hero--photo .ws-page-hero__media::after {
		background: linear-gradient(180deg, rgba(13, 26, 54, 0.1) 0%, rgba(13, 26, 54, 0.3) 28%, rgba(13, 26, 54, 0.84) 52%, rgba(13, 26, 54, 0.96) 100%);
	}

	.ws-page-hero--photo .ws-page-hero__body {
		padding: 0 0 34px;
	}

	/* ---------- 本文 ---------- */
	.ws-content {
		padding: 56px 0 72px;
	}

	.ws-entry {
		line-height: 1.9;
	}

	/* ---------- お問い合わせ誘導 ---------- */
	.ws-cta {
		padding: 68px 0 80px;
	}

	.ws-cta__inner {
		gap: 18px;
	}

	.ws-cta__text {
		max-width: 34em;
		margin-bottom: 22px;
		line-height: 1.85;
	}

	.ws-cta .ws-button {
		width: 100%;
		min-height: 54px;
	}
}
