/* 作った仕組みのカードと詳細の小窓（トップの「作った仕組み」と一覧 /works/ の両方）と、一覧だけの部品。色・字の大きさは home.css の決まり（var(--…)）だけを使う */
.wl-page .hd { position: sticky; }
.wl-page .col-head .wrap, .wl-list .wrap { display: flex; flex-direction: column; gap: 32px; }
.wl-page .col-head .head-row .sec-head { flex: 1; min-width: 0; }
.wl-page .col-head .pub-lead { margin-top: -8px; max-width: 46em; }

/* 設定の難しさの印：3本の棒のうち、難しいほど多く塗る */
.ez { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-tag); font-weight: 700; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.ez-bars { display: inline-flex; align-items: flex-end; gap: 3px; }
.ez-bars i { display: block; width: 5px; border-radius: 2px; background: var(--pale); }
.ez-bars i:nth-child(1) { height: 8px; }
.ez-bars i:nth-child(2) { height: 12px; }
.ez-bars i:nth-child(3) { height: 16px; }
.ez-bars i.on { background: var(--purple); }

.wl-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wl-legend li { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 12px; background: var(--white); }
.wl-legend li > span:last-child { font-size: 15px; line-height: 1.7; color: var(--sub); }

/* 絞り込み */
.wl-list .wrap { gap: 24px; }
.wl-filters { display: flex; flex-direction: column; gap: 16px; }
.wl-f { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; }
.wl-fl { padding-top: 7px; font-size: var(--fs-tag); font-weight: 700; line-height: 1.5; color: var(--sub); }
.wl-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-tabs .tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.wl-tabs .tab[aria-pressed="true"] .ez { color: var(--white); }
.wl-tabs .tab[aria-pressed="true"] .ez-bars i:not(.on) { background: rgba(255, 255, 255, .3); }
.wl-tabs .tab:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.wl-tabs .tab .tab-n b { font-weight: 500; }
.wl-count { font-size: var(--fs-tag); color: var(--sub); }
.wl-count b { font-size: 20px; font-weight: 900; color: var(--ink); margin-right: 2px; }
.wl-empty { padding: 48px 0; text-align: center; color: var(--sub); }

/* カード：絵・流れの名前・名前・1行・下に難しさと「詳細を見る」 */
.wl-card { position: relative; }
.wl-card[hidden] { display: none; }
.wl-card:hover { border-color: var(--purple); }
.wl-card .card-body { padding: 24px 28px 20px; gap: 8px; }
.wl-row { font-size: var(--fs-tag); font-weight: 700; line-height: 1.5; color: var(--deep); }
.wl-card .card-body > p:not(.wl-row) { font-size: 16px; line-height: var(--lh-card); color: var(--sub); }
/* 使った道具のアイコンの列。道具の名指しが無いカードでも高さをそろえる */
.wl-tools { min-height: 32px; margin-top: 4px; }
.wl-tools .tools { margin-top: 0; }
.wl-sec .tools { margin-top: 0; }
@media (min-width: 761px) { .wl-card .card-body > p { min-height: calc(3em * 1.7); } }
.wl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pale); }
.wl-open { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px 0 12px; border: 0; border-radius: 8px; background: none; color: var(--purple); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.wl-open svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wl-open:hover { color: var(--deep); background: var(--mist); }
.wl-open:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
/* カードのどこを押しても開く（ボタンの当たりをカード全体に広げる） */
.wl-open::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }

