@charset "utf-8";

/*====================================================================================================

  共通部分

====================================================================================================*/

.l-pgTtl h2 {
	background: url("../image/visual.jpg") no-repeat center bottom;
}

.not-top .center-cols{
	width: 100%;
	max-width: 1124px;
	margin: 0 auto 120px;
}

.prevention-hdline{
	width: calc(100% - 100px);
	box-sizing: border-box;
	text-align: center;
	font-weight: 500;
	letter-spacing: .1ex;
	line-height: 1.2;
	margin: 0 auto 50px;
}

.prevention-hdline .lr-line{
	position: relative;
}
.prevention-hdline .lr-line::before{
	content: "";
	position: absolute;
	width: 30px;
	height: 1px;
	background-color: #0f9984;
	top: .75em;
	left: 0;
	-webkit-transform: translateX(-50px);
	transform: translateX(-50px);
}
.prevention-hdline .lr-line::after{
	content: "";
	position: absolute;
	width: 30px;
	height: 1px;
	background-color: #0f9984;
	top: .75em;
	right: 0;
	-webkit-transform: translateX(50px);
	transform: translateX(50px);
}

.prevention-gallery{
	display: grid;
}

@media screen and (min-width:641px) {
  .prevention-gallery{
		margin: 40px 0 160px;
		grid-template-columns: repeat(2,1fr);
		grid-column-gap: 40px;
		grid-row-gap: 40px;
  }
}

@media screen and (max-width:640px) {
	.prevention-gallery{
		margin: 40px 0 80px;
		grid-template-columns: repeat(1,1fr);
		grid-column-gap: 0px;
		grid-row-gap: 30px;
	}
	.prevention-hdline {
		width: 100%;
		z-index: 1;
		text-align: center;
	}
	.prevention-hdline::before {
		content: "";
		display: block;
		width: 40px;
		height: 4px;
		background-color: #0f9984;
		border-radius: 4px;
		margin: 12px auto;
	}
	.prevention-hdline .lr-line{
		position: relative;
		display: inline-block;
	}
	.prevention-hdline .lr-line::before,
	.prevention-hdline .lr-line::after{
		display: none;
	}
}


/*====================================================================================================

  イントロ

====================================================================================================*/

.pg-intro {	
	text-align: center;
	padding-bottom: 60px;
	position: relative;
}

.pg-intro p {
	position: relative;
	top: 1em;
	line-height: 2;
	letter-spacing: .1ex;
}

.pg-intro .round-wrap {
  width: 200px;
  height: 200px;
	margin: 0 auto;
	position: absolute;
	z-index: -1;
	top: 0;
	left: calc(50% - 100px);
}
.pg-intro .rotate {
  width: 100%;
  height: 100%;
  animation: rotate-anime 30s linear infinite;
}
@keyframes rotate-anime {
    0%  {transform: rotate(0);}
  100%  {transform: rotate(-360deg);}
}
.pg-intro .round {
  width: 100%;
  height: 100%;
  border-radius: 90% 70% 80% 70% / 90% 70% 80% 70%;
  animation: round_anime3 5s linear infinite;
  background-color: #E2F8F4;
}
@keyframes round_anime {
    0% { border-radius: 90% 70% 80% 70% / 90% 70% 80% 70%;}
   25% { border-radius: 70% 90% 70% 80% / 70% 90% 70% 80%;}
   50% { border-radius: 80% 70% 90% 70% / 80% 70% 90% 70%;}
   75% { border-radius: 70% 80% 70% 90% / 70% 80% 70% 90%;}
  100% { border-radius: 90% 70% 80% 70% / 90% 70% 80% 70%;}
}


/*====================================================================================================

  治療を終えたら

====================================================================================================*/

.end-box {
	width: 100%;
	display: flex;
	align-items: center;
	margin-bottom: 80px;
	position: relative;
}
.end-box:nth-child(odd) {
  flex-direction: row-reverse;
}

