.blog-hero {
  min-height: 360px;
  background: var(--navy);
}

.blog-hero::before {
  background: linear-gradient(120deg, rgba(15, 27, 45, .98), rgba(31, 79, 216, .38));
}

.blog-hero .wrap {
  padding-bottom: 54px;
}

.blog-hero h1,
.blog-hero .section-desc,
.post-article h2,
.post-article h3,
.post-cta h3,
.column-card h3 {
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}

.blog-hero .blog-category {
  letter-spacing: .08em;
}

.blog-hero .post-meta {
  margin-top: 18px;
  font-size: 13px;
}

.blog-article-section,
.blog-index-section {
  background: var(--bg);
}

.post-wrap {
  width: min(840px, calc(100% - 40px));
}

.post-article {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

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

.post-article > :last-child {
  margin-bottom: 0;
}

.post-article h2,
.post-article h3 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.55;
}

.post-article h2 {
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  font-size: clamp(23px, 4vw, 30px);
}

.post-article h3 {
  margin: 34px 0 14px;
  font-size: clamp(19px, 3vw, 23px);
}

.post-article p,
.post-article li,
.post-article blockquote,
.post-article th,
.post-article td {
  font-size: max(13px, 1em);
}

.post-article p,
.post-article ul,
.post-article ol,
.post-article blockquote,
.post-article table {
  margin-top: 20px;
  margin-bottom: 20px;
}

.post-article ul,
.post-article ol {
  padding-left: 1.6em;
}

.post-article li + li {
  margin-top: 8px;
}

.post-article blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: var(--bg);
  color: var(--muted);
}

.post-article a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.post-article th,
.post-article td {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.post-article th {
  background: var(--bg);
  font-weight: 800;
}

.post-article img {
  height: auto;
  margin: 26px auto;
  border-radius: 10px;
}

.post-article pre,
.post-article code {
  overflow-wrap: anywhere;
}

.post-article pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}

.post-cta {
  margin-top: 40px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.post-cta h3 {
  margin: 0 0 10px;
  font-family: var(--head);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.55;
}

.post-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.85;
}

.post-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.post-back {
  margin-top: 22px;
}

.post-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-grid .column-card {
  display: flex;
  min-width: 0;
}

.blog-grid .column-body {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 24px;
}

.blog-grid .column-meta {
  align-items: flex-start;
  min-height: 40px;
  line-height: 1.6;
}

.blog-grid .column-meta time {
  flex: 0 0 auto;
}

.blog-grid .column-card h3 {
  margin: 12px 0;
  font-size: 18px;
  line-height: 1.65;
}

.blog-grid .column-card h3 a {
  align-items: flex-start;
}

.blog-grid .column-card p {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .post-wrap {
    width: min(100% - 32px, 840px);
  }
}

@media (max-width: 480px) {
  .blog-hero {
    min-height: 330px;
  }

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

  .post-article {
    padding: 24px 18px;
  }

  .post-cta a {
    width: 100%;
  }
}

/* スマホでは表を横に動かさず、枠の幅に収めて折り返す（関所 BOX001：右が切れて見える箱を作らない） */
@media (max-width: 768px) {
  .post-article table { display: table; table-layout: fixed; width: 100%; overflow: visible; }
  .post-article th, .post-article td { min-width: 0; padding: 10px 8px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; word-break: normal; }
}
