/*
 * front-page.php 用の追加スタイル
 */

:root {
	--color-gray: #262626;
}

.home a{
	color: #000;
}

.home .l-mainContent {
	max-width: 100%;
}

/* ==========================================================================
   共通: セクション見出し
   ========================================================================== */
.p-section__heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 .5rem;
}

/* 見出し + VIEW ALLボタンの行(PICK UP, BRAND FEATURE, NEWS, SHOP/EC, OWN BRAND, RANKING) */
.p-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.c-viewall-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	margin-bottom: 0.5rem;
}

.c-viewall-btn__icon {
	flex: 0 0 auto;
}

/* 汎用グリッド(SHOP/EC, OWN BRAND, PICK UP, BRAND FEATURE, NEWSで使用) */
.grid-items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

/* VIEW MORE共通ボタン(feature__side / brand-message) */
.c-viewmore-btn {
	margin-top: 2rem;
}

.c-viewmore-btn span{
	padding: 0.5rem 1rem;
    border: 1px solid #000;
	font-size: 12px;
}

/* 共通: アイキャッチ ホバーエフェクト(拡大 + opacity 0.7) */
.c-feature-card__thumb,
.c-pickup-card__thumb,
.c-news-card__thumb,
.c-brandfeature-card__thumb,
.c-feature-side-card__thumb,
.c-ranking-card__thumb,
.c-shop-card__thumb,
.p-postList__thumb.c-postThumb {
	overflow: hidden;
}

.c-feature-card__thumb img,
.c-pickup-card__thumb img,
.c-news-card__thumb img,
.c-brandfeature-card__thumb img,
.c-feature-side-card__thumb img,
.c-ranking-card__thumb img,
.c-shop-card__thumb img,
.p-postList__thumb.c-postThumb img {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.c-feature-card:hover .c-feature-card__thumb img,
.c-pickup-card:hover .c-pickup-card__thumb img,
.c-news-card:hover .c-news-card__thumb img,
.c-brandfeature-card:hover .c-brandfeature-card__thumb img,
.c-feature-side-card:hover .c-feature-side-card__thumb img,
.c-ranking-card:hover .c-ranking-card__thumb img,
.c-shop-card:hover .c-shop-card__thumb img,
.p-postList.-type-list li:hover .p-postList__thumb.c-postThumb img {
	transform: scale(1.05);
	opacity: 0.7;
}

/* ==========================================================================
   feature__main (p-feature__content)
   ========================================================================== */

/*テキスト類非表示*/
.c-feature-card__body{
	display: none;
}

.p-feature__content {
	display: flex;
	gap: 40px;
}

.l-mainContent__inner .feature__topfeature{
	margin-top: 1rem !important;
}

.home {
	overflow-x: clip;
}

.p-brandfeature {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: 3rem;
	padding: 1rem calc(50vw - 50%);
	background: var(--color-gray);
	box-sizing: border-box;
}

.feature__topfeature{
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: 3rem;
	box-sizing: border-box;
}

.feature__topfeature .c-feature-card:last-child {
	margin-bottom: 0;
}

.feature__main {
	flex: 4;
}

.feature__side {
	flex: 1;
	margin-bottom: 3rem;
}

/* TOP FEATURE */
.c-feature-card {
	position: relative;
	display: block;
	margin-bottom: 3rem;
}

.c-feature-card__thumb {
	width: 100%;
	height: auto;
	aspect-ratio: 12 / 5;
}

.c-feature-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.c-feature-card__body {
	position: absolute;
	color: #FFF;
	top: 50%;
	left: 5%;
	transform: translateY(-50%);
}

.c-feature-card__term {
	font-size: 15px;
}

.c-feature-card__title {
	font-size: 30px;
	margin: 1rem 0;
	font-weight: bold;
}

.c-feature-card__subttl {
	font-size: 19px;
	margin: 0 0 1rem 0;
}

.c-feature-card__btn {
	margin-top: 3rem;
}

.c-feature-card__btn span{
	padding: 0.5rem 1rem;
	border: 1px solid #FFF;
}

/* PICK UP */
.feature__pickup{
	margin-bottom: 3rem;
}

.c-pickup-card {
	display: block;
	border: 1px solid #EEE;
}

.c-pickup-card__thumb {
	width: 100%;
	aspect-ratio: 9 / 12;
}

.c-pickup-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-pickup-card__body {
	padding: 0.5rem;
}

.c-pickup-card__term {
	font-size: 12px;
	color: #3c702c;
}

.c-pickup-card__title {
	font-size: 17px;
	margin: 0.3rem 0;
	font-weight: bold;
}

.c-pickup-card__date {
	font-size: 11px;
	color: #666;
}

/* LATEST MAGAZINE (サイド) */
.c-feature-side-card {
	display: block;
	position:relative;
}

.c-feature-side-card__btn {
	position: absolute;
	bottom: 10%;
	left: 50%;
	transform: translatex(-50%);
	border: 1px solid #eee;
	background: #FFF;
	color: #000;
	padding: 0.5rem 1rem;
	font-size: 12px;
	width: 85%;
	text-align: center;
}


/* ==========================================================================
   BRAND FEATURE / SPONSORED CONTENT
   ========================================================================== */
.p-brandfeature {
	color: #FFF;
}

.p-brandfeature a{
	color: #FFF;
}

.p-brandfeature .c-viewmore-btn span{
	border-color: #FFF;
}

.p-brandfeature .c-brandfeature-inner{
	display: flex;
}

.p-brandfeature .c-brandfeature-inner .grid-items{
	flex: 1;
	margin-right: 2rem;
	grid-template-columns: 35% 1fr 1fr 1fr;
}

.c-brandfeature-card {
	display: block;
}

.c-brandfeature-card__thumb {
    width: 100%;
    height: 215px;
}

.c-brandfeature-card:first-child .c-brandfeature-card__thumb{
	width: 100%;
	height: 215px;
}

.c-brandfeature-card__thumb img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-message {
	width: 25%;
}

.brand-message__heading {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 1rem;
}

.brand-message p{
	font-size: 14px;
}

.c-feature-card__btn span {
    padding: 0.5rem 1rem;
    border: 1px solid #FFF;
}

/* ==========================================================================
   NEWS + SHOP/EC (横並び)
   ========================================================================== */
.p-news-shop__content {
	display: flex;
	gap: 40px;
	margin-bottom: 3rem;
}

.p-news {
	flex: 1;
	min-width: 0;
	margin-bottom: 3rem;
}

.p-news .p-news__swiper.grid-items {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	min-width: 0;
}

/* スライド幅はSwiper(JS)側で計算・設定するため、CSSでは固定幅を持たせない */
.p-news .swiper-wrapper {
	display: flex;
	width: 100%;
	min-width: 0;
}

.p-news .swiper-slide {
	flex-shrink: 0;
	min-width: 0;
	height: auto;
}

.c-news-card {
	display: block;
	border: 1px solid #EEE;
}

.p-news .swiper-button-prev,
.p-news .swiper-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 47px;
}

