/*
 * base.css
 * 全サイト共通の最小限のリセットのみを定義する。
 * レイアウト変数・コンテナ・ボタン等のユーティリティは、採用デザイン
 * （法人A案／クリニックB案）でそれぞれ仕様が異なるため、
 * hub.css / clinic.css側で個別に（モックアップ準拠で）定義する。
 */

:root {
	--white: #ffffff;
	--gray-50: #f8f9fa;
	--gray-100: #f2f3f4;
	--gray-200: #e8eaec;
	--gray-300: #d0d4d8;
	--gray-400: #9aa0a8;
	--gray-600: #5a6270;
	--gray-800: #38404e;
	--gray-900: #2a3040;
}

/* スキップナビゲーション（WCAG 2.4.1） */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 99999;
	padding: 12px 24px;
	background: #000;
	color: #fff;
	font-size: 0.9rem;
	text-decoration: none;
}
.skip-link:focus {
	top: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* 固定ヘッダー分 + 余裕をもたせたスクロール位置補正 */
[id] {
	scroll-margin-top: calc(var(--header-h, 72px) + 24px);
}
@media (max-width: 900px) {
	[id] {
		scroll-margin-top: calc(var(--header-h, 72px) + 56px); /* アンカーナビ高さ分を加算 */
	}
}
@media (max-width: 450px) {
	[id] {
		scroll-margin-top: calc(var(--header-h, 72px) + 24px); /* アンカーナビ非表示のため通常値に戻す */
	}
}

html {
	background: var(--white, #fff); /* iOS Safari オーバースクロール時にグレーが透けるのを防ぐ */
	scroll-behavior: smooth;
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	color: var(--gray-800);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	line-height: 1.8;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

/*
 * 医師・スタッフの顔写真プレースホルダー（写真なし／写真NGの場合に共通使用）
 * 全サイト共通のグレースケール表示のため、サイト別のアクセントカラーには依存しない。
 * 実写真が用意できたら、同サイズの<img class="staff-photo">に差し替える。
 */
.staff-photo-ph {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--gray-100);
	border: 1px solid var(--gray-300);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gray-400);
	overflow: hidden;
}
.staff-photo-ph svg {
	width: 44px;
	height: 44px;
}
.staff-photo {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}

.staff-photo--lead {
	width: 88px;
	height: 88px;
	border-radius: 12px;
}

/*
 * 投稿本文（ブログ記事）の汎用タイポグラフィ。
 * 見出し・リンクの配色はサイト別（hub.css/clinic.css）でアクセントカラーを上書きする。
 */
.entry-content {
	font-size: 0.95rem;
	color: var(--gray-800);
	line-height: 1.9;
	max-width: 760px;
	margin-inline: auto;
}
.entry-content > * + * {
	margin-top: 1.4em;
}
.entry-content h2 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--gray-900);
	line-height: 1.5;
}
.entry-content h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--gray-900);
	line-height: 1.5;
}
.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}
.entry-content ul {
	list-style: disc;
}
.entry-content ol {
	list-style: decimal;
}
.entry-content img {
	border-radius: 8px;
}
.entry-content blockquote {
	padding: 4px 20px;
	border-left: 3px solid var(--gray-300);
	color: var(--gray-600);
}
.entry-content a {
	text-decoration: underline;
}

/* ===== グループ間・外部リンク識別（site-links.js と連動） ===== */

/* 画像リンク：右下に半透明バッジ（JSが img の親要素に注入） */
.hs-site-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	line-height: 1;
	padding: 5px;
	border-radius: 4px;
	pointer-events: none;
	z-index: 2;
	display: flex;
	align-items: center;
}

/* 画像バッジ内・テキストリンク末尾の外部リンクアイコン */
.hs-ext-icon-wrap {
	display: inline-flex;
	align-items: center;
	margin-left: 3px;
	vertical-align: middle;
	opacity: 0.55;
	line-height: 1;
}

