/* 特集記事(P7e 特集78件移植)。横長カードの構造は簡易検索の .wide-card を複製した G1(guide_view.css)を基に、
   詳細検索のカード意匠(白地・1px #ddd・角丸6px・藍色のホバー)・余白・幅に合わせた。
   列数は画面幅ではなく、結果欄(#features)の幅で決める(コンテナークエリー): 広いとき2列、狭い(スマホ)とき1列。 */
/* 注目の商品欄の「特集」: NEW・話題の商品・MVP と同じ見た目(top_menu.css の label)。hidden が display:inline-flex に負けないように */
body.p6d .p7-focus label[hidden] { display: none; }
.gd { container-type: inline-size; container-name: gd; margin: 28px 0 8px; }
.gd[hidden] { display: none; }
.gd-h { margin: 0 0 4px; font-size: 17px; padding: 6px 12px; background: #eef3ff; border-left: 4px solid var(--ds-accent, #164A80); border-radius: 0 4px 4px 0; color: #1d316d; line-height: 1.4; }
.gd-h:focus { outline: none; }
.gd, .gd-h { scroll-margin-top: 80px; }      /* 上に固定された検索欄に見出しが隠れないように */
.gd-status { margin: 0 0 10px; font-size: 13px; color: var(--ds-muted, #566074); min-height: 1px; }
.gd-status:focus { outline: none; }
.gd-empty { margin: 0 0 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--ds-line, #d3d7e2); border-radius: 8px; }
.gd-empty[hidden] { display: none; }
.gd-empty p { margin: 0; }

.gd-grid, .gd-text { list-style: none; margin: 0; padding: 0; }
.gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-text { margin-top: 12px; }
.gd-card { min-width: 0; display: flex; }
.gd-link { display: flex; flex-direction: row; box-sizing: border-box; width: 100%; overflow: hidden; background: #fff; border: 1px solid #ddd; border-radius: 6px; color: inherit; text-decoration: none; }
.gd-link:hover, .gd-link:focus-visible { border-color: #5B67E8; box-shadow: 0 0 0 2px rgba(91, 103, 232, .25); }
.gd-link:focus-visible { outline: 2px solid #5B67E8; outline-offset: 1px; }
.gd-media { flex: 0 0 38%; align-self: flex-start; display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 8px 0 8px 8px; overflow: hidden; background: #f0f0f0; }
.gd-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gd-fallback { padding: .6rem; color: #777; font-size: 12px; text-align: center; }
.gd-body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 10px 11px 12px; }
.gd-title { display: -webkit-box; flex: none; min-width: 0; overflow: hidden; margin: 0 0 10px; padding: 0 0 0 8px; border-left: 3px solid var(--ds-accent, #164A80); color: #263746; font-size: 14.5px; font-weight: 600; line-height: 1.3; max-height: 3.9em; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.gd-desc { display: -webkit-box; flex: none; min-width: 0; overflow: hidden; margin: 0; color: #667085; font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.gd-textitem { border-bottom: 1px solid var(--ds-line, #d3d7e2); }
.gd-textlink { display: block; padding: 10px 4px; min-height: 24px; color: var(--ds-accent, #164A80); text-decoration: none; overflow-wrap: anywhere; }
.gd-textlink:hover, .gd-textlink:focus-visible { background: var(--ds-accent-bg, #e8f2ff); }
.gd-morewrap { text-align: center; margin: 16px 0 8px; }
.gd-morewrap[hidden] { display: none; }
.gd-more { min-height: 44px; padding: 10px 28px; }
.gd-more[hidden] { display: none; }

@container gd (max-width: 640px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gd-media { flex-basis: 34%; margin: 6px 0 6px 6px; }
  .gd-body { padding: 8px 9px 10px; }
  .gd-title { font-size: 14px; }
  .gd-desc { font-size: 12px; }
  .gd-more { width: 100%; }
}

/* 件数表示の横の「特集記事へ」リンク(通常表示のみ)。商品を全件展開しなくても特集欄へ移れる */
.gd-jump { display: inline-block; margin-left: 12px; color: var(--ds-accent, #164A80); font-size: 14px; text-decoration: underline; }
.gd-jump[hidden] { display: none; }
.gd-jump:hover, .gd-jump:focus-visible { background: var(--ds-accent-bg, #e8f2ff); }

/* 特集だけの表示(「特集」ON): 商品の表示を隠し、商品用の操作は無効表示(inert。設定は保持され、解除で元に戻る) */
body.ft-on #gridwrap, body.ft-on .ds-morewrap, body.ft-on #empty, body.ft-on #sorthint, body.ft-on #sortchip,
body.ft-on .radar-auto, body.ft-on #radarHint, body.ft-on .gd-jump, body.ft-on #bestArticles { display: none !important; }
/* 年間ベスト記事(MVP選択時だけ。商品の下・一般特集の上)。一般特集の見出しと区別できる色 */
#bestArticles .gd-h { background: #fff7e0; border-left-color: #b58100; color: #5b4300; }
body.ft-on .gd { margin-top: 8px; }
/* 特集だけでは、上の件数表示(「特集記事 N 件」)と重なる見出し・件数を、見た目だけ隠す(読み上げ・フォーカスのために残す) */
body.ft-on .gd-h, body.ft-on .gd-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ft-suspended { opacity: .45; }
.ft-suspended, .ft-suspended * { cursor: not-allowed; }
.ft-note { margin: 0 0 10px; padding: 8px 12px; background: #fff7e0; border: 1px solid #e0c36a; border-radius: 6px; font-size: 13px; color: #5b4300; }
.ft-note[hidden] { display: none; }
