/* ================================================================
   ACS Support Forum – Frontend CSS
   ================================================================ */

/* ── CSS 変数 ──────────────────────────────────────────────────── */
:root {
  --acs-primary:        #4f46e5;
  --acs-primary-light:  #6366f1;
  --acs-primary-dark:   #4338ca;
  --acs-primary-bg:     #eef2ff;
  --acs-success:        #10b981;
  --acs-success-bg:     #d1fae5;
  --acs-warning:        #f59e0b;
  --acs-warning-bg:     #fef3c7;
  --acs-danger:         #ef4444;
  --acs-danger-bg:      #fee2e2;
  --acs-neutral:        #6b7280;
  --acs-neutral-bg:     #f3f4f6;
  --acs-bg:             #f8fafc;
  --acs-card:           #ffffff;
  --acs-border:         #e5e7eb;
  --acs-border-light:   #f0f0f0;
  --acs-text:           #111827;
  --acs-text-muted:     #6b7280;
  --acs-shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --acs-shadow:         0 4px 12px rgba(0,0,0,.08);
  --acs-shadow-lg:      0 10px 30px rgba(0,0,0,.1);
  --acs-radius:         12px;
  --acs-radius-sm:      6px;
  --acs-radius-xs:      4px;
  --acs-transition:     0.2s ease;
  --cat-color:          #4f46e5;
}

/* ── リセット・ベース ───────────────────────────────────────────── */
.acs-forum-wrap *,
.acs-forum-wrap *::before,
.acs-forum-wrap *::after { box-sizing: border-box; }
.acs-forum-wrap {
  background: var(--acs-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--acs-text);
}

/* ── コンテナ ──────────────────────────────────────────────────── */
.acs-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── セクション ─────────────────────────────────────────────────── */
.acs-section { margin-top: 40px; }
.acs-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--acs-text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--acs-border);
}

/* ── ヒーロー ──────────────────────────────────────────────────── */
.acs-hero {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #6366f1 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}
.acs-hero-category {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cat-color) 80%, #000) 0%,
    var(--cat-color) 60%,
    color-mix(in srgb, var(--cat-color) 70%, #fff) 100%);
}
.acs-hero-inner { max-width: 640px; margin: 0 auto; }
.acs-hero-icon  { font-size: 48px; margin-bottom: 12px; display: block; }
.acs-hero-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin: 0 0 12px; letter-spacing: -.5px; }
.acs-hero-desc  { font-size: 15px; opacity: .85; margin: 0 0 24px; line-height: 1.7; }
.acs-hero-help  { font-size: 13px; background: rgba(255,255,255,.15); padding: 8px 16px; border-radius: 8px; margin: 0 0 20px; }
.acs-hero-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.acs-stat       { background: rgba(255,255,255,.2); padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* ── 検索フォーム ───────────────────────────────────────────────── */
.acs-search-form  { margin-bottom: 20px; }
.acs-search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--acs-shadow-lg);
  max-width: 540px;
  margin: 0 auto;
}
.acs-search-icon  { padding: 0 12px 0 20px; font-size: 18px; color: var(--acs-neutral); }
.acs-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 8px;
  font-size: 15px;
  color: var(--acs-text);
  background: transparent;
}
.acs-search-btn {
  background: var(--acs-primary);
  color: #fff;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--acs-transition);
}
.acs-search-btn:hover { background: var(--acs-primary-dark); }

