/* =========================================================
   風雅テレビボード一覧
   file: fuuga-tv-list.css
   ========================================================= */

.fuuga-tv-list {
    background: #F2EFE5;
    color: #211E1A;
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
    max-width: 750px;
    margin: 0 auto;
    box-sizing: border-box;
}

.fuuga-tv-list *,
.fuuga-tv-list *::before,
.fuuga-tv-list *::after {
    box-sizing: border-box;
}

/* ---------- 材種タブ ---------- */
.fuuga-material-tabs {
    display: flex;
    border: 1px solid #D9D3C0;
    background: #FBFAF6;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.fuuga-material-tab {
    flex: 1;
    padding: 20px 8px;
    border: 0;
    border-right: 1px solid #D9D3C0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5C5648;
    font-size: 13.5px;
    cursor: pointer;
    font-family: inherit;
}

.fuuga-material-tab:last-child {
    border-right: 0;
}

.fuuga-material-tab.is-active {
    background: #37493A;
    color: #fff;
    border-bottom-color: #C9A66B;
}

.fuuga-material-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 9px;
    vertical-align: -3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.fuuga-material-swatch--walnut {
    background: #4A2E1E;
}

.fuuga-material-swatch--cherry {
    background: #CE8641;
}

.fuuga-material-swatch--oak {
    background: #C9A66B;
}

.fuuga-material-swatch--ash {
    background: #E7D8C6;
}

.fuuga-material-swatch--sendan {
    background: #DB7F34;
}

.fuuga-material-panel {
    display: none;
    border: 1px solid #D9D3C0;
    border-top: 0;
    background: #FBFAF6;
    padding: 32px;
    box-shadow: 0 10px 26px -18px rgba(33, 30, 26, .25);
}

.fuuga-material-panel.is-active {
    display: block;
}

/* ---------- タイプ切替 ---------- */
.fuuga-type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.fuuga-type-tab {
    flex: 1;
    min-width: 160px;
    padding: 16px 20px;
    font-size: 14px;
    border: 1px solid #D9D3C0;
    background: #fff;
    color: #5C5648;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}

.fuuga-type-tab.is-active {
    background: #37493A;
    color: #fff;
}

.fuuga-type-panel {
    display: none;
}

.fuuga-type-panel.is-active {
    display: block;
}

/* ---------- 既存デザインから抽出した共通スタイル ---------- */

.fuuga-css-01 {
    padding: 28px 28px 0;
}

.fuuga-css-02 {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #37493A;
    margin-bottom: 10px;
}

.fuuga-css-03 {
    font-family: serif;
    font-size: 30px;
    line-height: 1.5;
    margin: 0 0 16px;
    font-weight: 700;
}

.fuuga-css-04 {
    font-size: 14.5px;
    line-height: 2;
    color: #5C5648;
    max-width: 60ch;
    margin: 0 0 28px;
}

.fuuga-css-05 {
    width: 100%;
    display: block;
    border-top: 1px solid #D9D3C0;
    border-bottom: 1px solid #D9D3C0;
}

.fuuga-css-06 {
    padding: 32px 28px 6px;
}

.fuuga-css-07 {
    border-left: 4px solid #C9A66B;
    padding-left: 16px;
    margin-bottom: 26px;
}

.fuuga-css-08 {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #37493A;
    margin-bottom: 7px;
}

.fuuga-css-09 {
    font-family: serif;
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 700;
}

.fuuga-css-10 {
    font-size: 13.5px;
    color: #5C5648;
    line-height: 1.9;
    margin: 0;
}

.fuuga-css-11 {
    width: 100%;
    border: 1px solid #D9D3C0;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 24px;
}

.fuuga-css-12 {
    font-family: serif;
    font-size: 26px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.fuuga-css-13 {
    font-family: monospace;
    font-size: 12px;
    color: #37493A;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.fuuga-css-14 {
    width: 100%;
    border-collapse: collapse;
}

.fuuga-css-15 {
    width: 280px;
    vertical-align: top;
    padding: 0;
}

.fuuga-css-16 {
    width: 260px;
    max-width: 100%;
    border: 1px solid #D9D3C0;
    background: #fff;
    display: block;
}

.fuuga-css-17 {
    vertical-align: top;
    padding: 0 0 0 26px;
}

.fuuga-css-18 {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #5C5648;
    margin-bottom: 16px;
    font-weight: 700;
}

.fuuga-css-19 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fuuga-css-20 {
    display: inline-block;
    padding: 13px 20px;
    border: 2px solid #D9D3C0;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: monospace;
    color: #211E1A;
    text-decoration: none;
    min-width: 74px;
    text-align: center;
}

.fuuga-css-21 {
    font-family: serif;
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.fuuga-css-22 {
    background: #FBFAF6;
    border: 1px solid #D9D3C0;
    padding: 30px;
}

.fuuga-css-23 {
    font-family: serif;
    font-size: 18px;
    margin: 0 0 14px;
}

.fuuga-css-24 {
    width: 100%;
    border: 1px solid #D9D3C0;
    margin-bottom: 14px;
}

.fuuga-css-25 {
    padding: 0 28px 6px;
}

.fuuga-css-26 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fuuga-css-27 {
    background: #FBFAF6;
    border: 1px solid #D9D3C0;
    padding: 28px 30px;
}

.fuuga-css-28 {
    font-family: monospace;
    font-size: 11.5px;
    color: #37493A;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.fuuga-css-29 {
    font-family: serif;
    font-size: 19px;
    margin: 0 0 12px;
}

.fuuga-css-30 {
    font-size: 13.5px;
    color: #5C5648;
    line-height: 1.9;
    margin: 0 0 14px;
}

.fuuga-css-31 {
    font-size: 13px;
    color: #37493A;
    border-bottom: 1px solid #37493A;
    text-decoration: none;
    padding-bottom: 2px;
}


/* =========================================================
   人気ランキング / PREMIUM UI
   1位を主役に、2位・3位はスワイプで自然に見せる
   ========================================================= */

.fuuga-ranking {
    position: relative;
    padding: 66px 0 54px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #F7F3EA 0%,
            #F2EFE5 42%,
            #F2EFE5 100%
        );
}

/* ---------- 見出し ---------- */
.fuuga-ranking__head {
    position: relative;
    margin: 0 28px 30px;
    padding: 0 0 22px;
    text-align: center;
    border-left: 0;
}

.fuuga-ranking__head::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 42px;
    height: 1px;
    background: #C9A66B;
    transform: translateX(-50%);
}

.fuuga-ranking__eyebrow {
    margin-bottom: 9px;
    color: #9B7A43;
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
}

.fuuga-ranking__title {
    margin: 0;
    color: #211E1A;
    font-family: serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.5;
}

.fuuga-ranking__lead {
    max-width: 500px;
    margin: 10px auto 0;
    color: #756D61;
    font-size: 12.5px;
    line-height: 1.85;
}

/* ---------- スライダー ---------- */
.fuuga-ranking__viewport {
    position: relative;
    width: 100%;
}

.fuuga-ranking__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto !important;
    overflow-y: hidden;

    padding: 0 58px 14px;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 58px;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;

    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    touch-action: pan-x pan-y;
}

