@charset "UTF-8";

/* =========================================================
   年末挨拶の粗品・ノベルティ特集（/user_data/item/year_end_sp）
   ・販促花子の既存特集（heading-9 / heading-3 / 商品カード）の見た目に合わせる
   ・モバイルファースト／ブレークポイントは 768px の1か所のみ
   ========================================================= */

:root {
    --ye-red: #106ebe;
    --ye-red-light: #fbece9;
    --ye-teal: #3ebbc1;
    --ye-teal-light: #e8f7f8;
    --ye-orange: #ff5e00;
    --ye-yellow: #ffdf00;
    --ye-text: #222;
    --ye-gray: #666;
    --ye-border: #ddd;
    --ye-bg: #f7f7f7;
}

/* ---------- ベース（モック用。本番は既存テンプレートのスタイルに従う） ---------- */
body {
    margin: 0;
    color: var(--ye-text);
    font-family: "Lucida Grande", メイリオ, Meiryo, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.ye {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 12px 40px;
    box-sizing: border-box;
}

.ye *,
.ye *::before,
.ye *::after {
    box-sizing: border-box;
}

.ye img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    display: flex;
    margin: 0 auto 20px;
}

.ye a {
    color: inherit;
}

.sp-only {
    display: inline;
}

/* ---------- パンくず ---------- */
.ye-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    color: var(--ye-gray);
}

.ye-breadcrumb li + li::before {
    content: "＞";
    margin: 0 6px;
}

.ye-breadcrumb a {
    color: #0066c0;
}

/* ---------- 見出し ---------- */
.ye-h1 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.ye-h2 {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ye-red);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.ye-h3 {
    margin: 24px 0 12px;
    padding: 10px;
    border-top: 2px solid var(--ye-text);
    border-bottom: 2px solid var(--ye-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ye-h3__sub {
    display: block;
    margin-top: 2px;
    color: var(--ye-gray);
    font-size: 12px;
    font-weight: 400;
}

/* ---------- メインビジュアル（仮） ---------- */
.ye-hero {
    margin-bottom: 16px;
    padding: 28px 16px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(213, 70, 45, 0.92), rgba(160, 40, 25, 0.92)),
        repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 12px);
    color: #fff;
    text-align: center;
}

.ye-hero__sub {
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 12px;
    border-radius: 50px;
    background: var(--ye-yellow);
    color: var(--ye-text);
    font-size: 12px;
    font-weight: 700;
}

.ye-hero__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
}

