:root {
  --bg: #f5f4f0;
  --fg: #1a1a18;
  --fg-muted: #666;
  --border: rgba(0,0,0,0.1);
  --accent: #e8ff47;
  --green: #2e7d52;
  --font: 'Barlow Condensed', sans-serif;
  --font-jp: 'M PLUS 1p', sans-serif;
  --nav-px: 40px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.8;
  font-size: 16px;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  position: relative;
  margin-top: 8px;
  height: 36px;
}
.logo img { height: 28px; width: auto; display: block; }
.site-title {
  position: absolute;
  left: 0;
  top: -17px;
  width: max-content;
  max-width: 220px;
  color: var(--fg-muted);
  font-size: 8px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle {
  position: relative;
  display: flex;
  background: rgba(26,26,24,0.07);
  border-radius: 100px;
  padding: 3px;
}

.lang-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--fg);
  border-radius: 100px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.lang-indicator.jp { transform: translateX(100%); }

.ctrl-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  color: var(--fg-muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.25s, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-radius: 100px;
}

.ctrl-btn:hover { color: var(--fg); }
.ctrl-btn:active { transform: scale(0.96); }
.ctrl-btn.active { color: var(--bg); }

.ctrl-about {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.2s;
  margin-right: 4px;
}
.ctrl-about:hover { color: var(--fg); }

/* ── BREADCRUMB ALIGNMENT (match article page) ── */
.breadcrumbs {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PAGE HEADER ── */
.page-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--border);
}
.page-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9aa800;
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--font);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--fg);
}
.page-desc {
  margin-top: 12px;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ── ARTICLE LIST ── */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.article-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.article-list__item {
  display: flex;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: 100%;
  transition: opacity 0.15s;
}
.article-card:hover { opacity: 0.72; }

.article-card__thumb {
  aspect-ratio: 3 / 2;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card__thumb img {
  width: 52%;
  height: auto;
  object-fit: contain;
  display: block;
}

.article-card__body {
  padding: 18px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.article-card__cat {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a18;
  background: rgba(232,255,71,0.72);
  padding: 2px 8px;
  border-radius: 3px;
}
.article-card__date {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.article-card__title {
  font-family: var(--font);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 8px;
}
.article-card__desc {
  font-size: 13px;
  font-family: var(--font-jp);
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__more {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: auto;
}

/* ── TAG FILTER ── */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 28px;
}
.tag-chip {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(26,26,24,0.06);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.tag-chip:hover {
  color: var(--fg);
  background: rgba(26,26,24,0.1);
}
.tag-chip--active {
  color: var(--fg);
  background: var(--accent);
}
.tag-chip--active:hover {
  background: var(--accent);
}
.article-list__item[hidden] { display: none; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
}
footer a {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
}
footer a:hover { color: var(--fg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .article-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  :root { --nav-px: 20px; }
  header { padding: 16px 20px; }
  .header-controls { gap: 6px; }
  .ctrl-about {
    margin-right: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
  .page-header { padding: 40px 20px 32px; }
  main { padding: 0 20px 80px; }
  footer { padding: 24px 20px; }
  .article-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-card__title { font-size: 16px; }
}
@media (max-width: 375px) {
  .header-controls { gap: 4px; }
}
