:root {
  --background: #fafafa;
  --foreground: #141820;
  --card: #ffffff;
  --primary: #063399;
  --primary-foreground: #fff;
  --muted: #f1f3f5;
  --muted-foreground: #6b7280;
  --accent: #e11d1d;
  --border: #dce1e8;
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.sw-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .sw-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .sw-container { padding: 0 2rem; } }

.sw-topbar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
}
.sw-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.sw-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.sw-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 900; font-size: 1.5rem;
}
.sw-logo-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sw-logo .accent { color: var(--accent); }
.sw-nav { display: none; gap: 0.25rem; }
@media (min-width: 768px) { .sw-nav { display: flex; } }
.sw-nav a {
  padding: 0.5rem 1rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: rgba(20,24,32,.7);
}
.sw-nav a:hover { background: var(--muted); color: var(--foreground); }
.sw-nav a.is-active { background: var(--primary); color: #fff; }
.sw-menu-toggle {
  display: inline-flex; background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
@media (min-width: 768px) { .sw-menu-toggle { display: none; } }
.sw-mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--card); padding: 0 1rem 1rem;
}
.sw-mobile-nav.is-open { display: block; }
.sw-mobile-nav a {
  display: block; padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.sw-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.sw-section { margin-bottom: 3.5rem; }
.sw-section-head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sw-section-head h2 { margin: 0; font-size: 1.5rem; font-weight: 900; }
.sw-section-head .icon { font-size: 1.875rem; }
.sw-section-head .more { margin-left: auto; font-size: 0.875rem; font-weight: 500; color: var(--primary); }

.sw-grid-featured {
  display: grid; gap: 1.5rem;
}
@media (min-width: 1024px) {
  .sw-grid-featured { grid-template-columns: 3fr 2fr; }
}
.sw-side-list { display: flex; flex-direction: column; gap: 1rem; }

.sw-card {
  display: block; overflow: hidden; border-radius: 0.75rem;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.sw-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.sw-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--muted); }
.sw-card-img.featured { aspect-ratio: 16/7; }
.sw-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sw-card:hover .sw-card-img img { transform: scale(1.05); }
.sw-card-body { padding: 1rem; }
.sw-card-body.featured { padding: 1.5rem; }
.sw-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; color: #fff;
  padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase;
}
.sw-cat-orange { background: #f97316; }
.sw-cat-green { background: #16a34a; }
.sw-cat-red { background: #dc2626; }
.sw-cat-yellow { background: #eab308; color: #111 !important; }
.sw-cat-blue { background: #2563eb; }
.sw-cat-emerald { background: #047857; }
.sw-cat-purple { background: #9333ea; }
.sw-meta { font-size: 0.75rem; color: var(--muted-foreground); display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0; }
.sw-card h2, .sw-card h3 { margin: 0 0 0.5rem; line-height: 1.25; font-weight: 700; }
.sw-card h2 { font-size: 1.5rem; }
.sw-card h3 { font-size: 1rem; }
.sw-card p.excerpt { margin: 0; color: var(--muted-foreground); font-size: 0.875rem; }

.sw-card-compact {
  display: flex; gap: 1rem; padding: 1rem;
  border-radius: 0.75rem; background: var(--card);
  border: 1px solid var(--border);
}
.sw-card-compact .thumb {
  width: 6rem; height: 5rem; flex-shrink: 0;
  overflow: hidden; border-radius: 0.5rem; background: var(--muted);
}
.sw-card-compact .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sw-card-compact h3 { margin: 0; font-size: 0.875rem; font-weight: 700; line-height: 1.25; }

.sw-article-hero {
  width: 100%; aspect-ratio: 21/9; max-height: 500px;
  overflow: hidden; background: var(--muted);
}
.sw-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.sw-article { max-width: 48rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.sw-article h1 { font-size: 2rem; font-weight: 900; line-height: 1.2; margin: 0 0 1rem; }
.sw-article .content { font-size: 1.05rem; line-height: 1.7; }
.sw-article .content h2 { margin-top: 2rem; font-size: 1.4rem; }
.sw-article .content h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.sw-article .content p { margin: 0 0 1rem; }

.sw-faq { margin-top: 2.5rem; }
.sw-faq details {
  border: 1px solid var(--border); border-radius: 0.5rem;
  margin-bottom: 0.5rem; background: var(--card); padding: 0.75rem 1rem;
}
.sw-faq summary { cursor: pointer; font-weight: 700; }

.sw-footer {
  background: var(--card); border-top: 1px solid var(--border);
  margin-top: 4rem; padding: 2.5rem 0 1.5rem;
}
.sw-footer-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) {
  .sw-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.sw-footer h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.sw-footer ul { list-style: none; margin: 0; padding: 0; }
.sw-footer li { margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.sw-footer a:hover { color: var(--foreground); }
.sw-footer-copy {
  border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.875rem; color: var(--muted-foreground);
}

.sw-ad-slot, .sw-sataku-slot {
  width: 100%; max-width: 970px; min-height: 90px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.sw-ad-placeholder {
  width: 100%; min-height: 90px;
  border: 1px dashed var(--border); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.75rem; color: var(--muted-foreground);
  padding: 1rem; cursor: pointer;
}
.sw-ad-placeholder:hover { color: var(--foreground); text-decoration: underline; }

.sw-cookie-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 100;
  padding: 1rem;
}
.sw-cookie-inner {
  max-width: 48rem; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.sw-cookie-inner h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.sw-cookie-inner p { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.sw-cookie-links a { color: var(--primary); }
.sw-cookie-actions {
  display: flex; flex-direction: column-reverse; gap: 0.5rem;
}
@media (min-width: 640px) {
  .sw-cookie-actions { flex-direction: row; justify-content: flex-end; }
}
.sw-btn {
  border: 0; border-radius: 0.375rem; padding: 0.6rem 1rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.sw-btn-primary { background: var(--primary); color: #fff; }
.sw-btn-outline { background: #fff; border: 1px solid var(--border); color: var(--foreground); }

.sw-pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; }
.sw-pagination a, .sw-pagination span {
  padding: 0.4rem 0.75rem; border-radius: 0.375rem;
  border: 1px solid var(--border); font-size: 0.875rem;
}
.sw-pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.sw-legal { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem; }
.sw-legal h1 { font-size: 1.875rem; font-weight: 900; margin-bottom: 0.5rem; }
.sw-legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.sw-legal h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.sw-legal p, .sw-legal li { color: var(--muted-foreground); line-height: 1.7; }
.sw-legal ul { margin: 0.75rem 0 0 1.25rem; list-style: disc; }
.sw-legal a { color: var(--primary); text-decoration: underline; }
.sw-legal code { font-size: 0.8em; background: var(--muted); padding: 0.1rem 0.35rem; border-radius: 0.25rem; }
.sw-legal-updated { font-size: 0.875rem; margin-bottom: 2rem; }
.sw-legal-box { background: var(--muted); border-radius: 0.75rem; padding: 1.25rem; margin: 1rem 0; }
.sw-legal-note { font-size: 0.75rem; margin-top: 0.75rem; }

.sw-sataku-page { min-height: 100vh; background: #f3f4f6; padding: 1.5rem 0; }
.sw-sataku-wrap { max-width: 36rem; margin: 0 auto; padding: 0 1rem; }
