/* atproto Gear Party：生成りの紙に段ボールの箱を並べる市。差し色は柿色（2026-11-03） */
[hidden] { display: none !important; }
:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #2b241c;
  --t2: #6b6157;
  --t3: #9a8f83;
  --rule: #e4dacb;
  --kraft: #d9c3a0;
  --kraft2: #ead9bc;
  --accent: #c4562f;
  --accent-ink: #fffaf2;
  --accent-soft: #f7dfd3;
  --ui: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --body: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1814; --card: #25211c; --ink: #f1e9dc; --t2: #bdb2a4; --t3: #8a8075; --rule: #3a342c;
    --kraft: #6b5638; --kraft2: #3b3127; --accent: #e07a52; --accent-ink: #1b1814; --accent-soft: #4a2e22;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.7 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
h1 { font-size: 24px; line-height: 1.4; margin: 0 0 8px; word-break: auto-phrase; }
h2 { font-size: 17px; margin: 32px 0 8px; }

.top, main, .site { max-width: 960px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.me { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--t2); white-space: nowrap; }
.me-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
main { padding-bottom: 72px; min-height: 60vh; }
.site { padding-bottom: 32px; }
.fine { font-size: 12px; color: var(--t3); }
.fine a { text-decoration: underline; text-underline-offset: 2px; }

/* ボタン。主な操作だけを塗る */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; background: var(--kraft2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--t2); text-decoration: underline; text-underline-offset: 2px; }
.small { font-size: 13px; }
.danger { background: none; border: 0; padding: 0; cursor: pointer; color: #b23a2a; text-decoration: underline; text-underline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }

.note { color: var(--t2); padding: 24px 0; }
.note.error { color: #b23a2a; }
.note.wait::after { content: ""; display: inline-block; width: 1em; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "・"; } 50% { content: "・・"; } 75% { content: "・・・"; } }
.sub { color: var(--t2); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 32px); margin: 0; padding: 10px 18px;
  background: var(--ink); color: var(--paper); border-radius: 12px; font-size: 14px; }
.toast:empty { display: none; }

