.custom-h3 {
  font-family: "游ゴシック体", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
  font-size: 12px !important;   /* サイズ強制 */
  color: #999 !important;       /* 色強制 */
  font-weight: 500 !important;  /* 太さ強制 */
}


/* PC：右上に配置 */
.banner-wrapper {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

/* バナー本体 */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  
  width: 350px;         /* 小さめに調整 */
  height: 80px;
  
  background-image: url("w_img/re_87_bana.png"); /* → 好きな画像に差し替え */
  background-size: cover;
  background-position: center;
  
  border: 2px solid #fff;
  border-radius: 6px;
  text-decoration: none;
  overflow: hidden;
  position: relative;

  transition: 0.3s ease;
}

/* 文字 */
.banner span {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* ホバーで暗く、文字色も変える */
.banner:hover {
  opacity: 1; /* バナー自体は透明にしない */
  border-color: #336699; /* 枠色を変える */
}

.banner:hover span {
  color: #cccccc; /* 文字色を変更 */
}


/* スマホ：中央配置＆サイズ調整 */
@media (max-width: 768px) {
  .banner-wrapper {
    width: 100%;
    justify-content: center;
  }
  .banner {
    width: 90%;
    height: 70px;
  }
  .banner span {
    font-size: 16px;
  }
}




  /* パンくず */

.breadcrumb {
  font-family: 'Shippori Mincho', 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; /* 線と文字の間隔 */

}



/* ================================
   びふぉああふた
================================ */
.before-after-container {
  position: relative;
 text-align: center;      /* 中央寄せ */
  margin: auto;            /* ページ中央 */
  overflow: hidden;
  user-select: none;
  background: #fff;
}

/* Before & After画像 */
.before-wrapper img,
.after-wrapper img {
  display: block;
  height: auto;
}

/* After画像 */
.after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;   /* 初期半分 */
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

/* スライダー線＋丸アイコン */
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #336699;
  cursor: ew-resize;
  z-index: 3;
}
.slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #336699;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* PC用：自然サイズ */
@media (min-width: 769px){
  .before-wrapper img,
  .after-wrapper img {
    width: auto;
    max-width: 100vw;
    height: auto;
  }
}

/* スマホ用：画面幅に収める */
@media (max-width: 768px) {
  .before-after-container {
    width: 100%;
    max-width: 100vw;
  }
  .before-wrapper img,
  .after-wrapper img {
    width: auto;
    max-width: 100vw;
    height: auto;
  }
}


/* インタビュー全体 */

.interview-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.interview-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
}

.interview-header .name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
}

.interview-header .title {
  font-size: 0.9rem;
  color: #777;
}

/* Q & A */
.qa {
  margin-bottom: 30px;
}

.qa .question {
  font-weight: bold;
  font-size: 1rem;
  color: #336699; /* ゴールド系アクセント */
  margin-bottom: 10px;
  position: relative;
  padding-left: 0;  /* アイコンなしなので余白不要 */
}

.qa .answer {
  color: #444;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.9;
  letter-spacing: 0.05em; /* 文字間を少し広げる */
}


@media (max-width: 768px) {
.qa {
  margin-bottom: 30px;
}


.qa .answer {
  color: #444;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.4;
  letter-spacing: 0.05em; /* 文字間を少し広げる */
}

}




/* カテゴリータグ */
.card {
  max-width: 1000px;
  background: #fff;
  overflow: hidden;
  margin: 0 auto; /* 横方向の中央寄せ */
}

.card img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 15px;
}

/* カテゴリータグ */
.category {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #006699;         /* ゴールド系 */
  border: 1px solid #006699;
  margin-bottom: 20px;
}

/* コメント */
.comment {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.3;
  margin-bottom: 20px;
}

.card-body h2 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 10px 0; /* ← 左右のマージンを消す */
  color: #006699;
  position: relative;
  padding-left: 15px;   /* ← 線と文字の間だけ確保 */
}


/* 左にアクセントライン */
.card-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background-color: #006699; /* ゴールド系 */
  border-radius: 2px;
}






/* ==== ギャラリー ==== */

/* ギャラリー全体 */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PCは4列 */
  gap: 10px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ギャラリーアイテム */
.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
  width: 100%;
  box-sizing: border-box;  /* ← 追加 */
}

