/* ========================================
   Works Page Header
======================================== */
.works-page-header {
    width: 100%;
    padding: 2.73vw 2.42vw;
    background: #fff;
}

@media (max-width: 767px) {
	.works-page-header {
		padding: 4.27vw;
	}
}

.works-page-logo img {
    width: 16.48vw;
    height: auto;
    display: block;
}

/* ========================================
   Works Page Title
======================================== */
.works-page-title-wrap {
    padding: 0 2.25vw;
    margin-top: 11vw;
    margin-bottom: 2.34vw;
}

@media (max-width: 767px) {
.works-page-title-wrap {
        margin-bottom: 6vw;
    }
}

.works-page-title {
    color: #333;
    font-size: 6.25vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

@media (max-width: 767px) {

    .works-page-title {
        font-size: 16vw;
    }
}

/* ========================================
   Section Works KV
======================================== */
.section-works-kv {
    position: relative;
    width: 100%;
    margin-bottom: 2.34vw;
}

.section-works-kv-img {
    width: 100%;
    height: auto;
    display: block;
}

.section-works-kv-text {
    position: absolute;
    left: 2.42vw;
    top: 15vw;
}

.section-works-kv-text p {
    color: #fff;
    font-size: 5vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 767px) {
	.section-works-kv-text p {
		font-size: 8.9vw;
	}

    .section-works-kv {
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }
	
	.section-works-kv-text {
    width: 80vw;
	}

    .section-works-kv-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

}

/* ========================================
   カテゴリーフィルター
======================================== */
.works-filter {
    padding: 0 2.25vw;
    margin-bottom: 3.13vw;
}

.works-filter-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.works-filter-btn {
    display: inline-block;
    padding: 0.47vw 1.25vw;
    border: none;
    background: none;
    color: #999;
    font-size: 2vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

@media (max-width: 767px) {
    .works-filter-btn {
        font-size: 3.5vw;
    }
}

.works-filter-btn:hover,
.works-filter-btn.is-active {
    color: #333;
}



/* ========================================
   Worksグリッド
======================================== */
.works-archive {
    padding: 0 2.25vw;
    margin-bottom: 7.81vw;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.69vw 1.16vw;
}

@media (max-width: 767px) {

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

}

/* ========================================
   Worksカード
======================================== */
.works-card {
    min-width: 0;
}

.works-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 603 / 339.2;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 1.563vw;
}

.works-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.works-card-image:hover img {
    transform: scale(1.04);
}

.works-card-image--empty {
    width: 100%;
    height: 100%;
    background: #d8d8d8;
}

/* バッジ（画像左上） */
.works-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 0.625vw;
    height: 1.797vw;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1.016vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
}

@media (max-width: 767px) {
    .works-card-badge {
        font-size: 4vw;
        height: 7vw;
        padding: 0 3vw;
    }
}

.works-card-badge--campaign {
    background: #bdccd4;
}

.works-card-badge--always-on {
    background: #7ac943;
}

.works-card-badge--one-off {
    background: #808080;
}

/* メタ情報（カテゴリー + Case Type） */
.works-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625vw;
}
@media (max-width: 767px) {
    .works-card-meta {
        margin-top: 3vw;
    }
}

.works-card-category {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
}

@media (max-width: 767px) {
    .works-card-category {
        font-size: 4vw;
    }
}

.works-card-case-type {
    color: #999;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
}

@media (max-width: 767px) {
    .works-card-case-type {
        font-size: 4vw;
    }
}

.works-card-title {
    color: #333;
    font-size: 1.875vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1.25vw 0;
}

@media (max-width: 767px) {
    .works-card-title {
        font-size: 6.5vw;
        font-family: 'Yu Gothic', YuGothic, sans-serif;
        font-weight: 700;
        line-height: 1.4;
        margin: 2vw 0 3vw 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        }
}

/* タグ（pill形式） */
.works-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.703vw;
    margin-bottom: 1.563vw;
}

@media (max-width: 767px) {
    .works-card-tags {
        gap: 2.3vw;
    }
}

.works-card-tag {
    display: inline-flex;
    align-items: center;
    height: 1.67vw;
    padding: 0 0.781vw;
    border: 1px solid #999;
    border-radius: 0.391vw;
    color: #999;
    font-size: 1.016vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 400;
}

@media (max-width: 767px) {
    .works-card-tag {
        height: 6vw;
        padding: 0 2vw;
        border-radius: 1.6vw;
        font-size: 3.5vw;
    }
}

/* Client / Date / Website */
.works-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.313vw;
}

@media (max-width: 767px) {
    .works-card-info {
        display: none;
    }
}