.fuuga-ranking__grid::-webkit-scrollbar {
    display: none;
}

.fuuga-ranking__grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* ---------- カード ---------- */
.fuuga-ranking-card,
.fuuga-ranking-card img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.fuuga-ranking-card {
    display: block;

    flex: 0 0 calc(100% - 116px) !important;
    min-width: 0;
    max-width: none !important;

    overflow: hidden;

    border: 1px solid #DED6C7;
    border-radius: 2px;

    background: #FFFEFB;
    color: #211E1A;
    text-decoration: none;

    box-shadow:
        0 14px 34px -26px rgba(33,30,26,.34),
        0 1px 0 rgba(255,255,255,.8) inset;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.fuuga-ranking-card:hover {
    transform: translateY(-2px);
    border-color: #CDB98F;
    box-shadow: 0 20px 42px -25px rgba(33,30,26,.28);
}

.fuuga-ranking__grid.is-dragging .fuuga-ranking-card:hover {
    transform: none;
}

/* ---------- 画像 ---------- */
.fuuga-ranking-card__image {
    position: relative;
    overflow: hidden;
    background: #EEE9DE;
}

.fuuga-ranking-card__image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.06) 100%
    );
}

.fuuga-ranking-card__image img,
.fuuga-ranking-card--first .fuuga-ranking-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
    object-position: center;
    background: #EEE9DE;
    pointer-events: none;
}

/* ---------- 順位バッジ ---------- */
.fuuga-ranking-card__rank {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;

    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;

    min-width: 54px;
    padding: 10px 11px 9px;

    border: 1px solid rgba(255,255,255,.18);
    background: #37493A;
    color: #fff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1;

    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.fuuga-ranking-card--first .fuuga-ranking-card__rank {
    background: #A98547;
}

.fuuga-ranking-card__rank small {
    font-family: monospace;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .08em;
}

.fuuga-ranking-card__badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;

    padding: 7px 10px;

    border: 1px solid rgba(169,133,71,.5);
    background: rgba(255,253,248,.94);
    color: #856836;

    font-family: monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
}

/* ---------- 本文 ---------- */
.fuuga-ranking-card__body,
.fuuga-ranking-card--first .fuuga-ranking-card__body {
    position: relative;
    padding: 20px 22px 20px;
}

.fuuga-ranking-card__eyebrow {
    margin-bottom: 7px;
    color: #968B7A;
    font-family: monospace;
    font-size: 8.5px;
    letter-spacing: .12em;
}

