@charset "utf-8";

/* home.css
 * おまかせプラン ver.7 - v1.0.0
 * 2022-09-01
 * **************************************************
 * Main Visual
 * Search
 * News links
 * like This（at a time like this）
 * Recommend
 * Loop img
 * **************************************************
 */

/* Main Visual
------------------------------------------------------------------- */
.main-visual {
  width: 100%;
}
.main-visual img{
  width:100%;
}

/* News links
------------------------------------------------------------------- */
.news-links{
	margin:0 20px;
}

.news-links__inner {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1250px;
}
.news-links h2{
  position:relative;
  padding-left:90px;
  min-height:117px;
  display:flex;
  align-items:center;
}

.news-links h2 span{
  width:100%;
  z-index: 1;
  font-size: 2.8em;
  color: #e27777;
  line-height: 1.2;
  font-family: 'Trebuchet MS', "ヒラギノ丸ゴ ProN W4","ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic ProN","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO", Meiryo, Arial, sans-serif;
  font-weight:bold;
  letter-spacing:7px;
}
.news-links h2::before{
  position:absolute;
  left:0px;
  top:30;
  display: block;
  content: '';
  background:url(../images/common/h2-icon.svg)no-repeat center/contain;
  width:87px;
  height:117px;}

.news-list h2 span::before {
  display: block;
  content: '';
  background:url(../images/home/news-text.png)no-repeat center/contain;
  width:93px;
  height:22px;
  margin-bottom:6px;
}
/* News */
.news-list {
  width:80%;
}
.news-list__header {
  overflow: hidden;
  z-index: 0;
  position: relative;
}
.news-list--link a{
  z-index: 2;
  width:110px;
  height:40px;
  display:inline-block;
  position:absolute;
  right:0;
  bottom:20px;
  background:url(../images/home/news-list.svg) no-repeat;
  text-decoration: none;
  font-size: 0;
  transition: 0.1s;}

.news-list--link a:hover{
  bottom:18px;
  background:url(../images/home/news-list_on.svg) no-repeat;
}
.news-list--link span{
  position:relative;}

.news-list__inner {
  z-index: 1;
  position: relative;
  padding-top:20px;
  height: 36.5em;
  overflow-y: scroll;
  background-color: #fff;
}
.news-list li {
  display: flex;
  font-size: 1.6em;
  line-height: 1.4;
  padding:0px 0 18px;
  border-bottom:1px solid #ededed;
}
.news-list li + li {
  margin-top: 1.0em;
}

.news-list__inner dl{
  display:flex;
}

.news-list__inner dt{
  display:flex;

}

.news-list--cat > span {
  display: inline-block;
  margin-right: 15px;
  padding: 2px 8px;
  width: 6.142em;
  border: 1px solid #7fc8c7;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  font-size: 75%;
  color: #7fc8c7;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.news-list--date {
  margin-right: 15px;
  white-space: nowrap;
}
.news-list li a {
  color: #000;
}
.news-list li a:hover {
  transform: scale(1, 1);
}
/* links */
.links {
  margin-left: 50px;
  max-width:260px;
  width:100%;
}
.links .links_list{
  margin-top:50px;
}
.links .links_list li + li,
.links .links_list li:first-child{
margin-bottom:10px;
}

.links .links_list li:hover{
  transform: translateY(0.2em);
}

.links .links_list li img{
  width:100%;
}

