/* Solomon-app shared styles (v1) */
:root{
  --brand:#2563eb;
  --brand-strong:#1d4ed8;
  --text:#0f172a;
  --muted:#64748b;
  --bg:#f8fafc;
  --card:#ffffff;
  --border:#e2e8f0;
  --shadow:0 10px 30px rgba(2,6,23,0.08);
  --header-h:72px;
  --radius:16px;
  --radius-sm:12px;
  --maxw:1100px;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"メイリオ", Meiryo, "Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
}
body.has-fixed-header{ padding-top: var(--header-h); }

a{ color:inherit; }
a:hover{ opacity:.9; }

.site-header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--header-h);
  background:#fff;
  border-bottom:1px solid var(--border);
  z-index:9999;
}
.site-header__inner{
  height:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.site-brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  text-decoration:none;

  /* <a class="site-brand">Solomon-app</a> のように span が無い場合でも
     ブランドが小さく黒くならないようにする */
  font-size:34px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--brand-strong);
}
.site-brand__logo{
  font-size:34px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--brand-strong);
}
.site-brand__tag{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.site-nav a{
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
}
.site-nav a.nav-pill{
  border:2px solid var(--brand);
}
.site-nav a.nav-cta{
  background:#fde047; /* yellow */
  border:2px solid #facc15;
  color:#0f172a;
}
.site-nav a.nav-link:hover{
  background:rgba(37,99,235,.08);
}

.page-wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px;
}

.page-head{
  max-width: var(--maxw);
  margin: 14px auto 12px;
  padding: 0 18px;
}
.page-head h1{
  margin: 10px 0 6px;
  font-size: 28px;
  letter-spacing: .2px;
}
.page-head p{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#auth-bar{
  background: #fff;
  border-bottom: 1px solid var(--border);
}
#auth-bar .authbar{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
#auth-bar .authbar .left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
#auth-bar .authbar .meta{
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
}
#auth-bar .authbar button{
  appearance:none;
  border:1px solid var(--border);
  background:#fff;
  padding:8px 12px;
  border-radius: 999px;
  font-weight:800;
  cursor:pointer;
}
#auth-bar .authbar button.primary{
  border-color: var(--brand);
  background: rgba(37,99,235,.08);
}
#auth-bar .authbar button:hover{ opacity:.9; }

.btn-link{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  background:#fff;
}
.btn-link:hover{ background: rgba(2,6,23,.03); }

@media (max-width: 720px){
  .site-brand{ font-size: 28px; }
  .site-brand__logo{ font-size: 28px; }
  .site-brand__tag{ display:none; }
  .site-nav{ gap:8px; }
  .site-nav a{ padding:8px 10px; }
}
/* ===============================
   Extra UI components (forms, tables, buttons)
   =============================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.btn:active{ transform: translateY(0); box-shadow:none; }

.btn-primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.btn-primary:hover{ box-shadow: 0 14px 30px rgba(37, 99, 235, .22); }

.btn-secondary{
  background:#fff;
  border-color:var(--border);
  color:var(--text);
}
.btn-danger{
  background:#fff;
  border-color:#fca5a5;
  color:#b91c1c;
}
.btn-linklike{
  border:none;
  background:transparent;
  padding:0;
  border-radius:0;
  color:var(--brand);
  font-weight:800;
  box-shadow:none;
}
.btn-linklike:hover{ transform:none; box-shadow:none; text-decoration:underline; }

.input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  font-size:14px;
}
textarea{ min-height:160px; resize:vertical; }
label{ font-weight:800; color:#111827; }

.form-grid{ display:grid; gap:12px; }
.form-row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:12px;
  align-items:center;
}
@media (max-width: 720px){
  .form-row{ grid-template-columns: 1fr; }
}

.help{ font-size:12px; color:var(--muted); }
.hr{ height:1px; background:var(--border); margin:16px 0; }

.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  font-size:14px;
  vertical-align:top;
}
.table th{
  background:#f8fafc;
  color:#334155;
  font-weight:900;
  font-size:13px;
}
.table tr:last-child td{ border-bottom:none; }
.table .td-actions{
  white-space:nowrap;
  display:flex;
  gap:10px;
  align-items:center;
}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background:#0b1220;
  color:#e5e7eb;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
}

.notice{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  color:#334155;
}
.notice strong{ color:#0f172a; }
.notice .muted{ color:var(--muted); font-weight:700; }

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  font-weight:900;
  color:#0f172a;
}
