@charset "utf-8";

.content-4 .btn_box{
  margin: 0 0 45px 0;
}
.content-4 main section:last-child {
  margin: 0 0 120px 0;
}
.content-4 .tab {
  margin: 0 auto;
}

.content-4 .tab-list {
  background-color: #948f86;
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.content-4 .tab-list-item:first-child {
  border-radius: 4px 0 0 4px;
}

.content-4 .tab-list-item:last-child {
  border-radius: 0 4px 4px 0;
}

.content-4 .tab-list-item {
  width: 25%;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background-color: #948f86;
  border-radius: 0;
}


.content-4 .is-btn-active {
  font-weight: bold;
  background-color: #20a27c;
  color: #fff;
  border-radius: 0;
  cursor: unset;
}

.content-4 .tab-contents {
  display: none;
  padding: 20px 0;
}

.content-4 .is-contents-active {
  display: block;
}

.content-4 .tab-contents .inrbox {
  display: flex;
}
.content-4 .tab-contents .inrbox .box-l{
  position: relative;
  width:13.75%;
}
.content-4 .tab-contents .inrbox .box-l::after{
  content:"";
  position: absolute;
  border-right:5px solid #20A27C;
  height: 100%;
  top: 50px;
  left: 40%;
  z-index: -1;
}
.content-4 .tab-contents .inrbox .box-l .history {
  color: #fff;
  background-color: #20A27C;
  background-size: cover;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  text-align: center;
  width: 90px;
  line-height: 1;
  font-weight: bold;
}
.content-4 .tab-contents .inrbox .box-l .history.l-pos1 {
  top: 50px;
  left: 0;
}
.content-4 .tab-contents .inrbox .box-r {
    flex: 1;
    min-width: 0;

    background-size: cover;
    border-radius: 8px;
    padding: 15px;
    margin: 35px 0 0 35px;
    position: relative;
}
.content-4 .tab-contents .inrbox .box-r:before {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  position: absolute;
  z-index: -1;
  margin-top: -4px;
  transform: rotate(90deg);
}
.content-4 .tab-contents .inrbox .box-r .cat-ttl {
  color:#fff;
  background-size: cover;
  border-radius: 6px;
  text-align: center;
  width:90px;
  margin:0 0 15px 0;
  font-weight: bold;
}
.content-4 .tab-contents .inrbox .box-r .cat-corp{
  background-color: #72ca9f;
}
.content-4 .tab-contents .inrbox .box-r .cat-proj{
  background-color: #96B9FF;
}
.content-4 .tab-contents .inrbox .box-r .name{
  font-weight: bold;
  margin:0 0 5px 0;
}



@media only screen and (min-width: 769px) {
    .content-4 .img-sm-1-1 {
        width: 43.2%;
    }

    .content-4 .img-sm-3-1 {
        width: 27.4%;
    }

    .content-4 .img-sm-3-2 {
        width: 43.3%;
    }

    .content-4 .tab-contents .inrbox .box-r:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    position: absolute;
    z-index: -1;
    margin-top: -4px;
    transform: rotate(90deg);
}

.content-4 .tab-contents .inrbox .r-pos1:before{
    top: 9px;
    left: -28px;
}

.content-4 .tab-contents .inrbox .r-pos2:before{
    top: 9px;
    left: -28px;
}
}
.content-4 .tab-contents .inrbox .r-pos1::before {
  border-top: 50px solid #e9f6f2;
}

.content-4 .tab-contents .inrbox .r-pos2::before {
  border-top: 50px solid #EBFBFE;
}

.content-4 .tab-contents .inrbox .r-pos1 {
  background-color: #e9f6f2;
}

.content-4 .tab-contents .inrbox .r-pos2 {
  background-color: #EBFBFE;
}

.content-4 .accordion .h_bg {
  font-size: 1.6rem;
  padding: 12px 10px;
}

.content-4 .tab-contents .timeline-last .box-l::after {
  height: calc(100% - 50px);
}



