﻿@charset "UTF-8";

:root {
    --ranking_brown: #6a3315;
    --ranking_beige: #f4eee8;
    --ranking_beige_dark: #a88977;
    --ranking_pink: #ed8599;
    --ranking_pink_bg: #fff3f5;
    --ranking_blue: #69adcf;
    --ranking_blue_bg: #f2fbff;
    --ranking_yellow: #F0B106;
    --ranking_yellow_bg: #FBF6E6;
    --ranking_text: #000;
    --ranking_subtext: #616161;
    --ranking_border: #ddd;
    --ranking_width: 640px;
}

#ranking_page_2026,
#ranking_page_2026 * {
    box-sizing: border-box;
}

#ranking_page_2026 {
    width: var(--ranking_width);
    max-width: 100%;
    margin: 0 auto;
    color: var(--ranking_text);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    line-height: 1.67;
    -webkit-text-size-adjust: 100%;
}

#ranking_page_2026 img {
    display: block;
    /* max-width: 100%; */
    /* height: auto; */
}

#ranking_page_2026 a {
    color: inherit;
}

.visually_hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ranking_intro {
    background: var(--ranking_beige);
    padding-bottom: 60px;
}

.ranking_intro_label {
    height: 40px;
    padding-left: 20px;
    background: var(--ranking_beige_dark);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 40px;
}

.ranking_main_visual {
    width: 640px;
}

.ranking_intro_copy {
    padding: 15px 30px;
}

.ranking_intro_copy p {
    margin: 0;
}

.ranking_intro_lead {
    margin-bottom: 8px !important;
    color: var(--ranking_brown);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.ranking_intro_lead span {
    color: var(--ranking_pink);
    font-size: 24px;
    font-weight: 600;
}

.ranking_anchor_nav {
    display: flex;
    gap: 10px;
    width: 580px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: unset;
}

.ranking_anchor_nav a:nth-child(1),
.ranking_anchor_nav a:nth-child(2) {
    grid-column: span 3;
}

.ranking_anchor_nav a:nth-child(n+3) {
    grid-column: span 2;
}

.ranking_anchor_nav a {
    display: block;
    text-decoration: none;
}

.ranking_nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    width: 640px;
    height: 80px;
    margin: 0 auto;
    filter: drop-shadow(2px 2px 2.5px rgba(0, 0, 0, .2));
    background-color: unset;
}

.ranking_nav a {
    display: block;
    flex: 0 0 128px;
    text-decoration: none;
}

.ranking_nav img {
    width: 128px;
}

.ranking_section {
    scroll-margin-top: 80px;
    padding-top: 60px;
}

.ranking_heading {
    margin: 0 0 30px;
    text-align: center;
    height: auto;
}

.ranking_heading img {
    margin: 0 auto;
}

/* 総合ランキング見出し：年のみデバイステキスト。丸＋周囲のvectorあしらいは1枚のSVG。 */
.ranking_heading_total {
    height: 165px;
    margin-bottom: 10px;
}

.ranking_total_title {
    position: relative;
    display: block;
    width: 636px;
    height: 165px;
    margin: 0 auto;
}

.ranking_total_deco {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 636px;
    height: 165px;
    margin: 0;
}

.ranking_total_title_svg {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 107px;
    width: 461px;
    height: 143px;
    margin: 0;
}

.ranking_total_year {
    position: absolute;
    z-index: 3;
    top: 91px;
    left: 38px;
    width: 76px;
    height: 23px;
    color: #fff;
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro", "Yu Gothic", "メイリオ", sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 23px;
    text-align: center;
    white-space: nowrap;
}

.ranking_description,
.tab_copy {
    width: 580px;
    margin: 0 auto 30px;
}

.ranking_description p,
.tab_copy p {
    margin: 10px 0;
}