.end-box .photo {
	z-index: -1;
	width: 60%;
	display: block;
}
.end-box .desc {
	position: absolute;
	width: 50%;
	box-sizing: border-box;
	padding: 36px;
	background-color: #fff;
	box-shadow: 4px 4px 0 #E2F8F4;
}
.end-box:nth-child(odd) .desc {
  left: 0;
}
.end-box:nth-child(even) .desc {
  right: 0;
}

@media screen and (max-width:1120px) {
	.end-box {
		height: 500px;
	}
}

@media screen and (max-width:880px) {
	.end-box {
		display: block;
		height: auto;
		position: static;
	}
	.end-box .photo {
		z-index: 1;
		width: 100%;
		max-width: 600px;
		margin: 0 auto 36px;
	}
	.end-box .desc {
		position: static;
		width: 100%;
		padding: 0;
		box-shadow: none;
	}
}


/*====================================================================================================

  予防ってなに？

====================================================================================================*/

.wtp .photo {
	display: block;
	margin: 0 auto 40px;
}


/*====================================================================================================

  歯周病と全身疾患の関係性

====================================================================================================*/


@media screen and (max-width:1000px) {
	.disease .prevention-gallery {
		display: block;
		text-align: center;
	}
	.disease .prevention-gallery img {
		margin-bottom: 36px;
	}
}


/*====================================================================================================

  メインテナンス

====================================================================================================*/

