/* ===== 全体設定 ===== */
:root {
    --blue: #004785;
    --blue-sub: #005b9f;
    --red: #4f5cff;
    --yellow: #ffe600;
    --black: #1a1a1a;
    --white: #ffffff;
    --sky-bg: #e1efe8;
}

.daiwa-sale {
    margin: 0 auto;
    overflow: hidden;
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    background: var(--white);
}

@media (min-width: 768px) {
    .daiwa-sale {
        max-width: 1500px;
    }
}

.daiwa-sale * {
    box-sizing: border-box;
}

.pc-breadcrumbs-container {
    display: none;
}
@media (min-width: 992px) {
    .pc-breadcrumbs-container {
        display: block;
        margin-top: 50px;
    }
}

/* ===== メインビジュアル ===== */
.hero-bg {
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
    background-color: var(--red);
    background-image: repeating-conic-gradient(
        from 0deg at 50% calc(100% - 340px),
        transparent 0deg 12deg,
        rgba(0, 0, 0, 0.1) 12deg 24deg
    );
}

.hero-bg::after {
    content: "";
    position: absolute;
    right: -5%;
    bottom: -1px;
    left: -5%;
    height: calc(clamp(30px, 6vw, 60px) + 5px);
    background: var(--white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 5;
}

.mv {
    position: relative;
    z-index: 2;
    -webkit-mask-image: 
        linear-gradient(black, black),
        url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L100,0 L100,10 Q75,0 50,10 T0,10 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-position: top, bottom;
    -webkit-mask-size: 100% calc(100% - clamp(15px, 3vw, 30px) + 2px), clamp(40px, 8vw, 80px) clamp(15px, 3vw, 30px);
    -webkit-mask-repeat: no-repeat, repeat-x;
}

/* サイト全体の.containerのpaddingとmax-widthを上書き */
.daiwa-sale .mv .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 1500px;
}

.mv img {
    display: block;
    width: 100%;
    height: auto;
}

.cover-image {
    display: block;
    width: 100%;
}

/* ===== 太陽の集中線背景（最大割引率＆目次エリア） ===== */
.sunburst-bg {
    position: relative;
    padding-top: 24px;
    margin-top: clamp(-15px, -3vw, -30px);
    z-index: 1;
}

