/* ========================================
   Web Contents — 共通スタイル
   ======================================== */

:root {
  --bg-primary: #1a1a22;
  --bg-card: #24242e;
  --bg-card-hover: #2c2c38;
  --text-primary: #e8e8ec;
  --text-secondary: #9a9aaa;
  --text-muted: #666678;
  --accent-blue: #4a80cc;
  --accent-gold: #c7a04a;
  --accent-purple: #7a5acc;
  --accent-green: #4aaa6a;
  --accent-red: #cc4a5a;
  --border-subtle: #333344;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  padding: 0 0 48px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.header .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Container --- */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* --- Section --- */
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 28px 0 12px;
  padding-left: 4px;
}

.section-title:first-child {
  margin-top: 0;
}

/* --- Card --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: background 0.15s;
}

.card:hover {
  background: var(--bg-card-hover);
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  vertical-align: middle;
}

.tag-update   { background: #1e3a2a; color: #6ddb8d; }
.tag-event    { background: #3a3420; color: #dbc77d; }
.tag-maint    { background: #3a2020; color: #db7d7d; }
.tag-new      { background: #1e2a4a; color: #7db5db; }
.tag-important { background: #4a1e3a; color: #db7dbb; }

/* --- Date --- */
.date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* --- Price badge --- */
.price {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-paid { background: var(--accent-gold); color: #1a1a22; }
.price-free { background: var(--accent-blue); color: #fff; }

/* --- Banner --- */
.banner {
  background: linear-gradient(135deg, #3a2a6a, #5a3acc);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.banner h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.banner p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Shop item row --- */
.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shop-item .info {
  flex: 1;
  min-width: 0;
}

/* --- Notification card with left border --- */
.notification-card {
  border-left: 4px solid var(--accent-blue);
}

.notification-card.type-event {
  border-left-color: var(--accent-gold);
}

.notification-card.type-maint {
  border-left-color: var(--accent-red);
}

.notification-card.type-important {
  border-left-color: var(--accent-purple);
}

/* --- Help --- */
.help-card {
  cursor: pointer;
}

.help-card .question {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.help-card .answer {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.help-card .answer code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.step-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.step-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 8px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
}

.footer a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .header { padding: 14px 16px; }
  .container { padding: 16px 12px; }
  .card { padding: 14px; }
  .banner { padding: 20px 16px; }
}
