/* ==========================================================================
   軽天下地工事（keiten）ページ専用スタイル
   ファイル: assets/css/keiten.css
   読み込み: functions.php > vogue_scripts > is_page('keiten')
   命名規則: body.keiten をルートセレクタとしてスコープを限定する
   ========================================================================== */

/* ---------- ラッパー ---------- */
body.keiten .keiten-wrap {
  padding-bottom: 80px;
}

body.keiten .heading1 {
  text-align: center;
}

/* ---------- ページタイトル ---------- */
body.keiten .keiten-intro {
  padding: 48px 0 0;
}

/* ==========================================================================
   セクション共通
   ========================================================================== */
body.keiten .keiten-section {
  padding: 64px 0;
}

body.keiten .keiten-section--gray {
  background: #f7f9f7;
}

/* ---------- セクション見出し（h3） ---------- */
body.keiten .keiten-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-main);
  padding-left: 16px;
  border-left: 4px solid var(--color-main);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ==========================================================================
   テキスト＋画像ブロック（共通）
   ========================================================================== */
body.keiten .keiten-block {
  display: flex;
  gap: 56px;
  align-items: center;
}

/* 画像を左側に（reverse） */
body.keiten .keiten-block--reverse {
  flex-direction: row-reverse;
}

body.keiten .keiten-block__img {
  flex-shrink: 0;
  width: 45%;
}

body.keiten .keiten-block__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

body.keiten .keiten-block__img--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body.keiten .keiten-block__img-col {
  min-width: 0;
}

body.keiten .keiten-block__img--split img {
  aspect-ratio: 3 / 5;
}

body.keiten .keiten-block__text {
  flex: 1;
  min-width: 0;
}

body.keiten .keiten-jisseki-intro {
  margin-bottom: 24px;
}

body.keiten .keiten-block__subtitle {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

body.keiten .keiten-block__p {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 16px;
}

body.keiten .keiten-block__p:last-of-type {
  margin-bottom: 0;
}

/* ---------- ボタン ---------- */
body.keiten .keiten-btn {
  margin-top: 40px;
}

body.keiten .keiten-btn .c-portfolio-btn {
  max-width: 560px;
  margin: 0 auto;
}

body.keiten .keiten-btn .p-main-image_btn-link_type3 {
  max-width: none;
}

/* ==========================================================================
   施工の流れ
   ========================================================================== */
body.keiten .keiten-flow__body {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

body.keiten .keiten-flow__steps {
  flex: 1;
  min-width: 0;
}

body.keiten .keiten-flow__img {
  flex-shrink: 0;
  width: 38%;
}

body.keiten .keiten-flow__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ---------- STEPアイテム ---------- */
body.keiten .keiten-step {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

body.keiten .keiten-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.keiten .keiten-step__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  background: var(--color-main);
  color: #fff;
  border-radius: 4px;
  padding: 8px 4px;
}

body.keiten .keiten-step__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

body.keiten .keiten-step__num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin-top: 4px;
}

body.keiten .keiten-step__content {
  flex: 1;
  min-width: 0;
}

body.keiten .keiten-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 8px;
}

body.keiten .keiten-step__text {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

/* ==========================================================================
   対応できる環境・条件
   ========================================================================== */
body.keiten .keiten-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.keiten .keiten-list__item {
  position: relative;
  padding: 14px 0 14px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

body.keiten .keiten-list__item:first-child {
  border-top: 1px solid #e0e0e0;
}

body.keiten .keiten-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-sub);
  border-radius: 50%;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

/* タブレット（〜1024px） */
@media screen and (max-width: 1024px) {
  body.keiten .keiten-section-title {
    font-size: 20px;
  }

  body.keiten .keiten-block {
    gap: 40px;
  }

  body.keiten .keiten-block__img {
    width: 42%;
  }

  body.keiten .keiten-flow__body {
    gap: 40px;
  }

  body.keiten .keiten-flow__img {
    width: 36%;
  }
}

/* 小タブレット（〜959px） */
@media screen and (max-width: 959px) {
  body.keiten .keiten-block,
  body.keiten .keiten-block--reverse {
    flex-direction: column;
  }

  body.keiten .keiten-block__img {
    width: 100%;
  }

  body.keiten .keiten-flow__body {
    flex-direction: column;
  }

  body.keiten .keiten-flow__img {
    width: 100%;
  }

  body.keiten .keiten-block__img--split {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.keiten .keiten-btn .c-portfolio-btn {
    max-width: 100%;
  }
}

/* モバイル（〜640px） */
@media screen and (max-width: 640px) {
  body.keiten .keiten-wrap {
    padding-bottom: 48px;
  }

  body.keiten .keiten-wrap .l-inner {
    padding: 0;
  }
  body.keiten .keiten-wrap .l-inner.flow {
    padding: 0;
  }

  body.keiten .keiten-intro {
    padding: 32px 0 0;
  }

  body.keiten .keiten-section {
    padding: 40px 0;
  }

  body.keiten .keiten-section-title {
    font-size: 18px;
  }

  body.keiten .keiten-block {
    gap: 24px;
  }

  body.keiten .keiten-block__img--split {
    gap: 12px;
  }

  body.keiten .keiten-flow__body {
    gap: 24px;
  }

  body.keiten .keiten-step__badge {
    width: 44px;
  }

  body.keiten .keiten-step__num {
    font-size: 18px;
  }
}
