/* ===============================
   共通設定
=============================== */

body, html {
    margin: 0;
    padding: 0;
	font-family: 'Zen Kaku Gothic New', sans-serif;
	background-color:#f1f3fb;
	color:#171919;
	letter-spacing:0.04em;
}
a {
	text-decoration: none;
}



/****** 共通設定(トップページ) ******/

/* サブタイトル */
.subtitle{
	font-size:20px;
	font-weight:600;
	border-bottom:solid	#171919 1px;
	padding-bottom:14px;
	margin-bottom:14px;
	width:100%;
}

/****** ログインボタン(トップページ) ******/

/* 「続きを読む」ボタン */
.loginbox {
	position: relative;
	overflow: hidden;
	width: 100%;
	display: block;
}

.loginbox img {
	width: 100%;
	transition: opacity 0.5s ease-in-out;
	margin-bottom:40px;
}

/* デフォルトの画像を表示 */
.loginbox img:first-child {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

/* 2枚目の画像を非表示 */
.loginbox img:last-child {
    opacity: 0;
}

.loginbox:hover img:first-child {
    opacity: 0;
}

.loginbox:hover img:last-child {
    opacity: 1;
}


/****** メインメニュー(ヘッダー画像) ******/

.button-overlay {
  position: absolute;
  left: 8%;
  bottom: 5%;
  transform: translateX(-50%);
  text-align: center;
}

/* ボタン内のテキスト */
.read-more_top {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  text-decoration: none;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.4s ease, color 0.4s ease;
}

/* 「+」アイコン */
.read-more_top .plus-icon_top {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* 画像 */
.box_pc img {
  transition: opacity 0.4s ease;
}

/* ===== ホバー時の動きまとめ ===== */

/* ホバー時：box_pc内の画像を半透明に */
.button-overlay:hover .box_pc img {
  opacity: 0.5;
}

/* ホバー時：テキストも半透明に */
.button-overlay:hover .read-more_top {
  opacity: 0.5;
}

/* ＋アイコンはなめらかに右へスライド＋半透明 */
.button-overlay:hover .plus-icon_top {
  transform: translateX(6px);
  opacity: 0.5;
}/* 「続きを読む」ボタン */
.box_pc {
	position: relative;
	overflow: hidden;
	width: 140px;
}

.box_pc img {
	width: 100%;
	height: auto;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
	border-radius:0px;
}


.po_pc {
	color:#fff;
	position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%); /* 中央に配置 */
}

/****** メインメニュー(トップページ) ******/

.menu {
	margin-bottom: 60px;
}

.menu ul {
    list-style: none; /* デフォルトのリストスタイルを削除 */
    padding-left: 0;
}

.menu li {
    margin-bottom: 10px;
}

/* リストのリンクをブロック要素にする */
.menu .menuli a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* 下線を消す */
	font-size:14px;
	font-weight:500;
    color: #171919; /* 通常時のテキスト色 */
    padding: 0px;
    transition: background 0.3s, color 0.3s;
}

/* 角丸の四角アイコン */
.menu .menuli a::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #171919;
    display: inline-block;
    border-radius: 2px; /* 角丸四角 */
}

/* ホバー時のデザイン変更 */
.menu .menuli a:hover {
    color: #84868A; /* テキスト色 */
}

.menu .menuli a:hover::before {
    background-color: #84868A; /* ホバー時の角丸四角の色変更 */
}


/****** パンくずの位置調整 ******/
.breadcrumb-home {
    margin-top: 20px; /* トップページ用 */
    height: 80px;
}

.breadcrumb-other {
    margin-top: 100px; /* トップページ以外は下にずらす */
    height: 80px;
}



/****** 人気商品ランキング(トップページ) ******/

.rank-container{
	position: relative;
	width:100%;
	margin-bottom:20px;
}