/* ===== 浮遊する商品画像 ===== */
.floating-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-item {
    position: absolute;
    height: auto;
    filter: drop-shadow(4px 4px 6px rgba(0,0,0,0.4));
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(4deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-4deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-m30 {
    0% { transform: translateY(0px) rotate(-30deg); }
    50% { transform: translateY(-12px) rotate(-26deg); }
    100% { transform: translateY(0px) rotate(-30deg); }
}

@keyframes float-p30 {
    0% { transform: translateY(0px) rotate(30deg); }
    50% { transform: translateY(-12px) rotate(34deg); }
    100% { transform: translateY(0px) rotate(30deg); }
}

/* 各画像の位置とアニメーション調整 */
.float-1 { top: 5%; left: 3%; width: clamp(90px, 18vw, 180px); animation: float-m30 4s ease-in-out infinite; } 
.float-2 { top: 8%; right: 5%; width: clamp(80px, 18vw, 180px); animation: float-reverse 5s ease-in-out infinite; } 
.float-3 { top: 6%; right: 15%; width: clamp(70px, 16vw, 160px); animation: float-reverse 4.5s ease-in-out infinite; } 
.float-4 { top: 40%; right: 1%; width: clamp(100px, 18vw, 180px); animation: float-p30 5.5s ease-in-out infinite; } 
.float-5 { bottom: 5%; left: 5%; width: clamp(50px, 12vw, 110px); animation: float 4.2s ease-in-out infinite; } 
.float-6 { bottom: 5%; right: 5%; width: clamp(60px, 13vw, 130px); animation: float-reverse 4.8s ease-in-out infinite; } 
.float-7 { top: 18%; left: 15%; width: clamp(45px, 10vw, 100px); animation: float-p30 3.8s ease-in-out infinite; } 
.float-8 { top: calc(45% - 5px); left: 2%; width: clamp(40px, 10vw, 100px); animation: float 5.2s ease-in-out infinite; } 

/* PC時の位置調整 */
@media (min-width: 768px) {
    .float-3 { right: 20%; }
    .float-5 { left: 12%; }
    .float-7 { top: 8%; left: 20%; }
    .float-8 { top: 52%; }
}

/* スマホ時の位置調整・ライン被り防止など */
@media screen and (max-width: 767px) {
    .float-3 { top: 18%; }
    .float-5 { bottom: 22%; }
    .float-6 { bottom: 22%; }
    .float-7 { top: 10%; }
}

/* ===== 現在の最大割引率 ===== */
.max-off {
    position: relative;
    padding: 0 20px 10px;
    text-align: center;
    z-index: 2;
}

.max-off-label {
    display: inline-block;
    padding: 10px 40px;
    color: var(--white);
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 800;
    background: var(--black);
    border: 4px solid var(--black);
    border-radius: 99px;
}

.max-off-body {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-top: 10px;
    color: var(--white);
    font-weight: 900;
    line-height: 1;
}

.max-off-up {
    margin-right: 8px;
    font-size: clamp(48px, 12vw, 76px);
    color: var(--white);
}

.max-off-num {
    margin-right: 12px;
    color: var(--white);
    font-size: clamp(140px, 38vw, 280px);
    letter-spacing: -.04em;
}

.max-off-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: clamp(60px, 18vw, 130px);
    color: var(--white);
}

.max-off-unit small {
    font-size: 0.8em;
    font-weight: 800;
}

.max-off-note {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    color: var(--white);
    font-size: 11px;
    text-align: center;
}

.page-nav {
    position: relative;
    z-index: 2;
    padding: 24px 16px 40px;
}

.page-nav-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-nav-list li {
    flex: 1;
    max-width: 360px;
}

.page-nav-list a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 12px;
    color: var(--red);
    font-size: clamp(16px, 4.5vw, 24px);
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    background: var(--white);
    border: 4px solid var(--black);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--black);
    transition: transform 0.1s, box-shadow 0.1s;
}

.page-nav-list a::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    margin-left: 12px;
    border-right: 4px solid var(--red);
    border-bottom: 4px solid var(--red);
    transform: rotate(45deg);
}

.page-nav-list li:nth-child(2) a {
    color: var(--blue);
}

.page-nav-list li:nth-child(2) a::after {
    border-right: 4px solid var(--blue);
    border-bottom: 4px solid var(--blue);
}

.page-nav-list a:hover {
    box-shadow: 3px 3px 0 var(--black);
    transform: translateY(3px);
}

#rank-discount,
#rank-popular {
    scroll-margin-top: 60px;
}

/* ===== ランキング ===== */
.section {
    padding: 40px 16px 8px;
}

@media (min-width: 768px) {
    .section {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr;
        align-items: end;
    }
    .section-title {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .more-link-wrap {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        padding-bottom: 4px;
        margin-top: 0;
    }
    .ranking-slot {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
}

.section-title {
    margin-bottom: 0;
    font-size: clamp(22px, 5.6vw, 34px);
    font-weight: 900;
    line-height: 1.4;
    text-align: left;
}

h2.section-title {
    display: flex;
    align-items: center;
}

.more-link-wrap {
    text-align: right;
    margin-top: 16px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    color: #777;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.more-link::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-top: 2px solid #777;
    border-right: 2px solid #777;
    transition: border-color 0.2s;
    transform: rotate(45deg);
}

.more-link:hover {
    color: var(--blue);
}

.more-link:hover::after {
    border-color: var(--blue);
}

.ranking-slot {
    min-height: 280px;
    margin-top: 20px;
    padding: 20px 0 0;
    border-radius: 20px;
}

.products-grid .product-item.large.category1 {
    position: relative;
}

.products-grid .rank-no,
.products-listview .rank-no {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    min-width: 40px;
    height: 40px;
    font-size: 22px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    border-radius: 0 0 8px 0;
    pointer-events: none;
}

.section--discount {
    margin-top: -2px;
    position: relative; 
    z-index: 10;
    background: var(--white);
}

.section--discount .rank-no {
    color: var(--white);
    background: var(--red);
}

.section--popular .rank-no {
    color: var(--white);
    background: var(--blue);
}

.divider-lg {
    height: 60px;
}

/* ===== 目次用アイコン ===== */

.page-nav-list li a::before,
h2#rank-discount::before,
h2#rank-popular::before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.4em;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.page-nav-list li a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.page-nav-list li:nth-child(1) a::before,
h2#rank-discount::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 7.5l4 4.5L16 7.5'/%3E%3Cpath d='M12 12v5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 15.5h6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 7.5l4 4.5L16 7.5'/%3E%3Cpath d='M12 12v5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 15.5h6'/%3E%3C/svg%3E");
}

.page-nav-list li:nth-child(2) a::before,
h2#rank-popular::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='2 4 5 19 19 19 22 4 17 9 12 4 7 9 2 4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='2 4 5 19 19 19 22 4 17 9 12 4 7 9 2 4'/%3E%3C/svg%3E");
}