@media only screen and (max-width: 768px) {
 
    .content-4 .tab-contents .inrbox {
      display: block;
      margin: 0 0 30px 0;
    }
    .content-4 .tab-contents .inrbox .box-l {
      position: unset;
    }
    .content-4 .tab-contents .inrbox .box-l::after {
      content: unset;
    }
    .content-4 .tab-contents .inrbox .box-l .history {
      position: unset;
    }
    .content-4 .tab-contents .inrbox .box-r {
      width: 100%;
      margin: 10px 0;
    }

    .content-4 .tab-contents .inrbox .r-pos1::before {
    border-top: 50px solid #e9f6f2;
}

    .content-4 .tab-contents .inrbox .r-pos2::before {
    border-top: 50px solid #EBFBFE;
}


  .content-4 .tab-list {
    display: block;
    border-radius: 4px;
    overflow: hidden;
  }
    .content-4 .tab-list-item{
        width:100%;
    }
    .content-4 .is-btn-active{
        border-radius: 0px;
    }
    .content-4 .is-btn-active:first-child{
        border-radius:4px 4px 0 0;
    }
    .content-4 .is-btn-active:last-child{
        border-radius:0 0 4px 4px;
    }
  .content-4 .tab-list-item:not(:last-child)::after {
    display: none;
  }

  .content-4 .tab-list-item {
    border-radius: 0;
}
  
}

@media only screen and (max-width: 768px) {
  .content-4 .tab-list-item:first-child {
    border-radius: 4px 4px 0 0;
  }

  .content-4 .tab-list-item:last-child {
    border-radius: 0 0 4px 4px;
  }
}


.box-r {
  display: flex;
  align-items: center;
  gap: 16px;
}

.history-text {
  flex: 1;
}

.history-img {
  width: 40%;
  margin: 0;
}

.history-img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .box-r {
    display: block;
  }

  .content-4 .history-img {
    width: 75%;
    margin: 20px auto 0;
  }
}


@media only screen and (min-width: 769px) {
  .content-4 .tab-list {
    display: flex;
    width: 100%;
    background: transparent;
    overflow: visible;
  }

  .content-4 .tab-list-item {
    flex: none;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 28px;
    margin: 0;
    position: relative;

    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;

    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* 1〜3個目は224×50 */
  .content-4 .tab-list-item:not(:last-child) {
    width: 224px;
    background-size: 224px 50px;
  }

  /* 4個目だけ200×50 */
  .content-4 .tab-list-item:last-child {
    width: 200px;
    background-size: 200px 50px;
  }

  /* 2個目以降を前のタブへ重ねる */
  .content-4 .tab-list-item:not(:first-child) {
    margin-left: -24px;
    /* padding-left: 48px; */
  }

  /* 重なり順 */
  .content-4 .tab-list-item:nth-child(1) {
    z-index: 4;
  }

  .content-4 .tab-list-item:nth-child(2) {
    z-index: 3;
  }

  .content-4 .tab-list-item:nth-child(3) {
    z-index: 2;
  }

  .content-4 .tab-list-item:nth-child(4) {
    z-index: 1;
  }

  /* 通常時 */
  .content-4 .tab-list-item:not(:last-child) {
    background-image: url("../img/content-4/tab-arrow-gray.svg");
  }

  .content-4 .tab-list-item:last-child {
    background-image: url("../img/content-4/tab-last-gray.svg");
  }

  /* 選択中 */
  .content-4 .tab-list-item.is-btn-active:not(:last-child) {
    background-image: url("../img/content-4/tab-arrow-green.svg");
  }

  .content-4 .tab-list-item.is-btn-active:last-child {
    background-image: url("../img/content-4/tab-last-green.svg");
  }

  /* ホバー */
  .content-4 .tab-list-item:not(.is-btn-active):not(:last-child):hover {
    background-image: url("../img/content-4/tab-arrow-hover.svg");
  }

  .content-4 .tab-list-item:not(.is-btn-active):last-child:hover {
    background-image: url("../img/content-4/tab-last-hover.svg");
  }

    .content-4 .tab-list-item,
  .content-4 .tab-list-item:hover,
  .content-4 .is-btn-active,
  .content-4 .is-btn-active:hover {
    background-color: transparent !important;
  }

    .content-4 .tab-list-item:first-child {
    justify-content: flex-start;
    padding-left: 72px;
  }
}


