:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --brand: #2563eb;
  --brand-2: #0f172a;
  --ok: #16a34a;
  --warn: #f59e0b;
  --shadow: 0 22px 60px rgba(15, 23, 42, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header, .app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand), #0ea5e9); }
nav, .app-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; }
nav a:hover { color: var(--brand); }
.hero { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: center; gap: clamp(28px, 6vw, 72px); padding: clamp(58px, 9vw, 110px) clamp(18px, 6vw, 80px); }
.eyebrow, .section-title span, .page-title span { color: var(--brand); font-weight: 900; font-size: 12px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
h3 { margin-bottom: 8px; }
.lead, .section-title p, .page-title p, article p { color: var(--muted); line-height: 1.75; }
.hero-actions, .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn, .ghost, .nav-btn, .role-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; }
.btn.primary { color: white; border-color: transparent; background: linear-gradient(135deg, var(--brand), #0ea5e9); }
.ghost { min-height: 36px; padding: 0 12px; color: var(--muted); }
.hero-panel { perspective: 900px; }
.mini-window { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); box-shadow: var(--shadow); transform: rotateY(-7deg) rotateX(4deg); }
.window-head { display: flex; gap: 8px; margin-bottom: 16px; }
.window-head i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.match-card, .ai-box { padding: 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.match-card span { color: var(--muted); }
.match-card strong { display: block; color: var(--brand); font-size: 64px; line-height: 1; margin: 12px 0; }
.section { padding: clamp(64px, 9vw, 110px) clamp(18px, 6vw, 80px); }
.band { background: var(--surface-2); }
.section-title { max-width: 800px; margin: 0 auto 32px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-grid article, .mvp-card, .panel, .auth-card, .role-card, .metric-grid article, .data-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 35px rgba(15, 23, 42, .06); }
.feature-grid article { padding: 22px; }
.feature-grid b { color: var(--brand); }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.flow span { padding: 18px; border-radius: var(--radius); color: white; font-weight: 900; background: linear-gradient(135deg, var(--brand-2), var(--brand)); text-align: center; }
.mvp-card { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: clamp(24px, 5vw, 42px); }
.footer { padding: 32px; color: var(--muted); display: flex; justify-content: center; gap: 18px; border-top: 1px solid var(--line); }
.footer a { color: var(--brand); font-weight: 900; }

.app-body { min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { padding: 18px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.nav-btn { text-align: left; min-height: 42px; padding: 0 12px; color: var(--muted); }
.nav-btn.active, .nav-btn:hover { color: var(--brand); background: var(--surface-2); }
.app-main { padding: clamp(22px, 4vw, 44px); }
.view { display: none; }
.view.active { display: block; animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-title { margin-bottom: 22px; }
.page-title h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-grid article { padding: 18px; }
.metric-grid span { color: var(--muted); }
.metric-grid strong { display: block; font-size: 34px; margin-top: 8px; }
.panel-grid, .proposal-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { padding: 22px; }
.mini-list, .data-grid { display: grid; gap: 12px; }
.data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-card { padding: 18px; }
.data-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.score { color: var(--brand); font-size: 28px; font-weight: 1000; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.tags span, .badge { padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.favorite.active { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.filter-bar { display: grid; grid-template-columns: 1fr 190px; gap: 12px; margin-bottom: 18px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 12px; }
.proposal-text { min-height: 300px; line-height: 1.7; resize: vertical; }
.form-note { color: var(--brand); font-weight: 800; }
.notice-list { color: var(--muted); line-height: 1.8; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; }
.table-panel { overflow-x: auto; }
.auth-card { width: min(480px, 100%); padding: 28px; margin: 70px auto; display: grid; gap: 12px; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-card { padding: 22px; text-align: left; min-height: 130px; }
.role-card b { display: block; font-size: 20px; margin-bottom: 10px; }
.role-card span { color: var(--muted); }
.hero-lite { margin-bottom: 18px; }
.form-panel { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-panel { display: grid; gap: 16px; }
.detail-list { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 18px; margin: 4px 0; }
.detail-list dt { color: var(--muted); font-weight: 800; }
.detail-list dd { margin: 0; }
.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.review-row:last-child { border-bottom: 0; }
.ai-memo {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(14, 165, 233, .08)),
    var(--surface);
}
.mini-list .data-card { box-shadow: none; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero, .feature-grid, .flow, .app-shell, .metric-grid, .panel-grid, .proposal-layout, .data-grid, .role-grid { grid-template-columns: 1fr; }
  .mini-window { transform: none; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; }
  .nav-btn { flex: 0 0 auto; }
  .mvp-card { align-items: stretch; flex-direction: column; }
  .app-actions { display: none; }
  .form-grid, .detail-list, .review-row { grid-template-columns: 1fr; }
}
