/*
Theme Name: ofzo01 Child
Theme URI: https://www.bossraku.com/sample-theme
Template: ofzo01
Author: おのだ歯科医院
Description: ofzo01 の子テーマ(カスタマイズ用)
Version: 1.0.0
*/

/* ここに追加CSSを書くこともできますが、
   通常運用では「外観 → カスタマイズ → 追加CSS」側に
   CSSを書く方針のため、このファイルは基本空のままでOKです。 */

/* TW_20260911_横2列縦並びバナー*/
/* https://claude.ai/chat/7ce0e264-d8c8-4837-a2e2-67f53d1016e9*/

.photo-banner-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 900px;
	margin: 30px auto;
}
.photo-banner-item {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.photo-banner-image {
	width: 100%;
	aspect-ratio: 8 / 3;
	overflow: hidden;
}
.photo-banner-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.photo-banner-body {
	padding: 18px 20px 22px;
}
.photo-banner-title {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.photo-banner-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: #2A9D8F;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: bold;
	margin-right: 10px;
	flex-shrink: 0;
}
.photo-banner-heading {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	line-height: 1.4;
}
.photo-banner-text {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin: 0;
}

@media (max-width: 640px) {
	.photo-banner-list {
		grid-template-columns: 1fr;
	}
}

/* ===== アイコン付きテキストバナー ===== */
.icon-banner-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.icon-banner-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.icon-banner-icon {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
}
.icon-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.icon-banner-body {
    flex: 1 1 auto;
}
.icon-banner-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.icon-banner-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #90C422;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-banner-heading {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}
.icon-banner-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* スマホでも同じ縦並び。文字サイズ・余白だけ調整 */
@media (max-width: 600px) {
    .icon-banner-item {
        padding: 16px;
        gap: 14px;
    }
    .icon-banner-icon {
        width: 64px;
        height: 64px;
    }
    .icon-banner-heading {
        font-size: 15px;
    }
    .icon-banner-text {
        font-size: 13px;
    }
}

/*お悩みから探す：画像ホバー*/
.photo-banner-item {
	display: block; /* aタグをブロック要素として扱う */
	color: inherit;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	transition: box-shadow 0.3s ease;
}
.photo-banner-item:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.photo-banner-image {
	position: relative; /* オーバーレイの基準位置 */
	width: 100%;
	aspect-ratio: 8 / 3;
	overflow: hidden;
}
.photo-banner-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease; /* ズームアニメーション */
}
.photo-banner-item:hover .photo-banner-image img {
	transform: scale(1.08); /* ホバー時に少し拡大 */
}

/* ホバー時に浮かび上がるオーバーレイ */
.photo-banner-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.photo-banner-item:hover .photo-banner-overlay {
	opacity: 1;
}

.photo-banner-btn {
	display: inline-flex;
	align-items: center;
	background-color: #fff;
	color: #2A9D8F;
	font-size: 15px;
	font-weight: bold;
	padding: 10px 20px;
	border-radius: 30px;
	transform: translateY(10px);
	transition: transform 0.3s ease;
}
.photo-banner-item:hover .photo-banner-btn {
	transform: translateY(0);
}
.photo-banner-btn::after {
	content: "›";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background-color: #2A9D8F;
	color: #fff;
	border-radius: 50%;
	margin-left: 8px;
	font-weight: bold;
}

/* PRブロックのままカード全体を縦のflexboxに*/
/* ① ボタン位置を下端に揃える(これは変更なし) */
.prblock {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.prblock__data {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.prblock__data p {
    flex: 1;
}
.prblock__data .txtC {
    margin-top: auto;
}

/* ② 画像ホバー時のオーバーレイ表示(修正版) */

/* aタグへの position:relative は削除。overflow:hiddenだけ付けてズーム時のはみ出しをクリップ */
.prblock figure a {
    display: block;
    overflow: hidden;
}

/* 画像の拡大アニメーション(height:autoは付けない = 元のabsolute配置のまま) */
.prblock figure img {
    transition: transform 0.4s ease;
}
.prblock figure:hover img {
    transform: scale(1.08);
}

/* オーバーレイは、元々position:relativeが設定済みの figure 自体に付ける */
.prblock figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none; /* クリックを下の画像・リンクへ通す */
}
.prblock figure:hover::before {
    opacity: 1;
}

/* 「詳しくはこちら」ボタン */
.prblock figure::after {
    content: "詳しくはこちら ›";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px);
    background-color: #fff;
    color: #16345c;
    font-size: 15px;
    font-weight: bold;
    padding: 10px 22px;
    border-radius: 30px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    pointer-events: none;
}
.prblock figure:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

