/* -----------------------------
   固定ページ: Services Page
------------------------------- */

/* ヘッダー画像 */
.page-header {
  position: relative;
  height: 480px; /* 固定ページ専用ヘッダー高さ */
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 写真が縦横比を崩さず収まる */
  display: block; /* ← 超重要 */
}

/* タイトル */
.page-header-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-title h1 {
  color: transparent; ;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-header {
    height: auto;
    overflow: hidden;
  }

  .page-header img {
    display: block;   /* ← これが超重要 */
    width: 100%;
    height: auto;
  }
  .page-header-title h1 { font-size: 32px; }
}

/* サービスコンテンツ */
.service-block {
  padding: 20px 20px;
}

.service-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.services-content {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-content section {
  margin-bottom: 0px;
}

.services-content h2.cta--ttl.ttl-03.typesquare_option {
  color: #333;
  padding: 10px 15px;
  margin-top: 40px;
  font-size: 28px;
}


/* 画像（1/3） */
.service-image {
  flex: 0 0 33.333%;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
/* 文章（2/3） */
.service-content {
  flex: 0 0 66.666%;
}
.service-title {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  font-size: 28px;
  color: #0e376c !important;
  text-align: center;
}
.services-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #333;
}

.services-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.services-content ul li {
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  /* サービスタイトル */
  .service-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  /* 横並び → 縦並び */
  .service-inner {
    flex-direction: column;
    gap: 20px;
  }

  /* 画像・文章を100%幅に */
  .service-image,
  .service-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 画像は少し小さめ＆角丸維持 */
  .service-image img {
    border-radius: 6px;
  }

  /* 文章エリアの余白調整 */
  .services-content {
    padding: 20px 15px;
  }

  /* テキスト読みやすく */
  .services-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* リスト調整 */
  .services-content ul {
    margin-left: 15px;
  }

  .services-content ul li {
    font-size: 14px;
    line-height: 1.6;
  }

}

.page-header-title h1 {
    color: transparent !important;/* 文字を完全に透明に */
}
.top-works-ttl-lead p:first-of-type {
    margin-top: 40px;
}
/* ==========================
   施工事例 詳細ページ CSS
========================== */
/* -----------------------------
   施工事例詳細ページ: 枠線 Example2 風
------------------------------- */

/* 外側ラッパー */
.single-projects-wrapper {
  padding: 40px 20px;
  background: none; /* 水色背景不要 */
}
/* ==============================
   施工事例: ボーダー線のみの周回アニメーション
   内側は光らない
============================== */

/* -----------------------------
   施工事例詳細ページ: ボーダー線のみ周回アニメーション
------------------------------- */

/* ラッパー */
.single-projects-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 80px; /* 内側スペース */
  background: #fff;   /* 内側は白 */
  border-radius: 12px;
  overflow: hidden; 
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.20); /* X軸 Y軸 ぼかし 透過 */
}

/* 線用疑似要素 */
.single-projects-frame::before,
.single-projects-frame::after,
.single-projects-frame::after-inner,
.single-projects-frame::before-inner {
  content: '';
  position: absolute;
  background: #0e376c; /* 線の色（ボタン色） */
}

/* 下の線 */
.single-projects-frame::before {
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  animation: border-bottom 4s linear infinite;
  animation-delay: 0s;
}

/* 右の線 */
.single-projects-frame::after {
  bottom: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  animation: border-right 4s linear infinite;
  animation-delay: 1s;
}

/* 上の線 */
.single-projects-frame::before-inner {
  top: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  animation: border-top 4s linear infinite;
  animation-delay: 2s;
}

/* 左の線 */
.single-projects-frame::after-inner {
  top: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  animation: border-left 4s linear infinite;
  animation-delay: 3s;
}

/* アニメーション定義 */
@keyframes border-bottom {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; } /* 待機 */
}
@keyframes border-right {
  0%   { bottom: -100%; }
  50%  { bottom: 100%; }
  100% { bottom: 100%; } /* 待機 */
}
@keyframes border-top {
  0%   { right: -100%; }
  50%  { right: 100%; }
  100% { right: 100%; } /* 待機 */
}
@keyframes border-left {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; } /* 待機 */
}