/* ===== ボタン ===== */
.cta {
    padding: 0 8px 60px;
    text-align: center;
}

.cta-lead {
    margin: 0 0 12px;
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 700;
}

.cta-text-sp {
    display: none;
}

.cta-btn {
    display: block;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    text-decoration: none;
    background: var(--red);
    border-radius: 24px;
    box-shadow: 0 12px 0 var(--black);
    transition: transform .12s, box-shadow .12s;
    overflow: hidden;
}

.cta-btn img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cta-btn:hover {
    box-shadow: 0 6px 0 var(--black);
    transform: translateY(6px);
}

.cta-btn:active {
    box-shadow: 0 0 0 var(--black);
    transform: translateY(12px);
}

.cta-btn:focus-visible {
    outline: 4px solid var(--blue);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .cta-btn {
        transition: none;
    }
}

.recommend-title {
    border-top: 1px solid #e8e8e8;
    padding: 1em;
    margin: 3em 1em 0;
    font-weight: bold;
    font-size: 18px;
}

/* ====================================================
    ↓検索ページのcssから表示に必要なものを移植
==================================================== */

.daiwa-sale .product-variant-5 .product-item.large .product-item-name span {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
}

.daiwa-sale .product-variant-5 .product-item.large .product-item-name span:first-child {
    color: #666;
    font-size: 10px;
    -webkit-line-clamp: 1;
}

.daiwa-sale .product-variant-5 .product-item.large .product-item-name span:last-child {
    color: #333745;
    font-size: 15px;
    -webkit-line-clamp: 2;
}

.daiwa-sale .product-item.large.category1 .price-box .price.highlights {
    color: #e30000;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.1;
}

.daiwa-sale .product-item.large.category1 .price-box .list-price {
    color: #8f8f8f;
    font-size: 16px;
    text-decoration: line-through;
}

.daiwa-sale .product-item.large.category1 .highlights {
    color: #f82e56;
    font-weight: bold;
}

.daiwa-sale .product-item.large .product-item-photo {
    position: relative;
}

.daiwa-sale .product-variant-5 .product-item .product-item-photo .photo-cover-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.product-labels > span {
    padding: 4px 6px 2px;
    font-size: 15px;
    font-weight: bold;
}
.container-flex {
    display: flex;
    flex-wrap: wrap;
}

.container-flex.flex-center {
    -webkit-justify-content: center;
    justify-content: center;
}

.container-flex.pc250-sp2 .flex-item {
    -ms-flex-basis: 230px;
    -webkit-flex-basis: 230px;
    flex-basis: 230px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}

.pc250-sp2 img {
    width: 100%;
    height: auto;
    display: block;
}

.container-flex.pc250-sp2 a:hover img {
    opacity: 0.8;
}

@media screen and (max-width: 480px) {
    .container-flex.pc250-sp2 .flex-item {
        -ms-flex-basis: calc(50% - 10px);
        -webkit-flex-basis: calc(50% - 10px);
        flex-basis: calc(50% - 10px);
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 10px;
    }
}

