@charset "utf-8";
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css");

/* ================================================================================= ini */
* {
margin: 0;
padding: 0;
}

html {
font-size: 62.5%;
scroll-behavior: smooth;
}

body {
font: normal 1.6rem/1.9 'メイリオ',Meiryo,'ＭＳ Ｐゴシック','MS PGothic',sans-serif;
background: #f1f1f1;
color: #444;
letter-spacing: 0.02em;
}

h1,h2,h3,h4,h5,h6 {
font-size: 100%;
}

table {
border-collapse: collapse;
}

table th {
vertical-align: top;
white-space: nowrap;
}

table td {
vertical-align: top;
}

ul,ol {
list-style: none;
}

img {
border: none;
vertical-align: middle;
}

em,address {
font-style: normal;
}

a {
text-decoration: none;
ol-tab: none;
}

a:hover {
text-decoration: underline;
}

/* ================================================================================= 全体 */
#page {
width: auto;
margin: 0 auto;
box-sizing: border-box;
}

/* ================================================================================= 最上段 */
#headertop_wrap {
width: auto;
background: #fff;
padding: 20px 0;
margin: 0 auto 40px auto;
border-bottom: 1px solid #ccc;
box-sizing: border-box; 
}

#headertop {
width: 1000px;
background: #fff;
margin: 0 auto;
box-sizing: border-box;
font-size: 150%;
font-weight: bold;
color: #5b9bd5;
}

/* ================================================================================= コンテンツ幅 */
#contents_width {
width: 1000px;
margin: 0 auto;
box-sizing: border-box; 
}

/* ================================================================================= ヘッダー */
#header {
width: 100%;
background: #fff;
padding: 20px 40px;
border: 1px solid #ccc;
box-sizing: border-box;
border-radius: 5px;
}

#header > ul.flex {
display: flex;
justify-content: space-between;
}

#header > ul.flex > li.txt {
width: 600px;
}

#header > ul.flex > li.txt h1 {
font-size: 180%;
font-weight: bold;
border-bottom: 1px solid #ccc;
margin-bottom: 20px;
}

#header > ul.flex > li.txt .add {
margin-top: 10px;
}

#header > ul.flex > li.txt a.btn01 {
display: inline-block;
width: 260px;
color: #fff;
text-align: center;
background: #5b9bd5;
text-decoration: none;
border-radius: 5px;
padding: 10px;
margin: 20px 20px 0 0;
box-sizing: border-box; 
}

#header > ul.flex > li.txt a.btn01:hover {
opacity: 0.7;
}

#header > ul.flex > li.txt .add i {
color: #5b9bd5;
}

#header > ul.flex > li.txt .feat i {
color: #5b9bd5;
}

#header > ul.flex > li.pict {
width: 280px;
}

#header > ul.flex > li.pict img {
max-width: 280px;
height: auto;
}

/* ================================================================================= 基本情報 */
#container {
width: 100%;
background: #fff;
margin-top: 40px;
border: 1px solid #ccc;
box-sizing: border-box;
border-radius: 5px 5px 0 0;
}

#container h2 {
font-size: 120%;
font-weight: bold;
background: #00a2e1;
color: #fff;
padding: 0.25em 1.0em;
border-radius: 5px 5px 0 0;
}

#main {
width: 100%;
padding: 40px;
box-sizing: border-box;
}

#main table.ol-tab {
width: 100%;
box-sizing: border-box;
}

#main table.ol-tab th {
line-height: 1.5;
text-align: left;
background: #efedea;
padding: 1.0em;
border: 1px solid #ccc;
}

#main table.ol-tab td {
line-height: 1.5;
background: #fff;
padding: 1.0em;
border: 1px solid #ccc;
}

#main table.ol-tab td #googlemap {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}

#main table.ol-tab td #googlemap iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}

/* ================================================================================= 診療時間 */
#main h3 {
line-height: 1.5;
text-align: left;
background: #efedea;
padding: 1.0em;
border: 1px solid #ccc;
border-bottom: 0;
margin-top: 40px;
}

#main table.time-tab {
width: 100%;
font-size: 80%;
box-sizing: border-box;
}

#main table.time-tab th {
width: 10%;
text-align: center;
background: #fcf7d0;
padding: 1.0em;
border: 1px solid #ccc;
box-sizing: border-box;
}

#main table.time-tab th em {
color: #f60;
}

#main table.time-tab td {
text-align: center;
background: #fff;
padding: 1.0em;
border: 1px solid #ccc;
box-sizing: border-box;
}

#main ul.note {
font-size: 80%;
margin-top: 1.0em;
}

/* ================================================================================= 院長紹介 */
#director {
margin-top: 40px;
}

#director > ul.flex {
display: flex;
justify-content: space-between;
}

#director > ul.flex > li.txt {
width: 500px;
}

#director > ul.flex > li.txt ul.name {
display: flex;
justify-content: space-between;
align-items: flex-end;
white-space: nowrap;
background: #efedea;
padding: 5px 10px;
border: 1px solid #ccc;
margin-bottom: 10px;
}

#director > ul.flex > li.txt ul.name li {
font-size: 80%;
}

#director > ul.flex > li.txt ul.name em {
font-size: 140%;
font-weight: bold;
}

#director > ul.flex > li.txt ul.name .en {
text-align: right;
}

#director > ul.flex > li.txt .prof1 {
text-align: justify;
}

#director > ul.flex > li.txt .prof2 {
border: 1px solid #00a2e1;
border-radius: 5px;
padding: 10px;
margin-top: 20px;
}

#director > ul.flex > li.txt .prof2 > table {
font-size: 90%;
}

#director > ul.flex li.txt .prof2 > table th {
padding-right: 1.0em;
}