/* Like This（at a time like this）
------------------------------------------------------------------- */
.like-this {
  padding:230px 0 60px 0;
  position: relative;
  margin: 0 auto;
  background-color: #fff;
  background:url(../images/home/bg-B.webp)no-repeat top center/cover;
  font-family: 'Trebuchet MS', "ヒラギノ丸ゴ ProN W4","ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic ProN","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO", Meiryo, Arial, sans-serif;
  font-weight:bold;
}
.like-this__inner {
  max-width:1250px;
  margin:0 auto;
}
@media screen and (max-width: 1280px) {
  .like-this__inner {
      margin: 0 20px;
  }
}
.like-this h2 {
  margin-bottom: 50px;
  font-size: 2.8em;
  color: #333;
  font-weight:bold;
  line-height: 1.2;
  text-align:center;
  letter-spacing:15px;
}
.like-this__filter dl {
  display: flex;
  justify-content:center;
  margin: 5px 0 0 50px;
}
.like-this__filter dt {
  margin-right: 10px;
  font-size: 1.5em;
}
.like-this__filter dt:after {
  content: "：";
}
.like-this__filter dd {
  width: 13em;
  padding:10px 5px 9px;
  color:#333333;
  font-size: 1.6em;
  text-align: center;
  cursor: pointer;
  position:relative;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
  background-color: #f2c2c2;
  border: 1px solid #f2c2c2;
}
.like-this__filter dd:hover,
.like-this__filter dd.active {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius:0px;
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
  border-right: 1px solid #333333;
  background:none;
  border-bottom:0;
}

.like-this__filter dd + dd {
  margin-left: 10px;
}

/* Recommend
------------------------------------------------------------------- */
.recommend {
  margin:0 auto 0;
	padding:80px 20px 50px;
  background-color: #f8f7f6;
  font-family: 'Trebuchet MS', "ヒラギノ丸ゴ ProN W4","ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic ProN","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO", Meiryo, Arial, sans-serif;
}
.recommend h2 {
	margin-bottom: 50px;
  font-size: 2.8em;
  color: #333;
  font-weight:bold;
  line-height: 1.2;
  text-align:center;
  letter-spacing:15px;
}
.recommend  ul {
	padding:40px 40px 0;
	max-width: 1270px;
	width:100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin: auto;
	position:relative;
}

.recommend li {
	width: 32.0%;
}
.recommend li + li {
	margin-right: 2.0%;
	margin-bottom: 1.5%;
}
.recommend li:first-child {
	margin-right: 2.0%;
	margin-bottom: 1.5%;
}
.recommend li:nth-child(3n) {
	margin-right: 0;
}
.recommend li:nth-child(n + 3) {
	margin-bottom: 0;
}
.recommend a {
	display: table-cell;
	padding: 0 90px 0 40px;
	height: 111px;
	width: 32.0%;
	border-radius: 10px;
	font-size: 1.5em;
	font-family: "Lucida Grande", "segoe UI", "ヒラギノ丸ゴ ProN W4","ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic ProN","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO", Meiryo, Arial, sans-serif;
	font-weight: bold;
	color: #e27777;
	text-decoration: none; 
	line-height: 1.3;
	vertical-align: middle;
	border:1px solid #f2c2c2;
	background:#ffffff no-repeat center right 15px/74px;
	position:relative;
  transition: 0.3s;
}
.recommend a:hover {
  -webkit-box-shadow: 0 0 15px rgb(186 181 175 / 25%);
  box-shadow: 0 0 15px rgb(186 181 175 / 25%);
  transform: scale(1.05);
}
.recommend span {
	display: block;
	font-size: 78%;
}
/*  Illust（Mini Content） */
/* 接骨院にかかるとき */
.recommend li.osteopathic a {
	background-image:url(../images/home/recommend-osteopathic.svg);
}
/* ジェネリック医療の活用 */
.recommend li.generic a {
	background-image:url(../images/home/recommend-generic.svg);
}
/* 自動車事故にあったとき */
.recommend li.accident a {
	background-image:url(../images/home/recommend-accident.svg);
}
/* 時間外受診編 */
.recommend li.off-hours a {
	background-image:url(../images/home/recommend-off-hours.svg);
}
/* はしご受診編 */
.recommend li.ladder a {
	background-image:url(../images/home/recommend-ladder.svg);
}
/* かかりつけ受診編 */
.recommend li.doctor a {
	background-image:url(../images/home/recommend-doctor.svg);
}



