@media (max-width: 768px){
}




/* ================================================================
X-Guide
================================================================== */
.xguide .subttl{
	background-image: url(../img/xguide/xguide_subttl.jpg);
}

.xguide .xguide_evidence .bgw{
	margin-top: 1rem;
	padding: clamp(1rem, 2.67vw, 2rem);
	background-color: rgba(var(--bg-gry-rgb-200), 0.2);
}

.xguide .xguide_evidence .bgw h4{
	padding-top: 0;
}
.xguide .xguide_evidence .bgw li{
	margin: 0.4rem 0 0.4rem 2rem;
}



/* ================================================================
失敗しないオールオン４
================================================================== */
.no_failure .subttl{
	background-image: url(../img/no_failure_ttl.jpg);
}


.no_failure .bgw{
	padding: clamp(1rem, 2.67vw, 2rem);
}
.no_failure .bgw + .bgw{
	margin-top: 1rem;
}

.no_failure .bgw h3{
	padding: 0 0 1rem 0 ;
}



/* ================================================================
リスクと副作用
================================================================== */
#temp_risk_sideeffect{
	margin: clamp(1rem, 2.67vw, 2rem) auto;
	padding: clamp(1rem, 2.67vw, 2rem);
	background-color: rgba(var(--bg-gry-rgb-200),0.3);
	max-width: 1000px;
}
#temp_risk_sideeffect em{
	font-size: 1.2em;
}

/* ================================================================
モニター患者様
================================================================== */
.monitor .subttl{
	background-image: url(../img/monitor_ttl.jpg);
}
.contact.mpf .serviceselect{
	display: flex;
}
.contact.mpf .serviceselect label{
	width: auto;
}
.contact.mpf .mwform-radio-field + .mwform-radio-field{
	margin-left: 2rem;
}
.monitor #case_list{
	padding-top: 3rem;
}
input.form_tel {
    max-width: calc(100% / 3 - 2em);
}
/* 
.custom-select {
    position: relative;
    width: 200px;
    height: 50px; /* ←好きなサイズにできる 
    background: #eee;
    border-radius: 8px;
    padding: 10px;
}

.custom-select select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* ←iPhoneの制限回避のキモ 
} */


/* ================================================================
モニター患者様
================================================================== */
.monitor .subttl{
	background-image: url(../img/monitor_ttl.jpg);
}

/* youtube */
.monitor .monitor_youtube{
	width: 350px;
    max-width: 100%;
}


.monitor .clm4{
	gap:1rem;
}

/* ================================================================
インプラント
================================================================== */
.implant .subttl{
	background-image: url(../img/implant/implant_ttl.jpg);
}

/* ご相談は無料です */
.implant .clm2{
	grid-template-areas:"a b";
}
.implant .item1 { grid-area: a; }
.implant .item2 { grid-area: b; }

/* 症例 */
.implant .imp_case > div{
	padding: 1rem;
	background-color: #fff;
	border-radius: 5px;

}
.implant .imp_case h3{
	font-size:1.2rem;
	text-align: center;
}


.implant .clm2 h2{
	padding-top: 0;
	text-align: left;
	font-size: clamp(1.7rem, 1rem + 1.87vw, 2.4rem);
}
.implant .clm2 h2 span{
	color: var(--color-primary);
}
.implant .consultation{
	position: relative;
}
.implant .consultation .drname{
	padding: clamp(0.5rem, 2.67vw, 1rem);
	background-color: rgba(255,255,255,0.9);
	position: absolute;
	bottom:2rem;
	right: -1rem;
}
@media (max-width: 768px){
	.implant .clm2{
		grid-template-areas:"b" "a";
	}
	.implant .consultation .drname{
		bottom:0;	
	}
}


/* インプラント治療の正しい知識 */
.imp_knowledge h3{
	text-align: center;
	padding: 0;
}
.imp_knowledge > p{
	margin-bottom: clamp(1rem, 2.67vw, 2rem);
}
.imp_knowledge b{
	color: var(--color-primary);
	font-size:1.2rem;
}
.implant .imp_knowledge .clm2_14{
	padding: clamp(1rem, 2.67vw, 2rem);
	border-radius: 5px;
	background-color: #fff;
}
.implant .imp_knowledge .clm2_14 + .clm2_14 {
	margin-top: 1rem;
}
.implant .imp_knowledge .clm2_14 > h3{
	grid-column: 1 / -1; /* span both columns */
}

/* 安心のインプラント治療の5つのポイント */
.implant .imp_point_wrappter h3{
	padding-top: 0;
	text-align: center;
	font-size: 1.3rem;

}
.implant .imp_point_wrappter h3 span{
	display: block;
	text-align: center;
	font-size: 0.8em;
	color: var(--color-primary);
}
.implant .imp_point_wrappter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 20px;
}
.implant .imp_point {
	padding: 1rem;
  box-sizing: border-box;
  border-radius: 5px;
  flex: 0 1 calc(33.333% - 20px);
  max-width: 360px;
  background-color: rgba(var(--bg-gry-rgb-200), 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.implant .imp_point .linkbtn{
	display: inline-flex;
}
.implant .imp_point p:last-of-type{
	margin-top: auto;
	display: flex;
	justify-content: center;
}
@media (max-width: 1024px) {
  .implant .imp_point {
    flex: 0 1 calc(50% - 20px);    /* 2列 */
    max-width: none;
  }
}
/* スマホ：1カラム */
@media (max-width: 600px) {
  .implant .imp_point {
    flex: 0 1 100%;                /* 1列 */
  }
}



/* 費用 */
.implant .price{
	font-size:clamp(1.25rem, 0.938rem + 0.83vw, 1.563rem);
}

/* ================================================================
メール相談
================================================================== */
.contact .subttl{
	background-image: url(../img/contact_ttl.jpg);
}
.contact .form_wrappter{
	margin: auto;
	max-width: 800px;
}
.contact .container.bgw{
	padding: clamp(1rem, 2.67vw, 2rem);
}

.contact th{
	width: 12em;
}

.contact input,
.contact textarea,
.contact select{
		border-radius: 5px;
}

.contact label{
	display: flex;
	align-items: center;
	width: 5rem;
}
.contact .sex{
	display: flex;
	align-items: center;
}
.contact .age{
	display: flex;
	align-items: center;
}
.contact .age input{
	width: 5rem;
	margin-right:0.5rem ;
}
.contact select{
    padding: 0.5rem;
    margin-bottom: 1rem;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	font-size: 1rem;
	background-color: var(--bg-brg-100);
	border: none;
}
.contact .error + br{
	display: none;
}
.select{
	position: relative;
	width: 300px;/*親要素の横幅*/
}
.select::before{
	position: absolute;
	top: 15px;/*矢印の上からの位置*/
	right: 20px;/*矢印の右からの位置*/
	content: '';
	width: 10px;/*矢印の横幅*/
	height: 10px;/*矢印の縦幅*/
	border-top: 2px solid var(--color-primary);
	border-left: 2px solid var(--color-primary);
	transform: rotate(-135deg);/*矢印を回転*/
	pointer-events: none;/*矢印部分をクリックできるようにする*/
}
.select:focus{
	outline: none;
	box-shadow: 0 0 3px var(--color-primary); 
}

.mw_wp_form_preview .hide-on-preview {
  display: none;
}





/* ================================================================
審美治療 – ホワイトニング
================================================================== */
.whitening .subttl{
	background-image: url(../img/whitening/whitening_ttl.jpg);
}

.whitening h3{
	margin-top: clamp(1rem, 2.67vw, 2rem);
}
.whitening b{
	font-size: 1.2rem;
}

.whitening tr:first-child th{
	text-align: center;
}

.whitening th{
	min-width: 12em;
}
.whitening th,
.whitening td{
	padding : 0.5em 1em;
}
.whitening td{
	padding : 0.5em 1em;
	border-left: 1px solid var(--border);
}
.whitening .whiteningprice td{
	text-align: right;
}

@media (max-width: 768px){
	.whitening tr:first-child th{
		display: none;
	}
	.whitening tr:first-child th{
		border-top: 1px solid var(--text-color);
	}

		.whitening td:nth-child(2){
		border-bottom:1px solid #e0e0e0
	}
	
	.whitening td:nth-child(2),
	.whitening td:nth-child(3){
		/* display: flex;
		text-align: center;*/
		border-top:none; 
		border-left: none;
		text-align: center;

	}

	.whitening td:nth-child(2):before,
	.whitening td:nth-child(3):before{
        width: 100%;
		display: block;
        text-align: center;
        color: var(--color-primary);
        padding-right: 5%;
	}
	.whitening td:nth-child(2):before{
		content:"オフィスホワイトニング";
	}
	.whitening td:nth-child(3):before{
		content:"ホームホワイトニング";
	}


	.whitening .whiteningprice td:nth-child(2):before{
		content:"Opalessence(オパールエッセンス)";
	    white-space: pre-wrap;
	}
	.whitening .whiteningprice td:nth-child(3):before{
		content:"Tion(ティオン)";
	    white-space: pre-wrap;
	}


}


/* ================================================================
歯周病・予防治療
================================================================== */
.treatmentsubject .subttl{
	background-image: url(../img/treatmentsubject/treatmentsubject_ttl.jpg);
}





/* ================================================================
チーム紹介
================================================================== */
.team .subttl{
	background-image: url(../img/team/team_ttl.jpg);
}
.team h2:has( + p){
	padding-bottom:0;
}
.team h2  + p{
	text-align: center;
	padding-bottom: clamp(1rem, 2.67vw, 2rem);
}


.team .drwrapper{
	padding: clamp(1rem, 2.67vw, 2rem);
	background-color: #fff;
	border-radius: 5px;
}
.team .drwrapper + .drwrapper{
	margin-top: 1rem;
}

.team .drwrapper > div + div,
.team .drwrapper > div + table{
	margin-top:  clamp(1rem, 2.67vw, 2rem);
}

.team h4{
	margin-bottom: 1rem;
	text-align: center;
}

.team .dhwrapper img,
.team .dawrapper img{
	max-width: 300px;
}
.team .dhwrapper,
.team .dhwrapper p,
.team .dawrapper{
	text-align: center;
}
.team .dhwrapper table{
	margin-top: 1rem;	
}


.team .photo{
	width: 200px;
	height: 200px;
	margin: auto;
}
.team #dh .dhwrapper.bgw,
.team #da .dhwrapper.bgw{
	padding: 1rem;
}
.team #dh .dhwrapper h3,
.team #da .dhwrapper h3{
	text-align: center;
	padding: 0;
	font-size: 1.2rem;
}
.team #dh .dhwrapper h3 span{
	font-size: 1rem;
	text-align: center;
	display: block;
}
.team #dh .dhwrapper img,
.team #da .dhwrapper img{
	max-width: 250px;
}
.team #dh .dhwrapper th{
	min-width: 7em;
}
.team li{
	margin-top: 0em;
	margin-bottom: 0.5em;
}

