/* ============ tokens ============ */
:root {
  --ink: #222222;
  --ink-2: #6a6a6a;
  --ink-3: #8c8c8c;
  --line: #ebebeb;
  --line-2: #dddddd;
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --accent: #222222;
  --accent-ink: #444444;
  --grad: #222222;
  --ok: #008a05;
  --warn: #b35c00;
  --err: #c13515;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --sh-2: 0 6px 20px rgba(0, 0, 0, 0.12);
  --sh-3: 0 8px 28px rgba(0, 0, 0, 0.18);
  --font: 'Plus Jakarta Sans', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr: 80px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

/* ============ buttons ============ */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r-sm); background: var(--grad); color: #fff; font-weight: 600; font-size: 16px; transition: filter 0.2s, transform 0.1s; white-space: nowrap; }
.btn-primary:hover { background: #000; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled, .btn-primary.is-disabled { background: var(--line-2); color: #fff; filter: none; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid var(--ink); font-weight: 600; font-size: 15px; background: #fff; transition: background 0.15s; }
.btn-outline:hover { background: var(--bg-2); }
.btn-dark { height: 48px; padding: 0 24px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; }
.btn-dark:disabled { background: var(--line-2); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--ink); font-weight: 600; background: #fff; transition: background 0.15s; white-space: nowrap; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.linkbtn { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-2); transition: background 0.15s; }
.iconbtn:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.iconbtn:disabled { opacity: 0.3; }
.iconbtn--danger:hover:not(:disabled) { color: var(--err); }

/* ============ header ============ */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand__mark { height: 34px; display: block; flex: none; }
.brand__mark img { height: 100%; width: auto; }
.brand__word { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand__word b { font-weight: 800; }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hdr__event { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--sh-1); font-weight: 600; font-size: 14px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

.pill { display: flex; align-items: center; height: 64px; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--sh-1); background: #fff; padding: 0 8px 0 0; transition: box-shadow 0.2s; }
.pill:focus-within { box-shadow: var(--sh-2); }
.pill__seg { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 24px; border-radius: 999px; position: relative; }
.pill__seg + .pill__seg::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line-2); }
.pill__seg--input { width: 320px; cursor: text; }
.pill__seg--input:focus-within { background: var(--bg-2); }
.pill__seg--input:focus-within::before, .pill__seg--input:focus-within + .pill__seg::before { opacity: 0; }
.pill__label { font-size: 12px; font-weight: 700; }
.pill__value { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pill input { border: 0; outline: 0; background: transparent; font-size: 16px; width: 100%; padding: 0; }
.pill input::placeholder { color: var(--ink-3); }
.pill__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }

/* ============ category bar ============ */
.cats { position: sticky; top: var(--hdr); z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line); }
.cats__in { display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; padding-top: 14px; }
.cats__in::-webkit-scrollbar { display: none; }
.cats__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 12px; border-bottom: 2px solid transparent; color: var(--ink-2); opacity: 0.8; font-size: 12px; font-weight: 600; white-space: nowrap; position: relative; transition: color 0.15s, opacity 0.15s, border-color 0.15s; flex: none; }
.cats__item:hover { opacity: 1; color: var(--ink); border-bottom-color: var(--line-2); }
.cats__item.is-on { opacity: 1; color: var(--ink); border-bottom-color: var(--ink); }