.rankimage-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 青いグラデーションオーバーレイ（画像のみに適用） */
.rankimage-wrapper {
    position: relative; /* 親要素を基準に疑似要素を配置 */
    overflow: hidden; /* グラデーションがはみ出さないようにする */
}

.rankimage-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(84, 101, 255, 0.0), rgba(84, 101, 255, 0.0), rgba(84, 101, 255, 0.4));
    opacity: 0; /* 初期状態では透明 */
    transition: opacity 0.3s ease-in-out;
    display: block; /* 必須（デフォルトでは inline 扱いのため） */
    border-radius: 5px; /* 画像の角丸と揃える */
}

/* ホバー時にグラデーションを表示 */
.rankimage-wrapper:hover::after {
    opacity: 1;
}





/****** ブログ人気ランキング(トップページ) ******/

.flex-link {
    display: flex;  /* `a` をフレックスコンテナにする */
    align-items: center;  /* 縦方向の中央揃え */
    gap: 10px;  /* 要素間の隙間 */
    text-decoration: none; /* リンクの下線を消す（任意） */
margin-bottom:10px;

}

.rankbox{
	width:45px;
	padding: 5px 0px;
	background-color:#171919;
	color:#fff;
	font-weight:200;
	font-size:12px;
	font-family: 'Zen Dots', sans-serif;
	text-align:center;
	border-radius: 3px; 
	white-space: nowrap; /* 長いタイトルが折り返されないように */
}

.ranktitle{
	font-weight:600;
	font-size:14px;
	color: #171919;
}

.flex-link:hover .rankbox{
    background-color: #84868A;  /* rankbox の背景色をグレーに */
}
.flex-link:hover .ranktitle {
    color: #84868A;  /* 文字色を濃いグレーに */
}

/****** Pick up Youtube(トップページ) ******/

/* 横並びレイアウト */
.youtubebox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ▼ 正方形の枠をつくる */
.youtubeinbox {
    position: relative;
    width: calc(33.333% - 7px); /* PC：3列 */
    overflow: hidden;
    border-radius: 5px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #171919;
}

/* 正方形を維持する仕組み（最強の安定版） */
.youtubebox > .youtubeinbox .youtubebox > .youtubeinbox::before {
    content: "";
    display: block;
    padding-top: 100%; /* 高さ = 幅の100% → 正方形化 */
}

/* 画像を正方形枠にフィット */
.youtubeinbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: opacity 0.3s ease-in-out;
}

/* YouTube iframe とラッパー（既存機能そのまま） */
.youtube-image-wrapper {
    position: relative;
    width: 100%;
}

.youtube-image-wrapper:hover iframe {
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out;
}

/* ホバー時の色変化 */
.youtubeinbox:hover {
    color: #84868A;
}

.youtubeinbox img:hover {
    opacity: 0.6;
}


/* ラベル部分（既存） */
.youtubelabel {
    width: 96%;
    padding: 5px 0px 5px 4%;
    background-color: #171919;
    border-radius: 3px;
    color: #fff;
    margin: 20px 0px 10px 0px;
}

/****** ブログ記事(トップページ) ******/

/* ブログ範囲 */
.article-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}


/* ブログ日付 */
.article-date {
    font-size: 12px;
    color: #9FA5BD;
    transition: color 0.3s ease-in-out;
}

/* 画像のコンテナ */
.article-image-wrapper {
    position: relative;
    overflow: hidden;
	border-radius:10px;
}

/* 画像 */
.article-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
	border-radius:10px;
}

/* 青いグラデーションオーバーレイ（画像のみに適用） */
.article-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom , rgba(84, 101, 255, 0.0), rgba(84, 101, 255, 0.4), rgba(84, 101, 255, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;

}


/* 「続きを読む」ボタン */
.box {
	position: relative;
	overflow: hidden;
	width: 110px;
}

.box img {
	width: 100%;
	height: auto;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
	border-radius:0px;
}