@media screen and (max-width: 767px) {
  /* Main Visual
  ------------------------------------------------------------------- */
  .main-visual {
    display: block;
    width: 100%;
  }
  /* message用CSS */
  .main-visual__message {
    padding: 20px 10px 30px 10px;
    width: auto;
  }
  .main-visual__message span {
    margin-top: 10px;
    font-size: 2.4em;
  }
  .main-visual__message span::before {
    position: absolute; top: -15px; left: 30px;
    width: 150px;
    height: 57.5px;
    background-image: url(../images/home/message.svg);
    background-size: contain;
    vertical-align: middle;
  }
  .main-visual__message p {
    margin: 20px auto 0 auto;
    padding: 0 5px;
    width: -webkit-calc(92% - 18px);
    width: calc(92% - 18px);
    font-size: 1.3em;
  }
  .main-visual__message p::before {
    position: absolute; top: -35%; left: -20px;
    width: 12px;
    height: 85px;
    background-image: url(../images/home/open-braces.svg);
    background-size: contain;
  }
  .main-visual__message p::after {
    position: absolute; top: -35%; right: -20px;
    width: 12px;
    height: 85px;
    background-image: url(../images/home/close-braces.svg);
    background-size: contain;
  }

  /* 拡大表示用（1番目）CSS */
  .main-visual__top {
    width: auto;
  }
  .main-visual__top a {
    padding: 30px 15px;
    height: 120px;
    width : -webkit-calc(100% - 30px);
    width : calc(100% - 30px);
    font-size: 2.6em;
  }

  .main-visual__pickup {
    width: auto;
  }
  .main-visual__pickup > div {
    width : -webkit-calc(100% / 2);
    width : calc(100% / 2);
  }
  .main-visual__pickup a {
    padding: 30px 15px;
    height: 80px;
    width : -webkit-calc(100% - 30px);
    width : calc(100% - 30px);
    font-size: 1.8em;
    line-height: 1.4;
  }

 /*search
------------------------------------------------------------------- */
#home .search {
	display:block!important;
	margin:0;
	padding:0;
	background:#ffffff;
	padding:20px 10px 30px;
	border-bottom:1px solid #e27777;
}
#home .search__inner {
	margin: 0;
    width: auto;
    text-align: center;
  }
#home .search form {
	width:auto;
	height:auto;
}
	
 #home .search input[type="text"] {
    display:inline-block;
    font-size: 1.5em;
	 margin-right:5px;
	border:1px solid #dfdfdf;
	 border-radius:100vw;
	 padding:10px;
	 width:60%;
	 height:30px;
	 
  }

#home .search input[type="submit"] {
  display:inline-block;
	margin-top:0;
  top:0;
  right:0;
	height:30px;
  width:90px;
  font-size: 1.6em;
  aspect-ratio:inherit;
  background-image:none;
  background: #333333;
  -webkit-border-radius: 100vh;
  border-radius: 100vh;
  border: none;
  font-size: 1.6em;
  font-family: 'Trebuchet MS', "ヒラギノ丸ゴ ProN W4","ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic ProN","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO", Meiryo, Arial, sans-serif;
  font-weight: bold;
  color: #fff;
  text-indent:0!important;
  position:relative;
  padding: 2px 2px;
}
	

  /* News links
  ------------------------------------------------------------------- */

.news-links{
	margin:0px;
}
	
  .news-links__inner {
    display: block;
    justify-content: flex-start;
    margin: 0;
    padding:10px 0 0 0;
    max-width: none;
  }
  .news-links h2 {
	  font-size: 65%;
	  padding-left:75px;
	  letter-spacing:.5!important;
	  min-height:93px;
  }

  .news-links h2 span{
  letter-spacing:2px;}

.news-links h2::before{
  position:absolute;
  left:0px;
  width:68px;
  height:93px;}

.news-list--link a{
  width:60px;
  height:24px;
  right:15px;
  bottom:30px;}
	
  /* News */
  .news-list {
    width: 100%;
  }
  .news-list__header {
    padding:  10px 15px 10px 15px;
  }
  .news-list__inner {
	  border-top:1px solid #f1f1f1;
  }

.news-list__inner {
  height: 31em;
}
	
  .news-list li {
    display: block;
    font-size: 1.6em;
    padding: 0px 20px 15px 15px;
  }
  .news-list li + li {
    margin-top: 1.2em;
  }


