:root {
  --bg-color: #0b0b0f;
  --panel-color: #161621;
  --text-main: #f5f5f5;
  --text-sub: #aaaaaa;
  --accent-green: #00ff99;
  --accent-cyan: #00e5ff;
  --accent-pink: #ff4081;
  --border-color: #1f1f2b;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-green);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #0f0f17;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a.is-active {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.site-main {
  padding: 2rem 0 4rem;
}

.intro {
  margin-bottom: 1.5rem;
  color: var(--text-sub);
}

.category-description {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-sub);
}

.feed-board-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.feed-board {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (max-width: 720px) {
  .feed-board {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.feed-block {
  container-type: inline-size;
  background: linear-gradient(145deg, rgba(22, 22, 33, 0.95), rgba(19, 19, 28, 0.98));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
  border-inline-start: 4px solid var(--feed-accent, var(--accent-cyan));
  height: 100%;
}

.feed-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  border-color: rgba(0, 229, 255, 0.35);
}

.feed-block__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feed-thumb {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 255, 153, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: inherit;
  display: block;
}

.feed-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.feed-meta__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feed-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.feed-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feed-source__icon {
  font-size: 0.95rem;
}

.feed-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  width: fit-content;
}

.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.6rem 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.feed-list__item:last-child {
  border-bottom: 0;
}

.feed-list__item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feed-list__title {
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-list__link {
  color: var(--text-main);
  grid-column: 2 / -1;
  display: block;
}

.feed-list__link:hover {
  color: var(--accent-green);
}

.feed-list__meta {
  grid-column: 1 / 2;
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.feed-empty {
  color: var(--text-sub);
  font-size: 0.95rem;
  padding: 0.25rem 0.2rem;
}

@container (max-width: 520px) {
  .feed-block__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-thumb {
    width: 100%;
  }
}

.ad-slot {
  border: 1px dashed rgba(0, 229, 255, 0.5);
  border-radius: 10px;
  color: var(--text-sub);
  text-align: center;
  min-height: 90px;
  display: grid;
  place-items: center;
  width: min(1200px, calc(100% - 2rem));
  margin: 1.5rem auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.ad-slot--top {
  min-height: 120px;
}

.card-grid .ad-slot--inline {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 120px;
}

.site-footer {
  background: #0f0f17;
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  padding: 1.5rem 0;
  color: #bfbfbf;
  text-align: center;
  font-size: 0.85rem;
}

.about-content h1,
.about-content h2 {
  letter-spacing: 0.05em;
}

.about-content section {
  background: #14141d;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.loading,
.empty-state {
  color: var(--text-sub);
  text-align: center;
  padding: 1.5rem 0;
}

@media (max-width: 600px) {
  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .ad-slot {
    width: calc(100% - 1.5rem);
  }
}
