@charset "utf-8";
/* =========================================
   断熱工事の流れ（Flow）
   ========================================= */

.flow-area {
  --flow-accent: #e8792e; /* 丸・線の色 */
  --flow-accent-text: #b4520f; /* 小さい文字用（読みやすい濃さ） */
  --flow-bg: #f4f0ea;
  --flow-card: #ffffff;
  --flow-text: #2b2724;
  --flow-text-sub: #4a443e;
  --flow-placeholder: #e6ded3;

  background: var(--flow-bg);
  padding: 100px 0 0;
}

.flow-area *,
.flow-area *::before,
.flow-area *::after {
  box-sizing: border-box;
}

.flow-inner {
  margin: 0 auto;
}

/* ---------- ステップ一覧 ---------- */
.flow-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.flow-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 40px;
}

/* 左側：丸 + 縦線 */
.flow-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-marker::after {
  content: "";
  flex-grow: 1;
  width: 1px;
  background: var(--flow-accent);
  opacity: 0.45;
}

.flow-item--last .flow-marker::after {
  display: none;
}

.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--flow-accent);
  color: #ffffff;
  font-family: "Jost", sans-serif;
  font-size: 26px;
  font-weight: 500;
}

/* 右側：カード */
.flow-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 32px;
  padding: 28px;
  background: var(--flow-card);
  border-radius: 16px;
}

.flow-item--last .flow-card {
  margin-bottom: 0;
}

.flow-img {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  background: var(--flow-placeholder);
}

.flow-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-step {
  margin: 0 0 12px;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--flow-accent-text);
}

.flow-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.flow-badge {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--flow-accent-text);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.flow-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--flow-text-sub);
}

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .flow-bg-text {
    display: none;
  }

  .flow-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  .flow {
    padding: 64px 16px;
  }

  .flow-head {
    margin-bottom: 40px;
  }

  .flow-title {
    font-size: 26px;
  }

  .flow-lead {
    font-size: 14px;
  }

  .flow-item {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
  }

  .flow-num {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .flow-card {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 16px 20px;
    border-radius: 12px;
  }

  .flow-img {
    border-radius: 8px;
  }

  .flow-step {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .flow-item-title {
    gap: 8px;
    margin-bottom: 8px;
    font-size: 18px;
  }

  .flow-text {
    font-size: 14px;
    line-height: 1.8;
  }
}
