.flow{
  padding: 40px 20px;
  text-align: center;
}

.flow h2{
  margin-bottom: 30px;
  font-size: 24px;
}

/* 横並び */
.flow-horizontal{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
}

/* 各工程（縦書き＋枠） */
.flow-horizontal li{
  writing-mode: vertical-rl;
  text-orientation: upright;
  position: relative;
  padding: 24px 18px;
  border: 1px solid #8b6f4e;
  background-color: #fff;
  font-size: 16px;
  line-height: 1.8;
}

/* 右向き矢印 */
.flow-horizontal li:not(:last-child)::after{
  content: "▶";
  position: absolute;
  top: 50%;
  right: -26px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #8b6f4e;
}

/* ボタン */
.flow-btn{
  display: inline-block;
  padding: 14px 36px;
  background-color: #8b6f4e;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
  transition: opacity 0.3s;
}

.flow-btn:hover {
  opacity: 0.8;
}


/* ===== スマホ表示 ===== */
@media screen and (max-width: 768px) {

  /* 工程を縦に並べる */
  .flow-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* 縦書きはそのまま */
  .flow-horizontal li {
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  /* 矢印を下向きに変更 */
  .flow-horizontal li:not(:last-child)::after{
    content: "▼";
    top: auto;
    bottom: -26px;
    right: 50%;
    transform: translateX(50%);
    font-size: 18px;
  }
}



/* ===== スマホ表示：縦並び＋横書き ===== */
@media screen and (max-width: 768px) {

  /* 工程を縦に並べる */
  .flow-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* 文字を横書きに変更 */
  .flow-horizontal li{
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    text-align: center;
    padding: 16px 20px;
    font-size: 15px;
  }

  /* 矢印を下向きに */
  .flow-horizontal li:not(:last-child)::after{
    content: "▼";
    top: auto;
    bottom: -22px;
    right: 50%;
    transform: translateX(50%);
    font-size: 16px;
  }
}
/* カードサイズを統一（PC） */
.flow-horizontal li{
  width: 70px;     /* 横幅 */
  height: 220px;   /* 高さ */
  box-sizing: border-box;
}


@media screen and (max-width: 768px) {
  .flow-horizontal li{
    width: 100%;
    width: 400px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}





.house-img{
  width: 300px;
  height: auto;
  clip-path: polygon(
    50% 0%,   /* 屋根の頂点 */
    100% 35%,
    100% 100%,
    0% 100%,
    0% 35%
  );
}







/* ===== 全体 ===== */
.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: 14px;
  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;
  }
}

/* ===== アコーディオン ===== */

   
    .accordion{
      max-width: 600px;
      margin: auto;
      background: white;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .accordion-header{
      width: 100%;
      text-align: left;
      padding: 15px 20px;
      background: #666;
      color: white;
      border: none;
      cursor: pointer;
      font-size: 1.1rem;
      font-weight: bold;
      transition: background 0.3s;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .accordion-header:hover{
      background: #005fa3;
    }

    .accordion-header::after{
      content: "＋";
      font-size: 1.3rem;
      transition: transform 0.3s;
    }

    .accordion-header.active::after{
      content: "－";
      transform: rotate(180deg);
    }

    .accordion-content{
      background: #fff;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, padding 0.3s ease;
      padding: 0 20px;
      border-top: 1px solid #eee;
    }

    .accordion-content p{
      margin: 3px 0;
      line-height: 1.6;
      font-size: 0.9rem;
    }

    /* 画像のスタイル */
    .accordion-content img{
      width: 100%;
      height: auto;
      border-radius: 6px;
      margin: 10px 0 3px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .accordion-header.active + .accordion-content{
      max-height: 600px; /* 画像サイズに合わせて高さを広く */
      padding: 15px 20px;
    }



  /* パンくず */

.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; /* 線と文字の間隔 */
}





/* ====== その他関連リフォームバナー ====== */
.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;
  }
}

/* TOPが */

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




/* リノベの流れ */
.flow-section{
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0px auto;
}

.flow-title{
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #004080;
  margin-bottom: 10px;
}

.flow-intro{
  text-align: center;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* 横スクロールコンテナ */
.flow-container{
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 60px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* スワイプ滑らか */
}

.flow-container::-webkit-scrollbar {
  height: 10px;
}

.flow-container::-webkit-scrollbar-thumb {
  background: #00408077;
  border-radius: 4px;
}

/* カード */
.flow-item{
  flex: 0 0 400px; /* 固定幅 */
  background: #fff;
  border-radius: 10px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
  padding: 24px;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.flow-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-num{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #242f42;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.flow-content h4{
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-family: 'HannariMincho', "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #242f42;
}

.flow-content p{
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .flow-item {
    flex: 0 0 100%; /* カード幅を画面に合わせる */
  }
}
-->