.p-news .swiper-button-prev::after,
.p-news .swiper-button-next::after {
	font-size: 14px;
}

.p-news .swiper-button-prev {
	left: -8px;
}

.p-news .swiper-button-next {
	right: -8px;
	padding-left: 2px;
}

.c-news-card__thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
}

.c-news-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-news-card__body {
	padding: 0.5rem;
	overflow: hidden;
}

.c-news-card__term {
	font-size: 12px;
    color: #3c702c;
}

.c-news-card__title {
	font-size: 14px;
    margin: 0.3rem 0;
    font-weight: bold;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
}

.c-news-card__date {
	font-size: 11px;
    color: #666;
}

.p-shop__ec {
	flex: 1;
}

.c-shop-card,.sse-shopify-card {
	border-radius: 0 !important;
	border: 1px solid #EEE !important;
	padding: 0.5rem !important;
}

.c-shop-card__thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
}

.c-shop-card__thumb  img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-shop-card__body {
}

.c-shop-card__title {
	font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
	margin-bottom: 5px !important;
}

.c-shop-card__price,.sse-shopify-card__price {
	font-size: 12px !important;
	font-weight: bold;
}

/* ==========================================================================
   OWN BRAND + RANKING (横並び)
   ========================================================================== */
.p-ownbrand-ranking__content {
	display: flex;
	gap: 40px;
}

.p-ownbrand {
	flex: 2;
	margin-bottom: 3rem;
}

.p-ranking {
	flex: 1;
}

.c-ownbrand-inner{
	display: flex;
}

.c-ownbrand-inner .brand-message{
	width: 30%;
	background: #000;
	color: #FFF;
	padding: 2rem 1rem;
	text-align: center;
}

.c-ownbrand-inner .brand-message .c-viewmore-btn span{
	padding: 0.5rem 1rem;
    border: 1px solid #FFF;
    font-size: 12px;
	color: #FFF;
}

.c-ownbrand-inner .grid-items{
	flex: 1;
	margin-left: 1rem;
	grid-template-columns: repeat(3, 1fr);
}

.grid-items.c-ranking-pr {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 10px;
}

.c-ranking-card {
	display: block;
}

.c-ranking-card--pr,.p-ranking .-type-list .p-postList__link{
	display: flex;
	align-items: flex-start;
	gap: 10px !important;
	justify-content: flex-start !important;
}