/* デフォルトの画像を表示 */
.box img:first-child {
    opacity: 1;
}

/* 2枚目の画像を非表示 */
.box img:last-child {
	position:absolute;
	top: 0;
	transition: 0.5s;
    opacity: 0;
}

.button{
	 position: relative;
}

/* 枠と文字の重ね */
.po {
	position: absolute;
	top:45%;
	left: 55px;
	-ms-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
	-webkit-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
	transform: translate(-50%,-50%);/*センター寄せの修正*/
}

.read-more {
	display: inline-flex;
	align-items: center;
	font-weight: bold;
	text-decoration: none;
	font-size:12px;
	font-weight:400;
	color:#171919;
	transition: color 0.3s ease-in-out;
}

/* 「+」アイコン */
.read-more .plus-icon {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
}

/* 日付の色だけ変更 */
.article-card:hover .article-date {
    color: #dfe1e6;
}

.article-card:hover .read-more {
    color: #84868A;
}

.article-card:hover .plus-icon {
    transform: translateX(5px);
}

/* タグの処理 */

.image-container {
    position: relative;
    width: 100%;
}

.tags-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #5465FF;  /* タグの背景色 */
    color: #fff;  /* 文字色 */
    padding: 8px 12px;
    border-radius: 5px; /* 角を丸く */
    font-size: 12px;
	font-weight:500;
    white-space: nowrap; /* テキストを折り返さない */
}


/* ホバー時の動作 */
.article-card:hover .box img:first-child {
  opacity: 0;
}

.article-card:hover .box img:last-child {
    opacity: 1;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.03);
}

.article-card:hover .article-image-wrapper::after {
    opacity: 1;
}

.article-card:hover .article-content {
    color: #84868A;
}

.article-card:hover .tag {
    opacity: 0.7;
}


/* 親は高さを持つように、背景画像はフロー内にする */
.box2 {
  position: relative;
  width: 40px;     /* 背景画像に合わせて調整 */
  overflow: hidden;
}

/* 通常背景画像 */
.box2 .bg-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
  position: relative;
}

/* ホバー背景画像 */
.box2 .bg-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

/* 矢印（通常／ホバー）共通設定 */
.box2 .arrow,
.box2 .arrow-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;   /* ← 小さめサイズに調整 */
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 初期状態 */
.box2 .arrow {
  opacity: 1;
}
.box2 .arrow-hover {
  opacity: 0;
  z-index: 4;
}

/* ホバー時 */
a#hover-link:hover .box2 .bg-image-hover {
  opacity: 1;
}

a#hover-link:hover .box2 .arrow {
  opacity: 0;
}

a#hover-link:hover .box2 .arrow-hover {
  opacity: 1;
  transform: translate(-50%, -50%) translate(4px, -4px); /* 中央から右上へ */
}

/****** 商品一覧 ******/

/* リスト */
.custom-select {
    position: relative;
    width: 90px;
    user-select: none;
    font-size: 14px;
}

.custom-select .select-selected {
    background-color: transparent;
    color: #5465FF;
    padding: 5px 0px 5px 5px;
    border-bottom: 1px solid #5465FF;
    cursor: pointer;
    position: relative;
	transition: opacity 0.3s;
}

.select-selected:hover {
    opacity: 0.5;
}



/* 矢印の基本スタイル */
.custom-select .select-selected .arrow {
    position: relative;
    display: inline-block;
    width: 12.5px;
    height: 8.2px;
    margin-left: 6px; /* ラベルとの間隔 */
    transition: transform 0.3s;
}

.custom-select .select-selected .arrow::before,
.custom-select .select-selected .arrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 0.5px);
    width: 1px;
    height: 10px;
    border-radius: 9999px;
    background-color: #5465FF;
    transform-origin: 50% 0.5px;
}

.custom-select .select-selected .arrow::before {
    transform: rotate(45deg);
}

.custom-select .select-selected .arrow::after {
    transform: rotate(-45deg);
}

