/* ==========================================================================
   ご縁ガール 企業・店舗パートナー管理ポータル スタイルシート
   ========================================================================== */

:root {
  --primary: #c84127; /* 茜色・朱色 */
  --primary-light: #fbeae6;
  --primary-dark: #a12e17;
  --accent: #1199c4;  /* みるくブルー */
  --accent-light: #e6f6fb;
  --gold: #d49a37;    /* 金・真鍮 */
  --gold-light: #fef8ec;
  --sakura: #e9588d;  /* つつじピンク */
  --sakura-light: #fdf0f5;
  
  --bg-main: #f5f7fa;
  --bg-sidebar: #1a2233;
  --bg-card: #ffffff;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --info: #3b82f6;
  --info-light: #eff6ff;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-base: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 初回利用者が最初に行う3操作を明確にする */
.partner-first-actions {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 22px 0;
}
.partner-first-actions-head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:16px; }
.partner-first-actions h2 { font-size:20px; color:#7c2d12; }
.partner-first-actions-head p { max-width:440px; color:var(--text-muted); font-size:13px; }
.partner-eyebrow { display:block; color:#c2410c; font-weight:800; font-size:12px; margin-bottom:4px; }
.partner-action-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.partner-action-card { appearance:none; border:1px solid #fed7aa; background:#fff; border-radius:12px; padding:16px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:4px; transition:transform .15s, box-shadow .15s; color:var(--text-main); }
.partner-action-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:#f97316; }
.partner-action-card > span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#ea580c; color:#fff; font-weight:800; }
.partner-action-card strong { font-size:15px; margin-top:4px; }
.partner-action-card small { color:var(--text-muted); font-size:12px; }
@media (max-width: 780px) { .partner-first-actions-head { display:block; } .partner-first-actions-head p { margin-top:8px; } .partner-action-grid { grid-template-columns:1fr; } }

/* --------------------------------------------------------------------------
   サイドバー
   -------------------------------------------------------------------------- */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo-link {
  display: block;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.sidebar-logo-link:hover {
  transform: scale(1.02);
}

.sidebar-logo {
  max-width: 100%;
  height: 38px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.sidebar-app-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-app-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 店舗セレクタ（サイドバー内） */
.current-shop-box {
  margin: 14px 0 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.shop-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.shop-select-styled {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.shop-select-styled:focus {
  border-color: var(--primary);
}

/* ナビゲーション */
.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  padding: 12px 10px 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(200,65,39,0.4);
}

.nav-btn .nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
}

.nav-btn.active .nav-badge {
  background: #ffffff;
  color: var(--primary);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-footer a {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-footer a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   メインコンテンツラッパー
   -------------------------------------------------------------------------- */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* トップバー */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-to-dashboard {
  appearance: none;
  border: 1px solid var(--partner-line, #dfe1e6);
  background: #fff;
  color: #0747a6;
  border-radius: 7px;
  padding: 7px 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.back-to-dashboard:hover,
.back-to-dashboard:focus-visible {
  background: #deebff;
  border-color: #0747a6;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shop-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.shop-status-badge.pending {
  background: var(--warning-light);
  color: #92400e;
  border-color: #fde68a;
}

.btn-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-admin-link:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* コンテンツエリア */
.content {
  flex: 1;
  padding: 24px 28px 48px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* タブペイン */
.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   共通カード・UIコンポーネント
   -------------------------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  font-size: 18px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: #f8fafc;
  border-color: var(--border-dark);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #0e81a7;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: #b58129;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-copy {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: #334155;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-copy:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-copy.copied {
  background: var(--success-light);
  color: #065f46;
  border-color: #a7f3d0;
}

/* バナー・アラート */
.alert-banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-info {
  background: var(--info-light);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.alert-gold {
  background: var(--gold-light);
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-success {
  background: var(--success-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* グリッドレイアウト */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --------------------------------------------------------------------------
   1. ダッシュボード用
   -------------------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.kpi-card.blue::before { background: var(--accent); }
.kpi-card.gold::before { background: var(--gold); }
.kpi-card.pink::before { background: var(--sakura); }

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin: 8px 0 2px;
}

.kpi-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* 店舗基本情報カード */
.shop-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.shop-hero-card::after {
  content: '🌸';
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 140px;
  opacity: 0.07;
  pointer-events: none;
}

.shop-hero-content {
  max-width: 65%;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.shop-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.shop-hero-meta {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.shop-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shop-hero-character {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.08);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
}

.shop-hero-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--gold);
}

.shop-char-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.shop-char-costume {
  font-size: 11px;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   2. 設置店まるわかりガイド (初心者向け)
   -------------------------------------------------------------------------- */
.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.guide-step-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.guide-step-number {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 28px;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
}

.guide-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 8px;
  width: fit-content;
}

.guide-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.guide-step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.guide-feature-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.guide-feature-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.guide-feature-box p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. 「ご縁をつなぐ動画」実践ガイド＆近隣紹介管理シート
   -------------------------------------------------------------------------- */
.concept-hero-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.concept-hero-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 8px;
}

.concept-ratio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.ratio-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #fcd34d;
  box-shadow: var(--shadow-sm);
}

.ratio-box.self {
  border-color: #fdba74;
}

.ratio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ratio-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.ratio-tag.self { background: #ffedd5; color: #c2410c; }
.ratio-tag.neighbor { background: #fef08a; color: #854d0e; }

.ratio-count {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

/* 声かけテンプレート */
.template-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #334155;
  white-space: pre-wrap;
  font-family: var(--font-base);
  line-height: 1.7;
}

/* 近隣紹介管理テーブル */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.table-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.table-status-pill.done { background: var(--success-light); color: #065f46; }
.table-status-pill.progress { background: var(--info-light); color: #1e40af; }
.table-status-pill.wait { background: var(--warning-light); color: #92400e; }

/* --------------------------------------------------------------------------
   4. 動画納品・受取欄
   -------------------------------------------------------------------------- */
.video-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.delivery-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.delivery-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-type-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.delivery-type-badge.self {
  background: #fee2e2;
  color: #991b1b;
}

.delivery-type-badge.neighbor {
  background: #fef3c7;
  color: #92400e;
}

.delivery-body {
  padding: 18px;
  display: flex;
  gap: 18px;
  flex: 1;
}

.delivery-video-col {
  width: 170px;
  flex-shrink: 0;
}

.delivery-video-player {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}

.delivery-video-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delivery-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-field {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: relative;
}

.delivery-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.delivery-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.delivery-field-text {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 100px;
  overflow-y: auto;
}

.delivery-field-tags {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
}

.delivery-collab-notice {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 11px;
  color: #3730a3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   5. URL自動生成＆動画制作ノウハウ
   -------------------------------------------------------------------------- */
.photo-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}

.photo-guide-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.photo-guide-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  color: #334155;
  display: inline-block;
  margin-bottom: 6px;
}

.photo-guide-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.photo-guide-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* OK / NG カード */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 16px 0;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: 18px;
}

.compare-card.ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.compare-card.ng {
  background: #fef2f2;
  border: 1px solid #fca5a5;
}

.compare-header {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.compare-card.ok .compare-header { color: #166534; }
.compare-card.ng .compare-header { color: #991b1b; }

.compare-list {
  font-size: 12px;
  line-height: 1.8;
  padding-left: 20px;
}

.compare-card.ok .compare-list { color: #15803d; }
.compare-card.ng .compare-list { color: #b91c1c; }

/* 企画の型カード */
.hook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.hook-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid var(--gold);
}

.hook-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hook-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. フォーム（問い合わせ・素材提供・近隣紹介追加）
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .req {
  color: var(--primary);
  font-size: 10px;
  margin-left: 4px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,65,39,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ファイルドロップゾーン風UI */
.file-upload-box {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-upload-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.file-upload-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.file-upload-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   7. 問い合わせタイムライン・チャット
   -------------------------------------------------------------------------- */
.inquiry-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inquiry-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.inquiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.inquiry-cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: #334155;
}

.inquiry-date {
  font-size: 11px;
  color: var(--text-muted);
}

.inquiry-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.inquiry-content {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-wrap;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.inquiry-reply {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e293b;
  margin-top: 8px;
}

.inquiry-reply-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   8. モーダル
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   トースト通知
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  background: #10b981;
  color: #fff;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3, .guide-step-grid, .photo-guide-grid {
    grid-template-columns: 1fr;
  }
  .video-delivery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 270px;
    height: 100vh;
    transition: left 0.3s ease;
  }
  
  .sidebar.mobile-open {
    left: 0;
  }
  
  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 95;
    display: none;
  }
  
  .sidebar-backdrop.show {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .topbar {
    padding: 12px 16px;
  }
  
  .content {
    padding: 16px 14px 40px;
  }
  
  .grid-2, .concept-ratio-grid, .comparison-grid, .hook-grid {
    grid-template-columns: 1fr;
  }
  
  .shop-hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .shop-hero-content {
    max-width: 100%;
  }
  
  .delivery-body {
    flex-direction: column;
  }
  
  .delivery-video-col {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Googleプレイス検索連動＆外観プレビュー スタイル
   ========================================================================== */
.places-suggest-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1050;
  margin-top: 4px;
}

.places-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.places-suggest-item:last-child {
  border-bottom: none;
}

.places-suggest-item:hover {
  background-color: #f0f9ff;
}

.places-suggest-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.places-suggest-info {
  flex: 1;
  min-width: 0;
}

.places-suggest-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.places-suggest-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-preset-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}

.btn-preset-chip:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}

.table-thumb-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-shop-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
