@charset "utf-8";

/* =========================================================
   TOP PAGE RESPONSIVE
   PC版は既存CSSを使用
   1021px以下のみレスポンシブ化
   ========================================================= */

@media screen and (max-width: 1021px) {

	/* =========================================
	   基本
	   ========================================= */

	#toppage {
		min-width: 0;
		width: 100%;
		overflow-x: hidden;
	}

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

	#toppage .idx_wrap {
		width: auto;
		max-width: 100%;
		margin-right: 15px;
		margin-left: 15px;
		box-sizing: border-box;
	}

	#toppage .idx_contents {
		float: none;
		width: 100%;
	}

	#toppage .idx_subtitle01 {
		font-size: 22px;
		line-height: 1.4;
	}


	/* =========================================
	   ヘッダー
	   common.cssのスマホヘッダーを利用
	   ========================================= */

	#toppage header {
		float: none;
		height: 115px;
	}

	#toppage #header_wrap {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: 115px;
		margin: 0;
	}

	#toppage #header_wrap > p {
		margin: 12px 0 0 15px;
		text-align: left;
	}

	#toppage #header_wrap > p img {
		display: block;
		width: 88px;
		height: auto;
	}


	/* =========================================
	   メインビジュアル
	   ========================================= */

	#toppage #idx_main {
		position: relative;
		float: none;
		width: 100%;
		height: auto;
		min-height: 0;
		margin: 0 0 50px;
		overflow: hidden;
		background: none;
	}

	/*
	   fadeshowが生成する #master0 を
	   スマホ幅いっぱいにする
	*/

	#toppage #master0 {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		overflow: hidden;
	}

	#toppage #canvas0_0,
	#toppage #canvas0_1 {
		position: relative;
		width: 100% !important;
		height: auto !important;
	}

	#toppage #master0 img,
	#toppage #canvas0_0 img,
	#toppage #canvas0_1 img {
		display: block;
		width: 100% !important;
		height: auto !important;
		max-width: none;
	}

	/*
	   slidescriptが高さを固定してしまう場合の保険
	*/

	#toppage #idx_main > div {
		max-width: 100%;
	}


	/* =========================================
	   CONCEPT
	   旧absolute配置を解除
	   ========================================= */

	#toppage #concept {
		margin-bottom: 75px;
	}

	#toppage #concept .idx_wrap {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		height: auto;
	}

	#toppage #concept .idx_wrap h1 {
		position: static;
		grid-column: 1 / -1;
		width: 100%;
		margin: 0 0 30px;
		font-size: 18px;
		line-height: 1.7;
		text-align: center;
	}

	#toppage #concept .concept_img01,
	#toppage #concept .concept_img02,
	#toppage #concept .concept_img03 {
		position: static !important;
		display: block;
		width: 100%;
		height: auto;
	}

	/*
	   1枚目を大きく
	*/

	#toppage #concept .concept_img03 {
		grid-column: 1 / -1;
	}

	#toppage #concept .concept_img01,
	#toppage #concept .concept_img02 {
		width: 100%;
	}


	/* =========================================
	   CONTENTS
	   PC 2列 → スマホ1列
	   ========================================= */

	#toppage #works {
		margin-bottom: 85px;
	}

	#toppage #works .idx_wrap .idx_subtitle01 {
		margin-bottom: 35px;
		background: none;
	}

	#toppage #contentsList {
		width: 100%;
		margin: 0;
	}

	#toppage #contentsList ul {
		display: block;
		width: 100%;
		margin: 0;
	}

	#toppage #contentsList li {
		float: none;
		width: 100%;
		margin: 0 0 35px;
	}

	#toppage #contentsList li:last-child {
		margin-bottom: 0;
	}

	#toppage #contentsList li dl {
		width: 100%;
	}

	#toppage #contentsList li dt {
		width: 100%;
	}

	#toppage #contentsList li dt img {
		display: block;
		width: 100%;
		height: auto;
	}

	#toppage #contentsList li dd {
		margin: 10px 0 0;
		font-size: 13px;
		line-height: 1.8;
	}

	#toppage #contentsList li dd br {
		display: none;
	}


	/* =========================================
	   NEWS
	   PC 3列 → SP 1列
	   ========================================= */

	#toppage #event {
		margin-bottom: 85px;
	}

	#toppage #event .idx_wrap .idx_subtitle01 {
		float: none;
		width: 100%;
		margin-bottom: 30px;
		background: none;
	}

	#toppage #event article {
		width: 100%;
		margin: 0;
	}

	#toppage .newsList {
		display: block;
		width: 100%;
		margin: 0;
	}

	#toppage .newsList li {
		float: none;
		width: 100%;
		height: auto;
		min-height: 0;
		margin: 0 0 15px;
		padding: 20px;
		background: #f5f5f5;
		box-sizing: border-box;
	}

	#toppage .newsList .date {
		margin: 0 0 8px;
		font-size: 11px;
		text-align: left;
	}

	#toppage .newsList .title {
		margin: 0 0 10px;
		font-size: 14px;
		line-height: 1.7;
		text-align: left;
	}

	#toppage .newsList dd {
		height: auto;
		margin: 0;
		font-size: 12px;
		line-height: 1.8;
		overflow: visible;
	}

	#toppage .newsList .new_mark {
		font-size: 10px !important;
	}


	/* =========================================
	   INFORMATION
	   tableレイアウトをスマホで縦並び化
	   ========================================= */

	#toppage #access {
		margin-bottom: 70px;
	}

	#toppage #access .idx_subtitle01 {
		margin-bottom: 30px;
	}

	#toppage #access .box02 {
		float: none;
		width: 100% !important;
	}


	/* GoogleMap＋周辺地図 */

	#toppage .flame {
		display: block;
		float: none;
		width: 100%;
		margin: 0;
	}

	#toppage .flame tbody,
	#toppage .flame tr,
	#toppage .flame td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}

	#toppage .flame td {
		margin-bottom: 15px;
	}

	#toppage .flame iframe {
		display: block;
		width: 100% !important;
		height: 300px;
		border: 0;
	}

	#toppage .flame td img {
		display: block;
		width: 100%;
		height: auto;
	}


	/* 電話・住所・駐車場 */

	#toppage .flame2 {
		display: block;
		float: none;
		width: 100%;
		margin: 25px 0 0;
	}

	#toppage .flame2 tbody,
	#toppage .flame2 tr,
	#toppage .flame2 td {
		display: block;
		width: 100% !important;
		height: auto !important;
		box-sizing: border-box;
	}

	#toppage .flame2 tr {
		position: relative;
		margin-bottom: 25px;
		padding-bottom: 20px;
		border-bottom: 1px solid #ddd;
	}

	#toppage .flame2 td {
		padding: 0;
		text-align: left;
	}

	/*
	   tel / pin / parking の小画像
	*/

	#toppage .flame2 td[height] {
		margin-bottom: 7px;
	}

	#toppage .flame2 td[height] img {
		width: auto;
		max-width: 100%;
		height: auto;
	}

	#toppage .flame2 .sand {
		display: block;
		margin-bottom: 5px;
		font-size: 24px;
		line-height: 1.4;
	}

	/*
	   診療時間
	*/

	#toppage .flame2 .fs {
		margin-top: 25px;
		padding: 20px 0 0;
		border-top: 1px solid #ddd;
		font-size: 11px;
		line-height: 1.8;
	}

	#toppage .flame2 .fs img {
		display: block;
		width: 100%;
		max-width: 520px;
		height: auto;
		margin-bottom: 10px;
	}


	/* =========================================
	   フッター
	   common.cssに基本設定あり
	   TOP特有の上書きだけ
	   ========================================= */

	#toppage footer {
		float: none;
		margin-top: 60px;
		padding-top: 60px;
	}

	#toppage footer p {
		margin-bottom: 25px;
	}

	#toppage #copyright {
		margin-bottom: 30px;
	}

}


