@charset "UTF-8";

.topblock-image,
.topgallery-image {
 margin: 0 0 15px;
}

.topgallery-title {
 margin: 0 0 10px;
 padding: 0 0 10px;
 border-bottom: solid 1px #ccc;
}

.topblock-title,
.topgallery-title {
 font-size: 1.143rem;
 font-weight: bold;
 margin: 0 0 5px;
}

.gallery-cat-link {
 margin: 0 0 20px;
}

.gallery-cat-link a {
 font-size: .75rem;
}

.gallery-cat-link ul li {
 float: left;
}

.gallery-cat-link ul li:not(:last-child):after {
 content: ',';
}

.gallery-cat-link ul li a {
 font-size: .75rem;
}

.s-gallery-mainvisual {
 margin: 0 0 50px;
}

.s-gallery-content {
 margin: 40px 0;
}

.s-gallery-content ul {
 margin: 0 0 10px;
}

.s-gallery-content ul li:before {
 content: '・';
}

.s-gallery-images {
 margin: 0 0 30px;
}

.s-gallery-images-box {
 margin: 0 0 20px;
}

.s-gallery-pager {
 margin: 0 0 30px;
}

.wrapper-bxslider {
 margin: 0 auto 20px;
 width: 80%;
}

@media only screen and (min-width: 768px) {
 .wrapper-bxslider {
  margin: 0 auto;
 }

 .s-gallery-images {
  margin: 0 0 50px;
 }

 .s-gallery-pager {
  margin: 0 0 50px;
 }

 .s-gallery-pager p:first-of-type {
  float: left;
 }

 .s-gallery-pager p:last-of-type {
  float: right;
 }
}

/*==================================================
 * パターン1 画像と文章
 *================================================*/
@media only screen and (max-width: 767px) {
 .s-gallery01-image {
  margin: 0 0 20px;
 }
}

@media only screen and (min-width: 768px) {
 margin: 0;
}

/*==================================================
 * パターン2 スライダー
 *================================================*/
@media only screen and (min-width: 768px) {
 .s-gallery-content {
  margin: 60px 0 50px;
 }
}


/*==================================================
 * ビフォーアフター
 *================================================*/
.beforeafter li {
 /*text-align: center;*/
}

.beforeafter li:first-child {
 margin: 0 0 20px 0;
}

.beforeafter-image {
 display: inline-block;
 position: relative;
 z-index: 0;
}

.beforeafter-description {
 margin: 10px 0 0;
 text-align: left;
}

.beforeafter-label {
 background: rgba(255, 255, 255, 0.7);
 font-weight: bold;
 position: absolute;
 width: 100%;
 bottom: 0;
 padding: 10px;
 z-index: 1;
 text-align: left;
}

@media only screen and (min-width: 768px) {
 .beforeafter li {
  float: left;
  width: 48%;
 }

 .beforeafter li:first-child {
  margin: 0 4% 0 0;
 }

 .before-image {
  position: relative;
 }

 /*.before-image:after {
    color: #333;
    content: "\f105";
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    font-size: 38px;
    padding-right: 0.5em;
    position: absolute;
    top: calc(50% - 32px);
    right: -11%;
  }*/
}

/*==================================================
 * 施工フロー
 *================================================*/
.gallery-flow-box:not(:last-of-type) {
 margin: 0 0 20px;
}

.gallery-flow-number {
 float: left;
 padding: 0 10px 0 0;
 text-align: center;
}

.gallery-flow-number span {
 background: #666;
 color: #fff;
 display: block;
 padding: 2px 6px;
 width: 24px;
}

.gallery-flow-description {
 margin: 0;
 overflow: hidden;
}