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

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #111009;
  background: #f5f3ef;
}

.demo-header {
  background: #111009;
  color: #fff;
}

.demo-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-tag {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ff6b00;
}

.demo-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-header a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.demo-header a:hover {
  color: #ff6b00;
}

.demo-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.demo-intro {
  margin-bottom: 48px;
}

.demo-intro h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.demo-intro p {
  margin: 0;
  color: #555;
}

.flow-block {
  margin-bottom: 64px;
}

.flow-block:last-of-type {
  margin-bottom: 0;
}

.flow-block-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ddd8cf;
}

.flow-block-label {
  margin: 0 0 6px;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff6b00;
}

.flow-block-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.flow-block-note {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.flow-simple {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-simple__item {
  position: relative;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 24px 16px 20px;
  text-align: center;
}

.flow-simple__item:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  color: #ff6b00;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.flow-simple__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #111009;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.flow-simple__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.flow-simple__text {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.65;
}

.flow-detail {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.flow-detail__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px 20px;
  padding-bottom: 28px;
  position: relative;
}

.flow-detail__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: #ddd8cf;
}

.flow-detail__marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111009;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.flow-detail__body {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 18px 20px;
}

.flow-detail__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.flow-detail__text {
  margin: 0 0 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.flow-detail__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #ff6b00;
}

.demo-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #ddd8cf;
  text-align: center;
}

.demo-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

@media (max-width: 768px) {
  .flow-simple-wrap {
    margin: 0 -24px;
    padding: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .flow-simple-wrap::-webkit-scrollbar {
    display: none;
  }

  .flow-simple {
    display: flex;
    gap: 20px;
    min-width: min(100%, 720px);
    padding-bottom: 4px;
  }

  .flow-simple__item {
    flex: 1 1 0;
    min-width: 140px;
  }

  .flow-simple__item:not(:last-child)::after {
    right: -10px;
    transform: translate(50%, -50%);
    font-size: 0.875rem;
  }
}

@media (max-width: 560px) {
  .flow-detail__item {
    grid-template-columns: 40px 1fr;
    gap: 12px 14px;
  }

  .flow-detail__marker {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .flow-detail__item:not(:last-child)::before {
    left: 19px;
    top: 40px;
  }
}
