/* ============================================
   Localive モックアップ 共通スタイル
   brand: navy #1C3553 / gold #C9922A
   ============================================ */
:root {
  --navy: #1C3553;
  --navy-light: #2a4a6e;
  --navy-pale: #eef2f7;
  --gold: #C9922A;
  --gold-light: #e8c887;
  --gold-pale: #faf3e3;
  --bg: #f7f5f0;
  --white: #fff;
  --text: #2b2b2b;
  --gray: #6b7280;
  --line: #e2e0da;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --blue: #1d4ed8;
  --blue-bg: #dbeafe;
  --amber: #b45309;
  --amber-bg: #fef3c7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 64px; /* デモナビ分 */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 20px;
}
.logo { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--gray); flex: 1; }
.nav a:hover { color: var(--navy); }
.lang-switch {
  font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; color: var(--gray); background: var(--white); cursor: pointer;
}
.lang-switch b { color: var(--navy); }
.btn {
  display: inline-block; background: var(--gold); color: var(--white);
  font-weight: 700; font-size: 14px; border: none; border-radius: 8px;
  padding: 10px 22px; cursor: pointer; text-align: center;
}
.btn:hover { filter: brightness(1.06); }
.btn-navy { background: var(--navy); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: 6px; }
.btn-block { display: block; width: 100%; }

/* ---------- 管理系ヘッダー ---------- */
.app-header { background: var(--navy); color: var(--white); }
.app-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.app-header .logo { color: var(--white); }
.app-header .role-tag {
  font-size: 11.5px; font-weight: 700; background: var(--gold); color: var(--navy);
  border-radius: 999px; padding: 3px 12px;
}
.app-header .user { margin-left: auto; font-size: 13px; opacity: .9; }

