/* 出店者の手続きのページ（イベントページと同じ配色：背景 #f5efe3 ／ 文字 #201a13 ／ 差し色 #a7421a） */
:root {
  --bg: #f5efe3; --card: #fffdf8; --ink: #201a13; --mute: #7a6a5a; --rule: #e0d3bd;
  --accent: #a7421a; --accent-ink: #7d3113; --accent-soft: #c8a67d; --ok: #2f7a4a;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-disp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-jp); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.en-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--rule); background: var(--bg); }
.en-top-t { font-family: var(--font-disp); font-weight: 700; color: var(--ink); text-decoration: none; }
.en-top-s { font-size: .78rem; color: var(--mute); }
.en-wrap { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) 16px 80px; }

/* 見出し */
.en-kicker { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; margin: 0; }
.en-h1 { font-family: var(--font-disp); font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.3; margin: 8px 0 0; }
.en-lead { font-size: .98rem; margin: 14px 0 0; }
.en-flow { list-style: none; padding: 0; margin: 26px 0 4px; display: flex; }
.en-flow li { flex: 1; position: relative; text-align: center; font-size: .84rem; line-height: 1.5; padding: 0 4px; }
.en-flow li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--accent-soft); z-index: 0; }
.en-flow li:first-child::before { display: none; }
.en-flow b { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-disp); font-size: .95rem; }

