/* ===============================
construction（新築ページ）スコープ付き
================================ */

#construction {
 padding: 80px 0;
 background: #fff;
}

/* --- ヘッダー部分 --- */
#construction .construction-header {
 display: flex;
 align-items: flex-end;
 flex-wrap: wrap;
 margin-bottom: 40px;
 justify-content: space-between;
}

#construction .construction-logo-title {
 display: flex;
 align-items: center;
 flex-direction: row;
}

#construction .construction-icon {
 width: 50px;
 height: auto;
 margin-right: 16px;
}

@media screen and (min-width: 768px) {
 #construction .construction-icon {
  width: 90px;
 }
}

#construction .construction-title-group {
 display: flex;
 flex-direction: column;
}

#construction .construction-title-group .en-title {
 font-size: 17px;
 font-weight: 600;
 margin: 0;
 color: #5c4534;
 letter-spacing: 0.05em;
}

#construction .construction-title-group .jp-title {
 font-size: 2.2em;
 color: #3a2d27;
}

@media screen and (min-width: 768px) {
 #construction .construction-title-group .jp-title {
  font-size: 3.2em;
 }
}

#construction .construction-lead {
 font-size: 16px;
 color: #3a2d27;
 line-height: 1.7;
}

/* --- メインビジュアル --- */
#construction .construction-mainvisual img {
 width: 100%;
 height: auto;
 margin-bottom: 80px;
}

/* --- セクションタイトル --- */
#construction .construction-feature {
 margin-bottom: 80px;
}
#construction .construction-feature02 {
 margin-bottom: 30px;
}
#construction .construction-feature-title {
 color: #584c42;
 font-size: 1.75em;
 font-weight: bold;
 text-align: center;
 margin-bottom: 30px;
 position: relative;
}

@media screen and (min-width: 768px) {
 #construction .construction-feature-title {
  font-size: 2em;
 }
}

#construction .construction-title-underline {
 display: block;
 margin: 8px auto 0;
 width: 300px;
 height: auto;
}

/* --- 画像+テキストブロック（縦積み） --- */
#construction .construction-double {
 display: flex;
 flex-direction: column;
 gap: 60px;
}

#construction .construction-double-block {
 display: flex;
 align-items: flex-start;
 gap: 40px;
}

#construction .construction-double-block.reverse {
 flex-direction: row-reverse;
}

@media screen and (max-width: 768px) {
 #construction .construction-double-block,
 #construction .construction-double-block.reverse {
  flex-direction: column;
 }
}

#construction .construction-img {
 flex: 1;
 min-width: 250px;
}

#construction .construction-img img {
 width: 100%;
 height: auto;
}

#construction .construction-text {
 flex: 1;
 font-size: 16px;
 color: #3a2d27;
 line-height: 1.8;
}

@media screen and (min-width: 768px) {
 #construction .construction-text {
  font-size: 17px;
 }
}

#construction .construction-text p {
 margin-bottom: 1em;
}

/* --- ZEHセクション --- */
#construction .zeh-section {
 display: flex;
 align-items: flex-start;
 gap: 30px;
 margin-top: 40px;
 flex-wrap: wrap;
}

#construction .zeh-image {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 30px;
}

@media screen and (min-width: 768px) {
 #construction .zeh-image {
  flex-direction: row;
 }
}

#construction .zeh-image img {
 height: auto;
}

#construction .zeh-text {
 flex: 1;
 font-size: 16px;
 line-height: 1.7;
 color: #3a2d27;
}

#construction .zeh-text p {
 margin-bottom: 1em;
}

/* --- モバイル対応 --- */
@media screen and (max-width: 768px) {
 #construction .zeh-section {
  flex-direction: column;
  align-items: center;
  text-align: center;
 }

 #construction .zeh-text {
  text-align: left;
  width: 100%;
 }
}
/* ===============================
新築工事の流れ：縦バー＋横並びステップ構成
================================ */
#construction.reform-flow-step {
 background: #fff;
 padding-bottom: 40px;
}
#construction .step02 {
 padding-bottom: 80px;
}

/* フレックス構成 */
#construction .step-flow-flex {
 display: flex;
 gap: 40px;
 align-items: flex-start;
 flex-wrap: nowrap;
}

/* 左：縦バー画像 */
#construction .step-left-bar img {
 width: 100%;
 max-height: 800px;
 display: block;
}

