/*
 * ── GW先取り！ガレージ応援キャンペーン 固有CSS ──
 * 2026gwcampaign.twig 専用スタイル
 */

/* ── CSS変数（GWテーマ） ─────────────────── */
:root {
    --lp-primary: #B22222;
    --lp-accent: #D4A017;
    --lp-dark: #1a1a1a;
    --lp-light: #f8f9fa;
    --lp-radius: 8px;
}

/* ── 背景 ────────────────────────────────── */
.lp-page .ec-layoutRole__mainWithColumn,
.lp-page .ec-layoutRole__main {
    background: #fbfbfb;
}

/* ── ポイントバッジ ──────────────────────── */
.gw-point-table {
    width: 100%;
    font-size: 1.3rem;
    border-collapse: collapse;
    margin-top: 10px;
}
.gw-point-table th,
.gw-point-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.gw-point-table th {
    font-weight: 600;
    color: #888;
    width: 45%;
    white-space: nowrap;
}
.gw-point-table td {
    font-weight: 700;
    text-align: right;
}
.gw-point-table tr.gw-point--campaign td {
    color: var(--lp-primary);
    font-size: 1.5rem;
}
.gw-point-table tr.gw-point--normal td {
    color: #aaa;
}
.gw-point-table .gw-tier-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.gw-tier--bronze  { background: #cd7f32; }
.gw-tier--silver  { background: #a0a0a0; }
.gw-tier--gold    { background: #d4a017; }
.gw-tier--platinum { background: #4a90d9; }

/* ── 商品カード（ポイント表示付き） ─────── */
.gw-product-card {
    background: #fff;
    border-radius: var(--lp-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.gw-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.gw-product-card a {
    text-decoration: none;
    color: inherit;
}
.gw-product-card__img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    overflow: hidden;
}
.gw-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gw-product-card:hover .gw-product-card__img img {
    transform: scale(1.05);
}
.gw-product-card__body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gw-product-card__catchcopy {
    font-size: 1.2rem;
    color: #888;
}
.gw-product-card__name {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 4px 0 6px;
    color: var(--lp-dark);
    line-height: 1.4;
}
.gw-product-card__price {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--lp-dark);
    margin-bottom: 6px;
}
.gw-product-card__price small {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
}
.gw-product-card__btn {
    display: block;
    text-align: center;
    margin-top: auto;
    padding: 8px;
    background: var(--lp-primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.gw-product-card__btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* ── セット商品カード ────────────────────── */
.gw-set-card {
    background: #fff;
    border-radius: var(--lp-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    transition: transform 0.25s;
}
.gw-set-card:hover {
    transform: translateY(-3px);
}
.gw-set-card__inner {
    display: flex;
    gap: 20px;
    padding: 20px;
}
.gw-set-card__img {
    width: 200px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.gw-set-card__img img {
    width: 100%;
    height: auto;
    display: block;
}
.gw-set-card__body {
    flex: 1;
    min-width: 0;
}
.gw-set-card__name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lp-dark);
    margin-bottom: 4px;
}
.gw-set-card__catchcopy {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 10px;
}
.gw-set-card__contents {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}
.gw-set-card__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.gw-set-card__regular {
    font-size: 1.4rem;
    color: #aaa;
    text-decoration: line-through;
}
.gw-set-card__set-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--lp-primary);
}
.gw-set-card__set-price small {
    font-size: 1.2rem;
    font-weight: 400;
}
.gw-set-card__btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 24px;
    background: var(--lp-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.gw-set-card__btn:hover {
    opacity: 0.85;
    color: #fff;
}
@media (max-width: 767px) {
    .gw-set-card__inner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .gw-set-card__img {
        width: 100%;
    }
}

/* ── キャンペーン3大特典 ─────────────────── */
.gw-benefit {
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--lp-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: 100%;
}
.gw-benefit__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--lp-primary);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 10px;
}
.gw-benefit__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin-bottom: 6px;
}
.gw-benefit__text {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

/* ── ステッカーバッジ ────────────────────── */
.gw-sticker-badge {
    display: inline-block;
    background: linear-gradient(135deg, #B22222, #d44);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

/* カード本文内バッジ（ポイント行の上）*/
@keyframes gw-glow {
    0%   { box-shadow: 0 0 4px rgba(212,160,23,0.6); }
    50%  { box-shadow: 0 0 12px rgba(212,160,23,1), 0 0 22px rgba(212,160,23,0.6); }
    100% { box-shadow: 0 0 4px rgba(212,160,23,0.6); }
}
.gw-product-card__body .gw-sticker-badge {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 1.3rem;
    background: var(--lp-primary);
    animation: none;
}
.gw-sticker-badge__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.gw-sticker-badge__label {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gw-sticker-badge__rate {
    font-size: 2.0rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

/* ── ポイント率テーブル（概要用） ─────────── */
.gw-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}
.gw-rate-table th,
.gw-rate-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}
.gw-rate-table thead tr {
    background: var(--lp-dark);
    color: #fff;
}
.gw-rate-table thead th:first-child {
    border-radius: var(--lp-radius) 0 0 0;
}
.gw-rate-table thead th:last-child {
    border-radius: 0 var(--lp-radius) 0 0;
}
.gw-rate-table .gw-rate--up {
    color: var(--lp-primary);
    font-weight: 800;
    font-size: 1.6rem;
}
.gw-rate-table .gw-rate--arrow {
    color: var(--lp-primary);
}

/* ── セクション見出し画像 ──────────────────── */
.lp-section__title-img {
    display: block;
    width: 100%;
    max-width: 450px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 16px;
}

/* ── ポイント1行表示 ───────────────────────── */
.gw-point-line {
    font-size: 1.3rem;
    margin: 4px 0 0;
    white-space: nowrap;
}
.gw-point-line__normal {
    color: #aaa;
}
.gw-point-line__arrow {
    color: #aaa;
    margin: 0 2px;
}
.gw-point-line__campaign {
    color: #3EB370;
    font-weight: 700;
    font-size: 1.8rem;
    border: 2px solid #3EB370;
    border-radius: 20px;
    padding: 1px 8px 1px 6px;
    display: inline-block;
    line-height: 1.4;
}

/* ── ポイント内訳テーブル（目玉商品セクション） ─── */
.gw-point-breakdown {
    max-width: 420px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gw-point-breakdown__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdf0f0;
    border-radius: 8px;
    padding: 10px 16px;
}
.gw-point-breakdown__label {
    font-size: 1.3rem;
    color: var(--lp-dark);
    font-weight: 600;
}
.gw-point-breakdown__label small {
    font-size: 1.1rem;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}
.gw-point-breakdown__rate {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lp-primary);
    flex-shrink: 0;
    margin-left: 12px;
}
.gw-point-breakdown__row--total {
    background: var(--lp-primary);
    margin-top: 4px;
}
.gw-point-breakdown__row--total .gw-point-breakdown__label {
    color: #fff;
    font-size: 1.4rem;
}
.gw-point-breakdown__row--total .gw-point-breakdown__rate {
    color: #fff;
    font-size: 2.2rem;
}

/* ── スマホ：バッジ縮小 ─────────────────────── */
@media (max-width: 575px) {
    .gw-product-card__body .gw-sticker-badge {
        padding: 4px 6px;
        gap: 3px;
    }
    .gw-sticker-badge__icon {
        display: none;
    }
    .gw-sticker-badge__label {
        font-size: 0.9rem;
    }
    .gw-sticker-badge__rate {
        font-size: 1.5rem;
    }
}

/* ── 小型スマホ（iPhone SE等 320px〜375px） ── */
@media (max-width: 375px) {
    .gw-point-line {
        font-size: 1.0rem;
    }
    .gw-point-line__campaign {
        font-size: 1.2rem;
    }
}