.ranking_intro_lead,
.tab_copy h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--ranking_brown);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}
.ranking_intro_lead::before,
.ranking_intro_lead::after,
.tab_copy h3::before,
.tab_copy h3::after {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='30' viewBox='0 0 10 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.57338 4.57747C7.48123 3.52534 6.38339 2.47889 5.29124 1.42676' stroke='%23231815' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.12628 8.94059C4.71558 8.38325 3.30489 7.8259 1.8942 7.26855' stroke='%23231815' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.55063 14.9971C4.03185 14.9971 2.51877 14.9971 1 14.9971' stroke='%23231815' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.12628 21.0596C4.71558 21.6169 3.30489 22.1743 1.8942 22.7316' stroke='%23231815' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.28214 26C8.18999 27.0521 7.09215 28.0986 6 29.1507' stroke='%23231815' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ranking_intro_lead::after,
.tab_copy h3::after {
    transform: scaleX(-1);
}
.ranking_description_title{
    color: var(--ranking_pink);
    font-weight: 600;
    border-top: dotted 2px;
    border-bottom: dotted 2px;
    border-color: #000000;
    padding: 5px;
    text-align: center;
    font-size: 22px;
}
.tab_copy p strong{
    font-weight: 600;
}
#rkg_price .tab_copy h3 span {
    color: var(--ranking_pink);
    font-weight: 600;
}
#rkg_person .tab_copy h3 span {
    color: var(--ranking_blue);
    font-weight: 600;
}
#rkg_category .tab_copy h3 span {
    color: var(--ranking_yellow);
    font-weight: 600;
}

.ranking_note {
    margin-top: 12px !important;
    color: #b24444;
    font-size: 14px;
}

.ranking_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
    width: 580px;
    margin: 0 auto;
}

.ranking_card {
    min-width: 0;
}

.ranking_card_wide {
    width: 580px;
}

.ranking_card_half {
    width: 280px;
}

.ranking_card_third {
    width: 180px;
}

.ranking_card > a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.ranking_card_wide > a {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ranking_photo {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 0 10px 10px 10px;
    background: #fff;
}

.ranking_photo > img:not(.rank_icon) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking_photo_300 {
    width: 300px;
    height: 300px;
}

.ranking_photo_280 {
    width: 280px;
    height: 280px;
}

.ranking_photo_180 {
    width: 180px;
    height: 180px;
}

.rank_icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 28px;
}

.rank_icon_large {
    width: 40px;
}

.ranking_card_body {
    min-width: 0;
}

.ranking_pick {
    display: inline-block;
    margin: 0 0 10px;
    padding: 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
}