/* ドロップダウンが開いたら矢印を上下反転 */
.custom-select.open .select-selected .arrow {
    transform: rotate(180deg);
}


.hover-opacity:hover { opacity: 0.7; }

/* ブランド名ホバー時に半透明 */
.custom-select .select-items div[value]:hover {
    opacity: 0.6;
}

/* リセット＆絞り込みボタン共通スタイル */
.custom-select .reset-btn,
.custom-select .apply-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #80859A;
    font-size: 12px;
    transition: opacity 0.2s;
}

/* リセットボタン */
.custom-select .reset-btn:hover {
    opacity: 0.5;
}

/* 絞り込みボタン 黒背景・黒枠デザイン */
.custom-select .apply-btn {
    background-color: #171919;
    color: #fff;
    border: 1px solid #171919;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 12px;
}

/* 絞り込みボタンホバー時 半透明 */
.custom-select .apply-btn:hover {
    opacity: 0.7;
}



.custom-select .select-items {
    position: absolute;
    top: 130%;
    width: 350px;
    background-color: #f1f3fb;
    border: 1px solid #5465FF;
    border-radius: 4px;
    z-index: 99;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    padding: 0px;
	box-shadow: 4px 4px 6px rgba(84, 101, 255, 0.3);
}

.custom-select .select-items div {
    position: relative;
    padding: 4px 16px 4px 37px; /* 左に丸のスペース */
    cursor: pointer;
    color: #5465FF;
    user-select: none;
    transition: background-color 0.2s, font-weight 0.2s;
}

.custom-select .select-items .circle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5465FF;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.1s, transform 0.1s;
}

.custom-select.open .select-items {
    display: block;
}



/* 並び替え */
.custom-select2 {
    position: relative;
    width: 80px;
    user-select: none;
    font-size: 14px;
}

.custom-select2 .select-selected {
    background-color: transparent;
    color: #171919;
    padding: 5px 0 5px 0px;
    border-bottom: 1px solid #171919;
    cursor: pointer;
    position: relative;
	padding-right: 15px; /* 右端に矢印画像分の余白 */
	transition: opacity 0.3s;
}

.custom-select2 .select-selected:hover {
    opacity: 0.5;
}

.custom-select2 .select-selected::after {
    content: none;
}

/* 画像を右端に追加 */
.custom-select2 .select-selected::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 5px; /* 右端からの距離 */
    transform: translateY(-50%);
	width:12px;
    height: 12px; /* 画像の高さ */
    background-image: url('../img/img019.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.custom-select2 .select-items {
    position: absolute;
    top: 130%;
	right: 0;
    width: 150px;
    background-color: #f1f3fb;
    border: 1px solid #171919;
    border-radius: 4px;
    z-index: 99;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    padding: 10px 0;
	box-shadow: 4px 4px 6px rgba(84, 101, 255, 0.3);
}

.custom-select2 .select-items div {
    position: relative;
    padding: 4px 16px 4px 37px; /* 左に丸のスペース */
    cursor: pointer;
    color: #171919;
    user-select: none;
    transition: background-color 0.2s, font-weight 0.2s;
}

.custom-select2 .select-items .circle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #171919;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.1s, transform 0.1s;
}

.custom-select2.open .select-items {
    display: block;
}




/* 商品リンク */

/* ラベルの文字色 */
.filter-form label {
    font-size:14px;
	color:#80859A;
    margin-right: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
	font-family: 'Zen Kaku Gothic New';
	letter-spacing:0.03em;
    gap: 24px;
}

.product-card {
    text-align: left;
    text-decoration: none;
    position: relative;
	display: block;
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* 横長比率 */
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
	border-radius: 6px;
	position: relative; 
}

/* SOLD OUT / OLD OUT ラベル */
.product-image-wrap .sold-out-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #171919;
    color: #fff;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 14px;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を横長枠いっぱいに */
	display: block;
	border-radius: 6px;
	transition: transform 0.4s ease; /* ←追加 */
}

