/* 院別ページ 既定スタイル（テーマに合わせて上書き可） */
:root {
	--sbp-main: #2b6cb0;
	--sbp-accent: #e8734a;
	--sbp-text: #333;
	--sbp-muted: #6b7280;
	--sbp-line: #e5e7eb;
	--sbp-bg: #f7f9fb;
}
.sbp-single, .sbp-archive { max-width: 1000px; margin: 0 auto; padding: 32px 16px 64px; color: var(--sbp-text); line-height: 1.8; }
.sbp-title { font-size: 1.75rem; margin: 0 0 8px; line-height: 1.3; }
.sbp-h2 { font-size: 1.2rem; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--sbp-main); }
.sbp-section { margin-bottom: 40px; }
.sbp-area { font-size: .85rem; color: var(--sbp-muted); margin: 0 0 4px; }
.sbp-judo { display: inline-block; background: var(--sbp-bg); border: 1px solid var(--sbp-line); padding: 2px 10px; border-radius: 4px; font-size: .85rem; margin: 0 0 12px; }

.sbp-head { margin-bottom: 16px; }
.sbp-photo { margin: 0 0 40px; }
.sbp-photo img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 8px; display: block; }
.sbp-photo-empty { aspect-ratio: 16/7; background: var(--sbp-bg); border: 1px dashed var(--sbp-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--sbp-muted); font-size: .9rem; }

