/* ═══════════════════════════════════════════════════════════════
   NEWS CAMERA — 和モダン × カメラユーティリティ
   Shippori Mincho（見出し）/ Zen Kaku Gothic New（本文）
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #101014;
  --ink-soft: #1a1a20;
  --paper: #f7f4ee;
  --paper-warm: #fdfbf7;
  --text-dark: #23231f;
  --text-muted: #6f6f68;
  --accent: #a8201a;
  --accent-soft: #c1352c;
  --line: #e2ded4;
  --gold: #b89b5e;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--ink);
  color: #f0eee9;
  letter-spacing: 0.03em;
  line-height: 1.7;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  touch-action: manipulation;
}

.hidden { display: none !important; }

.nobr { white-space: nowrap; }

/* ══════════════ 起動ゲート ══════════════ */
.start-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(165deg, #101014 0%, #1c1c24 55%, #14141a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.start-gate.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-gate-inner {
  max-width: 420px;
  text-align: center;
}

.gate-brand {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 28px;
  text-indent: 0.42em;
}

.gate-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.gate-desc {
  font-size: 14px;
  font-weight: 300;
  color: #b9b6ad;
  line-height: 2;
  margin-bottom: 40px;
}

.gate-button {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #8a1812 100%);
  padding: 16px 48px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(168, 32, 26, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 32px;
}

.gate-button:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(168, 32, 26, 0.3);
}

.gate-note {
  font-size: 11px;
  font-weight: 300;
  color: #77756d;
  line-height: 1.9;
}

/* ══════════════ カメラセクション ══════════════ */
.camera-section {
  height: 100vh;
  height: 100dvh;
  position: relative;
  background: var(--ink);
}

.camera-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transform: translateZ(0);
}

.flash-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.flash-overlay.flash {
  animation: silentFlash 0.28s ease-out;
}

@keyframes silentFlash {
  0% { opacity: 0; }
  18% { opacity: 0.85; }
  100% { opacity: 0; }
}

/* 上部バー */
.cam-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(14px + var(--safe-top)) calc(16px + var(--safe-right)) 0 calc(16px + var(--safe-left));
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
  padding-bottom: 24px;
  pointer-events: none;
}

.cam-topbar > * { pointer-events: auto; }

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b30;
  animation: recPulse 1.4s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.cam-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* ズームコントロール */
.zoom-control {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(148px + var(--safe-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 100px;
  width: min(72%, 300px);
}

.zoom-label {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
  color: #fff;
}

#zoomSlider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  outline: none;
  touch-action: none;
}

#zoomSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* サイドボタン */
.cam-side {
  position: absolute;
  right: calc(14px + var(--safe-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
}

.side-btn:active { transform: scale(0.9); }
.side-btn.off { color: #8a8880; }

/* 下部コントロール */
.cam-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(36px + var(--safe-right)) calc(64px + var(--safe-bottom)) calc(36px + var(--safe-left));
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  padding-top: 32px;
}

/* ギャラリーサムネイル */
.gallery-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

/* 写真シャッター */
.shutter-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 4.5px solid #fff;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.12s ease;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.shutter-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.12s ease;
}

.shutter-btn:active .shutter-ring { transform: scale(0.82); }
.shutter-btn:active { transform: scale(0.94); }

/* 動画ボタン */
.video-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.video-btn-core {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: all 0.22s ease;
}

.video-btn:active { transform: scale(0.92); }

.video-btn.recording { border-color: rgba(255,255,255,0.5); }

.video-btn.recording .video-btn-core {
  inset: 11px;
  border-radius: 7px;
  background: #ff3b30;
}

/* スクロール案内 */
.scroll-hint {
  position: absolute;
  bottom: calc(14px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-hint-arrow {
  animation: hintBob 2s ease-in-out infinite;
}

@keyframes hintBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(3px); opacity: 1; }
}

.scroll-hint.faded { opacity: 0; }

/* ══════════════ ニュースセクション（紙・和モダン） ══════════════ */
.news-section {
  background: var(--paper);
  color: var(--text-dark);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(80px + var(--safe-bottom));
  border-top: 3px solid var(--ink);
  position: relative;
}

.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 22px 18px;
  max-width: 720px;
  margin: 0 auto;
}

.news-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dark);
}

