/* ============================================================================
   ツクルヒ in depomaru — デザインシステム
   スマートフォンファースト / 作品写真が主役になる、洗練されたクラフト系デザイン
   ============================================================================ */

:root {
  /* カラー: ホワイト×ブラックのミニマルデザイン（ロゴの世界観に統一） */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f4;
  --color-surface: #ffffff;
  --color-text: #1d1b19;
  --color-text-soft: #6b6560;
  --color-text-faint: #9b9691;
  --color-border: #e7e5e2;
  --color-accent: #17150f;
  --color-accent-dark: #000000;
  --color-accent-soft: #efeeec;
  --color-success: #3f7a5e;
  --color-success-soft: #e2f0e8;
  --color-warning: #b8862e;
  --color-warning-soft: #f7ecd8;
  --color-danger: #b8412f;
  --color-danger-soft: #f8e5e1;
  --color-live: #2f6f4f;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(38, 34, 32, 0.06), 0 1px 2px rgba(38, 34, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(38, 34, 32, 0.10);
  --shadow-lg: 0 16px 40px rgba(38, 34, 32, 0.16);

  --container-max: 720px;
  --header-h: 60px;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Segoe UI", Roboto, Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
}

.container--wide {
  max-width: 1080px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header--wide .site-header__inner {
  max-width: 1080px;
}

.brand {
  display: flex;
  align-items: baseline;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS PMincho", serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--color-text);
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-left: 10px;
}

.admin-topbar .brand__sub {
  color: rgba(255, 255, 255, 0.65);
}

.auth-logo--text {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS PMincho", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--color-text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a, .header-nav button {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft);
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: none;
  border: none;
  cursor: pointer;
}

.header-nav a:hover, .header-nav button:hover {
  background: var(--color-bg-alt);
}

main {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 64px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.15s ease, background 0.15s ease;
  font-family: inherit;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled, .btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-auto { width: auto; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; width: auto; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  letter-spacing: 0.08em;
}
.btn--primary:hover { background: #33302b; }

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-accent); }

.btn--ghost {
  background: transparent;
  color: var(--color-accent-dark);
  border-color: transparent;
}

.btn--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.btn--block { display: flex; }

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-row .btn { width: auto; flex: 1 1 auto; }

/* ---------- Forms ---------- */
.field {
  margin-bottom: 20px;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.field__hint {
  font-size: 12.5px;
  color: var(--color-text-faint);
  margin-top: 6px;
}

.tag-required {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.tag-optional {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-faint);
  background: var(--color-bg-alt);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 52px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.checkbox-row input {
  width: 22px;
  height: 22px;
  min-height: auto;
  accent-color: var(--color-accent);
}

.date-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.date-chip.is-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---------- Cards / Surfaces ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 28px 0;
}

/* ---------- Badges / status pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--empty { background: #eeedeb; color: #8a8580; }
.badge--request { background: var(--color-accent-soft); color: var(--color-accent-dark); }
.badge--partial { background: var(--color-warning-soft); color: var(--color-warning); }
.badge--done { background: #e4e9f5; color: #3f5aa8; }
.badge--live { background: var(--color-success-soft); color: var(--color-live); }

/* ---------- Loading / empty states ---------- */
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-box {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-faint);
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--color-text);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}
#toast.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.toast--error { background: var(--color-danger); }
#toast.toast--success { background: var(--color-live); }

/* ---------- Auth pages ---------- */
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 18px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 22px;
  margin: 0 auto 12px;
}
.auth-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 4px;
}
.auth-sub {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-links {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}

/* ---------- Hero (exhibitors list) ---------- */
.hero {
  padding: 40px 0 28px;
  text-align: center;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS PMincho", serif;
  font-size: 26px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  margin-bottom: 12px;
}
.hero p {
  color: var(--color-text-soft);
  font-size: 14.5px;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 18px 16px;
  margin: 0 -18px 8px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-soft);
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip.is-active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}
.search-box {
  margin-bottom: 6px;
}

/* ---------- Exhibitor grid / card ---------- */
/* カテゴリー絞り込みは横スクロールではなく折り返して全部見えるように */
#categoryFilter {
  flex-wrap: wrap;
  overflow-x: visible;
}

/* アイコン付き絞り込みチップ */
.filter-chip--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-icon {
  display: inline-flex;
  align-items: center;
}
.chip-icon svg { display: block; }