@media (max-width: 768px){
	.team h2  + p{
		text-align: left;
	}
}



/* ================================================================
予防治療
================================================================== */
.prevention .subttl{
	background-image: url(../img/periodontal-disease-treatment/periodontal-disease-treatment_ttl.jpg);
}

.prevention .clm3 > div,
.prevention .ems .clm2{
	padding: clamp(1rem, 2.67vw, 2rem);
	background-color: #fff;
	border-radius: 5px;
}

.prevention .clm3 h3{
	text-align: center;
}
.prevention .clm3 h3 + p{
	text-align: center;
}
.prevention .clm3 img{
	max-width: 150px;
}

.prevention .kouka .clm2_21{
	margin-top: clamp(1rem, 2.67vw, 2rem);
}
.prevention .kouka .clm2_12 h3{
	padding: 0;
	text-align: center;
	grid-column: 1 / -1; /* 2カラム分をまたいで1列にする */
}
.prevention .osusume_img{
    overflow: hidden;
    border-radius: 1000px;
	width: 300px;
}
.prevention .kouka .clm2_12 ul{
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 3rem;
    background-color: var(--bg-gry-100);
    margin: 1rem 0;
}
.prevention .kouka .clm2_12 li{
	width: 100%;
	margin: 0.3rem 0 0.3rem 1rem;
}
@media (max-width: 768px){
	.prevention .kouka .clm2_12 ul{
		padding: 1rem;
	}
}

/* メリット・デメリット */
.prevention .merit h3,
.prevention .demerit h3{
	text-align: center;
}
.prevention .merit,
.prevention .demerit{
	padding: clamp(1rem, 2.67vw, 2rem);
}
.prevention .merit{
	background-color: var(--color-gold-100);
}
.prevention .demerit{
	border : 1px solid var(--border);
}
.prevention .merit *{
	color: #fff;
}
.prevention .merit li,
.prevention .demerit li{
	list-style-type :disc;
	margin-left: clamp(1rem, 2.67vw, 2rem);
}

/* 症例 */
.prevention .case table{
	margin-top: 1rem;
}
.prevention .case th{
	min-width: 12rem;
}

/* 流れ */
.prevention .flow img{
	width: 100px;
}
.prevention .kensa{
	margin-top: clamp(1rem, 2.67vw, 2rem);
	text-align: center;
}
@media (max-width: 768px){
	.prevention .kensa{
		text-align: left;
	}
}

/* 費用 */
.prevention .price{
	font-size:clamp(1.25rem, 0.938rem + 0.83vw, 1.563rem);
}





/* ================================================================
歯周病治療
================================================================== */
.treatment .subttl{
	background-image: url(../img/periodontal-disease-treatment/periodontal-disease-treatment_ttl.jpg);
}

.treatment .after{
	margin-top: 2rem;
	text-align: center;
	border-radius: 5px;
	padding: 1rem;
	background-color: var(--bg-brg-400);
}

@media (max-width: 768px){
	.treatment .after{
		text-align: left;
	}

}


/* ================================================================
一般矯正
================================================================== */
.ortho .subttl{
	background-image: url(../img/ortho/ortho_ttl.jpg);
}

.ortho .bgw{
	padding: clamp(1rem, 2.67vw, 2rem);
}

.ortho .bgw + div{
	margin-top: clamp(1rem, 2.67vw, 2rem);
}

.ortho .bgw h3{
	grid-column: 1 / -1; /* 2カラム分をまたいで1列にする */
	padding: 0;
	text-align: center;
}
.ortho .bgw h4{
	padding-top: 0;
}
.ortho .mouse{
	max-width: 350px;
}



/* ================================================================
医療提携 / 出張オペ相談フォーム
================================================================== */
.medical_partnership .subttl{
	background-image: url(../img/medical_partnership/medical_partnership_ttl.jpg);
}




/* ================================================================
メンテナンス
================================================================== */
.maintenance .subttl{
	background-image: url(../img/maintenance/maintenance_ttl.jpg);
}

.maintenance th{
	width: 50%;
}
.maintenance tr:first-child th{
	text-align: center;
}
.maintenance td{
	text-align: center;
}


@media (max-width: 768px){
	.maintenance tr:first-child th{
		display: none;
	}
}



/* ================================================================
医療従事者の方へ
================================================================== */
.jobselect .subttl{
	background-image: url(../img/jobselect_ttl.jpg);
}

.jobselect .clm2{
	margin-top: clamp(1rem, 2.67vw, 2rem);
	max-width: 800px;
}



/* ================================================================
インビザライン
================================================================== */
.invisalignpage .subttl{
	background-image: url(../img/invisalignpage/invisalignpage_ttl.jpg);
}
.invisalignpage h2 span{
	font-size: 1rem;
	display: block;
	text-align: center;
}

/* 目立たないマウスピース矯正　インビザライン */
.itero_img img{
	max-width: 150px;
}

/* インビザライン矯正の流れ */
@media (max-width: 768px){
	.invisalignpage .clm2_14 img{
		max-width: 200px;
	}
}

/* ワイヤー矯正との違い */
.invisalignpage .comparison th{
	min-width: 10em;
}
.invisalignpage .comparison td{
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	text-align: center;
	vertical-align: middle;
}
.invisalignpage .comparison h4{
	padding-top: 0;
	text-align: center;
}
.invisalignpage .comparison img{
	width: 98%;
}

@media (max-width: 768px){
	.invisalignpage .table_pc{
	display: none;
	}
	.invisalignpage .comparison tr:first-child td:nth-child(2),
	.invisalignpage .comparison tr:first-child td:nth-child(3){
		display: block;
	}
	.invisalignpage .comparison h4{
		display: none;
	}
	.invisalignpage .comparison td{
		text-align: left;
	}

	.invisalignpage .comparison  td:nth-child(2){
		border-bottom:1px solid #e0e0e0
	}
	.invisalignpage .comparison  td:nth-child(2),
	.invisalignpage .comparison  td:nth-child(3){
		display: flex;
		border-top:none;
	}

	.invisalignpage .comparison  td:nth-child(2):before,
	.invisalignpage .comparison  td:nth-child(3):before{
        width: 8rem;
        text-align: right;
        color: var(--color-primary);
        padding-right: 5%;
	}
	.invisalignpage .comparison  td:nth-child(2):before{
		content:"インビザライン";
	}
	.invisalignpage .comparison  td:nth-child(3):before{
		content:"ワイヤー矯正";
	}
}

