@charset "utf-8";

/* =========================================
   Section Common Styles
   ========================================= */
.section-header {
    margin: 50px 40px 0;
}

.section-header h2 {
    font-size: 4.8rem;
    margin-bottom: 0.5rem;
}

.section-sub {
    letter-spacing: 2px;
}

@media screen and (min-width:768px) {
    .section-header h2 {
        font-size: 6.4rem;
    }

    .section-sub {
        font-size: 2rem;
    }
}

/* =========================================
   Works Section
   ========================================= */
.works {
    background-color: #FFECCB;
    padding: 120px 40px;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}



.work-item {
    padding: 10px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    top: 0;
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.work-item.hovered {
    top: -10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 黒い幕（表示状態） */
.work-overlay.show {
    opacity: 1;
}

/* ボタン */
.view-btn {
    padding: 12px 28px;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
}


.work-link {
    display: block;
    text-decoration: none;
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background-color: #f0f0f0;
}

.work-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.work-info {
    padding-top: 20px;
}

.work-info h3 {
    margin-bottom: 10px;
}

.work-category {
    font-size: 14px;
}

@media screen and (min-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    h2 {
        font-size: 6.4rem;
    }
}

@media screen and (min-width: 960px) {

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .works-grid .work-item:nth-child(n+4) {
        display: block;
    }
}

/* フッター背景変更 */
.wrap {
    background-color: #FFECCB;
}


/* タグボタン */

.works-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.works-tab .tab {
    padding: 10px 20px;
    border-radius: 9999px;
    min-width: 60px;
    text-align: center;

    background: #111;
    color: #fff;
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;

    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.works-tab .tab:hover {
    background: #333;
    transform: translateY(-2px);
}

.works-tab .tab.is-active {
    background: #fff;
    color: #111;
    border-color: #111;
    font-weight: 600;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .works-tab {
        padding: 20px 20px;
        gap: 12px;
    }

    .works-tab .tab {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 80px;
    }
}
