#constructions_list {
    position: relative;
    text-align: center;
    width: auto;
    width: initial;
    height: auto;
    height: initial;
}
.archive_wrapper {
    /* width: 75%; */
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.archive_list {
    width: 15vw;
    min-width: 210px;
    max-width: 250px;
    padding: 10px;
}
.archive_list a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}
.archive_list a:hover {
    transform: scale(0.98);
    opacity: 0.6;
}
.archive_list img {
    width: 100%;
}
#list_msg {
    padding-top: 90px;
    width: 46%;
    min-width: 610px;
}
#constructions_list h3 {
    position: absolute;
    top:110px;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}
/* #list_container {
    
} */
#list_container p {
    color: black;
}
#list_container .sub_container {
    /* padding-top: 50px; */
    width: 90%;
    max-width: 1020px;
    margin: 0 auto;
}
/* #list_container .sub_container a {
    display: block;
    width: 700px;
    margin: 0 auto;
    margin-bottom: 75px;
} */
.list_item {
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    /* padding-top: 100px; */
    padding: 100px 5% 0;
    /* padding-bottom: 60px; */
    /* margin-top: 100px; */
    /* margin-bottom: 60px; */
}
.list_item .main_wrap {
    display: flex;
    justify-content: space-between;
}
.list_item .case_img_wrap {
    width: 45%;
    position: relative;
}
.case_img_wrap .img_wrap {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.list_item .case_img_wrap img {
    width: 100%;
}

.list_item.right .case_img_wrap img {
    box-shadow: -1.5vw 1.5vw #F5C029;
}
.list_item.left .case_img_wrap img {
    box-shadow: 1.5vw 1.5vw black;
}
.case_img_wrap .img_wrap.before {
    position: relative;
    opacity: 1;
    z-index: 1;
}
.case_img_wrap .img_wrap.after {
    opacity: 0;
    z-index: 2;
}
.case_img_wrap .img_wrap::before {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 5px;
    /* width: 5vw;
    height: 5vw;
    max-width: 70px;
    max-height: 70px;
    min-width: 47px;
    min-height: 47px; */
    width: clamp(47px, 5vw, 70px);
    height: clamp(47px, 5vw, 70px);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}
.case_img_wrap .img_wrap.before::before {
    /* content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px; */
    background-image: url('../images/constructions/before_label.svg');
    /* background-size: contain;
    background-repeat: no-repeat;
    z-index: 10; */
}
.case_img_wrap .img_wrap.after::before {
  /* content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 60px; */
  background-image: url('../images/constructions/after_label.svg');
  /* background-size: contain;
  background-repeat: no-repeat;
  z-index: 10; */
}
.list_item.left .case_img_wrap .img_wrap::before{
    left: auto;
    right: 5px;
}


.list_item .contents {
    width: 45%;
    text-align: left;
}
.list_item .num_bar {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.list_item .num_bar img{
    width: 6vw;
    max-width: 60px;
    min-width: 38px;
}
.list_item .num_bar::after {
    content: "";
    flex-grow: 1;
    -ms-flex-positive: 1;
    height: 1.5px;
    background: black;
    margin-left: 10px;
}
.list_item .title {
    display: block;
    padding: 10px 20px;
    font-size: 20px;
    margin: 0;
}
.list_item.right .title {
    background-color: #F5C029;
}
.list_item.left .title {
    background-color: black;
    color: white;
}
.list_item .points {
    width: 75px;
    padding-top: 15px;
}
.bottom_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
}
.points_item {
    display: flex;
    align-items: center;
    padding-left: 20px;
    margin-bottom: 5px;
}
.points_item .check {
    width: 20px;
    padding-right: 10px;
}
.list_item .btn {
    margin-top: 15px;
}
.list_item .btn a {
    background-color: black;
    color: white;
}

.accordion {
    /* display: none; */
    padding: 20px;
    /* border-radius: 25px; */
    /* box-shadow: 0px 4px 15px rgb(0,0,0,0.25); */
    padding: 20px 10% 30px;
    margin-top: 30px;
    /* margin-bottom: 50px; */
}
.accordion h4 {
    font-size: 18px;
    padding: 7px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
.br_sp {
    display: none;
}
.accordion .caption {
    width: 65%;
    margin: 15px auto;
}
.before_after_wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px ;
    position: relative;
}
.before_after_wrap .img_wrap {
    position: relative;
    width: 49%;
}
.before_after_wrap .img_wrap img {
    width: 100%;
}
.before_after_wrap .label {
    padding: 3px 15px;
    background-color: #F9D46D;
    /* background-image: linear-gradient(-45deg, black 15px, transparent 0); */
    color: black;
    box-shadow: 2.5px 2.5px black;
    border: solid 1.5px black;
    font-weight: bold;
    position: absolute;
    top: 7px;
    left: 15px;
}
.before_after_wrap::before {
    content:'';
    position:absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 3vw;
    height: 3vw;
    min-width: 35px;
    min-height: 35px;
    background-image: url('../images/constructions/change_arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 0;
}
.gallery-item {
    height: auto;
    width: auto;
    max-height: 200px; /* 高さだけ制限 */
    flex-shrink: 0;
    cursor: pointer;
    /* transition: opacity 0.3s; */
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}
#popup-image {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    z-index: 2;
}
.popup.hidden {
  display: none;
}
.popup-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* font-size: 2rem; */
    /* background: rgba(0,0,0,0.5); */
    /* color: white; */
    background: none;
    border: none;
    /* padding: 10px; */
    padding: 20px;
    cursor: pointer;
    z-index: 10;
}
.popup-arrow .arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: solid white;
    border-width: 0 4px 4px 0;
    padding: 8px;
}
.popup-arrow.left {
    left: 3%;
}
.popup-arrow.right {
    right: 3%;
}
.popup-arrow.left .arrow {
    transform: rotate(135deg);
}
.popup-arrow.right .arrow {
    transform: rotate(-45deg);
}
.popup-arrow:hover .arrow {
    opacity: 0.8;
}

