/* =====================================================================
   ヘルプ（ページだけの見た目） — production port of the lab help/help.css
   ===================================================================== */

/* ---------- 見出しと検索 ---------- */
.hp-head{padding-bottom:clamp(24px,3vw,40px)}
.hp-head .c-phead__copy{max-width:820px}
.hp-search{margin-top:24px!important}
.hp-search__label{display:block;margin-bottom:8px;font-weight:900;font-size:16px}
.hp-search__box{position:relative}
.hp-search__ico{position:absolute;left:20px;top:50%;width:22px;height:22px;margin-top:-11px;color:var(--ink-2);pointer-events:none}
.hp-search__input{width:100%;min-height:60px;padding:0 60px 0 54px;border-radius:var(--r-pill);border:2px solid var(--ctl-line);background:#fff;font:inherit;font-size:17px;font-weight:700;color:var(--ink);box-shadow:var(--sh-2);transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none}
.hp-search__input::placeholder{color:var(--ink-3);font-weight:500}
.hp-search__input::-webkit-search-cancel-button{display:none}
.hp-search__input:focus{outline:none;border-color:var(--violet-deep);box-shadow:0 0 0 4px var(--violet-soft),var(--sh-2)}
.hp-search__input:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.hp-search__clear{position:absolute;right:8px;top:50%;display:grid;place-items:center;width:44px;height:44px;margin-top:-22px;border-radius:50%;color:var(--ink-2)}
.hp-search__clear:hover{background:var(--paper-3);color:var(--ink)}
.hp-search__clear .ico{width:20px;height:20px}
.hp-search__help{margin-top:8px;font-size:14px;color:var(--ink-2);line-height:1.7}
@media (max-width:767px){ .hp-search__input{font-size:16px;min-height:56px} .hp-search__help{font-size:14px} }

.hp-popular{margin-top:22px!important}
.hp-popular__t{font-family:var(--f-heading);font-size:14px;font-weight:var(--fw-heading-s);color:var(--ink-2)}
.hp-popular__list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
@media (max-width:767px){ .hp-popular__list{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter) * -1);padding:2px var(--gutter)} .hp-popular__list::-webkit-scrollbar{display:none} .hp-popular__list li{flex:none} }
.hp-popular__list a{display:inline-flex;align-items:center;min-height:44px;padding:6px 16px;border-radius:var(--r-pill);background:#fff;border:1px solid var(--line-2);font-size:14.5px;font-weight:800;line-height:1.5;color:var(--ink);transition:border-color .2s,background .2s,color .2s}
.hp-popular__list a:hover{border-color:var(--violet-deep);color:var(--violet-deep)}
@media (max-width:767px){ .hp-popular__list a{font-size:15px} }

/* ---------- 本体（PC は左に絞り込み） ---------- */
.hp-body{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding-block:clamp(20px,3vw,40px) clamp(32px,4vw,56px)}
@media (min-width:1024px){
  .hp-body{grid-template-columns:292px minmax(0,1fr);gap:48px;align-items:start}
  .hp-side{position:sticky;top:96px;transition:top .35s var(--ease-out)}
  html.hdr-hidden .hp-side{top:24px}
}
.hp-side{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0}
.hp-side__t{font-family:var(--f-heading);margin-bottom:8px;font-size:14px;font-weight:var(--fw-heading-s);color:var(--ink-2)}
.hp-toc ol{display:grid;gap:2px}
.hp-toc a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:6px 12px;border-radius:12px;font-weight:800;line-height:1.5;color:var(--ink-2)}
.hp-toc a:hover{background:var(--paper-3);color:var(--ink)}
.hp-toc a[aria-current]{background:var(--violet-soft);color:var(--violet-deep)}
.hp-toc__n{flex:none;font-size:13px;font-weight:800;color:var(--ink-2)}
.hp-toc a[aria-current] .hp-toc__n{color:var(--violet-deep)}
@media (max-width:1023px){
  .hp-side{gap:14px}
  .hp-toc ol{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}
  .hp-toc ol::-webkit-scrollbar{display:none}
  .hp-toc li{flex:none}
  .hp-toc a{min-height:44px;padding:0 14px;border-radius:var(--r-pill);background:#fff;border:1px solid var(--line-2);white-space:nowrap}
  .hp-toc__n{font-size:13px}
}

/* ---------- 一覧 ---------- */
.hp-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;min-height:44px;margin-bottom:6px}
.hp-status{font-weight:900;font-size:16px}
.hp-bar__toggle{min-height:44px}
.hp-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:12px;padding:12px 16px;border-radius:var(--r-m);background:var(--sun-soft);font-weight:700;line-height:1.6}
.hp-switch .ico{width:20px;height:20px;color:var(--sun-deep)}
.hp-switch .c-textbtn{min-height:44px}
.hp-list{display:grid;gap:clamp(24px,3vw,36px)}
.hp-cat{scroll-margin-top:96px}
.hp-cat__t{font-family:var(--f-heading);display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:12px;font-size:clamp(20px,.8vw + 16px,26px);font-weight:var(--fw-heading);line-height:1.4}
.hp-cat__for{font-family:var(--f-heading);display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--r-pill);font-size:13px;font-weight:var(--fw-heading-s);line-height:1.5}
.hp-cat__for--listener{background:var(--pink-soft);color:var(--pink-deep)}
.hp-cat__for--creator{background:var(--cyan-soft);color:var(--cyan-deep)}
.hp-q{scroll-margin-top:110px}
.hp-q.is-target{border-color:var(--violet-deep);box-shadow:0 0 0 4px var(--violet-soft)}
.hp-a ul,.hp-a ol{display:grid;gap:6px;padding-left:1.3em}
.hp-a ul{list-style:disc}
.hp-a ol{list-style:decimal}
.hp-a li::marker{color:var(--violet-deep)}
.hp-a strong{color:var(--ink)}
.hp-a mark,.hp-q__t mark{padding:0 .1em;border-radius:3px;background:var(--sun-soft);color:var(--ink);box-shadow:inset 0 -2px 0 var(--sun)}
.hp-a__link{margin-top:6px!important}
.hp-a__link .c-textbtn{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px}
.hp-a__link .ico{width:16px;height:16px}
@media (max-width:767px){ .hp-a__link .c-textbtn{font-size:15px} }
.hp-empty{margin-top:8px}

