@charset "UTF-8";
/* ==========================================================================
   bag.css：バッグ特集（contents/bag.html）だけの見た目
   ヘッダー・フッター・ページの頭（パンくず・題名）・ほかの特集の一覧は common.css
   欄は id（category・usage・fabric・price・brand）＋中のタグに当てる
   ========================================================================== */


/* ===== CATEGORY：4列。写真・名前（全体がカテゴリへのリンク） ===== */
#category ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
#category a { display: block; font-size: var(--fs-l); font-weight: 500; letter-spacing: var(--ls-s); }
#category a::after { content: " →"; font-family: var(--en); font-weight: 300; color: var(--sub); }
#category img { width: 100%; aspect-ratio: 580 / 380; object-fit: cover; margin-bottom: 12px; transition: opacity .2s; }
#category a:hover img { opacity: .85; }

/* ===== USAGE：用途ごとに 左に大きな写真・右に名前と説明 → 下に商品4列×2段 ===== */
#usage > div { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; padding-top: 40px; border-top: 1px solid var(--ink); }
#usage > div:first-of-type { padding-top: 0; border-top: 0; }
#usage > div img { grid-row: 1 / 4; width: 100%; aspect-ratio: 1160 / 787; object-fit: cover; }
#usage > div h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: var(--ls-s); padding-top: 4px; }
#usage > div p { margin-top: 14px; font-size: 13px; line-height: 1.9; color: #333; }
#usage > div p:last-child a { display: inline-block; margin-top: 10px; padding: 12px 40px; border: 1px solid var(--ink); font-family: var(--en); font-size: var(--fs-s); letter-spacing: var(--ls-l); transition: background .2s, color .2s; }
#usage > div p:last-child a:hover { background: var(--ink); color: #fff; }
#usage .items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; margin: 36px 0 72px; }
#usage .items:last-child { margin-bottom: 0; }
#usage .items a { display: flex; flex-direction: column; height: 100%; }
#usage .items img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; transition: opacity .2s; }
#usage .items a:hover img { opacity: .8; }
#usage .items p { margin-top: 12px; font-size: var(--fs-m); font-weight: 500; line-height: 1.6; }
#usage .items small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: var(--fs-s); line-height: 1.7; color: var(--sub); }
#usage .items b { margin-top: auto; padding-top: 8px; font-family: var(--en); font-size: var(--fs-l); font-weight: 500; letter-spacing: var(--ls-s); }

/* ===== FABRIC：3列。線画・名前（全体が検索へのリンク） ===== */
#fabric ul { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
#fabric li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#fabric a { display: flex; align-items: center; gap: 20px; padding: 20px 24px; font-size: 15px; font-weight: 500; letter-spacing: var(--ls-s); transition: background .2s; }
#fabric a::after { content: "→"; margin-left: auto; font-family: var(--en); font-weight: 300; color: var(--sub); }
#fabric a:hover { background: var(--base); }
#fabric img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }

/* ===== PRICE：3列の行（財布特集と同じ形） ===== */
#price ul { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 1px solid var(--ink); }
#price li { border-bottom: 1px solid var(--line); }
#price a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-family: var(--en); font-size: var(--fs-l); letter-spacing: .06em; }
#price a::after { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
#price a:hover { color: var(--accent); }

/* ===== BRAND：文字の一覧（財布特集の BRAND と同じ形） ===== */
#brand ul { columns: 4 200px; column-gap: 32px; border-top: 1px solid var(--ink); padding-top: 12px; }
#brand li { break-inside: avoid; }
#brand a { display: block; padding: 7px 0; font-family: var(--en); font-size: var(--fs-m); letter-spacing: .03em; }
#brand a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== ほかの特集：読み込んだ中の見出し・上の3本・「すべての特集」は出さず、目次だけ ===== */
#tokushu [data-part] > h2, #tokushu .banners, #tokushu [data-part] > h3 { display: none; }
#tokushu ol { border-top: 1px solid var(--ink); }

/* ===== 間の幅 ===== */
@media (max-width: 1023px) {
	#category ul, #usage .items { grid-template-columns: repeat(2, 1fr); }
	#usage > div { grid-template-columns: 1fr 1fr; column-gap: 28px; }
	#fabric ul { grid-template-columns: 1fr; }
}

/* ===== スマホ（〜767px） ===== */
@media (max-width: 767px) {
	/* CATEGORY：2列 */
	#category ul { gap: 20px 12px; }
	#category a { font-size: 12px; letter-spacing: 0; }
	#category img { margin-bottom: 8px; }
	/* USAGE：写真→名前→説明を縦に、商品は横に流す（右端が切れて見えることで続きがあると分かる） */
	#usage > div { display: block; padding-top: 32px; }
	#usage > div h3 { margin-top: 14px; font-size: 15px; }
	#usage > div p { margin-top: 8px; font-size: 12.5px; line-height: 1.8; }
	#usage > div p:last-child a { display: block; text-align: center; padding: 11px 0; }
	#usage .items { grid-auto-flow: column; grid-auto-columns: 42%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 24px -16px 48px; padding: 0 16px 4px; scroll-padding: 0 16px; }
	#usage .items::-webkit-scrollbar { display: none; }
	#usage .items li { scroll-snap-align: start; }
	#usage .items p { margin-top: 8px; font-size: 11.5px; }
	#usage .items small { font-size: 10.5px; line-height: 1.6; }
	#usage .items b { font-size: 13px; }
	/* FABRIC：1列 */
	#fabric a { padding: 12px 14px; gap: 14px; font-size: 13.5px; }
	#fabric img { width: 52px; height: 52px; }
	/* PRICE：1列 */
	#price ul { grid-template-columns: 1fr; }
	#price a { padding: 14px 2px; font-size: 12.5px; letter-spacing: .02em; }
	/* BRAND：2列 */
	#brand ul { columns: 2; column-gap: 16px; }
	#brand a { padding: 8px 0; font-size: 12.5px; }
}
