:root {
  --color-brand: #b31922;
  --color-brand-dark: #8f121a;
  --color-accent: #0f766e;
  --color-ink: #1f2328;
  --color-muted: #667085;
  --color-border: #e3e6eb;
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --shadow-card: 0 10px 24px rgba(31, 35, 40, 0.08);
  --radius: 8px;
  --content-width: 1120px;
  --readable-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.container {
  margin-inline: auto;
  max-width: var(--content-width);
  padding-inline: 20px;
  width: 100%;
}

.skip-link {
  background: var(--color-brand);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -120px;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-inline: auto;
  max-width: var(--content-width);
  min-height: 76px;
  padding: 14px 20px;
}

.site-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.site-brand__logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.site-title {
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.site-title a {
  color: var(--color-brand);
  text-decoration: none;
}

.site-description {
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 4px 0 0;
}

.site-navigation {
  min-width: 0;
}

.primary-menu,
.footer-menu {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
}

.primary-menu a {
  border-radius: 999px;
  color: #333942;
  display: block;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: #f8e7e8;
  color: var(--color-brand-dark);
}

.menu-toggle {
  align-items: center;
  background: var(--color-brand);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: none;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  padding: 9px 13px;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  display: block;
  height: 2px;
  width: 18px;
}

.menu-toggle__bar::before {
  transform: translateY(-6px);
}

.menu-toggle__bar::after {
  transform: translateY(4px);
}

.front-hero {
  background:
    linear-gradient(135deg, rgba(179, 25, 34, 0.96), rgba(143, 18, 26, 0.98)),
    var(--color-brand);
  color: #fff;
}

.front-hero__inner {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 52px;
}

.front-hero__copy {
  max-width: 720px;
}

.eyebrow {
  color: #ffe8b5;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.front-hero h1,
.archive-header h1,
.single-entry__header h1 {
  letter-spacing: 0;
}

.front-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.front-hero p {
  font-size: 1.05rem;
  margin: 0;
}

.front-hero__search {
  align-self: end;
  max-width: 520px;
  width: 100%;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.search-form label {
  flex: 1;
}

.search-field {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.search-submit {
  background: var(--color-ink);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 16px;
}

.content-section {
  padding-block: 38px;
}

.content-section--muted {
  background: #eef1f5;
}

.content-layout {
  display: grid;
  gap: 28px;
}

.content-main {
  min-width: 0;
}

@media (min-width: 980px) {
  .content-layout--with-sidebar {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.section-heading {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0;
}

.section-heading a,
.read-more {
  color: var(--color-brand);
  font-weight: 800;
}

.post-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-grid--front .post-card:first-child {
  grid-column: 1 / -1;
}

.post-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: #d9dee7;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.post-thumbnail-image,
.post-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(179, 25, 34, 0.92), rgba(15, 118, 110, 0.9)),
    #a61b22;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  letter-spacing: 0;
  min-height: 160px;
  width: 100%;
}

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

.entry-meta {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 8px;
}

.entry-category {
  background: #f8e7e8;
  border-radius: 999px;
  color: var(--color-brand-dark);
  font-weight: 800;
  padding: 2px 8px;
  text-decoration: none;
}

.widget-area {
  margin: 0 auto 22px;
  max-width: var(--content-width);
  padding-inline: 20px;
  width: 100%;
}

.widget-area .widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(31, 35, 40, 0.06);
  margin: 0 0 14px;
  padding: 16px;
}

.widget-area .widget:last-child {
  margin-bottom: 0;
}

.widget-title,
.widget-area h2,
.widget-area h3,
.widget-area h4 {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 12px;
}

.widget-area ul,
.widget-area ol {
  margin-bottom: 0;
  padding-left: 1.2em;
}

.widget-area img,
.widget-area iframe {
  max-width: 100%;
}

.widget-area select,
.widget-area input,
.widget-area textarea {
  max-width: 100%;
}

.widget-area a {
  color: var(--color-brand);
  font-weight: 700;
}

.widget-area--header {
  margin: 0;
  max-width: 320px;
  padding: 0;
  width: auto;
}

.widget-area--header .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.widget-area--header-image,
.widget-area--mobile-header-ad,
.widget-area--front-top,
.widget-area--front-bottom {
  margin-bottom: 0;
  padding-block: 18px;
}

.widget-area--front-top,
.widget-area--front-bottom {
  padding-block: 24px 0;
}

.widget-area--front-bottom {
  padding-bottom: 28px;
}

.site-sidebar {
  display: grid;
  gap: 16px;
}

.site-sidebar .widget-area {
  margin: 0;
  padding: 0;
}

.widget-area--sidebar-sticky {
  position: sticky;
  top: 96px;
}

.widget-area--post-top-pc,
.widget-area--post-top,
.widget-area--post-ad-large,
.widget-area--post-ad-mobile,
.widget-area--post-bottom-mobile,
.widget-area--post-bottom,
.widget-area--page-top,
.widget-area--page-bottom,
.widget-area--category-top,
.widget-area--category-bottom,
.widget-area--not-found,
.widget-area--original-shortcode {
  max-width: var(--readable-width);
  padding-inline: 0;
}

.widget-area--post-top-pc,
.widget-area--post-ad-large {
  display: none;
}

.widget-area--post-ad-mobile,
.widget-area--post-bottom-mobile,
.widget-area--mobile-header-ad,
.widget-area--mobile-fixed-footer {
  display: block;
}

.widget-area--menu {
  margin: 14px 0 0;
  padding: 0;
}

.widget-area--menu .widget {
  box-shadow: none;
}

.widget-area--mobile-fixed-footer {
  bottom: 0;
  left: 0;
  margin: 0;
  max-width: none;
  padding: 8px;
  position: fixed;
  right: 0;
  z-index: 120;
}

.widget-area--mobile-fixed-footer .widget {
  margin: 0 auto;
  max-width: 420px;
  padding: 8px;
}

.post-card__title {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 10px 0 8px;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--color-brand);
}

.post-card__excerpt {
  color: #424852;
  flex: 1;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.archive-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: 34px;
}

.archive-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.18;
  margin: 8px 0 0;
}

.archive-header p {
  color: var(--color-muted);
  margin: 8px 0 0;
}

.archive-description {
  color: var(--color-muted);
  max-width: 720px;
}

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

.breadcrumbs a {
  color: var(--color-brand);
  font-weight: 800;
  text-decoration: none;
}

.single-entry {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-inline: auto;
  max-width: var(--readable-width);
  overflow: hidden;
}

.single-entry__header {
  padding: 28px 22px 18px;
}

.single-entry__header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 12px 0 0;
}

.single-entry__thumbnail {
  margin: 0;
}

.single-entry__image {
  display: block;
  width: 100%;
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.9;
  padding: 8px 22px 30px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.35;
  margin: 2em 0 0.8em;
}

.entry-content h2 {
  border-left: 5px solid var(--color-brand);
  font-size: 1.55rem;
  padding-left: 12px;
}

.entry-content h3 {
  border-bottom: 1px solid var(--color-border);
  font-size: 1.3rem;
  padding-bottom: 6px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content blockquote {
  margin-bottom: 1.25em;
}

.entry-content a {
  color: var(--color-brand);
  font-weight: 700;
}

.entry-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  table-layout: auto;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--color-border);
  min-width: 6em;
  padding: 10px;
  overflow-wrap: normal;
  vertical-align: top;
  white-space: nowrap;
  word-break: keep-all;
}

