/*
 * 旧テーマから Twenty Twenty-Five の子テーマに移したときの見た目の補正（legacy.css のあとに読む）
 * ブロックテーマでは記事の本文が <div class="entry-content wp-block-post-content"> で包まれる（旧テーマには無かった囲み）。
 * legacy.css の「.content の直下の要素」の指定がこの囲みにかかってしまうので、囲みには何も付けず、中の要素に同じ指定を付ける。
 * 中の要素への指定は :where() で強さを旧テーマと同じにする（見出しなど、もっと細かい指定が勝つように）。
 */
.blog-contents-wrap .content > .wp-block-post-content {
	display: block; /* ブロックの標準は flow-root（中の余白が外に出ない）。旧テーマと同じく、前後の余白が重なるように */
	word-break: normal;
	line-height: inherit;
	margin-top: 0;
	margin-bottom: 0;
}
.blog-contents-wrap .content > :where(.wp-block-post-content) > * {
	word-break: break-all;
	line-height: 2;
	margin-top: 2rem;
	margin-bottom: 1.5rem;
}
@media screen and (max-width: 480px) {
	.blog-contents-wrap .content > :where(.wp-block-post-content) > * {
		line-height: 2;
	}
}

/* 電話番号の自動リンク（2026-11-10）：文字の色・太さはそのまま */
a.hrc-tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---- ヘッダー：グループのホームページを、メニューの並びに少し色を変えて入れる（2026-11-10 宮本さん「ヘッダーに色を少し変えて挿入する形に」）。
   PC：いちばん左に濃い水色の欄（2行）。1025〜1159px はメニューの左右の余白を詰めて「ホームページ↗」の1行にし、応募ボタンに重ならないように。
   スマホ：メニューの最後に、ほかと同じ形で青い文字 ---- */
@media screen and (min-width: 1025px) {
	.header.hy .g-nav-list.hy-nav-home > a { flex-direction: column; justify-content: center; align-items: center; gap: 2px; background: #c7dcec; color: #004098; line-height: 1.25; }
	.header.hy .g-nav-list.hy-nav-home:hover > a { background: #fff; color: #004098; }
	.hy-nav-home__g { font-size: 11px; font-weight: 700; letter-spacing: .06em; }
	.hy-nav-home__h { font-size: 14px; font-weight: 700; }
}
@media screen and (min-width: 1025px) and (max-width: 1159px) {
	.header.hy .g-nav-list > a, .header.hy .sub-nav-title { padding: 0 1rem; }
	.hy-nav-home__g { display: none; }
}
@media screen and (max-width: 1024px) {
	.header.hy .g-nav-list.hy-nav-home { order: 10; }
	.header.hy .g-nav-list.hy-nav-home > a { color: #004098; }
}
.hy-nav-home .hy-ext { color: inherit; }

/* ---- 「HEARTLAND GROUP」はロゴ（.hy-en）と同じ英字の書体（2026-11-10 宮本さん「HEARTLAND GROUP ホームページ」に） ---- */
.hy-nav-home__g { font-family: 'Roboto', sans-serif; letter-spacing: .08em; }
@media screen and (max-width: 1024px) {
	.hy-nav-home__g { margin-right: .4em; }
}
