
/* ===== 全体 ===== */
.banner-section{
  max-width: 1200px;
  margin: 20px auto;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ===== バナー枠 ===== */
.banner-item{
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}


/* ===== 左エリア（画像＋文字） ===== */
.banner-left{
  position: relative;
  flex: 1;
  min-height: 400px;
  overflow: hidden;
}

.banner-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(55%) contrast(110%);
  transition: filter 0.6s ease, transform 0.6s ease;
}



/* ===== センターテキスト（下線アニメ付き） ===== */
.banner-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 3px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.banner-text::after{
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.8);
  margin: 12px auto 0;
  transition: width 0.6s ease;
}

.banner-item:hover .banner-text::after{
  width: 80%;
}

/* ===== 右エリア ===== */
.banner-right{
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-right h3{
  font-size: 24px;
  margin-bottom: 18px;
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #222;
  letter-spacing: 1px;
}

.banner-right p{
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  text-align: left;       /* ← 左揃え */
  margin-bottom: 30px;
}

/* ===== 工事目安・費用カード ===== */
.info-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.info-item{
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px 18px;
  transition: all 0.3s ease;
}

.info-item strong{
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.info-item span{
  font-size: 17px;
  color: #222;
  font-weight: 500;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .banner-item {
    flex-direction: column;
  }

  .banner-left{
    min-height: 220px;
  }

  .banner-right{
    padding: 25px 20px 35px;
  }

  .banner-text{
    font-size: 22px;
    letter-spacing: 2px;
  }

  .info-box {
    flex-direction: column;
    gap: 14px;
  }
}







/* ===== カテゴリーボタン ===== */
.filter-buttons{
  text-align: center;
  margin-bottom: 70px;
}
.filter-buttons button{
  background: #fff;
  border: 1px solid #666;
  padding: 8px 16px;
  margin: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.9s;
}
.filter-buttons button:hover{
  background: #f0f0f0;
}
.filter-buttons button.active{
  background: #333;
  color: #fff;
  border-color: #333;
}

/* ===== スマホ対応（768px以下） ===== */
@media screen and (max-width: 768px) {
  .filter-buttons{
    margin-bottom: 40px;
    gap: 10px;           /* ボタン間の隙間 */
  }

  .filter-buttons button{
    width: calc(50% - 15px); /* 2列に並べる（左右の間隔を考慮） */
    padding: 12px 0;
    font-size: 13px;
    margin: 5px;         /* 上下左右の隙間 */
  }
}



/* ===== ギャラリー ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.custom-gallery-item{
  background: #fff;
  overflow: hidden;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 20px; /* コメント分のスペース確保 */
  min-height: auto;     /* 必要なら調整 */
}

.custom-gallery-item:hover {
  transform: translateY(-5px);
}


/* 画像リンク */
.custom-gallery-item a{
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* ← 好きな比率に変更可能 */
}
.custom-gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を崩さずにトリミング */
  display: block;
  transition: transform 0.9s, opacity 0.9s;
}

/* タイトル（施工名） */
.custom-gallery-item h2{
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px !important;
  margin: 0px;
  color: #333 !important;
  font-weight: normal !important;
}

/* コメント（補足情報） */
.custom-gallery-item p{
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #666 !important;
  font-size: 12px;
  padding: 5px !important;
  position: static !important;
}

/* スマホ（768px以下） */
@media (max-width: 768px) {
  .custom-gallery-item h2{
    font-size: 12px !important; /* スマホ用にさらに小さく */
  }

  /* コメント（補足情報） */
  .custom-gallery-item p{
    font-size: 11px;
    color: #555;
    margin: 0 0 5px;
  }
}




/*　リフォーム事例 */

