:root {
  --bg: #fffafb; --fg: #2a2226; --muted: #6f6268; --accent: #d14b6f; --line: #f0dde3; --card: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #19141a; --fg: #f2e9ec; --muted: #b3a3aa; --accent: #ff8fab; --line: #3a2d34; --card: #221b22; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.8 system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
main { max-width: 1040px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.7rem; line-height: 1.4; } h2 { font-size: 1.25rem; margin-top: 2.2rem; border-left: 4px solid var(--accent); padding-left: .6rem; }
.site-header { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-header nav a { color: var(--fg); text-decoration: none; }
.logo { font-weight: 700; text-decoration: none; }
.search { margin-left: auto; } .search input { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); width: 15rem; max-width: 100%; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; max-width: 1040px; margin: 8px auto 0; padding: 0 16px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.answer { font-size: 1.05rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.note, .credit, .by { color: var(--muted); font-size: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.card h3 { margin: 8px 0 4px; font-size: 1.05rem; } .card a { text-decoration: none; color: var(--fg); }
.card .summary { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { display: inline-block; font-size: .8rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.tags.big a { font-size: .95rem; padding: 4px 14px; }
.profile-head { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 24px; align-items: start; }
.profile-head figure { margin: 0; }
.kana { font-size: .9rem; color: var(--muted); font-weight: 400; }
.tagline { display: block; font-size: 1rem; color: var(--muted); font-weight: 400; }
@media (max-width: 680px) { .profile-head { grid-template-columns: 1fr; } .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.sns { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.sns a, .button, button { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; border: 0; font: inherit; cursor: pointer; }
.works { list-style: none; padding: 0; } .works li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.works time, .news time { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.sns.support a { background: var(--card); color: var(--accent); border: 1px solid var(--accent); }
.pr { font-size: .7rem; border: 1px solid var(--muted); border-radius: 3px; padding: 0 4px; margin-right: 4px; }
.kind { font-size: .75rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; } .gallery figure { margin: 0; }
.x-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.x-filter button { background: var(--card); color: var(--fg); border: 1px solid var(--line); padding: 4px 12px; font-size: .85rem; }
.x-filter a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--fg); text-decoration: none; background: var(--card); }
.x-filter a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters { margin: 0 0 12px; } .filters .x-filter { margin: 0 0 6px; }
.x-filter details { display: contents; } .x-filter summary { cursor: pointer; font-size: .85rem; color: var(--muted); align-self: center; padding: 4px 6px; }
.x-filter details[open] summary { display: none; }
.x-filter .label { font-size: .85rem; color: var(--muted); align-self: center; margin-right: 4px; }
/* スマホでは絞り込みを1行ずつ横にスクロールさせ、写真が早く見えるようにする */
@media (max-width: 680px) {
  .x-filter, .filters .x-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .x-filter::-webkit-scrollbar { display: none; }
  .x-filter > *, .x-filter details > * { flex: none; white-space: nowrap; }
}
.no-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(135deg, var(--line), var(--card)); color: var(--accent); font-size: 3.5rem; font-weight: 700; }
.more { grid-column: 1 / -1; justify-self: center; margin: 16px 0; padding: 6px 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.x-filter button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.x-posts > [hidden] { display: none; }
.x-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.x-slot { border: 1px dashed var(--line); border-radius: 10px; padding: 16px; min-height: 120px; }
.x-slot.loaded { border: 0; padding: 0; } .x-slot.loaded > a { display: none; }
.card .x-slot { margin-top: 8px; min-height: 80px; }
.x-post { margin: 0; } .card .x-post { margin-top: 8px; }
.card .x-media { aspect-ratio: 4 / 5; } .card .x-media.n1 img, .card .x-media.n1 video { height: 100%; max-height: none; object-fit: cover; }
.x-media { display: grid; gap: 2px; border-radius: 12px; overflow: hidden; background: var(--line); }
.x-media > * { position: relative; display: block; min-height: 0; }
.x-media img, .x-media video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: #000; }
.x-media.n1 img, .x-media.n1 video { height: auto; max-height: 80vh; object-fit: contain; background: var(--card); }
.x-media.n2, .x-media.n3, .x-media.n4 { aspect-ratio: 1; grid-template-columns: 1fr 1fr; }
.x-media.n3, .x-media.n4 { grid-template-rows: 1fr 1fr; } .x-media.n3 span:first-child { grid-row: span 2; }
.x-media .video::after { content: "▶"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; }
.x-post { position: relative; } .x-reveal { display: none; }
.x-sensitive .x-reveal { display: block; position: absolute; inset: 0 0 auto; aspect-ratio: 1; width: 100%; z-index: 1; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 2; }
.x-sensitive .x-reveal b { color: var(--accent); } .x-sensitive .x-media { aspect-ratio: 1; visibility: hidden; }
.x-credit { font-size: .8rem; color: var(--muted); margin-top: 4px; } .x-credit a { color: var(--muted); overflow-wrap: anywhere; } .x-credit .when { white-space: nowrap; } .x-credit b { color: var(--fg); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox[open] { display: grid; grid-template: 1fr auto / 48px 1fr 48px; align-items: center; }
.lightbox img { grid-column: 2; max-width: 100%; max-height: calc(100vh - 72px); margin: auto; object-fit: contain; border-radius: 4px; }
.lightbox button { background: rgb(255 255 255 / .12); color: #fff; font-size: 1.6rem; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.lightbox .lb-prev { grid-column: 1; } .lightbox .lb-next { grid-column: 3; }
.lightbox .lb-close { position: fixed; top: 12px; right: 12px; z-index: 1; }
.lightbox .lb-credit { grid-column: 1 / -1; text-align: center; color: #ddd; padding: 8px 16px 16px; } .lightbox .lb-credit a, .lightbox .lb-credit b { color: #fff; }
.x-media a.zoom { cursor: zoom-in; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; } .faq summary { cursor: pointer; } .faq summary h3 { display: inline; font-size: 1rem; }
.list { border-collapse: collapse; width: 100%; } .list th, .list td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.news { list-style: none; padding: 0; } .news li { padding: 6px 0; }
.search-big { display: flex; gap: 8px; } .search-big input { flex: 1; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; }
.sources ul { font-size: .85rem; word-break: break-all; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 16px; font-size: .8rem; color: var(--muted); max-width: 1040px; margin-inline: auto; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--card); }