/* =========================================================
   767px以下
   ========================================================= */

@media screen and (max-width: 767px) {

	/* コンセプト */

	#toppage #concept {
		margin-bottom: 65px;
	}

	#toppage #concept .idx_wrap {
		gap: 8px;
	}

	#toppage #concept .idx_wrap h1 {
		margin-bottom: 22px;
		font-size: 17px;
	}


	/* CONTENTS */

	#toppage #works {
		margin-bottom: 70px;
	}

	#toppage #contentsList li {
		margin-bottom: 30px;
	}


	/* NEWS */

	#toppage .newsList li {
		padding: 18px 15px;
	}


	/* MAP */

	#toppage .flame iframe {
		height: 260px;
	}

}


/* =========================================================
   480px以下
   ========================================================= */

@media screen and (max-width: 480px) {

	#toppage .idx_wrap {
		margin-right: 12px;
		margin-left: 12px;
	}

	#toppage #concept .idx_wrap h1 {
		font-size: 16px;
	}

	#toppage #contentsList li dd {
		font-size: 12px;
	}

	#toppage .flame iframe {
		height: 230px;
	}

}


/* =========================================================
   MAIN SLIDER
   ========================================================= */

#idx_main {
	position: relative;
	width: 100%;
	margin: 12px 0 40px;
	overflow: hidden;
}

.main-slider {
	position: relative;
	width: 1500px;
	max-width: none;
	margin: 0 auto;
	aspect-ratio: 1500 / 803;
	overflow: hidden;
	background: #fff;
}

.main-slider__item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1.8s ease;
	z-index: 1;
}

.main-slider__item.is-active {
	opacity: 1;
	z-index: 2;
}

.main-slider__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (min-width: 1021px) {
	.sp_top{
		display: none!important;
	}
}

/* スマホ */

@media screen and (max-width: 1021px) {
	.pc_top{
		display: none!important;
	}

	#idx_main {
		margin-top: 0;
		margin-bottom: 40px;
	}

	.main-slider {
		aspect-ratio: 1179 / 1871;
	}

	.main-slider__item img {
		object-fit: cover;
		object-position: center center;
	}

}
@media screen and (max-width: 1500px) {

	.main-slider {
		left: auto;
		width: 100%;
		margin-left: 0;
		/*aspect-ratio: 1179 / 1871;*/
	}

}
@media screen and (max-width: 1021px) {

	#toppage header nav#nav {
		display: none;
	}

	#toppage.menu-open header nav#nav {
		display: block;
	}

}

/* =========================================================
   TOP ハンバーガーメニュー
   ========================================================= */

@media screen and (max-width: 1021px) {

	#toppage header {
		position: relative !important;
		z-index: 10000 !important;
	}

	#toppage #header_wrap {
		position: relative !important;
		z-index: 10000 !important;
	}

	#toppage .menu-toggle {
		position: absolute;
		z-index: 10002 !important;
		pointer-events: auto !important;
	}

	#toppage header nav#nav {
		z-index: 10001 !important;
	}

	#toppage #idx_main {
		z-index: 1 !important;
	}

}