/* ── ヒーロー CTA ────────────────────────────────────────────────── */
.acs-hero-cta { margin-top: 4px; }
.acs-breadcrumb-link {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--acs-transition);
}
.acs-breadcrumb-link:hover { color: #fff; }

/* ── カテゴリグリッド ──────────────────────────────────────────── */
.acs-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.acs-sub-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.acs-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--acs-card);
  border: 2px solid var(--acs-border);
  border-radius: var(--acs-radius);
  padding: 20px 16px;
  text-decoration: none;
  color: var(--acs-text);
  transition: all var(--acs-transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.acs-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color, var(--acs-primary));
  opacity: 0;
  transition: opacity var(--acs-transition);
}
.acs-cat-card:hover,
.acs-cat-card.is-active {
  border-color: var(--cat-color, var(--acs-primary));
  box-shadow: var(--acs-shadow);
  transform: translateY(-2px);
  color: var(--acs-text);
}
.acs-cat-card:hover::before,
.acs-cat-card.is-active::before { opacity: 1; }
.acs-cat-card.is-active { background: var(--acs-primary-bg); }

.acs-cat-icon  { font-size: 28px; line-height: 1; }
.acs-cat-name  { font-size: 14px; font-weight: 700; }
.acs-cat-count { font-size: 12px; color: var(--acs-text-muted); }
.acs-cat-sub   { font-size: 11px; color: var(--acs-primary); background: var(--acs-primary-bg); padding: 2px 8px; border-radius: 10px; }

/* ── 一覧ヘッダー ──────────────────────────────────────────────── */
.acs-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.acs-list-header .acs-section-title { margin: 0; border: none; padding: 0; }

.acs-list-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.acs-filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--acs-border);
  background: var(--acs-card);
  color: var(--acs-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: all var(--acs-transition);
  cursor: pointer;
}
.acs-filter-btn:hover,
.acs-filter-btn.is-active {
  background: var(--acs-primary);
  border-color: var(--acs-primary);
  color: #fff;
}

/* ── 質問一覧 ──────────────────────────────────────────────────── */
.acs-topic-list { display: flex; flex-direction: column; gap: 2px; }

.acs-topic-item {
  display: flex;
  align-items: stretch;
  background: var(--acs-card);
  border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius-sm);
  overflow: hidden;
  transition: all var(--acs-transition);
  text-decoration: none;
  color: inherit;
}
.acs-topic-item:hover {
  box-shadow: var(--acs-shadow);
  border-color: #d1d5db;
  transform: translateX(2px);
}

.acs-topic-status-bar { width: 4px; flex-shrink: 0; }
.acs-topic-main { flex: 1; padding: 16px 18px; min-width: 0; }
.acs-topic-reply-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--acs-bg);
  border-left: 1px solid var(--acs-border-light);
  min-width: 70px;
  flex-shrink: 0;
}
.acs-reply-num   { font-size: 22px; font-weight: 700; color: var(--acs-primary); line-height: 1; }
.acs-reply-label { font-size: 11px; color: var(--acs-text-muted); margin-top: 2px; }

.acs-topic-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.acs-topic-cat {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--acs-transition);
}
.acs-topic-cat:hover { opacity: .7; }

.acs-topic-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.acs-topic-title a {
  color: var(--acs-text);
  text-decoration: none;
  transition: color var(--acs-transition);
}
.acs-topic-title a:hover { color: var(--acs-primary); }

.acs-topic-excerpt {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--acs-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acs-topic-meta-bottom {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--acs-text-muted);
}
.acs-meta-item { display: flex; align-items: center; gap: 3px; }