#prblock-4 .txtC,
#prblock-5 .txtC {
    display: none;
}

#prblock-4 .prblock__title,
#prblock-5 .prblock__title {
    text-align: center;
}

/*PCでは3列、スマホでは1列に切り替わるフォトバナー*/
.photo-banner-list-plain4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 30px auto;
}
.photo-banner-list-plain4 .photo-banner-item {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	transition: box-shadow 0.3s ease;
}
.photo-banner-list-plain4 .photo-banner-item:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.photo-banner-list-plain4 .photo-banner-image {
	position: relative;
	width: 100%;
	aspect-ratio: 8 / 3;
	overflow: hidden;
}
.photo-banner-list-plain4 .photo-banner-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.photo-banner-list-plain4 .photo-banner-item:hover .photo-banner-image img {
	transform: scale(1.08);
}
.photo-banner-list-plain4 .photo-banner-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.photo-banner-list-plain4 .photo-banner-item:hover .photo-banner-overlay {
	opacity: 1;
}
.photo-banner-list-plain4 .photo-banner-btn {
	display: inline-flex;
	align-items: center;
	background-color: #fff;
	color: #2A9D8F;
	font-size: 14px;
	font-weight: bold;
	padding: 8px 18px;
	border-radius: 30px;
	transform: translateY(10px);
	transition: transform 0.3s ease;
}
.photo-banner-list-plain4 .photo-banner-item:hover .photo-banner-btn {
	transform: translateY(0);
}
.photo-banner-list-plain4 .photo-banner-btn::after {
	content: "›";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background-color: #2A9D8F;
	color: #fff;
	border-radius: 50%;
	margin-left: 8px;
	font-weight: bold;
}

/* タイトル:番号なし、中央揃え、背景に色付きバー */
.photo-banner-list-plain4 .photo-banner-heading {
	display: block;
	background-color: #2A9D8F;
	color: #fff;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.4;
	padding: 10px 12px;
}

.photo-banner-list-plain4 .photo-banner-body {
	padding: 0 0 18px;
}
.photo-banner-list-plain4 .photo-banner-text {
	font-size: 13px;
	line-height: 1.6;
	color: #555;
	margin: 0;
	padding: 12px 16px 0;
}

/* タブレット幅では2列 */
@media (max-width: 900px) and (min-width: 641px) {
	.photo-banner-list-plain4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* スマホでは1列(横長タイルが縦に並ぶ) */
@media (max-width: 640px) {
	.photo-banner-list-plain4 {
		grid-template-columns: 1fr;
	}
}

.feature-box {
    position: relative;
    border: 2px solid #2A9D8F;
    border-radius: 16px;
    max-width: 900px;
    margin: 40px auto 20px;
    padding: 40px 30px 25px;
}
.feature-box__title {
    position: absolute;
    top: -28px;
    left: 20px;
    display: flex;
    align-items: center;
    background-color: #2A9D8F;
    color: #fff;
    border-radius: 30px;
    padding: 6px 24px 6px 6px;
    font-size: 18px;
    font-weight: bold;
}
.feature-box__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #fff;
    color: #2A9D8F;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}
.feature-box__text-title {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.feature-box__text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}
.feature-box__link {
    color: #2A9D8F;
    font-weight: bold;
    text-decoration: underline;
}
.feature-box__link:hover {
    text-decoration: none;
}