/* =============================================================
   Chaga Balance LP - product.css
============================================================= */

/* ========================================
   基本設定
======================================== */
```css
/* ========================================
   基本設定
======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #222;
    background: #fff;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
}


/* ========================================
   商品ページ全体
======================================== */

.product-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 30px 80px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
}


/* ========================================
   左側：商品画像
======================================== */

.product-visual {
    position: sticky;
    top: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
}

.product-image {
    display: block;
    width: 100%;
    max-width: 440px;
    object-fit: contain;
}


/* ========================================
   右側：商品情報
======================================== */

.product-content {
    min-width: 0;
}


/* 商品タイトル */

.product-header {
    margin-bottom: 25px;
}

.product-header h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.product-catch {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}


/* 商品説明 */

.product-description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.9;
}

.product-description p {
    margin: 0 0 12px;
}

.product-note {
    font-size: 13px;
}


/* ブランドサイト */

.brand-link {
    margin: 20px 0 35px;
}

.brand-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #aaa;
    padding-bottom: 3px;
    transition: opacity 0.2s ease;
}

.brand-link a:hover {
    opacity: 0.65;
}

.external-icon {
    font-size: 13px;
}


/* ========================================
   購入ボタン
======================================== */

.purchase-section {
    margin-bottom: 45px;
}

.purchase-section h2 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
}

.purchase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.purchase-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-width: 200px;
    padding: 14px 20px;
    color: #222;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.purchase-button:hover {
    background: #f5f5f5;
    border-color: #888;
}

.purchase-button span {
    font-size: 16px;
}


/* ========================================
   セクション見出し
======================================== */

.section-title {
    margin: 0 0 20px;
    padding: 0 0 12px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 2px solid #222;
}


/* ========================================
   原材料・栄養成分表示
   アレルギー表示共通
======================================== */

.ingredient-section,
.allergy-section {
    margin-bottom: 45px;
}

.ingredient-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.9;
}

.ingredient-table th,
.ingredient-table td {
    padding: 18px 20px;
    border: 1px solid #d0d0d0;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.ingredient-table th {
    width: 30%;
    background: 	#FFF5EE;
    font-weight: 400;
}

.ingredient-table td {
    background: #fff;
}


/* 栄養成分 */

.nutrition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.nutrition-list span {
    display: inline;
}


/* ========================================
   アレルギー表示
======================================== */

.allergy-section {
    margin-bottom: 45px;
}

/* 見出し：元サイトのttlクラスを踏襲 */

.allergy-section .ttl {
    margin: 0 0 15px;
    padding: 0 0 12px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
    color: #222;
    border-bottom: 2px solid #222;
}

/* 表の横スクロール対応 */

.allergy-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

/* 横並び表 共通 */

.allergy-horizontal {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

.allergy-horizontal th,
.allergy-horizontal td {
    border: 1px solid #d0d0d0;
    padding: 12px 5px;
    vertical-align: middle;
    text-align: center;
}

/* 品目名 */

.allergy-horizontal th {
    background: #FFF5EE;
    font-weight: 400;
    overflow-wrap: anywhere;
}

/* 判定結果 */

.allergy-horizontal td {
    background: #fff;
    font-size: 15px;
}

/* 特定原材料9品目 */

.allergy-9 {
    min-width: 650px;
}

.allergy-9 th,
.allergy-9 td {
    width: 11.11%;
}

/* 特定原材料に準ずるもの20品目 */

.allergy-20 {
    min-width: 1200px;
}

.allergy-20 th,
.allergy-20 td {
    width: 5%;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    .allergy-section .ttl {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .allergy-table-wrap {
        margin-bottom: 25px;
    }

    .allergy-horizontal {
        font-size: 12px;
    }

    .allergy-horizontal th,
    .allergy-horizontal td {
        padding: 10px 4px;
    }

}

/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 1024px) {

    .product-page {
        padding: 30px 24px 60px;
    }

    .product-layout {
        grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
        gap: 30px;
    }

    .product-visual {
        padding: 20px 5px;
    }

    .ingredient-table th,
    .ingredient-table td {
        padding: 14px;
    }

}


/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    .product-page {
        padding: 20px 16px 45px;
    }

    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .product-visual {
        position: static;
        width: 100%;
        padding: 10px 0;
    }

    .product-image {
        width: 100%;
        max-width: 320px;
        max-height: 380px;
        object-fit: contain;
    }

    .product-content {
        width: 100%;
    }

    .product-header {
        margin-bottom: 20px;
    }

    .product-header h1 {
        font-size: 25px;
    }

    .product-catch {
        font-size: 16px;
    }

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

    .brand-link {
        margin: 20px 0 30px;
    }

    .purchase-section {
        margin-bottom: 35px;
    }

    .purchase-section h2 {
        font-size: 20px;
    }

    .purchase-buttons {
        flex-direction: column;
    }

    .purchase-button {
        width: 100%;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .ingredient-table {
        font-size: 13px;
        line-height: 1.8;
    }

    .ingredient-table th,
    .ingredient-table td {
        padding: 12px 10px;
    }

    .ingredient-table th {
        width: 32%;
    }

    .nutrition-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .allergy-table th {
        width: 32%;
    }

}


/* ========================================
   小型スマートフォン
======================================== */

@media screen and (max-width: 380px) {

    .product-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .product-header h1 {
        font-size: 22px;
    }

    .ingredient-table {
        font-size: 12px;
    }

    .ingredient-table th,
    .ingredient-table td {
        padding: 10px 7px;
    }

}
```