/* =====================================================
   ウナシ プラットフォーム 共通スタイル
   コーポレートカラー: 青 (#1d4ed8系) ・ 黄 (#facc15系)
   業界カラー(YouTube): 白・黒・赤(#ff0033) はアクセントのみ
   ===================================================== */

:root {
  --blue-900: #1f0ce1;
  --blue-700: #143ebf;
  --blue-600: #1777e6;
  --blue-500: #248bff;
  --blue-100: #dce8ff;
  --blue-50:  #f5f8fd;
  --yellow-500: #ffe15a;
  --yellow-600: #e3ab00;
  --yellow-100: #fff4cc;
  --red-yt: #ff0033;
  --ink: #25262e;
  --ink-soft: #6f7382;
  --line: #dde2ec;
  --bg: #f5f8fd;
  --card: #ffffff;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(37, 38, 46, 0.08);
  --shadow-hover: 0 18px 50px rgba(31, 12, 225, 0.12);
}

/* 未確定値（面談で開示）の控えめ表記 */
.tbd {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #8a95a8;
  background: #f1f4f9;
  border-radius: 6px;
  padding: 1px 9px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { opacity: 0.85; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 226, 236, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue-900);
  letter-spacing: 0.02em;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600) 58%, var(--yellow-500) 58%);
  display: inline-block;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--blue-900);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.header-nav .nav-soon {
  color: #9aa3b2;
  cursor: default;
  pointer-events: none;
}
.header-nav .nav-soon span {
  font-size: 0.62rem;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: 2px;
}
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); opacity: 1; }
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  padding: 11px 26px;
  font-size: 0.95rem;
}
.btn-accent {
  background: var(--yellow-500);
  color: var(--blue-900);
  padding: 13px 32px;
  font-size: 1rem;
}
.btn-ghost {
  background: #fff;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-600);
  padding: 10px 24px;
  font-size: 0.9rem;
}
.btn-block { display: block; width: 100%; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(145deg, #0f2160 0%, var(--blue-900) 45%, var(--blue-600) 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.35), transparent 70%);
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.hero h1 .hl { color: var(--yellow-500); }
.hero .lede {
  margin-top: 16px;
  font-size: 1.02rem;
  color: #dbe4ff;
  max-width: 620px;
}
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 640px;
}
.hero-stats .stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.hero-stats .num { font-size: 1.5rem; font-weight: 800; color: var(--yellow-500); }
.hero-stats .label { font-size: 0.78rem; color: #c6d2f5; }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2::before {
  content: "";
  width: 6px; height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-600), var(--yellow-500));
}
.section-head p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }

/* ---------- 掲載基準（正直に書く宣言） ---------- */
.standard-band { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0; }
.standard-box {
  border: 2px solid var(--blue-100);
  border-left: 6px solid var(--yellow-500);
  border-radius: var(--radius);
  background: var(--blue-50);
  padding: 28px 30px;
}
.standard-box h2 { font-size: 1.2rem; font-weight: 800; color: var(--blue-900); margin-bottom: 10px; }
.standard-lede { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; line-height: 1.9; }
.standard-list { list-style: none; display: grid; gap: 8px; font-size: 0.9rem; }
.standard-list li { padding-left: 24px; position: relative; }
.standard-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.66rem;
  display: flex; align-items: center; justify-content: center;
}
.standard-list b { color: var(--blue-700); }
.standard-note { margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- LINE先行案内バナー ---------- */
.senko-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  color: #fff;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.senko-banner h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.senko-banner h2::before { content: none; }
.senko-banner p { font-size: 0.9rem; color: #dbe4ff; max-width: 560px; }
.senko-banner .btn-line { flex-shrink: 0; padding: 15px 30px; }

.buyer-condition-form {
  margin-top: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.condition-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}
.condition-grid input,
.condition-grid select,
.condition-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.condition-grid textarea {
  min-height: 96px;
  resize: vertical;
}
.condition-grid .wide {
  grid-column: 1 / -1;
}

/* ---------- 担当者の見立て ---------- */
.comment-panel { border-left: 6px solid var(--yellow-500); }
.comment-panel .comment-body { font-size: 0.95rem; font-weight: 600; line-height: 1.9; }

/* ---------- フィルター ---------- */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}
.filter-bar label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 4px;
}
.filter-bar select {
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 30px 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234b5563'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.filter-bar .count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.filter-bar .count b { color: var(--blue-600); font-size: 1.05rem; }

/* ---------- 案件カード ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.deal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  color: var(--ink);
  position: relative;
}
.deal-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--yellow-500));
  opacity: 0;
  transition: opacity 0.16s ease;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--blue-100); opacity: 1; }
.deal-card:hover::before { opacity: 1; }
.deal-card .card-top {
  padding: 16px 18px 12px;
  border-bottom: 1px dashed var(--line);
}
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.02em;
}
.badge-cat { background: var(--blue-100); color: var(--blue-700); }
.badge-format { background: #f1f5f9; color: var(--ink-soft); }
.badge-new { background: var(--red-yt); color: #fff; }
.badge-director { background: var(--yellow-500); color: var(--blue-900); }
.badge-director-soft { background: #fef9c3; color: #854d0e; }
.badge-status-nego { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.badge-status-sold { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.deal-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  min-height: 3em;
}
.deal-card .deal-id { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; }
.card-body {
  padding: 14px 18px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
}
.card-metrics { flex: 1; display: grid; gap: 8px; }
.metric { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; }
.metric .k { color: var(--ink-soft); }
.metric .v { font-weight: 700; }
.metric .v.price { color: var(--blue-600); font-size: 1.15rem; }
.card-chart { width: 118px; flex-shrink: 0; }
.card-foot {
  padding: 0 18px 16px;
}
.deal-card.is-sold { opacity: 0.72; }
.deal-card.is-sold:hover { transform: none; box-shadow: var(--shadow); }

/* ---------- 流れ（3ステップ） ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.flow-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  position: relative;
}
.flow-step .step-no {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.flow-step:nth-child(2) .step-no { background: var(--blue-500); }
.flow-step:nth-child(3) .step-no { background: var(--yellow-600); }
.flow-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 0.86rem; color: var(--ink-soft); }

.note-box {
  margin-top: 26px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 5px solid var(--blue-600);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.9rem;
}
.note-box b { color: var(--blue-700); }

/* ---------- 詳細ページ ---------- */
.breadcrumb { font-size: 0.8rem; color: var(--ink-soft); padding: 18px 0 0; }
.detail-head { padding: 14px 0 8px; }
.detail-head h1 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--blue-900); line-height: 1.5; }
.detail-head .deal-id { color: #94a3b8; font-size: 0.8rem; margin-top: 4px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-100);
}
.panel .summary { font-size: 0.93rem; }

