@import "common.css";

/*------------------------------
ホーム
-------------------------------*/

/*------------------------------
ホーム - スライドショー
-------------------------------*/
@media screen and (max-width: 499px) {
	.swiper-container {
		width: 100%;
		height: 300px;
	}
}

@media screen and (min-width: 500px) {
	.swiper-container {
		width: 100%;
		height: 600px;
	}
}

.swiper-wrapper {
	text-align: center;
}

.swiper-slide {
	position: relative;
}

.swiper-slide img {
	width: 100%;
	height: 100%;
}

/*------------------------------
ホーム - お知らせ
-------------------------------*/

.news h3 {
	font-size: 18px;
}

.news {
	border: 1px solid black;
	padding: 5px;
	height: 170px;
	font-weight: bold;
	background-color: royalblue;
	color: #fff;
	margin: 50px auto;
}

@media screen and (max-width: 499px) {
	.news {
		width: 95%;
	}
}

@media screen and (min-width: 500px) {
	.news {
		width: 80%;
	}
}

#news_head {
	display: flex;
	width: 100%;
}

#news_head a {
	margin-right: 10px;
	margin-left: auto;
	font-weight: bold;
	color: #fff;
}

.box_textarea {
	border: 1px solid royalblue;
	background-color: #f9f9f9;
	color: #000;
	font-size: 12px;
	width: 100%;
	height: 120px;
	padding: 5px;
	overflow: scroll;
}

.news_grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	padding: 1px 0;
	border-bottom: 1px dotted #000;
}

#news_new {
	width: 100%;
	max-width: 20px;
	grid-column: 1 / 2;
	margin: 0 auto;
}

#news_kbn {
	width: 100%;
	max-width: 40px;
	grid-column: 2 / 3;
	margin: 0 auto;
}

#news_title {
	width: 100%;
	grid-column: 3 / 13;
}

/*------------------------------
ホーム - 当院の特徴
-------------------------------*/
.features_grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: 50% 50%;
	grid-gap: 10px;
	padding: 0 5%;
}

.link_design {
	width: 95%;
	position: relative;
	display: inline-block;
	height: 80px;
	font-size: 12px;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	padding: 12px 24px;
	border-radius: 10px;
	background-image: linear-gradient(
		-90deg,
		rgb(121, 255, 210),
		rgb(52, 184, 0)
	);
	transition: 0.5s;
	background-size: 200%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 1099px) {
	#feature_one {
		width: 100%;
		grid-column: 1 / 3;
	}

	#feature_two {
		width: 100%;
		grid-column: 3 / 5;
	}

	#feature_three {
		width: 100%;
		grid-column: 5 / 7;
	}

	#feature_four {
		width: 100%;
		grid-column: 2 / 4;
	}

	#feature_five {
		width: 100%;
		grid-column: 4 / 6;
	}
}

@media screen and (min-width: 500px) and (max-width: 1099px) {
	.link_design {
		width: 70%;
	}
}

@media screen and (min-width: 1100px) {
	.features_grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		grid-auto-rows: minmax(150px, auto);
		grid-gap: auto;
		padding: 0 15%;
	}

	.link_design {
		position: relative;
		display: inline-block;
		width: 180px;
		height: 100px;
		font-size: 16px;
		top: 20%;
		left: 50%;
	}
}

#detail {
	text-align: center;
	width: 100%;
	margin-top: 25px;
}

#detail h1 {
	font-weight: bold;
	font-size: 30px;
}

.feature_top,
.feature_bottom {
	margin: 0;
	border-radius: 10%;
	width: 20%;
	padding: 0 1%;
}

/* リンクデザイン */

.link_design span {
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	width: 100%;
}

.link_design:hover {
	background-position: right center;
}

/*------------------------------
ホーム - メイン
-------------------------------*/
@media screen and (max-width: 1099px) {
	#main {
		padding: 30px 5%;
	}
}

@media screen and (min-width: 1100px) {
	#main {
		padding-left: 20%;
		padding-right: 20%;
		padding-top: 50px;
		padding-bottom: 30px;
	}
}

#main p {
	padding-left: 20px;
}

#main h2 {
	font-size: 18px;
	border-bottom: 2px solid #999999;
}

#main h3 {
	font-size: 16px;
	font-weight: bold;
	margin-top: 10px;
}

#greeting-title,
#medical-time-title,
#vaccine-reservation-title,
#counterplan_covid-19,
#influenza-reservation-title,
#teiji-jiko-title,
#visiting_clinic,
#barrier_free,
#no_smoking {
	margin-top: 50px;
	margin-bottom: 20px;
}

#visiting_clinic {
	margin-top: 20px;
	margin-bottom: 20px;
}