.entry-content .dataTables_wrapper,
.entry-content .gc-tablepress-wrap {
  margin-bottom: 1.25em;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content .gc-tablepress-wrap table {
  display: table;
  margin-bottom: 0;
  min-width: max-content;
}

.entry-content .tablepress {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.entry-content .tablepress thead th {
  background: #b91c1c;
  color: #fff;
}

.entry-content .tablepress tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.entry-content .tablepress img {
  height: auto;
  max-width: none;
  vertical-align: middle;
}

.gc-tablepress-title {
  color: var(--color-text);
  font-weight: 800;
  margin: 0 0 10px;
}

.gc-shortcode-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  color: #9a3412;
  font-weight: 700;
  padding: 12px 14px;
}

.entry-content blockquote {
  background: #f7f8fa;
  border-left: 5px solid var(--color-accent);
  margin-inline: 0;
  padding: 16px 18px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignleft {
  float: left;
  margin: 0 18px 12px 0;
}

.alignright {
  float: right;
  margin: 0 0 12px 18px;
}

.gc-talk {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.gc-talk__avatar {
  align-items: center;
  background: var(--color-brand);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 46px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.gc-talk--alt .gc-talk__avatar {
  background: var(--color-accent);
}

.gc-talk__balloon {
  background: #f7f8fa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  flex: 1;
  padding: 14px 16px;
}

.gc-talk__balloon > *:last-child {
  margin-bottom: 0;
}

.gc-link-card {
  clear: both;
  margin: 24px 0;
}

.gc-link-card__anchor {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: inherit;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  text-decoration: none;
}

.entry-content .gc-link-card__anchor {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.gc-link-card__media {
  aspect-ratio: 4 / 3;
  background: #d9dee7;
  height: 100%;
  min-height: 150px;
  overflow: hidden;
}

.gc-link-card__media .post-thumbnail-image,
.gc-link-card__media img {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  position: static;
  width: 100%;
}

.gc-link-card__media .media-placeholder {
  min-height: 150px;
}

.gc-link-card__body {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-width: 0;
  padding: 16px 18px;
}

.gc-link-card__label {
  background: #f8e7e8;
  border-radius: 999px;
  color: var(--color-brand);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.3;
  padding: 3px 8px;
}

.gc-link-card__title {
  color: var(--color-ink);
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.gc-link-card__excerpt {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}

.gc-catlist {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 24px 0;
  padding: 18px;
}

.gc-catlist__category-list,
.gc-catlist__post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gc-catlist__category-list .gc-catlist__category-list {
  border-left: 2px solid #edf0f4;
  margin: 8px 0 0 12px;
  padding-left: 14px;
}

.gc-catlist__category-list li {
  margin: 7px 0;
}

.gc-catlist__category-list a,
.gc-catlist__post-list a,
.gc-catlist__term-title a {
  color: var(--color-brand);
  font-weight: 800;
  text-decoration: none;
}

.gc-catlist__count {
  color: var(--color-muted);
  font-size: 0.84rem;
  margin-left: 8px;
}

.gc-catlist__term {
  margin-top: 18px;
}

.gc-catlist__term:first-child {
  margin-top: 0;
}

.gc-catlist__term--depth-1,
.gc-catlist__term--depth-2,
.gc-catlist__term--depth-3,
.gc-catlist__term--depth-4 {
  border-left: 2px solid #edf0f4;
  padding-left: 14px;
}

.gc-catlist__term-title {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 10px;
}

.entry-content .gc-catlist__term-title {
  border: 0;
  margin-top: 0;
  padding: 0;
}

.gc-catlist__post-list {
  display: grid;
  gap: 8px;
}

.gc-catlist__post-list li {
  align-items: baseline;
  border-bottom: 1px solid #edf0f4;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 8px;
}

.gc-catlist__post-list time {
  color: var(--color-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.post-navigation {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px auto;
  max-width: var(--readable-width);
}

.post-navigation a {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: block;
  font-weight: 800;
  padding: 14px 16px;
  text-decoration: none;
}

.related-posts {
  margin: 34px auto 0;
  max-width: var(--content-width);
}

.related-posts h2 {
  font-size: 1.5rem;
}

.pagination-nav {
  margin-top: 30px;
}

.pagination-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-nav a,
.pagination-nav span {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: block;
  min-width: 42px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
}

.pagination-nav .current {
  background: var(--color-brand);
  color: #fff;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
}

.category-pill span {
  font-weight: 800;
}

.category-pill small {
  color: var(--color-muted);
}

.empty-state {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-inline: auto;
  max-width: 720px;
  padding: 28px;
}

.site-footer {
  background: #20242b;
  color: #eef1f5;
  padding-block: 34px;
}

.site-footer__inner {
  display: grid;
  gap: 22px;
  margin-inline: auto;
  max-width: var(--content-width);
  padding-inline: 20px;
}

.site-footer__title {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 4px;
}

.site-footer p {
  margin-block: 0;
}

.footer-menu,
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-menu a,
.footer-categories a {
  color: #fff;
}

.site-footer__copy {
  color: #b9c0ca;
  font-size: 0.86rem;
}

@media (min-width: 860px) {
  .front-hero__inner {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .widget-area--post-top-pc,
  .widget-area--post-ad-large {
    display: block;
  }

  .widget-area--post-ad-mobile,
  .widget-area--post-bottom-mobile,
  .widget-area--mobile-header-ad,
  .widget-area--mobile-fixed-footer {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-brand {
    flex: 1;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .has-js .site-navigation {
    display: none;
  }

  .has-js .site-navigation.is-open {
    display: block;
  }

  .site-navigation {
    flex-basis: 100%;
    width: 100%;
  }

  .widget-area--header {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    white-space: normal;
  }

  .primary-menu a {
    background: #f7f8fa;
    border-radius: var(--radius);
  }

  .front-hero__inner {
    padding-block: 36px;
  }

  .post-grid--front .post-card:first-child {
    grid-column: auto;
  }

  .search-form {
    flex-direction: column;
  }

  .single-entry {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .gc-link-card__anchor {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gc-link-card__media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .gc-link-card__body {
    padding: 14px;
  }

  .site-sidebar {
    margin-top: 10px;
  }

  .widget-area--sidebar-sticky {
    position: static;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 16px;
  }
}