/* 症例 */
.invisalignpage .case .clm2{
	max-width: 800px;
	gap: 0.5rem 1rem;
}
.invisalignpage .case h3{
	grid-column: span 2;
    padding: 0;
    text-align: center;
}
.invisalignpage .case .clm2 p{
	text-align: center;
}
.invisalignpage .case .clm2 p + p{
	margin-top: 0;
}

.invisalignpage .case .table_spt th{
	min-width: 7em;
}


@media (max-width: 768px){
	.invisalignpage .case .clm2{
		grid-template-columns: repeat(2, 1fr);
		gap: 0;
	}
}


/* ================================================================
痛みに配慮したインプラント
================================================================== */
.imp_painless .subttl{
	background-image: url(../img/implant/painless/painless_ttl.jpg);
}

.imp_painless h2 + p{

}


.imp_painless .dr{
	margin-top: 1rem;
}




/* ================================================================
インプラント保証
================================================================== */
.guarantee .subttl{
	background-image: url(../img/implant/guarantee/guarantee_ttl.jpg);
}






/* ================================================================
安心のための取組み
================================================================== */
.relief .subttl{
	background-image: url(../img/implant/relief/relief_ttl.jpg);
}

.relief .clm2_12{
	margin-bottom: 1rem;
	padding: clamp(1rem, 2.67vw, 2rem);
	background-color: #fff;
}

.relief .clm2_12 h3{
	padding: 0;
	text-align: center;
	grid-column: 1 / -1; /* 2カラム分をまたいで1列にする */
}
.relief .clm2_12 h4{
	padding-top: 0;
}

.relief .clm2_12 h3 span{
	font-size: 1rem;
	display: block;
	text-align: center;
	color: var(--color-primary);
}


/* ================================================================
高性能な医療設備と高度な滅菌体制
================================================================== */
.imp_sterilization .subttl{
	background-image: url(../img/implant/sterilization/sterilization_ttl.jpg);
}
.imp_sterilization h2{
	padding-bottom: 0;
}
.imp_sterilization h2 + p{
	text-align: center;
	margin-bottom: clamp(1rem, 2.67vw, 2rem);
}

.imp_sterilization P + div{
	margin-top: 1rem;
}





.imp_sterilization h3{
	padding-bottom: 0.5em;
}
/* ================================================================
美しい補綴物の仕上がり
================================================================== */
.imp_labo .subttl{
	background-image: url(../img/implant/labo/labo_ttl.jpg);
}

.imp_labo .gikou{
	margin-top: 1rem;
}
.imp_labo .gikou h4{
	padding-top: 0;
}

.imp_labo .gikou .clm2{
	margin-top: 1rem;
}





/* ================================================================
難しい症例に挑戦する歯科医師のプライド
================================================================== */
.imp_pride .subttl{
	background-image: url(../img/implant/pride/pride_ttl.jpg);
}
.imp_pride h3{
	text-align: center;
}
.imp_pride .clm2 h3{
	grid-column: 1 / -1; /* 2カラム分をまたいで1列にする */
	padding: 0≈;
}


/* ================================================================
長期に渡って予後を見守る
================================================================== */
.imp_trace .subttl{
	background-image: url(../img/implant/trace/trace_ttl.jpg);
}



/* ================================================================
激安インプラントは大丈夫？
================================================================== */
.imp_price .subttl{
	background-image: url(../img/implant/price/price_ttl.jpg);
}

.imp_price .approach{
	margin: 1rem 0 ;
	padding: 1rem;
	border-radius: 5px;
	background-color: #fff;
}

.imp_price .approach h4{
	padding-top: 0%;
	padding-bottom: 0%;
	color: var(--color-primary);
}
.imp_price .approach ol{
	margin: 0.5rem 0 ;
}
.imp_price .approach li{
	margin-left: 3rem;
	list-style-type: decimal-leading-zero;
}




/* ================================================================
正確な診査・診断とガイデッドサージェリー
================================================================== */
.imp_planning .subttl{
	background-image: url(../img/implant/imp_planning/imp_planning_ttl.jpg);
}

.imp_planning ul.flow{
	margin-top: clamp(1rem, 2.67vw, 2rem);
}


.imp_planning h3,
.imp_planning h4{
	padding-top: 0;
}
.imp_planning h3,
.imp_planning h4{
	text-align: center;
	padding-bottom: 0;
	grid-column: 1 / -1; /* 2カラム分をまたいで1列にする */
}
.imp_planning ul.flow div h3 span{
	margin-bottom: 0;
	font-size: 0.8em;
	text-align: center;
}
.imp_planning .caption01,
.imp_planning .caption02{
	position: relative;
}

.imp_planning .caption01:before,
.imp_planning .caption02:before{
	content:"画像1";
	padding: clamp(0.188rem, 0.063rem + 0.33vw, 0.313rem);
	position: absolute;
	bottom: 0;
	right: 0;
	width: 5em;
	line-height: 1.2rem;
	background-color:var(--color-primary);
	z-index: 99999;
	text-align: center;
	border-radius: 10px;
	color:#fff;
}
.imp_planning .caption02:before{
	content:"画像2";
}


/* ================================================================
インプラントをどれだけ美しく仕上げられるか
================================================================== */
.esthe .subttl{
	background-image: url(../img/implant/esthe/esthe_ttl.jpg);
}






/* ================================================================
インプラントをどれだけ美しく仕上げられるか
================================================================== */
.esthe .subttl{
	background-image: url(../img/implant/esthe/esthe_ttl.jpg);
}

.esthe .esthe_case h2 + p{
	text-align: center;
	margin-top: -2rem;
}

.esthe .esthe_case h4{
	text-align: center;
}


@media (max-width: 768px){
	.esthe .esthe_case .clm2{
		margin-top: 1rem;
	}
	.esthe .esthe_case h4{
		padding: 0;
	}
}



/* ================================================================
インプラントの選び方
================================================================== */
.knowledge .subttl{
	background-image: url(../img/implant/knowledge/knowledge_ttl.jpg);
}

.knowledge .bgw{
	margin: 1rem 0;
	padding: clamp(1rem, 2.67vw, 2rem)
}
.knowledge .bgw h3{
	padding : 0 0 clamp(1rem, 2.67vw, 2rem) 0;
	text-align: center;
}
.knowledge .bgw h3 span{
	display: block;
	text-align: center;
	font-size: 0.8em;
	color: var(--color-primary);
}

.knowledge .bgw h4{
	padding : 0;
	padding-bottom: 1rem;
}


/* ================================================================
セラミック治療
================================================================== */
.esthetics .subttl{
	background-image: url(../img/esthetics_ttl.jpg);
}

/* 審美治療のご案内 */
.esthetics .esthetics_guide p{
	text-align: center;
}

/* セラミック治療はこんな方に最適な治療です */
.esthetics .recommendation{
	margin: 2rem  auto;
	padding: 2rem;
	background-color: #fff;
	border-radius: 5px;
	max-width: 1000px;
}
.esthetics .recommendation h3{
	margin: auto;
	padding: 0;;
	text-align: center;
	grid-column: span 2;
}

@media (max-width: 768px){
	.esthetics .recommendation{
		padding: 1rem;
	}
	.esthetics .recommendation h3 {
		grid-column: 1 / -1; /* 1カラムの幅だけにする */
	}
	.esthetics .esthetics_guide p{
		text-align: left;
	}
}


/* 治療に用いる補綴物 */
.esthetics .hotetsu h3{
	text-align: center;
}
.esthetics .hotetsu .clm3 div{
	margin-top: 0rem;
	display: grid;
	background-color: rgba(var(--bg-gry-rgb-200), 0.8);
}
.esthetics .hotetsu img{
    align-self: end;
	margin-top:1rem;
}
.esthetics .hotetsu .hotetsu_h2{
	padding-bottom: 1rem;
}
.esthetics .hotetsu .clm3 + p{
	margin-top: 1rem;
}



/* 治療例 */

/* カード全体 */
.esthetics .esthetics_case_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.esthetics .esthetics_case_card {
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    width: calc(50% - 20px);  /* ← 明示的に 1/2 サイズを確定 */
    flex: none;      
}

.esthetics .esthetics_case_card h3 {
    text-align: center;
    padding: 0;
}

.esthetics .esthetics_case_card p {
    margin: 0 0 1rem;
 	aspect-ratio: 548 / 474;
}

.esthetics .esthetics_case_card th {
    width: 8rem;
}


@media (max-width: 768px){
	.esthetics .esthetics_case_card {
		width: 100%;
	}
	.esthetics .esthetics_case_card p {
		aspect-ratio: auto
	}
}


/* 価格 */
.esthetics .esthetics_price h3{
	padding-bottom: 0.5rem;
	text-align: center;
}
.esthetics .esthetics_price th,
.esthetics .esthetics_price td{
	text-align: center;
	width: 25%;
}
.esthetics .esthetics_price td:first-child{
	background-color: var(--bg-brg-400);;
}



