/* Driving availability widget (top page, ページ管理 driving sections), from the PEC東京 HOME design */
.availability { padding: 1.5em; background: #eff0f1; }
.availability-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25em; list-style: none; margin: 1.5em 0 1em; padding: 0; }
.availability-grid li { padding: .75em .25em; text-align: center; background: #fff; }
.availability-grid span { display: block; }
.availability-legend { display: flex; flex-wrap: wrap; gap: .5em 1.5em; list-style: none; padding: 0; }
.availability-legend li { display: inline-flex; align-items: center; gap: .4em; }
.availability-legend li span { line-height: normal; }

/* ○ △ × are SVG icons drawn with currentColor */
.availability-grid .status { display: flex; justify-content: center; align-items: center; height: 22px; margin-top: -1px; line-height: 1; color: #010205; }
.availability .av-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: miter; stroke-linecap: butt; }
.availability-legend .av-icon { width: 16px; height: 16px; stroke-width: 2; color: #010205; }
.availability-grid .is-few .status,
.availability-legend .is-few .av-icon { color: #d5001c; }
.availability-grid .is-full .status,
.availability-legend .is-full .av-icon { color: #6b6d70; }

/* status text for screen readers only (the icon is aria-hidden) */
.availability .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* style.css resets h3/p/ul margins to 0; the design relies on the browser defaults, so restore them here */
.availability .c-headline_04 { margin-top: 1em; }
.availability > .availability-legend,
.availability > .c-linkBtn { margin-top: 1em; margin-bottom: 1em; }
.availability > .availability-note { margin: 0 0 1em; }

/* style.css shrinks every .c-linkBtn to its text at ≤ 1070px; the design keeps this one at the desktop size */
@media screen and (max-width: 1070px) {
  .availability .c-linkBtn a { padding: .87em 2em; min-width: 200px; }
}