.works-card-info-row {
    display: flex;
    align-items: baseline;
    gap: 0.781vw;
}

.works-card-info-label {
    color: #999;
    font-size: 1.016vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    min-width: 4.688vw;
}

.works-card-info-value {
    color: #333;
    font-size: 1.016vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 400;
}

.works-card-info-link {
    text-decoration: underline;
    text-underline-offset: 0.1em;
    transition: opacity 0.3s;
}

.works-card-info-link:hover {
    opacity: 0.6;
}

.works-no-posts {
    color: #999;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    grid-column: 1 / -1;
    padding: 5vw 0;
    text-align: center;
}

/* ========================================
   Works 詳細ページ - ヒーロー
======================================== */
.works-single-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.works-single-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.works-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.25;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.works-single-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.73vw 2.42vw;
    z-index: 20;
}

.works-single-logo img {
    width: 16.48vw;
    height: auto;
    display: block;
}

.works-single-hero-text {
    position: absolute;
    left: 2.42vw;
    bottom: 3.13vw;
    z-index: 10;
}

.works-single-title {
    color: #fff;
    font-size: 3.5vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.08em;
}

/* ========================================
   Works 詳細ページ - メタ情報
======================================== */
.works-single-meta-wrap {
    display: flex;
    gap: 2.42vw;
    padding: 2.34vw 2.42vw;
    margin-bottom: 3.91vw;
}

/* 左エリア */
.works-single-left {
    flex: 1;
    min-width: 0;
}

.works-single-cat-badge {
    display: flex;
    align-items: center;
    gap: 1.25vw;
    margin-bottom: 1.25vw;
}

.works-single-category {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    margin: 0;
}

.works-single-info {
    display: flex;
    flex-direction: column;
    gap: 0.313vw;
}

.works-single-info-row {
    display: flex;
    align-items: baseline;
    gap: 0.781vw;
}

.works-single-info-label {
    color: #999;
    font-size: 1.016vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    min-width: 5.47vw;
}

.works-single-info-value {
    color: #333;
    font-size: 1.016vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 400;
}

.works-single-info-link {
    text-decoration: underline;
    text-underline-offset: 0.1em;
    transition: opacity 0.3s;
}

.works-single-info-link:hover {
    opacity: 0.6;
}

/* 右エリア */
.works-single-right {
    flex: 0 0 70vw;
    display: flex;
    flex-direction: column;
}

.works-single-case-type {
    color: #999;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    margin: 0 0 1.25vw 0;
}

.works-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.703vw;
}

@media (max-width: 767px) {
    .works-single-tags {
    gap: 2vw;
}
}

/* ========================================
   Works 詳細ページ - 本文
======================================== */
.works-single-content {
    padding: 0 2.42vw;
    margin-bottom: 5.47vw;
}

.works-single-content img {
    width: calc(100% + 4.84vw);
    height: auto;
    display: block;
}

.works-single-content p {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    line-height: 2;
    margin: 0 0 1.563vw 0;
    letter-spacing: -0.07em;
}

.works-single-content h2 {
    color: #333;
    font-size: 3vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    margin: 3.125vw 0 1.563vw 0;
}

.works-single-content h3 {
    color: #333;
    font-size: 2.1vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    margin: 2.344vw 0 1.25vw 0;
}

/* ========================================
   フォトギャラリー
======================================== */
.works-gallery {
    padding: 0 2.42vw;
    margin-bottom: 11vw;
}

.works-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625vw;
}

.works-gallery-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8;
    cursor: pointer;
}

.works-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.works-gallery-item:hover img {
    transform: scale(1.04);
}

/* ========================================
   Lightbox
======================================== */
.works-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.works-lightbox.is-active {
    display: flex;
}

.works-lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-lightbox-inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.works-lightbox-close {
    position: fixed;
    top: 1.5vw;
    right: 2vw;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3vw;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s;
}

.works-lightbox-close:hover {
    opacity: 0.7;
}

.works-lightbox-prev,
.works-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5vw;
    cursor: pointer;
    padding: 1vw;
    transition: opacity 0.3s;
}

.works-lightbox-prev {
    left: 1.5vw;
}

.works-lightbox-next {
    right: 1.5vw;
}

.works-lightbox-prev:hover,
.works-lightbox-next:hover {
    opacity: 0.7;
}

/* ========================================
   Prev / Next
======================================== */
.works-single-nav {
    display: flex;
    width: 100%;
    margin-bottom: 11vw;
    padding: 0 2.42vw;
    padding-bottom: 11vw;
    gap: 1.25vw;
    border-bottom: 1px solid #333;
}