.ranking_pick_gold { background: #dbb74c; }
.ranking_pick_silver { background: #97adb7; }

.ranking_name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    margin: 15px 0 5px;
    font-size: 18px;
    line-height: 1.45;
    text-decoration: underline;
}

.ranking_price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.ranking_price strong {
    font-size: 22px;
    font-weight: 600;
}

.ranking_price del {
    font-size: 14px;
    font-weight: 400;
}
.ranking_price_sale{
    color: #BE0000;
}
.ranking_comment {
    margin: 10px 0 0;
    color: var(--ranking_subtext);
    font-size: 16px;
    line-height: 1.625;
}

.ranking_back_top {
    padding: 40px 0 80px;
    text-align: center;
    font-size: 16px;
    text-decoration: underline;
}

.ranking_section_total {
    background: #fff;
    padding-top: 10px!important;
}

.ranking_section_premium {
    background: var(--ranking_beige);
}

.premium_intro {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 580px;
    margin: 0 auto 35px;
}

.premium_catalog {
    flex: 0 0 113px;
    box-shadow: 4px 6px 8px rgb(0 0 0 / 20%);
    transform: rotate(
355deg);
    transform-origin: center;
    width: 140px;
}

.premium_intro .premium_copy{
    margin: 10px 0 0;
}

.program_ranking {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
    width: 580px;
    margin: 0 auto;
}

.program_ranking .box2,
.program_ranking .box3 {
    float: none;
    height: auto;
    margin: 0;
    padding: 0;
}

.program_ranking .box2,
.program_ranking .box2_inner {
    width: 280px;
}

.program_ranking .box3,
.program_ranking .box3_inner {
    width: 180px;
}

.program_ranking .flame260,
.program_ranking .flame170 {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.program_ranking .flame260 img:not(.rank_position img) {
    width: 280px;
    height: 280px;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.program_ranking .flame170 img:not(.rank_position img) {
    width: 180px;
    height: 180px;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.program_ranking .rank_position {
    position: absolute;
    z-index: 2;
    margin: 0;
}

.program_ranking .rkg_itemtxt {
    padding-top: 15px;
}

.program_ranking .item {
    min-height: 0;
    margin: 0 0 8px;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.program_ranking .item a { color: #000; }
.program_ranking .priceL_prem,
.program_ranking .priceL_2column,
.program_ranking .priceL_3column { color: #000; font-size: 22px; }
.program_ranking .priceM_prem,
.program_ranking .priceM_2column,
.program_ranking .priceM_3column,
.program_ranking .priceM { color: #000; font-size: 14px; }
.program_ranking .triangle { color: var(--ranking_brown); }

.ranking_viewall {
    margin: 40px auto 0;
    text-align: center;
}

.ranking_viewall a {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

.ranking_viewall img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.ranking_section_price { background: var(--ranking_pink_bg); }
.ranking_section_person { background: var(--ranking_blue_bg); }
.ranking_section_category { background: var(--ranking_yellow_bg); }

.ranking_tabs {
    width: 640px;
    min-height: 60px;
    margin: 0 auto;
}

.ranking_tabs .tab-index1,
.ranking_tabs .tab-index2,
.ranking_tabs .tab-index3,
.ranking_tabs ul {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ranking_tabs ul {
    display: flex;
    align-items: flex-end;
    list-style: none;
}

.ranking_tabs li {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.ranking_tabs li a,
.ranking_tabs li button {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ranking_tabs img {
    display: block;
    width: auto;
    max-width: none;
    height: auto;
}

/* ランキングタブ：Figma基準のボタンと画像の表示サイズ */
#ranking_page_2026 .ranking_tabs li {
    flex: 0 0 auto;
}

#ranking_page_2026 .ranking_tabs li button {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 60px;
}

#ranking_page_2026 .ranking_tabs li button img {
    width: 100%;
    max-width: none;
}

#ranking_page_2026 .ranking_tabs li button .ranking_tab_default {
    height: 50px;
}

#ranking_page_2026 .ranking_tabs li button .ranking_tab_active {
    height: 60px;
}

/* 価格帯別：160px × 4 */
#ranking_page_2026 #recommend1 li { width: 160px; }

/* 贈る相手別：150 + 190 + 140 + 160 = 640px */
#ranking_page_2026 #recommend2 li:nth-child(1) { width: 150px; }
#ranking_page_2026 #recommend2 li:nth-child(2) { width: 190px; }
#ranking_page_2026 #recommend2 li:nth-child(3) { width: 140px; }
#ranking_page_2026 #recommend2 li:nth-child(4) { width: 160px; }

/* カテゴリ別：120 + 145 + 110 + 120 + 145 = 640px */
#ranking_page_2026 #recommend3 li:nth-child(1) { width: 120px; }
#ranking_page_2026 #recommend3 li:nth-child(2) { width: 145px; }
#ranking_page_2026 #recommend3 li:nth-child(3) { width: 110px; }
#ranking_page_2026 #recommend3 li:nth-child(4) { width: 120px; }
#ranking_page_2026 #recommend3 li:nth-child(5) { width: 145px; }

.ranking_tab_active {
    display: none !important;
}

.ranking_tabs li.active .ranking_tab_default {
    display: none !important;
}

.ranking_tabs li.active .ranking_tab_active {
    display: block !important;
}

.ranking_tab_panel {
    display: none;
    padding: 40px 30px 0;
}

.ranking_tab_panel.active {
    display: block;
}

.ranking_section_price .ranking_tab_panel { background: var(--ranking_pink_bg); }
.ranking_section_person .ranking_tab_panel { background: var(--ranking_blue_bg); }
.ranking_section_category .ranking_tab_panel { background: var(--ranking_yellow_bg); }

.category_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    align-items: flex-end;
}

.category_buttons a,
.category_buttons img {
    display: block;
    max-width: 500px;
}
.category_buttons .category_button_sale {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
}
@media screen and (min-width: 641px) {
    #ranking_page_2026 {
        width: 640px;
    }
}
