@media only screen and (max-width:700px){

body { min-width:375px; font-size:100%;}
#header { display:none;}
#content{ width:100%;}
#footer { width:100%;}

#wrapper { border-top:none; }
#base { width:auto; margin:0 !important;}

.pc { display:none;}
.sm { display:block;}


/*====================================================================================================
  HEADER
====================================================================================================*/

#header {}

/*====================================================================================================
  CONTENT
====================================================================================================*/

#content {}

.box_main { width:90%; }

/*====================================================================================================
  FOOTER
====================================================================================================*/
#footer {}
#footer .box_main { display:block; padding-block:40px; }
#footer .f_info { width:100%; padding:0 0 20px; }
#footer .f_nav { width:100%; padding:20px 0 0; border-left:0; border-top:1px solid rgba(96, 86, 86, 0.52); }
#footer dl dd { padding-left:20px; }
#footer dl dd:nth-last-child(-n+4) { padding-left:25px; }
#footer dl dd a { font-size:87.5%; }
#footer dl dd ul { padding-left:10px; }
#footer dl dd ul li p a { letter-spacing:-0.01em; }
#footer dl dd ul li ul { padding-left:20px; }
#footer .copy { padding:25px 20px; font-size:75%; line-height:120%; }

/*====================================================================================================
  TOP PAGE
====================================================================================================*/

#toppage h3 b { font-size:125%; }
#toppage h4 { font-size:150%; }
#toppage h5 { font-size:137.5%; }

#toppage .box_flex { display:block; }
#toppage .box_flex .photo { margin:0 0 30px; }
#toppage .box_flex .txt .come { font-size:100%; margin-block:15px 25px; }

#toppage .mainimg { width:90%; margin-top:30px; }
	
#toppage .mainimg h2 { 
  bottom: -30px;
}
#toppage .mainimg h2 span {
  font-size: 125%;
  width: fit-content;
  padding: 10px;
}
#toppage .mainimg h2 b {
	white-space: nowrap;
}
#toppage .mainimg h2 small {
	margin: 0 0 0 -90px;
	font-size: 120%;
}
#toppage .mainimg .photo {}
#toppage .mainimg .photo img { border-radius:20px; max-height:300px; height:100vh; object-fit:cover; }

#toppage .news { display:block; padding:20px; top:-40px; width:85% }
#toppage .news .news_tit { padding-bottom:20px; }
#toppage .news .b_more { margin-top:30px; }
#toppage .news .news_list { padding:30px 0; border-left:none; border-top:1px solid #FFB580; }
#toppage .news .news_list ul { display:block; }
#toppage .news .news_list ul li.date { margin-right:0; }

#toppage .exam { padding-block:50px; top:0; }

#toppage .message { margin-block:50px; }

#toppage .treatment { padding-block:50px; }
#toppage .treatment ul { display:block; position:initial; }
#toppage .treatment ul li { width:100%; margin-top:20px; }
#toppage .treatment ul li a { padding:20px; }
#toppage .treatment ul li .come { max-width:80%; }

#toppage .more_info { padding-block:50px; }
#toppage .more_info ul { display:block; }
#toppage .more_info ul li { width:100%; margin-block:25px; }
#toppage .more_info ul li .title small { font-size:125%; }
#toppage .more_info ul li .title b { font-size:125%; }


/*====================================================================================================
  SUB PAGE
====================================================================================================*/
.pan { display: none;}

/* PAGE TITLE */
#page_title { width:90%; max-height: 175px; }
#page_title h2 { font-size:187.5%; top:calc(105px / 2 + 70px);}

#subpage { 
	width:90%;
	padding: 40px 0 50px;
	margin:0 auto !important;
  box-sizing:border-box;
}

/* MIDASHI */
#subpage h3 { font-size: 150%;}
#subpage h4.mid { font-size: 137.5%;}
#subpage h4 { font-size: 125%;}

