body {
    background: #111;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.works-title {
    text-align: center;
    font-size: 2.4em;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.work-item {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.work-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.work-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    /* 縦長ポスター用 */
    object-fit: cover;
    display: block;
    background: #333;
}

.work-caption {
    padding: 1em 0.5em;
    font-size: 1.1em;
    color: #fff;
    letter-spacing: 0.05em;
}

.poster-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(.4, 0, .2, 1);
}

.poster-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.poster-modal-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.poster-modal-content {
    position: relative;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 32px 24px 24px 24px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.96) translateY(24px);
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.poster-modal.show .poster-modal-content {
    transform: scale(1) translateY(0);
}

.poster-modal-img {
    max-width: 320px;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.poster-modal-comment {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 1em;
    text-align: center;
    line-height: 1.6;
}

.poster-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    text-shadow: 0 0 8px #000;
}

.back-to-index-container {
    width: 100%;
    text-align: center;
    margin: 48px 0 24px 0;
}

.back-to-index-btn {
    display: inline-block;
    background: #fff;
    color: #111;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.7em 2.2em;
    border-radius: 32px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.08em;
}

.back-to-index-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 24px rgba(255,255,255,0.08);
}

@media (max-width: 700px) {
    .works-title {
        font-size: 1.4em;
    }

    .works-container {
        padding: 32px 4vw 80px 4vw;
    }

    .poster-modal-content {
        padding: 12px 4vw 12px 4vw;
    }

    .poster-modal-img {
        max-width: 90vw;
        max-height: 40vh;
    }
}