.c-ranking-card__thumb {
	aspect-ratio: 16 / 9;
}

.c-ranking-card--pr .c-ranking-card__thumb {
	flex: 0 0 auto;
}

.c-ranking-card--pr .c-ranking-card__thumb,.p-ranking .p-postList__thumb.c-postThumb {
	width: 100px;
	height: 80px;
}

.c-ranking-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-ranking-card--pr .c-ranking-card__body {
	flex: 1;
}

.c-ranking-card__pr {
	display: inline-block;
	background: #000;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 3px 6px;
}

.c-ranking-card__title,.p-ranking .p-postList .p-postList__title{
	font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
    margin-bottom: 5px !important;
}

.p-ranking .p-postList__body{
	flex: 1;
}

.p-ranking .p-postList.-type-list {
	counter-reset: ranking-number;
}

.p-ranking .p-postList.-type-list > li {
	position: relative;
	counter-increment: ranking-number;
	margin-bottom: 10px;
}

.p-ranking .p-postList__thumb.c-postThumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-ranking .p-postList.-type-list > li::before {
	content: counter(ranking-number);
	position: absolute;
	top: 0;
	left: 0;
	width: 15px;
	height: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	font-size: 10px;
	z-index: 10;
	line-height: 1;
}

/* ==========================================================================
   ページ下部固定バナー
   ========================================================================== */
[data-scrolled=true] .p-fixedBanner {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 100;
	padding: .5rem;
	opacity: 1;
	transition: all 0.4s;
}

[data-scrolled=false] .p-fixedBanner{
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 100;
	padding: .5rem;
	opacity: 0;
	transition: all 0.4s;
}

.p-fixedBanner__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	gap: 3rem;
	padding: 0.5rem;
	border-radius: 3px;
}

.p-fixedBanner__text {
	font-size: 19px;
	color: #FFF;
}

.p-fixedBanner__btn {
	display: inline-block;
	background: #FFF;
	color: #000;
	border-radius: 3px;
	padding: 0.5rem 1rem;
	font-size: 14px;
}

.home .l-footer__foot{
	margin-bottom: 4rem;
}

/* ==========================================================================
   スマホ表示 (650px以下)
   ========================================================================== */
@media (max-width: 650px) {
	/* 共通 */
	.grid-items {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	/* feature__main (p-feature__content) */
	.p-feature__content {
		flex-direction: column;
		gap: 24px;
	}

	/* TOP FEATURE */
	.c-feature-card__title{
		font-size: 22px;
	}
	.c-feature-card__subttl{
		font-size: 17px;
	}
	.c-feature-card__thumb{
		height: auto;
		aspect-ratio: 12 / 5;
	}
	.c-feature-card__body{
		padding-right: 1rem;
	}

	/* BRAND FEATURE / SPONSORED CONTENT */
	.p-brandfeature .p-section__head{
		display: block;
	}
	.p-brandfeature .c-viewall-btn {
		width: 40%;
	}
	.p-brandfeature .c-brandfeature-inner{
		flex-wrap: wrap;
	}
	.p-brandfeature .c-brandfeature-inner .grid-items{
		grid-template-columns: 1fr;
		flex: unset;
		margin: 0 ;
		width: 100%;
	}
	.p-brandfeature .c-viewall-btn{
		width: 100%;
		justify-content: flex-end;
	}
	.c-brandfeature-card .c-brandfeature-card__thumb{
		height: 350px !important;
	}
	.brand-message {
		width: 100%;
		margin: 1rem 0;
	}

	/* NEWS + SHOP/EC */
	.p-news-shop__content {
		flex-direction: column;
		gap: 24px;
	}
	.c-news-card__thumb{
		aspect-ratio: 4 / 6;
	}

	/* OWN BRAND + RANKING */
	.p-ownbrand-ranking__content {
		flex-direction: column;
		gap: 24px;
	}
	.c-ownbrand-inner{
		flex-wrap: wrap;
	}
	.c-ownbrand-inner .brand-message{
		width: 100%;
		margin: 0 0 1rem 0;
	}
	.c-ownbrand-inner .grid-items{
		margin: 0;
	}
	.c-ranking-card__title, .p-ranking .p-postList .p-postList__title{
		font-size: 14px;
	}

	/* ページ下部固定バナー */
	.p-fixedBanner__inner{
		gap: 15px;
	}
	[data-scrolled=true] .p-fixedBanner{
		bottom: 50px;
	}
	.p-fixedBanner__text{
		font-size: 10px;
	}
	.p-fixedBanner__btn svg{
		top: 2px;
		position: relative;
	}
}