ナビゲーション

v2.1.0
マーケティング用ブロック

料金プラン

プランを横に並べ、価格、対象、含まれる内容を示し、おすすめの 1 つを目立たせます。

料金プランブロックは、プランを横並びにして、名前、料金、対象ユーザー、ボタン1つ、含まれる機能を示します。おすすめの1プランだけを強調します。

料金プラン

<section class="container-inline px-lg py-4xl" aria-labelledby="pricing-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col items-center gap-sm text-center">      <p class="eyebrow">Pricing</p>      <h2 class="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>      <p class="lead max-w(480)">        Every plan deploys the same way. You pay for the team, not for the traffic.      </p>    </header>    <div class="grid gap-md items-start grid-cols(3)@container(--4xl)">      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Hobby</h3>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">0</span><span class="price-period">forever</span>          </p>          <p class="m(0) leading-md">For side projects and trying things out.</p>        </header>        <a class="btn" href="#">Start for free</a>        <ul class="bullets bullets-check">          <li class="bullets-item">One project</li>          <li class="bullets-item">Previews for every branch</li>          <li class="bullets-item">Community support</li>        </ul>      </article>      <article class="sheet flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Pro</h3>            <span class="badge badge-ink badge-pill">Most popular</span>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">20</span><span class="price-period">per member, monthly</span>          </p>          <p class="m(0) leading-md">For teams that ship to real visitors.</p>        </header>        <a class="btn btn-brand" href="#">Start a trial</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Unlimited projects</li>          <li class="bullets-item">Fourteen regions</li>          <li class="bullets-item">Analytics and firewall</li>          <li class="bullets-item">Email support, next day</li>        </ul>      </article>      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Enterprise</h3>          </div>          <p class="price"><span class="price-amount">Custom</span></p>          <p class="m(0) leading-md">For organizations with their own rules.</p>        </header>        <a class="btn" href="#">Talk to sales</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Single sign-on and audit log</li>          <li class="bullets-item">A 99.99% uptime agreement</li>          <li class="bullets-item">A named engineer</li>          <li class="bullets-item">Invoices and purchase orders</li>        </ul>      </article>    </div>    <p class="m(0) text-center text-xs fg-text-muted">      Prices are in US dollars and exclude tax. Cancel any time.    </p>  </div></section>
<section className="container-inline px-lg py-4xl" aria-labelledby="pricing-title">  <div className="flex flex-col gap-2xl max-w(1040) mx-auto">    <header className="flex flex-col items-center gap-sm text-center">      <p className="eyebrow">Pricing</p>      <h2 className="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>      <p className="lead max-w(480)">        Every plan deploys the same way. You pay for the team, not for the traffic.      </p>    </header>    <div className="grid gap-md items-start grid-cols(3)@container(--4xl)">      <article className="sheet sheet-raised flex flex-col gap-lg p-lg">        <header className="flex flex-col gap-xs">          <div className="flex items-center justify-between gap-sm">            <h3 className="heading heading-sm">Hobby</h3>          </div>          <p className="price">            <span className="price-currency">$</span><span className="price-amount">0</span><span className="price-period">forever</span>          </p>          <p className="m(0) leading-md">For side projects and trying things out.</p>        </header>        <a className="btn" href="#">Start for free</a>        <ul className="bullets bullets-check">          <li className="bullets-item">One project</li>          <li className="bullets-item">Previews for every branch</li>          <li className="bullets-item">Community support</li>        </ul>      </article>      <article className="sheet flex flex-col gap-lg p-lg">        <header className="flex flex-col gap-xs">          <div className="flex items-center justify-between gap-sm">            <h3 className="heading heading-sm">Pro</h3>            <span className="badge badge-ink badge-pill">Most popular</span>          </div>          <p className="price">            <span className="price-currency">$</span><span className="price-amount">20</span><span className="price-period">per member, monthly</span>          </p>          <p className="m(0) leading-md">For teams that ship to real visitors.</p>        </header>        <a className="btn btn-brand" href="#">Start a trial</a>        <ul className="bullets bullets-check">          <li className="bullets-item">Unlimited projects</li>          <li className="bullets-item">Fourteen regions</li>          <li className="bullets-item">Analytics and firewall</li>          <li className="bullets-item">Email support, next day</li>        </ul>      </article>      <article className="sheet sheet-raised flex flex-col gap-lg p-lg">        <header className="flex flex-col gap-xs">          <div className="flex items-center justify-between gap-sm">            <h3 className="heading heading-sm">Enterprise</h3>          </div>          <p className="price"><span className="price-amount">Custom</span></p>          <p className="m(0) leading-md">For organizations with their own rules.</p>        </header>        <a className="btn" href="#">Talk to sales</a>        <ul className="bullets bullets-check">          <li className="bullets-item">Single sign-on and audit log</li>          <li className="bullets-item">A 99.99% uptime agreement</li>          <li className="bullets-item">A named engineer</li>          <li className="bullets-item">Invoices and purchase orders</li>        </ul>      </article>    </div>    <p className="m(0) text-center text-xs fg-text-muted">      Prices are in US dollars and exclude tax. Cancel any time.    </p>  </div></section>
<section class="container-inline px-lg py-4xl" aria-labelledby="pricing-title">  <div class="flex flex-col gap-2xl max-w(1040) mx-auto">    <header class="flex flex-col items-center gap-sm text-center">      <p class="eyebrow">Pricing</p>      <h2 class="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>      <p class="lead max-w(480)">        Every plan deploys the same way. You pay for the team, not for the traffic.      </p>    </header>    <div class="grid gap-md items-start grid-cols(3)@container(--4xl)">      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Hobby</h3>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">0</span><span class="price-period">forever</span>          </p>          <p class="m(0) leading-md">For side projects and trying things out.</p>        </header>        <a class="btn" href="#">Start for free</a>        <ul class="bullets bullets-check">          <li class="bullets-item">One project</li>          <li class="bullets-item">Previews for every branch</li>          <li class="bullets-item">Community support</li>        </ul>      </article>      <article class="sheet flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Pro</h3>            <span class="badge badge-ink badge-pill">Most popular</span>          </div>          <p class="price">            <span class="price-currency">$</span><span class="price-amount">20</span><span class="price-period">per member, monthly</span>          </p>          <p class="m(0) leading-md">For teams that ship to real visitors.</p>        </header>        <a class="btn btn-brand" href="#">Start a trial</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Unlimited projects</li>          <li class="bullets-item">Fourteen regions</li>          <li class="bullets-item">Analytics and firewall</li>          <li class="bullets-item">Email support, next day</li>        </ul>      </article>      <article class="sheet sheet-raised flex flex-col gap-lg p-lg">        <header class="flex flex-col gap-xs">          <div class="flex items-center justify-between gap-sm">            <h3 class="heading heading-sm">Enterprise</h3>          </div>          <p class="price"><span class="price-amount">Custom</span></p>          <p class="m(0) leading-md">For organizations with their own rules.</p>        </header>        <a class="btn" href="#">Talk to sales</a>        <ul class="bullets bullets-check">          <li class="bullets-item">Single sign-on and audit log</li>          <li class="bullets-item">A 99.99% uptime agreement</li>          <li class="bullets-item">A named engineer</li>          <li class="bullets-item">Invoices and purchase orders</li>        </ul>      </article>    </div>    <p class="m(0) text-center text-xs fg-text-muted">      Prices are in US dollars and exclude tax. Cancel any time.    </p>  </div></section>
<template>  <section class="container-inline px-lg py-4xl" aria-labelledby="pricing-title">    <div class="flex flex-col gap-2xl max-w(1040) mx-auto">      <header class="flex flex-col items-center gap-sm text-center">        <p class="eyebrow">Pricing</p>        <h2 class="heading heading-2xl" id="pricing-title">Free to start. Fair when you grow.</h2>        <p class="lead max-w(480)">          Every plan deploys the same way. You pay for the team, not for the traffic.        </p>      </header>      <div class="grid gap-md items-start grid-cols(3)@container(--4xl)">        <article class="sheet sheet-raised flex flex-col gap-lg p-lg">          <header class="flex flex-col gap-xs">            <div class="flex items-center justify-between gap-sm">              <h3 class="heading heading-sm">Hobby</h3>            </div>            <p class="price">              <span class="price-currency">$</span><span class="price-amount">0</span><span class="price-period">forever</span>            </p>            <p class="m(0) leading-md">For side projects and trying things out.</p>          </header>          <a class="btn" href="#">Start for free</a>          <ul class="bullets bullets-check">            <li class="bullets-item">One project</li>            <li class="bullets-item">Previews for every branch</li>            <li class="bullets-item">Community support</li>          </ul>        </article>        <article class="sheet flex flex-col gap-lg p-lg">          <header class="flex flex-col gap-xs">            <div class="flex items-center justify-between gap-sm">              <h3 class="heading heading-sm">Pro</h3>              <span class="badge badge-ink badge-pill">Most popular</span>            </div>            <p class="price">              <span class="price-currency">$</span><span class="price-amount">20</span><span class="price-period">per member, monthly</span>            </p>            <p class="m(0) leading-md">For teams that ship to real visitors.</p>          </header>          <a class="btn btn-brand" href="#">Start a trial</a>          <ul class="bullets bullets-check">            <li class="bullets-item">Unlimited projects</li>            <li class="bullets-item">Fourteen regions</li>            <li class="bullets-item">Analytics and firewall</li>            <li class="bullets-item">Email support, next day</li>          </ul>        </article>        <article class="sheet sheet-raised flex flex-col gap-lg p-lg">          <header class="flex flex-col gap-xs">            <div class="flex items-center justify-between gap-sm">              <h3 class="heading heading-sm">Enterprise</h3>            </div>            <p class="price"><span class="price-amount">Custom</span></p>            <p class="m(0) leading-md">For organizations with their own rules.</p>          </header>          <a class="btn" href="#">Talk to sales</a>          <ul class="bullets bullets-check">            <li class="bullets-item">Single sign-on and audit log</li>            <li class="bullets-item">A 99.99% uptime agreement</li>            <li class="bullets-item">A named engineer</li>            <li class="bullets-item">Invoices and purchase orders</li>          </ul>        </article>      </div>      <p class="m(0) text-center text-xs fg-text-muted">        Prices are in US dollars and exclude tax. Cancel any time.      </p>    </div>  </section></template>

