:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #222222;
  --sub: #666666;
  --line: #e3e5ee;
  --accent: #6a2c70;
  --accent-dark: #4d1f53;
  --major: #d9485f;
  --update: #2b7fff;
  --fix: #16a34a;
  --notice: #d97706;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.release-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  display: flex;
  flex-direction: column;
}

/* ===== ヘッダー ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #222;
  color: white;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link a {
  cursor: pointer;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-footer-inner,
.release-wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  padding: 20px 0;
  text-align: center;
  color: var(--sub);
}

.release-main {
  flex: 1;
}

.release-hero {
  background:
    linear-gradient(135deg, rgba(106, 44, 112, 0.08), rgba(106, 44, 112, 0.02)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.release-kicker {
  margin: 0 0 10px;
  padding-top: 42px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.release-lead {
  margin: 16px 0 42px;
  color: var(--sub);
  line-height: 1.8;
}

.release-toolbar {
  padding: 24px 0 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.release-section {
  padding: 24px 0 56px;
  margin-bottom: 40px;
}

.release-latest {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.release-latest-inner {
  padding: 22px;
}

.release-latest-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.release-latest-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.release-latest-meta {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.94rem;
  opacity: 0.92;
}

.release-latest-summary {
  margin: 12px 0 0;
  line-height: 1.8;
  opacity: 0.95;
}

.release-list {
  display: grid;
  gap: 14px;
}

.release-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.release-toggle {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.release-toggle:hover {
  background: rgba(106, 44, 112, 0.03);
}

.release-toggle[aria-expanded="true"] {
  background: rgba(106, 44, 112, 0.04);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 10px;
}

.release-date {
  color: var(--sub);
  font-size: 0.92rem;
  font-weight: 600;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.release-badge.major {
  background: var(--major);
}

.release-badge.update {
  background: var(--update);
}

.release-badge.fix {
  background: var(--fix);
}

.release-badge.notice {
  background: var(--notice);
}

.release-version {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

.release-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.release-summary {
  margin: 0;
  color: var(--sub);
  line-height: 1.8;
}

.release-toggle-text {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.93rem;
  font-weight: 700;
}

.release-detail {
  border-top: 1px solid var(--line);
  background: #fcfbfd;
}

.release-detail-inner {
  padding: 20px;
}

.release-detail-section + .release-detail-section {
  margin-top: 22px;
}

.release-detail-heading {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.release-detail-text {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}

.release-detail-text + .release-detail-text {
  margin-top: 10px;
}

.release-loading,
.release-empty {
  margin: 16px 0 0;
  text-align: center;
  color: var(--sub);
}


/* ===== フッター ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #252525;
  color: white;
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}

.footer-text {
  max-width: 960px;
  margin: 0 auto;
  gap: 12px;
  padding: 0 16px;
  box-sizing: border-box;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  margin: 0 8px;
}

@media (max-width: 700px) {
  .site-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .release-kicker {
    padding-top: 34px;
  }

  .release-lead {
    margin-bottom: 34px;
  }

  .release-toggle,
  .release-detail-inner,
  .release-latest-inner {
    padding: 18px;
  }

  .release-title {
    font-size: 1.08rem;
  }
}