:root {
  --bg: #fafbfc;
  --bg-soft: #f3f5f7;
  --surface: #ffffff;
  --surface-alt: #f6f7f8;
  --surface-soft: #ffffff;
  --reading-surface: #ffffff;
  --chrome-bg: #ffffff;
  --chrome-border: #e5e7eb;
  --control-bg: #ffffff;
  --control-bg-strong: #f3f5f7;
  --text: #000000;
  --muted: #5f6b76;
  --line: #e5e7eb;
  --accent: #1f5a54;
  --accent-strong: #163f3a;
  --accent-soft: #eef6f5;
  --accent-ghost: #f7fbfa;
  --max-width: 1080px;
  --content-width: 760px;
  --reading-width: 43rem;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.3rem 0;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.site-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: 2.5rem;
}

.hero-card,
.post-card,
.info-card,
.post-footer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
}

.hero-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.mobile-break {
  display: none;
}

.hero-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.info-card {
  padding: 1.4rem;
}

.info-card h2,
.section-heading {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button,
.button-secondary {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 90, 84, 0.1);
}

.button-secondary {
  background: var(--accent-soft);
  border-color: rgba(31, 90, 84, 0.14);
  color: var(--accent-strong);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary:hover {
  background: var(--accent-ghost);
  border-color: rgba(31, 90, 84, 0.2);
}

.section {
  margin-top: 2.6rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card,
.category-card {
  padding: 1.4rem;
}

.post-card h2,
.post-card h3,
.category-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.meta {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li + li {
  margin-top: 0.85rem;
}

.prose {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.prose h1,
.prose h2,
.prose h3 {
  line-height: 1.3;
}

.post-layout {
  display: grid;
  gap: 1.5rem;
}

.post-layout > * {
  min-width: 0;
}

.post-header,
.post-body,
.post-footer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.post-header h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.post-meta,
.post-lead {
  color: var(--muted);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0;
}

.post-meta__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.post-meta__label,
.post-meta__value {
  margin: 0;
}

.post-meta__label {
  font-weight: 700;
}

.tag-filter-card {
  margin-bottom: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tag-filter-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  list-style: none;
}

.tag-filter-card__summary::-webkit-details-marker {
  display: none;
}

.tag-filter-card__summary::marker {
  content: "";
}

.tag-filter-card__summary-text h2 {
  margin: 0;
  font-size: 1.2rem;
}

.tag-filter-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.tag-filter-card__current {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.tag-filter-card__toggle {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-filter-card__body {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid rgba(34, 91, 82, 0.12);
}

.tag-filter-card__body .muted {
  margin: 0;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.tag-filter__button,
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.84rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 90, 84, 0.14);
  background: var(--accent-ghost);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tag-filter__button {
  cursor: pointer;
  font-family: inherit;
}

.tag-filter__button:hover,
.post-pagination__button:hover,
.blog-index__filter-button:hover {
  transform: translateY(-1px);
}

.tag-filter__button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.post-empty-state {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.post-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.post-pagination__button {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(31, 90, 84, 0.14);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.post-pagination__button:disabled {
  cursor: default;
  opacity: 0.45;
}

.post-pagination__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.post-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--surface-alt);
}

.post-body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  border-radius: 16px;
  background: #1d2a2e;
  color: #edf4f2;
}

.post-body pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.post-body .highlighter-rouge,
.post-body .highlight {
  max-width: 100%;
  border-radius: 16px;
}

.post-body .highlight pre {
  margin: 0;
}

.post-body .highlight .nb,
.post-body .highlight .nv {
  color: #8bd3dd;
}

.post-body .highlight .nt {
  color: #f2b880;
}

.post-body .highlight .s,
.post-body .highlight .s1,
.post-body .highlight .s2 {
  color: #f6d38a;
}

.post-body .highlight .c,
.post-body .highlight .c1,
.post-body .highlight .cm {
  color: #9ab0b5;
}

.page-header {
  margin-bottom: 1.8rem;
}

.page-header h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.blog-index {
  width: min(calc(100% - 2rem), var(--max-width));
}

.blog-index__header {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.2rem;
  text-align: center;
}

.blog-index__header .muted {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
  line-height: 1.9;
}

.blog-index__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.7rem;
}

.blog-index__filter {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
}

.blog-index__filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(31, 90, 84, 0.14);
  border-radius: 999px;
  background: var(--control-bg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-index__filter-button::-webkit-details-marker {
  display: none;
}

.blog-index__filter-button::marker {
  content: "";
}

.blog-index__filter[open] .blog-index__filter-button {
  border-color: rgba(31, 90, 84, 0.28);
  background: var(--control-bg-strong);
}

.blog-index__filter-current {
  min-width: 3.2rem;
  max-width: 12rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-index__filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.blog-index__filter-panel {
  position: fixed;
  top: var(--filter-panel-top, 8rem);
  left: 50vw;
  z-index: 20;
  width: min(30rem, calc(100vw - 2rem));
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.blog-index__filter-note {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.blog-index [data-post-grid] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.app-detail-page {
  width: min(calc(100% - 2rem), 820px);
}

.app-detail-page__header {
  margin-bottom: 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(34, 91, 82, 0.16);
}

.app-detail-page__header .muted {
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.9;
}

.app-stream {
  display: grid;
  gap: 0;
}

.app-stream__section {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(34, 91, 82, 0.16);
}

.app-stream__section:first-child {
  padding-top: 1.2rem;
}

.app-stream__section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
}

.app-stream__section p {
  margin: 0 0 1rem;
  line-height: 1.95;
}

.app-stream__section p:last-child,
.app-stream__links li:last-child .app-stream__link-note {
  margin-bottom: 0;
}

.app-stream__links {
  display: grid;
  gap: 1rem;
  margin-top: 0.2rem;
}

.app-stream__links a {
  font-weight: 700;
}

.app-stream__link-note {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.blog-post {
  gap: 1.9rem;
  width: min(calc(100% - 2rem), 860px);
  padding: clamp(1.5rem, 3vw, 2.8rem);
  background: var(--reading-surface);
  border: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.blog-post .post-header,
.blog-post .post-body,
.blog-post .blog-post__footer {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
}

.blog-post .post-header,
.blog-post .post-body {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.blog-post .post-header {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(34, 91, 82, 0.12);
}

.blog-post .eyebrow {
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.blog-post .post-header h1 {
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  text-wrap: balance;
}

.blog-post .tag-list {
  margin-top: 0.85rem;
}

.blog-post .post-meta {
  gap: 0.35rem 1rem;
  margin-top: 0.95rem;
  font-size: 0.92rem;
}

.blog-post .post-meta__label {
  color: var(--muted);
}

.blog-post .post-lead {
  margin: 1rem 0 0;
  padding: 0.95rem 1.1rem 1rem;
  border-left: 4px solid rgba(31, 90, 84, 0.25);
  border-radius: 0 16px 16px 0;
  background: var(--accent-ghost);
  color: #32414d;
  font-size: 1rem;
  line-height: 1.78;
}

.blog-post .post-body {
  padding-top: 0;
  font-size: 1.02rem;
  line-height: 1.82;
}

.blog-post .post-body p {
  margin: 0 0 1.1rem;
}

.blog-post .post-body ul,
.blog-post .post-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.blog-post .post-body li {
  margin: 0;
  padding-left: 0.1rem;
}

.blog-post .post-body li + li {
  margin-top: 0.32rem;
}

.blog-post .post-body h2 {
  margin: 2.4rem 0 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(34, 91, 82, 0.12);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.45;
}

.blog-post .post-body > h2:first-child {
  margin-top: 0.15rem;
  padding-top: 0;
  border-top: none;
}

.blog-post .post-body h3 {
  margin: 1.7rem 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.blog-post .post-body h4 {
  margin: 1.3rem 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.blog-post .post-body h2 + hr {
  display: none;
}

.blog-post .post-body blockquote {
  margin: 1.35rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid rgba(34, 91, 82, 0.24);
  border-radius: 0 14px 14px 0;
  background: rgba(31, 90, 84, 0.04);
  color: #3f4d59;
}

.blog-post .post-body blockquote > :last-child {
  margin-bottom: 0;
}

.blog-post .post-body > h2:first-child + blockquote {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}

.blog-post .post-body hr {
  margin: 1.4rem 0;
  border: 0;
  border-top: 1px solid rgba(34, 91, 82, 0.12);
}

.blog-post .post-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.blog-post .post-body th,
.blog-post .post-body td {
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(34, 91, 82, 0.16);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-post .post-body th {
  background: rgba(34, 91, 82, 0.06);
  font-weight: 700;
}

.blog-post .post-body th code,
.blog-post .post-body td code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-post .post-body pre {
  margin: 1.4rem 0;
}

.blog-post__footer {
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(34, 91, 82, 0.16);
}

.blog-post__footer h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.blog-post__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-post__footer-links li {
  margin: 0;
}

.about-page {
  display: grid;
  gap: 1.4rem;
}

.about-page__header {
  margin-bottom: 0;
}

.about-lead {
  padding: 1.8rem;
}

.about-section {
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(34, 91, 82, 0.16);
}

.about-section h2 {
  margin-bottom: 1rem;
}

.about-list li {
  position: relative;
  padding-left: 1.2rem;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
}

.about-list {
  display: grid;
  gap: 0;
  margin-top: 0.2rem;
}

.about-list li + li {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--chrome-border);
  padding: 2rem 0 1.6rem;
  background: var(--chrome-bg);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  align-items: start;
}

.footer-brand {
  padding-top: 0.1rem;
}

.footer-title {
  margin: 0;
  font-weight: 700;
}

.footer-text,
.footer-bottom,
.muted {
  color: var(--muted);
}

.footer-links {
  margin: 0;
  padding-left: 1.1rem;
}

.footer-bottom {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .hero,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.25;
  }

  .tag-filter-card__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag-filter-card__status {
    width: 100%;
    justify-content: space-between;
  }

  .blog-index__header {
    margin-bottom: 1rem;
  }

  .blog-index__header .muted,
  .app-detail-page__header .muted,
  .app-stream__section p {
    font-size: 1.03rem;
  }

  .blog-index__toolbar {
    margin-bottom: 1.4rem;
  }

  .blog-index__filter-button {
    width: 100%;
    justify-content: space-between;
  }

  .blog-index__filter-panel {
    width: min(24rem, calc(100vw - 1.25rem));
    padding: 0.95rem;
  }

  .blog-index {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .blog-index [data-post-grid] {
    grid-template-columns: 1fr;
  }

  .app-detail-page {
    width: min(calc(100% - 1.25rem), 820px);
  }

  .app-stream__section {
    padding: 1.3rem 0;
  }

  .app-stream__section h2 {
    font-size: 1.4rem;
  }

  .app-stream__links {
    gap: 0.9rem;
  }

  .blog-post {
    width: min(calc(100% - 1.25rem), 860px);
    gap: 1.5rem;
    padding: 1.25rem 1rem 1.6rem;
    border-radius: 22px;
  }

  .blog-post .post-header h1 {
    font-size: clamp(1.7rem, 6.6vw, 2.25rem);
    line-height: 1.32;
  }

  .mobile-break {
    display: block;
  }

  .blog-post .post-meta {
    font-size: 0.88rem;
  }

  .blog-post .post-lead {
    padding: 0.8rem 0.95rem 0.85rem;
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .blog-post .post-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .blog-post .post-body p {
    margin-bottom: 1rem;
  }

  .blog-post .post-body ul,
  .blog-post .post-body ol {
    padding-left: 1.2rem;
  }

  .blog-post .post-body h2 {
    margin-top: 2rem;
    padding-top: 0.85rem;
    font-size: 1.35rem;
  }

  .blog-post .post-body h3 {
    font-size: 1.12rem;
  }

  .blog-post .post-body h4 {
    font-size: 1rem;
  }

  .blog-post .post-body table {
    font-size: 0.9rem;
  }

  .blog-post .post-body th,
  .blog-post .post-body td {
    min-width: 0;
    padding: 0.65rem 0.7rem;
  }

  .blog-post__footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Theme refresh: blue accent, white cards, near-black base text */
:root {
  --bg: #edf4ff;
  --bg-soft: #f7faff;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --surface-soft: #f8fbff;
  --reading-surface: #ffffff;
  --chrome-bg: rgba(255, 255, 255, 0.88);
  --chrome-border: rgba(35, 100, 210, 0.14);
  --control-bg: #ffffff;
  --control-bg-strong: #eef4ff;
  --text: #000000;
  --muted: #405065;
  --line: #d7e3f7;
  --accent: #2364d2;
  --accent-strong: #184ba5;
  --accent-soft: #e9f1ff;
  --accent-ghost: #f5f9ff;
  --accent-rgb: 35, 100, 210;
  --max-width: 1120px;
  --content-width: 780px;
  --reading-width: 44rem;
  --shadow: 0 24px 56px rgba(16, 35, 77, 0.1);
  --shadow-soft: 0 18px 40px rgba(16, 35, 77, 0.08);
  --shadow-hover: 0 28px 66px rgba(16, 35, 77, 0.14);
  --ui-font: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(16, 35, 77, 0.06);
}

.site-header__inner {
  gap: 1rem 1.6rem;
}

.brand,
.site-nav a,
.eyebrow,
.meta,
.post-meta,
.post-pagination__button,
.post-pagination__status,
.tag-filter__button,
.tag-pill,
.footer-title,
.button,
.button-secondary,
.page-header h1,
.post-card h2,
.post-card h3,
.category-card h3,
.post-header h1,
.blog-post .post-body h2,
.blog-post .post-body h3,
.blog-post .post-body h4,
.app-stream__section h2,
.blog-post__footer h2 {
  font-family: var(--ui-font);
}

.brand {
  font-size: 1.6rem;
}

.brand-subtitle {
  margin-top: 0.28rem;
  max-width: 38rem;
}

.site-nav {
  gap: 0.7rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.12);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.16);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.02);
}

.site-main {
  padding: 3rem 0 4.75rem;
}

.page-header {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1.35rem;
}

.page-header::after {
  content: "";
  display: block;
  width: 5rem;
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.14));
}

.blog-index__header::after {
  margin-left: auto;
  margin-right: auto;
}

.page-header h1,
.hero-card h1,
.post-header h1,
.blog-post .post-header h1 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.page-header .muted {
  max-width: 42rem;
}

.hero-card,
.post-card,
.info-card,
.post-footer-card,
.tag-filter-card,
.blog-index__filter-panel,
.blog-post,
.post-header,
.post-body {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.post-card,
.info-card,
.post-footer-card,
.tag-filter-card,
.blog-post,
.post-header,
.post-body {
  border-radius: 24px;
}

.hero-card,
.post-card,
.info-card,
.tag-filter-card,
.blog-post {
  position: relative;
}

.hero-card::before,
.post-card::before,
.info-card::before,
.tag-filter-card::before,
.blog-post::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: inherit inherit 0 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(122, 174, 255, 0.6));
}

.hero-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
}

.hero-card p,
.post-card p,
.category-card p,
.info-card p,
.app-stream__section p,
.blog-post .post-body,
.blog-post .post-lead {
  color: var(--text);
}

.info-card,
.post-card,
.category-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.info-card:hover,
.post-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: var(--shadow-hover);
}

.post-card h2 a,
.post-card h3 a,
.category-card h3 a,
.app-stream__links a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover,
.category-card h3 a:hover,
.app-stream__links a:hover {
  color: var(--accent);
}

.meta,
.muted,
.footer-text,
.footer-bottom,
.post-meta,
.post-meta__label,
.post-lead,
.app-stream__link-note,
.blog-index__filter-note,
.blog-post .post-meta__label {
  color: var(--muted);
}

.button,
.button-secondary {
  min-height: 2.85rem;
  padding: 0.78rem 1.12rem;
}

.button {
  background: linear-gradient(135deg, #2c74ef 0%, #1d59c5 100%);
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 16px 32px rgba(var(--accent-rgb), 0.24);
}

.button:hover {
  background: linear-gradient(135deg, #215fc9 0%, #1649a0 100%);
  box-shadow: 0 18px 36px rgba(var(--accent-rgb), 0.28);
}

.button-secondary {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(16, 35, 77, 0.06);
}

.button-secondary:hover {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.tag-filter-card__body,
.blog-post .post-header,
.blog-post .post-body h2,
.blog-post .post-body hr,
.blog-post__footer,
.about-section,
.app-detail-page__header,
.app-stream__section {
  border-color: rgba(var(--accent-rgb), 0.14);
}

.tag-filter__button,
.tag-pill,
.blog-index__filter-button,
.post-pagination__button {
  border-color: rgba(var(--accent-rgb), 0.16);
  font-weight: 700;
}

.tag-filter__button,
.tag-pill {
  background: var(--accent-ghost);
  color: var(--accent-strong);
}

.tag-filter__button:hover,
.tag-pill:hover,
.blog-index__filter[open] .blog-index__filter-button,
.post-pagination__button:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.tag-filter__button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.22);
}

.blog-index__filter-button,
.post-pagination__button {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(16, 35, 77, 0.06);
}

.blog-index__filter-current,
.tag-filter-card__current {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.blog-post {
  padding: clamp(1.8rem, 3vw, 3rem);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.blog-post .post-lead {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.03));
  border-left-color: rgba(var(--accent-rgb), 0.28);
}

.blog-post .post-body blockquote {
  background: rgba(var(--accent-rgb), 0.05);
  border-left-color: rgba(var(--accent-rgb), 0.24);
  color: #22324a;
}

.blog-post .post-body th,
.blog-post .post-body td {
  border-color: rgba(var(--accent-rgb), 0.16);
}

.blog-post .post-body th {
  background: var(--surface-alt);
}

.post-body code {
  background: #f0f1f3;
  color: var(--accent-strong);
}

.post-body pre {
  background: #0d1b34;
  color: #edf5ff;
}

.site-footer {
  padding: 2.2rem 0 1.8rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.footer-links a {
  color: var(--text);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 800px) {
  .site-header {
    will-change: transform;
  }

  .site-header--hidden {
    transform: translateY(calc(-1 * var(--site-header-height, 100%)));
    box-shadow: none;
  }

  .site-main {
    padding: 2.3rem 0 3.8rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .page-header {
    margin-bottom: 1.6rem;
    padding-bottom: 1.1rem;
  }

  .page-header::after {
    width: 4rem;
  }

  .hero-card,
  .post-card,
  .info-card,
  .tag-filter-card,
  .blog-post,
  .post-header,
  .post-body {
    border-radius: 20px;
  }

  .blog-index__toolbar {
    justify-content: stretch;
  }

  .blog-index__filter {
    width: 100%;
  }

  .blog-post {
    padding: 1.3rem 1rem 1.65rem;
  }
}

/* Restore classic header nav and blog filter controls */
.site-nav {
  gap: 0.9rem;
  justify-content: flex-end;
}

.site-nav a {
  min-height: auto;
  padding: 0.3rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.site-nav a:hover {
  transform: none;
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent);
  box-shadow: none;
}

.blog-index__filter-button {
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: var(--control-bg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.blog-index__filter-button:hover {
  background: var(--control-bg);
  border-color: rgba(var(--accent-rgb), 0.14);
}

.blog-index__filter[open] .blog-index__filter-button {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: var(--control-bg-strong);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.tag-filter__button,
.tag-pill {
  min-height: 1.84rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: var(--accent-ghost);
  color: var(--accent-strong);
  box-shadow: none;
}

.tag-filter__button:hover,
.tag-pill:hover {
  background: var(--accent-ghost);
  border-color: rgba(var(--accent-rgb), 0.14);
}

.tag-filter__button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.blog-index__filter-current,
.tag-filter-card__current {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

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

  .blog-index__toolbar {
    justify-content: center;
  }

  .blog-index__filter {
    width: auto;
  }

  .blog-index__filter-button {
    width: auto;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* Move accent from card edge to headings */
.hero-card::before,
.post-card::before,
.info-card::before,
.tag-filter-card::before,
.blog-post::before {
  content: none;
}

.page-header {
  padding-bottom: 0;
}

.page-header::after {
  content: none;
}

.hero-card h1,
.post-card h2,
.post-card h3,
.category-card h3,
.info-card h2,
.section-heading,
.tag-filter-card__summary-text h2,
.post-header h1,
.page-header h1,
.app-stream__section h2,
.about-section h2,
.blog-post__footer h2,
.blog-post .post-body h2,
.blog-post .post-body h3,
.blog-post .post-body h4 {
  position: relative;
  padding-bottom: 0.5rem;
}

.hero-card h1::after,
.post-card h2::after,
.post-card h3::after,
.category-card h3::after,
.info-card h2::after,
.section-heading::after,
.tag-filter-card__summary-text h2::after,
.post-header h1::after,
.page-header h1::after,
.app-stream__section h2::after,
.about-section h2::after,
.blog-post__footer h2::after,
.blog-post .post-body h2::after,
.blog-post .post-body h3::after,
.blog-post .post-body h4::after {
  content: "";
  display: block;
  width: 3.8rem;
  max-width: 100%;
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(122, 174, 255, 0.6));
}
