/* キャンペーンフォーム用スタイル（3列シンプル・文字サイズ調整版） */
.campaign-section-title {
    font-size: 2.0rem; /* 見出し強化 */
    color: #cc0000;
    font-weight: bold;
    text-align: center;
    margin: 40px 0 10px;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 10px;
}
.campaign-note {
    text-align: center;
    color: #444;
    font-size: 1.0rem; /* 注釈も少し大きく */
    margin-bottom: 30px;
}
.campaign-category-title {
    background: #f4f4f4;
    padding: 12px 18px;
    border-left: 8px solid #cc0000;
    font-weight: bold;
    font-size: 1.4rem; /* カテゴリ名UP */
    margin: 40px 0 15px;
}

/* 3列テーブル風レイアウトの枠 */
.campaign-table {
    border-top: 2px solid #cc0000;
    margin-bottom: 40px;
}

/* 各行の設定 */
.campaign-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 18px 12px; /* 余白を少し広げてゆったりと */
    background: #fff;
}
/* 偶数行の色を変える */
.campaign-row:nth-child(even) {
    background: #fafafa;
}
/* ヘッダー行 */
.campaign-row.header {
    background: #eee;
    font-weight: bold;
    color: #333;
    padding: 12px;
    border-bottom: 2px solid #ddd;
    font-size: 1.1rem; /* ヘッダー文字サイズUP */
}

/* --- 3列のカラム設定 --- */

/* 1列目：商品名 */
.col-name {
    flex: 2;
    font-weight: bold;
    font-size: 1.25rem; /* 商品名を大きく（約20px） */
    color: #333;
    padding-right: 15px;
    line-height: 1.4;
}

/* 2列目：価格 */
.col-price {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 3列目：入力フォーム */
.col-input {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* 価格・バッジのデザイン */
.price-original {
    font-size: 1.0rem; /* 元値を16px程度に */
    text-decoration: line-through;
    color: #888;
}
.price-sale {
    font-size: 1.6rem; /* 特価をかなり大きく強調 */
    color: #cc0000;
    font-weight: bold;
}
.tax {
    font-size: 0.9rem; /* 最小サイズを約14px（最低でも11px以上確保） */
    font-weight: normal;
    color: #cc0000;
}
.badge-off {
    background: #cc0000;
    color: #fff;
    font-size: 0.9rem; /* バッジ内の文字も大きく */
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 入力欄のデザイン */
.qty-wrapper {
    display: flex;
    align-items: center;
}
.qty-wrapper input[type="number"] {
    width: 80px; /* 幅を少し広げる */
    padding: 10px;
    font-size: 1.2rem; /* 入力数字を大きく */
    text-align: right;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
}
.unit {
    font-size: 1.1rem; /* 単位「本/個」も大きく */
    white-space: nowrap;
}

/* スマホ対応（画面幅600px以下） */
@media (max-width: 600px) {
    .campaign-row.header {
        display: none;
    }
    .campaign-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
    }
    .col-name, .col-price, .col-input {
        width: 100%;
        flex: auto;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    .col-price {
        margin-bottom: 15px;
        gap: 15px;
    }
    .col-input {
        justify-content: flex-end;
        background: #f9f9f9;
        padding: 10px;
        border-radius: 4px;
    }
    .col-name {
        font-size: 1.3rem;
    }
}

/* --- グルーピング型レイアウト（マルス食器用） --- */

/* 商品ごとのまとまり */
.product-group {
    border: 1px solid #ddd;
    border-top: 3px solid #cc0000; /* 上だけ赤くして強調 */
    margin-bottom: 25px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 商品名ヘッダー */
.product-group__header {
    background: #f0f0f0;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
    border-bottom: 1px solid #ddd;
}

/* バリエーション行（絵柄・無地） */
.variation-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px dashed #eee;
}
.variation-line:last-child {
    border-bottom: none;
}

/* タイプ名（絵柄付き/無地） */
.var-type {
    flex: 1.5; /* 幅広め */
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
/* タイプ名のラベル装飾 */
.var-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.9rem;
    color: #fff;
    width: 20%;
    text-align: center;
}
.var-label.pattern { background-color: #e67e22; } /* 絵柄はオレンジ */
.var-label.plain { background-color: #95a5a6; }   /* 無地はグレー */

/* ローリンググリーン用のラベル色（マルス食器用） */
.var-label.green { background-color: #27ae60; width: max-content; }   /* 緑色 */


/* 価格エリア */
.var-price {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 入力エリア */
.var-input {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* インスタ */
.campaign-instagram{
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 300px;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .variation-line {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
    }
    .var-type, .var-price, .var-input {
        width: 100%;
        margin-bottom: 8px;
        justify-content: flex-start;
    }
    .var-input {
        justify-content: flex-end;
        background: #f9f9f9;
        padding: 10px;
        margin-top: 5px;
    }
    .var-price {
        gap: 15px;
    }
}