@import url("reset.css");
body{

	box-sizing: border-box;
	color: #333;
	padding-top: 130px;
}
.top-image{
	max-width: 1080px;
	width: 90%;
	height: 500px;

	margin: 0 auto;
	text-align: center;

	display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.top-image h1{
	font-size: 54px;
	letter-spacing: 30px;
}
.top-image h2{
	font-size: 18px;
	letter-spacing: 8px;
	position: absolute;
	top: 100px;
}
.top-image h2 span{
	border: solid #333 1px;
	border-radius: 30px;
	padding: 8px 30px;

}
.top-text{
	width: 800px;
	margin: 0 auto;
	font-size: 20px;
	line-height: 2;
	color: #333;
	letter-spacing: 3px;
	padding: 100px 0;
	text-align: justify;
    text-justify: inter-ideograph;
border-bottom: solid 1px #333;
}
/* 診療内容 */
.container{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-template-rows: 150px;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 0 50px;
}
.midashi{
	width: 800px;
	margin: 0 auto;
	letter-spacing: 2px;
	padding: 80px 0 50px;
	border-bottom: solid 1px #333;
}
.midashi h3{
	text-align: center;
	font-size: 20px;
	line-height: 2;
	margin: 0 0 50px;
}
.midashi h5{
	text-align: center;
	font-size: 24px;
	line-height: 2.5;
	letter-spacing: 7px;
}
.midashi p{
	text-align: center;
	line-height: 2;
	margin: 0 0 30px 0;
	font-size: 18px;
}
.midashi .mini{
	font-size: 10px;
	letter-spacing: 1px;
}
.item{
	width: 75%;
	margin: 0 auto;
}
.item h3{
	text-align: left;
	font-size: 20px;
	line-height: 2;
	margin: 0 0 10px;
}
.item p{
	line-height: 2;
	margin: 0 0 0 30px;
	font-size: 16px;
}
.item span{
	color: #aaa;
}
.midashi h4{
	width: 30%;
	text-align: center;
	font-size: 20px;
	line-height: 2;
	letter-spacing: 3px;
	border: solid #333 1px;
	border-radius: 10px;
	padding: 20px 40px;
	background: #eee;
	margin: 20px auto 40px;
}
.midashi span{
	font-size: 20px;
}
.map {
	width: 400px;
	height: 400px;

}
.about{
	margin: 120px 0 0 0;
	padding: 110px;
	background-color: #e5e7e9;
}
.aboutus{
	width: 800px;
	margin: 0 auto;
}
.about-text{
	width: 50%;
	letter-spacing: 2px;
}
.about-text2{
	padding: 30px 0;
	width: 100%;
	letter-spacing: 2px;
}
.about h2,.reserve h2,.midashi h2{
	text-align: center;
	letter-spacing: 0.25em;
	font-size: 24px;
	margin: 0 0 60px;
}
.about h3{
	font-size: 20px;
	margin: 0 0 6px;
}
.about p{
	margin: 0 0 30px 0;
	line-height: 2;
}
.about-text h3{
	letter-spacing: 0.25em;
}
.about-text p{
	margin: 20px 0 10px 0;
}
.about-text em{
	font-size: 12px;
	line-height: 2;
	letter-spacing: 0;
}
.about-text2 em{
	font-size: 12px;
	line-height: 2;
	letter-spacing: 0;
}
.reserve{
	padding: 114px 0;
	width: 630px;
	margin: 0 auto;
}
.reserve h3{
	text-align: center;
	letter-spacing: 6px;
}
.reserve h3 span{
	border: solid #333 1px;
	border-radius: 30px;
	padding: 8px 30px;
}
.reserve table{
	width: 100%;
	margin: 80px 0 0;
	text-align: center;
}
.reserve table th,.reserve table td{
	border-bottom: solid #333 1px;
	padding: 20px;
	box-sizing: border-box;
}
.reserve table th{
	text-align: left;
}
.reserve table tr:last-child td{
	text-align: right;
}
.reserve table tr:last-child th,.reserve table tr:last-child td{
	border-bottom: none;
}
footer{
	background-color: #babebf;
	padding: 60px 0 40px;
}
footer .flex{
	width: 630px;
	margin: 0 auto 170px;
	text-align: center;
	line-height: 2;
	font-size: 12px;
}
footer .flex p{
	width: 50%;
}
footer .copy{
text-align: center;
font-size: 10px;
letter-spacing: 1px;
}
.fadeIn {
  opacity: 0;
  transition-duration: 500ms;
  transition-property: opacity, transform;
}

.fadeIn-up {
  transform: translate(0, 50px);
}

.fadeIn-down {
  transform: translate(0, -50px);
}

.fadeIn-left {
  transform: translate(-50px, 0);
}

.fadeIn-right {
  transform: translate(50px, 0);
}

.scrollIn {
  opacity: 1;
  transform: translate(0, 0);
}

/* スマホ改行 */
@media screen and (min-width: 768px){
.br-sp {display: none; }
}
@media screen and (max-width: 768px){
	.top-text,.midashi{
		width: 90%;
	}
	/* 診療内容 */
	.container{
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		grid-template-rows: 250px;
		max-width: 800px;
		margin: 0 auto;
		padding: 0 0 30px;
	}
	.about{
		padding: 110px 20px;
	}
	.aboutus {
    width: 90%;
}
	.about-text {
    width: 52%;
}
	.about-text2 {
	padding: 20px 0px;
    width: 100%;
}
.map {
    width: 300px;
    height: 300px;
}
.map iframe{
	width: 300px;
	height: 300px;
}
}
@media screen and (max-width: 469px){
	.top-image{

	width: 90%;
	height: 74vh;

}

	.reserve {

    width: 80%;

}
body {
    padding-top: 26px;
}
.top-image h2{
	font-size: 12px;
	top: 50px;
	letter-spacing: 4px;
}
.top-image h2 span {
    padding: 6px 15px;
}
.top-image h1 {
    font-size: 34px;
    letter-spacing: 7px;
}
.top-text, .midashi {
    width: 76%;
    font-size: 16px;
}
.aboutus {
    width: 80%;
}
.about-text {
    width: 100%;
}
.midashi h4{
	width: 50%;
	text-align: center;
	font-size: 18px;
	line-height: 2;
	letter-spacing: 2px;
	border: solid #333 1px;
	border-radius: 10px;
	padding: 20px 25px;
	background: #eee;
	margin: 30px auto;
}
.midashi h5{
	text-align: center;
	font-size: 18px;
	line-height: 2;
	letter-spacing: 5px;
}
.midashi span{
	font-size: 16px;
}
.item{
	width: 100%;
	margin: 0 auto;
}
.map {
    width: 100%;
    height: 300px;
}
.reserve table th{
	white-space: nowrap;
}
.reserve table{
	font-size: 14px;
}
footer .flex {
    width: 100%;

}
.reserve table th, .reserve table td {
    padding: 14px 6px;
}
footer .flex p {
    width: 100%;
    margin: 0 0 20px 0;
}
.map iframe{
	width: 100%;
	height: 300px;
}
.midashi h3,.midashi h2,.about h2, .reserve h2,.about h3{
	font-size: 20px;
}
}
