@charset "UTF-8";
/* ==========================================================================
   top.css：トップ（index.html）だけの見た目（au PAY マーケット店。ヤフーの SNEAK の top.css を scripts/to_au.py で au に合わせたもの）
   欄は <section data-part="○○">（slider・event・tokushu）と #newitems・#brands に当てる
   au でヤフーと違う所：イベントのバナーは au の 640×96 の1枚（PC・スマホ共通）。新着・ランキングの欄は無い
   ========================================================================== */

/* ===== イベントのバナー（スライダーの下・中身の幅。au は 640×96 の1枚） =====
   auto-fit：出ているバナーの数だけ枠を作り、真ん中にそろえる（auto-fill だと空の枠が残り、1枚のとき左にずれた。11/29 二反田さん） */
[data-part="event"] ul { display: grid; grid-template-columns: repeat(auto-fit, 640px); gap: 8px; justify-content: center; }
[data-part="event"] img { width: 640px; }
.main > [data-part="event"] { margin: -16px 0 80px; }

/* ===== スライダー（1枚を大きく真ん中に。PC は両隣を薄く見せる。920×690 を切らずに出す） ===== */
[data-part="slider"] { position: relative; background: var(--dark); padding: 0 0 28px; }
.slider { --w: min(720px, 60vw); display: grid; grid-auto-flow: column; grid-auto-columns: var(--w); gap: 12px; padding: 0 calc((100% - var(--w)) / 2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider li { scroll-snap-align: center; }
.slider img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .32; transition: opacity .6s; }
.slider li[data-on] img { opacity: 1; }
/* 点（今の1枚が長い線） */
.slider + p { display: flex; gap: 8px; justify-content: center; margin: 18px 0 0; }
.slider + p i { width: 18px; height: 2px; background: #555; transition: width .3s, background .3s; }
.slider + p i[data-on] { width: 36px; background: #fff; }
/* 左右の矢印（真ん中の1枚の端に、細い線の丸） */
[data-part="slider"] > button { position: absolute; top: calc(50% - 14px); width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(17, 17, 17, .35); cursor: pointer; transition: background .2s; }
[data-part="slider"] > button:hover { background: rgba(17, 17, 17, .7); }
[data-part="slider"] > button::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: translateX(-2px) rotate(45deg); }
[data-part="slider"] > button:first-of-type { left: calc((100% - min(720px, 60vw)) / 2 - 24px); }
[data-part="slider"] > button:first-of-type::before { transform: translateX(2px) rotate(-135deg); }
[data-part="slider"] > button:last-of-type { right: calc((100% - min(720px, 60vw)) / 2 - 24px); }

/* ===== 新着の入口（au は新着の欄を作らず、au の新着順の検索へ） ===== */
#newitems .more { margin-top: 0; }

/* ===== ブランド：上はメインブランドのロゴ（黒一色）、下はすべてのブランドを文字で ===== */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos a { display: block; padding: 20px 12px 16px; text-align: center; font-size: 0; transition: background .2s; }   /* 英字はロゴで見せるので文字は隠す（読み上げには残る） */
.logos a:hover { background: var(--base); }
.logos img { width: 140px; height: 56px; margin: 0 auto; object-fit: contain; }
.logos small { display: block; margin-top: 6px; font-size: var(--fs-s); letter-spacing: var(--ls-s); color: var(--sub); }
/* すべてのブランド：塊（SHOES・FASHION・LIFESTYLE）ごとに、見出しを左に、ブランドを段組みで */
#brands div[data-menu] h3 { margin: 40px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--en); font-size: var(--fs-s); font-weight: 500; letter-spacing: var(--ls-m); }
#brands div[data-menu] ul { columns: 4 200px; column-gap: 32px; }
#brands div[data-menu] li { break-inside: avoid; }
#brands div[data-menu] a { display: block; padding: 6px 0; font-family: var(--en); font-size: var(--fs-m); letter-spacing: .03em; }
#brands div[data-menu] a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#brands div[data-menu] small { margin-left: 8px; font-family: var(--ja); font-size: var(--fs-s); color: var(--sub); }

/* ===== 間の幅 ===== */
@media (max-width: 959px) {
	.logos { grid-template-columns: repeat(4, 1fr); }
}

/* ===== スマホ（〜767px）：11/23 にスマホ専用に見直し（冗長な所を詰める・横に流すものと升目を交互に） ===== */
@media (max-width: 767px) {
	.main > section { margin-bottom: 56px; }

	/* スライダー：1枚ずつ・下に点 */
	[data-part="slider"] { padding-bottom: 14px; }
	.slider { --w: 100%; gap: 0; padding: 0; }
	.slider img { opacity: 1; }
	.slider + p { margin-top: 12px; }
	[data-part="slider"] > button { display: none; }

	/* イベント：縦に積まず、横に流す（640×96 を画面の 86% の幅で） */
	.main > [data-part="event"] { margin: -16px 0 40px; }
	[data-part="event"] ul:has(> li:only-child) { grid-auto-columns: 100%; overflow: visible; }   /* 1枚のときは横に流さず、幅いっぱいに（右が空いて見えないように） */
	[data-part="event"] ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
	[data-part="event"] li { scroll-snap-align: start; }
	[data-part="event"] a, [data-part="event"] img { display: block; width: 100%; }

	/* 横に流す並びの共通（端まで流し、右端が切れて見えることで続きがあると分かる） */
	.main > .sp > ul[data-menu="color"], .main > .sp > h3 + ul:not([data-menu]) { overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }

	/* 探す：カテゴリ（2列・低め）→ 検索 → 色（正方形・1列で横に流す）→ キーワード（1列で横に流す） */
	.main > .sp > h2 { margin-bottom: 16px; }
	.main > .sp > ul:has(a[data-menu]) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.main > .sp > ul:has(a[data-menu]) li { display: flex; }
	.main > .sp > ul:has(a[data-menu]) a { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 30px 8px 14px; background: var(--base); font-family: var(--en); font-size: 12.5px; letter-spacing: var(--ls-m); -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
	.main > .sp > ul:has(a[data-menu]) a::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
	.main > .sp > ul:has(a[data-menu]) a:active { background: var(--ink); color: #fff; }
	.main > .sp > ul:has(a[data-menu]) small { display: block; font-family: var(--ja); font-size: 10.5px; letter-spacing: var(--ls-s); color: var(--sub); margin-top: 1px; }
	.main > .sp > ul:has(a[data-menu]) a:active small { color: #ccc; }
	.main > .sp form[role="search"] { margin: 20px 0 22px; border-color: var(--ink); }
	.main > .sp h3 { font-family: var(--en); font-size: var(--fs-s); font-weight: 500; letter-spacing: var(--ls-m); color: var(--sub); margin: 0 0 8px; }
	.main > .sp h3 small { font-family: var(--ja); font-weight: 400; letter-spacing: var(--ls-s); margin-left: 6px; }
	.main > .sp > ul[data-menu="color"] { display: flex; gap: 6px; margin-bottom: 20px; }
	.main > .sp > ul[data-menu="color"] li { flex: none; }
	.main > .sp > ul[data-menu="color"] img { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); }
	.main > .sp > h3 + ul:not([data-menu]) { display: flex; gap: 6px; }
	.main > .sp > h3 + ul:not([data-menu]) li { flex: none; }
	.main > .sp > h3 + ul:not([data-menu]) a { display: block; padding: 9px 14px; background: var(--base); font-size: var(--fs-m); white-space: nowrap; }

	/* ブランド：ロゴは4列・小さめ。文字の一覧は英字だけ2列、各塊の初めの10（VIEW ALL で全部） */
	.logos { grid-template-columns: repeat(4, 1fr); }
	.logos a { padding: 12px 4px 10px; }
	.logos img { width: 100%; max-width: 76px; height: 30px; }
	.logos small { margin-top: 4px; font-size: 9.5px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	#brands div[data-menu] h3 { margin-top: 28px; }
	#brands div[data-menu] ul { columns: 2; column-gap: 16px; }
	#brands div[data-menu] a { padding: 8px 0; font-size: 12.5px; }
	#brands div[data-menu] li small { display: none; }
	#brands div[data-menu] ul:not(.open) li:nth-child(n+11) { display: none; }
	#brands div[data-menu] .more { margin-top: 16px; }
}
