/* ============================================================
   page.css — 下層ページ共通（脱WPBakery / PHP直書き）
   見出し・テーブル・ul.page・ttlh3 はCustomizer追加CSSが担当。
   ここではレイアウト補助のみ。
   ============================================================ */

.smy-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
}
.smy-page > h2:first-child { margin-top: 0; }

/* spacer / separator 代替 */
.smy-spacer { height: 20px; }
.smy-hr { border: 0; border-top: 1px solid #d9e2e8; margin: 32px 0; }

/* 共通ボタン（vc_btn 代替） */
.smy-btns {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 24px 0;
}
.smy-btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	text-align: center;
	transition: opacity .2s;
}
.smy-btn:hover { opacity: .85; color: #fff; }
.smy-btn--primary { background: #1e73be; }
.smy-btn--danger  { background: #e8743b; }
.smy-btn--sky     { background: #4a9fd4; }

/* リスト（textlist） */
ul.textlist { list-style: none; padding-left: 0; }
ul.textlist > li { padding: 4px 0; }

/* details アコーディオン（vc_tta_accordion 代替） */
.smy-details {
	border: 1px solid #d9e2e8;
	border-radius: 4px;
	margin: 12px 0;
	background: #f9fbfc;
}
.smy-details > summary {
	cursor: pointer;
	font-weight: 700;
	padding: 14px 18px;
	list-style: none;
	position: relative;
}
.smy-details > summary::-webkit-details-marker { display: none; }
.smy-details > summary::after {
	content: '＋';
	position: absolute;
	right: 18px;
	color: #26c6da;
	font-weight: 700;
}
.smy-details[open] > summary::after { content: '−'; }
.smy-details[open] > summary { border-bottom: 1px solid #e3e3e3; }
.smy-details__body { padding: 16px 18px; }

/* 医師プロフィール（画像 + 本文） */
.smy-doctor {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	margin: 30px 0;
}
.smy-doctor__photo { flex: 0 0 240px; }
.smy-doctor__photo img { width: 100%; height: auto; border-radius: 4px; }
.smy-doctor__body { flex: 1; min-width: 0; }
.smy-doctor__body h4 { margin: 0 0 8px; font-size: 1.3rem; }
.smy-doctor__body h5 { margin: 0 0 16px; font-weight: 400; color: #666; line-height: 1.7; }

/* 業績一覧 dl */
.smy-doctor dl dt { font-weight: 700; margin-top: 16px; }
.smy-doctor dl dd { margin: 4px 0 0; color: #555; font-size: .9rem; }

/* 受賞バナー */
.smy-banner-row { display: flex; gap: 20px; margin: 30px 0; }
.smy-banner { display: block; flex: 1; }
.smy-banner img { width: 100%; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,.15); border: 1px solid #e3e3e3; }
.smy-banner--full { max-width: 620px; margin: 20px auto; }

/* アクセス情報（地図 + 住所） */
.smy-access { display: flex; gap: 30px; align-items: center; margin-top: 24px; }
.smy-access__map { flex: 1; }
.smy-access__map img { width: 100%; height: auto; }
.smy-access__map iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border: 0;
}
@media (max-width: 480px) {
	.smy-access__map iframe { aspect-ratio: 1 / 1; }
}

.smy-access__info { flex: 1; line-height: 2; }
.smy-tel { font-size: 18pt; }
.smy-attention { color: #ff0000; }

/* Blog 投稿グリッド */
.smy-postgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 30px 0;
}
.smy-postcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e8edf0; border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.smy-postcard:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.smy-postcard__thumb { aspect-ratio: 16/9; overflow: hidden; background: #eef3f6; }
.smy-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.smy-postcard__body { padding: 14px 16px; }
.smy-postcard__date { font-size: .8rem; color: #888; }
.smy-postcard__title { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; }
.smy-archives { margin: 30px 0; }
.smy-archives ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }
.smy-archives a { text-decoration: none; }

/* 初診予約フォーム（Contact Form 7 / reCAPTCHA不使用の自作実装） */
.smy-form input.input-field,
.smy-form textarea.input-field {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid #ccd3d8;
	border-radius: 3px;
	font-size: 1rem;
	box-sizing: border-box;
	/* テーマ標準スタイルはtext/email/tel等に薄いグレー背景(--base-2)を当てるが
	   input[type=date]はその対象外で白背景のまま→浮いて見えていた。
	   全フィールドを白背景に統一して見た目を揃える */
	background-color: #fff;
}
.smy-form textarea.input-field { max-width: 100%; }
.smy-form input[type="date"].input-field {
	/* モバイルブラウザはtype=dateを中央揃えで表示するデフォルトがあるため統一 */
	text-align: left;
}
.smy-form input[type="date"].input-field.smy-date-default {
	/* 未選択のデフォルト日付は、他のplaceholderと同系統のグレーで表示する */
	color: #999;
}
.smy-form .input-send {
	display: inline-block;
	background: #1e73be;
	color: #fff;
	border: 0;
	padding: 12px 34px;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .2s;
}
.smy-form .input-send:hover { opacity: .85; }
/* ハニーポット: 人には見えないが、botの自動入力には引っかかる罠フィールド */
.smy-form-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}
.smy-form-msg {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
}
.smy-form-msg--success { background: #eaf6ec; color: #1e7a34; }
.smy-form-msg--error { background: #fdecea; color: #c62828; }
.smy-form-msg--error ul { margin: 0; padding-left: 1.2em; }
.smy-form-note { font-size: .75rem; color: #999; margin-top: 12px; }

@media (max-width: 768px) {
	.smy-doctor { flex-direction: column; }
	.smy-doctor__photo { flex-basis: auto; max-width: 240px; margin: 0 auto; }
	.smy-banner-row { flex-direction: column; }
	.smy-access { flex-direction: column; }
	.smy-btns { flex-direction: column; }
	.smy-postgrid { grid-template-columns: 1fr; }
}
