/* ===== PROJECT GALLERY SECTION ===== */
.project-gallery-section {
    width: 100%;
    padding: 5rem 0; /* py-20 */
    background-color: #ffffff; /* white background */
}

@media (min-width: 768px) {
    .project-gallery-section {
        padding: 8rem 0; /* md:py-32 */
    }
}

.project-gallery-section__container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* px-4 */
}

@media (min-width: 768px) {
    .project-gallery-section__container {
        padding: 0 1.5rem; /* md:px-6 */
    }
}

.project-gallery-section__header {
    text-align: center;
    margin-bottom: 3rem; /* mb-12 */
}

.project-gallery-section__title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.025em; /* tracking-tight */
    color: #111827; /* text-gray-900 */
}

@media (min-width: 768px) {
    .project-gallery-section__title {
        font-size: 2.25rem; /* md:text-4xl */
    }
}

.project-gallery-section__subtitle {
    font-size: 1.125rem; /* text-lg */
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.5rem; /* mt-2 */
}

/* ===== PROJECT TABS ===== */
.project-tabs {
    margin-bottom: 3rem; /* mb-12 */
}

.project-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem; /* gap-2 */
    margin-bottom: 2rem; /* mb-8 */
}

@media (min-width: 768px) {
    .project-tabs__nav {
        gap: 1rem; /* md:gap-4 */
    }
}

.project-tabs__button {
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    border: 2px solid #e5e7eb; /* border-gray-200 */
    border-radius: 9999px; /* rounded-full */
    background-color: #ffffff; /* bg-white */
    color: #6b7280; /* text-gray-500 */
    font-weight: 500; /* font-medium */
    font-size: 0.875rem; /* text-sm */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .project-tabs__button {
        font-size: 1rem; /* md:text-base */
        padding: 0.875rem 2rem; /* md:px-8 py-3.5 */
    }
}

.project-tabs__button:hover {
    border-color: #dc2626; /* hover:border-red-600 */
    color: #dc2626; /* hover:text-red-600 */
    background-color: #fef2f2; /* hover:bg-red-50 */
}

.project-tabs__button.active {
    border-color: #dc2626; /* border-red-600 */
    background-color: #dc2626; /* bg-red-600 */
    color: #ffffff; /* text-white */
}

.project-tabs__button.active:hover {
    background-color: #b91c1c; /* hover:bg-red-700 */
    border-color: #b91c1c; /* hover:border-red-700 */
}

/* ===== PROJECT GALLERY GRID ===== */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* grid-cols-1 */
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {
    .project-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-4 */
        gap: 1.5rem; /* lg:gap-6 */
    }
}

/* ===== PROJECT GALLERY ITEM ===== */
.project-gallery-item {
    /* フィルタリング時のアニメーション */
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-gallery-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* 既存のproject-itemスタイルを拡張 */
.project-gallery-item .project-item {
    position: relative;
    overflow: hidden;
    height: 22rem; /* h-88 - 少し高くして情報を表示 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.project-gallery-item .project-item:hover {
    transform: translateY(-0.5rem); /* hover:-translate-y-2 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* hover:shadow-2xl */
}

.project-gallery-item .project-item__image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.project-gallery-item .project-item:hover .project-item__image {
    transform: scale(1.05);
}

.project-gallery-item .project-item::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent); */
}

.project-gallery-item .project-item__content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 1.5rem; /* p-6 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.project-gallery-item .project-item__category {
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    color: #dc2626; /* text-red-600 */
    background-color: rgba(255, 255, 255, 0.9); /* bg-white/90 */
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border-radius: 9999px; /* rounded-full */
    width: fit-content;
    margin-bottom: 0.75rem; /* mb-3 */
}

.project-gallery-item .project-item__title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .project-gallery-item .project-item__title {
        font-size: 1.125rem; /* lg:text-lg - グリッドが4列になった時は少し小さく */
    }
}

.project-gallery-item .project-item__text {
    color: rgba(255, 255, 255, 0.9); /* text-white/90 */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.5; /* leading-relaxed */
    margin-bottom: 0.75rem; /* mb-3 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-gallery-item .project-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* gap-3 */
    font-size: 0.75rem; /* text-xs */
    color: rgba(255, 255, 255, 0.8); /* text-white/80 */
}

.project-gallery-item .project-item__year,
.project-gallery-item .project-item__location {
    background-color: rgba(0, 0, 0, 0.3); /* bg-black/30 */
    padding: 0.25rem 0.5rem; /* px-2 py-1 */
    border-radius: 0.25rem; /* rounded */
}

/* ===== モバイル対応 ===== */
@media (max-width: 767px) {
    .project-gallery-item .project-item {
        height: 18rem; /* モバイルでは少し低く */
    }

    .project-gallery-item .project-item__content {
        padding: 1rem; /* モバイルでのパディング調整 */
    }

    .project-gallery-item .project-item__title {
        font-size: 1.125rem; /* text-lg */
    }

    .project-tabs__nav {
        /* flex-direction: column; */
        align-items: center;
    }

    .project-tabs__button {
        /* width: 100%; */
        /* max-width: 200px; */
    }
}

/* ===== アニメーション ===== */
/* JavaScriptで制御するため、CSSアニメーションは削除 */
