/* scroll */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.timeline-container {
  display: flex;
  justify-content: left;
  margin: 20px;
}
.timeline-container .vertical-scrollable-timeline {
  list-style-type: none;
  position: relative;
}
.timeline-container .vertical-scrollable-timeline .list-progress {
  width: 4px;
  height: 100%;
  background-color: #36637E;
  position: absolute;
  left: 23px;
  top: 0;
  overflow: hidden;
}
.timeline-container .vertical-scrollable-timeline .list-progress .inner {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  background-color: lightgrey;
  width: 100%;
  transition: 0.4s all;
}
.timeline-container .vertical-scrollable-timeline li {
  position: relative;
  padding: 8px 0px 50px 73px;
  text-align: justify;
  margin-left: 0;
}
.timeline-container .vertical-scrollable-timeline li:last-child {
  margin-bottom: 0;
}
.timeline-container .vertical-scrollable-timeline li h2 {
  font-size: clamp(1.2em, 4vw, 1.69rem);
  margin: 0 0 10px 0;
  font-weight: 600;
  text-align: left;
}
/* .timeline-container .vertical-scrollable-timeline li p {
  color: grey;
  font-size: clamp(0.85rem, 2vmax, 1rem);
} */
.timeline-container .vertical-scrollable-timeline li p:last-child {
  margin-bottom: 0;
}
.timeline-container .vertical-scrollable-timeline li .icon-holder {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: lightgrey;
  font-weight: bold;
  z-index: 1;
  transition: 0.4s all;
}
.timeline-container .vertical-scrollable-timeline li .icon-holder::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  position: absolute;
  background-color: lightgrey;
  z-index: -1;
  transition: 0.4s all;
}
.timeline-container .vertical-scrollable-timeline li .icon-holder i {
  font-size: 25px;
  color: #fff;
}
.timeline-container .vertical-scrollable-timeline li::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 8px;
  background-color: transparent;
  left: 48px;
  z-index: 0;
}
.timeline-container .vertical-scrollable-timeline li:last-child::before {
  width: 20px;
  left: 18px;
  background-color: #fff;
}
.timeline-container .vertical-scrollable-timeline li.active .icon-holder {
  background-color: #00589C;
}
.timeline-container .vertical-scrollable-timeline li.active .icon-holder::before {
  background-color: #00589C;
}

/* button */

.button-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px;
}

.button-container li {
  list-style: none;
  margin: 0 !important;
  display: flex;
  position: relative; 
}

/* 通常の区切り線 */
.button-container li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%; 
  width: 2px;
  background-color: #0068b7;
}

/* 次のli内のaに.activeがある場合、線を消す */
.button-container li:has(+ li .tab-button.active)::after {
  content: none;
}

.tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
  background-color: #ebf5f8;
  color: #0068b7;
  text-align: center;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.3s ease;
  min-height: 80px;
  border: none;
}

.tab-button:hover {
  text-decoration: underline;
}

.tab-button.active {
  background-color: #0068b7;
  color: #fff;
}

    /*  アプリリンク */
  .applink_wrapper{
  width: 80%;
  max-width: 500px;
  margin: auto;
  text-align: center;
  display: flex;
  padding: 1em;
  background: #ededed;
  gap: 10px;
}

.applink_wrapper .applink_inner{
  display: flex;
  align-items: center;
  gap: 10px;
}

  .applink_wrapper .item01{
    margin: 0;
    min-width: 80px;
  }

  .applink_wrapper .item{
  margin: 0;
  flex-shrink: 1;
  }

  .applink_wrapper .item a::after{
  content: none !important;
  }

@media screen and (max-width: 767px){
  .applink_wrapper{
    width: 100%;
    flex-direction: column;
    align-items: center;
  } 
  .applink_wrapper .applink_inner{
  flex-direction: column;
}
  .applink_wrapper .applink_inner .item{
  width: 200px;
}
}

        /* utility */

    .flex {
      display: flex;
    }

    .jc_sb {
      justify-content:space-between;
    }

    .ai_c {
      align-items: center;
    }

    .g_20{
      gap: 20px;
    }

    .grcolor_box{
      background: #ededed;
      padding: 1em;
    }

    .wtcolor_box{
      background: #ffffff;
      padding: 1em;
    }

    .txt_ind {
      text-indent: -1em;
      padding-left: 1em;
    }
    
    @media screen and (max-width: 767px) {
    .sp_fd_clm {
    flex-direction:column;
    }
    .sp_ai_c{
    align-items: center;
    }

    }

/* ポップアップ */
body:has(.popup-active) {
  overflow: hidden;
}

.popup {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: all .3s ease-in-out;
  visibility: hidden;
  width: 100vw;
  z-index: -1;
}

.popup.popup-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 10000;
}

.popup-bk {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .7);
}

.popup-inner {
  background: #fff;
  max-width: 1000px;
  position: relative;
  transform: scale(.8);
  transition: all .3s ease-in-out;
  width: 90%;
  z-index: 2;
  max-height: 95vh; /* 高さ制限を追加してはみ出し防止 */
  overflow: hidden;  /* 内部のはみ出しを隠す */
}

.popup-inner .popup-content {
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-height: 95vh;
  padding: 50px 75px 30px;
}

/* 地図エリア */
.map {
  max-width: 574px;
  width: 100%;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.map-inner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.popup-inner .popup-content {
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-height: 95vh;
  padding: 0; /* 画像表示エリアにはパディングをなくす */
  justify-content: center;
  align-items: center;
}

.popup-inner .popup-content img.map_img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 95vh; /* 親要素に収める */
  object-fit: contain; /* はみ出さず切れない */
  display: block;
}

/* 画像エリアは地図の上に重なる */
.images-area {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
  pointer-events: none;
}

/* 画像のポップアップ */
.popup-img {
  background-color: #fff;
  box-shadow: 0 2px 30px 0 rgba(0, 0, 0, .5);
  left: 50%;
  padding: 10px;
  position: absolute;
  top: 33.5%;
  width: min(500px, 40vw);
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
  transform: translate(-50%, 0) scale(.9);
  opacity: 0;
  visibility: hidden;
  z-index: 4;
  pointer-events: none;
  display: block;
}

.popup-img.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
  z-index: 5;
}

.close-popup {
  background: url(/wp-content/themes/nmct/img/guide/flow/icons/icon-time.svg) 50% no-repeat #e3eff8;
  height: 50px;
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  z-index: 1;
  cursor: pointer;
}

.remove-img {
  background-color: #1163aa;
  color: #fff;
  font-weight: bold;
  aspect-ratio: 1 / 1;
  width: 40px;
  border-radius: 50%;
  font-size: 1.8em;
  position: absolute;
  top: -20px;
  right: -20px;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .popup-inner {
    width: 100%;
  }

  .popup-inner .popup-content {
    padding: 40px 10px 10px;
  }

  .popup-img {
    width: min(500px, 75vw);
  }

  .remove-img {
    width: 25px;
    font-size: 1em;
    top: -10px;
    right: -10px;
  }
}

/* SP版　sidemenu削除対応　*/
@media screen and (max-width: 767px) {
  body.page-id-15587 .sidebar_wrap,
  body.page-id-15591 .sidebar_wrap,
  body.page-id-15853 .sidebar_wrap,
  body.page-id-15589 .sidebar_wrap,
  body.page-id-15760 .sidebar_wrap,
  body.page-id-15867 .sidebar_wrap {
    display: none !important;
  }
}

