/* =========================================================
   サイト全体のスタイル（ヘッダー・フッター・レイアウト）
   数値は旧サイト（Joomla テンプレート hayahito）に合わせている
   ブレークポイント：スマホ 〜767px／タブレット 768〜1199px（ハンバーガーメニュー）／PC 1200px〜
   ========================================================= */

:root {
	--c-navy: #02019b;
	--c-primary: #0071bc;
	--c-text: #4d4d4d;
	--c-link: #337ab7;
	--c-bg: #f2f2f2;
	--content: 1170px;
	--gutter: 15px;
	--header-h: 70px;
}
@media (min-width: 1200px) { :root { --header-h: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }

.skip-link {
	position: absolute; left: 8px; top: -100px; z-index: 1000;
	background: #fff; color: var(--c-navy); padding: 8px 16px; border: 2px solid var(--c-navy);
}
.skip-link:focus { top: 8px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 電話番号：スマホだけタップで発信 ---------- */
a[href^="tel:"] { color: inherit; text-decoration: none; } /* 旧サイトと同じく、表の中などではハイフンの位置で折り返す */
@media (max-width: 767px) {
	a[href^="tel:"] { color: var(--c-link); text-decoration: underline; }
	.drawer a[href^="tel:"] { text-decoration: none; }
}
@media (min-width: 768px) {
	a[href^="tel:"] { pointer-events: none; cursor: text; }
}

/* =========================================================
   ヘッダー（旧サイトと同じく、PC・スマホとも上部に固定しない）
   PC：高さ128px、ロゴ 180×56、右上に大口温泉リハビリテーション病院へのボタン
   ========================================================= */
.site-header { position: relative; z-index: 100; background: #fff; }
.site-header__inner {
	max-width: calc(var(--content) + var(--gutter) * 2);
	margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	position: relative;
}
.site-logo { margin: 0; line-height: 0; }
.site-logo img { width: 150px; height: auto; }
@media (min-width: 1200px) { .site-logo img { width: 180px; } }

.site-header__right { display: none; }
@media (min-width: 1200px) {
	.site-header__right { display: block; align-self: stretch; }
}
.header-hospital { position: absolute; top: 1px; right: 98px; line-height: 0; }
.header-hospital img { width: 330px; height: 40px; }
@media (min-width: 1200px) { .header-hospital { right: calc((100% - var(--content)) / 2 - 1px); } }

/* PCのグローバルメニュー（旧サイト：上から65px、文字16px、左右15px） */
.global-nav { position: absolute; right: var(--gutter); top: 65px; }
.global-nav__list { list-style: none; margin: 0; padding: 0; display: flex; }
.global-nav__list > li { position: relative; }
.global-nav__list > li > a {
	display: block; padding: 0 15px 15px; color: #000; text-decoration: none;
	font-size: 16px; line-height: 20px; white-space: nowrap;
}
.global-nav__list > li > a:hover,
.global-nav__list > li > a:focus-visible { color: #000; text-decoration: none; }

/* ハンバーガーボタン（PCでは非表示）：旧サイトと同じ灰色の3本線（幅26px・太さ2px・間4px） */
.menu-toggle {
	position: relative; top: -4px; z-index: 210;
	display: block; width: 46px; height: 32px; margin-right: -4px; padding: 9px 10px;
	background: none; border: 0; border-radius: 4px; color: rgba(0, 0, 0, .5); cursor: pointer;
}
@media (min-width: 1200px) { .menu-toggle { display: none; } }
.menu-toggle__bars { position: relative; display: block; width: 26px; height: 14px; }
.menu-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px; background: currentColor;
	transition: transform .3s, opacity .3s, top .3s;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
/* メニューを開いている間は「×」（閉じるボタン） */
.menu-toggle[aria-expanded="true"] { color: #fff; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* =========================================================
   全画面メニュー（スマホ・タブレット）：右からスライドして表示
   ========================================================= */
.drawer {
	position: fixed; inset: 0; z-index: 200;
	background: var(--c-navy); color: #fff;
	transform: translateX(100%); visibility: hidden;
	transition: transform .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s;
	overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
@media (min-width: 1200px) { .drawer { display: none; } }
.drawer__inner { max-width: 560px; margin: 0 auto; padding: calc(var(--header-h) + 8px) 24px 48px; }
body.is-drawer-open { overflow: hidden; }
/* メニューを開いている間だけ、ヘッダー（閉じるボタン）を画面上部に出す */
body.is-drawer-open .site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; box-shadow: none; z-index: 220; }
body.admin-bar.is-drawer-open .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.is-drawer-open .site-header { top: 46px; } }
body.is-drawer-open .site-logo { visibility: hidden; }

.drawer-nav__list { list-style: none; margin: 0; padding: 0; }
.drawer-nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.drawer-nav__list a { display: block; color: #fff; text-decoration: none; }
.drawer-nav__list > li > a { padding: 14px 4px; font-size: 18px; font-weight: 700; }
.drawer-nav__list a:hover, .drawer-nav__list a:focus-visible { opacity: .75; text-decoration: none; }
.drawer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.drawer .drawer-nav__list > li { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s; }
.drawer.is-open .drawer-nav__list > li { opacity: 1; transform: none; }
.drawer.is-open .drawer-nav__list > li:nth-child(1) { transition-delay: .15s; }
.drawer.is-open .drawer-nav__list > li:nth-child(2) { transition-delay: .2s; }
.drawer.is-open .drawer-nav__list > li:nth-child(3) { transition-delay: .25s; }
.drawer.is-open .drawer-nav__list > li:nth-child(4) { transition-delay: .3s; }
.drawer.is-open .drawer-nav__list > li:nth-child(5) { transition-delay: .35s; }
.drawer.is-open .drawer-nav__list > li:nth-child(n+6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
	.drawer, .drawer.is-open, .drawer .drawer-nav__list > li { transition: none; }
}

/* =========================================================
   ページタイトル（紺の帯：高さ100px）
   ========================================================= */
.page-title {
	background: var(--c-navy); color: #fff; text-align: center;
	min-height: 100px; padding: 10px var(--gutter);
	display: flex; align-items: center; justify-content: center;
}
/* スマホの左右の余白は旧サイトと同じ10px（長いページ名も1行に収まる） */
@media (max-width: 767px) { .page-title { padding-left: 10px; padding-right: 10px; } }
.page-title__text { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.3; color: #fff; }

/* =========================================================
   本文エリア（旧サイト：幅1170px、上下は h2 の余白で空く）
   ========================================================= */
.entry-content { padding: 0 var(--gutter) 40px; }
.entry-content > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.entry-content > .alignfull.has-background { padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content > .alignfull > * { max-width: var(--content); margin-left: auto; margin-right: auto; }

/* =========================================================
   トップページのスライドショー（旧サイト：1200×550、白い文字）
   ========================================================= */
.hero { position: relative; max-width: 1200px; margin: 0 auto; }
.hero__slides { position: relative; aspect-ratio: 1200 / 550; overflow: hidden; background: #eee; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.5s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__caption {
	position: absolute; left: 0; right: 0; top: 0;
	padding: 40px; text-align: center; color: #fff;
	font-family: "メイリオ", Meiryo, YuGothic, "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", sans-serif;
	font-size: 44px; line-height: 88px; font-weight: 400; letter-spacing: .2em;
}
@media (max-width: 1199px) { .hero__caption { font-size: 32px; line-height: 1.5; padding: 30px 20px; } }
@media (max-width: 767px) { .hero__caption { font-size: 16px; line-height: 1.5; padding: 40px 10px 0; } }
.hero__arrow { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); z-index: 2; line-height: 0; }
.hero__arrow img { width: 80px; height: 80px; }
@media (max-width: 767px) { .hero__arrow { display: none; } }

/* =========================================================
   トップページの各帯（旧サイト：灰色 #f2f2f2 と白が交互、上下30px）
   ========================================================= */
.entry-content--home { padding-top: 0; padding-bottom: 0; }
.entry-content--home > .alignfull { margin-top: 0; margin-bottom: 0; }
.entry-content--home > .alignfull:not(.has-background) { padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content--home > .alignfull.has-background { padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content--home h2.wp-block-heading { background: none; margin: 30px auto 42px; padding-bottom: 18px; }
.entry-content--home > .home-section { padding-top: 30px; padding-bottom: 30px; }

/* 重要なお知らせ（灰色の帯の中に、赤い枠の白いパネル） */
.entry-content--home > .home-topics.has-background { padding: 50px 50px 0; }
.home-topics .is-style-panel {
	border: 2px solid #ed1c24; border-radius: 4px; padding: 15px; margin: 0 auto;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.home-topics .is-style-panel p {
	display: flex; align-items: flex-start; gap: 14.4px; margin: 0; padding-top: 5px;
	font-size: 25px; line-height: 35px; font-weight: 700; color: #ed1c24;
}
.home-topics .is-style-panel p::before {
	content: ""; flex: none; width: 48px; height: 48px; margin-top: 0;
	background: url(../img/icon-warning.svg) center / contain no-repeat;
}
.home-topics .is-style-panel p a { color: #ed1c24 !important; text-decoration: none; margin-top: 5px; }
.home-topics .is-style-panel p a:hover { text-decoration: none; }

/* 施設のご案内（6列のカード） */
.home-guidance .wp-block-columns { gap: 30px; }
.home-guidance .wp-block-image { margin: 0 0 10px; }
.home-guidance h4.wp-block-heading { margin: 12.8px 0 6.4px; }
.home-guidance p { line-height: 1.6; margin: 0 0 10px; }
.entry-content--home .home-guidance .wp-block-column > p:last-child { margin-bottom: 10px; }
/* 768〜991px は3列×2段（旧サイトの col-sm-4 col-md-2 と同じ。6列だと細長くなる） */
@media (min-width: 768px) and (max-width: 991px) {
	.home-guidance .wp-block-columns { flex-wrap: wrap !important; row-gap: 0; }
	.home-guidance .wp-block-columns > .wp-block-column { flex-basis: calc((100% - 60px) / 3) !important; flex-grow: 0; }
}

/* 在宅サービスのご案内（オレンジのパネル3つ） */
.home-care > p { text-align: center; line-height: 1.6; margin: 0 0 10px; }
.home-care .wp-block-columns { gap: 30px; }
/* パネル見出しのアイコン（旧サイト：段落の中の画像。行の高さぶんの余白がある） */
.home-care .is-style-panel > .wp-block-group > figure.wp-block-image { line-height: 1.42857; }
.home-care .is-style-panel > .wp-block-group > figure.wp-block-image img { vertical-align: baseline; }

/* 隼仁会からのお知らせ（お知らせ一覧・過去のお知らせボタン・スタッフ募集のバナー） */
.home-news .wp-block-columns { gap: 30px; }
.home-news .wp-block-latest-posts { list-style: none; margin: 0 0 20px; padding: 0; }
.home-news .wp-block-latest-posts li { border-bottom: 1px solid #ccc; padding: 0 0 0 20px; text-align: left; }
.home-news .wp-block-latest-posts li:first-child { border-top: 1px solid #ccc; }
.home-news .wp-block-latest-posts a { color: #333; }
.home-news .no-news { margin: 0; line-height: 1.42857; }
.home-news .wp-block-buttons { margin-bottom: 5px; }

/* =========================================================
   お知らせ一覧・個別
   ========================================================= */
/* お知らせ一覧の表（旧サイト：Bootstrap の table-striped・table-bordered・table-hover） */
/* 旧サイトの一覧ページは本文の高さが最低400px（＋下の余白40px） */
.post-archive { display: flow-root; min-height: 440px; }
.post-table { width: 100%; margin-bottom: 20px; border-collapse: collapse; border: 1px solid #ddd; line-height: 1.42857; }
.post-table :is(th, td) { padding: 8px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.post-table th { vertical-align: bottom; border-bottom-width: 2px; font-weight: 700; color: var(--c-link); }
.post-table__date { width: 23.2%; }
td.post-table__date { font-size: 85%; }
.post-table tbody tr:nth-child(odd) { background: #f9f9f9; }
.post-table tbody tr:hover { background: #f5f5f5; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-block; min-width: 40px; padding: 6px 12px; text-align: center; border: 1px solid #ddd; text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
/* お知らせの個別ページ（旧サイトの Joomla の記事ページと同じ） */
.post-article { display: flow-root; }
.post-article__info { display: flow-root; margin-top: 40px; margin-bottom: 20px; }
.entry-content:not(.entry-content--home) p.post-article__date { float: right; margin: 0; padding: 0; line-height: 25px; } /* 旧サイトのアイコンフォントの行の高さ */
.post-article__date img { display: inline; width: 16px; height: 16px; vertical-align: -1px; }
/* 「前へ」「次へ」（Bootstrap の pager：白地・灰色の枠・角丸15px） */
.post-pager { display: flow-root; margin-top: 18px; margin-bottom: 18px; padding: 0; list-style: none; text-align: center; line-height: 1.42857; }
.post-pager li { display: inline; }
.post-pager a { display: block; padding: 5px 14px; border: 1px solid #ddd; border-radius: 15px; background: #fff; color: var(--c-link); text-decoration: none; }
.post-pager__prev a { float: left; }
.post-pager__next a { float: right; }
.post-pager a:hover, .post-pager a:focus-visible { background: #f5f5f5; color: #23527c; text-decoration: none; }

/* =========================================================
   フッター
   ========================================================= */
/* グレーの帯（旧サイトではスマホでは非表示） */
.footer-nav { background: #999; display: none; padding: 10px 0; }
@media (min-width: 768px) { .footer-nav { display: block; } }
.footer-nav__inner { max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.footer-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-nav__list li { border-left: 1px solid #000; }
.footer-nav__list li:last-child { border-right: 1px solid #000; }
.footer-nav__list a { display: block; padding: 0 15px; color: #000; font-size: 13px; line-height: 18.6px; text-decoration: none; }
.footer-nav__list a:hover { color: #333; text-decoration: none; }

/* 3列：ロゴ・住所／施設のご案内／在宅サービス、その下にコピーライト */
.site-footer__main {
	color: #47454b;
	max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto;
	padding: 30px var(--gutter);
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; align-items: start;
}
.site-footer__info { grid-column: 1; }
.site-footer__logo { margin: 20px 0 10px; line-height: 0; }
.site-footer__logo img { width: 180px; }
.site-footer__address { font-style: normal; font-size: 16px; line-height: 1.42857; margin: 0 0 10px; }
.footer-menu { margin: 20px 0 20px; }
.footer-menu__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--c-navy); }
.footer-menu__list > li > a { display: block; padding: 0 15px 10px; color: var(--c-link); text-decoration: none; line-height: 1.42857; }
.footer-menu__list > li > a:hover { color: #23527c; text-decoration: none; }
.footer-menu__list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1em; font-size: 85%; }
.footer-menu__list .sub-menu li {
	margin: 0 0 2px; padding: 4px 0 4px 12px; line-height: 1.2; min-height: 1em;
	background: transparent url(../img/ico_mnav02.png) no-repeat 0 center;
}
.footer-menu__list .sub-menu a { color: var(--c-link); text-decoration: none; }
.footer-menu__list .sub-menu a:hover { color: #23527c; text-decoration: none; }
.site-footer__copy { grid-column: 1 / -1; margin: -23px -15px 40px 0; font-size: 12px; font-weight: 500; line-height: 1.1; color: #47454b; text-align: right; }
.site-footer__copy small { font-size: inherit; }

/* ページ先頭へ戻る（旧サイト：薄いグレーの角丸ボタン） */
/* 旧サイトと同じ：幅60px・高さ49px・半透明。画面の下の外に隠しておき、100px以上スクロールすると下から20pxの位置まで0.2秒で上がってくる（PC・スマホ共通） */
.back-to-top {
	position: fixed; right: 50px; bottom: -100px; z-index: 90;
	width: 60px; height: 49px; border-radius: 5px;
	display: flex; align-items: center; justify-content: center;
	background: #bbb; opacity: .5; visibility: hidden;
	transition: bottom .2s, visibility .2s;
}
.back-to-top.is-visible { bottom: 20px; visibility: visible; }
.back-to-top:hover { background: #999; }
.back-to-top img { width: 20px; height: 20px; display: block; }
body.is-drawer-open .back-to-top { display: none; }

/* =========================================================
   スマホ（〜767px）：旧サイトに合わせる（帯の中は中央揃え、縦に並んだ列の上下30px）
   ただし本文の左右の余白は15px（大口で指示を受けた、旧サイトより広い余白）
   ========================================================= */
@media (max-width: 767px) {
	/* 旧サイトのスマホ表示：ヘッダー102px、ロゴ高さ40px */
	:root { --header-h: 102px; }
	.site-logo img { width: auto; height: 40px; }
	.site-logo { position: relative; top: -5px; left: 1px; } /* 旧サイトのロゴの位置（上から26px・左16px） */
	.entry-content :is(h1, h2, h3, h4, h5, p):not(.has-text-align-left):not(.has-text-align-right) { text-align: center; }
	.entry-content .wp-block-table td { text-align: center; }
	.entry-content .wp-block-table.is-style-scroll th { white-space: nowrap; }
	.entry-content .wp-block-image { text-align: center; }
	.entry-content .wp-block-image:not(.alignleft):not(.alignright) img { margin-left: auto; margin-right: auto; }
	.entry-content .wp-block-buttons { justify-content: center; }

	.entry-content:not(.entry-content--home) { padding-left: 0; padding-right: 0; }
	.entry-content:not(.entry-content--home) :is(p, h1, h2, h3, h4, h5, .wp-block-buttons) { padding-left: 15px; padding-right: 15px; }
	.entry-content:not(.entry-content--home) :is(ul, ol).wp-block-list { padding-left: 40px; padding-right: 15px; }
	/* 箇条書きは、隼仁会の旧サイトではスマホで中央揃え（矢印付き・丸印のリストも） */
	.entry-content .wp-block-list { text-align: center; }
	.entry-content:not(.entry-content--home) :is(ul).wp-block-list:is(.is-style-circle, .is-style-more) { padding-left: 15px; }
	.entry-content:not(.entry-content--home) figure.wp-block-table { padding-left: 15px; padding-right: 15px; }
	.entry-content:not(.entry-content--home) .wp-block-group.is-style-panel { margin-left: 15px; margin-right: 15px; }
	.entry-content:not(.entry-content--home) .wp-block-group.is-style-panel :is(p, h1, h2, h3, h4, h5, .wp-block-buttons, figure.wp-block-table) { padding-left: 0; padding-right: 0; }
	.entry-content:not(.entry-content--home) .wp-block-separator { margin-left: 0; margin-right: 0; }
	/* 旧サイトの行（row）：縦に並んだ列の上下30pxが行の内側に入り、列の間は30px */
	.entry-content:not(.entry-content--home) div.wp-block-columns { gap: 30px 0; margin-top: 0; margin-bottom: 0; padding-top: 30px; padding-bottom: 30px; }
	.entry-content:not(.entry-content--home) .wp-block-column > :first-child { margin-top: 0 !important; }
	.entry-content:not(.entry-content--home) .wp-block-column > :last-child { margin-bottom: 0 !important; }
	.entry-content--home .home-section.home-news .wp-block-column > .wp-block-buttons.wp-block-buttons { margin-bottom: 5px !important; }

	/* フッター：施設のご案内・在宅サービスのメニューは旧サイトと同じく非表示 */
	/* 旧サイトのスマホ表示：ロゴは上から80px（帯の余白30px＋縦に並んだ列の余白50px）、コピーライトは中央 */
	.site-footer__main { display: block; text-align: center; padding: 30px 15px; }
	.site-footer__logo { margin-top: 50px; }
	.footer-menu { display: none; }
	.site-footer__copy { text-align: center; }
}

/* 「文章を左揃えにする」をオンにしたページ（プライバシーポリシーなど）：PC・スマホとも左揃え */
body.is-text-left .entry-content :is(h1, h2, h3, h4, h5, p, li, .wp-block-list, td, th) { text-align: left !important; }
body.is-text-left .entry-content .wp-block-buttons { justify-content: flex-start; }
body.is-text-left .entry-content h2.wp-block-heading { background-position: left bottom; }

/* スマホでも2列に並べるカラム（旧サイトの col-xs-6：デイケアの1日の流れなど） */
@media (max-width: 767px) {
	.entry-content:not(.entry-content--home) div.wp-block-columns.is-xs-2-columns { flex-wrap: wrap !important; gap: 30px 30px; }
	.entry-content div.wp-block-columns.is-xs-2-columns > .wp-block-column { flex-basis: calc(50% - 15px) !important; flex-grow: 0; }
}

/* スマホ：写真は旧サイトと同じく左右10pxの余白（旧サイトでは段落の中に置かれ、段落の左右10pxの分だけ小さく表示されていた） */
@media (max-width: 767px) {
	.entry-content:not(.entry-content--home) figure.wp-block-image { padding-left: 10px; padding-right: 10px; }
	.entry-content--home figure.wp-block-image { padding-left: 10px; padding-right: 10px; }
}

/* お知らせの帯：バナー画像の下の余白（旧サイトでは段落の下10px） */
.entry-content--home .home-news .wp-block-image { margin-bottom: 10px; }

/* スマホ（〜767px）のトップページ：旧サイトの余白に合わせる */
@media (max-width: 767px) {
	/* 帯の左右の余白なし（写真は左右10pxで370px幅、文章は左右15px） */
	.entry-content--home > .alignfull.has-background,
	.entry-content--home > .alignfull:not(.has-background) { padding-left: 0; padding-right: 0; }
	.entry-content--home > .home-topics.has-background { padding: 50px 50px 0; }
	.home-topics .is-style-panel p { padding-bottom: 5px; }
	.entry-content--home :is(p, h2, h3, h4, h5) { padding-left: 10px; padding-right: 10px; }
	.entry-content--home .is-style-panel :is(p, h2, h3, h4, h5) { padding-left: 0; padding-right: 0; }
	.entry-content--home h2.wp-block-heading { margin-bottom: 24px; }
	/* 縦に並んだ列：上下30px・列の間30px（旧サイトの col の margin） */
	.entry-content--home .home-section .wp-block-columns { padding-top: 30px; padding-bottom: 30px; gap: 30px; margin: 0; }
	/* 列の最後の要素の下余白は列の余白（30px）に重なる。空の段落は表示しない */
	.entry-content--home .home-section .wp-block-column > p:empty { display: none; }
	.entry-content--home .home-section .wp-block-column > :is(:last-child, :has(+ p:empty:last-child)) { margin-bottom: 0 !important; }
	.entry-content--home .home-section.home-news .wp-block-column > .wp-block-buttons.wp-block-buttons { margin-bottom: 5px !important; }
	.home-care .wp-block-group.is-style-panel { margin: 0 0 20px; }
	/* フッター：ロゴ・住所の下に30px空けてコピーライト */
	.site-footer__copy { margin: 30px 0 40px; }
}

/* 5列のカラム（旧サイトの col-sm-15：幅240pxの列の内側に左右10pxの余白 → 中身220px・間20px） */
@media (min-width: 782px) {
	.entry-content:not(.entry-content--home) div.wp-block-columns.is-5-columns { column-gap: 20px; margin-left: -5px; margin-right: -5px; }
}

/* row なしで列が並んでいたところ（旧サイト：container の内側15pxに列が並ぶ。在宅サービスのご案内） */
@media (min-width: 782px) {
	.entry-content:not(.entry-content--home) div.wp-block-columns.is-no-row { padding-left: 15px; padding-right: 15px; }
}

/* お知らせ一覧の表：スマホでは旧サイトと同じくセルの文字を中央揃え */
@media (max-width: 767px) {
	.post-table td { text-align: center; }
	.post-archive { min-height: 470px; }
	.post-archive > * { margin-left: 15px; margin-right: 15px; }
}
/* スマホで縦に並んだ5列：間は10px（旧サイトと同じ） */
@media (max-width: 781px) {
	.entry-content:not(.entry-content--home) div.wp-block-columns.is-5-columns { row-gap: 10px; }
}

/* 404ページ：タイトルの帯との間を空ける（ほかのページは見出しの上の余白で空いている） */
.error-404 { padding-top: 30px; }
