/* 製品詳細ページの改善スタイル */

/* パララックスヘッダー改善 */
.product-background-parallax {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateZ(0);
    z-index: 0;
}

/* 製品詳細コンテナの改善 */
.product-detail {
    padding: 0 0 80px;
    background-color: var(--bg-color);
}

.product-detail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

/* 製品ギャラリーの改善 */
.product-gallery {
    position: relative;
}

.product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-gallery-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

/* 製品情報の改善 */
.product-info-container {
    display: flex;
    flex-direction: column;
}

.product-title-large {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-category-label {
    display: inline-block;
    padding: 6px 15px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-link {
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.category-link:hover {
    opacity: 0.8;
}

.product-client, .product-release-date {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.product-client::before, .product-release-date::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
}

/* タグスタイルの改善 */
.product-genre, .product-awards {
    margin-bottom: 30px;
}

.product-genre p, .product-awards p {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.genre-tags, .award-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-tag, .award-tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.genre-tag {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.award-tag {
    background-color: #fff8e1;
    color: #ad8a00;
    border: 1px solid #ffe082;
}

.genre-tag-link, .award-tag-link {
    text-decoration: none;
    color: inherit;
}

.genre-tag-link:hover .genre-tag {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.award-tag-link:hover .award-tag {
    background-color: #fffcf2;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(173, 138, 0, 0.15);
}

/* 製品説明の改善 */
.product-description {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.product-background, .product-features {
    margin-bottom: 40px;
}

.product-background h3, .product-features h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    font-weight: 600;
    color: var(--primary-color);
}

.product-background h3::after, .product-features h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 12px;
}

.rich-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

.rich-content p {
    margin-bottom: 1.5em;
}

/* 製品アクションの改善 */
.product-actions {
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.view-product {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.view-product:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* シェアボタンの改善 */
.product-share {
    margin-top: 40px;
}

.product-share p {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: var(--transition-fast);
    color: var(--text-color);
}

.share-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.share-message {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.share-message.visible {
    opacity: 1;
}

/* 関連製品セクションの改善 */
.related-products-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    position: relative;
}

.related-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(30deg, #f5f5f5 25%, transparent 25%), linear-gradient(150deg, #f5f5f5 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.4;
    z-index: 0;
}

.related-products-section .container {
    position: relative;
    z-index: 1;
}

.products-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.products-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.view-all::after {
    content: '→';
    margin-left: 8px;
    transition: var(--transition-fast);
}

.view-all:hover {
    opacity: 0.8;
}

.view-all:hover::after {
    margin-left: 12px;
}

/* 最近見た製品セクションの改善 */
.recently-viewed-section {
    padding: 80px 0;
    color: white;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.recently-viewed-section .products-title {
    color: white;
}

.recently-viewed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(30deg, rgba(255,255,255,0.03) 25%, transparent 25%), linear-gradient(150deg, rgba(255,255,255,0.03) 25%, transparent 25%);
    background-size: 60px 60px;
    z-index: 0;
}

.recently-viewed-section .container {
    position: relative;
    z-index: 1;
}

/* イメージモーダルの改善 */
.product-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    z-index: 10002;
    max-width: 85%;
    max-height: 85vh;
    overflow: hidden;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--radius);
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: var(--transition-fast);
    opacity: 0.8;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    transform: rotate(90deg);
    opacity: 1;
}

/* モーダルアニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* レスポンシブ調整 */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .product-title-large {
        font-size: 2.4rem;
    }
    
    .products-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .product-background-parallax {
        height: 50vh;
        min-height: 400px;
    }
    
    .product-title-large {
        font-size: 2rem;
    }
    
    .product-detail {
        padding: 60px 0;
    }
    
    .related-products-section,
    .recently-viewed-section {
        padding: 60px 0;
    }
    
    .products-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .product-background-parallax {
        height: 40vh;
        min-height: 300px;
    }
    
    .product-detail {
        padding: 40px 0;
    }
    
    .product-title-large {
        font-size: 1.8rem;
    }
    
    .product-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .related-products-section,
    .recently-viewed-section {
        padding: 50px 0;
    }
    
    .products-title {
        font-size: 1.4rem;
    }
}
