li{
    list-style:none;
  }

.works_detail--section{
    padding: 160px 0 48px;
}

.works-deteil__content{
    padding-bottom: 48px;
}

.works-detail p{
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

.works-detail__title{
    color: #121212;
    letter-spacing: 0.05em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.works-detail-list-box{
    padding:4px 0px 8px 0px;
}

.works-detail__published-date{
    font-size: 16px;
    font-weight: 500;
    opacity: 50%;
}

.works-detail__thumnail-images{
    display: flex;
    justify-content: space-between;
}

.works-detail__thumnail{
    border-radius: 8px;
}

.works-detail__thumnail-smallPC{
    width: 73%;
}

.works-detail__thumnail-smallSP{
    width: 23%;
}

.works-detail__thumnail-images--center .works-detail__thumnail-smallPC{
    width: 100%;
}

.works-detail__info--list{
    margin-bottom: 32px;
    width: 100%;
    color: #121212;
    line-height: 1.6;
    text-align: justify;
}

.works-detail__info--item{
    border-bottom: 1px solid rgba(0,0,0, 0.25);
    display: flex;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.works-detail__info--first-column{
    display: inline-block;
    flex-shrink: 0;
    width: 144px;
    padding:16px;
}

.works-detail__info--second-column{
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    padding:16px;
}

.works-detail__category:not(:last-child)::after {
    content: " ・";
}

.works-detail__description{
    margin-bottom: 64px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.works-detail__description table{
    width: 100%;
    margin: 32px 0px;
}

.works-detail__description tr{
    border-top: solid 1px #ddd;
    display: flex;
    font-size: 14px;
    letter-spacing: 0.05em;
    width: 100%;
}

.works-detail__description tr:last-child{
    border-bottom: solid 1px #ddd;
}


.works-detail__description td{
    color: #121212;
    line-height: 1.6;
    padding: 16px;
}

.works-detail__description td:first-child{
    width: 20%;
    background-color: #f2f2f2;
    font-weight: bold;
}


.works-detail__SP-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.works-detail__image-list{
    background-color: #E5E7ED;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0px 14%;
}

.works-detail__list-images{
    border-radius: 10px;
    box-shadow: 0px 0px 30px 0px rgba(0,0,0, 0.25);
    margin:56px 0px;
}

.works-detail__list-SP-images{
    width: 90%;
}

.works-detail-list-SP-images--reverse{
    display: flex;
    flex-direction: row-reverse;
}

.works-detail__list-button{
    display: flex;
    justify-content: space-around;
}

.to-works-list{
    margin: 0px;
    width: 280px;
}

.to-works-list--word{
    font-size: 16px;
    margin: auto 16px auto 0px;
}

.works_detail-form{
    padding: 4px 5% 56px;
}

.contact__box--works-detail{
    border-radius: 10px;
    letter-spacing: 0.05em;
    margin: 0 auto;
    width: 100%;
    max-width: 1288px;
}
.contact__box--title {
    font-weight: 500;
    letter-spacing: 0.05em;
}

.news-detail__content {
    max-width: 1288px;
    clip-path: polygon(41px 0, 100% 0, 100% calc(100% - 80px), calc(100% - 41px) 100%, 0 100%, 0 80px);
}
@media screen and (max-width: 1024px) {
.section__wrap {
    width: 100%;
    /* margin: auto; */
}

.works-detail__title {
    font-size: 24px;
}

.works-detail__list-images {
    margin: 32px 0px;
}

.news-list-box {
    margin-bottom: 0px;
}

.news-detail__images {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.works-detail__info--list {
    margin-bottom: 24px;
}

.works-detail__description {
    margin-bottom: 24px;
}

.works-detail__image-list {
    padding: 0px 6%;
}

.works-detail__images {
    display: flex;
}

.to-works-list {
    width: 200px;
}

.works-deteil__content {
    padding-bottom: 52px;
}

.contact__box--works-detail {
    border-radius: 20px;
    width: 100%;
}

.works_detail-form {
    padding: 8px 5% 112px;
}
}

@media screen and (max-width:768px) {
.news-detail__content {
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 20px) 100%, 0 100%, 0 40px);
}
}

@media screen and (max-width: 600px) {
.works-detail__SP-list {
    display: flex;
    flex-direction: column;
}

.works-detail__images {
    display: flex;
    justify-content: center;
}

.works-detail__list-SP-images {
    width: 100%;
}
.works-detail-list-box {
    display: flex;
    flex-direction: row-reverse;
    padding: 4px 0px 8px 0px;
}
.works-detail__description td:first-child{
    width: 25%;
}
.works-detail__description td:last-child{
    width: 75%;
}
.works-detail p{
    font-size: 16px;
}
.works-detail__info--first-column{
    width: 96px;
}
}

/* 画像ポップアップ用スタイル */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    overflow: auto;
}

.image-popup-content {
    position: relative;
    width: 70%;
    min-height: 70%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 20px auto;
    padding: 40px 0;
}

.image-popup-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.image-popup-img.zoomed {
    width: 150%;
    cursor: zoom-out;
}

.image-popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.image-popup-close:hover {
    opacity: 0.7;
}

/* 画像ホバー効果 */
.works-detail__images img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.works-detail__images img:hover {
    transform: scale(1.02);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .image-popup-content {
        width: 95%;
        min-height: 80%;
        margin: 10px auto;
        padding: 20px 0;
    }

    .image-popup-close {
        top: 15px;
        right: 15px;
        font-size: 25px;
        width: 45px;
        height: 45px;
    }
}