/* ========================================
   Cockpit - よーへー専用ポータル
   ダーク基調 / 紺・チャコール / ゴールドアクセント
   ======================================== */

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

:root {
  --bg-deep:    #0b1020;   /* 深い紺 */
  --bg-panel:   #131a2e;   /* パネル */
  --bg-card:    #1a2238;   /* カード */
  --bg-card-hover: #232d4a;
  --border:     #2a3354;
  --text-main:  #e6ebf5;
  --text-sub:   #8b95b2;
  --text-dim:   #5a6485;
  --gold:       #d4af37;
  --gold-soft:  #e8c468;
  --accent:     #4a7dd1;
  --disabled-bg: #161c30;
  --disabled-text: #4a5470;
  --shadow:     0 4px 14px rgba(0,0,0,0.45);
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Yu Gothic UI", Meiryo, sans-serif;
  background:
    radial-gradient(ellipse at top left, #1a2444 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, #1b1f3a 0%, transparent 55%),
    var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ========== ヘッダー ========== */
.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.header-left h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
}
.header-left h1 .accent {
  color: var(--gold);
}
.header-left .tagline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.clock {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.clock .date {
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}
.clock .time {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

/* ========== メイン ========== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* 確認待ち */
.pending-section {
  background: linear-gradient(135deg, #2a1f3a 0%, #1f2440 100%);
  border: 1px solid #4a3a6a;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.pending-section h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.pending-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pending-section li {
  font-size: 14px;
  color: var(--text-main);
  padding-left: 14px;
  position: relative;
}
.pending-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold-soft);
}

/* カテゴリ */
.category {
  margin-bottom: 32px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.category-header .bar {
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}
.category-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.1em;
}
.category-header .count {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* カード */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 110px;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:not(.disabled):hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.12), var(--shadow);
}
.card:not(.disabled):hover::before {
  opacity: 1;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
}
.card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.card-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.card.disabled {
  background: var(--disabled-bg);
  border-color: #232b46;
  cursor: not-allowed;
  opacity: 0.55;
}
.card.disabled .card-name,
.card.disabled .card-desc {
  color: var(--disabled-text);
}
.card.disabled .card-icon {
  background: rgba(255,255,255,0.02);
  filter: grayscale(1);
}
.card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #2c324a;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* フッター */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  border-top: 1px solid var(--border);
}
.footer .sig {
  color: var(--gold-soft);
}

/* レスポンシブ */
@media (max-width: 600px) {
  .header { padding: 20px 16px 12px; }
  .header-left h1 { font-size: 22px; }
  .clock .time { font-size: 18px; }
  .main { padding: 18px 16px 40px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px; min-height: 96px; }
  .card-name { font-size: 13px; }
  .card-desc { font-size: 11px; }
  .card-icon { width: 28px; height: 28px; font-size: 18px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
