@charset "UTF-8";
/* ==========================================================================
   baby_kids.css：キッズ・ベビー特集（contents/baby_kids.html）だけの見た目
   ヘッダー・フッター・ページの頭（パンくず・題名・この特集の中）・ほかの特集の一覧は common.css
   欄は id（who・guide・daily・gift・category・brand・wrapping）＋中のタグに当てる
   ========================================================================== */

/* 前書きの1行（今のページの画像の中の言葉） */
.main > h1 + p { font-size: var(--fs-l); letter-spacing: var(--ls-s); }
/* 欄の前書き */
.main > section > h2 + p { max-width: 780px; margin: -12px 0 28px; color: #333; line-height: 1.9; }

/* 「more」の文字のリンク（ITEM GUIDE・CATEGORY で同じ） */
#guide .article > p:last-child a, #category div > p a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ink); font-family: var(--en); font-size: var(--fs-s); letter-spacing: var(--ls-l); }
#guide .article > p:last-child a::after, #category div > p a::after { content: ""; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
#guide .article > p:last-child a:hover, #category div > p a:hover { color: var(--accent); border-color: var(--accent); }
/* 商品の写真（枠を付けない） */
#guide .items img, #category .items img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; transition: opacity .2s; }
#guide .items a:hover img, #category .items a:hover img { opacity: .8; }

/* ===== WHO USES IT?：5つの行 ===== */
#who ul { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 24px; border-top: 1px solid var(--ink); }
#who li { border-bottom: 1px solid var(--line); }
#who a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-size: var(--fs-l); }
#who a::after { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
#who a:hover { color: var(--accent); }

/* ===== ITEM GUIDE：1つごとに、左に写真、右に番号・名前・説明・商品6列・more ===== */
#guide { counter-reset: g; }
#guide .article { counter-increment: g; display: grid; grid-template-columns: 320px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
#guide .article:first-of-type { border-top-color: var(--ink); }
#guide .article > img { grid-row: 1 / 5; width: 100%; }
#guide h3 { display: flex; align-items: baseline; gap: 14px; font-size: var(--fs-xl); font-weight: 500; }
#guide h3::before { content: counter(g, decimal-leading-zero); font-family: var(--num); font-size: 26px; font-weight: 400; color: var(--sub); }
#guide h3 + p { margin-top: 12px; font-size: var(--fs-m); line-height: 1.9; color: #333; }
#guide .items { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 24px; }
#guide .article > p:last-child { margin-top: 18px; }

/* ===== DAILY・GIFT：アイコンと言葉の升目（3列） ===== */
#daily ul, #gift ul { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
#daily li, #gift li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#daily a, #gift a { display: flex; align-items: center; gap: 20px; height: 100%; padding: 16px 24px 16px 16px; font-size: var(--fs-l); transition: background .2s; }
#daily a::after, #gift a::after { content: ""; flex: none; width: 6px; height: 6px; margin-left: auto; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
#daily a:hover, #gift a:hover { background: var(--base); }
#daily img, #gift img { flex: none; width: 72px; mix-blend-mode: multiply; }
#gift ul { grid-template-columns: repeat(2, 1fr); width: calc((100% + 1px) * 2 / 3); }   /* 2つなので、DAILY と同じ幅の升目で左に寄せる */

/* ===== CATEGORY：2列。1つごとに 名前と more・商品5列 ===== */
#category { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
#category h2 { grid-column: 1 / -1; }
#category div { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 24px 0 32px; border-top: 1px solid var(--line); }
#category div:nth-of-type(-n+2) { border-top-color: var(--ink); }
#category h3 { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 500; }
#category div > p { grid-column: 2; grid-row: 1; }
#category .items { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }

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

/* ===== WRAPPING：左に写真、右に説明 ===== */
#wrapping > div { display: grid; grid-template-columns: 200px 1fr; column-gap: 40px; align-items: start; max-width: 900px; }
#wrapping img { width: 200px; }
#wrapping h3 { font-size: var(--fs-xl); font-weight: 500; }
#wrapping p { margin-top: 12px; font-size: var(--fs-m); line-height: 1.9; color: #333; }
#wrapping p a { display: inline-block; margin-top: 8px; padding: 12px 28px; border: 1px solid var(--ink); font-size: var(--fs-m); letter-spacing: var(--ls-s); transition: background .2s, color .2s; }
#wrapping p a:hover { background: var(--ink); color: #fff; }

/* ===== ほかの特集：読み込んだ中の見出し・上の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) {
	#who ul { grid-template-columns: repeat(3, 1fr); }
	#guide .article { grid-template-columns: 220px 1fr; column-gap: 28px; }
	#guide .items { grid-template-columns: repeat(3, 1fr); }
	#category { grid-template-columns: 1fr; }
	#category div:nth-of-type(2) { border-top-color: var(--line); }
}

/* ===== スマホ（〜767px） ===== */
@media (max-width: 767px) {
	.main > section > h2 + p { margin: -8px 0 20px; font-size: var(--fs-m); line-height: 1.8; }
	/* WHO：2列 */
	#who ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
	#who a { padding: 15px 2px; font-size: 13px; }
	/* ITEM GUIDE：写真を左に小さく、その右に名前、説明と商品はその下（商品は横に流す） */
	#guide .article { grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 24px 0; }
	#guide .article > img { grid-row: 1 / 3; }
	#guide h3 { grid-column: 2; align-self: center; font-size: var(--fs-l); gap: 10px; }
	#guide h3::before { font-size: 20px; }
	#guide .article > p:last-child { grid-column: 2; grid-row: 2; align-self: start; margin-top: 8px; }
	#guide h3 + p { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; font-size: 12px; line-height: 1.8; }
	#guide h3 + p br { display: none; }
	#guide .items, #category .items { grid-column: 1 / -1; grid-row: 4; grid-auto-flow: column; grid-auto-columns: 34%; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 16px -16px 0; padding: 0 16px; scroll-padding: 0 16px; }
	#guide .items li, #category .items li { scroll-snap-align: start; }
	#guide .items::-webkit-scrollbar, #category .items::-webkit-scrollbar { display: none; }
	#category .items { grid-row: 2; margin-top: 12px; }
	/* DAILY・GIFT：2列。アイコンを上に */
	#daily ul, #gift ul { grid-template-columns: 1fr 1fr; width: auto; }
	#daily a, #gift a { gap: 10px; padding: 10px 12px 10px 8px; font-size: 12px; }
	#daily img, #gift img { width: 48px; }
	/* CATEGORY */
	#category div { padding: 18px 0 22px; }
	#category h3 { font-size: 13.5px; }
	/* BRAND：2列 */
	#brand ul { columns: 2; column-gap: 16px; }
	#brand li a { padding: 8px 0; font-size: 12.5px; }
	#brand .more { margin-top: 28px; }
	/* WRAPPING */
	#wrapping > div { grid-template-columns: 96px 1fr; column-gap: 16px; }
	#wrapping img { width: 96px; }
	#wrapping h3 { font-size: var(--fs-l); }
	#wrapping p { font-size: 12px; }
}