/* ====================================================
    スマホ専用表示（991px以下）
==================================================== */

@media screen and (max-width: 991px) {

    .hero-bg {
        background-image: repeating-conic-gradient(
            from 0deg at 50% calc(100% - 310px)
        );
    }
    
    .daiwa-sale .product-item.large .product-item-info {
        position: relative;
    }

    .daiwa-sale .product-item.large .product-item-info .product-item-photo {
        display: table-cell;
        width: 50%;
        padding: 8px 4px;
        vertical-align: middle;
    }

    .daiwa-sale .product-item.large .product-item-info .product-item-details {
        display: table-cell;
        width: 85%;
        padding: 6px 27px 6px 8px;
        text-align: left;
        vertical-align: middle;
        line-height: 1.25;
    }

    .daiwa-sale .product-variant-5 .product-item.large .product-item-name {
        margin: 0 0 2px;
        line-height: 1.3;
    }

    .daiwa-sale .product-variant-5 .product-item.large .price-box {
        margin: 2px 0;
        text-align: left;
        line-height: 1.1;
    }

    .daiwa-sale .product-item.large.category1 .price-box .list-price {
        display: block;
        margin-left: 2px;
    }

    .daiwa-sale .supplemental {
        margin: 2px 0;
        font-size: 12px;
        line-height: 1.25;
    }

    .daiwa-sale .supplemental span {
        display: block;
    }

    .daiwa-sale .products-grid.product-variant-5 .product-item.large .product-item-rating {
        margin: 2px 0;
        text-align: left;
        line-height: 13px;
    }

    .daiwa-sale .other-size-color {
        margin-top: 3px;
        margin-bottom: 0;
        color: #888;
        font-size: 12px;
        text-align: left;
        line-height: 1.2;
    }

    .daiwa-sale .product-item.large .add-to-cart {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 6px;
        bottom: 6px;
        width: 6em;
        height: 3.5em;
        margin: 0;
        padding: 0;
        background-color: #ff6600;
        border: 1px solid #ff6600;
        border-radius: 6px;
        box-shadow: none;
    }

    .daiwa-sale .product-item.large .add-to-cart i.icon {
        bottom: 0;
        margin: 0 auto;
        color: #fff;
        font-size: 24px;
        line-height: 1;
    }

    .daiwa-sale .product-item.large .add-to-cart span.visible-xs,
    .daiwa-sale .product-item.large .add-to-cart span.visible-sm {
        display: block;
        bottom: 0;
        margin-top: 3px;
        color: #fff;
        font-size: 14px;
        text-align: center;
        line-height: 1;
        white-space: nowrap;
    }

    .max-off-up {
        margin-right: 0;
    }

    .max-off-body {
        align-items: center;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    .max-off-unit {
        flex-direction: column;
        align-items: center;
        gap: 0;
        line-height: 0.9;
        transform: translateY(10px);
    }

    .max-off-unit small {
        font-size: 0.45em;
        margin-top: 4px;
    }
    
    .max-off-note {
        font-size: 9px;
        text-shadow: 0 0 4px rgb(0 0 0);
    }

    .page-nav {
        padding: 10px 0 0;
        width: 90%;
        margin: 0 auto 10px;
    }

    .page-nav-list a {
        padding: 12px 6px;
    }

    .page-nav-list a::after {
        margin-left: 4px;
    }

    .page-nav-list li a::before {
        margin-right: 0.1em;
    }

    .cta-text-pc {
        display: none;
    }

    .cta-text-sp {
        display: inline-block;
        margin-top: 1em;
    }

    .cta-btn {
        padding: 0;
        background: none;
        border-radius: 5px;
        box-shadow: none;
        transition: none;
    }

    .cta-btn:hover,
    .cta-btn:active {
        box-shadow: none;
        transform: none;
    }

    .cta-btn img {
        border-radius: 5px;
    }

    .recommend-title {
        margin: 0;
        font-size: 14px;
    }
}