/* ====== Signage 共通スタイル ====== */

/* 画面全体の黒背景・余白なし・白文字 */
:root {
  --fg: #ffffff;
  --muted: #9aa0a6;
  --accent: #ffd84d; /* 1行目の強調色 */
}

html, body {
  height: 100%;
  margin: 0;
  background: #000;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* 店舗一覧ページ用の簡易レイアウト */
.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

h1 { margin: 0 0 1rem; }

/* ====== サイネージ レイアウト（上下 50%） ====== */

.top-half,
.bottom-half {
  height: 50vh;
  width: 100vw;
}

/* ---- 上段：動画領域 ---- */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2vh;
  color: var(--muted);
  pointer-events: none;
  background: transparent;
}

/* ---- 下段：テキスト領域 ---- */
.bottom-half {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 3vw;
  box-sizing: border-box;
}

#message {
  max-width: 90vw;
  text-align: center;
  white-space: pre-wrap; /* 改行を反映 */
  line-height: 1.15;
  /* 文字サイズは app.js が行数に応じて設定します */
}

/* 1行目だけ強調 */
#message .first-line {
  display: inline-block;
  margin-bottom: 0.25em;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,0,0,.35);
  transform: scale(1.03);
}

/* 角のバッジ（使用しない場合は非表示） */
.corner-badge { display: none !important; }

/* ====== 店舗一覧ページのリンク ====== */
.list { 
  display: flex; 
  gap: 1rem; 
  padding: 2rem 0; 
  flex-wrap: wrap; 
  justify-content: center; 
}
.list a { 
  color: #fff; 
  text-decoration: none; 
  border: 1px solid #333; 
  padding: 0.8rem 1.2rem; 
  border-radius: 10px; 
  background: #121212; 
}
.list a:hover { background: #1b1b1b; }
.note { text-align: center; color: var(--muted); margin-top: .5rem; }

/* ====== 追加予定：毛筆フォント ======
@font-face {
  font-family: 'SignageBrush';
  src: url('/assets/fonts/brush.woff2') format('woff2');
  font-display: swap;
}
#message { font-family: 'SignageBrush', system-ui, -apple-system, 'Yu Gothic', 'Meiryo', sans-serif; }
===================================== */
/* Webフォント登録（Potta One） */
@font-face {
  font-family: 'SignageBrush';
  src:
    url('/assets/fonts/PottaOne-Regular.woff2') format('woff2'),
    url('/assets/fonts/PottaOne-Regular.ttf') format('truetype');
  font-display: swap;
}

/* サイネージ本文に適用 */
#message {
  font-family: 'SignageBrush', system-ui, -apple-system, 'Yu Gothic', 'Meiryo', sans-serif;
}