/* ともろー鍼灸接骨院 */

/* PC用設定 */

/* 背景色を指定 */

body {
   font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', 'Noto Sans JP', sans-serif;	margin: 0 0 0 0;
	padding: 0 0 0 0;
	background: linear-gradient(to bottom,#CCFFCC,#009900);
}


/* 外枠を左右中央に配置・横幅・色を指定 */

div#container {
	margin: 0 auto 0 auto;
	width: 900px;
	background-color: #F5F5DC;
}


/* タイトルの背景画像・文字色・文字の配置を指定 */


header {
	background-image: url(img/bgpic.png);
	background-size: cover;
	width: 900px;	
	height: 490px;
	color: #663300;
	text-align: center;
}

div.title_letter {
	padding-top: 295px;
}

h1 {
	font-size: 28px;
}

div.tel {
	font-size: 56px;
	font-weight: bold;
	color: yellow;
}

.tel a {
	text-decoration: none;
	color: yellow;
}

/* ナビゲーションバーの設定 */

nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style-type: none;
	background-color: #F5F5DC;
}

nav li{
	flex: 1;
	height: 50px;
	font-weight: bold;
	text-align: center;
	background-image: url(img/button_nav.png);/* ナビバーのボタン画像*/
	background-size: cover;	/*ボタン画像のサイズを指定*/
}

#nav-bar a {
	display: block;	/* ナビバー全体をボタンにする */
	color: #663300;
	line-height: 50px;
	text-decoration: none;
	font-size: 105%;
}

#nav a:visited {
	color: #663300;
}

.mobile {
	display: none;
}


/* コンテンツブロック（メインブロックとサイドブロック） */


/* 親要素の設定 */
.contents_block {
	display: flex;
}


/* h2タグの設定 */


h2 {
	font-size: 120%;
	color: maroon;
	background-image: url(img/h2.png);
	background-size: contain;
/*h2の見出し文字列を1文字内側へ寄せて、高さを指定*/
	padding: 12px 0 3px 1em;
}


/* メインブロックの設定 */

.main_block {
	flex-basis: 72%;
	order: 2;
}

.main_block p {
	padding-left: 20px;
	padding-right: 10px;
}


/* index */

img.tomoro2 {
	float: right;
}

.time {
	text-align: center;
	font-size: 120%;
}

.time table {
	table-layout: fixed;
	width: 90%;
	margin: 10px auto;
	border: solid green 3px;
	border-collapse: collapse;
}

.time th, .time td {
	border: solid 1px green;
	padding: 10px 5px;
	color: green;
/*	font-weight: bold;*/
	background-color: white;
}

/* 1列目は固定幅 */
.time th:first-child, .time td:first-child {
  width: 150px;
}

/* 2列目以降を均等に設定 */
.time th:nth-child(n+2), .time td:nth-child(n+2) {
  width: calc((100% - 150px) / 7); /* 残りの幅を均等に分配 */
}

.font-large {
	font-size: 150%;
}


ul.access {
	line-height: 180%;
}

ul.access li {
	margin-left: 1.5em;
}

	/* ======== */
	/* page 2*/
	/* ======== */

ul.tokushoku li {
	padding-right: 10px;
	margin-left: 1.5em;
	margin-bottom: 10px;
}

div.sejutsu {
	text-align: center;
}

	/* ======== */
	/* page 3*/
	/* ======== */

table.hoken {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
}

table.hoken th {
	border: solid 1px silver;
	line-height: 200%;
}

table.hoken td {
	text-align: center;
	border: solid 1px silver;
	line-height: 200%;
}

p.annai {
	padding-left: 2em;
}

/* page4 */

img.tomoro {
	float: right;
	margin-right: 10px;
}

table.prof {
	width: 98%;
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
	font-size: 90%;
}

table.prof th {
	padding: 8px;
	width: 25%;
	font-weight: normal;
	text-align: right;
	border-bottom: solid 1px silver;
	font-size: 110%;
	white-space: nowrap;
}

table.prof td {
	padding: 10px;
	border-left: solid 1px silver;
	border-bottom: solid 1px silver;
	font-size: 110%;
}

/*最終行の下罫線を非表示にする設定*/
table.prof tr:nth-child(4) {
	border-bottom: solid 2px #F5F5DC;
}


/* page4-5 */

div.access-image {
	margin-top: 10px;
}

div.access-image img {
	float: right;
	margin-right: 10px;
	margin-bottom: 20px;	/*下の地図との隙間をあける*/
}

ul.profile, ul.access-list {
	list-style-type: none;
}

ul.profile li, ul.access-list li {
	padding-left: 1.5em;
	background-image: url(img/button_ul.png);
	background-repeat: no-repeat;
	background-size: 1em;
	background-position: left center;
	margin-bottom: 10px;
}


.map {
	text-align: center;
	clear: both;
	margin-bottom: 15px;
}

.map img {
	border: solid 6px #FF9966;
}

.gmap {
	width: 95%;
	margin: auto auto;
}

h2.no_display {
	display: none;
}

#inquiry {
	display: none;/* PCサイトでは非表示 */
}