.m-red {
  background: linear-gradient(rgba(255,255,255,0) 55%, #ffd3c7 55%);
  font-weight: 400; 
}

.m-blue {
  background: linear-gradient(rgba(255,255,255,0) 55%, #CAEDE2 55%);
  font-weight: 400; 
}

.m-green {
  background: linear-gradient(rgba(255,255,255,0) 55%, #81E69F 55%);
  font-weight: 400; 
}

.back-blue {
  background-color: #D1F0F7;
}

.maintenance-box {
  background-color: #eafaff;
  position: relative;
	display: flex;
	justify-content: space-between;
	padding: 36px;
	margin-bottom: 80px;
}
.maintenance-box:first-of-type {
	margin-top: 36px;
}
.maintenance-box:nth-child(odd) {
  flex-direction: row-reverse;
}

/*
.maintenance-box:not(:first-of-type)::before{
  content: "";
  z-index: 1;
  position: absolute;
  width: 2px;
  height: 100px;
  background-color: #ededed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}
*/
.maintenance-ttl {
	width: calc(50% - 18px);
	position: relative;
}

.maintenance-ttl .no {
  line-height:1;
  color:#37758a;
  font-weight:900;
	width: 120px;
	position:absolute;
	left:0em;
	top:-1.1em;
}

.maintenance-ttl .hdline {
  color:#0f9984;
  font-weight:500;
  line-height:1.4;
	margin-top: .5em;
	padding-bottom: .2em;
	border-bottom: 1px solid #0f9984;
}
    
.maintenance-ttl .desc {
  padding-top:1em;
  text-align:left;
}

.maintenance-photo {
	width: calc(50% - 18px);
}

.maintenance-photo.photos {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-pack:justify;
  -ms-flex-pack:justify;
  justify-content:space-between;
  -ms-flex-wrap:wrap;
  flex-wrap:wrap;
}

@media screen and (max-width:880px) {
	.maintenance-box {
		display: block;
	}
	.maintenance-ttl {
		width: 100%;
		margin-bottom: 36px;
	}
	.maintenance-ttl .no {
		top:-1.4em;
	}
	.maintenance-photo {
		width: 100%;
		max-width: 600px;
		margin: 0 auto;
	}
}



/*====================================================================================================

  当院の診療に関するQ&A

====================================================================================================*/
.qa-hdline{
  padding-top: 40px;
  margin-bottom: 40px;
}
.qa{
	padding-bottom: 80px;
}

.qa-box{
  border-radius:10px;
  background-color:#fff;
  margin-bottom: 80px;
  padding: 30px;
}
.qa-box:last-of-type{
  margin-bottom: 0px;
}

.qa-ttl{
  font-size:1.33em;
  font-weight: 400;
  padding-bottom: 10px;
  border-bottom: 3px dotted #dedede;
  text-indent: -2.22em;
  padding-left: 2.22em;
}

.qa-txt{
  text-indent: -2.4em;
  padding-left: 2.4em;
  
}
.qa-ttl::before{
  content: "Q.";
  font-weight: 400;
  color: #32a5d7;
}

.qa-txt::before{
  content: "A.";
  font-weight: 400;
  color: #eb3c46;
  line-height: 1.4;
}

.qa-ttl::before{
  font-size:1.66em;
  margin-right: 10px;
}

.qa-txt::before{
  font-size:2.11em;
  margin-right: 10px;
}

.qa-ttl{
  margin-bottom: 20px;
}

/*====================================================================================================

  セルフケアについて

====================================================================================================*/
.selfcare{
  display: flex;
  align-items: center;
}

@media print,screen and (min-width:641px) {
  .selfcare{
    margin-top: 80px;
    margin-bottom: 80px;
  }
	
  .selfcare-box dt{
    margin-bottom:20px;
  }
	
  .selfcare img{
    max-width:400px; 
  }
	
  .selfcare-box{
    margin-right: 30px;
  }
}

@media screen and (max-width:640px) {
  .selfcare{
    flex-wrap: wrap;
	margin-top: 60px;
    margin-bottom: 60px;
  }

  .selfcare-box dt{
    margin-bottom:10px;
  }
	
  .selfcare img{
    width: 100%; 
  }	
	
  .selfcare-box{
    margin-bottom: 20px;
  }
}
/*====================================================================================================

  POICウォーターについて

====================================================================================================*/
@media print,screen and (min-width:641px) {
  .poic-box{
    margin-bottom:20px;
  }
  .poic-box dt{
    margin-bottom:20px;
  }
}

@media screen and (max-width:640px) {
  .poic-box{
    margin-bottom:30px;
  }
  .poic-box dt{
    margin-bottom:10px;
  }
}
/* -----------------------------------------------------------------------------
	responsive img-auto-width
 -------------------------------------------------------------------------------*/

.img-auto-width {
	position:relative;
	width:calc(100% + 30px);
}

.img-auto-width img, .img-auto-width figure, .img-auto-width .item {
	width:calc(25% - 30px);
	height:auto;
	margin-right:30px;
	margin-bottom:30px;
	float:left;
	transition:0.3s;
}

.img-auto-width.column3 img, .img-auto-width.column3 figure, .img-auto-width.column3 .item {
	width:calc(33.333% - 30px);
}

/* figure */

@media screen and (max-width: 900px) {
	.img-auto-width img, .img-auto-width figure, .img-auto-width .item { width:calc(33.333% - 30px); }
}

@media screen and (max-width: 800px) {
	.img-auto-width img, .img-auto-width figure, .img-auto-width .item { width:calc(50% - 30px); }
}

@media screen and (max-width: 750px) {
	.img-auto-width { width: 100% !important; }
	.img-auto-width img, .img-auto-width figure, .img-auto-width .item { width:100% !important; }
	.img-auto-width.column4 { width:calc(100% + 30px) !important; }
	.img-auto-width.column4 figure, .img-auto-width.column4 .item { width:calc(50% - 30px) !important; }
}

.img-auto-width figure { text-align:center; }

.img-auto-width figure img {
	width:100% !important;
	height:auto;
	margin-bottom:15px;
}

/* alternative */

.img-auto-width .item a {
	width:100%;
	height:300px !important;
	display:block;
	background-position:center top;
	background-repeat:no-repeat;
	background-size:contain;
}

/* alternative figure */

.img-auto-width .item figure {
	width:100% !important;
}

.img-auto-width .item figure a {
	margin-bottom:15px;
}