/* 入口のポスター（ログインする前）。野外のギアの市のポスターの形：画面いっぱいの秋の山に、白い大きな字を積む */
.hero { position: relative; overflow: hidden; color: #fffaf2; margin: 0 -16px; min-height: min(92vh, 860px); display: grid; isolation: isolate; }
@media (min-width: 720px) { .hero { margin: 0; border-radius: 20px; min-height: 720px; } }
.hero .scape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.poster { display: grid; align-content: space-between; gap: 28px; padding: 40px 24px 28px; text-align: center; }
.title { margin: 0; display: grid; justify-items: center; font-family: "Outfit", var(--ui); font-weight: 800; line-height: .9; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(40, 14, 4, .35); word-break: normal; }
.t-small { font-size: clamp(20px, 5vw, 30px); font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.t-mid { font-size: clamp(26px, 7.4vw, 46px); font-weight: 700; letter-spacing: .01em; margin-bottom: 4px; }
.t-big { font-size: clamp(84px, 27vw, 168px); }
.when { margin: 0; font: 700 clamp(22px, 6.4vw, 36px)/1.2 "Outfit", var(--ui); letter-spacing: .03em; display: grid; gap: 4px; }
.when span { font: 500 14px/1.5 var(--ui); letter-spacing: .02em; opacity: .92; }
.venue { justify-self: center; margin: -12px 0 0; padding: 6px 22px; border: 1.5px solid rgba(255, 250, 242, .9); border-radius: 999px; font-size: 14px; letter-spacing: .08em; }
.hero-foot { display: grid; gap: 12px; justify-items: center; max-width: 440px; margin: 0 auto; width: 100%; }
.hero-foot p { margin: 0; font-size: 14px; line-height: 1.7; text-shadow: 0 1px 8px rgba(40, 14, 4, .5); }
.hero .signin { width: 100%; }
.hero .signin input { background: rgba(255, 250, 242, .95); border-color: transparent; color: #2b241c; }
.hero .signin input::placeholder { color: #8a7d70; }
.hero .signin .btn.primary { background: #fffaf2; border-color: #fffaf2; color: #8a3420; flex: 1 1 100%; }
.peek { font-size: 14px; color: #fffaf2; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* 入口 */
.intro { padding: 24px 0 8px; max-width: 640px; }
.intro h1 { font-size: clamp(24px, 4.6vw, 34px); line-height: 1.35; }
.intro p { color: var(--t2); margin: 0 0 20px; }
.signin { display: flex; flex-wrap: wrap; gap: 10px; }
.signin input { flex: 1 1 220px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--card); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--card); cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* 箱。段ボールの縁で囲み、上に持ち主の札を付ける */
.boxes, .my-boxes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.my-boxes { grid-template-columns: 1fr; }
.box { background: var(--kraft2); border: 2px solid var(--kraft); border-radius: 10px; padding: 12px; }
.box-owner { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t2); margin: 0 0 10px 4px; }
.box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px 4px; font-size: 14px; }
.box-head .btn { min-height: 36px; font-size: 14px; padding: 0 14px; }
.stalls { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stalls.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.stall { background: var(--card); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.stall-link { display: flex; gap: 12px; align-items: flex-start; }
.stall-link:hover { text-decoration: none; }
.stall-link:hover .stall-name { text-decoration: underline; text-underline-offset: 3px; }
.stall-body { display: grid; min-width: 0; }
.stall-name { font-weight: 700; overflow-wrap: anywhere; }
.stall-tag { font: 400 14px/1.6 var(--body); color: var(--t2); overflow-wrap: anywhere; }
.stall-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

.logo-img { flex: none; border-radius: 22%; object-fit: cover; background: var(--kraft2); display: inline-grid; place-items: center; font-weight: 700; color: var(--t2); }
.logo-img.m { width: 48px; height: 48px; font-size: 20px; }
.logo-img.l { width: 88px; height: 88px; font-size: 36px; }
.face { flex: none; border-radius: 50%; object-fit: cover; background: var(--rule); display: inline-block; }
.face.s { width: 22px; height: 22px; }
.face.l { width: 56px; height: 56px; }

.platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.platforms li { font-size: 12px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--t2); }
.used, .used-count { font-size: 13px; color: var(--t2); }
.used { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--rule); background: transparent; cursor: pointer; }
.used.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* 出品のページ */
.detail { max-width: 720px; padding-top: 12px; }
.detail-head { display: flex; gap: 20px; align-items: flex-start; }
.tagline { font: 400 16px/1.7 var(--body); color: var(--t2); margin: 0 0 8px; }
.by { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--t2); }
.shots { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { display: block; height: 320px; max-width: 80vw; object-fit: contain; border-radius: 8px; background: var(--card); border: 1px solid var(--rule); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 24px 0; font-size: 15px; }
.facts dt { color: var(--t2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; text-underline-offset: 2px; }
.nsids { list-style: none; margin: 0; padding: 0; }
code { font-size: 14px; }
.owner-tools { display: flex; gap: 20px; font-size: 14px; color: var(--t2); border-top: 1px solid var(--rule); padding-top: 16px; }
.owner-tools a { text-decoration: underline; text-underline-offset: 2px; }
.owner-tools .danger { margin-left: auto; }
.text-link { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
.notice { display: grid; justify-items: start; gap: 10px; background: var(--kraft2); border-radius: 10px; padding: 14px 16px; margin: 16px 0 0; color: var(--t2); }
.notice p { margin: 0; }
details.more > summary { font-weight: 700; color: var(--ink); }

.person { display: grid; justify-items: start; gap: 6px; padding: 16px 0; }
.person h1 { margin: 0; }
.shop-head { padding: 16px 0 0; }
.balance { margin: 4px 0 0; }
.balance strong { font-size: 32px; }
.balance a { margin-left: 6px; text-decoration: underline; text-underline-offset: 2px; color: var(--accent); font-size: 14px; }

/* 出品の欄。番号の4問と、その下の「細かく決める」（ATOMO feed と同じ形） */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stall-form { display: grid; gap: 28px; max-width: 640px; margin-top: 20px; }
.step, .opt { display: grid; gap: 8px; }
.label { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.opt .label { font-size: 14px; }
.n { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.count { justify-self: end; font-size: 13px; color: var(--t3); margin-top: -4px; }
.hint { font-size: 13px; color: var(--t2); margin: 0; }
.stall-form input[type="text"], .stall-form input[type="url"], .stall-form textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--card); font-family: var(--body); font-size: 16px; }
.stall-form input:focus, .stall-form textarea:focus, .signin input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row > input[type="url"] { flex: 1 1 240px; width: auto; }
.ident { display: flex; align-items: center; gap: 14px; }
.ident input { flex: 1; min-width: 0; }
.logo-pick { position: relative; cursor: pointer; flex: none; border-radius: 22%; }
.logo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-pick .logo-img.m { width: 64px; height: 64px; font-size: 26px; }
.pen { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--rule); display: grid; place-items: center; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; }
details.more { border-top: 1px solid var(--rule); padding-top: 4px; display: grid; gap: 20px; }
details.more > summary { list-style: none; cursor: pointer; padding: 12px 2px; color: var(--t2); display: flex; align-items: center; font-size: 14px; min-height: 44px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "∨"; margin-left: auto; font-size: 12px; }
details.more[open] > summary::after { content: "∧"; }
details.more[open] { padding-bottom: 4px; }
details.more > :not(summary) { margin-bottom: 20px; }
.shot-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shot-pick li { display: flex; align-items: center; gap: 10px; }
.shot-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.shot-pick input { flex: 1; }

@media (max-width: 560px) {
  .detail-head { flex-direction: column; gap: 12px; }
  .shots img { height: 240px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 大いなる事業へのリンク。pogala の字から行ける（2026-11-03、依頼） */
.pogala-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.intro .pogala-link, .sub .pogala-link { color: var(--accent); }

/* 並べ方の札。端末でしぼる札の下に、小さく並べる（2026-11-03、依頼） */
.shelf-tools { display: grid; gap: 4px; margin: 24px 0 8px; }
.shelf-tools .filters { margin: 0; }
.sorter .chip { min-height: 32px; font-size: 13px; padding: 0 12px; }
.sorter::before { content: "並べ方"; font-size: 13px; color: var(--t2); align-self: center; margin-right: 4px; }
#shelf.stalls { margin-top: 16px; }
.box-owner.in-card { margin: 0; }
.sorter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sorter .chip, .sorter::before { flex: none; }
