@charset "UTF-8";
/**
 * おしらせ一覧（/category/news/）専用のスタイル。
 *
 * - クラスは stnews- 接頭辞のみ。既存の sc-* / ast-* / elementor-* とは当たらない。
 * - 色はテーマのグローバルカラー（--ast-global-color-*）を参照し、フォントは指定しない（サイト共通のまま）。
 * - 影は使わず、境界は 1px の細い線で表す。
 */

.stnews {
	--stnews-orange: var(--ast-global-color-0, #ff7a3d);
	--stnews-orange-deep: var(--ast-global-color-1, #ff5100);
	--stnews-ink: var(--ast-global-color-2, #1e1810);
	--stnews-sub: var(--ast-global-color-3, #575250);
	--stnews-line: #ece7e3;
	--stnews-line-soft: #f3efec;
	--stnews-tint: #fff6f0;
	--stnews-thumb-bg: #fbfaf9;

	/* テーマのコンテナは 921px 以下で左右余白を持たないので、自前で 16〜20px 確保する。 */
	max-width: 1160px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 20px);
	color: var(--stnews-ink);
}

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

/* ============================================================
   1. ヒーロー
   ============================================================ */

.stnews-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
	align-items: center;
	gap: 24px;
	overflow: hidden;
	padding: clamp(28px, 4vw, 52px) clamp(20px, 3.4vw, 44px);
	border: 1px solid #f6e6da;
	border-radius: 20px;
	background:
		radial-gradient(120% 140% at 88% 12%, rgba(255, 122, 61, 0.13) 0%, rgba(255, 122, 61, 0) 62%),
		linear-gradient(120deg, #ffffff 0%, #fff8f3 52%, #fff1e6 100%);
}

/* 背景の非常に薄い曲線 */
.stnews-hero::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto -10%;
	height: 200%;
	background:
		radial-gradient(60% 42% at 20% 60%, rgba(255, 81, 0, 0.05) 0%, rgba(255, 81, 0, 0) 70%),
		radial-gradient(46% 30% at 74% 34%, rgba(255, 122, 61, 0.06) 0%, rgba(255, 122, 61, 0) 72%);
	pointer-events: none;
}

.stnews-hero__text,
.stnews-hero__art {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.stnews-hero__eyebrow {
	margin: 0 0 10px;
	color: var(--stnews-orange-deep);
	font-size: clamp(11px, 1.1vw, 13px);
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
}

.stnews-hero__title {
	margin: 0 0 14px;
	color: var(--stnews-ink);
	font-size: clamp(24px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.34;
}

.stnews-hero__lead {
	margin: 0;
	max-width: 34em;
	color: var(--stnews-sub);
	font-size: clamp(13px, 1.3vw, 15px);
	line-height: 1.9;
}

.stnews-hero__art {
	justify-self: end;
	width: 100%;
	max-width: 420px;
}

.stnews-hero__art svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ============================================================
   2. 見出し・共通パーツ
   ============================================================ */

.stnews-section {
	margin-top: clamp(26px, 3.4vw, 40px);
}

.stnews-heading {
	margin: 0 0 16px;
	font-size: clamp(17px, 1.9vw, 21px);
	font-weight: 700;
	line-height: 1.5;
}

.stnews-empty {
	margin: 40px 0;
	padding: 28px;
	border: 1px solid var(--stnews-line);
	border-radius: 14px;
	color: var(--stnews-sub);
	text-align: center;
}

.stnews-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.stnews-date {
	color: var(--stnews-sub);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	line-height: 1.6;
	white-space: nowrap;
}

.stnews-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.stnews-badge--green {
	color: #2f6b41;
	background: #eaf5ec;
}

.stnews-badge--blue {
	color: #2a5d8f;
	background: #e9f1fa;
}

.stnews-badge--red {
	color: #b03b3b;
	background: #fdecec;
}

.stnews-badge--orange {
	color: #b4611f;
	background: #fdf0e6;
}

.stnews-badge--gray {
	color: #5b5450;
	background: #f1efed;
}

.stnews-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--stnews-orange-deep);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.stnews-more__arrow {
	display: inline-block;
	transition: transform 0.18s ease;
}

/* サムネイル枠。画像の有無で高さが変わらないように比率で固定する（CLS 対策）。 */
.stnews-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--stnews-line-soft);
	border-radius: 12px;
	background: var(--stnews-thumb-bg);
}

/* 元画像は縦長・正方形・横長が混ざるが、一覧では全部同じ大きさに見せる。 */
.stnews-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* アイキャッチが無い記事の代わり。種別の色だけを借りた無地の飾りにする。 */
.stnews-thumb__ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.stnews-thumb__ph::before {
	content: "";
	width: 34%;
	aspect-ratio: 1;
	border: 2px solid currentColor;
	border-radius: 9px;
	opacity: 0.3;
}

.stnews-thumb__ph::after {
	content: "";
	position: absolute;
	width: 15%;
	height: 2px;
	margin-top: -5px;
	border-radius: 2px;
	background: currentColor;
	box-shadow: 0 8px 0 currentColor;
	opacity: 0.3;
}

.stnews-thumb__ph--green {
	color: #4a8060;
	background: linear-gradient(135deg, #f1f8f2 0%, #e7f2ea 100%);
}

.stnews-thumb__ph--blue {
	color: #4a729c;
	background: linear-gradient(135deg, #f1f6fb 0%, #e7eff8 100%);
}

.stnews-thumb__ph--red {
	color: #a95f5f;
	background: linear-gradient(135deg, #fdf3f3 0%, #fbe9e9 100%);
}

.stnews-thumb__ph--orange {
	color: #b4763f;
	background: linear-gradient(135deg, #fef5ed 0%, #fdece0 100%);
}

.stnews-thumb__ph--gray {
	color: #6e6763;
	background: linear-gradient(135deg, #f7f5f4 0%, #efecea 100%);
}

/* カード全体をリンク領域にする。リンクは 1 行につき 1 つだけ。 */
.stnews-cardlink {
	color: inherit;
	text-decoration: none;
}

.stnews-cardlink::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.stnews-cardlink:hover {
	color: var(--stnews-orange-deep);
}

/* ============================================================
   3. お知らせ一覧（横長リスト）
   ============================================================ */

.stnews-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--stnews-line-soft);
}

.stnews-list__row {
	border-bottom: 1px solid var(--stnews-line-soft);
}

.stnews-item {
	position: relative;
	display: grid;
	grid-template-columns: 176px 132px minmax(0, 1fr) auto;
	grid-template-areas: "thumb meta body more";
	align-items: center;
	gap: clamp(12px, 1.6vw, 22px);
	padding: 14px 10px;
	border-radius: 12px;
	transition: background-color 0.18s ease;
}

.stnews-item:hover,
.stnews-item:focus-within {
	background: #fffaf6;
}

.stnews-item:hover .stnews-more__arrow,
.stnews-item:focus-within .stnews-more__arrow {
	transform: translateX(3px);
}

.stnews-item__thumb {
	grid-area: thumb;
}

.stnews-item__meta {
	grid-area: meta;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.stnews-item__body {
	grid-area: body;
	min-width: 0;
}

.stnews-item__more {
	grid-area: more;
}

.stnews-item__title {
	margin: 0;
	font-size: clamp(14px, 1.5vw, 16px);
	font-weight: 700;
	line-height: 1.6;
}

.stnews-item__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 6px 0 0;
	color: var(--stnews-sub);
	font-size: 13px;
	line-height: 1.8;
}

/* キーボード操作: 行のどこにフォーカスが来ても分かるようにする。 */
.stnews-cardlink:focus-visible {
	outline: 2px solid var(--stnews-orange-deep);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ============================================================
   4. ページネーション
   ============================================================ */

.stnews-pager {
	margin-top: clamp(24px, 3vw, 36px);
}

.stnews-pager .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stnews-pager li {
	margin: 0;
}

.stnews-pager a.page-numbers,
.stnews-pager span.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--stnews-line);
	border-radius: 8px;
	color: var(--stnews-sub);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.stnews-pager a.page-numbers:hover,
.stnews-pager a.page-numbers:focus-visible {
	color: var(--stnews-orange-deep);
	border-color: #f3cfb4;
	background: var(--stnews-tint);
}

.stnews-pager span.current {
	color: #ffffff;
	background: #c24500;
	border-color: #c24500;
}

.stnews-pager span.dots {
	border-color: transparent;
	background: none;
}

.stnews-pager__arrow {
	display: inline-block;
}

/* ============================================================
   5. 下部 CTA
   ============================================================ */

.stnews-cta {
	position: relative;
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	align-items: center;
	gap: clamp(16px, 2.4vw, 32px);
	overflow: hidden;
	margin-top: clamp(32px, 4vw, 52px);
	padding: clamp(24px, 3.2vw, 44px) clamp(20px, 3.2vw, 44px);
	border: 1px solid #f6e6da;
	border-radius: 20px;
	background: linear-gradient(115deg, #fff8f3 0%, #fff1e6 100%);
}

.stnews-cta__art {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 220px;
}

.stnews-cta__art svg {
	display: block;
	width: 100%;
	height: auto;
}

.stnews-cta__body {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.stnews-cta__title {
	margin: 0 0 10px;
	font-size: clamp(19px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.5;
}

.stnews-cta__lead {
	margin: 0 0 20px;
	color: var(--stnews-sub);
	font-size: clamp(13px, 1.3vw, 15px);
	line-height: 1.85;
}

.stnews-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.stnews-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stnews-btn:hover .stnews-more__arrow,
.stnews-btn:focus-visible .stnews-more__arrow {
	transform: translateX(3px);
}

.stnews-btn--primary {
	color: #ffffff;
	background: linear-gradient(135deg, var(--stnews-orange) 0%, var(--stnews-orange-deep) 100%);
	border: 1px solid transparent;
}

.stnews-btn--primary:hover,
.stnews-btn--primary:focus-visible {
	color: #ffffff;
	background: linear-gradient(135deg, var(--stnews-orange-deep) 0%, #d94500 100%);
}

.stnews-btn--ghost {
	color: var(--stnews-ink);
	background: #ffffff;
	border: 1px solid var(--stnews-line);
}

.stnews-btn--ghost:hover,
.stnews-btn--ghost:focus-visible {
	color: var(--stnews-orange-deep);
	border-color: #f3cfb4;
	background: var(--stnews-tint);
}

.stnews-btn:focus-visible {
	outline: 2px solid var(--stnews-orange-deep);
	outline-offset: 3px;
}

/* ============================================================
   6. タブレット
   ============================================================ */

@media (max-width: 1024px) {

	.stnews-item {
		grid-template-columns: 150px minmax(0, 1fr);
		grid-template-areas:
			"thumb meta"
			"thumb body"
			"thumb more";
		align-items: start;
		row-gap: 8px;
	}

	.stnews-item__meta {
		flex-direction: row;
		align-items: center;
	}

	.stnews-item__more {
		justify-self: end;
	}

	.stnews-item__thumb {
		align-self: center;
	}
}

/* ============================================================
   7. スマートフォン
   ============================================================ */

@media (max-width: 767px) {

	.stnews-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 24px 18px 20px;
		border-radius: 16px;
		text-align: left;
	}

	.stnews-hero__art {
		order: 2;
		justify-self: center;
		max-width: 320px;
		opacity: 0.9;
	}

	.stnews-hero__lead {
		font-size: 13px;
		line-height: 1.85;
	}


	.stnews-item {
		grid-template-columns: 96px minmax(0, 1fr);
		grid-template-areas:
			"thumb meta"
			"thumb body"
			"more  more";
		gap: 6px 12px;
		padding: 14px 4px;
	}

	.stnews-item__thumb {
		align-self: start;
	}

	.stnews-item__meta {
		gap: 8px;
	}

	.stnews-date {
		font-size: 12px;
	}

	.stnews-item__title {
		font-size: 15px;
	}

	.stnews-item__excerpt {
		margin-top: 4px;
		font-size: 12.5px;
	}

	/* タップしやすい高さを確保する。 */
	.stnews-item__more {
		justify-self: end;
		min-height: 44px;
		padding: 0 4px;
		align-items: center;
	}

	.stnews-pager a.page-numbers,
	.stnews-pager span.page-numbers {
		min-width: 44px;
		height: 44px;
		padding: 0 10px;
		font-size: 13px;
	}

	.stnews-cta {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding: 24px 18px 26px;
		border-radius: 16px;
	}

	.stnews-cta__art {
		order: 2;
		justify-self: center;
		max-width: 260px;
		opacity: 0.75;
	}

	.stnews-cta__title {
		font-size: 20px;
	}

	.stnews-btn {
		flex: 1 1 auto;
		min-width: 160px;
	}
}

@media (max-width: 400px) {

	.stnews-item {
		grid-template-columns: 78px minmax(0, 1fr);
	}

	.stnews-badge {
		font-size: 11px;
		padding: 3px 8px;
	}
}

/* ============================================================
   8. 動きを減らす設定
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

	.stnews *,
	.stnews *::before,
	.stnews *::after {
		transition: none !important;
	}
}
