/* ---------- 成分ページ（データ中心・2026-10-04） ----------
 * 成分ページは .post_content の中に出るので、テーマの見出し・箇条書きの飾りを #hcIngr で打ち消す。
 */
#hcIngr {
	--ip-primary: var(--hc-primary, #31584b);
	--ip-soft: var(--hc-primary-soft, #e8efeb);
	--ip-bg: var(--hc-bg-soft, #f7f7f2);
	--ip-text: var(--hc-text, #252d29);
	--ip-muted: var(--hc-text-muted, #66716b);
	--ip-line: var(--hc-border, #e4e9e4);
	--ip-warn: #9a5b2e;
	display: grid;
	gap: 22px;
	max-width: 960px;
	margin: 0 auto;
	padding: 8px 0 32px;
	color: var(--ip-text);
	font-size: 14px;
	line-height: 1.7;
}
#hcIngr h1, #hcIngr h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ip-text); }
#hcIngr h1::before, #hcIngr h1::after, #hcIngr h2::before, #hcIngr h2::after { display: none !important; content: none !important; }
#hcIngr ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#hcIngr li { margin: 0 !important; padding: 0; }
#hcIngr li::before, #hcIngr li::marker { display: none; content: none; }
#hcIngr p { margin: 0; }
#hcIngr button { font: inherit; }

/* 名前・分類 */
#hcIngr .hc-ip__head { display: grid; gap: 8px; }
#hcIngr .hc-ip__tags { display: flex; flex-wrap: wrap; gap: 6px; }
#hcIngr .hc-ip__tags a, #hcIngr .hc-ip__tags span { padding: 3px 10px; border-radius: 999px; background: var(--ip-soft); color: var(--ip-primary); font-size: 12px; font-weight: 700; text-decoration: none; }
#hcIngr h1.hc-ip__name { font-size: 26px !important; line-height: 1.35; font-weight: 700; }
#hcIngr .hc-ip__inci { font-size: 12.5px; color: var(--ip-muted); letter-spacing: .02em; }
#hcIngr .hc-ip__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
#hcIngr .hc-ip__avoid, #hcIngr .hc-ip__jump { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
#hcIngr .hc-ip__avoid { border: 1.5px solid var(--ip-warn); background: #fff; color: var(--ip-warn); }
#hcIngr .hc-ip__avoid.is-on { background: var(--ip-warn); color: #fff; }
#hcIngr .hc-ip__avoid[hidden] { display: none; }
#hcIngr .hc-ip__jump { border: 1.5px solid var(--ip-line); background: #fff; color: var(--ip-primary); }
#hcIngr .hc-ip__avoidMsg:empty { display: none; }
#hcIngr .hc-ip__avoidMsg { font-size: 12.5px; color: var(--ip-warn); }

/* 数字 */
#hcIngr .hc-ip__sec { display: grid; gap: 10px; }
#hcIngr .hc-ip__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { #hcIngr .hc-ip__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#hcIngr .hc-ip__tile { display: grid; align-content: start; gap: 2px; padding: 12px; border: 1px solid var(--ip-line); border-radius: 12px; background: #fff; }
#hcIngr .hc-ip__tl { font-size: 11.5px; font-weight: 700; color: var(--ip-muted); }
#hcIngr .hc-ip__tv { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--ip-primary); font-variant-numeric: tabular-nums; }
#hcIngr .hc-ip__tv small { margin-left: 2px; font-size: 12px; font-weight: 700; }
#hcIngr .hc-ip__ts { font-size: 11px; line-height: 1.5; color: var(--ip-muted); }
#hcIngr .hc-ip__note { font-size: 12px; line-height: 1.6; color: var(--ip-muted); }
#hcIngr .hc-ip__note a { color: var(--ip-primary); font-weight: 700; }
#hcIngr h2.hc-ip__h2 { font-size: 18px !important; line-height: 1.45; font-weight: 700; }
#hcIngr .hc-ip__headrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#hcIngr .hc-ip__headrow a { flex: none; font-size: 13px; font-weight: 700; color: var(--ip-primary); text-decoration: none; }

/* タイプ別の棒 */
#hcIngr .hc-ip__bars { display: grid; gap: 4px; }
#hcIngr .hc-ip__bar { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 7.5em; align-items: center; gap: 10px; width: 100%; padding: 6px 4px; border: 0; border-radius: 8px; background: none; color: var(--ip-text); text-align: left; cursor: pointer; }
#hcIngr .hc-ip__bar:hover { background: var(--ip-bg); }
#hcIngr .hc-ip__bl { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hcIngr .hc-ip__bt { height: 10px; border-radius: 999px; background: var(--ip-bg); overflow: hidden; }
#hcIngr .hc-ip__bt span { display: block; height: 100%; border-radius: 999px; background: var(--ip-primary); }
#hcIngr .hc-ip__bn { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
#hcIngr .hc-ip__bn small { font-size: 11px; font-weight: 400; color: var(--ip-muted); }
@media (max-width: 480px) { #hcIngr .hc-ip__bar { grid-template-columns: 6.5em minmax(0, 1fr) 6.8em; gap: 8px; } }

/* 並べ方・タイプ */
#hcIngr .hc-ip__ctrl { display: grid; gap: 8px; }
#hcIngr .hc-ip__ctrl[hidden] { display: none; }
#hcIngr .hc-ip__seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; border-radius: 12px; background: var(--ip-bg); }
#hcIngr .hc-ip__seg button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--ip-muted); font-size: 13.5px; font-weight: 700; cursor: pointer; }
#hcIngr .hc-ip__seg button.is-on { background: #fff; color: var(--ip-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
#hcIngr .hc-ip__types { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
#hcIngr .hc-ip__types::-webkit-scrollbar { display: none; }
#hcIngr .hc-ip__types button { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--ip-line); border-radius: 999px; background: #fff; color: var(--ip-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
#hcIngr .hc-ip__types button small { font-size: 11px; font-weight: 400; color: var(--ip-muted); }
#hcIngr .hc-ip__types button.is-on { border-color: var(--ip-primary); background: var(--ip-primary); color: #fff; }
#hcIngr .hc-ip__types button.is-on small { color: rgba(255, 255, 255, .8); }
#hcIngr [data-hc-irank].is-busy .hc-ip__cards { opacity: .45; transition: opacity .15s; }

/* 商品カード（検索結果と同じ形） */
#hcIngr ul.hc-ip__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { #hcIngr ul.hc-ip__cards { grid-template-columns: minmax(0, 1fr); } }
#hcIngr .hc-card a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; height: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--ip-line); border-radius: 10px; background: #fff; color: var(--ip-text); text-decoration: none; }
#hcIngr .hc-card a:hover { border-color: var(--ip-primary); }
#hcIngr .hc-card img, #hcIngr .hc-card__noimg { display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: var(--ip-bg); }
#hcIngr .hc-card__body { display: grid; gap: 2px; min-width: 0; align-content: start; }
#hcIngr .hc-card__brand { font-size: 11px; color: var(--ip-muted); }
#hcIngr .hc-card__name { font-size: 13px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#hcIngr .hc-card__meta, #hcIngr .hc-card__compat { font-size: 11.5px; color: var(--ip-muted); line-height: 1.5; }
#hcIngr .hc-card__meta b, #hcIngr .hc-card__compat b { color: var(--ip-primary); font-size: 13px; }
#hcIngr .hc-card__sub { color: var(--ip-text); }
#hcIngr .hc-card__compat:empty { display: none; }
#hcIngr .hc-card__compat .is-hit { color: var(--ip-warn); font-weight: 700; }
#hcIngr .hc-ip__none, #hcIngr .hc-ip__empty { grid-column: 1 / -1; padding: 14px; border-radius: 10px; background: var(--ip-bg); font-size: 13px; color: var(--ip-muted); }
#hcIngr .hc-ip__more { justify-self: center; min-height: 44px; padding: 0 22px; border: 1.5px solid var(--ip-primary); border-radius: 12px; background: #fff; color: var(--ip-primary); font-size: 14px; font-weight: 700; cursor: pointer; }
#hcIngr .hc-ip__more[hidden] { display: none; }

/* 成分のチップ */
#hcIngr .hc-ip__chips { display: flex; flex-wrap: wrap; gap: 6px; }
#hcIngr .hc-ip__chips a { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border: 1px solid var(--ip-line); border-radius: 999px; background: #fff; color: var(--ip-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
#hcIngr .hc-ip__chips a:hover { border-color: var(--ip-primary); }
#hcIngr .hc-ip__chips small { font-size: 11px; font-weight: 400; color: var(--ip-muted); }

/* 特徴（5段階） */
#hcIngr .hc-ip__scores { display: grid; gap: 6px; }
#hcIngr .hc-ip__scores li { display: grid; grid-template-columns: 9em minmax(0, 1fr) 2.6em; align-items: center; gap: 10px; }
#hcIngr .hc-ip__sl { font-size: 13px; }
#hcIngr .hc-ip__st { height: 8px; border-radius: 999px; background: var(--ip-bg); overflow: hidden; }
#hcIngr .hc-ip__st span { display: block; height: 100%; border-radius: 999px; background: var(--ip-primary); opacity: .75; }
#hcIngr .hc-ip__scores b { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }

/* 説明（たたむ） */
#hcIngr .hc-ip__desc { border: 1px solid var(--ip-line); border-radius: 12px; background: #fff; }
#hcIngr .hc-ip__desc summary { padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--ip-primary); cursor: pointer; }
#hcIngr .hc-ip__descBody { display: grid; gap: 10px; padding: 0 16px 14px; font-size: 13.5px; line-height: 1.8; }
#hcIngr .hc-ip__safetyNote { padding: 10px 12px; border-radius: 10px; background: var(--ip-bg); font-size: 12.5px; }
#hcIngr .hc-ip__disclaimer { font-size: 11px; line-height: 1.6; color: var(--ip-muted); }

/* パソコンでも画面が広くないときは、目次を「目次」ボタンにたたむ（商品カードに重ならないように） */
@media (min-width: 768px) and (max-width: 1499px) {
	.haircare-float-toc .hc-toc-pill { display: flex !important; }
	.haircare-float-toc .hc-toc-menu:not(.is-open) { display: none !important; }
	.haircare-float-toc .hc-toc-menu.is-open .hc-toc-close { display: flex !important; }
}
