/* 作品一覧（index.html）だけの見た目 */
.is-home .site-mark { display: grid; }
.is-home .site-name { display: inline; }
.g-spacer { flex: 1; }
@media (max-width: 640px) { .is-home .g-badge { display: inline-flex; font-size: 11.5px; padding: 3px 9px; } }

.g-main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) var(--s12); }
.g-hero { padding: 44px 0 26px; max-width: 760px; }
.g-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent-deep); letter-spacing: .06em; }
.g-title { margin-top: 10px; font-size: 38px; line-height: 1.3; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.g-lead { margin-top: 16px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.g-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.g-points li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
}
.g-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.g-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.g-filter button {
  height: 36px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.g-filter button:hover { border-color: var(--brand-2); color: var(--brand-2); }
.g-filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.g-filter .n { font-weight: 500; opacity: .7; margin-left: 4px; }

.g-section { margin-top: 36px; }
.g-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; }
.g-sec-head h2 { font-size: 20px; font-weight: 800; }
.g-sec-note { font-size: 13.5px; color: var(--ink-3); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
#soonGrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card.ready:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--r-l); }
.card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-thumb { aspect-ratio: 16 / 9; background: var(--brand-soft); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-pattern {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .55) 0 2px, transparent 3px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--pat-a, #e1ebef), var(--pat-b, #d3e1e7));
}
.card-pattern svg { width: 54px; height: 54px; stroke: var(--pat-ink, #235469); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.card-body { padding: 16px 18px 6px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; }
.card-no { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.card-title { margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.45; }
.card-sum { margin-top: 6px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-tags span { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; background: var(--sunken); color: var(--ink-2); }
.card-foot { padding: 12px 18px 16px; display: flex; align-items: center; }
.card-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--brand-2); }
.card.ready:hover .card-go { color: var(--accent-deep); }
.card-go .ico { width: 18px; height: 18px; transition: transform .18s; }
.card.ready:hover .card-go .ico { transform: translateX(3px); }
.card.soon { box-shadow: none; background: rgba(255, 255, 255, .6); }
.card.soon .card-thumb { aspect-ratio: 16 / 7; filter: saturate(.55); }
.card.soon .card-title { font-size: 15.5px; color: var(--ink-2); }
.card.soon .card-sum { font-size: 13px; color: var(--ink-3); }
.card-soon { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.g-empty { margin-top: 32px; padding: 40px; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-l); }
.g-foot { border-top: 1px solid var(--line); padding: 24px var(--gutter) 40px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 640px) {
  .g-hero { padding: 32px 0 20px; }
  .g-title { font-size: 27px; }
  .g-lead { font-size: 15px; line-height: 1.85; }
  .g-points li { font-size: 13px; }
  .g-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 8px; scrollbar-width: none; }
  .g-filter::-webkit-scrollbar { display: none; }
  .g-filter button { flex: none; }
  .g-grid, #soonGrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .g-section { margin-top: 28px; }
  .card.soon { flex-direction: row; align-items: stretch; }
  .card.soon .card-thumb { aspect-ratio: auto; width: 76px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .card.soon .card-pattern svg { width: 30px; height: 30px; }
  .card.soon .card-body { padding: 12px 14px 12px; }
  .card.soon .card-foot { display: none; }
  .card.soon .card-sum { display: none; }
  .card.soon .card-title { margin-top: 2px; font-size: 14.5px; }
  .card.soon .card-tags { margin-top: 6px; }
}