/* CATCH COPY */
#subpage .catch { margin:0 2% 20px; font-size: 120%;}

/* COMMON */
#subpage .comment1 { margin:0 2% 20px;}
#subpage .comment2 { margin:0 2% 20px; padding:5%;}
#subpage .comment3 { margin:0 2% 20px; padding:5%;}

/* HYOU */
#subpage table.hyou { margin:0 2%; width:96%; table-layout:auto;}
#subpage table.hyou th,
#subpage table.hyou td{
	table-layout:auto !important;
	display:block !important;
	padding:5% !important;
	width:100% !important;
	height:auto !important;
}
#subpage table.pc_tit { display:none;}
#subpage table.hyou .sm_mid { display:block;}

/* 2RETU */
#subpage table.hyou2 td table {}
#subpage table.hyou2 td table th,
#subpage table.hyou2 td table td {
	display:table-cell !important;
	padding:5% !important;
	width:auto !important;
	height:auto !important;
}

/* 3RETU */
#subpage table.hyou3 { border-top:1px solid #DDD;}
#subpage table.hyou3+table.hyou3 { border-top:1px solid #DDD;}

/* 4RETU */
#subpage table.hyou4 {border-top:1px solid #DDD;}
#subpage table.hyou4+table.hyou4 { border-top:1px solid #DDD;}

/* 5RETU */
#subpage table.hyou5 { border-top:1px solid #DDD;}
#subpage table.hyou5+table.hyou5 { border-top:1px solid #DDD;}

/* FREE */
#subpage .pc_table { display:none;}
#subpage .sm_table { display:block;}
#subpage .sm_table table td { padding:5% !important;}
	
/* FREE2 */
#subpage table.free { margin:20px 2% 0; border-top:1px solid #DDD !important; border-bottom:1px solid #DDD !important;}
#subpage table.free td {
	table-layout:auto !important;
	display:block !important;
	padding:5% !important;
	width:90% !important;
	height:auto !important;
	border-bottom:none;
}
#subpage table.free td:last-child {border-bottom:none;}
#subpage table.free td div.sm {display:block !important; text-align:center; border-bottom:none !important /*1px solid #1F266C*/;}
#subpage table.free tr:nth-child(1) td:nth-child(1),
#subpage table.free tr:nth-child(1) td:nth-child(3) {border-bottom:1px dotted #DDD !important;}

/* FIX */
#subpage .fix_table {font-size:1vw;}
#subpage .fix_table table { padding: 0;}
#subpage .fix_table table th,
#subpage .fix_table table td { padding:2%;}

/* LIST */
#subpage ul.list-ul { margin:20px 2%;}

/* LINK */
#subpage .link2,
#subpage .link3,
#subpage .link4 {width:auto;}
#subpage .file2,
#subpage .file3,
#subpage .file4 {width:auto;}

/* EMBEDDED */
#subpage .embedded { margin:0 2% 20px;}
#subpage .embedded iframe { width: 100%; height: 300px;}

/* PHOTO BOX */
#subpage ul.photo_box { clear:none !important; float:none !important; margin:2%; width:96% !important; text-align:center;}
#subpage ul.g1 li,
#subpage ul.g2 li,
#subpage ul.g3 li,
#subpage ul.g4 li,
#subpage ul.g5 li{ margin:15px 0; width:100%; text-align:center;}
#subpage ul.g1 li.photo img,
#subpage ul.g2 li.photo img,
#subpage ul.g3 li.photo img,
#subpage ul.g4 li.photo img,
#subpage ul.g5 li.photo img { max-width:90% !important; height:auto !important;}

/* YOUTUBE */
#subpage .youtube {position: relative; width: 100%;}
#subpage .youtube iframe { width: 100% !important;  height: 100% !important;}

