/*
Theme Name: Saishouji
Theme URI: https://saishouji-iin.com/
Author: PROVISYS
Description: 最勝寺内科医院（saishouji-iin.com）専用テーマ。案Bのデザイン。お問い合わせは MW WP Form（ID 62）、SEO は Yoast SEO と連携します。
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: saishouji
*/

:root {
	--blue: #127cb9;
	--blue-d: #0d5c8c;
	--tint: #eef6fb;
	--ink: #2b3036;
	--ink-d: #1d2a35;
	--sub: #45505a;
	--sub2: #5d6670;
	--line: #dbe3ea;
	--bg: #f5f8fa;
	--red: #c8432f;
	--gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	--mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .03em; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--blue-d); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.5; }
table { border-collapse: collapse; }
.min { font-family: var(--mincho); }
.small { font-size: 14px; color: var(--sub2); }
.strong { font-weight: 700; }
.mt24 { margin-top: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--blue-d); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 880px; }
.narrow--wide { max-width: 980px; }

/* ---------- header ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 13px; line-height: 1.6; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-top: 6px; padding-bottom: 6px; }
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid #e6edf2; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-d); flex-shrink: 0; }
.logo:hover { color: var(--ink-d); }
.logo__text { display: flex; flex-direction: column; line-height: 1.3; }
.logo__sub { font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.logo__name { font-size: 26px; font-weight: 700; letter-spacing: .12em; }
.gnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gnav a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 14px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.gnav b { font-weight: 400; font-size: 15px; }
.gnav i { font-style: normal; font-family: var(--mincho); font-size: 10px; letter-spacing: .14em; color: var(--blue); }
.gnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s; }
.gnav a:hover, .gnav a[aria-current] { color: var(--blue); }
.gnav a:hover::after, .gnav a[aria-current]::after { transform: scaleX(1); }
.htel { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 4px; background: var(--tint); text-decoration: none; color: var(--blue-d); flex-shrink: 0; }
.htel span { font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--blue-d); font: inherit; font-size: 10px; line-height: 1.2; cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }
.menu-btn .ico--close, .menu-btn[aria-expanded="true"] .ico--menu { display: none; }
.menu-btn[aria-expanded="true"] .ico--close { display: block; }
.drawer { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 80px); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(13, 92, 140, .15); padding: 8px 20px 24px; }
.drawer[hidden] { display: none; }
.drawer__nav { margin: 0; padding: 0; list-style: none; }
.drawer__nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.drawer__nav b { font-weight: 500; }
.drawer__nav i { font-style: normal; font-family: var(--mincho); font-size: 11px; letter-spacing: .14em; color: var(--blue); }
.drawer__nav a[aria-current] b { color: var(--blue); }
.drawer__tel { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; padding: 14px; border-radius: 4px; background: var(--blue); color: #fff; text-decoration: none; font-size: 22px; font-weight: 700; }
.drawer__tel:hover { color: #fff; background: var(--blue-d); }
.drawer__note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--sub2); }

@media (max-width: 1100px) {
	.gnav a { padding: 8px 10px; }
	.htel { padding: 10px 12px; }
	.htel span { font-size: 18px; }
}
@media (max-width: 1023px) {
	.gnav { display: none; }
	.menu-btn { display: flex; }
	.site-header__in { min-height: 76px; gap: 12px; }
	.htel { margin-left: auto; }
}
@media (max-width: 600px) {
	.topbar { font-size: 12px; }
	.logo { gap: 10px; }
		.logo__sub { font-size: 10px; letter-spacing: .08em; }
	.logo__name { font-size: 20px; letter-spacing: .08em; }
	.htel { display: none; }
	.menu-btn { width: 52px; height: 52px; }
}

/* ---------- common parts ---------- */
.sec { padding: 88px 0; }
.sec--first { padding-top: 72px; }
.sec--pt0 { padding-top: 0; }
.sec--pb32 { padding-bottom: 32px; }
.sec--gray { background: var(--bg); }
.sec__lead { margin: -12px 0 40px; color: var(--sub); }
.sec__lead strong { color: var(--blue-d); font-weight: 700; }
.hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 32px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hd h2, .hd h3 { margin: 0; font-family: var(--mincho); font-weight: 600; font-size: 28px; letter-spacing: .08em; color: var(--ink-d); }
.hd span { font-family: var(--mincho); font-size: 12px; letter-spacing: .24em; color: var(--blue); text-transform: uppercase; }
.hd--sm h2 { font-size: 26px; }
.home .hd h2 { font-size: 30px; }
.prose p { color: var(--sub); font-size: 15px; margin: 0 0 14px; }
.prose--lg p { font-size: 16px; color: var(--ink); margin-bottom: 16px; }
.h3 { margin: 32px 0 10px; font-family: var(--mincho); font-weight: 600; font-size: 20px; color: var(--blue); }
.prose > .h3:first-child, .box > .h3:first-child { margin-top: 0; }
.p { margin: 0 0 14px; color: var(--sub); font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 1px solid var(--blue); border-radius: 4px; background: #fff; color: var(--blue); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--tint); color: var(--blue-d); }
.btn--fill { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--fill:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn--lg { min-height: 56px; padding: 14px 44px; font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.btn--back { background: #fff; color: var(--sub); border-color: #b9c3cb; }
.photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--169 { aspect-ratio: 16 / 9; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split--6-5 { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cards2--tight { gap: 24px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.box { padding: 28px; border: 1px solid var(--line); background: #fff; }
.box p { margin: 0; font-size: 15px; color: var(--sub); }
.dots { margin: 20px 0 0; padding: 0 0 0 1.2em; font-size: 15px; }
.dots--sub { color: var(--sub); }
.tintbox { padding: 14px 18px; background: var(--tint); }
.tintbox strong { color: var(--blue-d); }
.note-box { margin-top: 24px; padding: 24px 28px; background: var(--tint); }
.note-box p { margin: 0 0 6px; }
.note-box__title { font-size: 18px; font-weight: 600; color: var(--ink-d); }
.note-box--center { padding: 36px 28px; text-align: center; border: 2px solid var(--blue); background: #fff; }
.note-box--center .cbox__num { margin: 8px 0; }
.tag { display: inline-block; padding: 2px 12px; border: 1px solid var(--blue); color: var(--blue); font-size: 12px; line-height: 1.6; text-align: center; text-decoration: none; white-space: nowrap; }
.more { font-weight: 500; }

/* page header */
.phead { background: var(--tint); border-bottom: 1px solid var(--line); }
.phead__in { padding-top: 56px; padding-bottom: 48px; }
.crumb ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--sub2); }
.crumb li + li::before { content: "›"; margin: 0 .8em; }
.crumb a { color: var(--sub2); }
.phead__en { margin: 18px 0 0; font-size: 13px; letter-spacing: .24em; color: var(--blue); }
.phead__title { margin: 4px 0 0; font-size: 38px; font-weight: 600; letter-spacing: .1em; color: var(--ink-d); line-height: 1.45; }

/* hours */
.hours-wrap { overflow-x: auto; }
.hours { width: 100%; font-size: 14px; }
.hours th, .hours td { padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.hours thead th { color: var(--sub2); font-weight: 500; font-size: 13px; }
.hours tbody th, .hours .hours__time { text-align: left; font-weight: 500; white-space: nowrap; }
.hours .ok { color: var(--blue); font-size: 16px; }
.hours .off { color: #7d868f; font-size: 12px; }
.hours .visit { color: var(--blue-d); font-size: 12px; }
.hours--full { font-size: 16px; }
.hours--full th, .hours--full td { padding: 16px 6px; }
.hours--full thead th { background: var(--blue); color: #fff; font-size: 15px; }
.hours--full tbody th, .hours--full .hours__time { padding-left: 20px; }
.hours--full .ok { font-size: 18px; }
.hours--full .off, .hours--full .visit { font-size: 14px; }

/* contact box */
.cbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--blue); }
.cbox__tel { padding: 40px; text-align: center; border-right: 1px solid #cfe3f0; }
.cbox__web { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: var(--tint); }
.cbox__web--left { align-items: flex-start; text-align: left; }
.cbox__web--left p { margin: 0; }
.cbox__title { margin: 0; font-size: 22px; font-weight: 600; color: var(--ink-d); }
.cbox__num { display: block; margin-top: 8px; font-size: 36px; font-weight: 700; letter-spacing: .04em; color: var(--blue-d); text-decoration: none; line-height: 1.4; }
.cbox__note { margin: 4px 0 0; font-size: 14px; color: var(--sub2); }
.cbox__web .cbox__note { margin: 8px 0 16px; }
.cbox--sm { margin-top: 28px; }
.cbox--sm .cbox__tel, .cbox--sm .cbox__web { padding: 30px; }
.cbox--sm .cbox__tel p:first-child { margin: 0; font-size: 15px; }
.cbox--sm .cbox__num { font-size: 34px; margin-top: 6px; }

/* ---------- top page ---------- */
.hero { position: relative; height: 520px; overflow: hidden; background: var(--blue-d); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__in { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 72px; }
.hero__panel { max-width: 560px; padding: 36px 44px; background: rgba(255, 255, 255, .94); border-top: 3px solid var(--blue); }
.hero__h1 { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; color: var(--blue); }
.hero__title { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.6; letter-spacing: .08em; color: var(--ink-d); }
.hero__text { margin: 14px 0 0; font-size: 15px; color: var(--sub); }
.band { position: relative; margin-top: -1px; padding-bottom: 24px; background: linear-gradient(var(--blue-d) 0, var(--blue-d) 40px, #fff 40px); }
.band__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(13, 92, 140, .08); }
.band__hours { padding: 30px 34px; border-right: 1px solid var(--line); }
.band__news { display: flex; flex-direction: column; padding: 30px 34px; }
.band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.band__head a { font-size: 13px; white-space: nowrap; }
.band__title { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--ink-d); }
.band__note { margin: 12px 0 0; font-size: 13px; color: var(--sub2); }
.mini-news { margin: 0; padding: 0; list-style: none; }
.mini-news li { border-bottom: 1px solid var(--line); }
.mini-news li:last-child { border-bottom: 0; }
.mini-news a { display: flex; flex-direction: column; padding: 10px 0; text-decoration: none; color: var(--ink); line-height: 1.6; }
.mini-news a:hover span { color: var(--blue); text-decoration: underline; }
.mini-news time { font-size: 12px; color: var(--blue); }
.mini-news span { font-size: 15px; }
.sec--info { padding-top: 64px; }
.ncard { display: flex; flex-direction: column; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .25s, transform .25s; }
.ncard:hover { color: var(--ink); box-shadow: 0 10px 24px rgba(13, 92, 140, .12); transform: translateY(-2px); }
.ncard__img { width: 100%; height: 200px; object-fit: cover; }
.ncard__img--top { object-position: top; }
.ncard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; flex: 1; }
.ncard__title { font-size: 18px; font-weight: 600; color: var(--blue); }
.ncard__text { font-size: 14px; }
.ncard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; color: var(--blue-d); }
.ncard__more .ico { width: 18px; height: 18px; }
.svc-rows { display: flex; flex-direction: column; gap: 20px; }
.svc-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 20px; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .25s; }
.svc-row:hover { color: var(--ink); box-shadow: 0 10px 24px rgba(13, 92, 140, .1); }
.svc-row__img { width: 100%; height: 170px; object-fit: cover; }
.svc-row__body { display: flex; flex-direction: column; gap: 8px; }
.svc-row__title { font-size: 22px; font-weight: 600; color: var(--ink-d); }
.svc-row__text { font-size: 15px; color: var(--sub); }
.svc-row__more { padding-right: 12px; font-size: 14px; color: var(--blue); white-space: nowrap; }
.svc-row:hover .svc-row__more { text-decoration: underline; }
.care__lead { margin: 0 0 16px; font-size: 17px; color: var(--blue); font-weight: 500; }
.gcard { border: 1px solid var(--line); background: #fff; }
.gcard__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gcard__body { padding: 24px 28px 28px; }
.gcard__body p { margin: 0 0 14px; font-size: 15px; color: var(--sub); }
.gcard__title { margin: 0 0 10px; font-size: 21px; font-weight: 600; color: var(--ink-d); }

/* faq */
.faq { margin-top: -16px; }
.faq__item { padding: 20px 4px; border-bottom: 1px solid var(--line); }
.faq__q { display: flex; gap: 12px; margin: 0 0 8px; font-family: var(--mincho); font-size: 18px; font-weight: 600; color: var(--ink-d); line-height: 1.6; }
.faq__mark { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--gothic); font-size: 14px; font-weight: 700; line-height: 1; margin-top: 2px; }
.faq__a { margin: 0; padding-left: 40px; font-size: 15px; color: var(--sub); }

/* ---------- lower pages ---------- */
.sign { margin: 28px 0 0; text-align: right; font-size: 18px; }
.history { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.history li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.history li > span:first-child { color: var(--blue); }
.history small { font-size: 14px; color: var(--sub2); }
.chips { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 14px 20px; background: var(--bg); }
.tbl { width: 100%; font-size: 15px; }
.tbl th, .tbl td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 1px solid var(--line); }
.tbl th { width: 200px; background: var(--bg); font-weight: 500; white-space: nowrap; }

.depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.depts li { display: flex; flex-direction: column; align-items: center; padding: 20px; background: var(--bg); }
.depts b { font-size: 20px; font-weight: 600; color: var(--blue-d); }
.depts span { font-size: 13px; color: var(--sub2); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.toc a { padding: 10px 20px; border: 1px solid var(--blue); border-radius: 4px; text-decoration: none; font-size: 15px; transition: background .2s; }
.toc a:hover { background: var(--tint); }
.svc { position: relative; padding: 80px 0; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.svc--tint { background: #fafcfd; }
.anchor { position: absolute; top: 0; }
.lead { margin: 0 0 28px; padding: 18px 24px; background: var(--tint); color: var(--blue-d); font-weight: 500; }
.side { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.side__aside { display: flex; flex-direction: column; gap: 24px; }
.side__aside .small { margin: -12px 0 0; }
.price { width: 100%; font-size: 15px; margin-top: 8px; }
.price caption { padding-bottom: 10px; text-align: left; font-family: var(--mincho); font-weight: 600; font-size: 18px; color: var(--ink-d); }
.price th, .price td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.price th { font-weight: 400; }
.price td { text-align: right; white-space: nowrap; font-weight: 500; color: var(--blue-d); }
.price tr:first-child th, .price tr:first-child td { border-top: 2px solid var(--blue); }

.intro { max-width: 880px; margin: 0 0 48px; font-size: 17px; }
.eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.eq { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px; border: 1px solid var(--line); background: #fff; }
.eq__img { width: 120px; height: 120px; object-fit: cover; }
.eq__img--none { display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.eq__img--none .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.eq__title { margin: 0 0 6px; font-weight: 600; font-size: 19px; color: var(--blue); line-height: 1.5; }
.eq p { margin: 0; font-size: 15px; color: var(--sub); }

.sk-only-input-page { margin-top: 48px; }
.methods { margin: 0 0 12px; padding-left: 1.2em; }
.methods li { margin-bottom: 6px; }
.place__photo { margin: 0 0 16px; }
.page-intro { margin: 0 0 32px; font-size: 16px; line-height: 2; }
.place__name { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.map { position: relative; aspect-ratio: 4 / 3; background: #e8eef2; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pp__intro { font-size: 16px; }
.pp .pp__part { margin: 44px 0 0; border-left: 0; padding: 12px 18px; background: var(--tint); font-size: 21px; font-weight: 600; color: var(--ink-d); scroll-margin-top: 16px; }
.pp h3 { margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--blue); font-family: var(--mincho); font-weight: 600; font-size: 20px; color: var(--ink-d); line-height: 1.5; }
.pp p, .pp ul, .pp ol { margin: 0 0 12px; font-size: 15px; color: var(--sub); }
.pp ul, .pp ol { padding-left: 1.4em; }
.pp li ul { margin: 6px 0 0; }

/* news */
.sub { margin: 0 0 32px; color: var(--sub); }
.news-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--blue); }
.nitem { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.nitem:hover { background: var(--bg); color: var(--ink); }
.nitem time { color: var(--blue); }
.nitem__arrow { color: var(--blue); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.tintbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding: 24px 28px; background: var(--bg); }
.tintbar a { font-weight: 500; }
.post__head { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.post__meta time { color: var(--blue); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.pager span:last-child { text-align: right; }
.pager__list { padding: 8px 18px; border: 1px solid var(--blue); border-radius: 4px; text-decoration: none; }
.link-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; padding: 0; list-style: none; }

/* editor content (お知らせ, 算定について) */
.entry-content { font-size: 16px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--blue); font-family: var(--mincho); font-weight: 600; font-size: 22px; color: var(--ink-d); }
.entry-content h3 { margin: 32px 0 10px; font-family: var(--mincho); font-weight: 600; font-size: 19px; color: var(--blue); }
.entry-content h4 { margin: 24px 0 8px; font-size: 17px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; margin: 0 0 1.5em; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg); font-weight: 500; }
.entry-content img { height: auto; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote { margin: 0 0 1em; padding: 16px 20px; background: var(--tint); border-left: 3px solid var(--blue); }
.entry-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.wp-block-table { overflow-x: auto; }

/* ---------- contact form (MW WP Form) ---------- */
.sk-form .steps { display: flex; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: st; }
.sk-form .steps li { flex: 1; position: relative; padding: 10px 6px; background: var(--bg); color: var(--sub2); text-align: center; font-size: 14px; counter-increment: st; }
.sk-form .steps li::before { content: counter(st) ". "; }
.sk-form .steps li + li { margin-left: 4px; }
.mw_wp_form_input .sk-form .steps li.steps__1, .mw_wp_form_confirm .sk-form .steps li.steps__2, .sk-form--done .steps li.steps__3 { background: var(--blue); color: #fff; font-weight: 700; }
.mw_wp_form_input .sk-only-confirm, .mw_wp_form_confirm .sk-only-input { display: none; }
.flead { padding: 16px 20px; background: #fff7e6; border-left: 4px solid #f0b400; }
.fbody { border-top: 2px solid var(--blue); }
.frow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.frow__label { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 8px; padding-top: 10px; font-weight: 500; }
.mw_wp_form_confirm .frow__label { padding-top: 0; }
.req, .opt { display: inline-block; padding: 0 8px; border-radius: 3px; font-size: 11px; font-weight: 500; line-height: 1.8; }
.req { background: var(--red); color: #fff; }
.opt { border: 1px solid #b9c3cb; color: #6b747c; line-height: 1.7; }
.frow input[type="text"], .frow input[type="email"], .frow input[type="tel"], .frow textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #b9c6d0; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.frow textarea { min-height: 180px; }
.frow input:focus, .frow textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 124, 185, .2); }
.frow input::placeholder, .frow textarea::placeholder { color: #9aa4ad; }
.note { margin: 6px 0 0; font-size: 13px; color: var(--sub2); }
.sk-form .error { display: block; margin: 6px 0 0; color: var(--red); font-size: 14px; font-weight: 500; }
.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="tel"], .has-error textarea { border-color: var(--red); background: #fff8f7; }
.fprivacy { margin-top: 32px; padding: 22px; background: var(--bg); text-align: center; }
.fprivacy p { margin: 0 0 10px; font-size: 14px; }
.fprivacy .req { margin-left: 8px; }
.fprivacy__check .mwform-checkbox-field { display: inline-flex; margin: 0; }
.fprivacy__check label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid #b9c6d0; border-radius: 4px; background: #fff; cursor: pointer; }
.fprivacy__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.fprivacy.has-error .fprivacy__check label { border-color: var(--red); }
.fsummary { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--red); background: #fff8f7; color: var(--red); font-weight: 500; }
.fsummary[hidden] { display: none; }
.factions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.factions .btn { min-width: 280px; }
.mw_wp_form_input .factions .btn--back { display: none; }
.fdone { padding: 48px 32px; text-align: center; border: 2px solid var(--blue); }
.fdone__title { margin: 0 0 16px; font-size: 26px; font-weight: 600; color: var(--ink-d); }
.fdone__note { font-size: 14px; color: var(--sub2); }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 28px; background: var(--blue-d); color: #e3f1fa; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer__name { margin: 0 0 12px; font-size: 24px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.site-footer__addr { margin: 0; }
.site-footer__addr a { text-decoration: none; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; color: #fff; }
.site-footer__copy { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 12px; color: #cfe3f0; }
.fixbar { display: none; }
.page-top { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.page-top.is-show { opacity: 1; visibility: visible; }
.page-top:hover { background: var(--blue-d); color: #fff; }

/* ---------- motion ---------- */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv-on .rv.is-in { opacity: 1; transform: none; }
.hero__panel { animation: sk-up .9s .2s ease both; }
@keyframes sk-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hero__panel { animation: none; }
	.ncard, .ncard:hover { transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
	.svc-row { grid-template-columns: 240px minmax(0, 1fr); }
	.svc-row__more { display: none; }
	.side { gap: 32px; }
}
@media (max-width: 820px) {
	.wrap { padding: 0 20px; }
	.sec { padding: 60px 0; }
	.sec--first { padding-top: 48px; }
	.sec--pt0 { padding-top: 0; }
	.svc { padding: 56px 0; }
	.hd h2, .home .hd h2, .hd--sm h2 { font-size: 23px; }
	.phead__in { padding-top: 32px; padding-bottom: 32px; }
	.phead__title { font-size: 28px; }
	.split, .split--6-5, .split--5-7, .cards2, .cards3, .side, .eq-grid, .band__in, .cbox, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.split { gap: 32px; }
	.hero { height: auto; background: #fff; }
	.topbar__st { display: none; }
	.hero__img { position: relative; display: block; height: 260px; }
	.hero__in { display: block; height: auto; padding: 0; }
	.hero__panel { max-width: none; margin: -40px 0 0; padding: 24px 22px; position: relative; background: #fff; box-shadow: 0 8px 24px rgba(13, 92, 140, .1); }
	.hero__title { font-size: 26px; }
	.band { background: linear-gradient(var(--blue-d) 0, var(--blue-d) 0, #fff 0); padding-top: 24px; }
	.band__hours { border-right: 0; border-bottom: 1px solid var(--line); }
	.band__hours, .band__news { padding: 24px 20px; }
	.svc-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 0 20px; }
	.svc-row__body { padding: 0 20px; }
	.svc-row__img { height: 190px; }
	.svc-row__title { font-size: 20px; }
	.cbox__tel { border-right: 0; border-bottom: 1px solid #cfe3f0; }
	.cbox__tel, .cbox__web { padding: 28px 20px; }
	.cbox__num { font-size: 30px; }
	.depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tbl th, .tbl td { display: block; width: auto; }
	.tbl th { padding: 10px 14px; border-bottom: 0; }
	.tbl td { padding: 12px 14px 16px; }
	.tbl tr:first-child td { border-top: 0; }
	.history li { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
	.lead { padding: 14px 18px; }
	.price th, .price td { padding: 12px 10px; }
	.price { font-size: 14px; }
	.price td { white-space: normal; min-width: 7em; }
	.eq { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; }
	.eq__img { width: 96px; height: 96px; }
	.eq__title { font-size: 17px; }
	.intro { font-size: 16px; }
	.nitem { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 18px 4px; }
	.nitem__title { grid-column: 1 / -1; }
	.nitem__arrow { display: none; }
	.tag { justify-self: start; }
	.frow { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
	.frow__label { padding-top: 0; }
	.factions { flex-direction: column-reverse; align-items: stretch; }
	.factions .btn { min-width: 0; width: 100%; }
	.pager { grid-template-columns: 1fr; text-align: center; }
	.pager span:last-child { text-align: center; }
	.pp .pp__part { font-size: 18px; }
	.fdone { padding: 32px 20px; }
	.hours th, .hours td, .hours--full th, .hours--full td { padding: 10px 2px; }
	.hours tbody th, .hours--full tbody th, .hours .hours__time { padding-left: 4px; font-size: 13px; }
	.hours .off, .hours .visit, .hours--full .off, .hours--full .visit { font-size: 11px; letter-spacing: 0; }
	/* bottom bar */
	body { padding-bottom: 64px; }
	.fixbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
	.fixbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; color: var(--blue-d); font-size: 12px; font-weight: 500; text-decoration: none; }
	.fixbar a:first-child { background: var(--blue); color: #fff; }
	.fixbar a + a { border-left: 1px solid var(--line); }
	.page-top { bottom: 80px; right: 14px; width: 44px; height: 44px; }
}
@media print {
	.topbar, .gnav, .htel, .menu-btn, .drawer, .fixbar, .page-top, .site-footer__nav { display: none !important; }
	.rv-on .rv { opacity: 1; transform: none; }
}
