/* ========================================
   商品詳細ページ専用CSS
======================================== */
.fwd-page-product-detail {
    min-height: 100vh;
    background: #FCFCF2;
}

/* ナビゲーションメニュー - ヘッダーの下に配置 */
.fwd-page-product-detail .fwd-main-menu {
    position: static;
}

/* メインコンテンツ */
.fwd-page-product-detail .fwd-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px 0 20px;
}

/* 商品詳細セクション */
.product-detail {
    /* margin-bottom: 80px; */
}

.product-detail-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 90px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 商品画像 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.thumbnail {
    aspect-ratio: 1;
    background: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border: 2px solid #a2000d;
}

/* 商品情報 */
.product-info {
    max-width: 100%;
    overflow: hidden;
}

.product-info .product-title {
    font-family: 'Zen Old Mincho', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
    margin: 0 0 20px 0;
}

.product-price {
    font-family: 'Zen Old Mincho', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 30px;
    text-align: right;
}

/* 商品説明 */
.product-description {
    font-family: 'Zen Old Mincho', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    color: #000000;
    margin-bottom: min(10vw, 100px); /* 10vw、最大100px */
}

.product-description p {
    margin: 0;
}

/* 商品詳細（内容量・原材料） */
.product-specs {
    margin-bottom: 30px;
}

.product-specs p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;
    margin: 0;
}

/* 留意点（グリッド外） */
.product-notes {
    max-width: 1000px;
    margin: 40px auto 30px;
    padding: 0;
}

.product-notes p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;
    margin: 0;
}

.product-notes__title {
    margin-bottom: 0;
}

/* 注文ボタン（PC版のみ） */
.product-order-btn {
    margin-top: 30px;
    text-align: right;
}

.product-order-btn .fwd-btn {
    width: 100%;
    max-width: 300px;
}

/* レスポンシブ（768px以下） */
@media (max-width: 768px) {
    .fwd-page-product-detail .fwd-main {
        padding: 40px 20px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        max-width: 100%;
    }

    /* モバイル: 横長表示 */
    .main-image {
        aspect-ratio: 710 / 394;
    }

    .product-info .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 20px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-specs p {
        font-size: 12px;
    }

    .product-notes {
        margin: 30px 0;
    }

    .product-notes p {
        font-size: 12px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    /* モバイルでは注文ボタンを非表示 */
    .product-order-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .fwd-page-product-detail .fwd-main {
        padding: 30px 15px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
}