/* BOX */
#subpage .temple-box { margin:0 2%; width:96%;}
#subpage .temple-box:after { display:none;}
#subpage .box1,
#subpage .box2 { float:none;margin: 0 2% 20px; width:96%;}
#subpage .box1:after,
#subpage .box2:after { display:none;}
#subpage .box1 .catch { margin:0 0 20px !important;}
#subpage .box1 h4,
#subpage .box2 h4 { margin:10px 0; font-size:100%;}
#subpage .photo-c { float:none; padding:0; width:100%;}
#subpage .photo-c img { max-width:100%!important; height:auto !important; padding:0 0 20px;}
#subpage .photo-l,
#subpage .photo-r { float:none; padding:0; width:100%; text-align:center;}
#subpage .photo-l img,
#subpage .photo-r img { max-width:240px !important; height:auto !important; padding:0 0 20px;}

/* LINE */
#subpage .line {
	margin:0 2% 20px;
	height:50px;
	background-size:100% auto;
}

/* BUTTON */
#subpage .btn { float:none; margin:1% 2%;}
#subpage .b1,
#subpage .b2,
#subpage .b3 { width:auto;}

/* COLUMNBOX */
#subpage .column {}
#subpage .column:after { display:none;}
#subpage .column .col2 { float:none; margin: 2%; width: 96%;}
#subpage .column .col3 { float:none; margin: 2%; width: 96%;}
#subpage .column .col4 { float:none; margin: 2%; width: 96%;}
#subpage .column .col5 { float:none; margin: 2%; width: 96%;}

/* FLOW */
#subpage ul.flow_box {}
#subpage ul.flow_box:after { display:none;}
#subpage ul.flow_box li { float:none; width:96% !important;}
#subpage ul.flow_box li a:hover {}
#subpage .flow1+.flow1 { margin-top:30px;}
#subpage .flow1+.flow1:before { top:-30px;}
#subpage ul.flow_box li+li { margin-top:30px;}
#subpage ul.flow_box li+li:before {
	position:absolute;
	top:-30px;
	left:0;
	display:block;
	clear:both;
	content:"";
	width:100%;
	height:30px;
	background:url(/kms/thorac22/common/image/flow_bg_sm.png) no-repeat center center;
}
#subpage .flow1a+.flow1a {margin-top:30px;}
#subpage .flow1a+.flow1a:before { top:-30px; width:100%;}
#subpage .flow1a li+li { margin-top:5px !important; padding: 0 !important;}


/*====================================================================================================
  サブページ：研究について
====================================================================================================*/
#investigation { padding-bottom:100px; }
#investigation .come { font-size:100%; }
#investigation .photo-c { max-width:100%; }
#investigation .photo-c img { max-width:100%!important; padding:20px!important; }

#investigation .surgery+.feature { margin-bottom:40px; }
#investigation .feature h4.mid+h4 { margin-top:20px; }
	
.popup_btn {
	--padding:20px;
	--icon-width:1.125rem;
	font-size:100%;
	padding-block:calc(var(--padding) / 2);
}
.popup_btn:after { width:var(--icon-width);}
.popup_text {
	--header-height:70px;
	--padding:20px;
	
	border-radius:25px;
}
/*====================================================================================================
  サブページ：お知らせ一覧
====================================================================================================*/
#news .news_list {
	padding:30px 0;
	border-left:none;
	border-top:solid 1px #ffb580;
}
#news .news_list ul { display:block;}
#news .news_list ul li.date { margin-right:0;}
	
	
	
/*====================================================================================================
  PAGE TITLE
====================================================================================================*/

/*====================================================================================================
  PAGE TITLE
====================================================================================================*/

/*====================================================================================================
  PAGE TITLE
====================================================================================================*/


/* ********** 2025.09.03 画面右下のお知らせ ********** */
.fn {
	width:210px;
	bottom:8.5rem;

	& .fn_head { font-size:16px;}
	& .fn_body {
		grid-template:
			"text" auto
			"btn" 1fr / 1fr;

		& img { display:none;}
		& .fn_text { font-size:13px;}
	}
}



}