.check-list, .risk-list { list-style: none; display: grid; gap: 10px; font-size: 0.9rem; }
.check-list li, .risk-list li { padding-left: 26px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.risk-list li::before {
  content: "!";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--blue-900);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.panel-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.spec-table th { color: var(--ink-soft); font-weight: 600; width: 42%; white-space: nowrap; }
.spec-table td { font-weight: 700; }
.spec-table .price-cell { color: var(--blue-600); font-size: 1.25rem; }

.radar-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.radar-wrap svg { flex-shrink: 0; }
.radar-legend { flex: 1; min-width: 180px; display: grid; gap: 6px; }
.radar-legend .row { display: flex; justify-content: space-between; font-size: 0.84rem; }
.radar-legend .bar-bg {
  flex: 1; height: 8px; border-radius: 4px;
  background: var(--blue-100);
  margin: 7px 10px 0;
  overflow: hidden;
}
.radar-legend .bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }
.radar-legend .score-num { font-weight: 800; color: var(--blue-700); width: 2em; text-align: right; }

.chart-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.chart-tabs button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.chart-tabs button.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

/* ---------- 問い合わせフォーム ---------- */
.inquiry-panel { position: sticky; top: 84px; }
.inquiry-panel .price-line { text-align: center; margin-bottom: 14px; }
.inquiry-panel .price-line .label { font-size: 0.78rem; color: var(--ink-soft); }
.inquiry-panel .price-line .price { font-size: 1.9rem; font-weight: 800; color: var(--blue-600); }
.inquiry-panel .price-line .price small { font-size: 1rem; }

.btn-line {
  background: #06c755;
  color: #fff;
  padding: 14px 24px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-line:hover { box-shadow: 0 8px 20px rgba(6, 199, 85, 0.35); }
.mail-toggle { text-align: center; margin: 14px 0 4px; }
.mail-toggle button {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}
.mail-toggle button:hover { color: var(--blue-600); }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; }
.form-field label .req {
  color: var(--red-yt);
  font-size: 0.68rem;
  margin-left: 4px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 99, 231, 0.15);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.74rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 16px;
  font-size: 0.88rem;
  color: #166534;
  display: none;
}
.form-error {
  color: var(--red-yt);
  font-size: 0.78rem;
  margin-top: 8px;
  display: none;
}

.sold-overlay {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #25262e;
  color: #c6d2f5;
  padding: 40px 0 30px;
  margin-top: 40px;
  font-size: 0.84rem;
}
.site-footer .foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--blue-600); }
.site-footer .brand small { color: #aeb8d2; }
.site-footer a { color: #c6d2f5; }
.site-footer .roadmap { font-size: 0.78rem; line-height: 2; }
.site-footer .roadmap b { color: var(--yellow-500); }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.75rem; }

.market-footer-links {
  min-width: 220px;
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
}

.market-footer-links b {
  color: var(--yellow-500);
  margin-bottom: 4px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .condition-grid { grid-template-columns: 1fr; }
  .filter-bar .count { margin-left: 0; width: 100%; }
  .card-chart { width: 100px; }
}