@media (max-width: 768px){
	.esthetics .esthetics_price th{
		display: none;
	}
	.esthetics .esthetics_price td:nth-child(2),
	.esthetics .esthetics_price td:nth-child(3){
		border-bottom:1px solid #e0e0e0
	}
	.esthetics .esthetics_price td:nth-child(2),
	.esthetics .esthetics_price td:nth-child(3),
	.esthetics .esthetics_price td:nth-child(4){
		display: flex;
		text-align: center;
		border-top:none;

	}

	.esthetics .esthetics_price td:nth-child(2):before,
	.esthetics .esthetics_price td:nth-child(3):before,
	.esthetics .esthetics_price td:nth-child(4):before{
        width: 40%;
        text-align: right;
        color: var(--color-primary);
        padding-right: 5%;
	}
	.esthetics .esthetics_price td:nth-child(2):before{
		content:"審美性";
	}
	.esthetics .esthetics_price td:nth-child(3):before{
		content:"耐久性";
	}
	.esthetics .esthetics_price td:nth-child(4):before{
		content:"価格";
	}

}

/* リスク */

.esthetics .esthetics_risk  th{
	width: 14rem;
}
.esthetics .esthetics_risk table + table{
	margin-top: 2rem;
}
.esthetics .esthetics_risk  td{
	padding: 0.8em 1em;
}

/* ================================================================
問診票ダウンロード
================================================================== */
.document .subttl{
	background-image: url(../img/document_ttl.jpg);
}

.document li{
	position: relative;
    margin: 0.8rem 2rem;
}
.document li::before{
	content:"";
	position: absolute;
	background-image: url(../img/icon_pdf.gif);
	background-size: cover;
	background-position: center;
	width: 16px;
	height: 16px;
	top: 6px;
	left:-22px;

}



/* ================================================================
法人紹介
================================================================== */
.corporation .subttl{
	background-image: url(../img/corporation/corporation_ttl.jpg);
}

/* 医療法人ODCとは */
.corporation .aboutodc{
	background-image: url(../img/corporation/aboutus_bg_company.png);
	background-position: right;
	background-repeat: no-repeat;
	border-radius: 5px;
	padding: 1rem;
	position: relative;
	z-index: 1;	
	background-size: cover;
}
.corporation .aboutodc:after{
	content: "";
	position: absolute;
	z-index: 2;
	width: 100%;
	height:100%;
	top: 0;
	left: 0;
	background-color: white;
	opacity: 0.6;
	border-radius: 5px;
}
.corporation .aboutodc div{
	position: relative;
	z-index: 3;
	color:var(--text-color);
}
.corporation .aboutodc .odc{
	font-size: 1.2em;
}
.corporation .aboutodc b{
	font-size:1.5em;
	color: var(--color-primary);
}

/* 大切にしていること */
.corporation .card_bgw h5{
	padding-top: 0;
}
.corporation .card_bgw{
	background-color: rgba(var(--bg-gry-rgb-200), 0.4);
	 mix-blend-mode: multiply;
}

.corporation #corporate_profile table{
	margin-top: 1rem;
}
.corporation #corporate_profile table h5{
	padding: 0;


}

/* 理事長紹介 */
.corporation #chairman ul{
	margin: 1em 1.5rem;
}
.corporation #chairman ul li{
	list-style-type: disc;
}
.corporation #chairman table{
	margin: 1rem auto;
}
.corporation .seminar{
	display: flex;
	flex-wrap: wrap;
}
.corporation .seminar li{
	width: 18em;
}

/* 論文 */
.corporation .publication .clm2.book{
	width: 350px;
	max-width:100%;
}
.corporation .publication .clm2.clm16{
	grid-template-columns: 1fr 6fr; 
	margin-bottom: 1rem;
}
.corporation .publication h4{
	padding-top:0;
	padding-bottom:0;
	text-align: left;
}

@media (max-width: 768px){
	.corporation .publication .clm2.book{
		grid-template-columns: 1fr 1fr; 
	}
	.corporation .publication .clm2.clm16{
		margin-top: 1rem;
		grid-template-columns: 1fr;
		gap: 0; 
	}
	.corporation .publication .clm2.clm16 div:first-child{
		text-align: center;
	}

	.corporation .publication .clm2.clm16 img{
		width: 200px;
	}

}

/* ================================================================
ザイゴマインプラント
================================================================== */
.zygoma .subttl{
	background-image: url(../img/allon4/zygoma_ttl.jpg);
}

.imgunder_text span{
	color: rgb(203, 4, 4);
}


.zygoma .clm2,
.zygoma .clm3{
	margin : 1rem 0;
}

.zygoma .about .clm2 div{
	padding: 1em;
	background-color: #fff;
	border-radius: 5px;
}

.zygoma .about .clm2 div p{
	text-align: center;
}

.zygoma .clm2.comment{
	margin : 1em 0;
	padding: 1em;
	background-color: #fff;
	border-radius: 5px;
	grid-template-columns: 3fr 1fr; 

}
.zygoma .clm2.comment .drname,
.zygoma .clm2.comment .drname span{
	text-align: right;
}

/* 治療方法 */
.zygoma .card_bgw h3{
	padding-top: 0;
	text-align: center;
}
.zygoma .card_bgw h3 span{
	display: block;
	text-align: center;
	font-size: 0.8em;
	color: var(--color-primary);
}
.zygoma .card_bgw p:has(img) {
	text-align: center;
}
.zygoma .card_bgw img{
	max-width: 700px;
}

.zygoma .method h4{
	padding-top : 1rem;
}

/* ザイゴマインプラントができない方 */
.zygoma .zygoma-eligibility li{
	margin-left: 2rem;
}



@media (max-width: 768px){
	.zygoma .clm2.comment{
		grid-template-columns: 1fr; 
	}
}





/* ================================================================
痛みに配慮したインプラント治療
================================================================== */
.painless .subttl{
	background-image: url(../img/allon4/painless_ttl.jpg);
}

.painless table h4{
	padding: 0;

}
.painless .painless_flow .clm2{
	grid-template-columns: 1fr 2fr; 
}
.painless .flow .clm2 > div{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
/* .clm2_12 h3{
	padding: 0;
}
.clm2_12 > h3{
	grid-column: 1 / -1; /* span both columns *
}

.clm2_12 .clm2 > div:first-child{
	justify-content: center;
} */
table.painless_cases {
	margin-top: 2rem;
}
.painless_cases th {
	width: 8em;
}
.clm2_12 ul {
	display: flex;
	flex-wrap: wrap;
}
.clm2_12 li{
	width: 10em;
}

.painless .risk{
	margin-top: 1rem;

}

@media (max-width: 768px){
	.painless .painless_flow .clm2,
	.clm2_12 {
		grid-template-columns: 1fr; 
	}
}





/* ================================================================
labo
================================================================== */
.labo .subttl{
	background-image: url(../img/allon4/labo_ttl.jpg);
}

.labo .card_bgw h3:first-child {
	padding-top: 0;
}

.labo .card_bgw h3 {
	text-align: center;
    padding: 2em 0 0em;
}
.labo .frame{
	margin-top: 1rem;
}
.labo .card_bgw{
	background-color: rgba(var(--bg-gry-rgb-200), 0.7);
}

.labo .clm3 div{
	text-align: center;
}
.labo table.table{
	width: 100%;
	max-width: 100%;
}
.labo table.table th{
	width: 13em;
}
.labo .frame td:first-of-type{
	width: calc(300px + 1rem);
}
.labo table img{
	max-width: 300px;
}
@media (max-width: 768px){
	.labo table.table th{
		width: 100%;
	}
	.labo td:first-of-type{
		width: 100%;
	}
	.labo .frame table.table td:nth-child(2){
		border-bottom:none;
	}
}

/* ================================================================
after_follow
================================================================== */
.after_follow .subttl{
	background-image: url(../img/allon4/reason_ttl.jpg);
}

.after_follow h3{
    padding: 2em 0 0.5em;
}

.after_follow h2+h3{
    padding-top: 0;
}


/* ================================================================
reason
================================================================== */
.reason .subttl{
	background-image: url(../img/allon4/reason_ttl.jpg);
}

.reason .clm2{
	padding: 2rem;
	background-color: #fff;
	border-radius: 5px;
}
.reason h3{
	text-align: center;
}
.reason h4{
	padding : 0;
	grid-column: 1 / span 2;
}

@media (max-width: 768px){
	.reason .clm2{
		padding: 1rem;
	}
}

/* ================================================================
Non gum type
================================================================== */
.nongum .subttl{
	background-image: url(../img/allon4/nongum_ttl.jpg);
}


/* ================================================================
オールオン4手術日の流れ
================================================================== */
.treatment_day .subttl{
	background-image: url(../img/allon4/treatment_day_ttl.jpg);
}
.treatment_day h2 span{
	display: block;
	font-size: 0.7em;
	text-align: center;
}
.treatment_day .flow h3{
    padding-top: 0;
	padding-bottom: 0;
}
.treatment_day .time{
	color: var(--color-primary);
}
.treatment_day .clm2{
	grid-template-columns: 1fr 2fr; 
}
.treatment_day .clm2 > p,
.treatment_day .clm2 > div{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}


.treatment_day .instructions h3{
	background-color: var(--bg-brg-400);
	padding: 0.5rem 1rem;
	margin: 2rem 0 0;
	border-radius: 5px;
}

@media (max-width: 768px){
	.treatment_day .clm2{
		grid-template-columns: 1fr; 
	}
}



/* ================================================================
術前治療
================================================================== */
.preoperative_treatment .subttl{
	background-image: url(../img/allon4/preoperative_treatment_ttl.jpg);
}

.preoperative_treatment h3{
	padding-bottom :1rem;
}

.preoperative_treatment .card_bgw h3{
	padding: 0;
}

/* ================================================================
診査・診断
================================================================== */
.planning .subttl{
	background-image: url(../img/allon4/planning_ttl.jpg);
}
.planning h2 span{
	display: block;
	font-size: 1rem;
	text-align: center;
}
.planning h3{
	padding-bottom :1rem;
}



/* ================================================================
無料カウンセリング診査診断
================================================================== */
.consultation .subttl{
	background-image: url(../img/allon4/consultation_ttl.jpg);
}
.consultation h3{
	text-align: center;
}

.consultation .container > div.free_link{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	background-color: transparent;
}
.consultation .free_link p{
	width: 350px;
}
.consultation .free_link p + p{
	margin-top: 0;
}

.consultation .container .wht_wapper{
	padding:2rem;
	background-color: #fff;
	border-radius: 5px;
}
.consultation .container > div + div{
	margin-top:1rem;
}
.consultation .container .wht_wapper h3{
	padding-top:0;
}
@media (max-width: 768px){
	.consultation .container > div{
		padding:0;
	}
	.consultation .container .wht_wapper{
		padding: 1em;
	}
}


/* ================================================================
オールオン4の症例集
================================================================== */
.allon4_flow .subttl{
	background-image: url(../img/allon4/allon4_flow.jpg);
}

.allon4_flow .clm2{
	grid-template-columns: 1fr 2fr; 
}

#allon4_flow_wrapper{
	padding-bottom: 0;;
}
@media (max-width: 768px){
	.allon4_flow .clm2{
		grid-template-columns: 1fr; 
	}
}


