/*
 * デザイン候補に、追加機能の欄を足して見せる（見比べるための見本）
 * - アドレスの ?a=reserve,staff,today,video,survey,insta で付ける（state.js が html に a-reserve などの印を付ける）
 * - スタッフの紹介（staff）は、各案の「お店の人」の欄に data-addon="staff" を付けて、付けていないときは隠す
 * - 予約・今日の一言・動画・アンケートは、addons.js が .addon-slot の中に作る
 * - 色と書体は、各案の変数（--ad-text・--ad-text2・--ad-line・--ad-accent・--ad-on・--ad-card・--ad-title）から取る。
 *   無いときは、--text・--text-2・--line・--accent・--title を使う
 */
html:not(.a-staff) [data-addon~="staff"],
html:not(.a-reserve) [data-addon~="reserve"],
html:not(.a-today) [data-addon~="today"],
html:not(.a-video) [data-addon~="video"],
html:not(.a-survey) [data-addon~="survey"],
html:not(.a-insta) [data-addon~="insta"] { display: none !important; }

.addon-slot:empty { display: none; }
.addon-slot { display: grid; gap: 12px; }
.addon {
  --a-text: var(--ad-text, var(--text, #222));
  --a-text2: var(--ad-text2, var(--text-2, #666));
  --a-line: var(--ad-line, var(--line, rgba(127, 127, 127, 0.25)));
  --a-accent: var(--ad-accent, var(--accent, #b8382b));
  --a-on: var(--ad-on, var(--on-accent, #fff));
  --a-card: var(--ad-card, rgba(127, 127, 127, 0.08));
  --a-title: var(--ad-title, var(--title, inherit));
  position: relative;
  padding: 14px 16px;
  border-radius: var(--ad-radius, 16px);
  background: var(--a-card);
  border: 1px solid var(--a-line);
  color: var(--a-text);
  text-align: left;
  font-size: 14.5px;
  line-height: 1.7;
}
[data-state="free"] .addon { --a-st: var(--st, var(--free, #2e8b57)); }
[data-state="few"] .addon { --a-st: var(--st, var(--few, #d99a1e)); }
[data-state="full"] .addon { --a-st: var(--st, var(--full, #c8372d)); }
[data-state="off"] .addon { --a-st: #8a8a8a; }
.addon__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addon__tag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--a-accent); color: var(--a-on); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; }
.addon__title { font-family: var(--a-title); font-size: 17px; font-weight: 700; }
.addon__note { margin-top: 6px; font-size: 12px; color: var(--a-text2); }
.addon details > summary { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; min-height: 52px; }
.addon details > summary .icon--plus { width: 22px; height: 22px; color: var(--a-accent); }
.addon__teaser { display: block; margin-top: 4px; font-family: var(--a-title); font-size: 15.5px; font-weight: 700; }
.addon__teaser small { display: block; font-family: inherit; font-weight: 400; font-size: 12px; color: var(--a-text2); }
.addon__btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 12px; background: var(--a-accent); color: var(--a-on); font: inherit; font-weight: 700; cursor: not-allowed; opacity: 0.85; }

/* 予約：席の図 */
.seats { margin-top: 10px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--a-text) 5%, transparent); }
.seats p { font-size: 12px; color: var(--a-text2); }
.seats__counter { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 6px 0 12px; padding-bottom: 10px; border-bottom: 6px solid color-mix(in srgb, var(--a-text) 18%, transparent); }
.seat { aspect-ratio: 1; border-radius: 50%; background: var(--a-st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-st) 25%, transparent); }
.seat.used { background: color-mix(in srgb, var(--a-text) 22%, transparent); box-shadow: none; }
.seat.free { animation: seatglow 2.4s ease-in-out infinite; }
@keyframes seatglow { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--a-st) 18%, transparent); } }
.seats__boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.box { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--a-st); }
.box b { font-size: 13.5px; }
.box small { font-size: 11.5px; color: var(--a-text2); }
.box.used { border-color: color-mix(in srgb, var(--a-text) 22%, transparent); opacity: 0.7; }
.seats__legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--a-text2); }
.seats__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; background: var(--a-st); vertical-align: -1px; }
.seats__legend i.used { background: color-mix(in srgb, var(--a-text) 22%, transparent); }
.form { display: grid; gap: 8px; margin: 4px 0 6px; }
.form label { display: grid; gap: 2px; font-size: 12.5px; color: var(--a-text2); }
.form input { min-height: 44px; padding: 0 12px; border: 1px solid var(--a-line); border-radius: 10px; background: transparent; color: var(--a-text); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--a-line); border-radius: 999px; background: transparent; color: var(--a-text); font: inherit; font-size: 13.5px; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--a-accent); background: var(--a-accent); color: var(--a-on); }

/* 動画 */
.video { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-top: 10px; overflow: hidden; border-radius: 12px; background: #111 var(--img) center / cover no-repeat; }
.video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); }
.video__play { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: playpulse 2s ease-out infinite; }
.video__play::after { content: ""; margin-left: 5px; border: 12px solid transparent; border-left: 18px solid #222; border-right: 0; }
@keyframes playpulse { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); } to { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
.video__cap { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 12.5px; font-weight: 700; }
.video__time { position: absolute; right: 12px; bottom: 10px; padding: 0 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11.5px; }

/* Instagram の新しい投稿（追加機能） */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 0; }
.insta-grid__tile { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; background: #222 var(--img) center / cover no-repeat; }
.insta-grid__video {
  position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M9.5 7.5v9l7-4.5z'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* アンケート */
.survey h4 { margin: 10px 0 6px; font-size: 13px; color: var(--a-text2); font-weight: 700; }
