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

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

*, *::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-primary); padding: 8px 16px; border: 2px solid var(--c-primary);
}
.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・スマホとも上部に固定しない（ページと一緒にスクロールする）
   ========================================================= */
.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; flex-shrink: 1; min-width: 0; }
.site-logo img { width: 240px; height: auto; }
@media (min-width: 768px) { .site-logo img { width: 300px; } }
@media (min-width: 1200px) { .site-logo img { width: 340px; } }

.site-header__right { display: none; }
@media (min-width: 1200px) {
	.site-header__right { display: flex; flex-direction: column; align-items: flex-end; align-self: flex-start; }
}
.header-hayahito { line-height: 0; margin-top: 1px; }
.header-hayahito img { width: 220px; height: 40px; }
.header-hayahito, .header-hayahito:hover { text-decoration: none; }

/* PCのグローバルメニュー */
.global-nav { margin-top: 4px; }
.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: 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-primary); 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(6) { transition-delay: .4s; }
.drawer.is-open .drawer-nav__list > li:nth-child(n+7) { transition-delay: .45s; }


@media (prefers-reduced-motion: reduce) {
	.drawer, .drawer.is-open, .drawer .drawer-nav__list > li { transition: none; }
}

/* =========================================================
   ページタイトル（青い帯：高さ100px）
   ========================================================= */
.page-title {
	background: var(--c-primary); color: #fff; text-align: center;
	min-height: 100px; padding: 10px var(--gutter);
	display: flex; align-items: center; justify-content: center;
}
/* スマホも旧サイトと同じ高さ100px・文字28px（左右の余白は10px） */
@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; }

/* =========================================================
   本文エリア（旧サイト：上下50px・幅1170px）
   ========================================================= */
.entry-content { padding: 50px var(--gutter); }
.entry-content > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1300px; }
.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; }

/* =========================================================
   トップページのスライドショー（旧サイト：1300×550）
   ========================================================= */
.hero { position: relative; max-width: 1300px; margin: 0 auto; }
.hero__slides { position: relative; aspect-ratio: 1300 / 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: var(--c-navy);
	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; } }

/* =========================================================
   トップページの各セクション（旧サイトの bloc に合わせる）
   ========================================================= */
.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); }