/* ================================================================
インプラントの症例集
================================================================== */
.catch_imp{
	margin-bottom: 1rem;
}

.allon4_case h3{
	text-align: center;
}

/* ================================================================
オールオン4の症例集
================================================================== */
.allon4_case .subttl{
	background-image: url(../img/allon4/case/allon4case_ttl.jpg);
}
.allon4_case .clm3{
	gap:15px;
}

.case_card{
	padding: 1rem;
	background-color: #fff;
	border-radius: 5px;
}

.case_card ul h2{
	padding: 0;
}
.case_card ul p{
	text-align: center;
}
.case_card th{
	min-width: 9em;
}

.case_card .case__media{
	margin: 1rem auto;
}


/* ======================================================
オールオン4の症例集(個別ページ）
====================================================== */
.allon4_case_single .subttl{
	background-image: url(../img/allon4/case/allon4case_ttl.jpg);
}
.allon4_case_single h2:has( + p){
	padding-bottom:0;
}
.allon4_case_single h2 + p{
	text-align:center;
}

.allon4_case_single h2 + h3{
	padding-top: 0;
}
.allon4_case_single h3{
	text-align: center;
}
.allon4_case_single h3 em{
	text-align: center;
	display: block;
	font-size: 1rem;
}

/* プロフィール */
.allon4_case_single .allon_prof{
	position: relative;
}
.allon4_case_single .allon_prof > div:first-child{
	padding: 10px;
	width: 40%;
	background-color: #fff;
}
.allon4_case_single .allon_prof > div:last-child{
	padding: clamp(1rem, 2.67vw, 2rem);
	width: 70%;
	background-color: rgba(255,255,255,0.8);
	border-radius: 5px;
	position: absolute;
	bottom:-10%;
	left: 30%;
}
.allon4_case_single .allon_prof th{
	min-width: 6em;
}

/* リスク・副作用 */
.allon4_case_single .bgw th{
	min-width: 8em;
}
.allon4_case_single .bgw td{
	padding:0.8em 1em
}


@media (max-width: 768px){
	.allon4_case_single .allon_prof > div:first-child{
		margin: auto;
		width: 100%;
		max-width: 350px;
	}
	.allon4_case_single .allon_prof > div:last-child{
		position: relative;
		margin-top: -50px;
		width: 100%;
		top:auto;
		left: auto;
	}
}


/* 記事投稿部分 */
.allon4_case_single video{
	width: 100%;
}
.allon4_case_single img{
	max-width: 100%;
}
.allon4_case_single figure + figure{
	margin-top: 1rem;
	margin-bottom: 1rem;
}
.allon4_case_single figure + p{
	margin-bottom: 1rem;
}
.allon4_case_single .wp-block-columns{
	padding-bottom: 1rem;
	padding-top:1rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr); 
	gap: 2rem; 
	width: 100%; 
	margin: 0 auto;
}
.allon4_case_single strong{
	font-weight: 800;
}
.allon4_case_single .has-text-align-center{
	text-align: center;
}
.allon4_case_single .container h3:first-child{
	padding-top:0;

}
@media (max-width: 768px) {
	.allon4_case_single .wp-block-columns{
		grid-template-columns: 1fr;
		gap: 1rem; 
	}
}

/* ================================================================
ページネーション
================================================================== */

.pagination__item--current,
.pagination__item a,
.pagination__btn--prev,
.pagination__btn--next,
.pagination__btn--first,
.pagination__btn--last {
  box-sizing: content-box;
  display: block;
  color: var(--color-primary);
  text-align: center;
  text-decoration: none;
  min-width: 1em;
  transition: all .3s;
  padding: .5em .5em;
  margin: 0;
}
main .pagination a{
	border-bottom: none;
}
/* :hover（li には適用しない：current は li 想定なので除外） */
.pagination__item a:hover,
.pagination__btn--prev:hover,
.pagination__btn--next:hover,
.pagination__btn--first:hover,
.pagination__btn--last:hover {
  opacity: 0.5;
}

/* 本体 */
.pagination {
	margin:4rem auto 0;
  display: flex;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
}

/* 初期（モバイル想定） */
.pagination__list {
  display: none;
}

.pagination__pos {
  order: 2;
  margin: 0;
  padding: .5em 1em;
}

.pagination__btn--prev {
  order: 1;
}
.pagination__btn--next {
  order: 3;
}
.pagination__btn--first {
  display: none;
}
.pagination__btn--last {
  display: none;
}

/* 520px 以上（device-mid） */
@media (min-width: 520px) {
  .pagination__list {
    order: 2;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .pagination__item--current {
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
  }
  .pagination__pos {
    display: none;
  }
  .pagination__btn--prev {
    order: 1;
  }
  .pagination__btn--next {
    order: 3;
  }
}

/* 960px 以上（device-large） */
@media (min-width: 960px) {
  .pagination__list {
    order: 3;
  }
  .pagination__btn--prev {
    order: 2;
  }
  .pagination__btn--next {
    order: 4;
  }
  .pagination__btn--first {
    order: 1;
    display: block;
  }
  .pagination__btn--last {
    order: 5;
    display: block;
  }
}




/* ================================================================
オールオン4の治療費
================================================================== */
.allon4_cost .subttl{
	background-image: url(../img/allon4/allon4cost_ttl.jpg);
}

.allon4_cost .cost_voice{
	padding:1rem 0;
}
.allon4_cost .cost_voice p{
	padding: 0.5rem;
	border-radius: 5px;
	background-color: rgba(var(--bg-gry-rgb-200), 0.8);
}
.allon4_cost .cost_voice p + p{
	margin-top: 0.5em;
}


/* ================================================================
all-on-4 オールオン4
================================================================== */
.allon4 .subttl{
	background-image: url(../img/allon4/allon4_ttl.jpg);
}

#allon4_catch h2 span{
	display: block;
	font-size: 0.7em;
}
#allon4_catch ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	max-width: 1000px;
    margin: auto;
}
#allon4_catch li{
	padding: 5px;
	display: flex;
	justify-content: center;
	width: calc(100% / 4);
	min-width: 100px;
	gap: 30px;
}
#allon4_catch img{
	max-width: 200px;
}
@media (max-width: 768px){
	#allon4_catch ul{
		max-width: 500px;
	}

	#allon4_catch li{
			width: calc(100% / 2);
	}

}



