/* ============================================================
   front-page.css — 染谷メンタルクリニック Home (脱WPBakery)
   ============================================================ */

/* ---- 共通コンテナ ---- */
.smy-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}
.smy-section {
	margin: 60px 0;
}
.smy-section > h2 {
	text-align: center;
	font-size: 1.6rem;
	margin-bottom: 8px;
	position: relative;
}
/* Customizer側のh2下線装飾(padding+疑似要素)が見出し下端からさらに張り出すため、
   直後の要素には別途余白を確保する */
.smy-section > h2 + * {
	margin-top: 28px;
}
.smy-center { text-align: center; }

/* 休診日バッジ */
.smy-holiday {
	text-align: center;
	margin: 28px 0 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #333;
}
.smy-holiday__label {
	display: inline-block;
	background: #ffa000;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 4px 12px;
	border-radius: 3px;
	margin-right: 10px;
	vertical-align: middle;
}

/* ============================================================
   ① ヒーロー
   ============================================================ */
.smy-hero {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2; /* 背景を全てposition:absoluteにしたため、高さの基準をここで明示する必要がある */
	max-height: 560px;
	overflow: hidden;
	margin-bottom: 20px;
}
.smy-hero__bgs {
	position: absolute;
	inset: 0;
}
.smy-hero__bg {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.smy-hero__bg.is-active { opacity: 1; }
.smy-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.smy-hero__inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 0 8%;
	gap: 44px;
}
.smy-hero__messages {
	position: relative;
	min-height: 10rem; /* 4行×line-height1.9×font-size1.25remが収まる高さ。狭いとボタンとの間隔が詰まる */
	width: 100%;
}
.smy-hero__msg {
	position: absolute;
	top: 0; left: 0;
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
	line-height: 1.9;
	text-shadow: 0 1px 6px rgba(0,0,0,.35);
	opacity: 0;
	transition: opacity 1s ease;
	pointer-events: none;
}
.smy-hero__msg.is-active {
	opacity: 1;
	pointer-events: auto;
}
.smy-hero__btn {
	display: inline-block;
	background: #ffa000;
	color: #fff;
	font-weight: 700;
	padding: 12px 34px;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
	transition: background .2s;
}
.smy-hero__btn:hover { background: #ff8f00; color:#fff; }

/* ============================================================
   ② 新着情報 ＋ Facebook
   ============================================================ */
.smy-news-fb {
	display: flex;
	gap: 30px;
	margin: 50px 0;
}
.smy-news { flex: 2; min-width: 0; }
.smy-fb   { flex: 1; min-width: 0; max-width: 340px; }
.smy-news__more { text-align: center; margin-top: 20px; }

/* 新着情報リスト（What's Newジェネレーター代替） */
.smy-news__title {
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid #1e73be;
	font-size: 1.15rem;
	color: #444;
}
.smy-newslist {
	list-style: none;
	margin: 0;
	padding: 0;
}
.smy-newslist__item {
	border-bottom: 1px dashed #c9d6e0;
}
.smy-newslist__item > a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 12px 6px;
	color: #333;
	text-decoration: none;
	transition: background .15s;
}
.smy-newslist__item > a:hover {
	background: #f2f7fb;
	color: #1e73be;
}
.smy-newslist__item time {
	flex: 0 0 auto;
	font-size: .85rem;
	color: #7a8ba0;
	font-variant-numeric: tabular-nums;
}
.smy-newslist__new {
	flex: 0 0 auto;
	background: #e8743b;
	color: #fff;
	font-size: .68rem;
	font-weight: 700;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 3px;
	letter-spacing: .05em;
}
.smy-newslist__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.smy-newslist__label { white-space: normal; }
}

/* 共通ボタン */
.smy-btn {
	display: inline-block;
	padding: 10px 30px;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	transition: opacity .2s;
}
.smy-btn:hover { opacity: .85; color:#fff; }
.smy-btn--sky { background: #4a9fd4; }

/* ============================================================
   ③④ スケジュール表
   ============================================================ */
.smy-table-wrap { overflow-x: auto; }
.smy-schedule {
	width: 100%;
	border-collapse: collapse;
	margin: 0 auto;
	background: #fff;
}
.smy-schedule th,
.smy-schedule td {
	border: 1px solid #d9e2e8;
	padding: 12px 8px;
	text-align: center;
	vertical-align: middle;
	font-size: .95rem;
}
.smy-schedule tr.week th { background: #eaf3f8; font-weight: 700; }
.smy-schedule tbody th  { background: #f5f9fb; white-space: nowrap; }

/* 受賞バナー */
.smy-banner-row {
	display: flex;
	gap: 20px;
	margin: 30px 0 20px;
}
.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: 0 auto; }

/* ============================================================
   ⑤ 院内写真グリッド
   ============================================================ */
.smy-grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.smy-grid3__item { margin: 0; }
.smy-grid3__item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* ============================================================
   ⑥ 診療内容
   ============================================================ */
/* h3 / span.ttlh3 はCustomizer追加CSS(サイト共通のシアンバッジ)に委譲 */
.smy-shinryo h3 { margin-top: 32px; }
.smy-details {
	border: 1px solid #d9e2e8;
	border-radius: 4px;
	padding: 0 16px;
	margin: 16px 0;
	background: #f9fbfc;
}
.smy-details > summary {
	cursor: pointer;
	font-weight: 700;
	padding: 12px 0;
}
.smy-details[open] > summary { border-bottom: 1px solid #e3e3e3; }
.smy-details > p { padding: 12px 0; margin: 0; }

/* ============================================================
   ⑦ アクセス
   ============================================================ */
.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; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
	.smy-hero {
		aspect-ratio: 4 / 5; /* スマホでは縦長寄りにして、文言・ボタンの余白確保と画像の見切れを軽減 */
		max-height: 70vh;
	}
	.smy-hero__inner { padding: 30px 6%; }
	.smy-hero__msg { font-size: 1rem; line-height: 1.8; }
	.smy-news-fb { flex-direction: column; }
	.smy-fb { max-width: 100%; }
	.smy-banner-row { flex-direction: column; }
	.smy-grid3 { grid-template-columns: 1fr; }
	.smy-access { flex-direction: column; }
}
