/* Styles for Single Works Page */

/* @media ((min-width: 1600px) and (max-width: 1600px)) {
    body {
        background-image: url('../images/bg/bg_single_works_pc.png');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        height: 100000px;
    }
} */

/* @media ((min-width: 400px) and (max-width: 400px)) {
    body {
        background-image: url('../images/bg/bg_single_works_sp.png');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        height: 100000px;
    }
} */

#single-works {
    width: 100%;
}

/* Hero Section */
.works-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.works-hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.works-hero-image img,
.works-hero-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.works-hero-placeholder {
    background-color: var(--color-primary);
}

.works-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.works-hero-text {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.works-hero .works-title {
    font-family: "tt-commons-pro", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 7.5px;
    line-height: 1.2;
}

.works-hero .works-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-tt-commons), sans-serif;
    font-size: 15px;
    font-weight: 300;
}

.works-hero .works-location,
.works-hero .works-category-tag {
    font-size: 14px;
    font-weight: 300;
    color: white;
    letter-spacing: 2px;
}

.works-hero .works-location::after {
    content: " | ";
    margin-left: 10px;
}

/* Content Section */
.works-content-section {
    padding: 106px 0 216px;
    width: 100%;
    overflow-x: hidden;
}

/* .works-content-section .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 0 5%;
} */

.works-content-inner {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

/* Left Content - Story */
.works-content-left {
    width: 24%;
    flex-shrink: 0;
}

.works-story {
    padding: 69px 0 89px;
}

.works-story h2 {
    font-family: "tt-commons-pro", sans-serif;
    font-size: 18px;
    letter-spacing: 0.3px;
    font-weight: 400;
    margin-bottom: 54px;
    color: var(--color-primary);
}

.works-story-content {
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 13px;
    color: var(--color-primary);
}

.works-story-content h3,
.works-story-content h4 {
    font-family: "tt-commons-pro", sans-serif;
    font-weight: 400;
    margin: 30px 0 15px 0;
    color: var(--color-primary);
    letter-spacing: 5px;
}

.works-story-content h3 {
    font-size: clamp(1.2rem, 0.8rem + 2vw, 1.8rem);
}

.works-story-content h4 {
    font-size: 18px;
    letter-spacing: 3px;
}

.works-story-content p {
    margin-bottom: 31px;
    font-size: 13px;
    font-weight: 200;
    line-height: 2.3;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.works-story-content ul,
.works-story-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.works-story-content li {
    margin-bottom: 8px;
}

/* Youtube Section */
.works-youtube h2 {
    font-family: "tt-commons-pro", sans-serif;
    font-size: 18px;
    letter-spacing: 0.3px;
    font-weight: 400;
    margin-bottom: 54px;
    color: var(--color-primary);
}

.works-youtube .works-youtube-content {
    width: 94%;
    aspect-ratio: 16/9;
    margin-top: 31px;
}

.works-youtube iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Information Section */
.works-information {
    margin-top: 77px;
}

.works-information h2 {
    font-family: "tt-commons-pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.works-information-content {
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-primary);
}

.works-info-item {
    display: flex;
    margin-bottom: 9px;
    align-items: flex-start;
}

.works-info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-third);
    letter-spacing: 2px;
    min-width: 80px;
    flex-shrink: 0;
    /* margin-right: 10px; */
}

.works-info-value {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    flex: 1;
    color: var(--color-third);
}

/* tag Section */
.works-tag {
    margin-top: 69px;
}

.works-tag h2 {
    font-family: "tt-commons-pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.works-tag-list {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}

span.works-tag-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-third);
}

/* Voice Link */
.works-voice-link {
    margin-top: 114px;
}

.voice-anchor {
    display: flex;
    border-bottom: 1px solid var(--color-accent);
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    width: 158px;
    color: var(--color-accent);
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 17px;
}

.voice-anchor:hover {
    color: var(--color-primary);
}

.voice-text {
    letter-spacing: 5px;
}

.voice-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.voice-anchor:hover .voice-arrow {
    transform: translateX(5px);
}

/* Right Content */
.works-content-right {
    width: 66%;
    flex-shrink: 0;
    overflow: hidden;
    min-width: 0;
    margin-top: 94px;
}

/* Story Images */
.works-story-images {
    margin-bottom: 50px;
}

.wp-block-image {
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
}

.wp-block-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s, opacity 0.5s;
    max-width: 100%;
    box-sizing: border-box;
}

.works-details {
    margin-bottom: 50px;
}

.works-details h3 {
    font-family: "tt-commons-pro", sans-serif;
    font-size: clamp(1.2rem, 0.8rem + 2vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--color-primary);
    letter-spacing: 7.5px;
}

.works-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.works-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-accent);
    flex-shrink: 0;
}

.detail-value {
    font-family: "dnp-shuei-gothic-gin-std", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary);
    text-align: right;
    flex: 1;
    margin-left: 20px;
}