.works-single-nav-item {
    position: relative;
    flex: 1;
    aspect-ratio: 603 / 339.2;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.works-single-nav-item--empty {
    background: #e8e8e8;
}

/* 背景画像 */
.works-single-nav-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.works-single-nav-item:hover .works-single-nav-bg {
    transform: scale(1.04);
}

/* オーバーレイ */
.works-single-nav-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0.25;
    mix-blend-mode: multiply;
}

.works-single-nav-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.works-single-nav-text--prev {
    left: 1.42vw;
}

.works-single-nav-text--next {
    right: 1.42vw;
    text-align: right;
}

.works-single-nav-label {
    display: block;
    color: #fff;
    font-size: 2.1vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.works-single-nav-subtitle {
    position: absolute;
    bottom: 1.56vw;
    z-index: 10;
}

.works-single-nav-subtitle--prev {
    left: 1.42vw;
}

.works-single-nav-subtitle--next {
    right: 1.42vw;
    text-align: right;
}

.works-single-nav-title {
    color: #fff;
    font-size: 1.563vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   Related Works
======================================== */
.works-related {
    padding: 0 2.42vw;
    margin-bottom: 7.81vw;
}

.works-related-title {
    color: #333;
    font-size: 6.25vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 2.34vw 0;
}

.works-related-header {
    display: flex;
    align-items: flex-end;
    gap: 1.56vw;
    margin-bottom: 2.34vw;
}

.works-related-header .works-related-title {
    margin-bottom: 0;
}
.works-related-back {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.39vw;
    margin-bottom: 0.8vw;
    transition: opacity 0.3s;
    border-bottom: 1px solid #333;
    padding-bottom: 0.16vw;
}

.works-related-back:hover {
    opacity: 0.6;
}

.works-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.69vw 1.16vw;
}

.works-card-link {
    text-decoration: none;
    color: inherit;
}

.works-related-back-arrow {
    width: 0.78vw;
    height: auto;
}


/* ========================================
   Section Works（トップページ用）
======================================== */

.section-works {
    margin-top: 11vw;
    padding: 0;
    margin-bottom: 7.81vw;
}

.section-works-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.34vw;
}

.section-works-more {
    color: #333;
    font-size: 1.172vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid #333;
    margin-bottom: 0.8vw;
    transition: opacity 0.3s;
}

.section-works-more:hover {
    opacity: 0.6;
}

/* ========================================
   Works 詳細ページ SP対応（767px以下）
======================================== */
@media (max-width: 767px) {

    /* ヒーロー */
    .works-single-title {
        font-size: 6vw;
    }

    .works-single-logo img {
        width: 35vw;
    }

    /* メタ情報 */
    .works-single-meta-wrap {
        flex-direction: column;
        gap: 6vw;
        padding: 6vw 4vw;
    }

    .works-single-right {
        flex: none;
        width: 100%;
    }

    .works-single-category {
        font-size: 4vw;
    }

    .works-single-info-label {
        font-size: 3.5vw;
        min-width: 20vw;
    }

    .works-single-info-value {
        font-size: 3.5vw;
    }

    .works-single-case-type {
        font-size: 4vw;
    }

    /* 本文 */
    .works-single-content {
        padding: 0 4vw;
    }

    .works-single-content img {
        width: 100%;
    }

    .works-single-content p {
        font-size: 3.5vw;
    }

    .works-single-content h2 {
        font-size: 6vw;
    }

    .works-single-content h3 {
        font-size: 5vw;
    }

    /* フォトギャラリー */
    .works-gallery {
        padding: 0 4vw;
    }

    .works-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }

    /* Lightbox */
    .works-lightbox-close {
        font-size: 8vw;
        top: 4vw;
        right: 4vw;
    }

    .works-lightbox-prev,
    .works-lightbox-next {
        font-size: 6vw;
    }

    /* Prev / Next */
    .works-single-nav {
        flex-direction: column;
        gap: 4vw;
        padding: 0 5vw 10vw;
    }

    .works-single-nav-item {
        width: 100%;
    }

    .works-single-nav-label {
        font-size: 5vw;
    }

    .works-single-nav-title {
        font-size: 4vw;
    }

    /* Related Works */
    .works-related {
        padding: 0 5vw;
    }

    .works-related-title {
        font-size: 12vw;
    }

    .works-related-back {
        font-size: 3.5vw;
		white-space: nowrap;
    }

    .works-related-grid {
        grid-template-columns: 1fr;
        gap: 10vw;
    }

}

@media (max-width: 767px) {
    .works-single-logo img, .works-page-logo img {
        width: 29.33vw;
        height: auto;
    }
}

