﻿/* ---- BASE ---- */
.block-category-list--header-freespace {
    margin: 0;
}
.block-goodslist-item--price-items {
    display: none;
}
#goodsdetail_itemhistory {
    display: none;
}

/* ---- パンくず ---- */
[data-browse-mode="P"] .block-topic-path {
    display: block;
}
[data-browse-mode="S"] .block-topic-path {
    display: block;
    max-width: 100%;
    margin: 1.1rem 0 .8rem;
    padding: 0 2rem;
    ul li + li:before {
        margin-left: .5rem;
        margin-right: 1rem;
    }
    ul a {
        font-size: 1rem;
        font-weight: 300;
        line-height: 1;
        color: var(--gray1);
    }
    ul li.block-topic-path--item__current a {
        color: var(--black2);
        font-weight: bold;
    }
}

/* ---- Main Visual ---- */
[data-browse-mode="P"] .mv {
    width: 100%;
    .mv-slide-viewport {
        overflow: hidden;
    }
    .mv-slide-container {
        display: flex;
    }
    .mv-slide-i {
        flex: 0 0 100%;
        & + .mv-slide-i {
            display: none;
        }
    }
    .mv-slide.-is-initialized .mv-slide-i + .mv-slide-i {
        display: block;
    }
	/* slide navigation */
	.mv-slide-nav {
		display: flex;
		justify-content: center;
		align-items: center;
		column-gap: 32px;
		margin-top: 20px;
	}
	.mv-slide-nav button {
		cursor: pointer;
	}
	/* prev / next */
	.mv-slide-prev,
	.mv-slide-next {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 14px;
		height: 14px;
		background: none;
		border: none;
		padding: 0;
		position: relative;
	}
	.mv-slide-prev::before,
	.mv-slide-next::before {
		display: block;
		content: "";
		width: 10px;
		height: 10px;
		border-top: 2px solid var(--black2);
		border-left: 2px solid var(--black2);
	}
	.mv-slide-prev::before {rotate: -45deg;}
	.mv-slide-next::before {rotate: 135deg;}
	/* dots */
	.mv-slide-dots {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.embla__dot {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 18px;
		height: 18px;
		border: none;
		padding: 0;
		background: none;
		padding: 6px;
	}
	.embla__dot::before {
		display: block;
		content: "";
		width: 6px;
		height: 6px;
		background-color: var(--gray4);
	}
	.embla__dot.embla__dot--selected::before {
		background-color: var(--green1);
	}
	/* スライドが一枚 */
	.mv-slide:not(:has(.mv-slide-i:nth-child(2))) {
		.mv-slide-nav {display: none;}
		.mv-slide-i:not(.is-snapped) img {transform: scale(1);}
	}
}
[data-browse-mode="S"] .mv {
    overflow: hidden;
    .mv-slide-container {
        display: flex;
    }
    .mv-slide-i {
        flex: 0 0 100%;
        & + .mv-slide-i {
            display: none;
        }
    }
    .mv-slide.-is-initialized .mv-slide-i + .mv-slide-i {
        display: block;
    }
    .mv-slide-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 1.8rem;
        margin-top: 1.8rem;
        padding-bottom: .2rem;
    }
    .mv-slide-prev,
    .mv-slide-next {
        display: block;
        width: 1rem;
        height: 1rem;
        border: none;
        border-top: 1px solid var(--black1);
        border-left: 1px solid var(--black1);
        background: none;
        padding: 0;
    }
    .mv-slide-prev {rotate: -45deg;}
    .mv-slide-next {rotate: 135deg;}
    .mv-slide-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        column-gap: 1.2rem;
    }
    .mv-slide-dots button {
        display: block;
        width: .6rem;
        height: .6rem;
        background: var(--gray4);
        border: none;
        padding: 0;
    }
    .mv-slide-dots button.embla__dot--selected {
        background: var(--green1);
    }
    /* スライドが一枚 */
    .mv-slide:not(:has(.mv-slide-i:nth-child(2))) {
        .mv-slide-nav {display: none;}
    }
}

/* ---- Lead ---- */
[data-browse-mode="P"] .lead {
    margin-top: 56px;
    .lead-title {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: auto;
        margin: 0 auto;
    }
    .lead-title img {
        display: block;
        width: 100%;
        height: auto;
    }
    .lead-text {
        font-size: 18px;
        text-align: center;
        line-height: 2.22;
        margin-top: 10px;
    }
}
[data-browse-mode="S"]  .lead {
    margin-top: 4.8rem;
    .lead-title {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 6.4rem;
        height: auto;
        margin: 0 auto;
        padding: 0;
    }
    .lead-title img {
        display: block;
        width: 100%;
        height: auto;
    }
    .lead-text {
        font-size: 1.4rem;
        text-align: center;
        line-height: 2;
        letter-spacing: .075em;
        margin-top: 1rem;
        padding: 0 2rem;
    }
}

