@charset "utf-8";

/* default PC */
#roadmap {

  h2.main {
    margin-top: 30px;
  }

  .first-txt {
    text-align: center;
    margin-bottom: 60px;
  }

  .safety-area {
    background-color: var(--sub-bg-color);
    border-radius: 20px;
    padding: 50px;
  }

  .ttl-txt {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: bold;
  }

  .main-txt {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
  }

  .num {
    display: block;
    font-size: 16px;
    font-weight: 600;
  }

  .icon-box {
    margin: 25px auto;
    background: var(--main-bg-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
  }

  .icon-box img {
    width: 120px;
    height: 120px;
    object-fit: contain;
  }

  .roadmap-img {
    margin-top: 30px;
    text-align: center;
  }

  .roadmap-img img {
    width: 100%;
    max-width: 1000px;
    height: auto;
  }

  .roadmap-detail {
    margin-top: 40px;
  }

  .roadmap-detail summary {
    width: fit-content;
    margin: 0 auto;
    padding: 15px 40px;
    background-color: var(--main-bg-color);
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 60px;
  }

  .txt-3box ul {
    margin: 25px 0 0;
    padding: 0 10px;
    list-style: none;
  }

  .txt-3box li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    line-height: 1.7;
  }

  .txt-3box li:last-child {
    margin-bottom: 0;
  }

  .txt-3box li::before {
    content: "";
    position: absolute;
    top: 0.8em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .txt-3box:nth-child(1) li::before {
    background-color: #F08638;
  }

  .txt-3box:nth-child(2) li::before {
    background-color: #4EA5E9;
  }

  .txt-3box:nth-child(3) li::before {
    background-color: #23AF68;
  }

  /* 図 */

  .roadmap-detail {
    margin-top: 40px;
    text-align: center;
  }

  .roadmap-detail summary {
    position: relative;
    display: inline-block;
    padding: 15px 70px 15px 40px;
    background-color: var(--fifth-bg-color);
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    transition: 0.3s;
    width: 100%;
  }

  .roadmap-detail summary:hover {
    opacity: 0.7;
    text-decoration: none;
    transition: 0.3s;
  }

  .roadmap-detail summary::-webkit-details-marker {
    display: none;
  }

  .roadmap-detail summary::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 35px;
    width: 10px;
    height: 10px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    transition: .3s;
  }

  /* 開いたとき */
  .roadmap-detail[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
  }

  .roadmap-detail-content {
    margin-top: 30px;
  }

  .roadmap-detail-content img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 15px;
  }

  .flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
  }

  .txt-3box {
    width: calc((100% - 60px) / 3);
  }

  .br-959 {
    display: none;
  }
}

/* view-959 Mobile,Tablet */
@media screen and (max-width: 959px) {

  #roadmap {

    .roadmap-detail {
      text-align: left;
    }

    .roadmap-detail-content {
      overflow-x: auto;
    }

    .roadmap-detail-content img {
      min-width: 1000px;
    }

    #contents h2.cacht-txt {
      line-height: 1.5em;
    }

    .first-txt {
      text-align: left;
    }

    .flex {
      flex-wrap: wrap;
      justify-content: center;
      gap: 50px 20px;
    }

    .txt-3box {
      width: calc(50% - 10px);
    }

    .icon-box {
      height: 120px;
      margin: 15px auto;
    }

    .icon-box img {
      width: 80px;
      height: 80px;
    }

    .br-959 {
      display: block;
    }
  }
}

@media screen and (max-width: 745px) {
  #roadmap {
    .txt-3box {
      width: 100%;
    }

    .icon-box {
      height: 100px;
    }

    .icon-box img {
      width: 60px;
      height: 60px;
    }

    .roadmap-detail summary {
      padding: 10px 70px 10px 40px;
      font-size: 17px;
    }

    .safety-area {
      padding: 30px;
    }
  }
}

/* view-559 Mobile */
@media screen and (max-width: 559px) {

    #roadmap .roadmap-detail-content img {
      min-width: 900px;
    }

  #roadmap .safety-area {
    padding: 30px 15px;
  }

  #roadmap #contents h2.cacht-txt {
    font-size: 23px;
  }

}