/* ==================================================
   施工事例 個別ページ
   single-works.css
================================================== */


/* ==================================================
   2カラム全体
================================================== */

#contents-area-inbox {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 5%;
}


/* ==================================================
   メイン本文
================================================== */

#main-contents-area-single {
  box-sizing: border-box;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 2% 5% 5% 5%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 7px 0 #c6c6c6;
  text-align: left;
}


/* ==================================================
   サイドバー
================================================== */

#side-contents-area {
  box-sizing: border-box;
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  margin: 0 !important;
}


/* ==================================================
   アイキャッチ
================================================== */

.works-single-eyecatch {
  margin: 0 0 25px;
}

.works-single-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 5px;
}


/* ==================================================
   本文
================================================== */

.works-single-content {
  width: 100%;
}

.works-single-content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.works-single-content img {
  max-width: 100%;
  height: auto;
}

.works-single-content figure {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* ==================================================
   見出し
================================================== */

.works-single-content h2 {
  margin: 45px 0 25px;
  padding: 10px 14px;
  background: #087b13;
  color: #fff;
  font-size: 22px;
  line-height: 1.6;
  clear: both;
}


/* ==================================================
   前後の施工事例
================================================== */

.works-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 35px 0 20px;
}

.works-navigation a {
  color: #087b13;
  text-decoration: none;
}


/* ==================================================
   タブレット
   768px以上は2カラムを維持
================================================== */

@media screen and (min-width: 768px) and (max-width: 960px) {

  #contents-area-inbox {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    padding: 0 15px 5%;
  }

  #main-contents-area-single {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 2% 4% 5%;
  }

  #side-contents-area {
    flex: 0 0 240px !important;
    width: 240px !important;
    max-width: 240px !important;
    margin: 0 !important;
  }

}


/* ==================================================
   スマートフォン
   767px以下だけ1カラム
================================================== */

@media screen and (max-width: 767px) {

  #contents-area-inbox {
    display: block !important;
    width: 100%;
    padding: 0 15px 5%;
  }

  #main-contents-area-single {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 18px 30px;
  }

  #side-contents-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px auto 0 !important;
  }

  .works-single-content p {
    font-size: 15px;
    line-height: 1.8;
  }

  .works-single-content h2 {
    margin: 35px 0 20px;
    padding: 10px 12px;
    font-size: 19px;
  }

  .works-navigation {
    display: block;
  }

  .works-navigation .alignleft,
  .works-navigation .alignright {
    float: none;
    width: 100%;
    margin: 0 0 10px;
  }

}

/* ==================================================
   施工概要
================================================== */

.works-summary-table {
  margin: 25px 0 35px;
}

.works-summary-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 16px;
}

.works-summary-table th,
.works-summary-table td {
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  vertical-align: middle;
}

.works-summary-table th {
  width: 30%;
  background: #f1f7f2;
  font-weight: bold;
  color: #222;
}

.works-summary-table td {
  background: #fff;
  color: #333;
}

@media screen and (max-width: 767px) {

  .works-summary-table table,
  .works-summary-table tbody,
  .works-summary-table tr,
  .works-summary-table th,
  .works-summary-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .works-summary-table tr {
    margin-bottom: 12px;
    border: 1px solid #d8d8d8;
  }

  .works-summary-table th,
  .works-summary-table td {
    border: 0;
  }

  .works-summary-table th {
    padding: 10px 12px;
    background: #f1f7f2;
  }

  .works-summary-table td {
    padding: 11px 12px;
    border-top: 1px solid #eee;
  }

}