/* ===========================
   借金配達人 - スタイルシート
   =========================== */

:root {
  --black: #0D0D0D;
  --dark: #1A1A2E;
  --orange: #F5A623;
  --orange-dim: #8B5A00;
  --text: #E8E8E8;
  --text-dim: #888888;
  --border: #2A2A2A;
  --card-bg: #141414;
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo-block { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 28px; }
.site-title { font-size: 18px; font-weight: 900; color: var(--orange); letter-spacing: 0.05em; }
.site-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--text-dim); font-size: 13px; transition: color 0.2s; }
.main-nav a:hover { color: var(--orange); text-decoration: none; }

/* 借金ヒーロー */
.debt-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a00 100%);
  border-bottom: 2px solid var(--orange);
  padding: 48px 20px 40px;
  text-align: center;
}
.debt-inner { max-width: 600px; margin: 0 auto; }
.debt-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.debt-amount {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(40px, 10vw, 72px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 28px;
  text-shadow: 0 0 40px rgba(245,166,35,0.3);
}
.debt-progress-wrap { width: 100%; }
.debt-progress-bar {
  width: 100%; height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.debt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  border-radius: 4px;
  transition: width 1.5s ease;
}
.debt-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
}

/* 広告スペース */
.ad-slot { text-align: center; padding: 12px; }
.ad-top { border-bottom: 1px solid var(--border); background: #111; }
.ad-placeholder {
  display: inline-block;
  border: 1px dashed #333;
  color: #444;
  font-size: 11px;
  padding: 8px 24px;
  border-radius: 4px;
}

/* メインコンテンツ */
.main-content { padding: 40px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* セクションタイトル */
.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-title .accent { color: var(--orange); margin-right: 8px; }

/* 記事カード */
.post-card {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--orange-dim); }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.post-date { font-size: 11px; color: var(--text-dim); font-family: 'Share Tech Mono', monospace; }
.tag {
  font-size: 10px; padding: 2px 8px;
  background: #1a1a00; color: var(--orange);
  border: 1px solid var(--orange-dim); border-radius: 2px;
}
.post-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--orange); text-decoration: none; }
.post-excerpt { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.post-stats-row {
  display: flex; gap: 16px;
  font-size: 12px; color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #0a0a0a; border-radius: 3px;
}
.read-more { font-size: 12px; color: var(--orange); font-weight: 700; }

/* 空状態 */
.empty-state {
  padding: 48px 24px; text-align: center;
  border: 1px dashed var(--border); border-radius: 4px;
  color: var(--text-dim);
}

/* サイドバー */
.sidebar { position: sticky; top: 72px; }
.widget {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 20px; margin-bottom: 20px;
}
.widget-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--orange); margin-bottom: 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.about-text { font-size: 13px; color: var(--text-dim); line-height: 1.8; }
.ad-side { padding: 0; }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}
.admin-link { color: #333; font-size: 11px; margin-left: 16px; }
.admin-link:hover { color: var(--text-dim); }

/* レスポンシブ */
@media (max-width: 720px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .debt-progress-labels { font-size: 9px; }
}

/* 記事詳細ページ */
.post-single { max-width: 700px; margin: 0 auto; padding: 40px 20px; }
.post-single-title { font-size: 28px; font-weight: 900; margin-bottom: 16px; line-height: 1.3; }
.post-single-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.post-body { line-height: 2; font-size: 15px; }
.post-body p { margin-bottom: 1.4em; }
.post-body h2 { font-size: 20px; font-weight: 700; margin: 2em 0 0.8em; padding-left: 12px; border-left: 3px solid var(--orange); }
.post-body h3 { font-size: 17px; color: var(--orange); margin: 1.6em 0 0.6em; }

/* 管理画面 */
.admin-wrap { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.admin-title { font-size: 20px; font-weight: 900; color: var(--orange); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.1em; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: #111; border: 1px solid var(--border);
  color: var(--text); border-radius: 4px; font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--orange); }
textarea.form-control { min-height: 280px; resize: vertical; }
.btn {
  padding: 10px 28px; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--orange); color: #000; }
.btn-danger { background: #8B0000; color: #fff; }
.post-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 4px; margin-bottom: 8px; background: var(--card-bg);
  gap: 12px;
}
.post-list-title { font-size: 14px; }
.post-list-date { font-size: 11px; color: var(--text-dim); font-family: 'Share Tech Mono', monospace; }
.msg-success { color: #4CAF50; font-size: 13px; padding: 10px; background: #0a1a0a; border-radius: 4px; margin-bottom: 16px; }
.msg-error { color: #f44336; font-size: 13px; padding: 10px; background: #1a0a0a; border-radius: 4px; margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: 16px; text-align: center; }
.stat-card .stat-value { font-size: 22px; font-weight: 900; color: var(--orange); font-family: 'Share Tech Mono', monospace; }
.stat-card .stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ロゴをリンクに */
a.logo-block {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
a.logo-block:hover { text-decoration: none; }

/* アクティブナビ */
.main-nav a.nav-active { color: #F5A623; }