/* Responsive Design */
@media screen and (max-width: 1024px) {
    .works-content-section .container {
        width: 100%;
        max-width: none;
        padding: 0 0 0 3%;
    }

    .works-content-inner {
        gap: 40px;
    }

    .works-content-left {
        width: 30%;
    }

    .works-content-right {
        width: 70%;
        max-width: calc(70% - 40px);
        overflow: hidden;
    }

}

@media screen and (max-width: 768px) {
    .works-hero {
        height: 100vh;
        min-height: 100vh;
    }

    .works-hero-image {
        width: 100%;
        height: 100%;
    }

    .works-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .works-hero .works-title {
        font-size: 16px;
        letter-spacing: 3.5px;
    }

    .works-hero .works-meta {
        font-size: 13px;
        letter-spacing: 1.5px;
        gap: 15px;
    }

    .works-hero .works-location,
    .works-hero .works-category-tag {
        font-size: 11px;
    }

    .works-content-section {
        padding: 60px 0 113px;
    }

    .works-content-section .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .works-content-inner {
        flex-direction: column-reverse;
        gap: 40px;
        margin: 0 auto;
    }

    .works-content-left {
        width: 100%;
    }

    .works-content-right {
        width: 100%;
        max-width: 100%;
        margin-top: 83px;
        overflow: hidden;
    }

    .works-story {
        width: 90%;
        padding: 0 0 45px;
        margin: 0 auto;
    }

    .works-story h2 {
        margin-bottom: 38px;
    }

    .works-story-content p {
        margin-bottom: 25px;
        font-size: 12px;
        font-weight: 400;
        line-height: 2.2;
        letter-spacing: 1.3px;
    }

    .works-story-images {
        width: 90%;
        margin: 0 auto;
    }

    .wp-block-image {
        margin-bottom: 55px;
        width: 100%;
    }

    .wp-block-image img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .works-youtube {
        width: 90%;
        margin: 0 auto;
    }

    .works-youtube h2 {
        margin-bottom: 47px;
    }

    .works-youtube .works-youtube-content {
        width: 100%;
        margin-top: 0;
    }

    .works-information {
        width: 90%;
        margin: 93px auto 0;
    }

    .works-info-item {
        margin-bottom: 8.5px;
    }

    .works-info-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .works-info-value {
        font-size: 11px;
    }

    .works-tag {
        width: 90%;
        margin: 67px auto 0;
    }

    .works-voice-link {
        margin-left: 5%;
    }

    .voice-text {
        letter-spacing: 3px;
    }

    .voice-anchor {
        width: 172px;
        font-size: 13px;
    }

    .voice-arrow {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 480px) {
    .works-hero {
        height: 100vh;
        min-height: 100vh;
    }

    .works-hero-image {
        width: 100%;
        height: 100%;
    }

    .works-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .works-hero-text {
        max-width: 300px;
    }

    .works-hero .works-meta {
        font-size: 11px;
        gap: 10px;
    }

    .works-content-section {
        padding: 40px 0 93px;
    }

    .works-content-section .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .works-content-right {
        width: 100%;
        max-width: 100%;
    }

    .story-image-item {
        width: 100%;
    }

    .story-image-item img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .works-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-value {
        text-align: left;
        margin-left: 0;
    }
}

/* Navigation Styles */
.works-single-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    /* transform: translateX(-5%); */
}

.works-nav-container {
    display: flex;
    align-items: center;
    gap: 100px;
}

.works-nav-archives {
    text-decoration: none;
    color: #545B6A;
    font-family: "tt-commons-pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.works-nav-archives:hover {
    color: var(--color-primary);
}

.works-nav-arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.works-nav-arrow-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.works-nav-arrow-left,
.works-nav-arrow-right {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.works-nav-arrow-left,
.works-nav-arrow-link.disabled:hover .works-nav-arrow-left {
    transform: rotate(180deg);
}

.works-nav-arrow-link.disabled:hover .works-nav-arrow-right {
    transform: none;
}

.works-nav-arrow-link:hover .works-nav-arrow-left {
    transform: rotate(180deg) translateX(5px);
}

.works-nav-arrow-link:hover .works-nav-arrow-right {
    transform: translateX(5px);
}

.works-nav-text {
    letter-spacing: 0.5px;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    .works-single-nav {
        margin: 40px 0;
        padding: 20px 0;
    }

    .works-nav-container {
        gap: 50px;
    }

    .works-nav-archives {
        font-size: 12px;
        margin-top: 50px;
    }

    .works-nav-arrow-link {
        margin-top: 50px;
    }

    .works-nav-arrow-left,
    .works-nav-arrow-right {
        width: 14px;
        height: 14px;
    }
}

/* Footer内のtop-arrowを保護 */
.footer .top-arrow {
    width: 13px;
    height: 13px;
    margin: 0;
    object-fit: contain;
}

/* Drawer内のtop-arrowを保護 */
.drawer .top-arrow {
    width: 13px;
    height: 13px;
    margin: 0;
    object-fit: contain;
}