/* ---------- 解決しないとき ---------- */
.hp-contact{padding-bottom:clamp(48px,6vw,96px)}
.hp-contact__card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(16px,3vw,40px);align-items:end;padding:clamp(20px,3vw,40px) clamp(20px,3vw,40px) 0;border-radius:var(--r-xl);background:linear-gradient(135deg,var(--violet-soft),var(--paper-3) 55%,var(--cyan-soft));overflow:hidden}
.hp-contact__art{width:clamp(120px,16vw,220px);align-self:end}
.hp-contact__art img{width:100%;-webkit-mask-image:linear-gradient(to bottom,#000 78%,transparent);mask-image:linear-gradient(to bottom,#000 78%,transparent)}
.hp-contact__copy{padding-bottom:clamp(20px,3vw,40px)}
.hp-contact__t{font-family:var(--f-heading);font-size:clamp(20px,1vw + 15px,28px);font-weight:var(--fw-heading);line-height:1.45}
.hp-contact__copy>p{margin-top:8px;color:var(--ink-2);line-height:1.85}
.hp-contact__copy .c-actions{margin-top:16px}
.hp-contact__alt{font-size:15px}
.hp-contact__alt a{color:var(--violet-deep);font-weight:800;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media (max-width:767px){
  .hp-contact__card{grid-template-columns:minmax(0,1fr);padding-bottom:0}
  .hp-contact__art{display:none}
  .hp-contact__copy .btn{width:100%}
  .hp-contact__alt{font-size:16px}
}

/* 対象の切り替え：狭い左の列でも3つが収まるように */
.hp-role .c-seg span{padding:0 4px;font-size:14.5px;letter-spacing:0}
@media (max-width:1023px){ .hp-role .c-seg{max-width:440px} .hp-role .c-seg span{font-size:15px} }
/* 見出しのキャラクター（ヒーローの中なので右。スマホでは出さない） */
.hp-head.c-phead--art .c-phead__art{width:clamp(180px,20vw,280px)}
.hp-head .c-phead__bubble{left:-30%;top:14%}

/* ---------- r7（2026-10-04） ---------- */
/* 対象の切り替え：文字の長さに合わせて幅を分ける（「クリエイター」が端まで詰まらない） */
.hp-side .c-seg{display:flex}
.hp-side .c-seg label{flex:auto}
.hp-side .c-seg span{padding:0 12px;font-size:14.5px}
/* 分類の見出しにアイコン（形で見分けられる） */
.hp-cat__ico{flex:none;width:40px;height:40px;object-fit:contain}
@media (max-width:767px){ .hp-cat__ico{width:34px;height:34px} }
/* 探していないときは分類ごとに3件まで。残りは「ほか N 件を表示」 */
.hp-q.is-fold{display:none}
.hp-more{margin-top:10px}
.hp-more__btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px;border-radius:var(--r-pill);background:var(--paper-3);font-size:15px;font-weight:900;color:var(--violet-deep);transition:background .2s}
.hp-more__btn:hover{background:var(--violet-soft)}
.hp-more__btn .ico{width:18px;height:18px}

/* ---------- production（v2 port） ---------- */
/* without JavaScript the search, the audience filter, "open all" and "copy link" cannot work: hide them (all questions stay readable) */
.js-off .hp-search,.js-off .hp-role,.js-off .hp-bar__toggle,.js-off .hp-a__link{display:none}
/* text the operator puts above the questions or under a category heading in the WordPress page */
.hp-intro{margin-bottom:20px;max-width:none}
.hp-cat__note{margin:-4px 0 12px;max-width:none;font-size:16px}
.hp-body--plain{display:block}
/* tables / images inside answers (WordPress blocks) stay inside the card */
.hp-a table{width:100%;border-collapse:collapse;font-size:15px}
.hp-a th,.hp-a td{padding:8px 10px;border:1px solid var(--line);text-align:left;vertical-align:top}
.hp-a img{max-width:100%;height:auto}
.hp-a figure{margin:0;overflow-x:auto}
