/* =================================
   Page: flow（工事の流れ）
   Figma 無題 / node 1-3486（流れ）
================================= */
.flow-page-hero {
  position: relative;
  background-image: url(../images/bg-washi.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.flow-page-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 60px;
  text-align: center;
}
.flow-page-hero__title {
  margin: 0;
  font-family: "Shippori Mincho B1", var(--font-serif);
  font-size: clamp(3.2rem, 4vw, 5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #3e2b2c;
  letter-spacing: 0.04em;
}
.flow-page-hero__subtitle {
  margin: 28px 0 0;
  font-family: "Shippori Mincho B1", var(--font-serif);
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: #b99663;
  letter-spacing: 0.08em;
}
.flow-page-hero__title-line {
  display: block;
}
.flow-page-hero__title-line--sub {
  font-size: clamp(2.4rem, 4vw, 3rem);
}

/* Responsive */
@media (max-width: 768px) {
  .flow-page-hero__inner {
    padding: 40px 0;
  }

}





/* 工事の流れ */
.flow-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  box-sizing: border-box;
}

.flow-section__cols {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 34px;
  padding: 0 20px;
}

.flow-section__nav {
  width: 320px;
  flex-shrink: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-brown);
  box-sizing: border-box;
  background: #ffffff;
}

.flow-section__nav-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  padding: 20px 35px 20px 20px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid var(--color-brown);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.flow-section__nav-item:hover {
  background-color: #f9f5ef;
}

.flow-section__nav-item--active {
  background-color: #f9f5ef;
}

.flow-section__nav-accent {
  flex-shrink: 0;
  line-height: 0;
  width: 20px;
  min-width: 20px;
}

.flow-section__detail {
  scroll-margin-top: 20px;
}

.flow-section__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.flow-section__nav-item:last-child {
  border-bottom: none;
}

.flow-section__nav-item--active .flow-section__nav-num,
.flow-section__nav-item--active .flow-section__nav-label {
  font-weight: 700;
  color: #3d231f;
}

.flow-section__nav-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.flow-section__nav-num,
.flow-section__nav-label {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-text);
  font-weight: 400;
}

/* PC: ラベルは1行固定（必要時は省略） */
.flow-section__nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-section__nav-accent {
  flex-shrink: 0;
  line-height: 0;
}

.flow-section__nav-accent img {
  display: block;
}

.flow-section__cluster {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 35px;
  flex: 1 1 0;
  min-width: 0;
}

.flow-section__rail {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.flow-section__rail-segment {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  width: 100%;
}

.flow-section__bubble {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 23px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-white);
}

.flow-section__line {
  flex: 1 1 0;
  width: 1px;
  min-height: 24px;
  margin: 0 auto;
  background: linear-gradient(180deg, #782524 100%);
}

.flow-section__details {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flow-section__detail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 24px;
}

.flow-section__body {
  flex: 0 1 370px;
  max-width: 370px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.flow-section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 3.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: left;
  color: var(--color-heading);
}

.flow-section__text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.875;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-align: left;
}

.flow-section__photo {
  flex: 1 1 0;
  min-width: 0;
  min-height: 185px;
  aspect-ratio: 5 / 6;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .flow-section__inner {
    padding: 48px 20px 56px;
  }
  .flow-section__nav {
    width: 100%;
  }
  .flow-section__cols {
    flex-direction: column;
    gap: 28px;
    padding: 0;
  }
  .flow-section__detail {
    flex-direction: column;
    margin-bottom: 50px;
  }
  .flow-section__detail:last-of-type {
    margin-bottom: 0;
  }
  .flow-section__body {
    width: 100%;
    flex: initial;
    max-width: initial;
    gap: 10px;
  }
  .flow-section__rail {
    width: 42px;
  }
  .flow-section__bubble {
    padding: 11px 11px;
    border-radius: 20px;
    font-size: 16px;
  }
  .flow-section__cluster {
    gap: 10px;
  }
  .flow-section__details {
    gap: 0;
  }
  .flow-section__rail {
    align-self: flex-start;
  }

  .flow-section__rail-segment {
    flex: none;
  }

  .flow-section__nav-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