ブロックはコピーして使えるマークアップです。配置先のページの文字色と文字サイズを引き継ぎます。プレビューでは body にfg-text-body text-smを設定しています。各ブロックはサイズコンテナーで、自身の幅に応じてレイアウトが変わります。

#構成

  • 3枚のシートをグリッドに配置。 ブロック幅が56rem未満では1列、56rem以上ではgrid-cols(3)@container(--4xl)になります。items-startにより、各プランの高さはそれぞれの機能リストに合わせて決まります。
  • おすすめプランは面を浮かせて強調。 両隣のsheet-raisedの間に、既定のエレベーションを適用したsheetを置き、badge-inkとページ内で唯一のbtn-brandを配置します。立体感、ラベル、1つだけ色を付けたボタンで控えめに強調し、枠線には色を付けません。
  • 料金には価格表示を使用。 金額の数字は大きく表示し、小さな通貨記号を数字の上端に揃えます。課金周期は控えめな文字色で数字の横に置き、ベースラインを揃えます。
  • ボタンはリストの前。 プランを決めた訪問者が、機能リストを読み進める前にボタンを押せるようにします。
  • 含まれる機能はbullets-checkを指定した箇条書きで表示。 各項目の行頭の外側に、テキスト色のチェックマークを装飾として置きます。チェックマークがなくても文だけで意味が伝わります。

