@charset "UTF-8";

/*===========================================================================*/
/* 1. Flow Section (フロー/手順)
/*===========================================================================*/

/* Container & Base Step Layout */
.flow_container {
  max-width: 90%;
  margin: 7em auto 12em;
}

.step {
  display: flex;
  justify-content: center;
  align-items: last baseline;
  margin-bottom: 6em;
}

.step:first-child {
  margin-bottom: 10em;
}

.step:nth-child(4) {
  margin-bottom: 9em;
}

/* Step Directions (左右の反転) */
.step-left-image {
  flex-direction: row;
}

.step-right-image {
  flex-direction: row-reverse;
}

/* Image Box */
.image-content {
  position: relative;
  z-index: 1;
  width: 55%;
}

.image-content img {
  display: block;
  width: 100%;
  height: auto;
}

/* Text Box Base */
.text-content {
  position: relative;
  z-index: 2;
  width: 51%;
  min-height: 300px;
  padding: 60px 50px;
  background-color: #f0f8fd;
}

/* Overlap Adjustments (左右のネガティブマージン) */
.step-left-image .text-content {
  margin-left: -5%;
}

.step-right-image .text-content {
  margin-right: -5%;
}

/* Overlap Adjustments (上下のオフセット位置調整) */
.step.step-left-image:first-child .text-content {
  top: 2em;
}

.step.step-left-image:nth-child(n+2) .text-content {
  top: -1em;
}

.step.step-right-image .text-content {
  top: -4em;
}

.step.step-right-image:nth-child(n+2) .text-content {
  top: -2em;
}

.step.step-right-image:nth-child(n+4) .text-content {
  top: 2em;
}

/* Typography & Inner Elements */
.step-number {
  position: absolute;
  top: 50px;
  right: 50px;
  color: #6db7e7;
  font-family: 'Arial', sans-serif;
  font-size: 70px;
  font-weight: bold;
  line-height: 1;
}

.step-header {
  margin-bottom: 30px;
  padding-right: 80px;
  padding-left: 20px;
  border-left: 3px solid #6db7e7;
}

.step-title {
  margin: 0 0 5px 0;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-title-sub {
  font-size: 16px;
  font-weight: normal;
}

.step-subtitle {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
}

/* 本文テキスト */
.step-text {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .08em;
  text-align: justify;
}

.step-text p {
  margin: 0 0 1.2em 0;
}

.step-text p:last-child {
  margin-bottom: 0;
}

/*===========================================================================*/
/* Media Queries (スマートフォン用)
/*===========================================================================*/
@media screen and (max-width: 900px) {
  .flow_container {
    max-width: 90%;
    margin: 4em auto 6em;
  }

  .step {
    flex-direction: column !important;
    margin-bottom: 60px;
  }

  .step:first-child {
    margin-bottom: 5.5em;
  }

  .step:nth-child(4) {
    margin-bottom: 6em;
  }

  .image-content {
    width: 100%;
  }

  .text-content {
    width: 100%;
    margin: -30px auto 0 !important;
    padding: 40px 20px;
  }

  .step.step-left-image:nth-child(n+2) .text-content {
    top: 1em;
  }

  .step.step-right-image:nth-child(n+2) .text-content {
    top: 2em;
  }

  .step-number {
    top: 20px;
    right: 20px;
    font-size: 50px;
  }

  .step-header {
    padding-right: 50px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-title-sub {
    display: block;
    margin-top: 5px;
    font-size: 14px;
  }

  .step-subtitle {
    font-size: 14px;
  }

  .step-text {
    font-size: 13px;
  }
}