/* 右：ステップ内容 */
#construction .step-right-content {
 flex: 1;
 display: flex;
 flex-direction: column;
 gap: 40px;
}

/* 各ステップ行 */
#construction .step-row {
 display: flex;
 align-items: flex-start;
 gap: 40px;
}

/* ステップ名と矢印 */
#construction .step-label {
 display: flex;
 flex-direction: column;
 align-items: center;
 flex: 0 0 160px;
}

/* タイトルボックス */
#construction .step-title-box {
 background-color: #cc6633;
 color: #fff;
 font-size: 18px;
 font-weight: bold;
 padding: 15px 25px;
 border-radius: 6px;
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 text-align: center;
 white-space: nowrap;
 width: 600px;
}
#construction .step-title-box.step-orange {
 background-color: #b95767;
 border-radius: 50px;
}

/* 矢印画像 */
#construction .step-arrow {
 width: 24px;
 margin: 12px 0 0;
}

/* 内容テキスト（PC） */
#construction .step-description.laptop {
 flex: 1;
}
#construction .step-description.laptop p {
 font-size: 17px;
 line-height: 1.8;
 color: #3a2d27;
 margin: 0;
}

/* 内容テキスト（スマホ） */
#construction .step-description.palmtop {
 display: none;
}

/* 注意ボックス（赤） */
#construction .step-note-red {
 background-color: #d9534f;
 color: #fff !important;
 font-weight: bold;
 text-align: center;
 padding: 5px 14px;
 border-radius: 4px;
 margin-top: 15px !important;
 font-size: 15px;
}

/* キャプション補足 */
#construction .step-note-caption {
 color: #c1443c !important;
 font-size: 14px;
 margin-top: 0;
}

/* ===============================
レスポンシブ対応（スマホ）
================================ */
@media screen and (max-width: 768px) {
 #construction.reform-flow-step {
  padding-bottom: 40px;
 }

 #construction .step-flow-flex {
  flex-direction: column;
  gap: 30px;
 }

 #construction .step-left-bar {
  display: none;
 }

 #construction .step-right-content {
  width: 100%;
 }

 #construction .step-row {
  flex-direction: column;
  gap: 20px;
  align-items: center;
 }

 #construction .step-label {
  flex: none;
  gap: 15px;
 }

 #construction .step-title-box {
  font-size: 16px;
  padding: 10px 16px;
  max-width: 350px;
  white-space: normal;
 }

 #construction .step-title-box.step-orange {
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 30px;
 }

 #construction .step-arrow {
  width: 20px;
  margin: 8px 0;
 }

 #construction .step-description.laptop {
  display: none;
 }

 #construction .step-description.palmtop {
  display: block;
  width: 90%;
 }

 #construction .step-description.palmtop p {
  font-size: 16px;
  line-height: 1.8;
 }

 #construction .step-note-red {
  font-size: 14px;
  padding: 5px 10px;
 }

 #construction .step-note-caption {
  font-size: 13px;
  margin-top: 6px;
 }

 #construction .step02 {
  padding-bottom: 80px;
 }
}

/* ===============================
セクションタイトル装飾
================================ */
#construction .reform-feature-title {
 color: #584c42;
 font-size: 1.75em;
 font-weight: bold;
 text-align: center;
 margin-bottom: 30px;
 position: relative;
}
@media screen and (min-width: 768px) {
 #construction .reform-feature-title {
  font-size: 2em;
 }
}

#construction .reform-title-underline {
 display: block;
 margin: 8px auto 0;
 width: 300px;
 height: auto;
}
/* --- ZEH施工実績ギャラリー --- */
#construction .zeh-gallery {
 display: flex;
 flex-wrap: wrap;
 gap: 24px;
 justify-content: flex-end;
 margin-top: 40px;
}

#construction .zeh-gallery-item {
 width: calc(33.333% - 16px);
 background-color: #f9f9f9;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#construction .zeh-gallery-item img {
 width: 100%;
 height: auto;
 display: block;
}

