.blog-shell {
  --blog-bg: #eef2ef;
  --blog-surface: #ffffff;
  --blog-text: #241f1c;
  --blog-muted: #657267;
  --blog-border: #dfe7df;
  --blog-accent: #2f7d4f;
  --blog-accent-dark: #245d3c;
  background: var(--blog-bg);
  color: var(--blog-text);
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.blog-shell .topbar-gradient,
.blog-shell .footer-gradient {
  background: var(--blog-surface);
  border-color: var(--blog-border);
}

.blog-shell .navbar.custom-nav .brand-gradient,
.blog-shell .navbar.custom-nav .nav-link:hover {
  color: var(--blog-accent);
}

.blog-shell .navbar.custom-nav .nav-link {
  color: var(--blog-muted);
}

.blog-shell .footer-gradient,
.blog-shell .text-muted {
  color: var(--blog-muted) !important;
}

.blog-shell .footer-gradient {
  background: #f6fbf6 !important;
  border-top: 1px solid var(--blog-border) !important;
}

body.blog-shell footer.footer-gradient {
  background: #f6fbf6 !important;
  color: var(--blog-muted) !important;
}

.blog-shell .footer-gradient h4,
.blog-shell .footer-gradient h6 {
  color: var(--blog-text) !important;
}

.blog-shell .footer-gradient a {
  color: var(--blog-muted) !important;
}

.blog-shell .footer-divider {
  border-color: var(--blog-border);
}

.blog-hero,
.post-header {
  background: linear-gradient(180deg, #f6fbf6 0%, #edf5ee 100%);
  border-bottom: 1px solid var(--blog-border);
  padding: 72px 0 56px;
}

.blog-hero.compact {
  padding: 48px 0;
}

.blog-hero .eyebrow {
  color: var(--blog-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.blog-hero h1,
.post-header h1 {
  color: var(--blog-text);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  max-width: 900px;
}

.blog-hero .lead,
.post-header .lead {
  color: var(--blog-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 760px;
}

.breadcrumb-nav {
  align-items: center;
  color: var(--blog-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumb-nav a {
  color: var(--blog-accent-dark);
  text-decoration: none;
}

.blog-layout {
  color: var(--blog-text);
}

.section-heading {
  border-bottom: 1px solid var(--blog-border);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.section-heading h2 {
  color: var(--blog-text);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.section-heading p {
  color: var(--blog-muted);
  margin: 0;
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-card {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 220px 1fr;
  padding: 16px;
}

.article-thumb {
  aspect-ratio: 16 / 9;
  background: #e3ece4;
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.article-thumb img,
.post-featured-image img,
.related-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.category-link {
  color: var(--blog-accent);
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
}

.article-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 10px;
}

.article-card h2 a,
.latest-item,
.related-card a {
  color: var(--blog-text);
  text-decoration: none;
}

.article-card h2 a:hover,
.latest-item:hover,
.related-card a:hover {
  color: var(--blog-accent);
}

.article-card p {
  color: var(--blog-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.article-meta,
.post-meta {
  color: var(--blog-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 10px 18px;
}

.post-meta {
  border-bottom: 1px solid #eef2ef;
  border-top: 1px solid #eef2ef;
  padding: 16px 0;
}

.post-meta a {
  color: var(--blog-text);
  text-decoration: none;
}

.post-meta i {
  color: var(--blog-text);
  margin-right: 6px;
}

.share-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.share-label {
  color: var(--blog-muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 2px;
}

.share-button {
  align-items: center;
  background: #1da1f2;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  height: 39px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.18s ease;
  width: 39px;
}

.copy-link-button {
  cursor: pointer;
  font-family: inherit;
}

.share-line {
  background: #00b900;
  border-radius: 5px;
  font-size: 0.7rem;
  letter-spacing: 0;
  width: 42px;
}

.share-facebook {
  background: #1877f2;
}

.share-x {
  background: #1d9bf0;
}

.copy-link-button {
  background: #7f858c;
}

.share-button:hover,
.share-button:focus-visible {
  color: #fff;
  opacity: 0.82;
}

.share-button.copied {
  background: #241f1c;
  border-color: #241f1c;
  color: #fff;
}

.share-button.copied::after {
  content: "✓";
  font-weight: 900;
}

.share-button.copied i {
  display: none;
}

.sidebar-card {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 22px;
}

.sidebar-card h2 {
  color: var(--blog-text);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.author-card img {
  border-radius: 50%;
  margin-bottom: 14px;
}

.author-card p {
  color: var(--blog-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.latest-list {
  display: grid;
  gap: 14px;
}

.latest-item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 78px 1fr;
  text-decoration: none;
}

.latest-item img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  width: 78px;
}

.latest-item strong {
  color: var(--blog-text);
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.latest-item small {
  color: var(--blog-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 5px;
}

.latest-item:hover strong {
  color: var(--blog-accent);
}

.post-featured-image {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 24px 0 28px;
  overflow: hidden;
}

.post-featured-image {
  aspect-ratio: auto;
}

.post-featured-image img {
  aspect-ratio: 16 / 9;
  display: block;
}

.post-featured-image figcaption {
  color: var(--blog-muted);
  font-size: 0.88rem;
  padding: 10px 14px;
}

.article-container {
  max-width: 1180px;
}

.article-main {
  background: var(--blog-surface);
  margin: 0;
  max-width: none;
  padding: clamp(24px, 4vw, 46px);
}

.article-sidebar {
  position: sticky;
  top: 92px;
}

.article-sidebar .sidebar-card {
  border-radius: 4px;
  box-shadow: none;
}

.article-entry-header h1 {
  border-bottom: 1px solid #eef2ef;
  color: var(--blog-text);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0 0 16px;
  padding-bottom: 24px;
}

.article-main a {
  color: #006fc9;
}

.article-main .share-button {
  color: #fff;
}

.post-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.post-content .intro {
  border-left: 0;
  color: var(--blog-text);
  font-size: 1.22rem;
  line-height: 2.05;
  margin: 0 0 22px;
  padding-left: 0;
  text-indent: 1.6em;
}

.post-content h2 {
  background: #f0f0f0;
  border-left: 5px solid #555555;
  color: var(--blog-text);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 42px 0 24px;
  padding: 12px 18px;
  scroll-margin-top: 96px;
}

.post-content h3 {
  color: var(--blog-accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 28px 0 16px;
  scroll-margin-top: 96px;
}

.post-content p {
  color: var(--blog-text);
  font-size: 1.14rem;
  line-height: 2.15;
  margin-bottom: 22px;
  text-indent: 1.6em;
}

.inline-post-image {
  background: #f4faf4;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  margin: 22px 0 26px;
  overflow: hidden;
}

.inline-post-image img {
  display: block;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  width: 100%;
}

.inline-post-image figcaption {
  color: var(--blog-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 10px 14px;
}

.article-link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
}

.article-link-list a {
  background: #f4faf4;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  color: var(--blog-accent-dark);
  font-weight: 700;
  padding: 12px 14px;
  text-decoration: none;
}

.article-link-list a:hover {
  border-color: var(--blog-accent);
}

.reaction-box {
  background: #f4faf4;
  border-left: 4px solid var(--blog-accent);
  margin: 22px 0 28px;
  padding: 18px 20px;
}

.reaction-box p {
  color: var(--blog-text);
  margin-bottom: 10px;
}

.reaction-box p:last-child {
  margin-bottom: 0;
}

.article-points {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 22px 0 30px;
  padding: 0 0 0 1.6em;
}

.article-points h3 {
  color: var(--blog-text);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.article-points ul {
  margin: 0;
  padding-left: 1.4rem;
}

.article-points li {
  color: var(--blog-text);
  font-size: 1.08rem;
  line-height: 2;
  margin-bottom: 8px;
}

.article-points li:last-child {
  margin-bottom: 0;
}

.article-table-wrap {
  margin: 24px 0 30px;
  overflow-x: auto;
}

.article-table-wrap h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.article-table {
  border-collapse: collapse;
  color: var(--blog-text);
  min-width: 560px;
  width: 100%;
}

.article-table th,
.article-table td {
  border: 1px solid var(--blog-border);
  padding: 12px 14px;
  vertical-align: top;
}

.article-table th {
  background: #f4faf4;
  color: var(--blog-text);
  font-weight: 700;
}

.article-table td:first-child {
  font-weight: 700;
  width: 28%;
}

.table-of-contents {
  background: #fff;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  display: inline-block;
  margin: 34px 0 22px;
  max-width: 100%;
  min-width: min(390px, 100%);
  padding: 18px 18px 18px 22px;
}

.table-of-contents h2 {
  background: transparent;
  border: 0;
  color: var(--blog-text);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 10px;
  padding: 0;
}

.table-of-contents ol {
  counter-reset: toc-item;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.table-of-contents li {
  color: var(--blog-text);
  counter-increment: toc-item;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 5px;
}

.table-of-contents li::before {
  content: counters(toc-item, ".") ". ";
}

.table-of-contents a {
  color: #006fc9;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.table-of-contents .toc-children {
  counter-reset: toc-item;
  margin-top: 3px;
  padding-left: 1.35rem;
}

.table-of-contents .toc-children li {
  font-size: 0.98rem;
}

.post-content .faq-section {
  background: transparent;
  border-top: 0;
  margin-top: 42px;
  padding: 0;
}

.post-content .faq-section h2 {
  text-align: left;
}

.post-content .faq-section .faq-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 26px;
  padding: 0;
}

.post-content .faq-section .faq-item:hover {
  border-color: var(--blog-border);
  box-shadow: none;
}

.post-content .faq-section .faq-item h3 {
  color: var(--blog-accent);
}

.embed-section {
  border-top: 1px solid var(--blog-border);
  margin-top: 42px;
  padding-top: 4px;
}

.source-section {
  border-top: 1px solid var(--blog-border);
  margin-top: 42px;
  padding-top: 4px;
}

.source-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.source-section li {
  color: var(--blog-muted);
  margin-bottom: 10px;
}

.source-section a {
  color: var(--blog-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.source-section a:hover {
  text-decoration: underline;
}

.media-embed {
  background: #f4faf4;
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  margin: 18px 0;
  overflow: hidden;
}

.embed-frame {
  aspect-ratio: 16 / 9;
  background: #171412;
}

.embed-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.social-iframe-embed iframe {
  background: #ffffff;
  border: 0;
  display: block;
  min-height: 560px;
  width: 100%;
}

.instagram-embed iframe {
  min-height: 720px;
}

.twitter-embed iframe {
  min-height: 620px;
}

.youtube-embed figcaption {
  color: var(--blog-muted);
  font-size: 0.92rem;
  padding: 12px 14px;
}

.social-iframe-embed figcaption {
  color: var(--blog-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 12px 14px;
}

.youtube-embed a,
.social-embed a {
  color: var(--blog-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.social-embed {
  padding: 20px;
}

.embed-platform {
  color: var(--blog-accent);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.social-embed h3 {
  margin-bottom: 8px;
}

.social-embed p {
  color: var(--blog-muted);
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--blog-text);
  margin-bottom: 0;
}

.related-posts {
  border-top: 1px solid #eef2ef;
  margin-top: 44px;
  padding-top: 26px;
}

.related-posts h2 {
  color: var(--blog-text);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.post-tags {
  border-top: 1px solid #eef2ef;
  color: var(--blog-text);
  font-size: 0.9rem;
  margin-top: 30px;
  padding-top: 18px;
}

.post-tags span {
  font-weight: 700;
}

.post-tags a {
  color: var(--blog-text);
  margin: 0 3px;
  text-decoration: none;
}

.post-tags a[href] {
  color: #006fc9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-tags .tag-text {
  margin: 0 3px;
}

.auto-internal-link {
  color: #006fc9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-bar-bottom {
  margin-top: 34px;
}

.related-card {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  overflow: hidden;
}

.related-card img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.related-card span {
  color: var(--blog-text);
  display: block;
  font-weight: 700;
  line-height: 1.55;
  padding: 12px;
}

@media (max-width: 991.98px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