#director > ul.flex > li.txt .prof2 > table thead td table.ts tr td:nth-child(1) {
white-space: nowrap;
padding-right: 1.0em;
}

#director > ul.flex > li.txt .prof2 ul.disc {
list-style-type: disc;
margin-left: 1.5em;
}

#director > ul.flex > li.pict {
width: 380px;
}

#director > ul.flex > li.pict img {
max-width: 380px;
height: auto;
}

/* 最下段 写真を左右に分ける場合 */
#director > ul.flex > li .pict_sub {
}

#director > ul.flex > li .pict_sub img {
max-width: 100%;
height: auto;
}

/* ================================================================================= 最下段 */
#main a.btn02 {
display: inline-block;
width: 100%;
color: #fff;
text-align: center;
background: #5b9bd5;
text-decoration: none;
border-radius: 5px;
padding: 20px 10px;
margin-top: 40px;
box-sizing: border-box; 
}

#main a.btn02:hover {
opacity: 0.7;
}

#footer {
text-align: center;
margin: 20px 0;
}

/* ##################################################################################################################### < 999px */
@media only screen and (max-width:999px) {

	html {
	}

	body {
	font-size: 1.4rem;
	line-height: 1.6;
	}

	img {
	max-width: 100%;
	height: auto;
	}

	/* ================================================================================= 全体 */
	#page {
	width:100%;
	}

	/* ================================================================================= 最上段 */
	#headertop_wrap {
	width: auto;
	background: #fff;
	padding: 10px 10px;
	margin: 0 auto 40px auto;
	border-bottom: 1px solid #ccc;
	box-sizing: border-box;
	}

	#headertop {
	width: 100%;
	background: #fff;
	margin: 0 auto;
	box-sizing: border-box;
	font-size: 120%;
	}

	/* ================================================================================= コンテンツ幅 */
	#contents_width {
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box; 
	}

	/* ================================================================================= ヘッダー */
	#header {
	width: 100%;
	padding: 10px;
	}

	#header > ul.flex {
	display: block;
	}

	#header > ul.flex > li.txt {
	width: 100%;
	}

	#header > ul.flex > li.txt h1 {
	font-size: 130%;
	padding-bottom: 10px;
	margin-bottom: 0;
	}

	#header > ul.flex > li.txt a.btn01 {
	display: block;
	width: 90%;
	margin: 10px auto;
	}

	#header > ul.flex > li.pict {
	width: 100%;
	text-align: center;
	margin: 20px 0;
	}

	#header > ul.flex > li.pict img {
	width: auto;
	max-width: 80%;
	}

	/* ================================================================================= 基本情報 */
	#container {
	width: 100%;
	}

	#container h2 {
	font-size: 120%;
	}

	#main {
	padding: 10px;
	}

	#main table.ol-tab th,
	#main table.ol-tab td {
	font-size: 90%;
	padding: 0.5em;
	}

	/* ================================================================================= 診療時間 */
	#main h3 {
	text-align: center;
	padding: 0.5em;
	}

	#main table.time-tab {
	font-size: 80%;
	border: 1px solid #ccc;
	border-width: 1px 0 0 1px;
	}

	#main table.time-tab tr {
	display: block;
	float: left;
	}

	#main table.time-tab tr td, 
	#main table.time-tab tr th {
	display: block;
	width: auto;
	height: auto;
	padding: 0.75em 0.5em;
	}

	#main table.time-tab th {
	border-width: 0 1px 1px 0;
	}

	#main table.time-tab tr td {
	border-width: 0 1px 1px 0;
	}

/* 診療時間を1列にする場合 */
/*
	#main table.time-tab thead {
	display: block;
	float: left;
	width: 50%;
	}

	#main table.time-tab thead tr {
	width: 100%;
	}

	#main table.time-tab tbody {
	display: block;
	float: left;
	width: 50%;
	}

	#main table.time-tab tbody tr {
	width: 100%;
	}
*/

/* 診療時間を2列にする場合 */
/*
	#main table.time-tab thead {
	display: block;
	float: left;
	width: 30%;
	}

	#main table.time-tab thead tr {
	width: 100%;
	}

	#main table.time-tab tbody {
	display: block;
	float: left;
	width: 70%;
	}

	#main table.time-tab tbody tr {
	width: 50%;
	}
*/
/* 診療時間を3列にする場合 */

	#main table.time-tab thead {
	display: block;
	float: left;
	width: 25%;
	}

	#main table.time-tab thead tr {
	width: 100%;
	}

	#main table.time-tab tbody {
	display: block;
	float: left;
	width: 75%;
	}

	#main table.time-tab tbody tr {
	width: 33.3%;
	}


	/* ================================================================================= 院長紹介 */
	#director {
	}

	#director > ul.flex {
	display: block;
	}

	#director > ul.flex > li.txt {
	width: 100%;
	}

	#director > ul.flex > li.txt ul.name li {
	font-size: 80%;
	}

	#director > ul.flex > li.txt ul.name em {
	font-size: 1.5em;
	}

	#director > ul.flex > li.txt .prof2 > table {
	font-size: 90%;
	}

	#director > ul.flex > li.pict {
	width: 100%;
	text-align: center;
	margin: 20px 0;
	}

	#director > ul.flex > li.pict img {
	width: auto;
	max-width: 80%;
	}

	/* 最下段 写真を左右に分ける場合 */
	#director > ul.flex > li .pict_sub {
	width: 100%;
	text-align: center;
	margin: 20px 0;
	}

	#director > ul.flex > li .pict_sub img {
	width: auto;
	max-width: 80%;
	}

	/* ================================================================================= 最下段 */
	#main a.btn02 {
	margin: 20px 0 10px 0;
	}

	#footer {
	font-size: 80%;
	}

}
