/* 参考サイト一覧（つどいラボ・マネビタ共通）。会社の色は brand.*.json が :root に入れる。ここには色の値を書かない */
:root {
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --container: 75rem;
  --fs-h1: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  --fs-lead: 1.0625rem;
  --fs-kind: 1rem;
  --fs-name: .875rem;
  --fs-band: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  --cols: 2;
  --gap-x: 12px;
  --gap-y: 20px;
}
@media (min-width: 640px) { :root { --cols: 3; --gap-x: 16px; --gap-y: 28px; } }
@media (min-width: 1024px) { :root { --cols: 4; --gap-x: 24px; --gap-y: 32px; --gutter: 40px; } }
@media (min-width: 1280px) { :root { --cols: 5; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--ff-body); font-weight: var(--fw-body); font-size: 1rem; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--c-surface); color: var(--c-ink); font-weight: 700; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ヘッダー（固定しない） */
.gl-head { background: var(--c-surface); border-bottom: 1px solid var(--c-rule); }
.gl-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.gl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: .8125rem; line-height: 1.2; }
.gl-brand img { height: 30px; width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-family: inherit; font-size: var(--fs-kind); font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s; }
.btn--cta { background: var(--c-cta-bg); color: var(--c-cta-text); }
.btn--cta:hover { background: var(--c-cta-hover); }
.btn--line { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-ink); }
.btn:active { transform: scale(.98); }
.gl-head .btn { flex: none; padding-inline: 16px; font-size: .9375rem; white-space: nowrap; }
.gl-brand { min-width: 0; }
.gl-brand span { white-space: nowrap; }
@media (max-width: 479px) { .gl-brand img { height: 26px; } .gl-brand span { display: none; } }

/* 見出しの帯 */
.gl-hero { background: var(--c-band); padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); text-align: center; }
.gl-hero h1 { margin: 0; font-family: var(--ff-head); font-weight: 900; font-size: var(--fs-h1); line-height: 1.3; color: var(--c-ink); font-feature-settings: "palt"; }
.gl-hero p { margin: .5em 0 0; font-size: var(--fs-lead); }
.gl-hero p, .gl-hero h1, .gl-band h2, .gl-empty h2 { word-break: auto-phrase; text-wrap: balance; }

/* 検索と絞り込み */
.gl-tools { padding-top: 20px; }
.gl-search { position: relative; max-width: 40rem; margin-inline: auto; }
.gl-search svg { position: absolute; left: calc(var(--gutter) + 14px); top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--c-sub); pointer-events: none; }
.gl-search input { width: 100%; height: 48px; padding: 0 48px 0 44px; border: 1px solid var(--c-rule); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 16px; appearance: none; }
.gl-search input::-webkit-search-cancel-button { display: none; }
.gl-search input::placeholder { color: var(--c-sub); }
.gl-search__clear { position: absolute; right: calc(var(--gutter) + 2px); top: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--c-sub); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 50%; }
.gl-chips { position: sticky; top: 0; z-index: 5; margin-top: 16px; padding-block: 10px; background: var(--c-bg); }
.gl-chips__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.gl-chips__row::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 16px; border: 1px solid var(--c-rule); border-radius: 999px; background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: var(--fs-kind); font-weight: 700; line-height: 1.3; cursor: pointer; white-space: nowrap; }
.chip small { margin-left: .35em; font-size: .8125rem; font-weight: 400; color: var(--c-sub); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--c-chip-on-bg); border-color: var(--c-chip-on-bg); color: var(--c-chip-on-text); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .8; }
.chip:last-child { margin-right: 24px; }
@media (min-width: 1024px) {
  .gl-chips { position: static; }
  .gl-chips__row { flex-wrap: wrap; justify-content: center; overflow: visible; -webkit-mask-image: none; mask-image: none; max-width: var(--container); margin-inline: auto; }
  .chip:last-child { margin-right: 0; }
}
.gl-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 4px; color: var(--c-sub); font-size: var(--fs-name); font-variant-numeric: tabular-nums; }
.gl-count__reset { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--c-ink); font: inherit; font-size: var(--fs-name); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.no-js .gl-search, .no-js .gl-chips, .no-js .gl-count__reset { display: none; }

/* 一覧 */
.gl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap-y) var(--gap-x); margin: 12px 0 0; padding: 0; list-style: none; }
.card { width: calc((100% - var(--gap-x) * (var(--cols) - 1)) / var(--cols)); }
.card[hidden] { display: none; }
.card__link { display: block; text-decoration: none; text-align: center; transition: transform .15s; }
.card__shot { display: block; aspect-ratio: 390 / 844; overflow: hidden; border: 1px solid var(--c-rule); border-radius: var(--r-card); background: var(--c-skeleton); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; }
.card__kind { display: block; margin-top: 10px; color: var(--c-ink); font-size: var(--fs-kind); font-weight: 700; line-height: 1.5; text-wrap: balance; }
.card__name { display: block; margin-top: 4px; color: var(--c-sub); font-size: var(--fs-name); line-height: 1.5; text-wrap: balance; }
@media (hover: hover) { .card__link:hover { transform: translateY(-3px); } }
.card__link:active { transform: scale(.98); }
.card.is-in { animation: gl-in .18s ease-out; }
@keyframes gl-in { from { opacity: 0; } to { opacity: 1; } }

/* 0件 */
.gl-empty { padding: 40px 0 8px; text-align: center; }
.gl-empty[hidden] { display: none; }
.gl-empty h2 { margin: 0; color: var(--c-ink); font-family: var(--ff-head); font-weight: 900; font-size: var(--fs-band); line-height: 1.5; }
.gl-empty p { margin: .5em 0 1.25em; }
.gl-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 下の帯とフッター */
.gl-band { margin-top: clamp(3rem, 2rem + 4vw, 5rem); padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); background: var(--c-band); text-align: center; }
.gl-band h2 { margin: 0 0 1rem; color: var(--c-ink); font-family: var(--ff-head); font-weight: 900; font-size: var(--fs-band); line-height: 1.5; font-feature-settings: "palt"; }
.gl-note { margin: 1.25rem 0 0; color: var(--c-sub); font-size: var(--fs-name); }
.gl-foot { padding-block: 24px 32px; text-align: center; color: var(--c-sub); font-size: var(--fs-name); }
.gl-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 8px; }
.gl-foot__links a { display: inline-block; padding-block: 10px; }
.gl-foot__copy { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card__link { transition: none; }
  .card__link:hover, .card__link:active, .btn:active { transform: none; }
  .card.is-in { animation: none; }
}
