/* =========================================================
   SLC トップページ CVR改善版 — toppage.css
   設置場所: 子テーマ/assets/css/toppage.css
   ========================================================= */

/* --- Design Tokens --- */
:root {
    --slc-navy:    #111111;
    --slc-accent:  #ffce12;
    --slc-blue:    #2e75b6;
    --slc-bg:      #f7f8fa;
    --slc-card:    #ffffff;
    --slc-text:    #1a1a1a;
    --slc-muted:   #6b7280;
    --slc-border:  #e5e7eb;
    --slc-success: #059669;
    --slc-danger:  #dc2626;
    --slc-warning: #d97706;
    --slc-radius:  10px;
    --slc-gap:     12px;
}

/* =========================================================
   緊急告知バー (Zone 8)
   ========================================================= */
.slc-emergency {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}
.slc-emergency--danger  { background: var(--slc-danger);  color: #fff; }
.slc-emergency--warning { background: var(--slc-warning); color: #fff; }
.slc-emergency--info    { background: var(--slc-blue);    color: #fff; }
.slc-emergency__inner { max-width: 960px; margin: 0 auto; }
.slc-emergency__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.slc-emergency__icon { margin-right: 6px; }

/* =========================================================
   メイン
   ========================================================= */
.slc-toppage {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--slc-bg);
}

/* =========================================================
   ヒーロー (Zone 1)
   ========================================================= */
.slc-hero {
    width: 100%;
    /* 既存スライダーのスタイルを尊重。追加の装飾は最小限に */
}
.slc-hero__fallback {
    display: block;
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    text-decoration: none;
}
.slc-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slc-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}
.slc-hero__badge {
    display: inline-block;
    background: var(--slc-accent);
    color: var(--slc-navy);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.slc-hero__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* =========================================================
   カテゴリグリッド (Zone 2)
   ========================================================= */
.slc-categories {
    padding: 20px 16px 12px;
}
.slc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--slc-text);
    margin: 15px 0 10px;
    line-height: 1;
    letter-spacing: 1px;
}
.slc-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}
.slc-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px;
    text-decoration: none;
    transition: transform .15s;
}
.slc-cat-item:active {
    transform: scale(.93);
}
.slc-cat-item__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
    border: 2px solid var(--slc-border);
    transition: border-color .2s;
}
.slc-cat-item:hover .slc-cat-item__photo,
.slc-cat-item:active .slc-cat-item__photo {
    border-color: var(--slc-accent);
}
.slc-cat-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slc-cat-item__name {
    font-size: 11px;
    font-weight: 600;
    color: var(--slc-text);
    text-align: center;
    line-height: 1.2;
}

/* =========================================================
   締切バー (Zone 3)
   ========================================================= */
.slc-cutoff-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 16px;
    margin: 20px 0 0;
    background: #ffce12;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
.slc-cutoff-bar__icon { display: none; }

/* =========================================================
   商品グリッド (Zone 4) — NOVAカード構造準拠
   ========================================================= */
.slc-products {
    padding: 20px 16px;
}
.slc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.slc-more-link {
    font-size: 13px;
    color: #004db3;
    background: none;
    text-decoration: none;
    font-weight: 400;
    padding: 20px 0 5px;
    border: none;
    border-radius: 0;
    transition: opacity .2s;
    letter-spacing: .02em;
}
.slc-more-link::after {
    content: ' ↗';
    color: inherit;
    font-size: 1em;
}
.slc-more-link:hover {
    opacity: .6;
}
.slc-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--slc-gap);
}
/* NOVA article card styling within toppage grid */
.slc-product-grid article {
    position: relative;
    overflow: hidden;
    background: var(--slc-card);
    transition: transform .15s;
}
.slc-product-grid article:active { transform: scale(.97); }
.slc-product-grid .itemimg {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}
.slc-product-grid .itemimg a {
    display: block;
    width: 100%;
    height: 100%;
}
.slc-product-grid .itemimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slc-product-grid .itemsoldout {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.slc-product-grid .item-info-wrap {
    padding: 8px 6px 12px;
    text-align: center;
}
.slc-product-grid .itemname {
    font-size: 12px;
    font-weight: 500;
    color: var(--slc-text);
    line-height: 1.35;
    margin: 0 0 4px;
}
.slc-product-grid .itemname a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 価格: 黒文字・中央寄せ */
.slc-product-grid .itemprice {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}
.slc-product-grid .itemprice .crprice {
    color: #1a1a1a;
}
/* ¥マーク控えめ（JSで .slc-yen を挿入） */
.slc-product-grid .slc-yen {
    font-size: 0.6em;
    font-weight: 400;
    opacity: .6;
    margin-right: 1px;
}
/* 税込表記を控えめに */
.slc-product-grid .taxprice,
.slc-product-grid .tax {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

/* =========================================================
   LIFE CARE+ (Zone 5) — 画像バナー
   ========================================================= */
.slc-trust {
    margin: 0 0 35px;
}
.slc-trust__banner {
    display: block;
    text-decoration: none;
    transition: opacity .2s;
}
.slc-trust__banner:hover {
    opacity: .85;
}
.slc-trust__banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   サービスバナー (ミニバナー2枚)
   ========================================================= */
.slc-services {margin: 0 0 35px;}
.slc-services__inner {
    max-width: 100%;
    overflow: hidden;
}
.slc-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--slc-border);
}
.slc-banner {
    position: relative;
    aspect-ratio: 15 / 11;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    background: #111;
}
.slc-banner__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.slc-banner:hover .slc-banner__photo {
    transform: scale(1.04);
}
.slc-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.slc-banner__body {
    position: relative;
    z-index: 1;
    padding: 5px 11px 8px;
    width: 100%;
}
.slc-banner__tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #ffce12;
    line-height: 1;
}
.slc-banner__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}
.slc-banner__sub {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.62);
    line-height: 1.3;
}

