/* product/leivor/features.css — CAPABILITIES(7つの柱)＋全機能一覧。出典: previews/13_leivor_features（生成: apply_to_08.py） */

/* ---- A. 7つの柱 ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.pillar h3 { margin: 0; font-size: 17px; font-weight: 800; }
.pillar p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.pillar__rep { list-style: none; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.pillar__rep li { background: color-mix(in srgb, var(--teal) 10%, #fff); color: #0e6f6a; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pillar__more { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--teal); }
.pillar__more::after { content: " →"; }

/* ---- B. 一覧のツール ---- */
.ftools { position: sticky; top: 64px; z-index: 40; background: var(--bg); padding: 10px 0 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }   /* top は固定ヘッダー(is-stuck時)の実高さに JS が追従。背景は透過させず下の文字を見せない */
.section.white .ftools { background: #fff; }
.ftools__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.ftools__nav a { text-decoration: none; color: var(--ink-soft); padding: 2px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.ftools__nav a:hover, .ftools__nav a.is-active { color: var(--teal); border-color: var(--teal); }
.ftools__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.chip b { font-weight: 800; color: var(--teal); }
.chip.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip.is-on b { color: #fff; }
.search { flex: 1 1 220px; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; background: var(--paper); }
.ftools__empty { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---- B. 折りたたみグループ ---- */
.fgroups { display: flex; flex-direction: column; gap: 12px; }
.fgroup { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 16px; overflow: hidden; scroll-margin-top: 150px; }
.fgroup[hidden] { display: none; }
.fgroup summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t b" "l b"; align-items: center; column-gap: 16px; padding: 18px 22px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary:hover { background: color-mix(in srgb, var(--teal) 5%, #fff); }
.fgroup__title { grid-area: t; font-size: 17px; font-weight: 800; }
.fgroup__lead { grid-area: l; font-size: 13.5px; color: var(--ink-soft); }
/* 開閉ボタン: 閉じているときは「N機能を見る ∨」の塗りボタン、開いているときは「閉じる ∧」の枠ボタン（折りたたみに気づいてもらうため） */
.fgroup__toggle { grid-area: b; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 18px; border-radius: 999px; border: 1.5px solid var(--teal); background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.fgroup__count::after { content: "を見る"; }   /* 件数は絞り込み時の該当数にもなる */
.fgroup__chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.fgroup summary:hover .fgroup__toggle { box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 35%, transparent); }
.fgroup[open] .fgroup__toggle { background: #fff; color: var(--teal); }
.fgroup[open] .fgroup__count { font-size: 0; }
.fgroup[open] .fgroup__count::after { content: "閉じる"; font-size: 13px; }
.fgroup[open] .fgroup__chev { transform: translateY(2px) rotate(-135deg); }
.feat-list { list-style: none; margin: 0; padding: 0 22px 6px; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: 1fr 260px; column-gap: 28px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 160px; }
.feat--noimg { grid-template-columns: 1fr; }
.feat[hidden] { display: none; }
.feat.is-last { border-bottom: 0; }                                   /* 最終行（表示中の最後）は下線なし（JSが付与） */
.feat__body { min-width: 0; }
/* GUIスクショ（16:9・クリックで拡大） */
.feat__shot { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #0e2b2c; cursor: zoom-in; transition: box-shadow .2s, transform .2s; }
.feat__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat__shot:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feat__shot--dummy { background: var(--paper-2); }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 20, .82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #0e2b2c; }
.lb figcaption { color: #dff7f2; font-size: 14px; font-weight: 700; margin-top: 12px; }
.lb__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lb__close:hover { background: rgba(255,255,255,.3); }
.feat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.feat h4 { margin: 0; font-size: 15px; font-weight: 800; }
.feat p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.feat:target { background: color-mix(in srgb, var(--teal) 7%, #fff); }
.tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag--beta { background: var(--teal); color: #fff; }
.tag--oct  { background: var(--gold); color: #fff; }
.tag--prod { background: var(--blue); color: #fff; }
.tag--aca  { background: var(--violet); color: #fff; }
.fnote { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ---- WORKFLOW をダーク帯に（トップの事業カード/ラインナップ帯と同じ紺×ティール） ---- */
#pipeline.dark { border-top: 0; background: radial-gradient(95% 120% at 85% -6%, rgba(90,227,209,.14) 0%, rgba(90,227,209,0) 50%), linear-gradient(180deg, #223f46 0%, #1a3238 100%), #1a3238; }   /* トップの紺より一段柔らかい青緑グレー */
#pipeline.dark .eyebrow { color: #7df5e6; }
#pipeline.dark .pipeline__rail ol::before { background: rgba(255,255,255,.16); }
#pipeline.dark .pipeline__rail .dot { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: rgba(245,251,251,.6); }
#pipeline.dark .pipeline__rail .label { color: rgba(245,251,251,.6); }
#pipeline.dark .pipeline__rail li.is-active .dot { box-shadow: 0 0 0 5px rgba(125,245,230,.18); }
#pipeline.dark .pipeline__rail li.is-active .label { color: #7df5e6; }
#pipeline.dark .pipeline__num, #pipeline.dark .pipeline__step h3 .en { color: #7df5e6; }
#pipeline.dark .pipeline__step h3 { color: #fff; }
#pipeline.dark .pipeline__step p { color: rgba(245,251,251,.84); }
#pipeline.dark .pipeline__step { opacity: .32; }
#pipeline.dark .pipeline__step.is-active { opacity: 1; }
#pipeline.dark .pipeline__visual { box-shadow: 0 16px 40px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }

@media (max-width: 1024px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; row-gap: 12px; padding: 14px 0; }
  .feat__shot { max-width: 420px; }
  .fgroup summary { grid-template-columns: 1fr; grid-template-areas: "t" "l" "b"; padding: 16px 18px; row-gap: 2px; }
  .fgroup__toggle { justify-self: start; margin-top: 10px; }
  .feat-list { padding: 0 18px 2px; }
  .ftools { position: static; }
  .ftools__nav { font-size: 14px; gap: 4px 16px; }
  #pipeline.dark .pipeline__step { border-top-color: rgba(255,255,255,.12); opacity: 1; }
}