.btn {
    margin-bottom: 50px;
    animation: move-y .5s 1s infinite alternate ease-in-out;
}
.btn.black a {
    color: white;
    background: black;
}
@keyframes move-y {
    from {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    to {
        -webkit-transform: translateY(8px);
        transform: translateY(8px);
    }
}

@media screen and (max-width: 780px) {
    .archive_wrapper {
        flex-wrap: wrap;
    }
    #list_msg {
        width: 70%;
        min-width: 300px;
    }
    .archive_list {
        min-width: 150px;
    }
    .list_item {
        padding: 50px 5% 0;
    }
    .list_item .main_wrap{
        flex-direction: column-reverse;
        align-items: center;
    }
    .list_item .contents {
        width: 90%;
        margin-bottom: 30px;
    }
    .list_item.left .contents {
        order: 1;
    }
    .list_item .case_img_wrap {
        width: 75%;
    }
    .accordion .caption {
        width: 80%;
        text-align: left;
    }
    .before_after_wrap .label {
        font-size: 13px;
        top: 5px;
        left: 5px;
    }
    .popup-arrow.left {
    left: 1%;
    }
    .popup-arrow.right {
        right: 1%;
    }
    .points_item {
        font-size: 14px;
    }
}
@media screen and (max-width: 680px) {
    .before_after_wrap {
        flex-direction: column;
        align-items: center
    }
    .before_after_wrap .img_wrap {
        width: 100%;
    }
    .before_after_wrap::before {
        width: 8vw;
        height: 8vw;
        transform: translate(-50%, -50%) rotate(90deg);
        -webkit-transform: translate(-50%, -50%) rotate(90deg);
        -ms-transform: translate(-50%, -50%) rotate(90deg);
    }
}

@media screen and (max-width: 480px) {
    .archive_wrapper {
        gap: 0;
    }
    .before_after_wrap {
        margin-bottom: 0;
    }
    .before_after_wrap .label {
        font-size: 12px;
        padding: 2px 10px;
    }
    .popup-arrow {
        padding: 10px;
    }
    .popup-arrow .arrow {
        border-color: solid rgba(255, 255, 255, 0.5)
    }
    .popup-arrow.left {
    left: 8%;
    }
    .popup-arrow.right {
        right: 8%;
    }
    #popup-image {
        max-width: 85vw;
        max-height: 85vh;
    }
    .list_item .title {
        font-size: 16px;
        padding: 6px 15px;
    }
    .list_item .points {
        width: 65px;
    }
    .points_item {
        font-size: 12px;
    }
    .accordion {
        margin-top: 0;
        margin-bottom: 20px;
    }
    .accordion h4 {
        font-size: 16px;
    }
    .accordion .caption {
        width: 100%;
    }
    .gallery-item {
        max-height: 130px;
    }
}

@media screen and (max-width: 430px) {
    .br_sp {
        display: block;
    }
    .title_article {
        width: 85%;
        margin: 12px auto;
        text-align: left;
    }
    .br_sp_none {
        display: none;
    }
}