/*	title
----------------------------------------------- */

#case #title {
  padding: 50px 0 25px 0;
  border-bottom: 3px solid #006cb8;
}

#case #title h1 {
  font-size: 1.5em;
  width: 1000px;
  margin: 0 auto;
  font-weight: bold;
}

#case #title h1 span {
  color: #006cb8;;
  font-weight: bold;
  font-size: 0.6em;
}




/*	case list
----------------------------------------------- */
#case #case-list {
  margin: 50px 0 0 0;
  display: flex;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  flex-wrap:wrap;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
}

#case #case-list li {
    margin: 0 0 70px 20px;
    overflow: hidden;
}

#case #case-list li:nth-of-type(4n-3) {
    margin: 0;
}

#case #case-list li a {
    display: block;
    width: 235px;
    height: 306px;
    background: #ffffff;
}

#case #case-list li img {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

#case #case-list .tmb-wrapper {
  overflow: hidden;
  height: 152px;
  position: relative;
}

#case #case-list .text-wrapper {
  padding: 15px;
}

#case #case-list .date {
  font-size: 0.8em;
}

#case #case-list .title {
  line-height: 1.4em;
  font-size: 0.9em;
  font-weight: bold;
  margin: 8px 0 0 0;
}

#case #case-list .caption {
  font-size: 0.9em;
  line-height: 1.5em;
  margin: 15px 0 0 0;
}



/*	pagenation
----------------------------------------------- */
#case #pagination {
  text-align: center;
  margin: 0 0 100px 0;
}

#case #pagination a {
  font-size: 0.9em;
  display: inline-block;
  width: 24px;
  height: 24px;
  padding: 6px;
  box-sizing: border-box;
}

#case #pagination a.current {
  color: #ffffff;
  -webkit-border-radius: 12px;/* width,heightの半分 */
  -moz-border-radius: 12px;
  border-radius: 12px;
  background-color: #595858;/* 円の色 */
}




/*	case detail
----------------------------------------------- */
#case #case-detail article .date {
  margin: 45px 0 0 0;
}

#case #case-detail article h3 {
  font-size: 1.6em;
  font-weight: bold;
  margin: 15px 0 0 0;
}

#case #case-detail article .content {
  margin: 20px 0 0 0;
}

#case #case-detail article .content p {
  line-height: 1.5em;
}

#case #case-detail article .content p a {
  color: #006cb8;
  display: inline-block;
  /*font-weight: 700;*/
  margin-right: 5px;
  text-decoration: underline;
}

#case #case-detail .to-list-button a {
    font-size: 0.8em;
    text-align: center;
    display: block;
    width: 205px;
    height: 34px;
    background: url(/lib/img/case/to-list-button.png) no-repeat;
    background-size: 100%;
    padding: 11px 10px;
    margin: 90px auto;
}




/* mediaquery max-width 640px
-------------------------------------------------------------------- */
@media screen and (max-width: 640px)  {
  #case #title h1 {
    text-align: center;
    font-size: 1.8em;
    line-height: 1.2em;
    width: 640px;
  }

  #case .container {
    padding: 0 32px 85px 32px;
  }

  #case #case-list {
    margin: 28px 0 0 0;
    display: inherit;
  }

  #case #case-list li {
    margin: 40px 0 0 0;
  }

  #case #case-list li:nth-of-type(4n-3) {
    margin: 40px 0 0 0;
  }

  #case #case-list li a {
    width: 100%;
    height: 186px;
  }

  #case #case-list li img {
    float: left;
  }

  #case #case-list li .tmb-wrapper {
    float: left;
    height: 186px;
    width: 288px;
  }

  #case #case-list li .text-wrapper {
    width: 288px;
    float: right;
  }

  #case #case-list li .date {
    font-size: 0.9em;
  }

  #case #case-list li .title {
    font-size: 1.1em;
  }

  #case #case-list li .caption {
    font-size: 1.1em;
    line-height: 1.6em;
  }

  #case #pagination {
      margin: 60px 0 0 0;
  }

  #case #pagination a {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  #case #pagination a.current {
    -webkit-border-radius: 20px;/* width,heightの半分 */
    -moz-border-radius: 20px;
    border-radius: 20px;
  }

  #case #case-detail .to-list-button {
    top: inherit;
    left: inherit;
    bottom: 0px;
    left: calc(50% - 144px);
  }

  #case #case-detail .to-list-button a {
    font-size: 1.1em;
    width: 288px;
    height: 47px;
    background-size: 100%;
    padding: 15px 24px;
    margin: 60px auto 0 auto;
  }
}