/* ===== オールオン4に絶対的自信 ===== */

#confidence .clm2{
		grid-template-columns: 2fr 1fr;
}
#confidence h3 span{
	color:var(--color-primary);
}
@media (max-width: 768px){
	#confidence .clm2{
		grid-template-columns: 1fr;
	}
	#confidence .clm2 img{
		max-width: 300px;
	}
}


/* ===== オールオン4とは ===== */
#allin4_about{
	text-align: center;
}

/* ===== メリット ===== */
#allon4_merit .clm2 div{
	background-color: #fff;
	border-radius: 5px;
	padding : 1rem;
}
#allon4_merit h3{
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding-bottom: 0.8em;
}
#allon4_merit h4{
	color:var(--color-primary);
	font-size:clamp(1.125rem, 1rem + 0.33vw, 1.25rem);
}


/* ===== 症例 ===== */
.allon4 #case h2{
    padding-bottom: 0;
    line-height: 1em;
}
.allon4 #case .case__body{
	padding-bottom: 2rem;
}

.allon4 #case .case__small{
	padding-top: 1rem;
}
.allon4 #case .container > p{
	margin: 2rem 0;
	text-align: center;
}

/* ===== 当院が選ばれる理由 ===== */
.allon4  .reasons__item{
	max-width: 100%;
}

/* ===== オールオン4治療費用 ===== */

.price {
	margin-top: 1rem;
    padding:30px 10px;
    background-color: var(--bg-gry-200);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.price_img{
    margin-right: 20px;
    width: 150px;
}
.price_img img{
    width: 100%;
}
.price_course_container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.price_course{
    width: 350px;
    color: var(--brouncolor);
    font-size: 1.8rem;
    line-height: 1.2em;
}
.price_price{
    width: 450px;
}
.price_price p + p{
	margin : 0;
}
.price_price em{
    color: var(--color-primary);
    font-size: 4rem;
    line-height: 4rem;
    font-style:normal;
}
.price_price em span{
    font-size: 0.6em;
}
.price_price span{
    color: var(--color-primary);
}
.price_price .supplement{
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    margin-bottom: 0.5em;
}
div.ao4top_text .price p{
    margin-bottom:0;
}






/* youtube */
#price .youtube{
	margin: clamp(1rem, 2.67vw, 2rem) auto;
	padding: clamp(1rem, 2.67vw, 2rem);
	border-radius: 5px;
	max-width: 800px;
	background-color: #fff;
}
#price .youtube iframe{
	padding-top: 1rem;
}

@media (max-width: 1000px){
    .price_img{
        max-width: 250px;
        width: calc(100% - 420px)
    }
    .price .price_course_container{
        display: block;
    }
}
@media (max-width: 770px){
    .price_img{
        width: 100%
    }
    .price_course{
        width: auto;
    }
    .price_price em{
        font-size:3rem;
    }
    .price_price{
        width: 100%;
    }
}
@media (max-width: 768px){
	#price p.center{
		text-align: left;
	}
}
@media (max-width: 700px){
    .price_img {
        margin-right: 0;
    }
}



/* ===== オールオン4のトラブル ===== */
.allon4 #trouble h3{
	text-align: center;
}
.allon4 #trouble section + section{
	margin-top: 2rem;
}
.allon4 #trouble .radioimg{
	margin-top : 1rem;
}
.allon4 #trouble .radioimg p + p{
	margin-top: 0;
};

/* ===== 治療の流れ ===== */
.allon4 .flow .clm2{
	grid-template-columns: 1fr 2fr;
	gap: 0 1rem;
}
.allon4 .flow .clm2 h3{
	grid-column:1/ -1;
	text-align: center;
}
.allon4 .flow .clm2 h3 span{
	text-align: center;
	font-size: 0.8em;
	margin-bottom: 0;
}
.allon4 .flow .clm2 .linkbtn{
	margin-left: 0;
}


@media (max-width: 768px){
	.allon4 .flow .clm2{
		grid-template-columns: 1fr;
	}
}


/* ===== オールオン4の術後のケア方法 ===== */
#allon4_care h2 + p{
	text-align: center;
}
#allon4_care .clm2{
	margin-top: 2rem;
	line-height: 1em;
}


/* ===== こんな患者様にこそ選んで頂きたい ===== */
.allon4 #dr .photo{
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.allon4 #dr h3 span{
	display: block;
	font-size: 0.7em;
}
.allon4 #dr h3{
	line-height: 1em;
}

@media (max-width: 768px){
	.allon4 #dr .photo img{
		max-width: 300px;
	}
	.allon4 #dr .clm2{
		gap:0;
	}
}

/* ================================================================
審美・矯正
================================================================== */
.aestheticorthodontics .subttl{
	background-image: url(../img/aestheticorthodontics/aestheticorthodontics_ttl.jpg);
}

.aestheticorthodontics .container > div{
	padding: clamp(1rem, 2.67vw, 2rem);
	background-color: #fff;
	border-radius: 5px;

}
.aestheticorthodontics .container > div + div{
	margin-top: clamp(1rem, 2.67vw, 2rem);
}
.aestheticorthodontics h2 span{
	display: block;
	text-align: center;
	font-size: 1rem;
}
.aestheticorthodontics h2{
	padding-top: 0;
	padding-bottom: clamp(1rem, 2.67vw, 2rem);
}

.aestheticorthodontics .invisa_link{
	max-width: 380px;
}
.aestheticorthodontics img{
	width: 80%;
}


/* ================================================================
aesthetic-treatment　外科矯正（骨切り）
================================================================== */
.surgical-orthodontic .subttl{
	background-image: url(../img/aesthetic-treatment/surgical-orthodontic/surgical-orthodontic_ttl.jpg);
}

.surgical-orthodontic #youtube a{
	width: 100%;
}

/* ===== 外科矯正手術の種類 ===== */
#surgical_category h3{
	padding-top : 0;
	text-align: center;
}
#surgical_category .container > div{
	background-color: #fff;
	padding: clamp(1rem, 2.67vw, 2rem);
	border-radius: 5px;
	margin-bottom:2rem;
}
#surgical_category img{
	width: 100%;
}
#surgical_category .clm2{
	grid-template-columns: 1fr 2fr;
}
#surgical_category th{
	min-width: 10em;
}

#surgical_about #youtube{
	margin:2rem 0;
	padding:clamp(1rem, 2.67vw, 2rem);
	background-color: #fff;
	border-radius: 5px;
	text-align: center;
}
#surgical_about #youtube p{
	margin:0 0 1rem;
}
@media (max-width: 768px){
	#surgical_about #youtube{
		text-align: left;
	}
}


/* ===== Dr ===== */
#surgical_dr .clm2{
	grid-template-columns: 1fr 2fr;
}

/* ===== 流れ ===== */

#surgical_flow .clm2{
	grid-template-columns: 1fr 2fr;
}

/* ===== 料金 ===== */
#surgical_price h3{
	text-align: center;
}
#surgical_price .clm2 > div{
	margin-bottom: 1rem;
}
#surgical_price th{
	width: 10em;
}

@media (max-width: 768px){
	#surgical_category .clm2,
	#surgical_dr .clm2,
	#surgical_flow .clm2{
		grid-template-columns: 1fr;
	}
	#surgical_dr .clm2,
	#surgical_flow .clm2{
		gap:0;
	}
	#surgical_price th{
		min-width: 100%;
	}
}



/* ================================================================
access
================================================================== */
.access-page .subttl{
	background-image: url(../img/access/access.jpg);
}
#location th{
	min-width: 6em;
	padding-left: 0;
}
#location .clm2{
	margin-bottom: 1rem;
}
#location .access-list li{
	list-style: disc;
	margin-left: 1em;
}

/* 【銀座線/日比谷線】銀座駅 A13出口からのご案内 */
#access_a13 ul{
	margin-top: clamp(1rem, 2.67vw, 2rem);
}
#access_a13 li p{
	font-display: flex;
	margin-bottom: 1rem;
}
#access_a13 li p span{
	color: var(--color-primary);
	font-size: 1.4rem;
	padding-right: 0.5rem;
}

/* 銀座医院への通院が難しい方へ */
#other_clinic .clinic_wrapper{
	margin:2rem 0;
	padding:1rem;
	background-color: var(--bg-gry-100);
	border-radius: 5px;
}
#other_clinic h3{
	padding-top: 0;
	text-align: center;
}
#other_clinic p{
	display: flex;
	justify-content: center;
	align-items: center;
}
#other_clinic th{
	min-width: 4rem;
    padding-left: 0;
}



