@charset "UTF-8";
/*!
加藤歯科医院向けトップページCSS
ver0.1 2014/06/4
*/
/*============================================================
コンテンツ
============================================================*/
/*-------------------------
ヴィジュアル
-------------------------*/
#visual {
  margin-top: 15px;
  background: url(../images/bg_mv.png) left -15px repeat-x;
  text-align: center;
}
#visual img {
  vertical-align: bottom;
}

/*-------------------------
メインコンテンツ
-------------------------*/
#contentsWrap {
  margin-top: 0;
}

#contentsInner {
  width: 960px;
  margin: 0 auto;
  padding: 20px 10px 40px;
}

/*メインの診療カード*/
#cardBox li {
  float: left;
  width: 300px;
  margin-right: 20px;
}
#cardBox li:last-child {
  margin-right: 0;
}
#cardBox a {
  position: relative;
  display: block;
}
#cardBox a span {
  position: absolute;
  overflow: hidden;
  display: inline-block;
  width: 238px;
  height: 58px;
  top: 146px;
  left: 15px;
  font-size: 0.875rem;
  line-height: 130%;
}
#cardBox a:hover {
  color: #294e8e;
}

#mainContents {
  float: right;
  width: 620px;
  margin-top: 20px;
}

div.greetWrap {
  margin-top: 20px;
}
div.greetWrap div {
  width: 430px;
}
div.greetWrap div p:first-child {
  margin-top: 0;
}

#newsWrap {
  margin-top: 20px;
}
#newsWrap ul {
  margin-top: 20px;
}
#newsWrap li {
  margin-top: 20px;
  margin-left: 10px;
  padding-left: 12px;
  background: url(../images/list_arrow01.png) left 5px no-repeat;
  font-size: 0.875rem;
}
#newsWrap li:first-child {
  margin-top: 0;
}
#newsWrap li span {
  margin-right: 5px;
}
#newsWrap p a {
  text-decoration: underline;
}

#sideWrap {
  float: left;
  width: 300px;
  margin-top: 20px;
}

#sideNavi {
  margin-top: 15px;
}
#sideNavi h2 {
  padding-left: 56px;
  background: url(../images/heading01.png) left top no-repeat;
  color: #fff;
  font-size: 1.375rem;
  line-height: 50px;
}
#sideNavi ul {
  margin-top: 5px;
  padding: 15px 0;
  background: #fadeb8;
}
#sideNavi li {
  margin: 10px 10px 0;
  padding-bottom: 8px;
  border-bottom: #828282 dotted 1px;
  font-size: 1.25rem;
}
#sideNavi li:first-child {
  margin-top: 0;
}
#sideNavi a {
  display: block;
  color: #565656;
  text-decoration: none;
}
#sideNavi a:hover {
  color: #aaa;
}

#sideLink {
  margin-top: 10px;
}

.side_bannerArea {
  margin-top: 30px;
}
.side_bannerArea li {
  margin-top: 5px;
}
.side_bannerArea li:first-child {
  margin-top: 0;
}
.side_bannerArea img {
  width: 100%;
  height: auto;
}

.side_bannerArea-upper p:not(:first-child) {
  margin-top: 10px;
}
.side_bannerArea-upper img {
  width: 100%;
  height: auto;
}

/*============================================================
MQ
============================================================*/
@media only screen and (max-width: 640px) {
  header h1 img {
    width: 50%;
    height: auto;
  }

  /*-------------------------
  メインコンテンツ
  -------------------------*/
  #contentsInner {
    width: 100%;
    padding-top: 5px;
  }

  /*メインの診療カード*/
  #cardBox ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
  }
  #cardBox li {
    float: none;
    width: calc(100% / 3);
    margin-right: 0;
  }
  #cardBox li:not(:first-child) {
    margin-left: 0.8rem;
  }
  #cardBox a span {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0 0.4rem;
    line-height: 1.3;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mainContents {
    float: none;
    width: 100%;
    padding: 0.5rem;
  }

  div.greetWrap {
    margin-top: 1rem;
  }
  div.greetWrap div {
    width: 100%;
  }
  div.greetWrap img {
    display: none;
  }

  #sideWrap {
    float: none;
    width: 100%;
  }

  #sideNavi {
    display: none;
  }
}
/* ============================================================
 * 2022.05.01以降に更新されたスタイル
 * ========================================================= */
.toppage_title {
  margin-top: 1.5rem;
}

.header_clinicName {
  margin-top: 0.5rem;
  color: #5EA02D;
  font-size: 3.6rem;
}

.toppage_specialist {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
}
.toppage_specialist img {
  width: 100%;
  height: auto;
}

.specialist_txt {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.specialist_img {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 40%;
          flex: 0 0 40%;
  padding-top: 1rem;
}

@media only screen and (max-width: 640px) {
  .toppage_specialist {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .specialist_txt {
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
  }
  .specialist_txt p:first-child {
    margin-top: 0;
  }

  .specialist_img {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
}
/*# sourceMappingURL=index.css.map */