.en-card { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(20px, 4vw, 32px); margin-top: 18px; }
.en-card h2 { font-family: var(--font-disp); font-weight: 700; font-size: 1.15rem; margin: 0 0 12px; }
.en-card h2 small { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; color: var(--mute); margin-left: 8px; font-weight: 400; }
.en-card p { margin: 8px 0 0; font-size: .94rem; }
.en-rows { border-top: 1px solid var(--rule); margin: 6px 0 0; }
.en-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; line-height: 1.75; }
.en-row > span:first-child { color: var(--mute); font-size: .82rem; padding-top: .1em; }
.en-row b { color: var(--accent-ink); }
@media (max-width: 560px) { .en-row { grid-template-columns: 1fr; gap: 0; } }
.en-list { margin: 6px 0 0; padding-left: 1.2em; font-size: .92rem; }
.en-list li { margin: 4px 0; }
.en-sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.en-sched div { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; font-size: .82rem; line-height: 1.55; background: #fff; }
.en-sched b { display: block; font-family: var(--font-disp); font-size: 1rem; }
.en-fine { font-size: .8rem; color: var(--mute); margin-top: 10px !important; }
.en-alert { background: #fbeae4; color: #9a2f12; border-radius: 12px; padding: 12px 14px; font-size: .88rem; margin-top: 12px !important; }

/* 規約 */
.en-terms { max-height: 340px; overflow: auto; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: #fff; font-size: .86rem; line-height: 1.85; }
.en-terms h3 { font-size: .9rem; margin: 14px 0 2px; }
.en-terms h3:first-child { margin-top: 0; }
.en-terms p, .en-terms li { margin: 2px 0; }
.en-terms ol { padding-left: 1.4em; margin: 2px 0; }
.en-terms table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: .84rem; }
.en-terms td { border: 1px solid var(--rule); padding: 6px 8px; }
.en-terms td:nth-child(odd) { background: #faf5ec; width: 22%; }

/* フォーム */
.en-form h3 { font-family: var(--font-disp); font-size: 1rem; margin: 26px 0 12px; padding-top: 18px; border-top: 1px dashed var(--rule); }
#en-fields > .sec:first-child h3 { border-top: 0; padding-top: 0; margin-top: 4px; }
.field { margin-bottom: 18px; }
.flabel, .fset-legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: .86rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.req { color: var(--accent); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; }
.opt-tag { color: var(--mute); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; }
.fnote { font-size: .76rem; color: var(--mute); margin: 6px 0 0; line-height: 1.6; }
.input { width: 100%; font-family: var(--font-jp); font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.7; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; background: #fff; font-size: .92rem; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; color: #fff; font-size: .6rem; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.opt:has(input:checked) .tick { background: var(--accent); border-color: var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-err { border-color: #c0392b !important; }

/* 書類 */
.file-box { border: 1px dashed var(--accent-soft); border-radius: 12px; padding: 12px 14px; background: #fff; }
.file-box input[type=file] { font-size: .86rem; width: 100%; }
.file-have { font-size: .8rem; color: var(--ok); margin: 6px 0 0; }
.file-have::before { content: '✓ '; }

/* 同意・送信 */
.agree { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; margin-top: 12px; cursor: pointer; font-size: .92rem; line-height: 1.7; }
.agree input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.btn { width: 100%; border: 0; cursor: pointer; font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem; padding: 16px; border-radius: 6px; background: var(--accent); color: #fff; margin-top: 18px; }
.btn:hover { background: var(--accent-ink); }
.btn[disabled] { background: var(--accent-soft); cursor: wait; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.en-err { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: #fbeae4; color: #9a2f12; font-size: .9rem; }
.en-edit { background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: .88rem; margin-top: 16px; }
.progress { height: 6px; border-radius: 3px; background: var(--rule); margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 完了 */
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto 12px; }
.done { text-align: center; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: .82rem; }
.copy-row button { flex: none; border: 1.5px solid var(--accent); color: var(--accent); background: #fff; border-radius: 6px; padding: 0 14px; font-weight: 700; cursor: pointer; }

/* 管理 */
.admin .en-wrap { max-width: 980px; }
.ad-lead { font-size: .88rem; }
.ad-sec { margin-top: 28px; }
.ad-sec h2 { font-family: var(--font-disp); font-size: 1.1rem; margin: 0 0 8px; }
.ad-n { font-size: .8rem; color: var(--mute); font-weight: 400; }
.ad-empty { color: var(--mute); font-size: .88rem; }
.ad-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; margin-top: 8px; color: var(--ink); text-decoration: none; }
.ad-row:hover { border-color: var(--accent-soft); }
.ad-name { font-weight: 700; }
.ad-name small { display: block; font-weight: 400; color: var(--mute); font-size: .8rem; }
.ad-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ad-at { font-size: .8rem; color: var(--mute); }
@media (max-width: 640px) { .ad-row { grid-template-columns: 1fr; } .ad-chips { justify-content: flex-start; } }
.chip { display: inline-block; font-size: .72rem; padding: 2px 10px; border-radius: 999px; background: #eef5ef; color: var(--ok); }
.chip.ng { background: #fbeae4; color: #9a2f12; }
.ad-h1 { font-family: var(--font-disp); font-size: 1.5rem; margin: 8px 0 0; }
.ad-h1 small { font-size: .85rem; color: var(--mute); font-weight: 400; margin-left: 8px; }
.ad-meta { font-size: .86rem; color: var(--mute); }
.ad-warn { background: #fbeae4; color: #9a2f12; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.ad-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; margin-top: 14px; }
.ad-card h2 { font-size: 1rem; margin: 0 0 8px; font-family: var(--font-disp); }
.ad-dl { margin: 0; }
.ad-dl div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.ad-dl dt { color: var(--mute); }
.ad-dl dd { margin: 0; }
@media (max-width: 640px) { .ad-dl div { grid-template-columns: 1fr; gap: 0; } }
.ad-none { color: var(--rule); }
.ad-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ad-file { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; background: #fff; }
.ad-file.ng { border-color: #e7a796; background: #fdf3f0; }
.ad-file.none { opacity: .6; }
.ad-file img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; background: #faf5ec; margin-top: 6px; }
.ad-fl { font-size: .86rem; font-weight: 700; margin: 0; }
.ad-fm { font-size: .78rem; color: var(--mute); margin: 6px 0 0; word-break: break-all; }
.ad-hist { margin: 0; padding-left: 1.2em; font-size: .86rem; }
