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

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 {
    display: block;
}

.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;
}

/* ==========================================================================
   グリッドレイアウト（親コンテナを絶対配置の基準にする）
   ========================================================================== */
.container {
    width: 100%;
    position: relative;
    padding-bottom: 150px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 20px;
    row-gap: 150px;
    width: 100%;
}

.work-item {
    display: block;
    width: 100%;
}

.work-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.img-box {
    display: block;
    width: 100%;
}

.img-box img {
    display: block;
    height: 100px;
    height: auto;
    object-fit: contain;
}

.img-box.detail {
    display: none;
}

/* キャプション */
.caption {
    display: none;
    text-align: left;
}

.caption .title {
    font-weight: normal;
    font-size: 10px;
    display: block;
}

.caption .meta {
    color: #000000;
    font-size: 10px;
    display: block;
}

/* 年と矢印の行：左端に年、右端に矢印を確実に配置 */
.year-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    font-size: 10px;
    color: #000000;
}

.year-row .year-text {
    display: inline-block;
}

.year-row .arrow {
    display: inline-block;
    text-align: right;
    margin-left: auto;
}

.mobile-back-link {
    display: none;
}

/* ==========================================================================
   ホバー（アクティブ）時の表示・非表示制御（PC）
   ========================================================================== */
.work-item.is-hidden {
    visibility: hidden !important;
    pointer-events: none;
}

.work-item.is-active .img-box.detail {
    display: block !important;
}

.work-item.is-active .caption {
    display: block !important;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 1300px) {
    .header {
        margin-bottom: 150px;
    }

    .works-grid {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 20px;
        row-gap: 120px;
    }

    .img-box img {
        height: 100px;
    }

    .container {
        padding-bottom: 300px;
    }
}

@media (max-width: 1024px) {
    body {
        padding: 25px 20px;
    }

    .header {
        margin-bottom: 150px;
    }

    .divider {
        margin: 0 16px;
    }

    .nav ul {
        gap: 16px;
    }

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

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 30px;
        row-gap: 150px;
    }

    .img-box img {
        height: 100px;
    }
}

/* ==========================================================================
   600px以下（スマホ）：1列縦並び ＋ 常時テキスト表示 ＋ タップ時非表示
   ========================================================================== */
@media (max-width: 600px) {
    body {
        padding: 20px 30px;
    }

    .header {
        margin-bottom: 120px;
    }

    .works-grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
        width: 100%;
        max-width: 100%;
    }

    .work-item {
        position: static !important;
        width: 100%;
    }

    .img-box.thumb {
        position: static !important;
        width: 100% !important;
        margin-bottom: 18px;
    }

    .img-box.thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .img-box.detail {
        display: none !important;
    }

    .caption {
        display: block !important;
        position: static !important;
        width: 100% !important;
        visibility: visible;
    }

    .caption.is-tap-hidden {
        visibility: hidden !important;
    }

    .caption .title {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .caption .meta {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .year-row {
        font-size: 9px;
        margin-top: 2px;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .year-row .arrow {
        font-size: 11px;
    }

    .container {
        padding-bottom: 60px;
    }

    .mobile-back-link {
        display: block;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .mobile-back-link a {
        font-size: 18px;
        color: #000000;
        text-decoration: none;
    }
}