/* -----------------------------
   ギャラリー・タイトル・ボタン
   既存の CSS をそのまま残す
------------------------------- */

/* メインスライド */
.gallery-main {
  width: 100%;
  height: 500px;
}

.gallery-main .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.gallery-main .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* サムネイル */
.gallery-thumb {
  margin-top: 20px;
  width: 100%;
  height: 120px;
}

.gallery-thumb .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
  cursor: pointer;
}

.gallery-thumb .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gallery-thumb .swiper-slide-thumb-active {
  opacity: 1;
}
/* H2の下にグラデーション線 */
.projects-content h2 {
  position: relative;
  padding: 0.25em 0; /* 上下余白 */
}

.projects-content h2::after {
  content: "";
  display: block;
  width: 100%;       /* 見出し幅に合わせる */
  height: 4px;       /* 線の太さ */
  margin-top: 4px;   /* 文字との間隔 */
  background: linear-gradient(to right, #0e376c, transparent);
}


/* タイトル・施工概要・本文・ボタンは既存 CSS を残す */
.projects-header { text-align: center; margin-bottom: 40px; }
.projects-title { font-size: 32px; font-weight: 700; color: #0e376c; line-height: 1.4; }
.projects-info { width: 100%; border-collapse: collapse; margin: 40px 0; background: #fafafa; }
.projects-info th, .projects-info td { padding: 14px 16px; border-bottom: 1px solid #ddd; font-size: 15px; }
.projects-info th { width: 30%; background: #f0f3f7; color: #333; font-weight: 600; text-align:center; }
.projects-content { margin-top: 40px; font-size: 16px; line-height: 1.9; color: #333; }
.projects-back { margin-top: 60px; text-align: center; }
.projects-back a { display: inline-block; padding: 14px 32px; background: #0e376c; color: #fff; text-decoration: none; border-radius: 30px; font-size: 15px; transition: background 0.3s ease; }
.projects-back a:hover { background: #08284f; }

/* レスポンシブ */
@media (max-width: 768px) {
  .projects-title { font-size: 24px; }
  .projects-info th, .projects-info td { font-size: 14px; padding: 12px; }
  .projects-info th { width: 40%; }
  .gallery-main { height: 300px; }
  .gallery-thumb { height: 80px; }
}
/* projects-title に水平線を左右に表示 */
.projects-title {
  position: relative;
  display: inline-block; /* 横幅をタイトルに合わせる */
  padding: 0 55px;       /* 線とタイトルの間隔 */
    font-size: 32px;
}

/* 左右の線 */
.projects-title:before,
.projects-title:after {
  content: '';
  position: absolute;
  top: 50%;              /* タイトル中央に線を配置 */
  display: inline-block;
  width: 45px;            /* 線の長さ */
  height: 2px;            /* 線の太さ */
  border-top: solid 1px #0e376c;  /* 線の色をボタン色に */
  border-bottom: solid 1px #0e376c;
}

/* 左右それぞれの位置 */
.projects-title:before {
  left: 0;
}

.projects-title:after {
  right: 0;
}
.btn-right-radius {
  position: relative;
  display: inline-block;
  padding: 0.25em 1em;
  text-decoration: none;
  color: #000; /* タイトル色に統一 */
  background: #ECECEC;
  border-radius: 0 15px 15px 0;
  transition: .4s;
  margin-right: 4px; /* カテゴリ間の隙間 */
}

.btn-right-radius:hover {
  background: #636363;
  color: #fff; /* ホバー時文字色変更 */
}
.projects-info {
    width: 100%;
    border-collapse: separate; /* 丸角を有効にする */
    border-spacing: 0;          /* セル間の余白をなくす */
    margin: 40px 0;
    background: #fafafa;
    border-radius: 8px;        /* テーブル全体の角丸 */
    box-shadow: 4px 10px 10px rgba(0,0,0,0.2); /* 影 */
    overflow: hidden;           /* 角丸内に収める */
}

/* =======================================
   End of ギャラリー CSS
======================================= */

@media (max-width: 768px) {

  /* =========================
     外枠・全体
  ========================= */
  .single-projects-wrapper {
    padding: 0px 10px;
  }

  .single-projects-frame {
    padding: 10px 16px;
    border-radius: 10px;
  }

  /* 枠線アニメーションを軽量化（スマホ負荷対策） */
  .single-projects-frame::before,
  .single-projects-frame::after,
  .single-projects-frame::before-inner,
  .single-projects-frame::after-inner {
    height: 1px;
    width: 100%;
  }

  /* =========================
     ギャラリー
  ========================= */
  .gallery-main {
    height: 260px;
  }

  .gallery-main .swiper-slide img {
    object-fit: cover;
    border-radius: 6px;
  }

  .gallery-thumb {
    height: 70px;
    margin-top: 12px;
  }

  .gallery-thumb .swiper-slide img {
    border-radius: 4px;
  }

  /* =========================
     タイトル
  ========================= */
  .projects-header {
    margin-bottom: 20px;
  }

.projects-title {
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 4vw !important; /* 基準サイズ */
  line-height: 1.2 !important;
  transform-origin: center !important;
}

  .projects-title:before,
  .projects-title:after {
    width: 25px;
  }

  /* =========================
     テーブル（施工概要）
  ========================= */
  .projects-info {
    margin: 24px 0;
    box-shadow: 2px 6px 8px rgba(0,0,0,0.15);
  }

  .projects-info th,
  .projects-info td {
    font-size: 13px;
    padding: 10px;
  }

  .projects-info th {
    width: 40%;
  }

  /* カテゴリボタン */
  .btn-right-radius {
    font-size: 12px;
    padding: 0.3em 0.8em;
    border-radius: 0 12px 12px 0;
  }

  /* =========================
     本文
  ========================= */
  .projects-content {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.8;
  }

  .projects-content h2 {
    font-size: 18px;
    margin-top: 30px;
  }

  .projects-content h2::after {
    height: 3px;
  }

  .projects-content p {
    margin-bottom: 14px;
  }

  .projects-content ul {
    margin-left: 18px;
  }

  .projects-content ul li {
    font-size: 14px;
    line-height: 1.6;
  }

  /* =========================
     戻るボタン
  ========================= */
  .projects-back {
    margin-top: 40px;
  }

  .projects-back a {
    padding: 12px 26px;
    font-size: 14px;
    border-radius: 24px;
  }

}

/*よくある質問タイトル透明*/
.section_ttl {
  color: transparent;
}
.faq-intro {
  padding: 50px 0 20px;
  background-color: #fff;
}

.faq-intro p {
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.8;
  font-size: 0.95rem;
}

/*お問合せページ*/
/* お問い合わせページ H1 */
.page-contact h1 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 60px 0 30px;
    color: #0e376c ;
}

/* お問い合わせページ 全体 */
.page-contact .page-content {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* 説明文 */
.page-contact .page-content > p {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #333;
}

/* フォーム全体 */
.page-contact .wpcf7 form {
  width: 100%;
}

/* 各入力ブロック */
.page-contact .wpcf7 p {
  margin-bottom: 25px;
}

/* ラベル */
.page-contact .wpcf7 label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* 必須 */
.page-contact .required {
  color: #c00;
  font-size: 12px;
  margin-left: 6px;
}

/* input / textarea 共通 */
.page-contact .wpcf7 input[type="text"],
.page-contact .wpcf7 input[type="email"],
.page-contact .wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* textarea */
.page-contact .wpcf7 textarea {
  resize: vertical;
  min-height: 160px;
}

/* フォーカス時 */
.page-contact .wpcf7 input:focus,
.page-contact .wpcf7 textarea:focus {
  outline: none;
  border-color: #666;
}

/* 送信ボタン */
.page-contact .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 40px auto 0;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

/* ホバー */
.page-contact .wpcf7-submit:hover {
  opacity: 0.8;
}

/*リフォームメニュー*/

/* ===== ページ全体 ===== */
.single-reform-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
}

.single-reform-frame {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
}

.inner-top {
    height: 0px;
}

/* ===== ページヘッダー画像 ===== */
.page-header img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* ===== タイトル ===== */
.reform-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

/* ===== 価格帯 ===== */

.single-reform p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ===== ギャラリー ===== */
.gallery {
    margin: 30px 0;
}

.gallery-main,
.gallery-thumb {
    position: relative;
}

.gallery-main .swiper-slide img,
.gallery-thumb .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.gallery-thumb {
    margin-top: 10px;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    z-index: 10;
}

#gallery-prev { left: 10px; }
#gallery-next { right: 10px; }

/* ===== 本文 ===== */
.reform-content {
    font-size: 1rem;
    color: #555;
    margin: 30px 0;
}

/* ===== H3 小見出し ===== */
.single-reform h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 10px 0;
    color: #222;
}

/* ===== 戻るボタン ===== */
.reform-back {
    margin-top: 40px;
}

.reform-back a {
    display: inline-block;
    text-decoration: none;
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.reform-back a:hover {
    background-color: #45a049;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 768px) {
    .single-reform-wrapper {
        padding: 20px 15px;
    }

    .reform-title {
        font-size: 1.8rem;
    }

    .single-reform h2 {
        font-size: 1.4rem;
    }

    .single-reform h3 {
        font-size: 1.2rem;
    }
}

/* ==========================
   リフォームメニュー 詳細ページ
   （施工事例デザイン流用）
========================== */

/* 外側ラッパー */
.single-reform-wrapper {
  padding: 40px 20px;
  background: none;
}

/* 枠付きフレーム（施工事例と同じ） */
.single-reform-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 80px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.20);
}

/* 周回ボーダーアニメーション */
.single-reform-frame::before,
.single-reform-frame::after,
.single-reform-frame::before-inner,
.single-reform-frame::after-inner {
  content: '';
  position: absolute;
  background: #0e376c;
}

/* 下 */
.single-reform-frame::before {
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  animation: border-bottom 4s linear infinite;
}

/* 右 */
.single-reform-frame::after {
  bottom: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  animation: border-right 4s linear infinite;
  animation-delay: 1s;
}

/* 上 */
.single-reform-frame::before-inner {
  top: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  animation: border-top 4s linear infinite;
  animation-delay: 2s;
}

/* 左 */
.single-reform-frame::after-inner {
  top: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  animation: border-left 4s linear infinite;
  animation-delay: 3s;
}

/* =========================
   タイトル
========================= */
.reform-header {
  text-align: center;
  margin-bottom: 40px;
}

.reform-title {
  position: relative;
  display: inline-block;
  padding: 0 55px;
  font-size: 32px;
  font-weight: 700;
  color: #0e376c;
  line-height: 1.4;
}

/* タイトル左右ライン */
.reform-title::before,
.reform-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45px;
  height: 2px;
  border-top: solid 1px #0e376c;
  border-bottom: solid 1px #0e376c;
}

.reform-title::before { left: 0; }
.reform-title::after  { right: 0; }

/* =========================
   H2（価格帯・見出し）
========================= */
.single-reform h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 15px;
  position: relative;
  color: #333;
}

/* H2 下グラデーション線 */
.single-reform h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 6px;
  background: linear-gradient(to right, #0e376c, transparent);
}

/* =========================
   H3（ポイント）
========================= */
.single-reform h3 {
  font-size: 18px;
  margin: 30px 0 10px;
  font-weight: 600;
  color: #222;
}

/* =========================
   本文
========================= */
.single-reform p {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 16px;
}

/* =========================
   画像
========================= */
.single-reform img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0 24px;
}

/* =========================
   戻るボタン
========================= */
.reform-back {
  margin-top: 60px;
  text-align: center;
}

.reform-back a {
  display: inline-block;
  padding: 14px 32px;
  background: #0e376c;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
  transition: background 0.3s ease;
}

.reform-back a:hover {
  background: #08284f;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 768px) {

  .single-reform-wrapper {
    padding: 0 10px;
  }

  .single-reform-frame {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .reform-title {
    font-size: 4vw;
    padding: 0 35px;
  }

  .reform-title::before,
  .reform-title::after {
    width: 25px;
  }

  .single-reform h2 {
    font-size: 18px;
    margin-top: 30px;
  }

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

  .reform-back a {
    padding: 12px 26px;
    font-size: 14px;
  }
}