/* セクション全体 */
.section2{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* タイトル */
.section2 h2{
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

/* 事例カード */
.case-card2{
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

/* 写真部分 */
.case-images {
  display: flex;
  flex-wrap: wrap;
}

.case-images div{
  flex: 1 1 50%;
  position: relative;
}

.case-images img{
  width: 100%;
  display: block;
  height: auto;
}

/* ラベル */
.label{
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 30px;
}

/* 詳細情報 */
.case-details{
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.detail-item{
  flex: 1 1 200px;
  background: #f0f0f0;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
}

.detail-item h4{
  margin-bottom: 10px;
  font-weight: bold;
  color: #336699;
}

.detail-item p{
  font-size: 14px;
  color: #333;
}

.case-text{
  padding: 20px;
  color: #555;
  line-height: 1.4;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
}
.case-text p{
  font-size: 13px !important;
}



/* スマホ対応 */
@media screen and (max-width: 768px) {
  .case-images div {
    flex: 1 1 100%;
  }
}


/* TOPが */

.hero-bg{
  height: 40vh; /* セクション高さは任意（例） */
  background-image : url(../img/re72h.png);
  background-size: cover;         /* 画面いっぱいにカバー */
  background-position: center 70%;/* 横中央、縦は上から40%に合わせる */
  background-repeat: no-repeat;
  position: relative;
}




  /* パンくず */

.breadcrumb{
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 1rem;
  margin: 10px 0;
}

.breadcrumb ol{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li{
  margin-right: 0.5em;
  position: relative;
}

.breadcrumb li + li::before{
  content: "/"; /* 区切り記号 */
  margin-right: 0.5em;
  color: #666;
}

.breadcrumb a{
  text-decoration: none;
  color: #999;
  transition: color 0.3s;
}

.breadcrumb a:hover{
  color: #000;
}

.breadcrumb{
  font-family: 'Shippori Mincho', serif;
  font-size: 0.875rem;
  margin: 10px 0;
  border-top: 1px solid #ccc; /* 文字の上に線 */
  padding-top: 5px; /* 線と文字の間隔 */
}



/* ===== 施工事例バナー全体 ===== */

.works-banner{
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  width: 100%;
}

/* ===== バナー本体（背景画像 + オーバーレイ） ===== */
.works-banner-inner{
  width: 500px;
  max-width: 95%;
  height: 200px;
  background : linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)) 0% 0% / auto auto repeat scroll padding-box border-box, url(rfo_img/re_87_bana.png) center center / auto auto no-repeat scroll padding-box border-box transparent;
  background-size: cover;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.works-banner-inner:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* 見出し（下線アニメーション付き） */
.works-banner-inner h2{
  font-size: 26px;
  font-family: "Noto Serif JP", serif;
  position: relative;
  color: #fff;
  margin-bottom: 8px;
}

.works-banner-inner h2::after{
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #fff;
  color: #fff;
  transition: width 0.4s ease, left 0.4s ease;
}

.works-banner-inner:hover h2::after{
  width: 60%;
  left: 20%;
  color: #fff;
}

/* サブテキスト */
.works-banner-inner p{
  font-size: 13px;
  color: #fff;
  opacity: 0.9;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .works-banner-inner{
    width: 95%;
    height: 160px;
    border-radius: 8px;
  }
  .works-banner-inner h2{
    font-size: 22px;
  }
  .works-banner-inner p{
    font-size: 12px;
  }
}


/* ===== 施工事例バナー全体 ===== */

/* ====== 基本レイアウト ====== */
.my-gallery-container{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* ← デフォルトは縦並び（スマホ用） */
  gap: 15px;
  padding: 10px;
}

/* ====== メイン画像 ====== */
.my-gallery-main img{
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

/* ====== サムネイル ====== */
.my-gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-gallery-thumbs img{
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border 0.3s ease, transform 0.3s ease;
}

.my-gallery-thumbs img:hover {
  transform: scale(1.05);
}

.my-gallery-thumbs img.active{
  border: 2px solid #3366ff;
}

/* ====== PCレイアウト（横並び） ====== */
@media screen and (min-width: 769px) {
  .my-gallery-container {
    flex-direction: row;          /* 横並びに変更 */
    align-items: flex-start;      /* 上揃え */
  }

  .my-gallery-main{
    flex: 3;                      /* 左側：メイン画像を大きく */
    margin-right: 20px;
  }

  .my-gallery-thumbs {
    flex: 1;                      /* 右側：サムネイルエリア */
    display: flex;
    flex-direction: column;       /* 縦に並べる */
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  .my-gallery-thumbs img{
    width: 100px;
    height: 75px;
  }
}

/* ====== スマホ調整 ====== */
@media screen and (max-width: 768px) {
  .my-gallery-thumbs img{
    width: 60px;
    height: 45px;
  }
}



/* ====== その他関連リフォームバナー ====== */
.banner-wrapper2{
  display: flex;
  gap: 20px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px;
}

/* クリックできるように <a> をブロック化 */
.banner-item2{
  flex: 0 0 350px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  text-decoration: none; /* リンク下線削除 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-item2:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.banner-item2 h3,
.banner-item2 p{
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
  margin: 0;
}

.banner-item2 h3{
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.banner-item2 p{
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}



/* スマホ対応 */
@media (max-width: 768px) {
  .banner-item2{
    flex: 0 0 95%;
    height: 180px;
  }
  .banner-item2 h3{
    font-size: 18px;
  }
  .banner-item2 p{
    font-size: 13px;
  }
}




/* ボタン */

button.active{
  background-color: #666;
  color: white;
}

.btn{
  display: inline-block;
  padding: 12px 24px;
  background-color: #336699; /* 青色 */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover{
  background-color: #666;
  transform: translateY(-2px);
}