#main h2:before {
	content: "●";
	margin-right: 5px;
}

/*------------------------------
ホーム - 挨拶
-------------------------------*/
#greeting {
	padding-bottom: 50px;
}

#revised-score {
	padding-left: 20px;
	margin-top: 20px;
}

#revised-score ul {
	padding-left: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

#revised-score li {
	margin-top: 2px;
	margin-bottom: 2px;
}

#clinic-name {
	text-align: right;
	padding-right: 5%;
	margin-top: 30px;
}

/*------------------------------
ホーム - 診療時間
-------------------------------*/
#medical-time {
	width: 100%;
	margin-bottom: 20px;
}

#md-tbl {
	width: 90%;
	border: 2px #999999 solid;
}

#md-tbl tr {
	font-size: 14px;
	border: 2px #999999 solid;
}

#md-tbl th {
	text-align: left;
	font-size: 18px;
	border: 2px #999999 solid;
	padding: 5px;
}

#md-tbl td {
	font-size: 18px;
	padding: 0 5px;
	text-align: center;
	vertical-align: middle;
	border: 2px #999999 solid;
}

#row-week {
	font-weight: bold;
}

#row_pm td span {
	font-size: 10px;
	font-weight: bold;
}

#saturday {
	color: blue;
}

#sunday {
	color: red;
}

#row_pm th span {
	font-size: 16px;
}

#mttable {
	text-align: left;
	margin: 50px auto;
}

@media screen and (max-width: 499px) {
	#md-tbl th {
		font-size: 16px;
	}

	#row_pm th span {
		font-size: 14px;
	}
}

@media screen and (min-width: 1100px) {
	#mttable {
		width: 80%;
		max-width: 800px;
	}
}

/*------------------------------
ホーム - ワクチン予約
-------------------------------*/
#vaccine-reservation {
	width: 100%;
	margin-bottom: 20px;
}

#vr-tbl {
	width: 90%;
	border: 2px #999999 solid;
}

#vr-tbl tr {
	font-size: 14px;
	border: 2px #999999 solid;
}

#vr-tbl th {
	text-align: center;
	vertical-align: middle;
	font-size: 18px;
	border: 2px #999999 solid;
	padding: 5px;
}

#vr-tbl td {
	font-size: 18px;
	padding: 0 5px;
	vertical-align: middle;
	border: 2px #999999 solid;
}


#vrtable {
	text-align: left;
	margin: 50px auto;
}

#row_vaccine td {
	text-align: center;
}

@media screen and (max-width: 499px) {
	#vr-tbl th {
		font-size: 16px;
	}

	#row_schedule td {
		font-size: 14px;
	}

	#row_method td {
		font-size: 14px;
	}
}

@media screen and (min-width: 1100px) {
	#vrtable {
		width: 80%;
		max-width: 800px;
	}
}

/*------------------------------
ホーム - インフルエンザ予防接種
-------------------------------*/
#influenza-reservation {
	width: 100%;
	margin-bottom: 20px;
}

/*------------------------------
ホーム - 優しいクリニック
-------------------------------*/
#senior_first {
	margin: 50px 0;
}

#friendly_clinic_grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	width: 100%;
	height: 60px;
	border: 2px #999999 solid;
	border-radius: 20px;
	padding: 0 10px;
}

#friendly_clinic img {
	width: 100%;
	grid-column: 1 / 2;
	text-align: center;
	margin: auto 0;
}

#friendly_clinic label {
	width: 100%;
	grid-column: 2 / 13;
	text-align: left;
	margin: auto 0;
	font: 18px bold;
	padding-left: 10px;
}

@media screen and (max-width: 799px) {
	#friendly_clinic {
		width: 100%;
	}
}

@media screen and (min-width: 800px) {
	#friendly_clinic {
		width: 70%;
	}
}

.senior_content {
	margin-bottom: 20px;
}

#visiting_clinic {
	margin: 20px 0;
}

.senior_content_vertical {
	display: block;
	width: 100%;
}

@media screen and (max-width: 499px) {
	.senior_content {
		display: block;
	}

	.senior_content_img {
		text-align: center;
		margin: 15px auto;
		width: 70%;
		max-width: 500px;
	}
}

@media screen and (min-width: 500px) {
	.senior_content {
		display: flex;
	}

	.senior_content_text {
		width: 70%;
	}

	.senior_content_img {
		width: 30%;
		padding: 10px;
		display: flex;
	}

	.senior_content_img_vertical {
		width: 100%;
		padding: 10px;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
}

.senior_content_img img {
	width: 100%;
	max-width: 500px;
	margin: 15px auto;
}

.senior_content_img_vertical img {
	text-align: center;
	width: 80%;
	max-width: 500px;
	max-height: 300px;
	margin: 15px;
}