.news-source {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.news-refresh {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-warm);
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.news-refresh.spinning { transform: rotate(360deg); }
.news-refresh:active { transform: scale(0.9); }

/* タブ */
.news-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 22px 16px;
  max-width: 720px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar { display: none; }

.news-tab {
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.news-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 500;
}

/* ステータス */
.news-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 32px 24px;
  letter-spacing: 0.05em;
}

.news-status:empty { display: none; }

/* 記事リスト */
.news-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
}

.news-item {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 20px 16px;
  margin-bottom: 14px;
  text-align: left;
  width: 100%;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 4px 0 0 4px;
}

.news-item:active {
  transform: scale(0.985);
  box-shadow: 0 4px 20px rgba(35, 35, 31, 0.08);
}

.news-item:active::before { opacity: 1; }

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.news-item-time {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.news-item-new {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 7px;
  border-radius: 100px;
  font-weight: 500;
}

.news-item-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.news-item-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: #55534c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 0 22px;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 2;
}

.news-footer-brand {
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.14em;
  margin-top: 12px;
  color: #8a877e;
}

/* ══════════════ フローティングバー ══════════════ */
.float-bar {
  position: fixed;
  bottom: calc(18px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatIn 0.35s ease;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.float-rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 16, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 100px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.float-cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 16, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.float-cam-btn:active { transform: scale(0.94); }

/* ══════════════ モーダル共通 ══════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.modal-backdrop.dark { background: rgba(5, 5, 8, 0.92); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--paper-warm);
  color: var(--text-dark);
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.32s cubic-bezier(0.32, 0.72, 0.24, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.15s ease;
}

.header-action-btn:active { transform: scale(0.94); }

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(35, 35, 31, 0.07);
  color: var(--text-dark);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close.light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ══════════════ ギャラリー ══════════════ */
.gallery-notice {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0 20px 14px;
  flex-shrink: 0;
}

.gallery-grid {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 20px 16px;
  flex: 1;
  min-height: 120px;
}

.gallery-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #e8e4da;
  border: none;
  padding: 0;
  display: block;
}

.gallery-cell img,
.gallery-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-cell .cell-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 7px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.gallery-cell .cell-badge.recovered {
  background: rgba(168, 32, 26, 0.85);
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 2;
}

.gallery-footer {
  padding: 12px 20px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ══════════════ ビューア ══════════════ */
.viewer-panel {
  background: transparent;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
}

.viewer-panel .modal-header.overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding-top: calc(14px + var(--safe-top));
}

.viewer-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  padding-left: 4px;
}

.viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.viewer-body img,
.viewer-body video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px calc(24px + var(--safe-bottom));
  flex-shrink: 0;
}

.viewer-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 12px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: transform 0.15s ease;
}

.viewer-action:active { transform: scale(0.94); }

.viewer-action.primary {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

.viewer-action.danger {
  background: rgba(168, 32, 26, 0.35);
  color: #ff9189;
}

/* ══════════════ リーダー ══════════════ */
.reader-panel {
  max-height: 92vh;
  max-height: 92dvh;
}

.reader-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 12px;
  border-radius: 100px;
  font-weight: 500;
}

.reader-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 26px calc(36px + var(--safe-bottom));
  -webkit-user-select: text;
  user-select: text;
}

.reader-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.reader-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.reader-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 2.05;
  color: #3a382f;
  letter-spacing: 0.02em;
}

.reader-text p { margin-bottom: 1.4em; }

.reader-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ══════════════ トースト ══════════════ */
.toast {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(16, 16, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s ease;
  max-width: 86vw;
  text-align: center;
  pointer-events: none;
}

.toast.error { background: rgba(140, 24, 18, 0.94); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast.out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ══════════════ 横画面・大画面調整 ══════════════ */
@media (min-width: 768px) {
  .camera-section {
    max-width: 560px;
    margin: 0 auto;
  }
  .news-section { padding-bottom: 80px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .cam-controls {
    padding-bottom: calc(20px + var(--safe-bottom));
  }
  .zoom-control {
    bottom: calc(96px + var(--safe-bottom));
  }
  .scroll-hint { display: none; }
}