/* 詳細の小窓 */
.wl-body { gap: 28px; }
.wl-top { display: flex; flex-direction: column; gap: 10px; }
.wl-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.wl-ba > div { padding: 16px 20px; border-radius: 12px; background: var(--mist); }
.wl-ba .wl-ba-after { background: var(--pale); }
.wl-ba .wl-ba-human { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--pale); }
.wl-ba dt { font-size: var(--fs-tag); font-weight: 700; line-height: 1.5; color: var(--deep); }
.wl-ba dd { margin: 4px 0 0; font-size: 16px; line-height: 1.8; }
.wl-sec { display: flex; flex-direction: column; gap: 10px; }
.wl-h { font-size: 16px; font-weight: 900; line-height: 1.5; }
.wl-p { font-size: 16px; line-height: 1.8; }
.wl-ind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.wl-ind li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--pale); border-radius: 10px; }
.wl-ind b { font-size: 15px; line-height: 1.5; }
.wl-ind span { font-size: 14px; line-height: 1.7; color: var(--sub); }
.wl-note { font-size: 14px; line-height: 1.7; color: var(--sub); }
.wl-dots { margin: 0; padding-left: 1.2em; list-style: disc; font-size: 16px; line-height: 1.8; }
.wl-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.wl-steps li { counter-increment: st; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.8; }
.wl-steps li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--purple); color: var(--white); font-size: 14px; font-weight: 700; }
.wl-buy { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 12px; background: var(--ink); color: var(--white); }
.wl-buy-k { font-size: var(--fs-tag); font-weight: 700; color: rgba(255, 255, 255, .75); }
.wl-buy-t { font-size: 20px; font-weight: 900; line-height: 1.5; }
.wl-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.wl-price { font-size: 28px; font-weight: 900; line-height: 1; white-space: nowrap; }
.wl-buy-btn[disabled] { background: rgba(255, 255, 255, .16); border-color: transparent; color: rgba(255, 255, 255, .8); cursor: not-allowed; }
.wl-soon { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .75); }
.wl-ask { font-size: 15px; }
.wl-rec a, .wl-ask a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .wl-legend { grid-template-columns: 1fr; gap: 8px; }
  .wl-legend li { flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; }
  .wl-legend li .ez { min-width: 104px; }
}
@media (max-width: 760px) {
  .wl-f { grid-template-columns: 1fr; gap: 8px; }
  .wl-fl { padding-top: 0; }
  .wl-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .wl-tabs::-webkit-scrollbar { display: none; }
  .wl-card .card-body { padding: 20px 20px 16px; }
  .wl-ba, .wl-ind { grid-template-columns: 1fr; }
  .wl-buy { padding: 20px; }
  .wl-buy-row { flex-direction: column; align-items: stretch; }
  .wl-buy-btn { width: 100%; padding: 0 16px; font-size: 16px; }
  .wl-legend li > span:last-child { font-size: 14px; }
}
/* 761〜1100px（タブレット）はカードを2列に。3列では1行の説明が窮屈になる */
@media (min-width: 761px) and (max-width: 1100px) {
  .wl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 道具のロゴ：押すと公式サイト（新しいタブ）。矢印を合わせるかキーボードで選ぶと、上に名前を出す（2026-10-25 吉田さま） */
.wl-tools { position: relative; z-index: 1; }
.tool-a { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; }
.tool-a::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tool-a:hover::after, .tool-a:focus-visible::after { opacity: 1; }
.tool:has(.tool-a:hover) { border-color: var(--purple); }
.tool-a:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
/* トップ「提供できること」：6つの商品（3列×2段。押すと下の「作った仕組み」のその札を開く） */
#products .wrap { display: flex; flex-direction: column; gap: 24px; }
.pd-intro { margin-top: 0; max-width: 46em; }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 16px 0 0; padding: 0; list-style: none; }
.pd-a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--pale); border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .25s var(--ease); }
.pd-a:hover { border-color: var(--purple); }
.pd-a:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.pd-art { position: relative; height: 200px; background: var(--mist); }
.pd-art img { position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.pd-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 24px; flex: 1; }
.pd-name { font-size: 24px; font-weight: 900; line-height: 1.4; letter-spacing: .02em; }
.pd-title { font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--deep); }
.pd-lead { font-size: 15px; line-height: 1.8; color: var(--sub); }
.pd-see { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 700; color: var(--purple); }
.pd-see svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pd-n { font-weight: 500; }
@media (max-width: 1100px) { .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pd-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 8px; } .pd-art { height: 160px; } .pd-name { font-size: 22px; } }
/* トップ「作った仕組み」のカードの下：その商品の一覧へのボタン1つだけ */
.wk-all { margin-top: 40px; }
@media (max-width: 760px) { .wk-all { margin-top: 24px; } .wk-all .btn { width: 100%; height: auto; min-height: 56px; padding: 12px 20px; font-size: 16px; line-height: 1.5; letter-spacing: .02em; white-space: normal; text-align: center; } }

/* 札の上の「記事」と「道具」（2026-11-01 分け方の一本化。選んだ立場と効く所に合わせて works.js が入れ替える） */
.wl-tabs-bsc .tab small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--sub); }
.wl-tabs-bsc .tab[aria-pressed="true"] small { color: inherit; opacity: .85; }
.wl-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 8px; }
.wl-rel-b { padding: 16px 20px; border: 1px solid var(--pale); border-radius: 12px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.wl-rel-b[hidden] { display: none; }
.wl-rel-h { font-size: var(--fs-tag); font-weight: 700; line-height: 1.5; color: var(--sub); }
.wl-rel-a { display: flex; flex-direction: column; gap: 8px; }
.wl-rel-a li { line-height: 1.6; } /* a は行の中の部品なので、行間は li 側で決まる（スマホで2行の題が間延びした） */
.wl-rel-a a { font-size: 15px; line-height: 1.6; color: var(--deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(62, 62, 168, .45); }  /* 黒字だと押せると分からない（11-01）→記事のリンクと同じ紫 */
.wl-rel-a a:hover { color: var(--purple); text-decoration-color: currentColor; }
.wl-rel-t { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-rel-t li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 8px; background: var(--mist, #f3f3fd); font-size: 14px; }
.wl-rel-tn { font-weight: 700; color: var(--ink); }
.wl-rel-tk { font-size: 12px; color: var(--sub); }
.wl-rel-b .text-link { margin-top: auto; font-size: 14px; }
@media (max-width: 760px) {
  .wl-rel { grid-template-columns: 1fr; }
}

.wl-rel-b .text-link { color: var(--deep); text-decoration-color: rgba(62, 62, 168, .45); text-underline-offset: 4px; }

/* 11-01 小窓の一番下は「無料で相談する」ボタン（右寄せ・カードのボタンは右下の決まり） */
.wl-ask { display: flex; justify-content: flex-end; margin-top: 8px; }
.wl-ask a.btn { color: var(--white); text-decoration: none; }
.wl-tool { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--deep); }
.wl-tool-x { margin-left: 10px; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