.fuuga-ranking-card h3,
.fuuga-ranking-card--first h3 {
    margin: 0;
    color: #29241F;
    font-family: serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.fuuga-ranking-card h3 strong,
.fuuga-ranking-card--first h3 strong {
    display: block;
    margin-top: 3px;
    color: #16130F;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .025em;
}

.fuuga-ranking-card__body p {
    max-width: 520px;
    margin: 11px 0 0;
    color: #6E665A;
    font-size: 11.5px;
    line-height: 1.85;
}

/* ---------- CTA：明確な購入導線 ---------- */
.fuuga-ranking-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;
    margin-top: 20px;
    padding: 13px 18px;

    border: 1px solid #37493A;
    border-radius: 2px;

    background: #37493A;
    color: #FFFFFF;

    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;

    box-shadow: 0 6px 16px -10px rgba(33, 30, 26, .55);

    transition:
        background .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.fuuga-ranking-card__cta b {
    position: relative;
    top: -1px;

    margin-left: 2px;

    font-size: 18px;
    font-weight: 400;
    line-height: 1;

    transition: transform .22s ease;
}

.fuuga-ranking-card:hover .fuuga-ranking-card__cta {
    background: #25332A;
    border-color: #25332A;
    box-shadow: 0 8px 20px -10px rgba(33, 30, 26, .5);
    transform: translateY(-1px);
}

.fuuga-ranking-card:hover .fuuga-ranking-card__cta b {
    transform: translateX(4px);
}

/* ---------- 矢印 ---------- */
.fuuga-ranking__arrow {
    position: absolute;
    z-index: 10;
    top: 48%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid #D8CFBF;
    border-radius: 50%;

    background: rgba(255,254,250,.96);
    color: #37493A;

    font-size: 0;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(33,30,26,.11);

    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.fuuga-ranking__arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(33,30,26,.14);
}

.fuuga-ranking__arrow--prev {
    left: 8px;
}

.fuuga-ranking__arrow--next {
    right: 8px;
}

/* CSS描画なので文字化けしない */
.fuuga-ranking__arrow::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #37493A;
    border-right: 2px solid #37493A;
}

.fuuga-ranking__arrow--prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.fuuga-ranking__arrow--next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.fuuga-ranking__arrow:disabled {
    opacity: .18;
    cursor: default;
    box-shadow: none;
}

/* ---------- ドット ---------- */
.fuuga-ranking__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.fuuga-ranking__dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #CFC6B7;
    transition: width .2s ease, background .2s ease;
}

.fuuga-ranking__dots span.is-active {
    width: 22px;
    background: #A98547;
}


/* ---------- SP ---------- */
@media (max-width: 560px) {

    .fuuga-ranking {
        padding: 50px 0 44px;
    }

    .fuuga-ranking__head {
        margin: 0 20px 25px;
    }

    .fuuga-ranking__title {
        font-size: 24px;
    }

    .fuuga-ranking__lead {
        font-size: 11.5px;
    }

    .fuuga-ranking__grid {
        gap: 12px;
        padding-left: 16px;
        padding-right: 44px;
        scroll-padding-left: 16px;
        cursor: auto;
    }

    /* 次カードを少しだけ見せる */
    .fuuga-ranking-card {
        flex-basis: 89% !important;
    }

    .fuuga-ranking-card__body,
    .fuuga-ranking-card--first .fuuga-ranking-card__body {
        padding: 17px 16px 18px;
    }

    .fuuga-ranking-card h3 strong,
    .fuuga-ranking-card--first h3 strong {
        font-size: 21px;
    }

    .fuuga-ranking__arrow {
        width: 34px;
        height: 34px;
    }

    .fuuga-ranking__arrow--prev {
        left: 2px;
    }

    .fuuga-ranking__arrow--next {
        right: 2px;
    }

    .fuuga-ranking-card__rank {
        top: 9px;
        left: 9px;
    }

    .fuuga-ranking-card__badge {
        top: 9px;
        right: 9px;
    }
}


.fuuga-css-35 {
    background: #25332A;
    color: #F2EFE5;
    padding: 40px 28px;
    margin-top: 14px;
}

.fuuga-css-36 {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #C9A66B;
    margin-bottom: 10px;
}

.fuuga-css-37 {
    font-family: serif;
    font-size: 24px;
    margin: 0 0 12px;
    font-weight: 700;
}

.fuuga-css-38 {
    font-size: 13.5px;
    color: #D8D6C6;
    line-height: 1.9;
    margin: 0;
}


/* ---------- PC/狭幅での崩れ防止 ---------- */
@media (max-width: 750px) {
    .fuuga-material-tabs {
        flex-wrap: wrap;
    }

    .fuuga-material-tab {
        min-width: 33.333%;
    }

    .fuuga-material-panel {
        padding: 24px 18px;
    }

    .fuuga-type-tabs {
        gap: 8px;
    }

    .fuuga-type-tab {
        min-width: 140px;
    }
}