/* ============ home ============ */
.home { padding-block: 32px 64px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.intro h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 8px; }
.intro__sub { color: var(--ink-2); max-width: 40em; font-size: 16px; }
.intro__facts { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.intro__facts div { padding: 12px 22px; }
.intro__facts div + div { border-left: 1px solid var(--line-2); }
.intro__facts dt { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.intro__facts dd { font-size: 18px; font-weight: 700; white-space: nowrap; }

.group + .group { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.group__head { margin-bottom: 20px; }
.group__head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.group__head p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
/* 過去の大会チップは左下（右下は丸い顔写真の場所） */
.card__when { position: absolute; pointer-events: none; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(34, 34, 34, 0.82); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--past { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1128px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }

.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__main { display: block; }
.card__img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); }
.card__badge { position: absolute; pointer-events: none; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.96); font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__txt { display: flex; flex-direction: column; font-size: 15px; }
.card__name { font-weight: 700; font-size: 16px; }
.card__role, .card__co { color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.card__role { -webkit-line-clamp: 2; min-height: calc(1.55em * 2); line-height: 1.55; }
.card__co { -webkit-line-clamp: 1; font-size: 14px; }
.card__based { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding-right: 128px; height: 28px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__based svg { flex: none; }
.card__basedTxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__icons { position: absolute; right: 0; bottom: 0; display: flex; gap: 4px; }
.card__ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid transparent; transition: border-color 0.15s, background 0.15s; }
.card__ico:hover { border-color: var(--line-2); background: var(--bg-2); }
.is-empty { color: var(--ink-3) !important; font-style: italic; font-weight: 500 !important; }
@media (max-width: 560px) {
  .card__txt { font-size: 13px; }
  .card__name { font-size: 15px; }
  .card__co, .card__based { font-size: 12.5px; }
  .card__based { padding-right: 66px; }
  .card__badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 11px; }
  .card__ico:not(.card__ico--bni):nth-child(n+3) { display: none; }
}

.empty { text-align: center; padding: 64px 0; color: var(--ink-2); display: grid; justify-items: center; gap: 14px; }

/* ============ detail ============ */
.detail { padding-block: 20px 64px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 8px 12px 8px 6px; margin-left: -6px; border-radius: var(--r-sm); }
.backlink:hover { background: var(--bg-2); }

.sheet { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; margin-top: 12px; align-items: start; }
.sheet__aside { position: sticky; top: calc(var(--hdr) + 32px); }

.idblock { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 32px; }
.idblock__photo { aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); box-shadow: var(--sh-2); }
.idblock__photo img { width: 100%; height: 100%; object-fit: cover; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.idblock__name { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: 12px; }
.idblock__kana { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.idblock__role { font-size: clamp(17px, 2vw, 20px); font-weight: 600; margin-top: 12px; line-height: 1.45; }
.idblock__co { color: var(--ink-2); margin-top: 4px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 20px 20px 20px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.facts dd { font-weight: 700; font-size: 16px; margin-top: 4px; line-height: 1.4; }

.sec { padding-block: 32px; border-bottom: 1px solid var(--line); }
.sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.sec__no { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sec__lead { font-size: 17px; line-height: 1.75; max-width: 42em; }
.coming { color: var(--ink-3); font-style: italic; }
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.asks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; line-height: 1.55; }
.asks__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.linkrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.linkrows a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); transition: box-shadow 0.2s, border-color 0.2s; }
.linkrows a:hover { box-shadow: var(--sh-1); border-color: var(--ink-3); }
.linkrows__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.linkrows__txt { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.linkrows__txt b, .linkrows__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkrows__txt small { color: var(--ink-2); font-size: 13px; }
.linkrows__go { color: var(--ink-3); flex: none; }

.webcard { border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 24px; display: grid; gap: 18px; }
.webcard__who { display: flex; align-items: center; gap: 12px; }
.webcard__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.webcard__who div { display: flex; flex-direction: column; overflow: hidden; }
.webcard__who b { font-size: 16px; }
.webcard__who small { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.webcard .btn-primary { width: 100%; height: 52px; }
.webcard .btn-outline { width: 100%; }
.webcard__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.webcard__icons a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.15s, box-shadow 0.15s; }
.webcard__icons a:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.webcard__booth { text-align: center; color: var(--ink-2); font-size: 13px; padding-top: 14px; border-top: 1px solid var(--line); }

.mbar { display: none; }

.more { margin-top: 56px; }
.more h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.scroller li { scroll-snap-align: start; }

.notfound { padding-block: 80px; display: grid; justify-items: start; gap: 16px; }

@media (max-width: 1080px) {
  .sheet { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .asks, .linkrows { grid-template-columns: 1fr; }
  .scroller { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (max-width: 860px) {
  .sheet { grid-template-columns: 1fr; gap: 0; }
  .sheet__aside { display: none; }
  .idblock { grid-template-columns: 1fr; gap: 20px; justify-items: start; padding-bottom: 24px; }
  .idblock__photo { width: min(240px, 60vw); }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
  .facts div + div { border-top: 1px solid var(--line); }
  .facts dd { margin-top: 0; text-align: right; font-size: 15px; }
  .sec { padding-block: 26px; }
  .sec h2 { font-size: 20px; }
  .sec__lead { font-size: 16px; }
  .scroller { grid-auto-columns: 44%; gap: 14px; }
  .detail { padding-bottom: 120px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .mbar__who { display: flex; flex-direction: column; overflow: hidden; }
  .mbar__who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar__who small { font-size: 12px; color: var(--ink-2); text-decoration: underline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar__btns { display: flex; align-items: center; gap: 8px; flex: none; }
  .mbar__bni { width: 48px; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); display: grid; place-items: center; }
  .mbar .btn-primary { height: 48px; padding: 0 20px; font-size: 15px; flex: none; }
}

/* ============ footer ============ */
.ftr { background: var(--bg-2); border-top: 1px solid var(--line); }
.ftr__in { padding-block: 24px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.ftr__right { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.ftr__login { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============ header responsive ============ */
@media (max-width: 1128px) {
  .pill__seg--dates { display: none; }
  .pill__seg--input { width: 260px; }
}
@media (max-width: 860px) {
  :root { --hdr: 132px; }
  .hdr__in { grid-template-columns: 1fr auto; grid-template-rows: 64px 60px; height: auto; padding-bottom: 8px; row-gap: 0; }
  .hdr .pill, .hdr .hdr__event { grid-column: 1 / -1; grid-row: 2; }
  .hdr .hdr__right { grid-column: 2; grid-row: 1; }
  .pill { height: 56px; }
  .pill__seg { padding: 0 18px; }
  .pill__seg--input { flex: 1; width: auto; }
  .hdr__event { justify-content: center; height: 44px; }
  .hdr--admin { --hdr: 64px; }
}
@media (max-width: 860px) {
  body:has(.hdr__event) { --hdr: 128px; }
}
@media (max-width: 480px) {
  .brand__word { font-size: 16px; }
  .brand__mark { height: 28px; }
  .pill__seg--static { display: none; }
  .pill__seg--input::before { display: none; }
  .intro__facts { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .intro__facts div { padding: 10px 14px; }
  .intro__facts dd { font-size: 16px; white-space: normal; }
  .cats__in { gap: 28px; }
}

/* ============ admin ============ */
.admin { min-height: 100vh; background: #fff; }
.hdr--admin .hdr__in { grid-template-columns: 1fr auto; height: 72px; }
.admin__brand { display: flex; align-items: center; gap: 16px; }
.admin__title { font-weight: 700; font-size: 15px; padding-left: 16px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.whoami { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; }
.whoami img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.whoami__initial { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.mockbar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px var(--gutter); background: #fff4e5; color: #7a4a00; font-size: 13px; text-align: center; }
@media (max-width: 860px) {
  .hdr--admin .hdr__in { grid-template-rows: none; height: 64px; padding-bottom: 0; }
  .hide-sm { display: none; }
  .admin__title { display: none; }
  .hdr--admin .brand__word { display: none; }
}

/* login */
.login { padding-block: 48px 80px; display: grid; place-items: center; }
.login__card { width: 100%; max-width: 520px; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-2); display: grid; gap: 16px; }
.login__card h1 { font-size: 22px; font-weight: 700; }
.login__lead { color: var(--ink-2); }
.login__note { font-size: 13px; color: var(--ink-3); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; margin-block: 8px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.login__list { display: grid; gap: 8px; }
.login__list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.login__list button:hover { border-color: var(--ink); box-shadow: var(--sh-1); }
.login__list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.login__list .whoami__initial { width: 40px; height: 40px; }
.login__list span:not(.whoami__initial) { flex: 1; display: flex; flex-direction: column; }
.login__list small { color: var(--ink-2); font-size: 13px; }
.login__list .is-admin { background: var(--bg-2); }

/* fields */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 22px; }
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field__label { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.field__label em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-2); padding: 2px 7px; border-radius: 999px; }
.field__hint { font-size: 13px; color: var(--ink-2); }
.field > input { height: 52px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; font-size: 16px; background: var(--bg-2); }
.field__warn, .field__err { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.field__warn { color: var(--warn); }
.field__err { color: var(--err); }
.input { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input.is-over { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.input input, .input textarea { width: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 13px 64px 13px 14px; border-radius: var(--r-sm); resize: vertical; }
.input textarea { min-height: 120px; line-height: 1.6; padding: 12px 14px 28px; }
.counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.input textarea ~ .counter { top: auto; bottom: 8px; transform: none; }
.counter.is-over { color: var(--err); font-weight: 700; }
.input--sub { margin-top: 8px; }
.input--sub input { padding-block: 10px; font-size: 16px; }

.catpick { display: flex; flex-wrap: wrap; gap: 8px; }
.catpick button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.catpick button:hover { border-color: var(--ink); }
.catpick button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.catpick button small { font-size: 11px; font-weight: 500; opacity: 0.7; }
.row--single { list-style: none; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; padding-block: 32px 140px; align-items: start; }
.editor__head { display: grid; gap: 10px; margin-bottom: 24px; }
.editor__head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.editor__head p { color: var(--ink-2); }
.editor__head .backlink { justify-self: start; }
.progress { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.progress__bar, .meter { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; max-width: 280px; }
.progress__bar span, .meter span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.3s; }
.progress__bar span.is-done, .meter span.is-done { background: var(--ok); }
.progress__txt { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; }
.progress__txt small { font-weight: 500; color: var(--ink-2); font-size: 12.5px; }

.esec { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; }
.esec + .esec { margin-top: 16px; }
.esec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.esec__head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.esec__head h2 span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.esec__desc { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }
.esec__head + .field { margin-top: 16px; }
.esec__count { font-size: 13px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.photo { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo__img { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-3); box-shadow: var(--sh-1); }
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo__actions { display: grid; gap: 8px; justify-items: start; }
.photo__actions small { color: var(--ink-2); font-size: 13px; }

.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border-radius: var(--r); background: var(--bg-2); }
.row__no { width: 32px; height: 32px; margin-top: 8px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1px solid var(--line-2); }
.row__no--icon { border: 0; box-shadow: var(--sh-1); color: var(--ink-3); }
.row__body { display: grid; gap: 6px; }
.row__detect { font-size: 13px; color: var(--ink-2); }
.row__tools { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row__no { margin-top: 0; }
  .row__tools { flex-direction: row; justify-content: flex-end; }
}
.addbtn { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px dashed var(--ink-3); border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.addbtn:hover:not(:disabled) { border-color: var(--ink); background: var(--bg-2); }
.addbtn:disabled { opacity: 0.4; }

.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { width: 48px; height: 32px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background 0.2s; }
.toggle__track span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.toggle input:checked + .toggle__track { background: var(--ink); }
.toggle input:checked + .toggle__track span { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--ink); outline-offset: 2px; }
.toggle__txt { display: flex; flex-direction: column; }
.toggle__txt small { color: var(--ink-2); font-size: 13px; }

.editor__preview { position: sticky; top: 104px; }
.pv { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.pv__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pv__bar b { font-size: 14px; margin-right: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.pv__body { padding: 20px; max-height: calc(100vh - 220px); overflow-y: auto; }
.pv__card { max-width: 280px; margin-inline: auto; background: #fff; padding: 14px; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.pv__body--detail { background: #fff; }
.pv__note { display: flex; gap: 6px; align-items: flex-start; padding: 10px 14px; font-size: 12.5px; color: var(--warn); background: #fff; border-top: 1px solid var(--line); }
.pv__note svg { flex: none; margin-top: 2px; }

/* プレビュー内の詳細ページは、狭い幅の見え方に固定する */
.sheet--preview { grid-template-columns: 1fr; gap: 0; margin: 0; }
.sheet--preview .sheet__aside { position: static; margin-top: 24px; }
.sheet--preview .idblock { grid-template-columns: 1fr; gap: 16px; padding-bottom: 20px; }
.sheet--preview .idblock__photo { width: 112px; }
.sheet--preview .idblock__name { font-size: 26px; }
.sheet--preview .idblock__role { font-size: 16px; }
.sheet--preview .facts { grid-template-columns: 1fr; }
.sheet--preview .facts div, .sheet--preview .facts div + div { padding: 10px 0; border-left: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sheet--preview .facts div + div { border-top: 1px solid var(--line); }
.sheet--preview .facts dd { margin-top: 0; text-align: right; font-size: 14px; }
.sheet--preview .sec { padding-block: 20px; }
.sheet--preview .sec h2 { font-size: 17px; }
.sheet--preview .sec__lead { font-size: 14.5px; }
.sheet--preview .asks, .sheet--preview .linkrows { grid-template-columns: 1fr; }
.sheet--preview .asks li { font-size: 13.5px; padding: 12px; }
.sheet--preview .webcard { box-shadow: none; }

@media (max-width: 1080px) {
  .editor { grid-template-columns: 1fr; gap: 24px; }
  .editor__preview { position: static; order: -1; }
  .pv__body { max-height: 460px; }
}
@media (max-width: 640px) {
  .esec { padding: 18px 16px; }
  .editor { padding-top: 20px; }
}

.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06); transform: translateY(110%); transition: transform 0.25s ease; }
.savebar:not(.is-shown) { visibility: hidden; }
.savebar.is-shown { transform: none; }
.savebar__in { display: flex; align-items: center; gap: 12px; padding-block: 14px calc(14px + env(safe-area-inset-bottom)); }
.savebar__msg { margin-right: auto; font-weight: 600; font-size: 14px; }
.savebar__err { display: inline-flex; align-items: center; gap: 6px; color: var(--err); }
@media (max-width: 640px) {
  .savebar__in { flex-wrap: wrap; }
  .savebar__msg { width: 100%; font-size: 13px; }
  .savebar .btn-dark { flex: 1; }
}

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--sh-3); max-width: calc(100% - 32px); }
.toast--error { background: var(--err); }

/* dashboard */
.dash { padding-block: 32px 80px; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.dash__head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.dash__head p { color: var(--ink-2); max-width: 44em; margin-top: 6px; }
.dash__stats { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.dash__stats div { padding: 12px 22px; display: flex; flex-direction: column; align-items: center; }
.dash__stats div + div { border-left: 1px solid var(--line-2); }
.dash__stats b { font-size: 22px; }
.dash__stats small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.dash__list { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.dash__row { display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.3fr) 160px auto; gap: 16px; align-items: center; padding: 14px 20px; }
.dash__row + .dash__row { border-top: 1px solid var(--line); }
.dash__order { margin: -8px 0 18px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg-2); font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.dash__order b { color: var(--ink); }
.dash__group { padding: 9px 20px; background: var(--bg-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-top: 1px solid var(--line); }
.dash__group:first-child { border-top: 0; }
.dash__event { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.dash__event select { height: 36px; min-width: 140px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 8px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); }
.dash__event select:disabled { opacity: 0.5; }
.dash__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.dash__who { display: flex; flex-direction: column; overflow: hidden; }
.dash__who small { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__status { display: grid; gap: 4px; }
.dash__status .meter { max-width: none; height: 6px; }
.dash__missing { color: var(--warn); font-size: 12.5px; }
.dash__ok { color: var(--ok); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.dash__gap { color: var(--ink-2); font-size: 12px; }
.dash__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dash__meta small { color: var(--ink-3); font-size: 12px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.badge--on { background: #e8f5e9; color: var(--ok); }
.dash__foot { margin-top: 20px; text-align: right; color: var(--ink-2); font-size: 13px; }
@media (max-width: 860px) {
  .dash__row { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 10px; padding: 14px 16px; }
  .dash__avatar { width: 44px; height: 44px; }
  .dash__status { grid-column: 1 / -1; grid-row: 2; }
  .dash__meta { grid-column: 1 / -1; grid-row: 3; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .dash__row > .btn-ghost { grid-column: 3; grid-row: 1; }
}

/* ============ register (simple) ============ */
.reg { max-width: 760px; padding-block: 28px 140px; }
.reg__head { margin-bottom: 20px; }
.reg__head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.reg__head p { color: var(--ink-2); margin-top: 6px; }
.reg__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px !important; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--ink-2) !important; }
.reg__status.is-on { background: #e8f5e9; color: var(--ok) !important; }
.reg .esec + .esec { margin-top: 16px; }
.reg__hints { list-style: disc; padding-left: 20px; margin: -8px 0 12px; color: var(--ink-2); font-size: 14px; display: grid; gap: 2px; }
.bigta { width: 100%; min-height: 220px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; font-size: 16px; line-height: 1.7; resize: vertical; background: #fff; }
.bigta:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.reg__aiRow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.reg__stale { color: var(--warn); font-size: 13px; }
.reg__pv { padding: 16px; background: var(--bg-2); border-radius: var(--r); }
.reg__pv.pv__body--detail { background: #fff; border: 1px solid var(--line-2); }
.reg__fine { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.reg__fine a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--ink); }
.reg__err { margin-top: 16px; font-size: 15px; }
.photo__img--btn { cursor: pointer; border: 0; padding: 0; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--ink-2); padding: 24px 0; }
.show-sm { display: none; }
.dash__avatar--none { display: grid; place-items: center; background: var(--bg-2); color: var(--ink-3); }
.dash__orphans { margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.dash__orphans h2 { font-size: 16px; font-weight: 700; }
.dash__orphans p { color: var(--ink-2); font-size: 14px; margin: 4px 0 10px; }
.dash__orphans li { font-size: 14px; padding: 4px 0; }
.input textarea[rows="3"] { min-height: 90px; padding-bottom: 12px; }
@media (max-width: 860px) {
  .show-sm { display: inline; }
  .hdr--admin .hdr__right { gap: 6px; }
}

/* phones: only the category bar sticks (header + bar = 210px of pinned chrome otherwise) */
@media (max-width: 860px) {
  .hdr:not(.hdr--admin) { position: static; }
  .cats { top: 0; }
  body:has(.mbar) .ftr__in { padding-bottom: calc(24px + 84px + env(safe-area-inset-bottom)); }
  .backlink { padding-block: 11px; }
  .ftr__login { display: inline-block; padding: 8px 0; }
}
.preview-note { margin: -16px 0 24px; padding: 10px 14px; border-radius: var(--r-sm); background: #fff8e6; color: #7a4a00; font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* ============ gallery (service photos) ============ */
.gal { position: relative; width: 100%; height: 100%; background: var(--bg-2); border-radius: inherit; overflow: hidden; }
/* サービス写真が無い人：仮の画像（カテゴリのアイコン）＋右下に丸い顔写真＝全員同じ形 */
.gal--empty { display: grid; place-items: center; background: linear-gradient(160deg, #f5f5f5, #e8e8e8); }
.gal__ph { display: grid; justify-items: center; gap: 8px; color: #b4b4b4; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.gal--big .gal__ph { font-size: 14px; }
.gal__track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.gal__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gal__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); box-shadow: 0 0 2px rgba(0,0,0,0.35); transition: transform 0.15s, background 0.15s; }
.gal__dots span.is-on { background: #fff; transform: scale(1.25); }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.92); box-shadow: var(--sh-1); display: grid; place-items: center; opacity: 0; transition: opacity 0.15s; }
.gal:hover .gal__nav:not(:disabled) { opacity: 1; }
.gal__nav:disabled { visibility: hidden; }
.gal__nav:hover { background: #fff; }
.gal__nav:focus-visible { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
/* 写真部分のリンク（カード）。矢印・ドット・顔写真はリンクの外に重ねる */
.gal__link { display: block; width: 100%; height: 100%; }
.gal__link--ph { position: absolute; inset: 0; display: grid; place-items: center; }
/* カード：小さめの矢印（マウスを乗せたときだけ出る） */
.card__img .gal__nav { width: 30px; height: 30px; z-index: 1; }
.card__img .gal__nav--l { left: 8px; }
.card__img .gal__nav--r { right: 8px; }
/* 写真が6枚以上のときはドットを5個に絞り、端を小さくして流す */
.gal__dots span.is-small { transform: scale(0.6); }
/* タッチ端末は矢印を出さない（横スワイプで送る・見えないボタンがタップを横取りしないように） */
@media (hover: none) { .gal__nav { display: none; } }
/* 詳細ページの「More members」の横並びの中では、写真をスワイプで送らない
   （入れ子の横スクロールになり、行を送るつもりの指が写真をめくってしまう）。PCの矢印での送りは効く */
.scroller .gal__track { overflow-x: hidden; }
/* 1枚目からさらに横に払っても、ブラウザの「戻る」に飛ばない（Mac のトラックパッド） */
.grid .gal__track, .hero .gal__track { overscroll-behavior-x: contain; }
.gal__nav--l { left: 12px; }
.gal__nav--r { right: 12px; }
.avatar { position: absolute; right: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2.5px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.25); background: var(--bg-2); pointer-events: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card__img .gal__dots { bottom: 8px; }
.card__img .avatar { width: 48px; height: 48px; right: 10px; bottom: 10px; }
/* （カードの写真ギャラリーは写真を送るUIなので、旧版のホバー拡大はやめた） */
@media (max-width: 560px) { .card__img .avatar { width: 40px; height: 40px; right: 8px; bottom: 8px; } }

/* detail: big gallery + round avatar */
.hero { aspect-ratio: 16 / 10; max-height: 460px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); margin-bottom: 24px; }
.hero .gal { border-radius: var(--r-xl); }
.hero .avatar { display: none; }
.hero .gal__dots { bottom: 14px; }
.hero .gal__dots span { width: 8px; height: 8px; }
.idblock--avatar { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
.idblock--avatar .idblock__photo { width: 112px; border-radius: 50%; box-shadow: var(--sh-1); border: 3px solid #fff; }
.idblock__person { font-size: 16px; font-weight: 600; margin-top: 8px; }
.idblock__person + .idblock__role { margin-top: 4px; font-weight: 500; color: var(--ink-2); }
@media (max-width: 860px) {
  .hero { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .hero .gal { border-radius: 0; }
  .idblock--avatar { grid-template-columns: 1fr; }
  .idblock--avatar .idblock__photo { width: 88px; }
  .idblock--hero .idblock__photo { margin-top: -60px; position: relative; z-index: 1; }
}

/* photos manager (supplier / admin) */
.pm { display: grid; gap: 22px; }
.pm__label { display: grid; gap: 2px; margin-bottom: 10px; }
.pm__label b { font-size: 15px; }
.pm__label small { color: var(--ink-2); font-size: 13px; }
.pm__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.pm__item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); }
.pm__item img { width: 100%; height: 100%; object-fit: cover; }
.pm__first { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(34,34,34,0.85); color: #fff; font-size: 11px; font-weight: 700; }
.pm__tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,0.45)); }
.pm__btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.95); display: grid; place-items: center; color: var(--ink); }
.pm__btn:disabled { opacity: 0.35; }
.pm__btn--del:hover:not(:disabled) { color: var(--err); }
.pm__add { border: 1px dashed var(--ink-3); background: #fff; }
.pm__add button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pm__add button:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.pm__row--face .photo__img { width: 88px; height: 88px; }
.spin--dark { border-color: rgba(0,0,0,0.15); border-top-color: var(--ink); }

/* password change (collapsed) */
.pw { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 14px 18px; margin-top: 16px; }
.pw summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.pw summary::-webkit-details-marker { display: none; }
.pw__body { display: grid; gap: 12px; margin-top: 14px; max-width: 420px; }

/* ---------------------------------------------------------------- 公開サイト（サーバー側レンダリング・server/templates）専用
   SPA と同じ1本の CSS を /static/site.css として配る＝カード・詳細ページの見た目は SPA のプレビューと同じ */
.pill--site { height: 56px; }
.pill--site .pill__seg--input { width: 360px; }
.pill--site .pill__btn { width: 42px; height: 42px; border: 0; cursor: pointer; }
.hdr__nav { justify-self: end; display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 14px; }
.hdr__nav a { padding: 8px 2px; border-bottom: 2px solid transparent; }
.hdr__nav a:hover { border-bottom-color: var(--ink); }
.intro--site h1 { max-width: 20em; }
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span:last-child { color: var(--ink); font-weight: 600; }
.areas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 28px; }
.areas__label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.areas .chip { background: #fff; transition: border-color 0.15s, background 0.15s; }
.areas .chip:hover { border-color: var(--ink); }
.areas .chip--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.areas__clear { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.more { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.about { max-width: 46em; padding-block: 8px 48px; }
.about h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 18px; }
.about .sec p { font-size: 16px; line-height: 1.75; }
.about .sec p + p { margin-top: 14px; }
.ftr__right a { font-weight: 600; }
@media (max-width: 860px) {
  .hdr__in { grid-template-columns: auto 1fr auto; }
  .pill--site .pill__seg--input { width: 100%; }
}
@media (max-width: 560px) {
  .pill--site { height: 48px; }
  .pill--site .pill__seg--input { padding: 0 14px; }
  .pill--site .pill__label { display: none; }
  .hdr__nav { display: none; }
}

/* ---------------------------------------------------------------- 登録画面の下書き（2026-09-17）＋ BNI 公開名簿の照合表示 */
.reg__pages { margin: 12px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.reg__pages li { display: flex; align-items: flex-start; gap: 6px; }
.reg__pages li svg { flex: none; margin-top: 2px; color: var(--ok); }
.reg__pages li.is-ng { color: var(--warn); }
.reg__pages li.is-ng svg { color: var(--warn); }
.linkbtn--sm { font-size: 12px; padding: 2px 6px; margin-left: 6px; }
.field__ok { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ok); }
p.field__hint { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.bnicheck { flex-wrap: wrap; }
.dash__status .linkbtn--sm { color: var(--ink); }