@media screen and (max-width: 768px) {
 #construction .zeh-gallery-item {
  width: 100%;
 }
}
/* 表形式（PC用） */
#construction .zeh-table-wrap {
 overflow-x: auto;
}
@media screen and (min-width: 768px) {
 #construction .zeh-table-wrap {
  overflow-x: auto;
  display: flex;
  justify-content: center;
 }
}
#construction .construction-feature-text02 {
 text-align: center;
 font-size: 1.2em;
 margin-bottom: 10px;
}
#construction .zeh-table {
 width: 70%;
 border-collapse: collapse;
 font-size: 16px;
 color: #3a2d27;
 min-width: 600px;
}
#construction .zeh-table th,
#construction .zeh-table td {
 border: 1px solid #ccc;
 padding: 12px;
 text-align: center;
}
#construction .zeh-table thead th {
 background-color: #f6f6eb;
 font-weight: bold;
}

/* リスト形式（スマホ用）非表示デフォルト */
#construction .zeh-list-format {
 display: none;
}

/* ===============================
スマホ用 ZEH 実績・目標 リスト形式カード
================================ */
@media screen and (max-width: 768px) {
 /* PC用表を非表示に */
 #construction .zeh-table {
  display: none;
 }

 /* リスト全体を表示 */
 #construction .zeh-list-format {
  display: block;
  padding: 0 16px;
 }

 /* 各カードブロック（新築・既存） */
 #construction .zeh-list-block {
  background: #f6f6eb;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
 }

 /* セクションタイトル（新築・既存） */
 #construction .zeh-list-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 16px;
  border-left: 6px solid #6d8e35;
  padding-left: 10px;
  color: #3a2d27;
 }

 /* 実績・目標の各サブセクション */
 #construction .zeh-subsection {
  margin-bottom: 16px;
 }

 /* 小見出し（ZEH普及実績・目標） */
 #construction .zeh-subtitle {
  font-weight: bold;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
 }

 /* 実績ラベル */
 #construction .zeh-subtitle.actual {
  background: #e0f1d4;
  color: #3a7d3a;
  border-left: 4px solid #6d8e35;
 }

 /* 目標ラベル */
 #construction .zeh-subtitle.goal {
  background: #ffe5cc;
  color: #b95700;
  border-left: 4px solid #f08300;
 }

 /* 年度ごとのデータ行（左右表示） */
 #construction .zeh-year-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
 }

 #construction .zeh-year-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px dashed #ccc;
  border-radius: 4px;
  font-size: 14px;
 }

 #construction .zeh-year-list dt {
  font-weight: bold;
  margin: 0;
 }

 #construction .zeh-year-list dd {
  margin: 0;
  font-weight: normal;
 }
}

/* ===============================
ステップ縦バー（画像→CSS対応＋三角調整）
================================= */

.step-left-bar-text {
 position: relative;
 flex-shrink: 0;
 width: 100px;
 padding: 20px 0;
 display: flex;
 justify-content: center;
 align-items: center;
 background: linear-gradient(to bottom, #fcb900, #ffa500);
 border-radius: 8px;
 writing-mode: vertical-rl;
 text-align: center;
 font-weight: bold;
 color: #ffffff;
 font-size: 18px;
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
 line-height: 1.8;
 margin-right: 24px;
 min-height: 100px; /* 高さは内容に応じて伸びる */
}

/* ▼ 三角形調整：バー幅と揃える */
.step-left-bar-text::after {
 content: "";
 position: absolute;
 bottom: -35px;
 left: 50%;
 transform: translateX(-50%);
 width: 0;
 height: 0;
 border-left: 50px solid transparent;
 border-right: 50px solid transparent;
 border-top: 40px solid #ffa500;
}

/* モバイル：横方向バー＋下三角 */
@media screen and (max-width: 768px) {
 .step-left-bar-text {
  writing-mode: horizontal-tb;
  width: 100%;
  padding: 12px 0;
  margin: 0 auto 16px;
  font-size: 14px;
  border-radius: 6px;
  text-align: center;
 }

 .step-left-bar-inner {
  transform: none;
 }

 .step-left-bar-text::after {
  top: 100%;
  bottom: auto;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffa500;
 }
}
.check-button {
 display: inline-block;
 padding: 10px 90px;
 border: 2px dashed #f08300; /* オレンジ色の点線枠 */
 color: #f08300 !important;
 font-size: 18px !important;
 border-radius: 6px;
 text-align: center;
 margin-top: 10px;
 font-weight: 500;
}
.side-button {
 display: flex;
 flex-direction: row;
 justify-content: center;
 padding-top: 20px;
}
@media screen and (min-width: 768px) {
 .side-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 20px;
 }
}
