/* ページコンテナ */
.usecase-page {
    font-family: "游明朝", YuMincho, "Yu Mincho", serif;
    color: #2c2c2c;
    background: #ffffff;
    line-height: 1.8;
    letter-spacing: 0.05em;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 30px 100px;
}

/* Page Header */
.page-header {
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.page-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-label a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-label a:hover {
    color: #555;
    text-decoration: underline;
}

.page-label svg {
    flex-shrink: 0;
    fill: #bbb;
}

.page-title {
    font-family: "游明朝", YuMincho, "Yu Mincho", serif;
    font-size: 32px;
    font-weight: 300;
    color: #2c2c2c;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Main Content */
.event-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.event-category {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.event-tag {
    display: inline-block;
    font-size: 13px;
    padding: 8px 20px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    color: #555;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.event-tag:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

/* Main Gallery - 1 large + 2 small layout */
.main-gallery {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item-large {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item-large img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item-small {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item-small img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item-large img,
.gallery-item-small img {
    cursor: pointer;
}

.gallery-item-large:hover img,
.gallery-item-small:hover img {
    transform: scale(1.05);
}

/* Info Section */
.info-section {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 40px;
    margin-bottom: 60px;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.info-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.content-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 20px 0;
}

.info-description {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.9;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding-left: 0;
}

.info-label {
    font-weight: 500;
    color: #2c2c2c;
    white-space: nowrap;
    min-width: 100px;
}

.info-value {
    color: #555;
}

.materials-section {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #e0e0e0;
}

.materials-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c2c2c;
    font-size: 15px;
}

.materials-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 15px 0;
}

.materials-list {
    list-style: disc !important;
    padding-left: 20px !important;
}

.materials-list li {
    padding: 8px 0 !important;
    color: #555 !important;
    font-size: 14px !important;
}

.materials-list li:before {
    content: none !important;
}

.materials-section {
    margin-top: 40px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.materials-list a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.materials-list a:hover {
    color: #004499;
}

.materials-list a::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: 10px;
    width: 200px;
    height: 200px;
    background-image: var(--product-image);
    background-size: cover;
    background-position: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.materials-list a:hover::after {
    opacity: 1;
}

/* Products Section */
.products-section {
    margin-bottom: 80px !important;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.8s forwards;
}

.section-title {
    font-family: "游明朝", YuMincho, "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #2c2c2c;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c2c2c;
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.product-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block !important;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.9s; }
.product-card:nth-child(2) { animation-delay: 1s; }
.product-card:nth-child(3) { animation-delay: 1.1s; }
.product-card:nth-child(4) { animation-delay: 1.2s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.product-name {
    font-size: 15px;
    margin-bottom: 10px;
    color: #2c2c2c;
    font-weight: 500;
}

.product-price {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

/* Related Events */
.related-section {
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.3s forwards;
}

.related-title {
    font-family: "游明朝", YuMincho, "Yu Mincho", serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #2c2c2c;
}

.related-list {
    display: grid;
    gap: 20px;
}

.related-item {
    padding: 20px 25px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.related-item-content {
    flex: 1;
}

.related-item-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.related-item-title {
    font-size: 15px;
    color: #2c2c2c;
}

.related-item-arrow {
    color: #999;
    font-size: 20px;
    margin-left: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: fadeInScale 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:hover svg {
    transform: scale(1.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .mv {
        min-height: 200px;
        max-height: 200px;
        padding: 0 20px;
    }

    .mv-title,
    .section__title-h2 {
        font-size: 22px;
    }

    .section__title-h2 hr {
        width: 40px;
    }

    .section__title-h2 span {
        font-size: 14px;
    }

    .mv-title::after {
        font-size: 14px;
        margin-left: 10px;
    }

    .usecase-page {
        padding: 40px 20px 60px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-label {
        font-size: 11px;
        gap: 6px;
    }

    .page-label svg {
        width: 5px;
        height: 8px;
    }

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

    .gallery-item-large {
        grid-column: 1;
    }

    /* レスポンシブ時の画像比率変更 */
    .gallery-item-large img {
        aspect-ratio: 4 / 3;
    }

    .gallery-item-small img {
        aspect-ratio: 16 / 9;
    }

    .info-section {
        padding: 25px 20px;
    }

    .content-divider {
        margin: 0 0 15px 0 !important;
    }

    .info-description {
        margin-bottom: 25px !important;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 0 !important;
    }

    .materials-section {
        margin-top: 35px !important;
    }

    .materials-divider {
        margin: 0 0 12px 0 !important;
    }

    .info-item {
        padding-left: 0 !important;
    }

    .info-label {
        min-width: 90px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .product-image {
        height: 180px;
    }

    .related-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .related-item-arrow {
        align-self: flex-end;
        margin-left: 0;
    }
}
