/* 全体の初期化とベーススタイル */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #000000;
    background-color: #ffffff;
    padding: 30px 37px;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Shippori Mincho', serif;
}

/* ==========================================================================
   ヘッダー周り
   ========================================================================== */
.header {
    display: block;
    margin-bottom: 150px;
    width: 100%;
}

.logo h1 {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.header-main-line {
    display: flex;
    align-items: baseline;
    margin-top: 2px;
}

.logo .en {
    font-size: 13px;
    white-space: nowrap;
}

.divider {
    font-size: 13px;
    margin: 0 24px;
    color: #000000;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-size: 13px;
}

.nav ul li.menu-item {
    display: none !important;
}

.header:hover .nav ul li.menu-item {
    display: block !important;
}

/* ==========================================================================
   全幅ホバー操作エリア ＋ 3つの固定スロット（箱）構造（PC）
   ========================================================================== */
.detail-container {
    width: 100%;
    position: relative;
}

.full-width-interactive-area {
    position: relative;
    width: calc(100% + 74px);
    margin-left: -37px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 200px;
}

.gallery-slots-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
}

.image-slot {
    height: 250px;
    position: relative;
    display: block;
}

.image-slot img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.image-slot img:first-child {
    position: relative;
}

.image-slot img.is-visible {
    opacity: 1;
    visibility: visible;
}

.custom-cursor {
    position: fixed;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 9999;
    transform: translate(-50%, -50%);
    user-select: none;
}

.custom-cursor .num {
    font-size: 18px;
    line-height: 1;
    font-family: 'Shippori Mincho', serif;
}

.custom-cursor .arrow {
    font-size: 14px;
    line-height: 1;
    margin-top: 2px;
}

.full-width-interactive-area.is-hovered {
    cursor: none;
}

/* ==========================================================================
   作品解説テキストエリア（PCデフォルト）
   ========================================================================== */
.detail-content-wrapper {
    width: 100%;
}

.mobile-images-list {
    display: none;
}

.info-area {
    position: relative;
    width: 100%;
    min-height: 250px;
    margin-top: 5px;
    margin-bottom: 100px;
}

.info-meta-group {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
}

.work-title {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
}

.work-meta, .work-sub {
    font-size: 12px;
    color: #000000;
    margin-bottom: 5px;
}

.info-description-group {
    position: absolute;
    left: calc(50% - 200px); 
    top: 0;
    width: calc(100% - (50% - 200px)); 
    box-sizing: border-box;
}

.txt-label {
    font-size: 12px;
    text-decoration: underline;
    margin-bottom: 15px;
    cursor: pointer;
}

.work-description {
    font-size: 12px;
    line-height: 2.0;
    text-align: justify;
    text-justify: inter-ideograph;
    max-width: 700px;
}

.back-to-works {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 30px;
}

.back-to-works a {
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 1300px) {
    .image-slot {
        height: 220px;
    }
}

/* ==========================================================================
   1100px以下：タブレット（2カラム並び）
   ========================================================================== */
@media (max-width: 1100px) {
    body {
        padding: 25px 20px;
    }

    .header {
        margin-bottom: 180px;
    }

    .full-width-interactive-area {
        display: none !important;
    }

    .detail-container {
        padding-bottom: 250px;
    }

    .detail-content-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 80px;
    }

    .info-area {
        width: 50%;
        min-height: auto;
        position: static;
        margin-top: 0;
        margin-bottom: 0;
    }

    .info-meta-group {
        position: static;
        width: 100%;
        height: 120px;
    }

    .info-description-group {
        position: static;
        width: 100%;
    }

    .txt-label {
        display: none;
    }

    .work-title {
        font-size: 10px;
        font-weight: normal;
        margin-bottom: 10px;
    }

    .work-meta, .work-sub {
        font-size: 8px;
        color: #000000;
        margin-bottom: 5px;
    }

    .work-description {
        font-size: 8px;
        line-height: 2.1;
        max-width: 100%;
    }

    .mobile-images-list {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 48%;
        margin-top: 120px;
    }

    .mobile-img-box {
        width: 100%;
        opacity: 0;
        visibility: hidden;
    }

    .mobile-img-box.is-active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-img-box img {
        width: 90%;
        height: auto;
        display: block;
        object-fit: cover;
        margin: 0 0 0 auto;
    }
}
@media (max-width: 1024px) {
    .nav ul li.menu-item { display: block !important; }
    
    .divider {
        margin: 0 16px;
    }

    .nav ul {
        gap: 16px;
    }

}


/* ==========================================================================
   600px以下：スマートフォン（完全縦積み1カラム）
   ========================================================================== */
@media (max-width: 600px) {
    body {
        padding: 20px 30px;
    }

    .header {
        margin-bottom: 120px;
    }

    .detail-container {
        padding-bottom: 150px;
    }

    /* 画像を上、テキストを下にする縦積み構成 */
    .detail-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-bottom: 50px;
    }

    /* 1. 画像リスト（上部に配置） */
    .mobile-images-list {
        order: 1;
        width: 100%;
        margin-top: 0;
        gap: 20px;
    }

    .mobile-img-box {
        width: 100%;
    }

    .mobile-img-box img {
        width: 100%;
        margin: 0;
    }

    /* 2. テキストエリア（画像群の下部に配置） */
    .info-area {
        order: 2;
        width: 100%;
    }

    .info-meta-group {
        height: auto;
        margin-bottom: 40px;
    }

    .work-title {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .work-meta, .work-sub {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .work-description {
        font-size: 11px;
        line-height: 2.0;
    }
}