/* ---------- レイアウト ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 40px 0; }
.sec-title { font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.sec-title small { display: block; font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sec-lead { font-size: 13.5px; color: var(--gray); margin-bottom: 20px; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 55%, #38618c 100%);
  color: var(--white); padding: 64px 0 56px;
}
.hero h1 { font-size: 38px; line-height: 1.45; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { font-size: 15px; opacity: .9; margin-bottom: 24px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 検索バー ---------- */
.search-bar {
  background: var(--white); border-radius: 12px; box-shadow: 0 6px 20px rgba(28,53,83,.18);
  display: flex; gap: 0; margin-top: 28px; overflow: hidden; max-width: 880px;
}
.search-bar .field { flex: 1; padding: 12px 18px; border-right: 1px solid var(--line); }
.search-bar .field label { display: block; font-size: 11px; color: var(--gray); font-weight: 700; }
.search-bar .field select, .search-bar .field input {
  border: none; font-size: 14px; color: var(--navy); width: 100%; background: transparent; font-weight: 600;
}
.search-bar .go { background: var(--gold); color: #fff; border: none; font-weight: 700; padding: 0 28px; font-size: 15px; cursor: pointer; }

/* ---------- カード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(28,53,83,.12); }
.thumb {
  height: 170px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: rgba(255,255,255,.92); position: relative;
}
.thumb .fav {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92);
  border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; border: none;
}
.thumb .area-tag {
  position: absolute; left: 10px; top: 10px; background: rgba(28,53,83,.85); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
}
.t1 { background: linear-gradient(135deg,#7c5e3c,#c9922a); }
.t2 { background: linear-gradient(135deg,#1c3553,#3b6ea5); }
.t3 { background: linear-gradient(135deg,#5b3a29,#a0653a); }
.t4 { background: linear-gradient(135deg,#2f4f4f,#5f9ea0); }
.t5 { background: linear-gradient(135deg,#4a235a,#8e44ad); }
.t6 { background: linear-gradient(135deg,#6e2c00,#d35400); }
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-body .cat { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .06em; }
.card-body h3 { font-size: 15.5px; color: var(--navy); line-height: 1.5; margin: 2px 0 6px; }
.card-body .meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.card-body .price { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--navy); }
.card-body .price small { font-weight: 500; color: var(--gray); font-size: 11.5px; }
.stars { color: var(--gold); font-size: 12.5px; }

/* ---------- バッジ・タグ ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.badge-gov { background: var(--green-bg); color: var(--green); }
.badge-new { background: var(--red-bg); color: var(--red); }
.badge-gold { background: var(--gold-pale); color: var(--amber); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-gray { background: var(--navy-pale); color: var(--gray); }

/* ---------- フィルタ ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px;
  font-size: 13px; padding: 6px 16px; cursor: pointer; color: var(--gray);
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }

/* ---------- フォーム ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.form-row label small { font-weight: 500; color: var(--gray); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.help { font-size: 12px; color: var(--gray); margin-top: 3px; }

/* ---------- ステップ ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps .st {
  flex: 1; text-align: center; font-size: 12.5px; padding: 9px 4px;
  background: var(--navy-pale); color: var(--gray); border-radius: 8px; font-weight: 600;
}
.steps .st.on { background: var(--navy); color: #fff; }
.steps .st.done { background: var(--green-bg); color: var(--green); }

/* ---------- テーブル ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--white); border-radius: 10px; overflow: hidden; }
table.data th { background: var(--navy); color: #fff; text-align: left; padding: 10px 14px; font-size: 12.5px; white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:nth-child(even) td { background: #fbfaf6; }
.status { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.s-paid { background: var(--blue-bg); color: var(--blue); }
.s-wait { background: var(--amber-bg); color: var(--amber); }
.s-ok { background: var(--green-bg); color: var(--green); }
.s-done { background: var(--navy-pale); color: var(--gray); }
.s-ng { background: var(--red-bg); color: var(--red); }

/* ---------- KPIタイル ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; padding: 14px 18px; }
.kpi .k-label { font-size: 12px; color: var(--gray); }
.kpi .k-value { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.kpi .k-value small { font-size: 13px; font-weight: 600; }
.kpi .k-diff { font-size: 11.5px; color: var(--green); font-weight: 700; }
.kpi .k-diff.down { color: var(--red); }

/* ---------- パネル ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; }
.panel h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h3 .badge { margin-left: auto; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }

/* ---------- 案件ボード ---------- */
.job {
  border: 1.5px solid var(--line); border-left: 6px solid var(--gold);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fffdf8;
}
.job .j-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job .j-title { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.job .j-meta { font-size: 12.5px; color: var(--gray); margin: 4px 0 10px; }
.job .j-actions { display: flex; gap: 8px; align-items: center; }
.job .j-reward { margin-left: auto; font-weight: 800; color: var(--navy); font-size: 14px; }

/* ---------- 通知 ---------- */
.notice { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.notice .n-icon { font-size: 18px; }
.notice .n-time { margin-left: auto; font-size: 11px; color: var(--gray); white-space: nowrap; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 36px 0 28px; margin-top: 30px; font-size: 13px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: var(--gold-light); font-size: 13px; margin-bottom: 8px; }
.site-footer a { display: block; opacity: .85; margin-bottom: 4px; }
.trust { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.trust span { background: rgba(255,255,255,.12); border-radius: 6px; padding: 4px 12px; }

/* ---------- デモ切替ナビ ---------- */
.demo-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #111827; color: #fff; display: flex; align-items: center;
  gap: 4px; padding: 8px 14px; font-size: 12px; overflow-x: auto;
}
.demo-nav .dn-label { font-weight: 800; color: var(--gold-light); margin-right: 8px; white-space: nowrap; }
.demo-nav a {
  white-space: nowrap; padding: 5px 12px; border-radius: 999px; color: #d1d5db;
}
.demo-nav a.cur { background: var(--gold); color: #1c1c1c; font-weight: 700; }
.demo-nav a:hover { background: rgba(255,255,255,.15); }

/* ---------- レビュー ---------- */
.review { border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.review .r-head { font-size: 12.5px; color: var(--gray); margin-bottom: 4px; }
.review p { font-size: 13.5px; }

/* ---------- ガイドカード ---------- */
.guide-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.guide-card { min-width: 150px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; }
.guide-face { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--gold-pale); border: 2.5px solid var(--gold); }
.guide-card .g-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.guide-card .g-area { font-size: 11.5px; color: var(--gray); }

@media (max-width: 860px) {
  .cards, .cards.c4 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar .field { border-right: none; border-bottom: 1px solid var(--line); }
  .hero h1 { font-size: 28px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
/* ---------- Phase A 追加コンポーネント ---------- */
.menu-btn { display: none; font-size: 22px; background: none; border: none; color: var(--navy); cursor: pointer; }

@media (max-width: 560px) {
  .cards, .cards.c4 { grid-template-columns: 1fr; }
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px; gap: 12px;
  }
  .site-header .inner { flex-wrap: wrap; position: relative; }
}

.mobile-book-bar { display: none; }
@media (max-width: 860px) {
  .mobile-book-bar {
    display: flex; position: fixed; bottom: 44px; /* demo-navの上 */ left: 0; right: 0; z-index: 90;
    background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px;
    align-items: center; justify-content: space-between; box-shadow: 0 -4px 12px rgba(28,53,83,.08);
  }
}

.video-placeholder { border: 2px dashed var(--line); border-radius: 12px; background: var(--navy-pale); padding: 40px 20px; text-align: center; color: var(--gray); font-size: 14px; }
.coming-soon-card { opacity: .55; cursor: not-allowed; position: relative; overflow: hidden; }
.coming-soon-card .ribbon { position: absolute; top: 12px; right: -30px; background: var(--gray); color: #fff; padding: 4px 40px; transform: rotate(45deg); font-size: 11px; font-weight: 700; z-index: 5; }
.chip.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.faq-a { font-size: 13.5px; color: var(--gray); margin-top: 8px; display: none; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-q::after { content: '+'; font-size: 18px; color: var(--gold); }
.faq-item.open .faq-q::after { content: '−'; }
.avatar-initial { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.guide-face.avatar-initial { font-size: 26px; }
.avatar-initial.lg { width: 120px; height: 120px; font-size: 42px; margin: 0 auto 14px; }
.walk-meter { display: flex; gap: 4px; margin: 6px 0; }
.walk-meter span { height: 8px; flex: 1; border-radius: 4px; background: var(--line); }
.walk-meter span.on { background: var(--gold); }

/* ---------- Stories: サムネ下部の白文字キャプション ---------- */
.thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 9px;
  font-size: 11.5px; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