/* ---- 特集 ---- */
[data-browse-mode="P"] .feature {
    margin-top: 72px;
    &:has(.feature-list-wrapper:empty) {display: none;}
    .feature-list-wrapper {
        padding: 0 32px;
    }
	.feature-list {
		display: flex;
		flex-wrap: wrap;
        justify-content: center;
		column-gap: 24px;
		row-gap: 44px;
		margin-top: 48px;
	}
	.feature-list-i {
		width: calc((100% - (24px * 3)) / 4);
	}
	.feature-list-i a {
		display: block;
	}
	.feature-list-img {
		display: block;
		width: 100%;
		aspect-ratio: 1/1;
	}
	.feature-list-img img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center center;
	}
	.feature-list-date {
		font-size: 14px;
		font-weight: 500;
		color: var(--gray1);
		line-height: 1.42;
		margin-top: 8px;
	}
	.feature-list-title {
		font-size: 14px;
		font-weight: bold;
		line-height: 1.42;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
	.feature-list-more {
		display: flex;
		justify-content: flex-end;
		margin-top: 24px;
	}
	.feature-list-more a {
		display: block;
		width: fit-content;
		font-size: 14px;
		font-weight: 500;
		color: var(--green1);
		line-height: 1.42;
		padding-right: 12px;
		background: url(../../img/usr/common/icon_arrow_right_green.png) no-repeat center right / 4px auto;
	}
}
[data-browse-mode="S"] .feature {
    margin-top: 3.2rem;
    &:has(.feature-list-wrapper:empty) {display: none;}
	.feature-list {
		display: flex;
		flex-wrap: wrap;
        justify-content: flex-start;
		column-gap: 1.7rem;
		row-gap: 2.4rem;
		margin-top: 3.2rem;
        padding: 0 2rem;
	}
	.feature-list-i {
		width: calc((100% - 1.7rem) / 2);
	}
	.feature-list-i a {
		display: block;
	}
	.feature-list-img {
		display: block;
		width: 100%;
		aspect-ratio: 1/1;
	}
	.feature-list-img img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center center;
	}
	.feature-list-date {
		font-size: 1.2rem;
		font-weight: 500;
		color: var(--gray1);
		line-height: 1.42;
		margin-top: .8rem;
	}
	.feature-list-title {
		font-size: 1.4rem;
		font-weight: bold;
		line-height: 1.42;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}
	.feature-list-more {
		display: flex;
		justify-content: flex-end;
		margin-top: 24px;
        padding-right: 2rem;
	}
	.feature-list-more a {
		display: block;
		width: fit-content;
		font-size: 1.4rem;
		font-weight: 500;
		color: var(--green1);
		line-height: 1.42;
		padding-right: 1.2rem;
		background: url(../../img/usr/common/icon_arrow_right_green.png) no-repeat center right / .4rem auto;
	}
}

/* ---- カテゴリから探す ---- */
[data-browse-mode="P"] .category {
    background-color: var(--gray3);
    margin-top: 48px;
    padding: 72px 0 80px;
    position: relative;
    &::before {
        display: block;
        content: "";
        width: 100vw;
        height: 100%;
        background-color: var(--gray3);
        position: absolute;
        top: 0;
        left: calc(50% - 50vw);
        z-index: 0;
    }
    > * {
        position: relative;
    }
    .common-title1 {
        margin-top: 0;
    }
    .category-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 34px;
        row-gap: 40px;
        margin: 0 auto;
        padding: 0 32px;
        /* 1段目の両端に余白を付けて折り返し位置を制御(アイテム幅は5列時のまま固定) */
        /* (100% + 34px) / 5 = アイテム1つ分の幅 + gap */
        /* list-itemが6つの時：3つ×2段 */
        &:has(> .category-list-i:nth-child(6):last-child) {
            > .category-list-i:nth-child(1) {
                margin-left: calc((100% + 34px) / 5 * 0.75);
            }
            > .category-list-i:nth-child(3) {
                margin-right: calc((100% + 34px) / 5 * 0.75);
            }
        }
        /* list-itemが7つの時：上4つ・下3つ */
        /* list-itemが8つの時：4つ×2段 */
        &:has(> .category-list-i:nth-child(7):last-child),
        &:has(> .category-list-i:nth-child(8):last-child) {
            > .category-list-i:nth-child(1) {
                margin-left: calc((100% + 34px) / 5 * 0.25);
            }
            > .category-list-i:nth-child(4) {
                margin-right: calc((100% + 34px) / 5 * 0.25);
            }
        }
        /* list-itemが9つ・10の時は5列で自然に折り返すため指定不要 */
    }
    .category-list-i {
        width: calc((100% - (34px * 4)) / 5);
    }
    .category-list-i a {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 16px;
        width: 100%;
    }
    .category-list-img {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .category-list-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    .category-list-text {
        font-size: 14px;
        line-height: 1.42;
    }
}
[data-browse-mode="S"] .category {
    background-color: var(--gray3);
    margin-top: 3.2rem;
    padding: 4.8rem 2rem 4rem;
    background-color: var(--gray3);
    .common-title1 {
        margin-top: 0;
    }
    .category-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        column-gap: 1.6rem;
        row-gap: 2.4rem;
        margin: 0 auto;
        padding: 0;
    }
    .category-list-i {
        width: calc((100% - (1.9rem * 2)) / 3);
    }
    .category-list-i a {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 1.6rem;
        width: 100%;
    }
    .category-list-img {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .category-list-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    .category-list-text {
        font-size: 1.4rem;
        line-height: 1.42;
        white-space: nowrap;
    }
}

