@charset "UTF-8";
/*Variable
－－－－－－－*/
/*
ブレークポイント

基本  1920px
ipad 1050px
sp   767px;

コンテンツ幅1000px

*/
/* page works */
.archive-works {
  background: #fff;
  padding-bottom: 70px;
}

.archive-works .article05 {
  width: 33%;
}

.single-works .works-cat {
  display: flex;
  list-style: none;
  flex-direction: row;
  justify-content: flex-end;
  margin: 0;
  flex-wrap: wrap;
}

.single-works .works-cat li {
  background: #999;
  padding: 0px 5px;
  margin: 5px 0 5px 5px;
  color: #ffffff;
  box-sizing: border-box;
}

.single-works .works-catch-img {
  width: 100%;
  margin-bottom: 50px;
  text-align: center;
}

.single-works .works-catch-img img {
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.single-works .woks-gly-items {
  width: 100%;
  margin-bottom: 90px;
}

.single-works .woks-gly-item {
  width: 48.5%;
}

.single-works .woks-gly-item.item-l-b {
  width: 41.74%;
}

.single-works .woks-gly-item.item-r-a {
  width: 53.914%;
}

.single-works .woks-gly-part {
  font-weight: bold;
  margin-bottom: 0;
}

.single-works .woks-gly-img {
  margin-bottom: 20px;
}

.single-works .woks-gly-text {
  line-height: 1.5;
  margin: 0;
}

.single-works .works-ttl {
  position: relative;
  margin-bottom: 4em;
  text-align: center;
}

.single-works .works-ttl:before {
  content: "";
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 60px;
  height: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  border-radius: 2px;
}

/* 施工概要のデザイン見直し（PC版2列・シンプル・おしゃれ） */
.single-works .works-dtl-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto 60px;
  max-width: 1000px; /* 2列にするため幅を広めに確保 */
  border-top: 1px solid #e0e0e0;
}

.single-works .works-dtl-item {
  display: flex;
  width: 48%; /* 全体の半分の幅（2列表示） */
  margin-bottom: 0;
  align-items: center; /* 項目を上下中央揃えに */
  border-bottom: 1px solid #e0e0e0;
  height: auto;
  min-height: auto;
  padding: 20px 0;
}

.single-works .works-dtl-item:last-child {
  /* border-bottom: none; は削除（左右のバランスを保つため基本は下線あり） */
}

.single-works .works-dtl-item dt {
  font-weight: 600;
  margin: 0;
  padding: 0 20px 0 10px;
  width: 30%; /* PC版では項目名と内容を分ける（左列） */
  background-color: transparent;
  border-right: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  line-height: 1.5;
  color: #333;
  letter-spacing: 0.05em;
}

.single-works .works-dtl-item dd {
  margin: 0;
  padding: 0 10px;
  width: 70%; /* PC版では項目名と内容を分ける（右列） */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  line-height: 1.8;
  color: #555;
}

.single-works .etc-ttl {
  font-size: 24px;
  text-align: center;
  margin-bottom: 60px;
}

/* 一覧ページ
--------------------------- */
.lbl-new {
  position: absolute;
  background-color: red;
  color: white;
  padding: 5px 10px;
  z-index: 100;
}

.article03.etc-items,
.single-works .etc-items {
  display: flex;
  justify-content: space-between;
}

.article03.etc-item {
  width: calc((100% - 20px) / 3);
  margin: 0 10px 40px 0;
  background-color: #fff;
  position: relative;
}

.article03.etc-item:nth-of-type(3n) {
  margin-right: 0;
}

.single-works .etc-item {
  width: 28.7%;
  margin-bottom: 40px;
}

.article03.etc-item .etc-thumbnail img,
.single-works .etc-item .etc-thumbnail img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  height: 270px;
}

.article03.etc-item ul,
.single-works .etc-item ul {
  display: flex;
  flex-wrap: wrap;
  height: 62px;
  margin-bottom: 10px;
}

.article03.etc-item ul > li,
.single-works .etc-item ul > li {
  background: #999;
  padding: 5px;
  margin-right: 5px;
  color: #ffffff;
  margin-bottom: 5px;
  height: 26px;
  box-sizing: border-box;
  font-size: 14px;
}

.article03.etc-item .etc-title,
.single-works .etc-item .etc-title {
  margin: 15px 0 15px;
  height: auto;
  line-height: 24px;
}

.article03.etc-item p,
.single-works .etc-item p {
  background-color: #EAEAEA;
  text-align: center;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  display: none;
}

.article03.etc-item p.link::after,
.single-works .etc-item p.link::after {
  content: url(/files/arrow.webp);
  position: relative;
  top: 2px;
  right: -20px;
}