/* 重要なお知らせ */
.home-topics.has-background { padding: 50px var(--gutter) 0; }
.home-topics.has-background { padding-left: 50px; padding-right: 50px; }
.home-topics .is-style-panel { margin-bottom: 0; }
.home-topics .is-style-panel p {
	display: flex; align-items: center; gap: 12px; margin-top: 4px; margin-bottom: 4px;
	font-size: 24px; line-height: 1.1; font-weight: 700; color: #ed1c24;
}
.home-topics .is-style-panel p::before {
	content: ""; flex: none; width: 48px; height: 48px;
	background: url(../img/icon-warning.svg) center / contain no-repeat;
}
.home-topics .is-style-panel p a { color: #ed1c24 !important; text-decoration: none; }
.home-topics .is-style-panel p a:hover { text-decoration: none; }

/* 健康診断（見出し＋アイコン） */
.home-checkup.has-background { padding: 50px var(--gutter) 0; }
.home-checkup h2.wp-block-heading { font-size: 28px; font-weight: 500; color: rgba(255, 255, 255, .9) !important; margin: 10px auto 20px; }
/* 見出しの下余白（20px）と重なるので、旧サイトの見出しとアイコンの間（70px）をそのまま指定する */
.home-checkup .wp-block-columns { margin-top: 70px; margin-bottom: 0; }
.home-checkup .wp-block-image { margin: 0; }
.home-checkup .wp-block-image img { width: auto; height: 60px; }
.home-checkup h3.wp-block-heading { font-size: 18px; font-weight: 700; margin-top: 10px; margin-bottom: 40px; }
.home-checkup h3 a { color: rgba(255, 255, 255, .9) !important; }

/* 病院の特徴 */
.home-feature { padding-top: 50px; padding-bottom: 50px; border-top: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.home-feature h2.wp-block-heading { font-size: 28px; margin: 0 auto 20px; }
.home-feature > p { line-height: 1.42857; margin-bottom: 0; }
.home-feature .wp-block-columns { margin-top: 50px; margin-bottom: 0; }
.home-feature .wp-block-image { margin: 0; }
.home-feature .wp-block-image img { width: 100%; }
.home-feature h3.wp-block-heading { font-size: 20px; font-weight: 700; line-height: 22px; margin-top: 10px; margin-bottom: 5px; }

/* 診療科一覧 */
.home-departments.has-background { padding: 50px var(--gutter); }
.home-departments h2.wp-block-heading { font-size: 24px; font-weight: 500; margin: 10px auto 20px; }
.home-departments .wp-block-list.is-style-columns { margin-bottom: 16px; }

/* お知らせ・バナー */
.home-news { padding-top: 50px; padding-bottom: 50px; }
.home-news .wp-block-columns { margin-top: 0; margin-bottom: 0; }
.home-news .wp-block-image { margin: 0; }
.home-news .is-style-panel { padding: 0; margin-bottom: 20px; }
.home-news .is-style-panel h3.wp-block-heading {
	display: flex; align-items: center; gap: 8px;
	margin: 0; padding: 10px 15px; border-bottom: 1px solid rgba(0, 0, 0, .1);
	font-size: 24px; font-weight: 700; line-height: 1.1;
}
.home-news .is-style-panel h3.wp-block-heading::before {
	content: ""; flex: none; width: 18px; height: 18px; background: url(../img/icon-bullhorn.svg) center / contain no-repeat;
}
.home-news .is-style-panel > :not(h3) { margin-left: 15px; margin-right: 15px; }
.home-news .is-style-panel > :nth-child(2) { margin-top: 15px; }
.home-news .is-style-panel > :last-child { margin-bottom: 15px; }
.home-news .no-news { margin-top: 0; margin-bottom: 5px; line-height: 1.7; }
.home-news .wp-block-latest-posts { padding: 0; margin-top: 0; margin-bottom: 10px; list-style: none; }
.home-news .wp-block-latest-posts li { margin-top: 0; margin-bottom: 10px; line-height: 1.6; display: flex; flex-direction: column-reverse; }
.home-news .wp-block-latest-posts__post-date { font-weight: 700; color: var(--c-text); font-size: 14px; }

/* =========================================================
   お知らせ一覧・個別
   ========================================================= */
/* お知らせ一覧の表（旧サイト：Bootstrap の table-striped・table-bordered・table-hover） */
.post-archive { display: flow-root; }
.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: 16.8%; }
td.post-table__date { font-size: 85%; }
.post-table tbody tr:nth-child(odd) { background: #f9f9f9; }
.post-table tbody tr:hover { background: #f5f5f5; }
@media (max-width: 767px) {
	.post-archive > * { margin-left: 15px; margin-right: 15px; }
	.post-table td { text-align: center; }
}
.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-primary); color: #fff; border-color: var(--c-primary); }

/* お知らせの個別ページ（旧サイトの Joomla の記事ページと同じ） */
.post-article { display: flow-root; }
.post-article__header { margin-top: 40px; margin-bottom: 20px; padding-bottom: 9px; border-bottom: 1px solid #eee; }
.entry-content .post-article__title { margin: 0 0 42px; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--c-primary); text-align: left; }
.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: 2px 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 { margin-top: 8px; margin-bottom: 8px; 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; }

.site-footer__main {
	background: #e6e6e6; color: #47454b;
	/* 旧サイト：上50px（ロゴまで）・下54px */
	padding: 50px max(var(--gutter), calc((100% - var(--content)) / 2)) 54px;
	display: flex; flex-wrap: wrap; gap: 20px 30px; justify-content: space-between; align-items: flex-end;
}
.site-footer__info { flex: 1 1 560px; }
.site-footer__logo { margin-top: 0; margin-bottom: 10px; line-height: 0; }
.site-footer__logo img { width: 340px; }
@media (max-width: 767px) { .site-footer__logo img { width: 280px; } }
.site-footer__departments { margin-top: 20px; margin-bottom: 5px; font-size: 14px; line-height: 1.1; color: var(--c-navy); }
.site-footer__address { font-style: normal; font-size: 16px; line-height: 1.42857; }
.site-footer__sub { text-align: right; }
@media (max-width: 767px) { .site-footer__sub { text-align: left; } }
.footer-subnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { .footer-subnav__list { justify-content: flex-start; margin-left: -15px; } }
.footer-subnav__list li { margin-top: 4px; }
.footer-subnav__list a { display: block; padding: 10px 0 10px 15px; font-size: 16px; line-height: 1.42857; color: var(--c-link); text-decoration: none; }
.footer-subnav__list a:hover { color: #23527c; text-decoration: none; }
.site-footer__copy { margin: 0 -15px 16px 0; font-size: 12px; font-weight: 500; line-height: 1.1; color: #47454b; }
.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）：旧サイトと同じく、本文・見出し・フッターを中央揃えにする
   ========================================================= */
@media (max-width: 767px) {
	.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:not(.alignleft):not(.alignright) img { margin-left: auto; margin-right: auto; }
	.entry-content .wp-block-image { text-align: center; }
	.entry-content .wp-block-buttons { justify-content: center; }

	/* トップページ */
	.home-checkup h2.wp-block-heading,
	.home-feature h2.wp-block-heading { line-height: 1.3; }
	.home-departments .wp-block-list.is-style-columns { grid-template-columns: 1fr; padding-left: 10px; }
	.home-news .is-style-panel h3.wp-block-heading { justify-content: center; position: relative; }
	.home-news .is-style-panel h3.wp-block-heading::before { position: absolute; left: 15px; }
	.home-news .wp-block-column + .wp-block-column { margin-top: 30px; }

	/* フッター：ロゴ・住所は中央、リンクは1行ずつ区切り線付き */
	.site-footer__main { display: block; padding: 50px 0 20px; }
	.site-footer__info { text-align: center; padding: 0 15px; }
	.site-footer__logo img { width: 340px; max-width: 100%; }
	.site-footer__sub { text-align: left; margin-top: 50px; }
	/* 旧サイトはPCで右から順に並べていたため、スマホで縦に並ぶと上から「リンク・その他・プライバシーポリシー」になる。同じ順にする */
	.footer-subnav__list { display: flex; flex-direction: column-reverse; margin: 0; }
	.footer-subnav__list li { margin-top: 0; border-top: 1px solid #ccc; background: #d9d9d9; }
	.footer-subnav__list li:first-child { border-bottom: 1px solid #ccc; }
	.footer-subnav__list a { padding: 10px 15px; text-align: right; }
	.site-footer__copy { padding: 30px 15px 0; margin: 0; }
}

/* =========================================================
   スマホ（〜767px）の本文の余白：旧サイトに合わせる
   写真は画面の端から端まで、文章・見出しは左右10px、縦に並んだ列の間は50px
   ========================================================= */
@media (max-width: 767px) {
	.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: 10px; padding-right: 10px; }
	.entry-content:not(.entry-content--home) .wp-block-table :is(td, th) p { padding-left: 0; padding-right: 0; }
	.entry-content:not(.entry-content--home) .wp-block-list { text-align: center; }
	/* 写真は元の大きさまで（旧サイトと同じく拡大はしない）。画面より大きい写真は画面幅に縮める */
	/* 旧サイトの行（row）：縦に並んだ列の上下50pxが行の内側に入り、列の間は50px。列の中の最初・最後の余白は列の50pxと重なる */
	.entry-content:not(.entry-content--home) div.wp-block-columns { gap: 50px 0; margin-top: 0; margin-bottom: 0; padding-top: 50px; padding-bottom: 50px; }
	.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:not(.entry-content--home) .wp-block-list.is-style-circle { text-align: left; }
	.entry-content:not(.entry-content--home) .wp-block-group.is-style-page-header,
	.entry-content:not(.entry-content--home) .wp-block-separator { margin-left: 0; margin-right: 0; }
}

/* =========================================================
   スマホ（〜767px）のヘッダー・トップページ・フッター：旧サイトの余白に合わせる
   旧サイトのスマホ表示では、縦に並んだ列の上下に50px、各帯の上下に50pxの余白があった
   ========================================================= */
@media (max-width: 767px) {
	:root { --header-h: 102px; }
	.site-logo img { width: 262px; }
	.site-logo { position: relative; top: -5px; left: 1px; } /* 旧サイトのロゴの位置（上から26px・左16px） */

	/* 重要なお知らせ */
	.home-topics.has-background { padding: 50px 50px 0; }
	.home-topics .is-style-panel { padding: 15px 0; }
	.home-topics .is-style-panel p { margin: 10px 0 20px; padding: 0 10px; }

	/* 健康診断 */
	.home-checkup.has-background { padding: 50px 0 0; }
	.home-checkup h2.wp-block-heading { margin: 50px auto 0; padding: 0 10px; }
	.home-checkup .wp-block-columns { margin-top: 150px; padding-bottom: 50px; }
	.home-checkup .wp-block-image img { height: 60px; }
	.home-checkup h3.wp-block-heading { font-size: 18px; margin-bottom: 40px; }

	/* 病院の特徴 */
	.entry-content--home > .home-feature:not(.has-background) { padding: 50px 10px; }
	.home-feature h2.wp-block-heading { margin: 50px auto 20px; padding: 0 10px; }
	.home-feature > p { padding: 0 10px; }
	.home-feature .wp-block-columns { margin-top: 120px; margin-bottom: 50px; gap: 50px; }
	.home-feature .wp-block-image img { width: 370px; max-width: 100%; margin: 0 auto; }

	/* 診療科一覧（旧サイトと同じく、2つずつの組で縦に並べる） */
	.home-departments.has-background { padding: 50px 0; }
	.home-departments h2.wp-block-heading { padding: 0 10px; text-align: center; }
	.home-departments .wp-block-list.is-style-columns { display: flex; flex-direction: column; padding-left: 24px; margin: 70px 0 50px; }
	.home-departments .wp-block-list.is-style-columns li { margin: 0 0 5px; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(1) { order: 1; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(6) { order: 2; margin-bottom: 50px; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(2) { order: 3; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(7) { order: 4; margin-bottom: 50px; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(3) { order: 5; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(8) { order: 6; margin-bottom: 50px; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(4) { order: 7; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(9) { order: 8; margin-bottom: 50px; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(5) { order: 9; }
	.home-departments .wp-block-list.is-style-columns li:nth-child(10) { order: 10; margin-bottom: 0; }

	/* お知らせ・バナー */
	.entry-content--home > .home-news:not(.has-background) { padding: 50px 15px; }
	.home-news .wp-block-columns { margin-top: 50px; margin-bottom: 50px; gap: 100px; }
	.home-news .wp-block-column + .wp-block-column { margin-top: 0; }

	/* フッター：ロゴ・診療科・住所・リンク・コピーライトの間を50pxずつ空ける */
	.site-footer__main { padding: 50px 0; }
	.site-footer__info { padding: 0 10px; }
	.site-footer__logo { margin-top: 50px; }
	.site-footer__departments { margin-top: 50px; }
	.site-footer__sub { margin-top: 50px; }
	.site-footer__copy { padding: 0 10px; margin: 50px 0 20px; text-align: center; }
}
@media (max-width: 767px) {
	/* 旧サイトでは3行に折り返していたので、枠の高さをそろえる */
	.home-topics .is-style-panel p { min-height: 79px; }
	.home-checkup h2.wp-block-heading,
	.home-feature h2.wp-block-heading { line-height: 1.1; }
	.home-feature h3.wp-block-heading { margin-bottom: 0; }
	.home-news .is-style-panel { margin-bottom: 0; }
	.home-news .wp-block-image img { width: 340px; max-width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
	/* 青い帯の左右の余白（.entry-content > .alignfull.has-background）より優先させる */
	.entry-content--home > .home-checkup.has-background { padding: 50px 0 0; }
	.entry-content--home > .home-departments.has-background { padding: 50px 0; }
	.entry-content--home > .home-topics.has-background { padding: 50px 50px 0; }
}
@media (max-width: 767px) {
	/* お知らせ枠とバナーの間は100px、バナーどうしの間は50px（旧サイトと同じ） */
	.home-news .wp-block-columns { gap: 50px; }
	.home-news .wp-block-column:first-child { margin-bottom: 35px; }
	.home-news .wp-block-column:nth-child(3) .wp-block-image img { width: 360px; }
}

/* =========================================================
   スマホ（〜767px）：本文の左右の余白（文章・箇条書き・表を画面の端から15px離す）
   ========================================================= */
@media (max-width: 767px) {
	.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:not(.entry-content--home) :is(ul, ol).wp-block-list.is-style-circle { padding-left: 15px; }
	.entry-content:not(.entry-content--home) figure.wp-block-table { padding-left: 15px; padding-right: 15px; }
	/* パネルは旧サイトと同じく画面幅いっぱい（中の余白15pxで、文章は画面の端から15px） */
	.entry-content:not(.entry-content--home) .wp-block-group.is-style-panel { margin-left: 0; margin-right: 0; }
	.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; }
}

/* 「文章を左揃えにする」をオンにしたページ（プライバシーポリシーなど）：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; }

/* 電話番号は途中で折り返さない */
a[href^="tel:"] { white-space: nowrap; }