.hs-ext-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ===== お問い合わせページ ===== */
.contact-tel-block {
	background: var(--gray-50, #f8f8f8);
	border: 1px solid var(--gray-200, #e0e0e0);
	border-radius: 10px;
	padding: 24px 28px;
	margin-bottom: 40px;
}
.contact-tel-block__note {
	font-size: 0.875rem;
	color: var(--gray-600, #666);
	margin-bottom: 8px;
}
.contact-tel-block__row {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.contact-tel-block__tel {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--green, #3a7c52);
	text-decoration: none;
	font-family: var(--font-heading);
	line-height: 1;
}
.contact-tel-block__tel:hover {
	text-decoration: underline;
}
.contact-tel-block__hours {
	font-size: 0.875rem;
	color: var(--gray-600, #666);
}
.contact-tel-block__tasuki {
	margin-bottom: 16px;
}
.btn--tasuki {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: #e8f4ed;
	color: var(--green, #3a7c52);
	border: 1px solid var(--green, #3a7c52);
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}
.btn--tasuki:hover {
	background: #d0eadb;
}
.contact-tel-block__form-label {
	font-size: 0.875rem;
	color: var(--gray-700, #444);
	font-weight: 600;
}
.contact-wrap {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	align-items: start;
}
.contact-info__name {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--gray-900, #111);
}
.contact-info__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 0.85rem;
	line-height: 1.7;
}
.contact-info__list dt {
	font-weight: 600;
	color: var(--gray-700, #444);
	margin-bottom: 2px;
}
.contact-info__list dd {
	color: var(--gray-600, #666);
}

/* CF7 フォームスタイル（プラグイン独自CSSは無効化前提） */
.wpcf7-form .cf7-field {
	margin-bottom: 20px;
}
.wpcf7-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-700, #444);
	margin-bottom: 6px;
}
.wpcf7-form label abbr {
	color: #e53e3e;
	margin-left: 4px;
	text-decoration: none;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--gray-300, #ccc);
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	color: var(--gray-900, #111);
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--green, #3a7c52);
	box-shadow: 0 0 0 3px rgba(58,124,82,0.12);
}
.wpcf7-form textarea {
	min-height: 160px;
	resize: vertical;
}
.wpcf7-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}
.wpcf7-form input[type="submit"],
.wpcf7-submit {
	display: inline-block;
	padding: 14px 48px;
	background: var(--green, #3a7c52);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	margin-top: 8px;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
	background: var(--green-dark, #2e6341);
	transform: translateY(-1px);
}
.wpcf7-not-valid-tip {
	font-size: 0.8rem;
	color: #e53e3e;
	margin-top: 4px;
	display: block;
}
.wpcf7-response-output {
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 0.875rem;
}
.wpcf7-mail-sent-ok {
	border: 1px solid #68d391;
	background: #f0fff4;
	color: #276749;
}
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
	border: 1px solid #fc8181;
	background: #fff5f5;
	color: #c53030;
}
.wpcf7-validation-errors {
	border: 1px solid #f6ad55;
	background: #fffaf0;
	color: #7b341e;
}
@media (max-width: 768px) {
	.contact-wrap {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ===== プライバシーポリシーページ ===== */
.privacy-body {
	max-width: 780px;
	margin-inline: auto;
	font-size: 0.92rem;
	line-height: 1.9;
	color: var(--gray-800);
}
.privacy-intro {
	margin-bottom: 40px;
	color: var(--gray-700, #444);
}
.privacy-item {
	margin-bottom: 36px;
}
.privacy-item h2 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--gray-900, #222);
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--gray-200, #e0e0e0);
}
.privacy-item p {
	margin-bottom: 8px;
}
.privacy-item .privacy-sub {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--gray-800, #333);
	margin: 20px 0 4px;
}
.privacy-item .privacy-sub + ul {
	margin-bottom: 8px;
}
.privacy-item ul {
	list-style: disc;
	padding-left: 1.4em;
	margin-top: 6px;
}
.privacy-item ul li {
	margin-bottom: 4px;
}
.privacy-contact {
	margin-top: 16px;
	background: var(--gray-50, #f8f8f8);
	border: 1px solid var(--gray-200, #e0e0e0);
	border-radius: 8px;
	padding: 20px 24px;
}
.privacy-contact dl {
	display: grid;
	grid-template-columns: 7em 1fr;
	gap: 8px 16px;
}
.privacy-contact dt {
	font-weight: 600;
	color: var(--gray-700, #444);
}
.privacy-contact dd {
	color: var(--gray-800);
}
.privacy-contact a {
	color: inherit;
	text-decoration: underline;
}
.privacy-date {
	margin-top: 48px;
	font-size: 0.8rem;
	color: var(--gray-400, #999);
	text-align: right;
}
@media (max-width: 600px) {
	.privacy-contact dl {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}
	.privacy-contact dt {
		margin-top: 10px;
	}
}

/* ===== CHECK GRID / CHECK LIST / FAQ (hub & clinic 共通) ===== */
.check__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 18px 20px; font-size: 0.87rem; color: var(--gray-700, #3d4451); line-height: 1.6; }
.check-item__icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-item__icon svg { width: 12px; height: 12px; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a__inner { padding: 0 4px 22px; font-size: 0.85rem; color: var(--gray-600); line-height: 1.9; }

.check-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 4px 16px;
	margin-top: 10px;
}
.check-list .check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--gray-800);
	padding: 5px 0;
	background: none;
	border: none;
	border-radius: 0;
}
.check-list .check-item::before {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	min-width: 15px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009966' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}
.check-list .check-item--num { gap: 6px; }
.check-list .check-item--num::before { display: none; }
.num-badge {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--green);
	background: var(--green-pale);
	border-radius: 4px;
	padding: 1px 7px;
	min-width: 32px;
	text-align: center;
	flex-shrink: 0;
}


/* 記事末尾の案内ブロック（post-cta.php） */
.post-cta {
	margin: 48px 0 32px;
	padding: 24px 28px;
	border: 1px solid var(--gray-200);
	border-radius: 12px;
	background: var(--gray-50);
}

.post-cta__lead {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 8px;
}

.post-cta__text {
	font-size: 0.88rem;
	line-height: 1.8;
	color: var(--gray-600);
	margin: 0 0 14px;
}

.post-cta__links {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.post-cta__links a {
	font-size: 0.9rem;
	text-decoration: underline;
}

.post-cta__tel {
	margin: 0;
	font-size: 0.95rem;
	color: var(--gray-800);
}

/* 記事内の写真を並べる（PCは2列、スマホは1列）: <div class="entry-photos entry-photos--2col"><figure><img></figure>… */
.entry-photos {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 24px 0;
}
.entry-photos figure { margin: 0; }
.entry-photos img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
}
@media (min-width: 769px) {
	.entry-photos--2col { grid-template-columns: 1fr 1fr; }
}