/* ホバー時に拡大 */
.product-card:hover .product-image {
    transform: scale(1.1); /* 1.05倍に拡大 */
}


/* グラデーションオーバーレイ */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
		rgba(84, 101, 255, 0.0),
		rgba(84, 101, 255, 0.0),
		rgba(84, 101, 255, 0.2),
        rgba(84, 101, 255, 0.5)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}


.product-vendor {
    font-size: 12px;
    color: #9FA5BD;
    margin-bottom: 2px;
	transition: opacity 0.3s ease;
}

.product-name {
    font-size: 14px;
    color:#171919;
    margin-bottom: 2px;
	transition: opacity 0.3s ease;
}

.product-price {
    font-size: 20px;
    color:#171919;
	letter-spacing:0.05em;
    margin-bottom: 2px;
	transition: opacity 0.3s ease;
}

.product-store {
    font-size: 12px;
    color: #9FA5BD;
    display: flex;
    align-items: center;
    gap: 6px;
	margin-bottom: 15px;
	transition: opacity 0.3s ease;
}

.store-icon {
    width: 14px;
    object-fit: contain;
	transition: opacity 0.3s ease;
}

/* hover時の動き */
.product-card:hover .overlay {
    opacity: 1;
}

.product-card:hover .product-vendor,
.product-card:hover .product-name,
.product-card:hover .product-price,
.product-card:hover .product-store,
.product-card:hover .store-icon {
    opacity: 0.5;
}




/* ===============================
   ブログ一覧
=============================== */
#xb-articles-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}
.xb-article-card { display:flex; flex-direction:column; align-items:flex-start; width:100%; position:relative; }
.xb-article-card img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:5px; display:block; }
.selected-unit { margin-left:2px; }
.xb-article-image-wrapper { position:relative; overflow:hidden; border-radius:6px; }
.xb-article-image-wrapper img { width:100%; height:190px; object-fit:cover; display:block; transition:transform 0.6s ease; }
.xb-article-image-wrapper::after {
	content:""; position:absolute; top:0; left:0; width:100%; height:100%; border-radius:8px;
	background:linear-gradient(to bottom, rgba(84,101,255,0), rgba(84,101,255,0), rgba(84,101,255,0.8));
	opacity:0; transition:opacity 0.6s ease;
}
.xb-article-card:hover .xb-article-image-wrapper::after { opacity:1; }
.xb-article-card:hover .xb-article-image-wrapper img { transform:scale(1.05); }
.xb-article-card:hover .xb-article-date, .xb-article-card:hover .xb-article-title { opacity:0.5; transition:opacity 0.3s ease; }
.xb-tags-container { position:absolute; top:10px; left:10px; display:flex; flex-wrap:wrap; gap:5px; z-index:2; }
.xb-tag { background:#5465FF; border-radius:3px; padding:4px 6px; font-size:12px; color:#fff; }
.xb-article-date { font-size:12px; color:#9FA5BD; margin:5px 0; transition:opacity 0.3s ease; }
.xb-article-title { font-size:14px; font-weight:600; color:#171919;
	display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
	overflow:hidden; text-overflow:ellipsis; transition:opacity 0.3s ease;
}
.tag-btn { padding:10px 16px; border:1px solid #80859A; background:#FFF; border-radius:3px; color:#80859A; cursor:pointer; }
.tag-btn.selected { background:#5465FF; color:#fff; border-color:#5465FF; }
.tag-btn:hover { background:#5465FF; color:#fff; border-color:#5465FF; transition:all 0.3s ease; }
.reset-btn {font-size:12px; background:none; border:none; padding:0; color:#80859A; text-decoration:underline; cursor:pointer; margin-left:20px;transition: opacity 0.3s ease;}
.reset-btn:hover {opacity: 0.5;}