/* 出展者一覧のセクション見出し（企業ブース／ハンドメイド作家ブース） */
.list-section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-align: center;
  color: #17150f;
  margin: 36px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #17150f;
}
.list-section-title:first-child { margin-top: 8px; }

.exhibitor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 620px) {
  .exhibitor-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 920px) {
  .exhibitor-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.exhibitor-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.exhibitor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.exhibitor-card__img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--color-bg-alt);
}
.exhibitor-card__body {
  padding: 16px;
}
.exhibitor-card__name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--color-text);
}
.exhibitor-card__desc {
  font-size: 13px;
  color: var(--color-text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.exhibitor-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-faint);
}
.booth-tag {
  font-weight: 800;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.workshop-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--color-live);
}

/* ---------- Public exhibitor detail page ---------- */
.detail-hero {
  position: relative;
}
.detail-hero__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-bg-alt);
}
.detail-header {
  padding: 22px 18px 4px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.detail-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
  margin-top: 0; /* メイン写真に重ねない（以前は -52px で重ねるデザインだった） */
  background: var(--color-bg-alt);
}
.detail-name {
  font-size: 24px;
  margin: 14px 0 2px;
}
.detail-rep {
  color: var(--color-text-soft);
  font-size: 14px;
  margin-bottom: 12px;
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-text-soft);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.link-btn:active { transform: scale(0.98); }
.link-btn__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #fff;
}
.link-btn__icon--instagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.link-btn__icon--shop { background: #17150f; }
.link-btn__icon--web { background: #55504b; }
.link-btn__icon--other { background: #8a8580; }
.link-btn__arrow { margin-left: auto; color: var(--color-text-faint); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
/* 1枚目はメイン画像として大きく（横幅いっぱい）、2枚目以降は3列のサブ画像 */
.gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

/* ---- 店舗情報（出展者公開ページ） ---- */
.shop-info {
  margin: 16px 0;
  border-top: 1px solid var(--color-border, #e6e2dc);
}
.shop-info__row {
  display: flex;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--color-border, #e6e2dc);
  font-size: 13.5px;
  line-height: 1.8;
}
.shop-info__label {
  flex: 0 0 78px;
  color: var(--color-text-soft, #6b6560);
  font-weight: 600;
}
.shop-info__value {
  flex: 1;
  color: var(--color-text, #1d1b19);
  overflow-wrap: anywhere;
}

/* ---- スタンプラリー ---- */
.stamp-chip {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #17150f;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(23, 21, 15, 0.25);
}
.stamp-chip__icon { color: #e8c15a; }

/* ---- お気に入り（出展者一覧の♡。インスタの「いいね」と同じ展開） ---- */
.exhibitor-card { position: relative; }
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(23, 21, 15, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #262626; /* 未選択：黒の輪郭ハート（Instagramと同じ） */
  -webkit-tap-highlight-color: transparent;
}
.fav-btn svg { display: block; }
.fav-btn svg path {
  fill: none;
  stroke: currentColor;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
/* 選択時：Instagramの赤（#ff3040）で塗りつぶし */
.fav-btn.is-fav { color: #ff3040; }
.fav-btn.is-fav svg path {
  fill: #ff3040;
  stroke: #ff3040;
}
/* タップした瞬間、ポンッと弾むアニメーション（いいねと同じ動き） */
.fav-btn.is-fav svg {
  animation: like-pop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}
@keyframes like-pop {
  0% { transform: scale(0.2); }
  45% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---- 当日のお知らせ ---- */
.news-banner {
  display: block;
  background: #17150f;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  line-height: 1.6;
}
.news-banner strong { color: #e8c15a; font-weight: 700; }
.news-item {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.news-item__time {
  font-size: 11.5px;
  color: var(--color-text-soft);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.news-item__text {
  font-size: 14.5px;
  line-height: 1.9;
  white-space: pre-wrap;
}

/* ---- ワークショップ予約：時間枠の選択 ---- */
.session-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--color-border, #e6e2dc);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.session-option input { accent-color: #17150f; }
.session-option.is-selected {
  border-color: #17150f;
  background: rgba(23, 21, 15, 0.04);
}
.session-option.is-full {
  opacity: 0.5;
  cursor: not-allowed;
}
.session-option__time { font-weight: 600; }
.session-option__left {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-text-soft, #6b6560);
}
.session-option__left.is-few { color: #b4552d; font-weight: 600; }

/* ---- 動画（埋め込み・アップロード共通） ---- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin: 16px 0;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Instagramリール・YouTubeショートなどの縦動画用 */
.video-embed--vertical {
  aspect-ratio: 9 / 14;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Admin ---------- */
.admin-shell { display: block; }
.admin-topbar {
  background: var(--color-text);
  color: #fff;
}
.admin-topbar .site-header__inner { color: #fff; }
.admin-topbar .brand { color: #fff; }
.admin-topbar .header-nav a, .admin-topbar .header-nav button { color: rgba(255,255,255,0.75); }
.admin-topbar .header-nav a:hover, .admin-topbar .header-nav button:hover { background: rgba(255,255,255,0.1); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (min-width: 700px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stat-card__num {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-accent-dark);
}
.stat-card__label {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-top: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 760px;
}
table.admin-table th, table.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
table.admin-table th {
  background: var(--color-bg-alt);
  font-weight: 700;
  color: var(--color-text-soft);
  position: sticky;
  top: 0;
}
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table tr:hover { background: var(--color-bg); }
.admin-table a.row-link { font-weight: 700; }

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.qr-box img {
  width: 220px;
  height: 220px;
  border: 10px solid #fff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}
.qr-url {
  font-size: 12.5px;
  color: var(--color-text-soft);
  word-break: break-all;
  background: var(--color-bg-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* ---------- Image upload grid (mypage) ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.upload-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
}
.upload-tile img { width: 100%; height: 100%; object-fit: cover; }
.upload-tile__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20,16,14,0.7);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.upload-tile--add {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-faint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  border-style: dashed;
}
.upload-tile--add input { display: none; }

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.avatar-upload__preview {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
}

/* ---------- Tabs (mypage) ---------- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--color-bg-alt);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-soft);
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.is-active {
  background: var(--color-surface);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small-text { font-size: 13px; color: var(--color-text-soft); }
.faint-text { color: var(--color-text-faint); font-size: 12.5px; }

.sticky-save-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  padding: 16px 0 8px;
  margin-top: 8px;
}

.publish-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
}
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute;
  inset: 0;
  background: #d6d3d0;
  border-radius: var(--radius-pill);
  transition: 0.2s;
  cursor: pointer;
}
.switch__track::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch__track { background: var(--color-live); }
.switch input:checked + .switch__track::before { transform: translateX(20px); }

.empty-note {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.workshop-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--color-surface);
  margin-bottom: 12px;
}
.workshop-card__title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.workshop-card__meta { font-size: 13px; color: var(--color-text-soft); margin-bottom: 8px; }
.capacity-bar {
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 6px;
}
.capacity-bar__fill {
  height: 100%;
  background: var(--color-accent);
}
.capacity-bar__fill.is-full { background: var(--color-danger); }

footer.site-footer {
  text-align: center;
  padding: 32px 18px;
  color: var(--color-text-faint);
  font-size: 12px;
}

/* ============================================================================
   新ロゴ導入にともなう全ページ共通の磨き込み
   ============================================================================ */

/* ヘッダー：文字ロゴを新ロゴ画像に */
.brand { align-items: center; }
.brand .brand-logo {
  height: 13px;
  width: auto;
  display: block;
}
.brand__sub { margin-left: 8px; }
/* 管理画面の黒いヘッダーでは白抜きに */
.admin-topbar .brand-logo { filter: invert(1) brightness(1.75); }

/* 中ページの見出しまわり：トップと同じ品のあるトーンに */
.hero { padding: 46px 0 30px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #a9a49d;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: #d7d3cd;
}
.hero h1 {
  font-size: 27px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: #37332f;
}
.hero p { line-height: 2.1; }

/* フッター：丸tマークを添えて締める */
footer.site-footer {
  padding: 48px 18px 40px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}
footer.site-footer::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  background: url("/assets/logo-mark.png") center / contain no-repeat;
  opacity: 0.9;
}

/* スクロールで内容がふわっと現れる演出（reveal.js とセット） */
.rv-init {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rv-init.rv-in {
  opacity: 1;
  transform: none;
}

/* スマホではヘッダーロゴを少し小さく */
@media (max-width: 560px) {
  .brand .brand-logo { height: 10px; }
}

/* スマホでヘッダーメニューが多いページ（管理画面など）は
   文字を切らずに横スクロールできるようにする */
@media (max-width: 700px) {
  .site-header__inner { gap: 8px; }
  .header-nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a, .header-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 7px;
  }
}