/* ---- 近くのお店を探す ---- */
[data-browse-mode="P"] .search-store {
    margin-top: 48px;
    a {
        display: block;
    }
    img {
        display: block;
        width: 100%;
        height: auto;
    }
}
[data-browse-mode="S"] .search-store {
    margin-top: 3.2rem;
    padding: 0 2rem;
    a {
        display: block;
    }
    img {
        display: block;
        width: 100%;
        height: auto;
    }
}

/* ---- sns ---- */
[data-browse-mode="P"] .brand-sns {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 32px;
    margin-top: 24px;
    .brand-sns-i {
        width: fit-content;
    }
    .brand-sns-i a {
        display: flex;
        align-items: center;
        column-gap: 8px;
        width: fit-content;
    }
    .brand-sns-i-img {
        width: 24px;
        height: 24px;
    }
    .brand-sns-i-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    .brand-sns-i-text {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.42;
    }
}
[data-browse-mode="S"] .brand-sns {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 2.4rem;
    margin-top: 2.4rem;
    .brand-sns-i {
        width: fit-content;
    }
    .brand-sns-i a {
        display: flex;
        align-items: center;
        column-gap: .8rem;
        width: fit-content;
    }
    .brand-sns-i-img {
        width: 2.4rem;
        height: 2.4rem;
    }
    .brand-sns-i-img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    .brand-sns-i-text {
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 1.42;
    }
}

/* ---- トピック ---- */
.block-category-list--topic {
    padding: 0;
}

/* ---- イベント ---- */
[data-browse-mode="P"] .block-category-list--event {
    position: relative;
    padding-bottom: 48px;
    margin: 80px 0 0;
    &::after {
        display: block;
        content: "";
        width: 100vw;
        height: 1px;
        background-color: var(--gray2);
        position: absolute;
        bottom: 0;
        left: calc(50% - 50vw);
    }
    .common-title1 {
        position: relative;
        margin-top: 48px;
        padding-top: 72px;
    }
    .common-title1::before {
        display: block;
        content: "";
        width: 100vw;
        height: 1px;
        background-color: var(--gray2);
        position: absolute;
        top: 0;
        left: calc(50% - 50vw);
    }
	.event-link-more {
		display: flex;
		justify-content: flex-end;
		margin: 24px 0 0;
		padding-right: 32px;
	}
	.event-link-more a {
		display: block;
		width: fit-content;
		font-size: 14px;
		font-weight: 500;
		color: var(--green1);
		line-height: 1.42;
		padding-right: 12px;
		background: url(../../img/usr/common/icon_arrow_right_green.png) no-repeat center right / 4px auto;
	}
}
[data-browse-mode="S"] .block-category-list--event {
    position: relative;
    padding-bottom: 3.2rem;
    margin: 5.6rem 0 0;
    &::after {
        display: block;
        content: "";
        width: 100vw;
        height: 1px;
        background-color: var(--gray2);
        position: absolute;
        bottom: 0;
        left: calc(50% - 50vw);
    }
    .common-title1 {
        position: relative;
        margin-top: 5.6rem;
        padding-top: 4.8rem;
    }
    .common-title1::before {
        display: block;
        content: "";
        width: 100vw;
        height: 1px;
        background-color: var(--gray2);
        position: absolute;
        top: 0;
        left: calc(50% - 50vw);
    }
	.event-link-more {
		display: flex;
		justify-content: flex-end;
		margin: 2.4rem 0 0;
		padding-right: 2rem;
	}
	.event-link-more a {
		display: block;
		width: fit-content;
		font-size: 1.4rem;
		font-weight: 500;
		color: var(--green1);
		line-height: 1.42;
		padding-right: 1.2rem;
		background: url(../../img/usr/common/icon_arrow_right_green.png) no-repeat center right / .4rem auto;
	}
}