/* ===========================================================
   食健オンラインショップ　カテゴリーページ用ガイド「型」CSS
   ・クラス名はすべて「skg-」で始まるので、既存デザインのCSSとぶつかりません
   ・色とフォントは既存サイトに合わせています（文字色 #3E240D／見出し帯 #463521）
   =========================================================== */
.skg{color:#3E240D;line-height:1.85;font-size:15px;margin:0 0 40px}
.skg *{box-sizing:border-box}
.skg p{margin:0 0 1em}
/* 導入文 */
.skg-lead{background:#FAF6EF;border-radius:8px;padding:20px 24px;margin:0 0 32px}
.skg-lead__catch{font-family:"Kosugi Maru","Noto Sans JP",sans-serif;font-size:18px;margin:0 0 .6em}
.skg-lead p:last-child{margin-bottom:0}
.skg-lead:last-child{margin-bottom:0} /* 導入文だけのとき（商品一覧の上）は下の余白を詰める */
/* セクション見出し（H2） */
.skg h2.skg-h{font-size:20px;font-weight:500;margin:36px 0 16px;padding:0 0 8px 14px;border-left:4px solid #463521;border-bottom:1px solid #E5DDD0;line-height:1.5}
/* こんな方に */
.skg-check{list-style:none;padding:0;margin:0 0 8px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px 24px}
.skg-check li{position:relative;padding-left:1.6em}
.skg-check li::before{content:"";position:absolute;left:.2em;top:.55em;width:.7em;height:.4em;border-left:2px solid #7A9A3A;border-bottom:2px solid #7A9A3A;transform:rotate(-45deg)}
/* 選び方の表 */
.skg-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 8px}
.skg-table{width:100%;min-width:560px;border-collapse:collapse;font-size:14px}
.skg-table th,.skg-table td{border:1px solid #E5DDD0;padding:10px 12px;vertical-align:top;text-align:left}
.skg-table thead th{background:#463521;color:#fff;font-weight:500}
.skg-table tbody th{background:#FAF6EF;font-weight:500;white-space:nowrap}
.skg-table a{color:#3E240D;text-decoration:underline}
.skg-table td:last-child{white-space:nowrap}
.skg-note{font-size:12px;color:#7A6A58;margin-top:4px}
/* よくある質問 */
.skg-faq{border-top:1px solid #E5DDD0}
.skg-faq details{border-bottom:1px solid #E5DDD0}
.skg-faq summary{list-style:none;cursor:pointer;padding:14px 36px 14px 2.2em;position:relative;font-weight:500}
.skg-faq summary::-webkit-details-marker{display:none}
.skg-faq summary::before{content:"Q";position:absolute;left:.2em;top:12px;font-family:"Josefin Sans",sans-serif;font-size:18px;color:#7A9A3A}
.skg-faq summary::after{content:"+";position:absolute;right:8px;top:10px;font-size:20px}
.skg-faq details[open] summary::after{content:"−"}
.skg-faq__a{padding:0 8px 16px 2.2em;position:relative}
.skg-faq__a::before{content:"A";position:absolute;left:.2em;top:-2px;font-family:"Josefin Sans",sans-serif;font-size:18px;color:#B5651D}
/* 関連リンク */
.skg-links{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:10px}
.skg-links a{display:inline-block;border:1px solid #3E240D;border-radius:999px;padding:6px 16px;font-size:14px;color:#3E240D;text-decoration:none;font-family:"Kosugi Maru","Noto Sans JP",sans-serif}
.skg-links a:hover{background:#3E240D;color:#fff}
/* 商品一覧の前の区切り */
.skg-tolist{margin:32px 0 0;font-size:18px;font-weight:500;text-align:center}
@media (max-width:767px){
  .skg{font-size:14px;margin-bottom:16px}
  /* スマホでは導入文をコンパクトにして、商品一覧を上に（2026/11/27 調整） */
  .skg-lead{padding:12px 14px;margin-bottom:0}
  .skg-lead .skg-lead__catch{font-size:15px;line-height:1.5;margin-bottom:.4em}
  .skg-lead p{font-size:13px;line-height:1.7}
  .skg h2.skg-h{font-size:18px;margin-top:28px}
}
/* ヘッダーメニュー内「シーンから探す」の行（header-menu の差し替えHTMLで使用） */
.skg-scene{margin:24px 0 0;padding:16px 0 0;border-top:1px dashed #C9BBA6;text-align:center}
.skg-scene__title{font-size:15px;font-weight:500;margin:0 0 10px}
.skg-scene .skg-links{justify-content:center}
/* ヘッダー「カテゴリから探す」メニューの画像の高さをそろえる（325×190の比率で表示。はみ出た上下は切り取り） */
.menu-box.cate-box-3 .image img{aspect-ratio:325/190;object-fit:cover;width:100%;height:auto}
/* 説明文があるカテゴリーページだけ、ページ見出し（H1）の下の余白を詰める（2026/11/27 追加）
   ※ 説明文パーツを「ページ見出し」のすぐ下（商品グループエリアの外側）に置いたときに効きます */
.fs-body-category .fs-l-pageMain:has(.skg) .fs-c-heading--page{padding-bottom:0}
.fs-c-heading--page + .skg{margin-top:12px}
/* スマホで「並び替え」を1行に収める（商品一覧のあるページすべてに効く。幅360px以上なら1行、それより狭い機種は従来どおり折り返す）（2026/11/27 追加） */
@media (max-width:767px){
  .fs-c-sortItems__label{margin-right:10px}
  .fs-c-sortItems__list__item__label{padding:8px;white-space:nowrap}
}
/* スマホでは「選び方の表」をカード型に並べ替える（横スクロールなしで読める）（2026/11/27 追加） */
@media (max-width:767px){
  .skg-table{min-width:0;font-size:13px}
  .skg-table thead{display:none}
  .skg-table,.skg-table tbody,.skg-table tr,.skg-table th,.skg-table td{display:block;width:100%}
  .skg-table tr{border:1px solid #E5DDD0;border-radius:6px;margin:0 0 10px;overflow:hidden}
  .skg-table th,.skg-table td{border:none;padding:6px 12px}
  .skg-table tbody th{white-space:normal;padding:8px 12px}
  .skg-table td:last-child{white-space:normal;padding-bottom:10px}
  .skg-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#7A6A58;line-height:1.4}
}
.skg-note--scroll{display:none} /* スマホはカード型、PCは表が収まるので「横スクロール」の注記は不要 */