/* =========================================================
   出荷実績 (Zone 6) — ダーク背景・黄色数字
   ========================================================= */
.slc-proof {
    background: #111;
    padding: 20px 0 24px;
    margin: 1px 0 10px;
}
.slc-proof__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 16px;
}
.slc-proof__title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .1em;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}
.slc-proof__period {
    font-size: 10px;
    color: rgba(255,255,255,.35);
}
.slc-proof__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(255,255,255,.08);
    margin-bottom: 16px;
}
.slc-proof__item {
    background: #111;
    padding: 16px 12px;
    text-align: center;
}
.slc-proof__number {
    display: block;
    font-size: 22px;
    font-weight: 500;
    color: #ffce12;
    line-height: 1;
    margin-bottom: 6px;
}
.slc-proof__label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.45);
    letter-spacing: .04em;
    line-height: 1.3;
}
.slc-proof__text {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 16px 0;
}
.slc-proof__msg {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    margin: 0 0 4px;
}
.slc-proof__msg--note {
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

/* =========================================================
   飼育マニュアル (Zone 7) — オーバーレイ版
   ========================================================= */
.slc-guides {
    padding: 20px 16px 24px;
    background: #f6f7f9;
}
.slc-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    padding-top: 10px;
}
.slc-guide-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-decoration: none;
    background: #111;
    transition: opacity .15s;
}
.slc-guide-card:active { opacity: .7; }
.slc-guide-card--large {
    grid-row: 1 / 3;
    height: 249px;
}
.slc-guide-card--small {
    height: 123px;
}
.slc-guide-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.slc-guide-card:hover .slc-guide-card__img {
    transform: scale(1.04);
}
.slc-guide-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.slc-guide-card__body {
    position: relative;
    z-index: 1;
    padding: 8px 10px 5px;
    width: 100%;
}
.slc-guide-card__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
}
.slc-guide-card--small .slc-guide-card__name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slc-guide-card--small .slc-guide-card__body {
    padding: 6px 8px 5px;
}
.slc-guide-card__sub {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.62);
}

/* =========================================================
   ニュース (Zone 8b)
   ========================================================= */
.slc-news {
    padding: 20px 16px 32px;
}
.slc-news__list {
    border-top: 1px solid var(--slc-border);
}
.slc-news__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--slc-border);
    text-decoration: none;
}
.slc-news__date {
    font-size: 11px;
    color: var(--slc-muted);
    flex-shrink: 0;
    min-width: 68px;
}
.slc-news__title {
    font-size: 12px;
    color: var(--slc-text);
    line-height: 1.4;
}
.slc-news__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--slc-text);
    padding: 1px 6px;
    margin-right: 6px;
    letter-spacing: .04em;
    vertical-align: baseline;
    line-height: 1.6;
}
.slc-news__badge--important {
    background: #ffce12;
    color: #1a1a1a;
}


/* =========================================================
   PC (min-width: 768px)
   ========================================================= */