@media only screen and (max-width: 767px) {
  /* スマホ版：施工概要は縦1列に見やすく調整 */
  .single-works .works-dtl-items {
    display: block;
    max-width: 100%;
  }
  .single-works .works-dtl-item {
    width: 100%;
    flex-direction: row;
    padding: 15px 0;
    align-items: center;
  }
  .single-works .works-dtl-item dt {
    width: 35%;
    border-right: none;
    border-bottom: none;
    padding: 0 10px;
    margin-bottom: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
  }
  .single-works .works-dtl-item dd {
    width: 65%;
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* ギャラリー全体の調整 */
  .single-works .woks-gly-items {
    margin-bottom: 60px;
    display: block;
  }
  .single-works .woks-gly-item {
    width: 100%;
  }
  .single-works .woks-gly-item:nth-child(1) {
    margin-bottom: 30px;
  }

  /* ★ スマホ版：ビフォーアフターを2列（横並び）にする調整 */
  .single-works .woks-gly-items.item-ba {
    display: flex !important;
    flex-direction: row; /* 横並びを明示 */
    justify-content: space-between;
    align-items: flex-start;
    gap: 4%; /* 画像間の隙間 */
  }
  .single-works .woks-gly-items.item-ba .woks-gly-item {
    width: 48%; /* 2列にするため半分の幅に設定 */
    margin-bottom: 0;
  }
  .single-works .woks-gly-items.item-ba .woks-gly-item:nth-child(1) {
    margin-bottom: 0; /* 最初の子要素のマージンをリセット */
  }
  .single-works .woks-gly-items.item-ba .woks-gly-img {
    margin-bottom: 10px; /* 画像とテキストの間の余白 */
  }
  .single-works .woks-gly-items.item-ba .woks-gly-part {
    font-size: 15px; /* タイトルサイズをスマホに最適化 */
    margin-bottom: 5px;
    line-height: 1.3;
  }
  .single-works .woks-gly-items.item-ba .woks-gly-text {
    font-size: 13px; /* テキストサイズをスマホに最適化 */
    line-height: 1.5;
  }

  /* その他の事例などのスマホ対応 */
  .article03.etc-item ul,
  .single-works .etc-item ul {
    height: auto;
  }
  .article03.etc-item .etc-title,
  .single-works .etc-item .etc-title {
    height: auto;
  }
  .article03.etc-items,
  .single-works .etc-items {
    display: block;
  }
  .article03.etc-item,
  .single-works .etc-item {
    width: 100%;
  }

  /* CTA・その他の事例 スマホ対応 */
  .works-cta-area .cta-content {
    flex-direction: column;
  }
  .works-cta-area .cta-separator {
    width: 100%;
    height: 1px;
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    margin: 25px 0;
  }
  .works-cta-area .btn {
    max-width: 100%;
  }
  .sp_only { display: block !important; }
  .single-works section.etc {
    padding: 30px 20px !important;
  }
}

/* pagenate */
.p-pager {
  display: flex;
  margin-bottom: 50px;
  justify-content: center;
}

.p-pager__item {
  margin-right: 3px;
  margin-bottom: 3px;
  font-size: 14px;
}

.p-pager__item a,
.p-pager__item span {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.p-pager__item span {
  background: #55463D;
}

.p-pager__item a {
  background: #EAEAEA;
}

.p-pager__item a:hover,
.p-pager__item span {
  color: #fff;
}

/* works category add 20240804 */
.tags {
  margin-bottom: 50px;
}

.tag {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 50px;
  max-width: 900px;
  margin: 0 auto 15px;
}

.tag-ttl {
  font-size: 18px;
  width: 235px;
  text-align: left;
  position: relative;
  padding-top: 8px;
}

.tag > ul {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: calc(100% - 235px);
  padding: 0px 0 0 30px;
  margin: 0;
}

.tag > ul > li {
  margin: 0 20px 25px 0;
  background-color: #999;
}

.tag > ul > li > a {
  padding: 8px 15px;
  color: #fff;
  display: block;
}

@media screen and (max-width: 767px) {
  .tags {
    margin-bottom: 35px;
  }
  .tag-ttl {
    width: 100%;
    margin-bottom: 10px;
  }
  .tag > ul {
    width: 100%;
    padding: 0px;
  }
  .tag > ul > li {
    margin: 0 20px 10px 0;
  }
}

/* =========================================================
   新規追加（CTA・その他の事例エリア）
========================================================= */

/* CTAエリア（3列レイアウトに変更） */
.works-cta-area {
  margin-top: 50px;
  margin-bottom: 80px;
}
.works-cta-area .cta-box {
  background-color: #2b62a6; /* 画像に近い青色 */
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  color: #fff;
}
.works-cta-area .cta-lead {
  font-size: 20px;
  letter-spacing: 0.05em;
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: bold;
}
.works-cta-area .cta-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.works-cta-area .cta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.works-cta-area .cta-separator {
  width: 1px;
  height: 60px;
  border-right: 1px dashed rgba(255, 255, 255, 0.5);
  margin: 0 15px;
}
.works-cta-area .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  padding: 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: opacity 0.3s;
  box-sizing: border-box;
}
.works-cta-area .btn:hover {
  opacity: 0.8;
}
.works-cta-area .btn-contact {
  background-color: #fff;
  color: #2b62a6;
}
.works-cta-area .btn-line {
  background-color: #06c755; /* LINEグリーン */
  color: #fff;
}
.works-cta-area .btn-line svg {
  margin-right: 8px;
}
.works-cta-area .tel-link {
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.05em;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.works-cta-area .tel-prefix {
  font-size: 20px;
  font-weight: normal;
}
.works-cta-area .tel-note {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}
.sp_only { display: none;}

@media screen and (max-width: 787px) { 
  .works-cta-area .cta-separator {height: 20px; border-right: none; margin: 0 15px;}
}

/* その他のリフォーム事例を別枠に */
.single-works section.etc {
  background-color: #f7f7f7;
  border-top: 4px solid #ccecf0;
  padding: 50px 40px;
  margin-top: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.single-works section.etc .etc-ttl {
  margin-top: 0;
  margin-bottom: 40px;
}