/* 実績ページ（/works/）。トップと同じ緑のグラデーション背景の上に白い面を置く。一覧は末尾の「実績一覧」 */

.w-body {
  --w-green: #0F6535;
  --w-green-soft: #e6f0ea;
  --w-brown: #8E5513;
  --w-ink: #1d2a22;
  --w-muted: #5b6b61;
  --w-line: #d5e0d9;
  --w-todo: #fff3b0;
  color: var(--w-ink);
  font-size: 16px;
  line-height: 1.8;
}

.w-container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.w-pc { display: inline; }

.w-preview-note { background: var(--w-todo); color: #4a3b00; font-size: 14px; padding: 8px 16px; text-align: center; }
mark.w-todo { background: var(--w-todo); color: #5c4700; border: 1px dashed #c9a400; border-radius: 4px; padding: 0 4px; font-size: .9em; }

/* 下書きの印 */
.w-badge-draft { position: absolute; top: 10px; left: 10px; background: var(--w-todo); color: #5c4700; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px dashed #c9a400; }
.w-badge-draft.is-inline { position: static; }

/* 工程バー */
.w-phasebar { display: flex; flex-direction: column; gap: 4px; }
.w-phasebar__cells { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 0; margin: 0; }
.w-phasebar__cell { background: #dfe6e1; border-radius: 4px; text-align: center; font-size: 12px; line-height: 1.2; padding: 8px 2px; color: #9aa59f; word-break: keep-all; overflow-wrap: anywhere; }
.w-phasebar__cell.is-on { background: var(--w-green); color: #fff; font-weight: 700; }
.w-phasebar__summary { font-size: 13px; font-weight: 700; color: var(--w-brown); }
.w-phasebar.is-small .w-phasebar__cell { font-size: 0; height: 10px; padding: 0; border-radius: 2px; }
.w-phasebar.is-small .w-phasebar__cell span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.w-phasebar.is-small .w-phasebar__summary { font-size: 12px; }

/* 白い面（技術・FAQ） */

.w-table { width: 100%; border-collapse: collapse; }
.w-table th, .w-table td { border-bottom: 1px solid var(--w-line); padding: 12px 8px; vertical-align: top; text-align: left; }
.w-table th { width: 9em; color: var(--w-green); font-weight: 700; white-space: nowrap; }

.w-faq { display: grid; gap: 10px; }
.w-faq__item { border: 1px solid var(--w-line); border-radius: 10px; padding: 0 16px; }
.w-faq__item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.w-faq__item summary::-webkit-details-marker { display: none; }
.w-faq__item summary::after { content: "+"; margin-left: auto; color: var(--w-green); font-size: 20px; line-height: 1; }
.w-faq__item[open] summary::after { content: "−"; }
.w-faq__q { color: var(--w-green); font-weight: 900; }
.w-faq__a { padding: 0 0 16px 1.6em; color: var(--w-ink); }

.w-article__head { color: #fff; padding: 8px 0 24px; }
.w-article__head .w-badge-draft { background: var(--w-todo); color: #5c4700; }
.w-article__head .w-article__title { color: #fff; font-size: 34px; }
.w-article__head .w-article__lead { color: rgba(255,255,255,.92); margin: 0; }
.w-hero-visual__stage { background: linear-gradient(135deg, #e6f0ea, #c9dccf); border-radius: 16px; padding: 48px 56px; display: flex; align-items: center; justify-content: center; gap: 32px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.w-hero-visual__pc { flex: 1 1 auto; max-width: 820px; }
.w-hero-visual__sp { flex: 0 0 20%; max-width: 200px; }
.w-hero-visual__icon { font-size: 96px; color: var(--w-green); opacity: .35; padding: 40px 0; }
.w-article__title { font-weight: 900; font-size: 30px; color: var(--w-green); line-height: 1.45; margin: 8px 0 8px; }
.w-article__lead { font-size: 18px; margin: 0 0 24px; }

.w-summary__phase { margin-bottom: 12px; }
.w-summary__label { font-weight: 700; color: var(--w-green); margin: 0 0 6px; }
.w-techlist { margin: 0; display: grid; gap: 4px; }
.w-techlist div { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; }
.w-techlist dt { color: var(--w-muted); font-weight: 500; }
.w-techlist dd { margin: 0; }
.w-periods { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.w-periods li { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; }
.w-periods__label { color: var(--w-muted); }

.w-sec { margin-bottom: 40px; }
.w-sec h2 { font-size: 22px; font-weight: 700; color: var(--w-green); border-left: 6px solid var(--w-green); padding-left: 12px; margin: 0 0 14px; }
.w-sec h3 { font-size: 18px; font-weight: 700; color: var(--w-brown); margin: 20px 0 6px; }
.w-sec p { margin: 0 0 10px; }


.w-feature__what { margin: 0 0 4px; }
.w-feature__how { margin: 0; font-size: 15px; color: var(--w-muted); }
.w-feature__how span { display: inline-block; font-size: 12px; font-weight: 700; color: var(--w-brown); border: 1px solid var(--w-brown); border-radius: 4px; padding: 0 6px; margin-right: 8px; }


.w-related__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-related__list a { display: block; background: #fff; border-radius: 12px; padding: 14px 16px; color: inherit; height: 100%; }
.w-related__title { display: block; font-weight: 700; color: var(--w-green); margin-bottom: 8px; }

/* 問い合わせ・フッター */
.w-contact { color: #fff; text-align: center; padding: 56px 0; }
.w-contact__title { font-weight: 900; font-size: 26px; margin: 0 0 10px; }
.w-contact__text { margin: 0 0 20px; }
.w-contact__sub { margin: 16px 0 0; font-size: 14px; }
.w-contact__sub a { color: #fff; text-decoration: underline; }
.w-footer { height: auto; padding: 20px 0; }
.w-footer__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 14px; }
.w-footer__copy { margin-left: auto; }

@media (max-width: 960px) {
  .w-related__list { grid-template-columns: 1fr 1fr; }
  .w-hero-visual__stage { padding: 32px; gap: 20px; }
}

@media (max-width: 600px) {
  .w-pc { display: none; }
  .w-article__head .w-article__title { font-size: 24px; }
  .w-hero-visual__stage { padding: 16px; gap: 12px; border-radius: 12px; }
  .w-hero-visual__sp { flex-basis: 26%; }
  .w-hero-visual__icon { font-size: 64px; padding: 24px 0; }
  .w-article__title { font-size: 24px; }
  .w-article__lead { font-size: 16px; }
  .w-techlist div, .w-periods li { grid-template-columns: 1fr; gap: 0; }
  .w-phasebar__cell { font-size: 10px; padding: 6px 1px; }
  .w-related__list { grid-template-columns: 1fr; }
  .w-table th { width: 6em; white-space: normal; }
  .w-footer__copy { margin-left: 0; width: 100%; }
}


/* ================================================================
 * 実績の詳細（templates/works-single.php）
 * 2026-11-16 gen 確定。見本: portfolio-research/drafts/hajime-preview.html
 * 白い地に、区切りは罫線と余白だけ。見出しは左・本文は右。影はメインビジュアルにだけ付ける。
 * ================================================================ */
.wd-main {
  --wd-green: #0F6535; /* 深緑: 帯・見出し・リンク・工程バー */
  --wd-leaf: #E4EEE7;  /* 若葉: 面 */
  --wd-ink: #18251D;   /* 墨: 本文 */
  --wd-mouse: #5A6A60; /* 鼠: 補足（白地で約5.9:1） */
  --wd-rule: #D5DED8;  /* 罫 */
  --wd-side: 220px;
  background: #fff;
  color: var(--wd-ink);
  font-weight: 500;
  line-height: 1.9;
  padding-bottom: 96px;
}
.wd-main a { color: var(--wd-green); }
.wd-main a:focus-visible { outline: 3px solid var(--wd-green); outline-offset: 3px; border-radius: 2px; }
.wd-main img { max-width: 100%; height: auto; display: block; }
.wd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wd-wrap, .wd-kv, .wd-facts, .wd-sec, .wd-feats, .wd-back { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* 緑の帯（タイトル） */
.wd-band { background: var(--wd-green); color: #fff; padding: 24px 0 150px; }
.wd-crumb { font-size: 13px; opacity: .9; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.wd-main .wd-crumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wd-main .wd-band a:focus-visible { outline-color: #fff; }
.wd-title { font-weight: 900; font-size: 38px; line-height: 1.4; letter-spacing: .03em; margin: 14px 0 12px; max-width: 860px; color: #fff; }
.wd-lead { margin: 0; font-size: 17px; max-width: 900px; opacity: .95; }

/* メインビジュアル（本文より広く、帯に重ねる。大胆にするのはここ1か所） */
.wd-kv { margin-top: -118px; margin-bottom: 0; }
.wd-kv img, .wd-kv .w-wire { width: 100%; border-radius: 10px; box-shadow: 0 24px 48px -20px rgba(15,101,53,.45); }
.wd-kv__stage { background: linear-gradient(135deg, #e6f0ea, #c9dccf); border-radius: 10px; padding: 48px 56px; display: flex; align-items: center; justify-content: center; gap: 32px; box-shadow: 0 24px 48px -20px rgba(15,101,53,.45); }
.wd-kv__stage img, .wd-kv__stage .w-wire { box-shadow: 0 10px 30px rgba(15,101,53,.18); }
.wd-kv__pc { flex: 1 1 auto; max-width: 820px; }
.wd-kv__sp { flex: 0 0 20%; max-width: 200px; }
.wd-kv .w-wire--phone { border-radius: 22px; }
.wd-kv__icon { font-size: 96px; color: var(--wd-green); opacity: .35; padding: 40px 0; }
.wd-kv figcaption { font-size: 13px; color: var(--wd-mouse); margin-top: 10px; }

/* 概要: 工程バー＋定義リスト */
.wd-facts { margin-top: 56px; }
.wd-phases__groups { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0 2px; margin: 0 0 6px; font-size: 12px; color: var(--wd-mouse); }
.wd-phases__groups span { grid-column: span var(--n); border-bottom: 1px solid var(--wd-rule); padding: 0 0 4px 4px; margin-right: 10px; }
.wd-phases__steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0 2px; margin: 0; padding: 0; list-style: none; }
.wd-phases__steps li { background: var(--wd-green); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.5; text-align: center; padding: 14px 16px; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.wd-phases__steps li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 8px; border-radius: 3px 0 0 3px; }
.wd-phases__ini { display: none; }
.wd-phases__steps li.is-off { background: var(--wd-leaf); color: var(--wd-mouse); }
.wd-phases__note { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin: 10px 0 0; }
.wd-phases__note strong { color: var(--wd-green); font-weight: 900; font-size: 18px; }
.wd-phases__note span { font-size: 13px; color: var(--wd-mouse); }

.wd-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 28px 0 0; }
.wd-spec > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--wd-rule); }
.wd-spec > div.is-full { grid-column: 1 / -1; }
.wd-spec > div > dt { font-weight: 700; color: var(--wd-green); font-size: 14px; padding-top: 1px; }
.wd-spec > div > dd { margin: 0; font-size: 15px; }
.wd-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.wd-tags li { font-size: 13px; line-height: 1.8; border: 1px solid var(--wd-rule); border-radius: 4px; padding: 1px 10px; }
.wd-tags li.is-key { border-color: var(--wd-green); color: var(--wd-green); font-weight: 700; }
.wd-main .wd-tags a { color: inherit; text-decoration: underline; text-decoration-color: var(--wd-rule); text-underline-offset: 3px; }
.wd-techlist + .wd-tags { margin-top: 10px; }
.wd-techlist { margin: 0; display: grid; gap: 2px; }
.wd-techlist div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; }
.wd-techlist dt { color: var(--wd-mouse); font-weight: 500; }
.wd-techlist dd { margin: 0; }

/* 見出し左・本文右の区画 */
.wd-sec { padding-top: 64px; display: grid; grid-template-columns: var(--wd-side) minmax(0, 1fr); column-gap: 48px; }
.wd-sec > h2, .wd-feats > h2 { font-weight: 900; font-size: 22px; line-height: 1.5; color: var(--wd-green); margin: 0; padding-top: 14px; border-top: 3px solid var(--wd-green); align-self: start; }
.wd-sec__body { max-width: 680px; padding-top: 10px; }
.wd-sec.is-wide .wd-sec__body { max-width: none; }
.wd-sec__body p { margin: 0 0 1em; }
.wd-sec__body > :last-child, .wd-sec__body article > :last-child { margin-bottom: 0; }
.wd-main h3 { font-weight: 700; font-size: 18px; line-height: 1.6; margin: 0 0 8px; color: var(--wd-ink); }
.wd-cap, .wd-main figcaption { font-size: 13px; color: var(--wd-mouse); margin: 8px 0 0; line-height: 1.7; }
.wd-main strong { font-weight: 900; }

.wd-prop { margin: 0; padding: 0; list-style: none; }
.wd-prop li { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--wd-rule); }
.wd-prop li:last-child { border-bottom: 0; margin: 0; padding: 0; }
.wd-prop b { display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; }

/* 主な機能: 全幅で、画像を左・説明を右。全機能で同じ向き（左右交互にはしない） */
.wd-feats { padding-top: 64px; }
.wd-feats > h2 { width: var(--wd-side); margin-bottom: 8px; }
/* 主な機能の分類の見出し（使う人ごとに分けるとき） */
.wd-feat-group { margin: 40px 0 0; padding: 0 0 10px; font-size: 15px; font-weight: 900; letter-spacing: .08em; color: var(--wd-green); border-bottom: 2px solid var(--wd-green); }
.wd-feats > h2 + .wd-feat-group { margin-top: 16px; }
.wd-feats__note { margin: 24px 0 0; font-size: 13px; color: var(--wd-mouse); text-align: right; }
.wd-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--wd-rule); }
.wd-feat.is-text .wd-feat__txt { grid-column: 1 / -1; max-width: 680px; }
.wd-feat__img { margin: 0; }
.wd-feat__img img { border: 1px solid var(--wd-rule); border-radius: 6px; background: #fff; }
.wd-feat__txt h3 { font-size: 20px; margin: 0 0 10px; }
.wd-feat__txt p { margin: 0; }

/* 画像を本文中に置くとき */
.wd-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.wd-shots figure { margin: 0; }
.wd-shots figure:first-child { grid-column: 1 / -1; }
.wd-shots img, .wd-shots .w-wire, .wd-fig img { width: 100%; border: 1px solid var(--wd-rule); border-radius: 6px; }
.wd-fig { margin: 16px 0 0; }
.wd-points article { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--wd-rule); }
.wd-points article:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* 構成図は若葉の面に全幅で */
.wd-arch { background: var(--wd-leaf); margin-top: 72px; padding: 56px 0 64px; }
.wd-arch .wd-sec { padding-top: 0; }
.wd-arch img { background: #fff; border-radius: 6px; width: 100%; }

.wd-voice { margin: 0; padding-left: 16px; border-left: 3px solid var(--wd-rule); color: var(--wd-mouse); }
.wd-points-list { margin: 0 0 1em; padding-left: 1.2em; }
.wd-points-list li { margin-bottom: 6px; }

/* この案件で使っている自社ツール（tag_inhouse_related_block の出力をこのページの区画に合わせる） */
.wd-main .ih-used { max-width: 1120px; margin: 0 auto; padding: 64px 24px 0; display: grid; grid-template-columns: var(--wd-side) minmax(0, 1fr); column-gap: 48px; align-items: start; }
.wd-main .ih-used > h2 { grid-row: 1 / span 2; font-weight: 900; font-size: 22px; line-height: 1.5; color: var(--wd-green); margin: 0; padding: 14px 0 0; border: 0; border-top: 3px solid var(--wd-green); }
.wd-main .ih-used__note { grid-column: 2; max-width: 680px; margin: 0 0 12px; padding-top: 10px; color: var(--wd-mouse); font-size: 14px; }
.wd-main .ih-used__list { grid-column: 2; max-width: 680px; display: block; }
.wd-main .ih-used__list a { background: none; border-radius: 0; border-top: 1px solid var(--wd-rule); padding: 16px 0; }
.wd-main .ih-used__list li:last-child a { border-bottom: 1px solid var(--wd-rule); }
.wd-main .ih-used__name { font-size: 17px; }
.wd-main .ih-used__lead { font-size: 14px; color: var(--wd-mouse); }

.wd-related { list-style: none; margin: 0; padding: 0; }
.wd-related li { padding: 14px 0; border-top: 1px solid var(--wd-rule); }
.wd-related li:last-child { border-bottom: 1px solid var(--wd-rule); }
.wd-related a { display: block; font-weight: 700; margin-bottom: 6px; }
.wd-related .w-phasebar { max-width: 320px; }

.wd-back { margin-top: 56px; margin-bottom: 0; }
.wd-main .wd-back a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }


/* タブレット幅: 矢羽根が細くなるので文字を小さくし、切り欠きに文字がかからないようにする */
@media (max-width: 960px) {
  .wd-phases__steps li { font-size: 12px; padding: 12px 16px; }
}

@media (max-width: 760px) {
  .wd-band { padding-bottom: 72px; }
  .wd-title { font-size: 26px; }
  .wd-lead { font-size: 15px; }
  .wd-kv { margin-top: -52px; padding-left: 16px; padding-right: 16px; }
  .wd-wrap, .wd-facts, .wd-sec, .wd-feats, .wd-back, .wd-main .ih-used { padding-left: 16px; padding-right: 16px; }
  .wd-kv__stage { padding: 16px; gap: 12px; }
  .wd-kv__sp { flex-basis: 26%; }
  .wd-facts { margin-top: 40px; }
  .wd-phases__groups { display: none; }
  /* 狭い幅は8つを1列のまま、工程名を頭文字1文字にする（一覧のカードと同じ） */
  .wd-phases > .wd-phases__steps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 2px; }
  .wd-phases > .wd-phases__steps li { font-size: 14px; letter-spacing: 0; padding: 9px 10px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
  .wd-phases > .wd-phases__steps li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-left: 2px; }
  .wd-phases .wd-phases__name { display: none; }
  .wd-phases .wd-phases__ini { display: inline; }
  .wd-phases__note { flex-direction: column; gap: 2px; }
  .wd-spec { grid-template-columns: 1fr; }
  .wd-spec > div { grid-template-columns: 6em minmax(0, 1fr); }
  .wd-techlist div { grid-template-columns: 1fr; gap: 0; }
  .wd-sec, .wd-main .ih-used { grid-template-columns: 1fr; padding-top: 48px; }
  .wd-sec > h2, .wd-main .ih-used > h2 { font-size: 20px; margin-bottom: 12px; grid-row: auto; }
  .wd-main .ih-used__note, .wd-main .ih-used__list { grid-column: 1; }
  .wd-feats { padding-top: 48px; }
  .wd-feats > h2 { width: auto; font-size: 20px; }
  .wd-feat { grid-template-columns: 1fr; gap: 16px; }
  .wd-shots { grid-template-columns: 1fr; }
  .wd-arch { margin-top: 56px; padding: 40px 0 48px; }
}

/* ================================================================ 実績一覧（/works/）
 * 2026-11-17 gen「案A（ショーケース型）、工程バーなどは詳細記事に合わせる」。
 * 詳細ページ（.wd-*）と同じ部品を使う: 緑の帯、白い地、罫線と余白、緑の見出し（上に3pxの線）、矢羽根の工程バー、技術タグ。
 * 画像のある案件は「主な実績」の2列カード、ない案件は「そのほかの実績」で1行ずつ。
 */
.wl-main {
  --wd-green: #0F6535; --wd-leaf: #E4EEE7; --wd-ink: #18251D; --wd-mouse: #5A6A60; --wd-rule: #D5DED8; --wd-side: 220px;
  background: #fff; color: var(--wd-ink); font-weight: 500; line-height: 1.9; padding-bottom: 96px;
}
.wl-main a { color: var(--wd-green); }
.wl-main a:focus-visible { outline: 3px solid var(--wd-green); outline-offset: 3px; border-radius: 2px; }
.wl-main img { max-width: 100%; height: auto; display: block; }
.wl-main .wd-band a:focus-visible { outline-color: #fff; }

/* 緑の帯（詳細ページの帯と同じ。一覧はメイン画像を重ねないので下の余白は小さい） */
.wl-band { padding: 56px 0 0; }
.wl-title { font-weight: 900; font-size: 44px; line-height: 1.3; letter-spacing: .04em; margin: 0 0 14px; color: #fff; }
.wl-band .wd-lead { margin-bottom: 36px; }

/* 種類のタブ。選んでいるタブは下の白い地とつながる */
.wl-types { display: flex; flex-wrap: wrap; gap: 4px; }
.wl-main .wl-types a { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; padding: 12px 18px 10px; border-radius: 4px 4px 0 0; background: rgba(255,255,255,.12); text-decoration: none; }
.wl-types a span { font-size: 13px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.wl-main .wl-types a:hover { background: rgba(255,255,255,.22); }
.wl-main .wl-types a[aria-current="page"] { background: #fff; color: var(--wd-ink); }

.wl-body { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wl-notice { border: 1px solid var(--wd-rule); border-radius: 4px; padding: 18px 20px; margin: 40px 0 0; }
.wl-result { margin: 32px 0 0; font-weight: 700; }
.wl-result a { margin-left: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* 区画の見出し（詳細ページの見出しと同じ緑・上に3pxの線） */
.wl-block { padding-top: 64px; }
.wl-main .wd-sec > h2 { font-weight: 900; font-size: 22px; line-height: 1.5; color: var(--wd-green); margin: 0; padding-top: 14px; border-top: 3px solid var(--wd-green); align-self: start; }
/* 一覧の区画は中身が全幅なので、見出しは上に置き、線の長さだけ詳細ページの見出しの幅にそろえる */
.wl-h2 { position: relative; display: flex; align-items: baseline; gap: 16px; font-weight: 900; font-size: 22px; line-height: 1.5; color: var(--wd-green); margin: 0 0 28px; padding-top: 14px; }
.wl-h2::after { content: ""; position: absolute; top: 0; left: 0; width: var(--wd-side); border-top: 3px solid var(--wd-green); }
.wl-h2 span, .wl-main .wd-sec > h2 span { font-size: 13px; font-weight: 500; color: var(--wd-mouse); }
.wl-main .wd-sec > h2 span { display: block; margin-top: 4px; }

.wl-meta { font-size: 13px; color: var(--wd-mouse); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* カード: タイトル → メイン画像 → 工程バー → 簡易説明 を1枚の枠にまとめる（2026-11-17 gen） */
.wl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.wl-cards.is-small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wd-rule); border-radius: 12px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.wl-card:hover { border-color: var(--wd-green); box-shadow: 0 16px 32px -18px rgba(15,101,53,.45); transform: translateY(-2px); }
.wl-card__head { padding: 20px 24px 18px; display: flex; flex-direction: column; gap: 4px; }
.wl-card__head .wl-phases { margin-top: 10px; }
.wl-card__title { font-weight: 900; font-size: 21px; line-height: 1.5; margin: 0; min-height: 3em; }   /* 2行分を取り、横に並ぶカードの画像の高さをそろえる */
.wl-main .wl-card__title a { color: var(--wd-ink); text-decoration: none; }
.wl-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* カードのどこを押しても記事へ */
.wl-main .wl-card:hover .wl-card__title a { color: var(--wd-green); }
.wl-card__img { aspect-ratio: 16 / 9; background: var(--wd-leaf); border-top: 1px solid var(--wd-rule); border-bottom: 1px solid var(--wd-rule); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wl-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wl-card__img .fas { font-size: 40px; color: var(--wd-green); opacity: .35; }
.wl-card.is-noimg .wl-card__img { aspect-ratio: auto; height: 96px; }
.wl-card__body { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.wl-card__body .wl-phases { margin-top: 0; }
.wl-card__more { margin: auto 0 0; padding: 14px 24px; border-top: 1px solid var(--wd-rule); text-align: right; font-size: 14px; font-weight: 700; color: var(--wd-green); }
.wl-card__more i { margin-left: 8px; font-size: 12px; transition: transform .15s; }
.wl-card:hover .wl-card__more i { transform: translateX(3px); }
.wl-card__lead { margin: 0; font-size: 14px; line-height: 1.8; color: #3E4C43; }
.wl-cards.is-small .wl-card__head { padding: 18px 20px 14px; }
.wl-cards.is-small .wl-card__title { font-size: 17px; }
.wl-cards.is-small .wl-card__body { padding: 14px 20px 18px; }
.wl-phases__ini { display: none; }
/* 幅の狭いカード: 2段に折り返さず、工程名を頭文字1文字にして1列で見せる（正式名は aria-label と詳細ページ） */
.wl-cards.is-small .wl-phases__name { display: none; }
.wl-cards.is-small .wl-phases__ini { display: inline; }
.wl-cards.is-small .wl-phases .wd-phases__steps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 2px; }
.wl-cards.is-small .wl-phases .wd-phases__steps li { font-size: 13px; padding: 6px 2px; text-align: center; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%); }
.wl-cards.is-small .wl-phases .wd-phases__steps li:first-child { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }

/* 工程バー（詳細ページの矢羽根を小さくしたもの）。文字は矢羽根の形の真ん中に来るよう左右の余白をそろえる（2026-11-18 gen「テキストがずれている」） */
.wl-phases { display: flex; flex-direction: column; gap: 4px; }
.wl-phases .wd-phases__steps li { font-size: 12px; padding: 7px 10px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.wl-phases .wd-phases__steps li:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); padding-left: 4px; }
.wl-phases__sum { margin: 0; font-size: 13px; font-weight: 900; color: var(--wd-green); }

/* 自社開発・技術・FAQ は詳細ページと同じ「見出し左・本文右」 */
.wl-main .wd-sec { padding-left: 0; padding-right: 0; }
.wl-inhouse { position: relative; }
.wl-inhouse__title { margin: 0 0 4px; font-weight: 700; font-size: 18px; }
.wl-main .wl-inhouse__title a { color: var(--wd-ink); }
.wl-inhouse__title a::after { content: ""; position: absolute; inset: 0; }
.wl-main .wl-inhouse:hover .wl-inhouse__title a { color: var(--wd-green); text-decoration: underline; text-underline-offset: 4px; }
.wl-inhouse__text { margin: 0; color: var(--wd-mouse); font-size: 15px; }
.wl-skills > div { padding: 10px 0; border-bottom: 1px solid var(--wd-rule); }
.wl-skills > div:first-child { border-top: 1px solid var(--wd-rule); }
.wl-skills dt { color: var(--wd-green); font-weight: 700; }
.wl-main .w-faq { gap: 0; border-top: 1px solid var(--wd-rule); }
.wl-main .w-faq__item { border: 0; border-bottom: 1px solid var(--wd-rule); border-radius: 0; padding: 0; }
.wl-main .w-faq__item summary { padding: 14px 4px; }
.wl-main .w-faq__item summary:hover { color: var(--wd-green); }
.wl-main .w-faq__q { color: var(--wd-green); }
.wl-main .w-faq__a { padding: 0 4px 16px 1.6em; }

@media (max-width: 960px) {
  .wl-cards.is-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wl-band { padding-top: 32px; }
  .wl-title { font-size: 32px; }
  .wl-band .wd-lead { margin-bottom: 24px; }
  .wl-types { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .wl-main .wl-types a { font-size: 13px; padding: 9px 12px 8px; white-space: nowrap; }
  .wl-body { padding: 0 16px; }
  .wl-block { padding-top: 40px; }
  .wl-h2 { font-size: 20px; flex-direction: column; gap: 0; margin-bottom: 20px; }
  /* スマホ: カードは横一列に並べて横スクロール */
  .wl-cards, .wl-cards.is-small { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; scroll-padding: 0 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .wl-cards > .wl-card { flex: 0 0 82%; scroll-snap-align: start; }
  .wl-cards.is-small > .wl-card { flex-basis: 72%; }
  .wl-card:hover { transform: none; }
  .wl-card__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .wl-card__head, .wl-cards.is-small .wl-card__head { padding: 16px 16px 12px; }
  .wl-card__body, .wl-cards.is-small .wl-card__body { padding: 12px 16px 14px; }
  .wl-card__more { padding: 12px 16px; }
  .wl-card__title { font-size: 17px; }
  .wl-phases .wd-phases__steps li { font-size: 10px; letter-spacing: -.04em; padding: 6px 4px; }
  /* スマホ: 工程バーは2段にせず、頭文字1文字の矢羽根を1列に */
  .wl-phases.is-card .wl-phases__name { display: none; }
  .wl-phases.is-card .wl-phases__ini { display: inline; }
  .wl-phases.is-card .wd-phases__steps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 2px; }
  .wl-phases.is-card .wd-phases__steps li { font-size: 13px; padding: 7px 2px; text-align: center; letter-spacing: 0; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%); }
  .wl-phases.is-card .wd-phases__steps li:first-child { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }
  .wl-main .wd-sec { grid-template-columns: 1fr; padding-top: 48px; }
  .wl-main .wd-sec > h2 { font-size: 20px; margin-bottom: 12px; }
}