@media (min-width: 768px) {
    .slc-categories,
    .slc-products,
    .slc-news {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ヒーロー */
    .slc-hero__fallback { height: 400px; }

    /* カテゴリ: PCでは1行8個 */
    .slc-cat-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px 12px;
    }
    .slc-cat-item__photo { width: 88px; height: 88px; }
    .slc-cat-item__name { font-size: 12px; }
    .slc-cat-item:hover {
        transform: translateY(-3px);
    }

    /* 締切バー: PCでは余白のみ（角丸なし） */
    .slc-cutoff-bar {
        max-width: 1168px;
        margin: 60px auto 20px;
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* 商品グリッド: PCでは4列 */
    .slc-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .slc-product-grid article:hover {
        box-shadow: 0 2px 12px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

    /* LIFE CARE+ */
    .slc-trust {margin: 10px 0 60px;}

    /* サービスバナー: PCでは全幅・14:5比率 */
    .slc-services {
    margin: 0 0 60px;
}
    .slc-services__inner { max-width: 100%; margin: 0 auto; }
    .slc-banner { aspect-ratio: 14 / 5; height: auto; }
    .slc-banner__title { font-size: 20px; white-space: nowrap; line-height: 1.25; }
    .slc-banner__sub { font-size: 12px; }
    .slc-banner__tag { font-size: 13px; margin-bottom: 3px; }
    .slc-banner__body { padding: 14px 25px 20px; }

    /* 出荷実績 */
    .slc-proof {padding: 28px 24px 32px;margin: 2px 0 30px;}
    .slc-proof__grid { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
    .slc-proof__number { font-size: 28px; }
    .slc-proof__label { font-size: 11px; }
    .slc-proof__text { max-width: 100%; padding-top: 15px; padding-left: 50px; }
    .slc-proof__msg { font-size: 13px; }

    /* 飼育マニュアル: PC */
    .slc-guides { padding: 20px 0 0; margin: auto; max-width: 850px; }
    .slc-guides .slc-section-title { padding-left: 24px; }
    .slc-guide-grid {gap: 2px;}
    .slc-guide-card--large { height: 400px; }
    .slc-guide-card--small { height: 199px; }
    .slc-guide-card__name { font-size: 16px !important; line-height: 1.3; }
    .slc-guide-card__sub { font-size: 12px; }
    .slc-guide-card__body { padding: 12px 20px 16px!important; }
    .slc-guide-card:hover { opacity: 1; }

    /* ニュース */
    .slc-news {max-width: 640px;margin: 57px auto;}
}
/* =========================================================
   お知らせ一覧ページ (page-news.php)
   ========================================================= */
.slc-news-page {
    max-width: 100%;
    background: var(--slc-bg);
}
.slc-news-page__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}
.slc-news-page__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--slc-text);
    margin: 0 0 20px;
    line-height: 1;
}
.slc-news-page .slc-news__list {
    border-top: 1px solid var(--slc-border);
}
.slc-news-page .slc-news__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slc-border);
    text-decoration: none;
    transition: background .15s;
}
.slc-news-page .slc-news__item:hover {
    background: rgba(0,0,0,.02);
}
.slc-news-page .slc-news__date {
    font-size: 11px;
    color: var(--slc-muted);
    flex-shrink: 0;
    min-width: 72px;
}
.slc-news-page .slc-news__title {
    font-size: 13px;
    color: var(--slc-text);
    line-height: 1.5;
}
/* ページネーション */
.slc-news-page__nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 28px;
}
.slc-news-page__nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    color: var(--slc-text);
    text-decoration: none;
    border: 1px solid var(--slc-border);
    transition: background .15s, border-color .15s;
}
.slc-news-page__nav .page-numbers.current {
    background: var(--slc-text);
    color: #fff;
    border-color: var(--slc-text);
}
.slc-news-page__nav .page-numbers:hover:not(.current) {
    background: rgba(0,0,0,.04);
}
.slc-news-page__empty {
    font-size: 13px;
    color: var(--slc-muted);
    padding: 40px 0;
    text-align: center;
}

/* =========================================================
   カテゴリページ — デザイン改善
   ========================================================= */

/* --- カテゴリヘッダー --- */
/* カテゴリ説明文 */
.taxonomy-description {
    text-align: center;
}
.taxonomy-description p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- 価格表示統一 --- */
/* セレクタ: .cat-il（Welcart カテゴリ商品一覧） */
/* 価格: 赤→黒、中央寄せ */
.cat-il .itemprice {
    color: #1a1a1a !important;
    text-align: center;
}
.cat-il .itemprice .crprice {
    color: #1a1a1a !important;
}
/* 商品名: 黒、中央寄せ、2行制限 */
.cat-il .itemname {
    color: #1a1a1a;
    text-align: center;
}
.cat-il .itemname a {
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
/* 税込表記を控えめに */
.cat-il .itemprice .tax,
.cat-il .itemprice .taxprice {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}
/* ¥マーク控えめ（JSで .slc-yen を挿入） */
.cat-il .slc-yen {
    font-size: 0.6em;
    font-weight: 400;
    opacity: .6;
    margin-right: 1px;
}

/* =========================================================
   個別商品ページ — 価格表示統一
   セレクタ: .item-info .field_price
   ========================================================= */
/* 現行価格: 黒 */
.item-info .field_price {
    color: #1a1a1a !important;
}
/* 元値（取り消し線）: グレーに変更（アンカリング効果は維持、赤の警告感を排除） */
.item-info .field_price .field_cprice {
    color: #999 !important;
    font-size: 0.65em;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 4px;
}
/* 税込表記を控えめに */
.item-info .field_price .tax {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}
/* ¥マーク控えめ（JSで .slc-yen を挿入） */
.item-info .field_price .slc-yen {
    font-size: 0.6em;
    font-weight: 400;
    opacity: .6;
    margin-right: 1px;
}
/* 元値内の¥マークはさらに控えめに */
.item-info .field_price .field_cprice .slc-yen {
    opacity: .4;
}