/* ================================================================
index
================================================================== */
/* ===== フッター　===== */
fotter{
	overflow: hidden;
}
footer h2 img{
	width: 300px;
}
footer.section,
footer .section{
    padding-top: 10px;
    padding-bottom: 0;
}
footer .access-list{
	margin-top: 0.5rem;
}
.clinic-hours {
	border-collapse: collapse;
	text-align: center;
}
footer .clinic-hours th,
footer .clinic-hours td {
	padding: 0.8em 0;
	border-top: 1px solid #999;
	border-bottom: 1px solid #999;
	color: var(--text-color);
	text-align: center;
}

footer .clinic-hours th:first-child,
footer .clinic-hours td:first-child {
	width: 8em;
}


/* Google を囲う要素 */
.map {
  position: relative;
  height: 0;
  padding-top: 30%; /* 比率を4:3に固定 */
}
 
/* Google Mapのiframe */
.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px){
	.map {
		padding-top: 50%;
	}
}

/* サイトマップ */
.footer-nav__grid *{
	font-size: 0.8rem;
}
.footer-nav__grid a:hover{
	color: var(--color-primary);
} 

.fcol__title{
	margin: 0 0 14px;
	font-size: 1rem;
	letter-spacing:.1em;
	border-bottom: 1px solid var(--text-color);
	padding-bottom: 8px;
}
.fcol__title a{
	font-size: 1rem;
	font-weight: 800;
	text-decoration:none;
	color:var(--text-color);
}
.fcol__title--sub{ margin-top: 20px; }

.fgroup{ margin: 14px 0 10px; }
.fgroup h4{
	padding-top: 0;
}
.fgroup__hd{
	margin: 0 0 6px;
	font-weight: 700;
	padding-bottom: 6px;
}

.flist{ 
	padding: 0 0 0 1rem;
	list-style:none; 
	margin:6px 0 0;
	display:flex; flex-direction:column; 
	gap:.35rem;
}
.flist--single{ margin-top: 18px; }
.flist a{
	text-decoration:none;
	color:var(--text-color);
	font-size: 0.98em;
}
.flist li{
	line-height: 1em;
}

.footer-copy{
	text-align:center;
	margin:32px auto 0;
}

ul.footer_sp_link {
	display: none;
}

@media (max-width: 768px){
	footer.section.hero-gry-200{
		padding-bottom:80px ;
	}
	footer .clm2{
		max-width: 400px;
	}
	.footer-nav__grid{
		gap:0;
	}
	footer .clm2 .clm2{
		gap:5px;
		margin-bottom: 1rem;
	}
	footer .linkbtn{
	    margin: 1rem auto 0;
	}

	.fgroup{
		margin: 0;
	}
	.fgroup__hd{
		padding:0.3em 0;
	}
	.flist {
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: all 0.3s ease;
	}
	.fgroup.view_open .flist {
		max-height: 500px;
		opacity: 1;
	}
	.fgroup.open .flist {
		margin-bottom: 1rem;
		max-height: 500px;
		opacity: 1;
	}
	/* 開いてるときに矢印を回転 */
	h4.fgroup__hd:after {
		content: "+";
		margin-left: 1rem;
	}
	.fgroup.open .fgroup__hd::after {
		content: "−";
		transform: rotate(180deg);
	}

	/* フッター固定リンク */
	ul.footer_sp_link {
		position: fixed;
		display: flex;
		flex-wrap: wrap;	
		bottom: 0;
		width: 100%;
	}
	ul.footer_sp_link a{
		display: block;
		width: 100%;
		height: 100%;
	}
	.footer_sp_link li {
		margin: 0 1px;
		padding-top: 5px;
		width: calc(100% / 4 - 2px);
		text-align: center;
		background-color: var(--color-primary);
		display: flex;
		justify-content: center;
		align-items: end;
		border-radius: 5px 5px 0 0;
	}
	.footer_sp_link img {
		width: auto;
		height: 25px;
	}
	.footer_sp_link p {
		font-size: 0.7rem;
		display: block;
		text-align: center;
		color: #fff;
	}
	.footer_sp_link p + p{
		margin-top: 0.5em;
	}

}







/* ===== クリニックの紹介　===== */
#clinic_img{
	padding-bottom: 0;
}
#clinic_img .container{
    position: relative;
    width: 102%;
    left: 51%;
    right: 51%;
    margin-left: -51vw;
    margin-right: -51vw;
}

/*  フッター　スクロール  */
.scroll_wrap{
  width: 100%;
  overflow: hidden;
}

.scroll_track{
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.scroll_inner{
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.scroll_cont{
  flex: 0 0 auto;
  width: 50vw;
  max-width: 500px;
  aspect-ratio: 16 / 9;
}

.scroll_cont img{
  width: 100%;
  display: block;
}




/* ===== services ===== */
#services .clm3{
	display: grid;
	justify-content: center; /* ← Grid自体を中央寄せ */
	gap: 1rem;
	width: 100%;
}

#services li{
	aspect-ratio: 4/1;
	height: auto;
	display: flex;
	align-items: center;
	padding-left: 1rem;
	background-size: cover;
	border-radius: 10px;
	padding-left: 1em;             /* 左パディングがあると左寄りに見える */
}
#services li a{
	color:#fff;
	text-decoration: none;
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
}
#services li:has(a:hover){
	opacity: 0.6;
}
#services .all{ background-image: url(../img/services_all.jpg);}
#services .imp{background-image: url(../img/services_imp.jpg);}
#services .zy{background-image: url(../img/services_zy.jpg);}
#services .invisa{background-image: url(../img/services_invisa.jpg);}
#services .aesthetic{background-image: url(../img/services_aesthetic.jpg);}
#services .treatment{background-image: url(../img/services_treatment.jpg);}

/* 矢印 */
#services li.arrow::before {
	right: 18px;
	width: 26px;
	height: 1px;
	background: #fff;
}
#services li.arrow::after {
	right: 18px;
	width: 9px;
	height: 9px;
	border-top: 1px solid #fff;
	border-right: 1px solid #fff;
	transform: rotate(45deg);
}

@media (max-width: 600px){
	#services .clm3{
		max-width: 320px;
	}

}



/* ===== youtube ===== */
#youtube .container p,
#youtube .container {
	text-align: center;
	margin: auto;
}
#youtube iframe,
.youtube iframe{
	margin: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-width: 800px;
}
#youtube p + iframe{
	margin-top: 1rem;
}

#youtube .youtube_link{
	max-width: 430px;
}




/* ===== case ===== */
#case .case{
	background-color: #fff;
	border-radius: 5px;
	display: flex;
    flex-direction: column;
    gap: 14px;
}
#case .clm3{
	gap: 15px;
}
#case h3{
	padding: clamp(1rem, 2.67vw, 2rem) 0 0;
	text-align: center;
}
#case h3 span{
	display: block;
	text-align: center;
	font-size: 1rem;
}
#case .case__media img{
	width: 100%;
}

#case .case__small > *{
	margin-top: 1em;
	font-size: 0.85em;
}
#case .case__small strong{
	font-weight: 800;
	color: var(--color-primary);
}
#case .case__small p + p{
	margin-top: 0;
}
#case .case__body{
	margin: 0 auto;
	width: 90%;
}
#case a{
	width: 90%;
	margin-top: auto;
}   

@media (max-width: 768px){
	#case .case{
		margin: 0px;
	}
	#case .case .top_case_imp{
		display: none;
	}
	
}



/* ===== reasons ===== */
.reasons{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem 2rem;
	align-items: start;   /* 上揃え */
}

.reasons__item{
	display: grid;
	grid-template-rows:
		auto                          /* 画像 */
		minmax(calc(1.4em * 2), auto) /* 見出し：2行分を最低高さに */
		minmax(calc(1.8em * 4), auto) /* 本文：4行分を最低高さに */
	;
	text-align: center;
	max-width: 300px;
	margin: auto;
}

.reasons__item h3{ 
	line-height: 1.4; 
	margin: .5rem 0;
	padding: 0;
	text-align: center;
}
.reasons__item p { line-height: 1.8; margin: 0; 
text-align: left;}

.reasons_img{
	display: flex;
	justify-content: center;
	align-items: center;
}

.reasons_img img{
	width: 70%;
	max-width: 300px;
}

@media (max-width: 768px){
	.reasons__item{
		display: block;
		max-width:100%;
	}
	.reasons__item img{
		max-width: 200px;
	}
}






/* ===== achievements ===== */
#achievements{
	background:
	url(../img/achievements.jpg) center / cover repeat;
}

#achievements .achievements_box {
	background-color: rgba(255,255,255,0.8);
	padding-bottom: 2rem;
}
#achievements h2{
	grid-column: 1 / -1;
}
#achievements .achievements_box{
	text-align: center;
}