/* ── ステータス・バッジ ──────────────────────────────────────────── */
.acs-topic-status,
.acs-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}
.status-open   { background: var(--acs-warning-bg); color: #92400e; }
.status-solved { background: var(--acs-success-bg); color: #065f46; }
.status-closed { background: var(--acs-neutral-bg); color: var(--acs-neutral); }

.acs-topic-solved-badge {
  background: var(--acs-success-bg);
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ── ページネーション ────────────────────────────────────────────── */
.acs-pagination { margin-top: 30px; display: flex; justify-content: center; }
.acs-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.acs-pagination .page-numbers li { margin: 0; }
.acs-pagination .page-numbers a,
.acs-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius-sm);
  color: var(--acs-text);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--acs-transition);
}
.acs-pagination .page-numbers a:hover { background: var(--acs-primary-bg); border-color: var(--acs-primary); color: var(--acs-primary); }
.acs-pagination .page-numbers .current { background: var(--acs-primary); border-color: var(--acs-primary); color: #fff; font-weight: 700; }

/* ── 空状態 ─────────────────────────────────────────────────────── */
.acs-empty { text-align: center; padding: 60px 20px; }
.acs-empty-icon { font-size: 48px; margin-bottom: 12px; }
.acs-empty-text { color: var(--acs-text-muted); font-size: 16px; }

/* ── パンくず ───────────────────────────────────────────────────── */
.acs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--acs-text-muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.acs-breadcrumb a { color: var(--acs-primary); text-decoration: none; }
.acs-breadcrumb a:hover { text-decoration: underline; }
.acs-bc-sep    { color: var(--acs-border); }
.acs-bc-current { color: var(--acs-text); font-weight: 600; }

/* ── 通知 ───────────────────────────────────────────────────────── */
.acs-notice {
  padding: 14px 18px;
  border-radius: var(--acs-radius-sm);
  margin: 16px 0;
  font-size: 14px;
  border-left: 4px solid;
}
.acs-notice-success { background: var(--acs-success-bg); border-color: var(--acs-success); color: #065f46; }
.acs-notice-error   { background: var(--acs-danger-bg);  border-color: var(--acs-danger);  color: #991b1b; }
.acs-notice ul { margin: 8px 0 0 20px; padding: 0; }
.acs-notice li { margin: 4px 0; }

/* ── 詳細ページレイアウト ────────────────────────────────────────── */
.acs-single-wrap  { padding-top: 0; }
.acs-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

/* ── トピックヘッダー ────────────────────────────────────────────── */
.acs-topic-header {
  background: var(--acs-card);
  border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius);
  padding: 24px;
  margin-bottom: 16px;
}
.acs-topic-header-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.acs-topic-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 2px 10px;
  border-radius: 12px;
  opacity: .85;
  transition: opacity var(--acs-transition);
}
.acs-topic-cat-link:hover { opacity: 1; }
.acs-topic-h1 { font-size: clamp(18px, 3vw, 26px); font-weight: 800; margin: 0 0 12px; line-height: 1.3; }
.acs-topic-submeta {
  display: flex; gap: 16px; font-size: 13px; color: var(--acs-text-muted); flex-wrap: wrap;
}

.acs-priority-pill {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
}
.priority-high   { background: var(--acs-danger-bg);  color: #991b1b; }
.priority-normal { background: var(--acs-neutral-bg); color: var(--acs-neutral); }
.priority-low    { background: #eff6ff; color: #1e40af; }

/* 管理者アクション */
.acs-admin-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--acs-border-light);
}
.acs-admin-label { font-size: 12px; color: var(--acs-text-muted); font-weight: 600; }
.acs-status-btn {
  padding: 4px 14px; border: 1px solid var(--acs-border);
  border-radius: 20px; background: var(--acs-card); cursor: pointer;
  font-size: 12px; color: var(--acs-text-muted);
  transition: all var(--acs-transition);
}
.acs-status-btn:hover     { border-color: var(--acs-primary); color: var(--acs-primary); }
.acs-status-btn.is-current { background: var(--acs-primary); border-color: var(--acs-primary); color: #fff; font-weight: 600; }

/* ── 投稿ブロック ────────────────────────────────────────────────── */
.acs-post {
  display: flex;
  gap: 14px;
  background: var(--acs-card);
  border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
}
.acs-original-post { border-color: var(--acs-primary); border-left: 3px solid var(--acs-primary); }
.acs-is-best       { border-color: var(--acs-success); border-left: 3px solid var(--acs-success); }

.acs-post-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--acs-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.acs-avatar-question { background: var(--acs-primary); }
.acs-avatar-best     { background: var(--acs-success); }

.acs-post-body  { flex: 1; min-width: 0; }
.acs-post-meta  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acs-reply-author { font-size: 14px; font-weight: 700; }
.acs-reply-date   { font-size: 12px; color: var(--acs-text-muted); }
.acs-post-content { font-size: 15px; line-height: 1.7; }
.acs-post-content p:last-child { margin-bottom: 0; }

.acs-reply-best-mark {
  position: absolute; top: -1px; right: 16px;
  background: var(--acs-success); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 0 0 8px 8px;
}

/* ベストアンサーボタン */
.acs-best-answer-btn {
  padding: 2px 10px; border: 1px solid var(--acs-border);
  border-radius: 12px; background: transparent; cursor: pointer;
  font-size: 11px; color: var(--acs-text-muted);
  transition: all var(--acs-transition); margin-left: auto;
}
.acs-best-answer-btn:hover { border-color: var(--acs-success); color: var(--acs-success); }
.acs-best-answer-btn.is-best { background: var(--acs-success-bg); border-color: var(--acs-success); color: #065f46; }

/* ベストアンサーハイライト */
.acs-best-answer-highlight {
  margin-bottom: 20px;
  position: relative;
}
.acs-best-badge {
  display: inline-block;
  background: var(--acs-success);
  color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 8px;
}
.acs-best-post { border: 2px solid var(--acs-success) !important; }

/* ── 環境情報 ────────────────────────────────────────────────────── */
.acs-env-info {
  margin-top: 16px; padding: 14px 16px;
  background: var(--acs-bg); border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius-sm);
}
.acs-env-title { font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.acs-env-pre   { font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 0; font-family: 'Courier New', monospace; }

/* ── 返信セクション ──────────────────────────────────────────────── */
.acs-replies-section { margin-top: 24px; }
.acs-replies-title {
  font-size: 16px; font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.acs-count {
  background: var(--acs-primary); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 12px;
}
.acs-replies-list { display: flex; flex-direction: column; }

/* ── 返信フォーム ────────────────────────────────────────────────── */
.acs-reply-form-wrap { margin-top: 30px; }
.acs-reply-title     { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.acs-closed-notice {
  text-align: center; padding: 20px;
  background: var(--acs-neutral-bg); border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius); color: var(--acs-text-muted);
  margin-top: 24px; font-size: 14px;
}

/* ── サイドバー ─────────────────────────────────────────────────── */
.acs-single-sidebar { display: flex; flex-direction: column; gap: 16px; }
.acs-sidebar-card {
  background: var(--acs-card); border: 1px solid var(--acs-border);
  border-radius: var(--acs-radius); padding: 18px;
}
.acs-sidebar-title { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.acs-info-list     { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.acs-info-list dt  { font-size: 11px; color: var(--acs-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.acs-info-list dd  { font-size: 14px; margin: 0; }

.acs-related-list  { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acs-related-item  { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.acs-related-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.status-dot-open   { background: var(--acs-warning); }
.status-dot-solved { background: var(--acs-success); }
.status-dot-closed { background: var(--acs-neutral); }
.acs-related-item a { color: var(--acs-text); text-decoration: none; flex: 1; }
.acs-related-item a:hover { color: var(--acs-primary); }
.acs-related-replies { font-size: 11px; color: var(--acs-text-muted); white-space: nowrap; }

.acs-sidebar-cta { text-align: center; }
.acs-sidebar-cta p { font-size: 13px; color: var(--acs-text-muted); margin: 0 0 12px; }

/* ── フォーム ───────────────────────────────────────────────────── */
.acs-form { max-width: 100%; }
.acs-form-row     { display: flex; gap: 16px; }
.acs-form-row-2   > .acs-form-group { flex: 1; min-width: 0; }
.acs-form-group   { margin-bottom: 20px; }
.acs-label {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--acs-text); margin-bottom: 6px;
}
.acs-required { color: var(--acs-danger); margin-left: 2px; }
.acs-optional { font-size: 12px; font-weight: 400; color: var(--acs-text-muted); }

.acs-input,
.acs-select,
.acs-textarea {
  display: block; width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--acs-border);
  border-radius: var(--acs-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--acs-text);
  background: #fff;
  transition: border-color var(--acs-transition), box-shadow var(--acs-transition);
  -webkit-appearance: none;
  appearance: none;
}
.acs-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.acs-textarea { resize: vertical; min-height: 120px; }
.acs-textarea-sm { min-height: 90px; }

.acs-input:focus,
.acs-select:focus,
.acs-textarea:focus {
  outline: none;
  border-color: var(--acs-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.acs-field-note { font-size: 12px; color: var(--acs-text-muted); margin: 5px 0 0; }
.acs-char-count { font-size: 12px; color: var(--acs-text-muted); text-align: right; margin-top: 4px; }

/* 環境情報 */
.acs-env-group   { background: var(--acs-bg); border: 1px solid var(--acs-border); border-radius: var(--acs-radius-sm); padding: 16px; }
.acs-env-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.acs-env-tip     { font-size: 12px; color: var(--acs-text-muted); }

/* 類似質問 */
.acs-similar-box {
  margin-top: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--acs-radius-sm);
  overflow: hidden;
}
.acs-similar-header { padding: 10px 14px; font-size: 13px; font-weight: 700; color: #92400e; background: #fef3c7; }
.acs-similar-list   { list-style: none; margin: 0; padding: 8px 0; }
.acs-similar-list li { padding: 0; border-bottom: 1px solid #fde68a; }
.acs-similar-list li:last-child { border-bottom: none; }
.acs-similar-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 13px; color: var(--acs-text);
  text-decoration: none; transition: background var(--acs-transition);
}
.acs-similar-list a:hover { background: #fef9c3; }
.acs-similar-status { font-size: 11px; font-weight: 700; white-space: nowrap; }
.acs-similar-replies { font-size: 11px; color: var(--acs-text-muted); margin-left: auto; white-space: nowrap; }

/* ── ボタン ─────────────────────────────────────────────────────── */
.acs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--acs-transition);
  line-height: 1;
}
.acs-btn-primary {
  background: var(--acs-primary); color: #fff;
}
.acs-btn-primary:hover { background: var(--acs-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.acs-btn-secondary { background: #fff; color: var(--acs-primary); border: 2px solid var(--acs-primary); }
.acs-btn-secondary:hover { background: var(--acs-primary-bg); transform: translateY(-1px); }
.acs-btn-lg  { padding: 14px 28px; font-size: 16px; }
.acs-btn-block { display: flex; width: 100%; }
.acs-btn-outline {
  padding: 7px 14px; border-radius: var(--acs-radius-sm);
  border: 1px solid var(--acs-border); background: #fff;
  font-size: 13px; cursor: pointer; color: var(--acs-text);
  transition: all var(--acs-transition);
}
.acs-btn-outline:hover { border-color: var(--acs-primary); color: var(--acs-primary); background: var(--acs-primary-bg); }
.acs-btn-link { font-size: 13px; color: var(--acs-primary); text-decoration: none; }
.acs-btn-link:hover { text-decoration: underline; }

.acs-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acs-form-note { font-size: 12px; color: var(--acs-text-muted); margin: 0; }

/* ── レスポンシブ ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .acs-single-layout { grid-template-columns: 1fr; }
  .acs-single-sidebar { order: -1; }
  .acs-category-grid  { grid-template-columns: repeat(2, 1fr); }
  .acs-form-row-2     { flex-direction: column; gap: 0; }
  .acs-list-header    { flex-direction: column; align-items: flex-start; }
  .acs-hero           { padding: 40px 16px 36px; }
  .acs-topic-reply-count { display: none; }
  .acs-container      { padding: 0 16px 40px; }
  .acs-form-actions   { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .acs-category-grid { grid-template-columns: 1fr; }
  .acs-post { flex-direction: column; }
  .acs-post-avatar { width: 36px; height: 36px; font-size: 14px; }
}
