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

.site-header {
    background-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0px 20px 20px 10px rgba(255, 255, 255, 0.45) !important;
  }

/* 全幅サムネイル表示 */
main{
    position: relative;
    top: -80px;
}

@media (max-width: 768px) {
    
    .product-detail {
        padding: 0 0 60px;
    }
}


@media (max-width: 576px) {
    .product-detail {
        padding: 0 0 40px;
    }
}


.product-hero {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.fullwidth-thumbnail {
    /* ベーススタイルはジャバスクリプトで上書きされます */
    display: block;
}

/* 横長画像用スタイル */
.image-horizontal {
    width: 100vw;
    height: 100%;
    object-fit: cover;
}

/* 縦長画像用スタイル */
.image-vertical {
    height: 100vh;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* モバイル用でサイズ調整 */
@media (max-width: 768px) {
    .image-vertical {
        height: 80vh;
    }
}

/* 2カラムレイアウト */
.product-info-columns {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .product-info-columns {
        flex-direction: row;
        gap: 30px;
        margin-bottom: 60px;
    }

    .product-meta-column {
        flex: 1;
    }

    .product-content-column {
        flex: 6;
    }
}

.product-meta-column {
    font-size: 12px;
    margin-bottom: 30px;
    min-width: 250px;
}

.product-content-column {
    width: 100%;
}

/* メタ情報スタイリング */
.product-title-large {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.2;
}
.product-meta-items{


}

.product-meta-item {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.meta-label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
    white-space: nowrap;
}
.meta-label-colon{
    font-weight: 600;
    color: #555;
    margin-right: 10px;
    white-space: nowrap;
}

.meta-value {
    display: inline;
}

.product-url {
    margin-top: 30px;
    margin-bottom: 20px;
}

.full-width-section .product-url {
    margin-bottom: 25px;
}

.full-width-section .view-product {
    padding: 10px 30px;
    font-size: 1.1em;
}

/* セクションスタイリング */
.product-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.product-content-column .section-title {
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 190px;
    height: 2px;
    background-color: var(--primary-color);
}

.gallery-title {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* 一列表示セクション */
.full-width-section {
    margin: 40px 0;
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ギャラリーグリッド */
.product-gallery-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.product-gallery-image {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .product-gallery-image {
    transform: scale(1.05);
}

/* モーダルスタイリング */
.product-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.9);
}

.product-image-modal.show {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.close-modal {
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.modal-image {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
}

.modal-footer {
    position: absolute;
    bottom: 10px;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.modal-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px 5px rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 30px;
}

.pagination-prev,
.pagination-next {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.pagination-info {
    font-size: 1em;
    min-width: 60px;
    text-align: center;
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .product-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .section-title {
        font-size: 1.3em;
    }
    .section-title::after {
        width: 166px;
    }
}

@media (max-width: 576px) {
    .product-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-gap: 10px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-image {
        max-height: 60vh;
    }
    
    .product-title-large {
        font-size: 16px;
    }
}

/* 製品ジャンルタグスタイル */
.product-genre {
    margin-bottom: 20px;
}

.product-genre p {
    margin-bottom: 8px;
    font-weight: 500;
}

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

.genre-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85em;
    color: #333;
    transition: all 0.2s ease;
}

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

.genre-tag-link:hover .genre-tag {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 受賞歴タグスタイル */
.product-awards {
    margin-bottom: 20px;
}

.product-awards p {
    margin-bottom: 8px;
    font-weight: 500;
}

.award-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f8f3e6;
    border-radius: 20px;
    font-size: 0.85em;
    color: #8a6d3b;
    border: 1px solid #f0e6cf;
    transition: all 0.2s ease;
}

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

.award-tag-link:hover .award-tag {
    background-color: #f5edda;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(138, 109, 59, 0.1);
}

/* シェアボタン */
.share-buttons {
    display: flex;
    gap: 12px;
}

.full-width-section .share-buttons {
    justify-content: center;
    margin-top: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: #eaeaea;
}

.share-message {
    margin-top: 8px;
    font-size: 14px;
    display: none;
}