#achievements .achievements_box p:first-child{
	margin-bottom: 2em;
}


/* #achievements .achievements_box .clm3{
	max-width: 800px;
} */
#achievements .achievements_box .clm3 div,
#achievements .achievements_box .clm3 p{
	text-align: center;
}
#achievements .achievements_box .clm3 ul{
	display: inline-block;
}
#achievements p + p{
	margin-top: 0;
}

#achievements .achievements_box img{
	width: 300px;
}

#achievements .achievements_link{
	width: min(800px, 100% - 2rem); 
}
#achievements .achievements_link.clm2{
	gap:0;
}

@media (max-width: 768px){
	#achievements .achievements_box img{
		width: 200px;
	}
}


/* ===== intro ===== */
#intro{
	padding-top: 0;
}
#intro .container{
	position: relative;
	width: 100%;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	overflow: hidden;
}
#intro p + p{
	margin-top: 0;
}
#intro img{
	width: 100%;
}


/* ===== top_dr ===== */
#top_dr .clm2{
	grid-template-columns: 1fr 2fr;
}

#top_dr .drphoto{
	text-align: center;
}
#top_dr .drphoto img{
	width: 100%;
	max-width: 350px;
}
#top_dr .linkbtn{
	margin: 0;
}

#top_dr h3 span{
	display: block;
	font-size: 0.8rem;
}
#top_dr p{
	margin-bottom: clamp(1rem, 2.67vw, 2rem);
}
#top_dr .career{
	border-radius: 5px;
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(var(--bg-gry-rgb-200), 0.3);
}

#top_dr .seminar h3 {
	text-align: center;
	padding: clamp(1rem, 2.67vw, 2rem) 0;
}

#top_dr .seminar ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1rem;
	width: auto;
	margin: auto;
	padding: 0;
	list-style: none;
}
#top_dr .seminar li{
	width: 25%;
	min-width: 15em;
	list-style: disc;
	margin-left: 1em;
}

@media (max-width: 768px){
	#top_dr .clm2{
		grid-template-columns: 1fr;
	}
	#top_dr .drphoto img{
		width: 100%;
		max-width: 250px;
	}
	#top_dr h3,
	#top_dr h3 span{
		text-align: right;
	}
}


/* ===== eyecatch ===== */
.eyecatch{
	background:url(../img/eyecatch.jpg) center;
	background-size: cover;
	aspect-ratio: 19 / 10;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column; /* 縦並びにする */
	justify-content: center;
	gap: 0.5em; /* ← 見出しと本文の間隔を自由に指定 */
	width: 100%;
}
.eyecatch div{
	margin-top: 90px;
	font-size: clamp(1.25rem, 0.614rem + 3.18vw, 3rem);
}
.eyecatch h1{
	width: 100%;
	font-size: inherit;
	line-height: 1em;
}

.eyecatch h1 span,
.eyecatch p{
	margin: 10px 10px 10px 10px;
	padding: 0 1rem;
	background-color: rgba(255,255,255,0.5);
	display: inline;
}
.eyecatch h1 span{
	line-height: 1.6em;
}
.eyecatch p {
    font-size: 0.5em;
}
/* ===== header ===== */
header {
	margin: auto;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	position: fixed;
	top: 10px;
	left:0;
	right: 0;
	z-index: 9999;
	width: 98%;
}
.header-left a:hover{
	border-bottom: none;
	opacity: 0.5;
}
.header-left img {
	height: 38px;
}
@media (max-width: 1150px){
    .header-left img {
        height: 29px;
		width: auto;
    }
}

/* ===== menu ===== */
.menu {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 1;
	justify-content: end;
	margin-left: 1rem;
}
.header-nav ul{
	display: flex;
	gap: 2rem;
}
/* .header-nav ul li{
    position: relative;
} */
.header-nav a,
.header-nav label {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 600;
}
.main-link:hover {
	color: var(--color-primary);
	cursor: pointer;
	border: none;
}


/* サブメニュー */
/* .has-sub {
	position: relative;
} */
#menu input {
	display: none;
}
.submenu {
    /* width: 17em; */
	opacity: 0;
	transform: translateY(-4px);
	transition: all .25s ease;
	position: absolute;
    /* top: 2.5rem; */
    /* left: -2.5rem; */
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    /* gap: 4rem; */
	height: 0;
    z-index: 999999;
	pointer-events: none; 

	width: calc(100vw - 40px);
    top: 90px;
    left: 0;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;

}
/* .submenu.allon4 {
    width: 24em;
}
.submenu.implant {
    width: 27em;
} */

.toggle:checked + .main-link + .submenu {
	opacity: 1;
	height: auto;
	transform: translateY(0);
	pointer-events: auto;
	display: grid;
	width: 100%;
}
/* .toggle:checked + .main-link + .submenu h3{
	margin-top: 2rem;
} */
.submenu ul{
    display: block;
    font-weight: 700;
}
.submenu ul h3{
	margin-top:0;
	padding-top: 0;
	font-size:1.2rem;
}
.submenu ul h3.pc_p{
	padding-top: 2rem;
}
.submenu ul h3:before{
    content: "";
    background: var(--color-accent);
    width: 8em;
    height: 1px;
    position: absolute;
    bottom: 0.8em;
    left: 0;
}
.submenu ul a{
    padding-left:1rem;
    padding-right: 3rem;
    font-weight: 600;
}
.header-right {
	display: flex;
	align-items: center;
	gap: .5rem;
}
.btn.phone {
    background: var(--color-primary);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1em;
    position: relative;
    flex-wrap: wrap;
    width: 10em;
    padding-left: 1em;
    padding-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 23px;
}
.btn.phone:after{
    content:"";
    margin: auto;
    background-image: url(../img/header_icon_tel.webp);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    width: 23px;
    height: 30px;
}
.btn.phone span{
    color: #fff;
    font-size: 0.5em;
}
.btn.reservation,
.btn.mail{
    height: 65px;
    width: 70px;
    position: relative;
    align-items: flex-end;
    font-size: 0.7rem;
    padding: 0;
}
.btn.reservation:after{
    content:"";
    margin: auto;
    background-image: url(../img/header_icon_reservation.webp);
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    left: 0;
    top:10px;
    width: 34px;
    height: 32px;
}
.btn.mail:after{
    content:"";
    margin: auto;
    background-image: url(../img/header_icon_mail.webp);
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    left: 0;
    top:10px;
    width: 34px;
    height: 32px;
}

.btn.reservation:hover,
.btn.mail:hover{
background-color: #fff;
}

/* --- ハンバーガー --- */
.nav-toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 42px;
	border: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 10px;
	margin-left: auto;
}

.nav-toggle span {
	position: absolute;
	left: 10px;
	right: 10px;
	height: 2px;
	background: #222;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* --- 1270px以下でハンバーガー化 --- */
@media (max-width: 1270px) {
	.menu {
		position: absolute;
		left: 0;
		right: 0;
		top: calc(100% + 6px);
		background: #fff;
		border-radius: 12px;
		box-shadow: 0 12px 30px rgba(0,0,0,.12);
		padding: .75rem;
		display: none;
		flex-direction: column;	
		gap: .75rem;
		margin-left: 0;
		    justify-content: left;
	}

	.menu.is-open {
        /* display: flex;
        overflow: hidden;
        max-width: 600px;
        margin-right: 0;
        margin-left: auto; */

		display: flex;
        overflow: hidden;
        max-width: 600px;
        margin-right: 0;
        margin-left: auto;
        position: fixed;
        top: 80px;
        bottom: 10px;
        overflow-y: auto;
        margin: auto;
        width: 97%;
    }
    

	.header-nav {
		flex-direction: column;
		gap: .25rem;
		padding: .25rem .25rem .5rem;
		border-bottom: 1px solid #f0f0f0;
		width: 100%;
	}

	.header-nav a {
		padding: .6rem .5rem;
		/* border-radius: 8px; */
	}

	.btn {
		width: 100%;
	}

	/* ハンバーガー表示 */
	.nav-toggle {
		display: inline-block;
	}

	.header-nav ul{
		display: block;
	}
	.submenu{
		position: static;
		padding: 0 0 0 1rem;
		border:none;
	}
	.submenu li{
		border-bottom: 1px solid #e5e5e5;
	}
	.submenu li:has(h3){
		border:none;
	}
	.toggle:checked + .main-link + .submenu{
		display: block;
		width: 100%;
		margin-bottom: 2rem;
	}
	.header-nav a, .header-nav label{
	    text-decoration: none;
		display: block;
		padding: 5px 0;
	}

	.submenu ul h3{
    	font-size: 1rem;
		margin-top: 2rem;
	}
	.submenu ul h3.pc_p {
		padding-top: 0;
	}
}