/* スマホ2列 */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr) !important; /* 念のため強制 */
    gap: 8px;
  }
}


/* 画像 */
.gallery-item {
  width: 100%;               /* 親要素の幅に合わせる */
  max-width: 320px;          /* お好みで最大幅を制限 */
  aspect-ratio: 4 / 3;       /* 横長の長方形（例：4:3） */
  overflow: hidden;          /* はみ出した部分を隠す */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 枠にフィット＆トリミング */
  display: block;
  transition: transform 0.9s ease;
}

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

/* フェードイン */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.modal img {
  max-width: 90%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 5px solid #fff; /* ← 白い枠線を追加 */
  border-radius: 5px;
  background-color: #fff; /* ← 枠の中を白くしたい場合は追加 */
  animation: zoomIn 0.5s ease;
}

/* フワッとズーム */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== ボタン ===== */
.close, .prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
.close {
  top: 20px;
  right: 30px;
  font-size: 40px;
}
.prev { left: 30px; }
.next { right: 30px; }






/* ===== カテゴリーボタン ===== */
.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(3, 1fr); /* パソコン：3列 */
  gap: 5px;
}

/* タブレット対応（769px～1024px） */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* タブレット：2列 */
  }
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr; /* スマホ：1列 */
  }
}


/* ===== ギャラリーアイテム ===== */
.custom-gallery-item {
  background: #fff;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 20px; /* コメント分のスペース確保 */
}

/* 画像 */
.custom-gallery-item img {
  width: 100%;
  height: 300px;            /* パソコンの高さ */
  object-fit: cover;        /* 枠いっぱいに表示 */
  object-position: center;
  display: block;
  transition: transform 0.9s, opacity 0.9s;
}

/* ホバー効果 */
.custom-gallery-item:hover {
  transform: translateY(-5px);
}
.custom-gallery-item a {
  display: block;
  position: relative;
  overflow: hidden;
}
.custom-gallery-item a:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

/* タイトル（施工名） */
.custom-gallery-item h2 {
  font-family: "游ゴシック体", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
  font-size: 17px;
  margin: 0;
  color: #333;
  font-weight: bold !important; /* ← 太字に変更 */
}


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

/* ===== レスポンシブ調整 ===== */
@media (max-width: 768px) {
  .custom-gallery-item {
    text-align: left; /* ギャラリーアイテム全体を左揃え */
    padding: 0 10px 15px 10px; /* 左右に余白を追加して見やすく */
  }

  .custom-gallery-item h2 {
    font-size: 14px; /* スマホで見やすいタイトルサイズ */
    margin: 5px 0 3px 0;
  }

  .custom-gallery-item p {
    font-size: 12px; /* 読みやすい本文サイズ */
    color: #555;
    margin: 0 0 8px 0;
  }
  .custom-gallery-item img {
    height: 150px; /* スマホは少し低く */
  }
}

/* ===== ギャラリー ===== */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* パソコン：3列 */
  gap: 10px; /* PCでの画像間マージン */
}

/* タブレット対応（769px～1024px） */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* タブレット：2列 */
    gap: 8px; /* タブレットでの画像間マージン */
  }
}

/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr; /* スマホ：1列 */
    gap: 5px; /* スマホでの画像間マージン */
  }
}

/* カテゴリータグ */
.custom-gallery-item .category-tag {
  position: absolute;       /* 画像の上に重ねる */
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #555;              /* 文字はグレー */
  background-color: #fff;   /* 背景は白 */
  border: 1px solid #000;   /* 黒枠 */
  border-radius: 3px;        /* 角丸 */
  z-index: 2;                /* 画像より上に表示 */
  white-space: nowrap;       /* 長い文字を1行に収める */
}

/* 親リンクに相対位置を指定（タグを絶対位置で配置するため） */
.custom-gallery-item a {
  display: block;
  position: relative;
  overflow: hidden;
}

/* ===== レスポンシブ（スマホ） ===== */
@media (max-width: 768px) {
  .custom-gallery-item .category-tag {
    font-size: 10px;    /* 小さめにして画面に収める */
    padding: 2px 6px;
    top: 8px;
    left: 8px;
  }
}




/* ================================
   フェードインアニメーション
================================ */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}
.fade-in-left.active {
  animation: fadeInLeft 0.8s forwards;