プランは料金の安い順に並べます。ほとんどの利用者に適したプランが1つあるなら、4つ目のプランを追加せず、そのプランの説明にそう書きます。

#プラン比較

プランの下に比較表を置き、カードだけでは分からない違いを示します。機能ごとに1行、プランごとに1列を割り当てます。狭い画面では、シート内のスクロール領域で表を横にスクロールでき、列が続く側の端はフェード表示になります。

プラン比較

<section class="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">  <div class="flex flex-col gap-xl max-w(880) mx-auto">    <h2 class="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>    <div class="sheet overflow-hidden">      <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="pricing-compare-title">        <table class="table">          <thead>            <tr class="table-row">              <th class="table-heading" scope="col"><span class="sr-only">Feature</span></th>              <th class="table-heading" scope="col">Hobby</th>              <th class="table-heading" scope="col">Pro</th>              <th class="table-heading" scope="col">Enterprise</th>            </tr>          </thead>          <tbody>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Projects</th>              <td class="table-cell">1</td>              <td class="table-cell">Unlimited</td>              <td class="table-cell">Unlimited</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Regions</th>              <td class="table-cell">1</td>              <td class="table-cell">14</td>              <td class="table-cell">14</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Build minutes</th>              <td class="table-cell">100 a month</td>              <td class="table-cell">400 per member</td>              <td class="table-cell">Custom</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Analytics</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Firewall rules</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Single sign-on</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">                  <path d="M3 8L6.3532 11.3532A0.2 0.2 0 0 0 6.6412 11.3479L13 4.5" />                </svg><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Uptime agreement</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">99.99%</td>            </tr>          </tbody>        </table>      </div>    </div>  </div></section>
import CheckIcon from '@master/icons-react/native/16/soft/check'<section className="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">  <div className="flex flex-col gap-xl max-w(880) mx-auto">    <h2 className="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>    <div className="sheet overflow-hidden">      <div className="scroll-area scroll-area-inline" tabIndex={0} role="region" aria-labelledby="pricing-compare-title">        <table className="table">          <thead>            <tr className="table-row">              <th className="table-heading" scope="col">                <span className="sr-only">Feature</span>              </th>              <th className="table-heading" scope="col">Hobby</th>              <th className="table-heading" scope="col">Pro</th>              <th className="table-heading" scope="col">Enterprise</th>            </tr>          </thead>          <tbody>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Projects</th>              <td className="table-cell">1</td>              <td className="table-cell">Unlimited</td>              <td className="table-cell">Unlimited</td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Regions</th>              <td className="table-cell">1</td>              <td className="table-cell">14</td>              <td className="table-cell">14</td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Build minutes</th>              <td className="table-cell">100 a month</td>              <td className="table-cell">400 per member</td>              <td className="table-cell">Custom</td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Analytics</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Firewall rules</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Single sign-on</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">                <CheckIcon className="icon" /><span className="sr-only">Included</span>              </td>            </tr>            <tr className="table-row">              <th className="table-cell table-primary" scope="row">Uptime agreement</th>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span className="sr-only">Not included</span>              </td>              <td className="table-cell">99.99%</td>            </tr>          </tbody>        </table>      </div>    </div>  </div></section>
<script>  import CheckIcon from '@master/icons-svelte/native/16/soft/check'</script><section class="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">  <div class="flex flex-col gap-xl max-w(880) mx-auto">    <h2 class="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>    <div class="sheet overflow-hidden">      <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="pricing-compare-title">        <table class="table">          <thead>            <tr class="table-row">              <th class="table-heading" scope="col"><span class="sr-only">Feature</span></th>              <th class="table-heading" scope="col">Hobby</th>              <th class="table-heading" scope="col">Pro</th>              <th class="table-heading" scope="col">Enterprise</th>            </tr>          </thead>          <tbody>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Projects</th>              <td class="table-cell">1</td>              <td class="table-cell">Unlimited</td>              <td class="table-cell">Unlimited</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Regions</th>              <td class="table-cell">1</td>              <td class="table-cell">14</td>              <td class="table-cell">14</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Build minutes</th>              <td class="table-cell">100 a month</td>              <td class="table-cell">400 per member</td>              <td class="table-cell">Custom</td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Analytics</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Firewall rules</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Single sign-on</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">                <CheckIcon class="icon" /><span class="sr-only">Included</span>              </td>            </tr>            <tr class="table-row">              <th class="table-cell table-primary" scope="row">Uptime agreement</th>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell fg-text-muted">                <span aria-hidden="true">–</span><span class="sr-only">Not included</span>              </td>              <td class="table-cell">99.99%</td>            </tr>          </tbody>        </table>      </div>    </div>  </div></section>
<script setup>import CheckIcon from '@master/icons-vue/native/16/soft/check'</script><template>  <section class="container-inline px-lg py-4xl" aria-labelledby="pricing-compare-title">    <div class="flex flex-col gap-xl max-w(880) mx-auto">      <h2 class="heading heading-xl" id="pricing-compare-title">Compare the plans</h2>      <div class="sheet overflow-hidden">        <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-labelledby="pricing-compare-title">          <table class="table">            <thead>              <tr class="table-row">                <th class="table-heading" scope="col"><span class="sr-only">Feature</span></th>                <th class="table-heading" scope="col">Hobby</th>                <th class="table-heading" scope="col">Pro</th>                <th class="table-heading" scope="col">Enterprise</th>              </tr>            </thead>            <tbody>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Projects</th>                <td class="table-cell">1</td>                <td class="table-cell">Unlimited</td>                <td class="table-cell">Unlimited</td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Regions</th>                <td class="table-cell">1</td>                <td class="table-cell">14</td>                <td class="table-cell">14</td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Build minutes</th>                <td class="table-cell">100 a month</td>                <td class="table-cell">400 per member</td>                <td class="table-cell">Custom</td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Analytics</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Firewall rules</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Single sign-on</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">                  <CheckIcon class="icon" /><span class="sr-only">Included</span>                </td>              </tr>              <tr class="table-row">                <th class="table-cell table-primary" scope="row">Uptime agreement</th>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell fg-text-muted">                  <span aria-hidden="true">–</span><span class="sr-only">Not included</span>                </td>                <td class="table-cell">99.99%</td>              </tr>            </tbody>          </table>        </div>      </div>    </div>  </section></template>

チェックマークとダッシュは支援技術から隠し、それぞれに「含まれる」「含まれない」という視覚的に隠したテキストを添えます。スクロール領域にはtabindex="0"を指定してキーボードでスクロールできるようにし、見出しを領域の名前に使います。

#アクセシビリティ

  • 各プランは<article>です。プラン名は、ブロックの<h2>の下に置く<h3>にします。
  • バッジには「一番人気」と表示し、位置や立体感に加えて、文字でもおすすめであることを伝えます。
  • 表の各行の先頭セルは <th scope="row"> です。各セルは、対応する機能名とプラン名とともに読み上げられます。
  • 料金には課金期間を明記します。「$20」だけでは、どの期間に対する料金か分かりません。