.sbp-btn { display: inline-block; background: var(--sbp-main); color: #fff !important; text-decoration: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; margin: 4px 8px 4px 0; }
.sbp-btn-tel { background: var(--sbp-accent); }
.sbp-btn-sm { padding: 4px 12px; font-size: .85rem; }
.sbp-btn:hover { opacity: .85; }

.sbp-info { width: 100%; border-collapse: collapse; }
.sbp-info th, .sbp-info td { border-bottom: 1px solid var(--sbp-line); padding: 12px 8px; text-align: left; vertical-align: top; }
.sbp-info th { width: 120px; background: var(--sbp-bg); font-weight: 600; white-space: nowrap; }

.sbp-hours-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.sbp-hours { width: 100% !important; max-width: none; border-collapse: collapse !important; border-spacing: 0; text-align: center; table-layout: fixed; margin: 0; font-size: 1rem; line-height: 1.4; }
table.sbp-hours th, table.sbp-hours td { border: 1px solid var(--sbp-line) !important; padding: 10px 4px !important; text-align: center !important; vertical-align: middle !important; white-space: nowrap !important; word-break: keep-all; background-image: none; }
table.sbp-hours thead th { background: var(--sbp-main) !important; color: #fff !important; font-weight: 600; }
table.sbp-hours tbody th { background: var(--sbp-bg) !important; font-weight: 600; color: var(--sbp-text); }
table.sbp-hours .sbp-hours-corner { width: 3.2em; }
table.sbp-hours .sbp-closed { color: #bbb; }
table.sbp-hours .sbp-open { font-weight: 600; }
/* 時間は「9:00」「〜12:30」を単位として折り返す（数字の途中では絶対に切れない） */
table.sbp-hours th, table.sbp-hours td { white-space: normal !important; }
table.sbp-hours thead th, table.sbp-hours tbody th { white-space: nowrap !important; }
table.sbp-hours .sbp-t1, table.sbp-hours .sbp-t2 { display: inline-block; white-space: nowrap; line-height: 1.3; }
/* テーマの文字サイズに依存せず、1行で収まる固定サイズ（PC幅 約940px で 8列 + 時間列が1行に収まる） */
table.sbp-hours td { font-size: 14px !important; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; padding-left: 2px !important; padding-right: 2px !important; }
table.sbp-hours thead th, table.sbp-hours tbody th { font-size: 15px !important; }
@media (min-width: 1100px) { table.sbp-hours td { font-size: 15px !important; } }
table.sbp-hours-v { display: none; }
@media (max-width: 640px) {
	table.sbp-hours-h { display: none; }
	table.sbp-hours-v { display: table; }
	table.sbp-hours-v .sbp-t1, table.sbp-hours-v .sbp-t2 { display: inline; }
	table.sbp-hours-v tbody th { width: 3em; }
}
.sbp-closed-days span { display: inline-block; background: var(--sbp-bg); padding: 0 8px; margin-right: 8px; border-radius: 3px; font-size: .85rem; }
.sbp-hours-note { color: var(--sbp-muted); font-size: .9rem; }

.sbp-notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 0; }
.sbp-notice { border: 1px solid var(--sbp-line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.sbp-notice dt { font-weight: 700; color: var(--sbp-main); margin-bottom: 4px; }
.sbp-notice dd { margin: 0; font-size: .95rem; }

.sbp-map iframe { width: 100%; height: 360px; border: 0; border-radius: 8px; }
.sbp-map-link { display: inline-block; margin-top: 8px; font-size: .9rem; }

.sbp-legal { font-size: .78rem; color: var(--sbp-muted); border-top: 1px solid var(--sbp-line); padding-top: 12px; margin-top: 40px; }
.sbp-back { margin-top: 24px; }

/* 一覧 */
.sbp-archive-header { margin-bottom: 24px; }
.sbp-area-nav a { display: inline-block; padding: 4px 14px; margin: 0 6px 6px 0; border: 1px solid var(--sbp-line); border-radius: 999px; text-decoration: none; color: var(--sbp-text); font-size: .9rem; }
.sbp-area-nav a.is-active { background: var(--sbp-main); color: #fff; border-color: var(--sbp-main); }
.sbp-grid { display: grid; gap: 20px; }
.sbp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sbp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sbp-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .sbp-cols-3, .sbp-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sbp-grid { grid-template-columns: 1fr; } }
.sbp-card { border: 1px solid var(--sbp-line); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.sbp-card-thumb { display: block; aspect-ratio: 4/3; background: var(--sbp-bg); }
.sbp-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sbp-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.sbp-card-title { font-size: 1.05rem; margin: 0 0 6px; }
.sbp-card-title a { text-decoration: none; color: var(--sbp-text); }
.sbp-card-addr { font-size: .85rem; color: var(--sbp-muted); margin: 0 0 4px; }
.sbp-card-tel { margin: 0 0 8px; font-weight: 600; }
.sbp-card-tel a { color: var(--sbp-accent); text-decoration: none; }
.sbp-badges { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.sbp-badges li { font-size: .75rem; background: var(--sbp-bg); border: 1px solid var(--sbp-line); border-radius: 3px; padding: 1px 8px; }
.sbp-card .sbp-btn { margin-top: auto; text-align: center; }
.sbp-pagination { margin-top: 32px; text-align: center; }

/* サブ写真 */
.sbp-gallery { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .sbp-gallery { grid-template-columns: repeat(3, 1fr); } }
.sbp-gallery li { aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; }
.sbp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 独自ヘッダー */
.sbp-site-header { border-bottom: 1px solid var(--sbp-line); background: #fff; }
.sbp-site-header-inner { max-width: 1000px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sbp-site-brand a { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--sbp-text); }
.sbp-site-brand img { max-height: 48px; width: auto; }
.sbp-site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.sbp-site-nav a { text-decoration: none; color: var(--sbp-text); font-size: .95rem; }
.sbp-site-footer { border-top: 1px solid var(--sbp-line); text-align: center; padding: 24px 16px; font-size: .85rem; color: var(--sbp-muted); }
.sbp-site-footer a { color: inherit; text-decoration: none; }

/* 空席確認・予約 */
.sbp-contact { background: #fbfaf3; padding: 40px 24px; border-radius: 12px; }
.sbp-h2-center { text-align: center; border-left: 0; padding-left: 0; position: relative; padding-bottom: 14px; margin-bottom: 28px; }
.sbp-h2-center::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120px; height: 3px; background: var(--sbp-accent); transform: translateX(-50%); }
.sbp-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 640px) { .sbp-cta-grid { grid-template-columns: 1fr; gap: 14px; } }
.sbp-cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; font-size: 1.9rem; font-weight: 700; text-decoration: none; border-radius: 4px; transition: opacity .2s; letter-spacing: .02em; }
.sbp-cta:hover { opacity: .85; }
.sbp-cta-line { background: #4cc764; color: #fff !important; }
.sbp-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #4cc764; font-size: .8rem; font-weight: 800; }
.sbp-cta-tel { background: #767676; color: #fff !important; font-size: 2.1rem; letter-spacing: .04em; }
.sbp-cta-web { background: var(--sbp-main); color: #fff !important; }
.sbp-cta-epark { background: #fff; border: 2px solid #222; color: #222 !important; font-size: 2.2rem; letter-spacing: .06em; }
.sbp-cta-e { color: #8dc21f; }
.sbp-cta-hpb { background: #fff; border: 2px solid #9b1b4a; color: #9b1b4a !important; font-size: 1.6rem; gap: 8px; }
.sbp-cta-hpb-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #9b1b4a; color: #fff; font-family: Georgia, serif; font-size: 1.5rem; }
.sbp-cta-hpb-text { display: flex; flex-direction: column; line-height: 1.05; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.sbp-cta-hpb-text small { font-size: .55rem; font-family: inherit; letter-spacing: .1em; font-weight: 700; }
@media (max-width: 640px) { .sbp-cta { min-height: 72px; font-size: 1.4rem; } .sbp-cta-tel, .sbp-cta-epark { font-size: 1.6rem; } }

/* 施術時間 リスト形式 */
.sbp-hours-list { margin: 0; border-top: 1px solid var(--sbp-line); }
.sbp-hours-row { display: flex; gap: 16px; padding: 12px 8px; border-bottom: 1px solid var(--sbp-line); }
.sbp-hours-row dt { flex: 0 0 160px; font-weight: 600; }
.sbp-hours-row dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.sbp-hours-closed dd { color: var(--sbp-accent); }
.sbp-sep { color: var(--sbp-muted); margin: 0 4px; font-weight: 400; }
@media (max-width: 560px) { .sbp-hours-row { flex-direction: column; gap: 2px; } }
