/* case */
@media all and (-ms-high-contrast:none) {
  .mainvisual .container {
    margin: 0;
  }
}

#case .case .items {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

#case .case .items .item {
  width: calc((100% - 90px)/ 4);
  margin: 0 30px 30px 0;
}

#case .case .items .item:nth-child(4n) {
  margin-right: 0;
}

#case .case .card {
  width: 270px;
  height: 450px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 0px 15px rgba(212, 209, 199, .7);
  color: #000;
  margin: 0 auto;
}

.card_zoomimage {
  width: 270px;
  height: 160px;
  overflow: hidden;
}

#case .case a .card .card_zoomimage .coverimage {
  width: 100%;
  height: auto;
  display: block;
  transition: .2s;
}

#case .case .card .card_contents {
  position: relative;
}

#case .case a .card .card_contents span {
  position: absolute;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #666;
  bottom: -30px;
  right: 20px;
  transition: .2s;
}

#case .case a .card .card_contents span:after {
  position: absolute;
  content: '';
  width: 7px;
  height: 7px;
  top: 6px;
  left: 4px;
  border-top: 1px solid #666;
  border-left: 1px solid #666;
  transform: rotate(135deg);
  transition: .2s;
}

#case .case a:hover .card .card_contents span {
  transition: .2s;
  background-color: #666;
}

#case .case a:hover .card .card_contents span:after {
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  transition: .2s;
}

#case .case a .card .card_contents {
  color: #000;
}

#case .case a .card {
  transition: .2s;
}

#case .case a:hover .card {
  transition: .2s;
  box-shadow: 0px 0px 25px 5px rgba(212, 209, 199, .7);
}

#case .case a:hover .card .card_zoomimage .coverimage {
  transition: .2s;
  transform: scale(1.3, 1.3);
  -webkit-transform: scale(1.3, 1.3);
  -moz-transform: scale(1.3, 1.3);
}

@media screen and (min-width: 0px) and (max-width: 767px) {
  #case .case {
    margin-bottom: 60px;
  }

  #case .case .items .item {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  #case .case .card,
  .card_zoomimage,
  #case .case a .card .card_zoomimage .coverimage {
    width: 100%;
  }

  .card_zoomimage,
  #case .case a .card .card_zoomimage .coverimage {
    height: auto;
  }
}

body:not(#frontpage) .unit h2 {
  display: block;
  padding-bottom: 30px;
  font-size: 26px;
  text-align: left;
  color: #333;
  border-bottom: 1px solid #f2f1ed;
}

body:not(#frontpage) .unit h3 {
  display: block;
  padding-bottom: 20px;
  font-size: 24px;
  text-align: left;
  color: #333;
  border-bottom: 1px solid #f2f1ed;
}

.unit .case-title {
  display: block;
  margin-bottom: 30px;
  font-size: 18px;
  color: #333;
}

.unit .outline-b {
  padding: 0 100px;
}

.unit .outline-a + .outline-b,
.unit .outline-b + .outline-a {
  margin-top: 140px;
}

.unit .outline-b .block + .block {
  margin-top: 60px;
}

.unit .table-wrap + .block,
.unit .block + .table-wrap {
  margin-top: 40px;
}

.unit .btn-wrap {
  padding-top: 60px;
  border-top: 1px solid #f2f1ed;
}

.unit .column-images {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.unit .column-images .outline {
  width: calc((100% - 30px) / 2);
  margin-right: 30px;
}

.unit .column-images .outline:last-child {
  margin-right: 0;
}

.unit .column-images .outline .image {
  width: 100%;
  height: auto;
}

.unit .table,
.unit .table-row {
  width: 100%;
}

.unit .table {
  border-collapse: collapse;
}

.unit .table .table-row {
  border-bottom: 1px solid #dedcd4;
}

.unit .table .table-row:first-child {
  border-top: 1px solid #dedcd4;
}

.unit .table .table-head,
.unit .table .table-description {
  padding: 10px 30px;
}

.unit .table .table-head {
  width: 25.641%;
  font-size: 18px;
  font-weight: 300;
  text-align: left;
  vertical-align: middle;
  background: #f2f1ed;
}

.unit .table .table-description {
  width: 74.359%;
}

.unit .table .table-description a {
  display: inline-block;
  padding: 0 5px;
  color: #333;
  text-decoration: underline;
}

.unit .full-image {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 750px;
  height: auto;
  margin: 0 auto;
}

.unit .full-image img {
  max-width: 100%;
  height: auto;
}

.unit .full-image + .caption {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

@media screen and (min-width: 0px) and (max-width: 767px) {
  body:not(#frontpage) .unit h2 {
    font-size: 24px;
  }

  body:not(#frontpage) .unit h3 {
    font-size: 20px;
  }

  .unit {
    margin-top: 60px;
  }

  .unit .outline-b {
    padding: 0;
  }

  .unit .outline-a + .outline-b,
  .unit .outline-b + .outline-a {
    margin-top: 70px;
  }

  .unit .column-images {
    flex-direction: column;
  }

  .unit .column-images .outline {
    width: 100%;
    margin-right: 0;
  }

  .unit .column-images .outline + .outline {
    margin-top: 30px;
  }

  .unit .table {
    display: block;
  }

  .unit .table tbody,
  .unit .table .table-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }

  .unit .table .table-head {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .unit .table .table-description {
    width: 100%;
    padding: 15px 0;
  }

  .unit .full-image {
    max-width: 100%;
  }

  .unit .full-image img {
    width: 100%;
    height: auto;
  }
}