.ye-hero__note {
    margin: 8px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.ye-lead {
    margin: 0 0 16px;
}

/* ---------- 注意書き（ファーストビュー） ---------- */
.ye-notice {
    margin-bottom: 16px;
    padding: 14px;
    border: 2px solid var(--ye-orange);
    border-radius: 8px;
    background: #fff6f0;
    text-align: center;
}

.ye-notice__text {
    margin: 0 0 10px;
    font-weight: 700;
}

/* ---------- ボタン ---------- */
.ye-btn {
    display: inline-block;
    width: 100%;
    max-width: 360px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ye-btn:hover {
    opacity: 0.8;
}

.ye .ye-btn--orange {
    background: var(--ye-orange);
    color: #fff;
}

.ye .ye-btn--line {
    border: 2px solid var(--ye-teal);
    background: #fff;
    color: var(--ye-teal);
}

/* ---------- ページ内リンク ---------- */
.ye-anchor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.ye .ye-anchor__link {
    display: block;
    padding: 10px 4px;
    border-radius: 6px;
    background: var(--ye-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.ye-anchor__link::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: 4px auto 0;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* ---------- セクション ---------- */
.ye-section {
    margin-bottom: 48px;
    scroll-margin-top: 12px;
}

.ye-section__lead {
    margin: 0 0 16px;
}

/* ---------- 商品カード（既存の product-list に準拠） ---------- */
.ye-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ye-card {
    position: relative;
    border: 1px solid var(--ye-border);
    border-radius: 6px;
    background: #fff;
}

.ye-card--pb {
    border-color: var(--ye-teal);
}

.ye .ye-card__link {
    display: block;
    height: 100%;
    padding: 8px;
    text-decoration: none;
}

.ye-card__link:hover .ye-card__name {
    text-decoration: underline;
}

.ye-card__image {
    aspect-ratio: 1 / 1;
    margin-bottom: 6px;
    overflow: hidden;
    background: var(--ye-bg);
}

.ye-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ye-card__name {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.ye-card__copy {
    margin: 0 0 6px;
    color: var(--ye-gray);
    font-size: 11px;
    line-height: 1.5;
}

.ye-card__low {
    margin: 0;
    color: var(--ye-gray);
    font-size: 10px;
}

.ye-card__price {
    margin: 0;
    color: var(--ye-red);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ye-card__price span {
    font-size: 10px;
    font-weight: 400;
}

.ye-card__lot {
    margin: 2px 0 0;
    font-size: 11px;
}

.ye-card__lot span {
    display: inline-block;
    margin-right: 4px;
    padding: 0 4px;
    border: 1px solid var(--ye-gray);
    border-radius: 2px;
    color: var(--ye-gray);
    font-size: 10px;
}

.ye-card__pb {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    padding: 1px 6px;
    border-radius: 2px;
    background: var(--ye-teal);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* ランキング番号 */
.ye-card__rank {
    position: absolute;
    top: -6px;
    left: -6px;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding-top: 6px;
    border-radius: 50%;
    background: #888;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.ye-card__rank small {
    font-size: 9px;
}

.ye-card__rank--1 {
    background: #c9a227;
}

.ye-card__rank--2 {
    background: #9aa4ad;
}

.ye-card__rank--3 {
    background: #b0703c;
}

/* ---------- タブ（全パネルをHTMLに出力し、表示だけ切り替え） ---------- */
.ye-tabs__list {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    overflow-x: auto;
    border-bottom: 3px solid var(--ye-red);
    -webkit-overflow-scrolling: touch;
}

.ye-tabs__btn {
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px solid var(--ye-border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: var(--ye-bg);
    color: var(--ye-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.ye-tabs__btn small {
    display: block;
    font-size: 10px;
    font-weight: 400;
}

/* 予算タブ（3つ）は横いっぱいに等分 */
.ye-tabs[data-tabs="budget"] .ye-tabs__list {
    overflow-x: visible;
}

.ye-tabs[data-tabs="budget"] .ye-tabs__btn {
    flex: 1 1 0;
    min-width: 0;
}

.ye-tabs__btn[aria-selected="true"] {
    border-color: var(--ye-red);
    background: var(--ye-red);
    color: #fff;
}

.ye-tabs__panel {
    display: none;
    padding-top: 4px;
}

.ye-tabs__panel.is-active {
    display: block;
}

/* JS が動かない環境では全パネルを表示 */
.no-js .ye-tabs__panel {
    display: block;
}

.ye-tabs__lead {
    margin: 0 0 14px;
}

/* ---------- もっと見るリンク ---------- */
.ye-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ye-more li {
    width: 100%;
    max-width: 400px;
}

.ye .ye-more__link {
    position: relative;
    display: block;
    padding: 10px 32px 10px 16px;
    text-align: center;
    border: 1px solid #bf0000;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ye-more__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #bf0000;
    border-right: 2px solid #bf0000;
    transform: translateY(-50%) rotate(45deg);
}

/* ---------- 相談 ---------- */
.ye-consult {
    padding: 0 0 20px;
    border-radius: 10px;
    background: #fff6f0;
}

.ye-consult .ye-h2 {
    border-radius: 10px 10px 0 0;
    background: var(--ye-orange);
}

.ye-consult p {
    margin: 0 16px 10px;
}

.ye-consult__btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 16px 16px 0;
}

/* ---------- 解説 ---------- */
.ye-article p {
    margin: 0 0 12px;
}

.ye-list {
    margin: 0 0 12px;
    padding-left: 1.4em;
}

.ye-list li + li {
    margin-top: 6px;
}

.ye-list strong {
    background: linear-gradient(transparent 60%, var(--ye-yellow) 60%);
}

.ye-list--quote {
    padding: 12px 12px 12px 2em;
    border-radius: 6px;
    background: var(--ye-bg);
}

.ye-table-wrap {
    margin-bottom: 16px;
    overflow-x: auto;
}

.ye-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 13px;
}

.ye-table th,
.ye-table td {
    padding: 10px;
    border: 1px solid var(--ye-border);
    text-align: left;
    vertical-align: top;
}

.ye-table thead th {
    background: var(--ye-red);
    color: #fff;
    text-align: center;
}

.ye-table thead th:first-child {
    background: #fff;
    border-color: transparent var(--ye-border) var(--ye-border) transparent;
}

.ye-table tbody th {
    width: 26%;
    background: var(--ye-red-light);
    white-space: nowrap;
}

.ye-warning {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 6px solid var(--ye-red);
    background: var(--ye-red-light);
}

.ye-warning p {
    margin: 0;
}

.ye-warning__title {
    margin-bottom: 6px !important;
    color: var(--ye-red);
    font-weight: 700;
}

.ye-warning__title::before {
    content: "！";
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ye-red);
    color: #fff;
    font-size: 12px;
    line-height: 1.4em;
    text-align: center;
}

.ye-textlink a {
    color: #0066c0;
    font-weight: 700;
}

.ye-inline-link {
    color: #0066c0;
    font-weight: 700;
}

/* ---------- ダミー画像＋画像指示書（公開前に削除して画像に差し替え） ---------- */
.ye-dummy {
    max-width: 640px;
    margin: 0 auto 16px;
    border: 2px dashed #999;
    background: #fafafa;
}

.ye-dummy__img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: repeating-linear-gradient(45deg, #eee 0 10px, #e2e2e2 10px 20px);
    color: #888;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.ye-dummy--4x3 .ye-dummy__img {
    aspect-ratio: 4 / 3;
}

.ye-dummy__brief {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
}

.ye-dummy__title {
    display: inline-block;
    margin: 0 0 6px !important;
    padding: 0 8px;
    background: #555;
    color: #fff;
    font-weight: 700;
}

.ye-dummy dl {
    display: grid;
    grid-template-columns: 4em 1fr;
    gap: 4px 8px;
    margin: 0;
}

.ye-dummy dt {
    color: var(--ye-gray);
    font-weight: 700;
}

.ye-dummy dd {
    margin: 0;
}

/* ---------- FAQ ---------- */
.ye-faq__item {
    border-bottom: 1px solid var(--ye-border);
}

.ye-faq__q {
    position: relative;
    padding: 14px 32px 14px 36px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.ye-faq__q::-webkit-details-marker {
    display: none;
}

.ye-faq__q::before {
    content: "Q";
    position: absolute;
    top: 12px;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ye-red);
    color: #fff;
    line-height: 26px;
    text-align: center;
}

.ye-faq__q::after {
    content: "＋";
    position: absolute;
    top: 14px;
    right: 6px;
    color: var(--ye-red);
}

.ye-faq__item[open] .ye-faq__q::after {
    content: "－";
}

.ye-faq__a {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 0 36px;
}

.ye-faq__a::before {
    content: "A";
    position: absolute;
    top: -2px;
    left: 0;
    width: 26px;
    height: 26px;
    border: 2px solid var(--ye-teal);
    border-radius: 50%;
    color: var(--ye-teal);
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* ---------- 関連特集 ---------- */
.ye-related {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ye .ye-related__link {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--ye-border);
    border-left: 5px solid var(--ye-teal);
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.ye-related__link span {
    display: block;
    color: var(--ye-gray);
    font-size: 11px;
    font-weight: 400;
}

/* ---------- 最後のCTA ---------- */
.ye-cta {
    padding: 24px 16px;
    border-radius: 10px;
    background: var(--ye-teal-light);
    text-align: center;
}

.ye-cta__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.ye-cta__text {
    margin: 0 0 16px;
}

.ye-cta__btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   PC（768px〜）
   ========================================================= */
@media (min-width: 768px) {
    .sp-only {
        display: none;
    }

    .ye-h1 {
        font-size: 18px;
    }

    .ye-h2 {
        padding: 11px 16px;
        font-size: 22px;
    }

    .ye-hero {
        padding: 44px 24px;
    }

    .ye-hero__title {
        font-size: 36px;
    }

    .ye-anchor__link {
        font-size: 14px;
    }

    .ye-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .ye-grid--rank {
        grid-template-columns: repeat(5, 1fr);
    }

    .ye-tabs__btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .ye-more {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ye-more li {
        width: auto;
        min-width: 320px;
    }

    .ye-consult__btns,
    .ye-cta__btns {
        flex-direction: row;
        justify-content: center;
    }

    .ye-related {
        grid-template-columns: repeat(2, 1fr);
    }
}