.news-list__inner dl{
	display:block;
}
.news-list__inner dl dd{
	margin-top:10px;
}
	
  .news-list--cat > span {
    margin-right: 12px;
    padding: 2px 6px;
  }
	
  .news-list--date {
    margin-right: 0;
  }
  .news-list--date::after {
    content: "\A";
    white-space: pre;
  }

  /* links */
  .links {
    margin:30px 15px;
    width: auto;
	  max-width:100%;
  }
.links_list{
	margin-top:0!important;
	display:flex;
	justify-content:space-between;
	flex-wrap:wrap;
}
	
.links_list li{
	width:48%;
}
	

  /* like This（at a time like this）
  ------------------------------------------------------------------- */

.like-this {
  padding:80px 0 110px 0;
  background:url(../images/home/bg-B-sp.webp)no-repeat top center/cover}
  .like-this__inner {
    margin: 0 0;
    padding: 20px 0px;
    max-width: none;
  }
  .like-this h2 {
    float: none;
    margin-bottom: 0;
    font-size: 2.6em;
    text-align: center;
  }
  .like-this__filter dl {
    clear: both;
    display:flex;
	justify-content:space-between;
    margin: 0 10px 0 10px;
  }
  .like-this__filter dt {
    margin: 0 0 5px 0;
    font-size: 1.4em;
  }
  .like-this__filter dt:after {
    content: "";
  }
  .like-this__filter dd {
	display:flex;
	justify-content:center;
	align-items:center;
    min-width:auto;
    padding: 5px 5px;
    font-size: 1.2em;
	border-radius:100vw;
	border: 1px solid #333333;
	background:none;
  }
  .like-this__filter dd:hover,
  .like-this__filter dd.active{
	position:relative;
	  border-radius:100vw;
  background-color: #f2c2c2;
  border: 1px solid #f2c2c2;
  }

.like-this__filter dd.active::after{
	position:absolute;
	content:'';
	bottom:-10px;
	left:0;
	right:0;
	margin:auto;
	width: 0;
	height: 0;
	border-left:10px solid transparent;
	border-right:10px solid transparent;
	border-top:10px solid #f2c2c2;
}
	
.like-this__filter dd + dd {
  margin-left: 5px!important;
}
	
  .like-this__btn {
	margin-top:10px;
    margin-left: 15px;
  } 
  .like-this__btn li {
    width: -webkit-calc(50% - 17px);
    width: calc(50% - 17px);
  } 
  .like-this__btn li:first-child,
  .like-this__btn li + li {
    margin: 15px 15px 0 0;
  }
  .like-this__btn li a {
    height: 65px;
    font-size: 1.4em;
    letter-spacing: 0;
  }

  /* Recommend
  ------------------------------------------------------------------- */
  .recommend {
    margin-top: 50px;
	padding:0 0 50px;
  }
.recommend h2 {
    float: none;
    margin-bottom: 0;
    font-size: 2.6em;
    text-align: center;
  }
  .recommend ul {
    display: flex;
    flex-wrap:wrap;
	align-items:center;
    margin: 20px 15px 0 15px;
    width: auto;
	padding:0;
  }
	
  .recommend li {
    width: -webkit-calc(100% / 2);
    width: calc(100% / 2 - 5px);
	padding-bottom: 1.5%;
  }

.recommend li + li {
	margin-right: 0;
	padding-bottom: 1.5%;
}
.recommend li:first-child {
	margin-right: 0%;
	padding-bottom: 1.5%;
}
.recommend li:nth-child(3n) {
	margin-right:auto;

}
.recommend li:nth-child(n + 3) {
	margin-bottom:auto;
}
.recommend li:last-child {
	margin-right: 0;}

  .recommend li a {
    height: 65px;
    font-size: 1.6em;
    letter-spacing: 0.03em;
	padding:10px 60px 10px 10px;
	  background-position:right 5px center;
	  background-size:50px auto;
  }
  .recommend li span {
    font-size: 55%;
  }

  
}
