@charset "UTF-8";

.p-process {
  padding: 100px 0 120px;
}

.p-process-container {
  display: flex;
  gap: 100px;
  max-width: 1120px;
  margin: 100px auto 0;
}

.p-process-bar {
  position: sticky;
  top: 250px;           /* 画面上からの固定位置 */
  align-self: flex-start;
  width: 100px;
}

.p-process-content {
  flex: 1;
}

.p-title {
  display: flex;
  align-items: center;
  font-size: 2.6rem;
  color: #7092B1;
  margin-bottom: 15px;
}

.p-title span {
  display: inline-block;
  font-size: 1.2rem;
  padding: 0 10px 0 0;
}

.p-block {
  /* max-width: 500px; */
}

.p-block p {
  line-height: 2;
  padding: 0 20px;
}

.p-process-flex .illust {
  max-width: 320px;
}

.p-process-flex + .p-process-flex {
  margin-top: 100px;
}

.p-process-list {
  position: relative;
}

.p-process-list::before {
  content: "";
  position: absolute;
  left: 3px;          /* ●の中央 */
  top: 5px;           /* 最初の●の中心 */
  width: 1px;
  height: calc(100% - 10px);
  background: #DDDDDD;
}


.p-process-list::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 1px;
  height: var(--bar-height, 0);
  background: #7092B1;
  transition: height 0.3s ease-out;
}

.p-process-list li {
  font-size: 1.2rem;
  color: #DDDDDD;
  position: relative;
  padding-left: 20px;
}

.p-process-list li.is-current {
  color: #7092B1;
}

.p-process-list li + li {
  margin-top: 90px;
}


.p-process-list li::before {
  position: absolute;
  content: "";
  background: #DDDDDD;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  left: 0;
  top: 5px;
  z-index: 3;
}

.p-process-list li.is-current::before {
  background: #7092B1;;
}

@media screen and (min-width: 768px) {


  .p-process-flex {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
  }

  .p-title {
    min-height: 210px;
  }

  .p-process-flex .illust {
    position: absolute;
    top: 0;
    right: 0;
  }

  .p-process-flex:nth-child(even) .illust {
    right: inherit;
    left: 0;
  }

  .p-process-flex:nth-child(even) .p-title {
    justify-content: right;
    padding: 0 90px 0 0;
  }



  .p-process-container {
    padding: 0 130px 0 0;
  }


}

@media screen and (max-width: 767px){

  .p-process {
    padding: 80px 0 100px;
  }

  .p-process-container {
    gap: 40px;
    margin: 80px auto 0;
    padding: 0 20px;
  }

  .p-process-bar {
    top: 80px;
    width: 10px;
  }

  .p-title {
    font-size: 1.6rem;
  }

  .p-title span {
      font-size: 1rem;
  }

  .p-block p {
      font-size: 1.3rem;
      padding: 0;
  }

  .p-block {
      margin: 0 0 30px;
  }

  .p-process-list li span {
    opacity: 0;
  }

  .p-process-list li + li {
    margin-top: 40px;
  }

  .p-process-list::before,
  .p-process-list::after {
    left: 4px;
  }

  .p-process-flex + .p-process-flex {
    margin-top: 80px;
  }

}