/* サイドブロック（「サイドバー」と「その他の情報」 */

div.side_block {
	flex-basis: 28%;
	order: 1;
	margin-top: 5px;	/* ナビバーとの間隔を空ける */
}

/* QRコードの設定 */

.qr {
	text-align: center;
	font-size: 120%;
	font-weight: bold;
	padding: 8px;
}

/* サイドバーの設定 */

div.side_bar {

	padding: 1px 0;
	text-align: center;

}

ul.side_bar {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

ul.side_bar li{
	width: 100%;
	height: 16px;
	padding: 18px 0;
	text-align: center;
	color: #FF55FF;
	background-image: url(img/button_side.png);
	background-size: cover;
}

.side_bar a {
	display: block;	/* ナビバー全体をボタンにする */
	color: #009900;
	text-decoration: none;
	font-size: 105%;
	font-weight: bold;
	line-height: 16px;
}

/* 「その他の情報」の設定 */

div.information {
	width: 100%;
	margin-left: auto;	/* 左端にすき間を作る */
	margin-right: auto;
	margin-top: 12px;	/* サイドバーとの間隔を空けるため */
	margin-bottom: 8px;	/* サイドブロックとヘッダーの間隔を空ける */
	border: solid 1px silver;
}

div.info_title {
	background-color: #FF9933;
	text-align: center;
	padding: 5px 0;
	color: #663300;
	font-weight: bold
}

.info_contents p {
	font-size: 100%;
	padding-left: 1em;
}

.info_contents p.indent {
	font-size: 100%;
	text-indent: -1em;
	padding-left: 2em;
}


/* フッターの設定 */

footer {
	text-align: center;
	color: white;
	font-size: 80%;
	padding: 6px;
	background-image: url(img/footer.png);
}

footer a {
	color: white;
	text-decoration: none;
}




/* =============================================== */
/*スマホ用の設定*/

@media (max-width: 768px) {

	#container {
		max-width: 100%;	/* max-widthの制限を解除 */
		width: 100%;
		margin: 0;
	}
	
	header {
		max-width: 100%;	/* max-widthの制限を解除 */
		width: 100%;
		height: 400px;	/* 最低の高さを指定 */
		margin: 0;
		background-image: url(img/bgpic2.png);
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		display: flex;
		align-items: flex-start; /* 上に寄せる */
	}
	
	.title_letter {
		display: flex;
		flex-direction: column;
		margin: 0;
		width: 100%;
		padding-top: 220px !important;
	}
	
	h1 {
		margin: 0;
		font-size: 16pt;
	}
	
	div.tel {
		margin-top: 20px;
		color: #663300;
		font-size: 200%;
	}
	
	.tel a {
		text-decoration: none;
		color: green;
		font-weight: bold;
	}


/*ナビバーの設定*/

	ul#nav-bar {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
		margin: 0;
		padding: 0;
		list-style-type: none;
		background-color: #F5F5DC;
	}

	#nav-bar li{
		flex: none;	/* flex-grow, flex-shrink, flex-basisを無効化 */
		width: 50%;
		height: 50px;
		text-align: center;
		font-size: 120%;
		background-image: url(img/button_nav.png);/* ナビバーのボタン画像*/
		background-size: cover;	/*ボタン画像のサイズを指定*/
	}
	
	.mobile {
		display: block;
	}
	
/* メインブロックの設定 */

	.main_block {
		flex-basis: 100%;	/*幅72％をリセット*/
		width: 100%;	
	}
	
	.side_block {
		display: none;
	}
	
/* indexページ */

	.time table {
		table-layout: auto;
		font-size: 100%;
		width: 96%;
	}
	
	.time th {
		
	}
	
	.time td {
	border: solid 1px green;
	padding: 10px 5px;
	color: green;
	background-color: white;
	}
	
	.font-large {
	font-size: 120%;
	}


	
/* page 4-5 */	

	ul.profile, ul.access-list {
		padding: 0;
		margin: 0;
		list-style-type: none;
	}

	ul.profile li, ul.access-list li {
		padding-left: 3em;/*文字の始まり位置の指定、1.5em+1em+0.5em */
		background-image: url(img/button_ul.png);
		background-repeat: no-repeat;
		background-size: 1em;
		background-position: 1.5em 4px;/*行頭文字の左端・上端からの位置*/
		margin-bottom: 15px;
	}
	
	#inquiry {
		display: block;
		width: 100%;
		height: auto;
		text-align: center;
		background-color: #FFFAF0;
	}
	
	div.name {
		padding-top: 0;
		font-size: 160%;
		font-weight: bold;
		color: green;
	}
	
	.image_mobile img {
		width: 100%;
	}
	

	div.phone {
		font-weight: bold;
		background-color: #FFFF99;
		display: inline-block;
		padding-top: 5px;
		padding-left: 20px;
		padding-right: 20px;
		margin-bottom: 12px;
	}
	
	.qr_mobile img {
		width: 30%;
	}

	.phone a {
		font-size: 180%;
		text-decoration: none;
		color: navy;
	}

	.toiawase {
		font-size: 160%;
		font-weight: bold;
		margin-top: 8px;
	}

}