/* project-detail-hero */
.project-detail-hero {
    padding: 5rem 0; /* build3.phpのセクションのpaddingに合わせる */
    background-color: #ffffff; /* 背景色を白に */
}

.project-detail-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-detail-header {
    text-align: left;
    margin-bottom: 40px;
}

.project-category-tag {
    display: inline-block;
    background-color: #dc2626; /* キーカラーの赤 */
    color: #ffffff; /* 白文字 */
    padding: 0.5rem 1.25rem;
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 2px solid #dc2626;
}

.project-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-ref-number {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag-item {
    padding: 0.5rem 1rem; /* px-4 py-2 */
    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 */
    transition: all 0.3s ease;
}

/* project-content-wrapper */
.project-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左2/3, 右1/3 */
    gap: 40px;
}

.project-main-image-container {
    grid-column: 1 / 2; /* 1列目 */
    /* max-width: 600px; */
}

.project-info-column {
    grid-column: 2 / 3; /* 2列目 */
    display: flex;
    flex-direction: column;
    gap: 30px; /* 概要とサムネイルの間のスペース */
}

.description-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    letter-spacing: -0.025em; /* tracking-tight */
    color: #111827; /* text-gray-900 */
    margin-bottom: 1.5rem;
    text-align: left;
    border-left: none;
    padding-left: 0;
}

.description-text {
    font-size: 1em;
    color: #555;
    line-height: 1.8;
}

.project-main-image-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.project-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列表示 */
    gap: 10px;
}

.project-thumbs-grid .thumb-item {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.project-thumbs-grid .thumb-item:hover,
.project-thumbs-grid .thumb-item.active {
    opacity: 1;
}

.project-thumbs-grid .thumb-item img {
    display: block;
    width: 100%;
    /* height: 100px; */
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-md */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-content-wrapper {
        grid-template-columns: 1fr; /* 1列表示 */
    }

    .project-main-image-container,
    .project-info-column {
        grid-column: auto;
    }

    .project-title {
        font-size: 2em;
    }

    .project-main-image-container img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.8em;
    }

    .project-category-tag {
        font-size: 0.8em;
        padding: 3px 10px;
    }

    .tag-item {
        font-size: 0.75em;
        padding: 4px 10px;
    }

    .project-main-image-container img {
        height: 250px;
    }

    .project-thumbs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列表示 */
    }
}
