.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.blog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 20px;
  box-shadow: 0 20px 48px -30px rgba(10, 37, 64, .32);
  transition: transform .35s var(--float), box-shadow .35s var(--float);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -28px rgba(10, 37, 64, .38);
}

.blog-card > a { display: block; height: 100%; color: inherit; }
.blog-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--float); }
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: 1.25rem 1.3rem 1.5rem; }
.blog-card__meta { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: .6rem; }
.blog-card__date { color: var(--text-soft); font-family: var(--font-en); font-size: .78rem; letter-spacing: .08em; }
.blog-card__category { padding: .25em .7em; border-radius: 999px; background: var(--ice); color: var(--blue); font-size: .68rem; font-weight: 700; }
.blog-card h2 { color: var(--navy); font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.65; }
.blog-card p { margin-top: .65rem; color: var(--text-soft); font-size: .82rem; line-height: 1.8; }

.legacy-note {
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  background: var(--ice);
  color: var(--text-soft);
  font-size: .84rem;
}

.blog-article {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line-color);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 64px -36px rgba(10, 37, 64, .34);
}

.blog-article__meta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.5rem; }
.blog-article__date { color: var(--text-soft); font-family: var(--font-en); font-size: .82rem; letter-spacing: .08em; }
.blog-article__category { padding: .3em .8em; border-radius: 999px; background: var(--ice); color: var(--blue); font-size: .72rem; font-weight: 700; }
.blog-article__content { color: var(--text); line-height: 2; overflow-wrap: anywhere; }
.blog-article__content > * + * { margin-top: 1.15rem; }
.blog-article__content h2, .blog-article__content h3 { margin-top: 2.2rem; color: var(--navy); font-family: var(--font-serif); line-height: 1.6; }
.blog-article__content a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.blog-article__content img { display: block; width: auto; max-width: 100%; height: auto; margin: 1.2rem auto; border-radius: 14px; }
.blog-article__content ul, .blog-article__content ol { padding-left: 1.4rem; }
.blog-article__content blockquote { padding: 1rem 1.2rem; border-left: 4px solid var(--blue); background: var(--ice); }
.blog-back { margin-top: 2rem; text-align: center; }

.blog-article.service-detail { width: min(1040px, 100%); }
.service-detail__content .works-images { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.service-detail__content .works-images .slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.service-detail__content .works-images li { margin: 0; }
.service-detail__content .works-images img {
  width: 100%;
  height: clamp(210px, 28vw, 340px);
  margin: 0;
  object-fit: cover;
}
.service-detail__content h4 { margin-top: 1.5rem; color: var(--navy); font-weight: 700; }
.service-detail__content .signature {
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  background: var(--ice);
  font-size: .88rem;
}

.legacy-table-scroll {
  width: 100%;
  margin: 1.4rem 0;
  overflow-x: auto;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.legacy-table-scroll:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); outline-offset: 3px; }
.legacy-table-scroll table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
  line-height: 1.75;
}
.legacy-table-scroll th,
.legacy-table-scroll td {
  padding: .95rem 1.05rem;
  border-right: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  text-align: left;
  vertical-align: top;
}
.legacy-table-scroll th { width: 52%; background: var(--ice); color: var(--navy); font-weight: 700; }
.legacy-table-scroll tr:last-child > * { border-bottom: 0; }
.legacy-table-scroll tr > *:last-child { border-right: 0; }
.legacy-table-scroll td p { margin: 0; }
.legacy-table-scroll td p + p { margin-top: .4rem; }

@media (max-width: 640px) {
  .blog-article { border-radius: 18px; }
  .blog-card__body { padding: 1.05rem 1.05rem 1.25rem; }
  .service-detail__content .works-images .slider { grid-template-columns: 1fr; }
  .service-detail__content .works-images img { height: auto; max-height: none; object-fit: contain; }
  .legacy-table-scroll table { min-width: 540px; font-size: .82rem; }
  .legacy-table-scroll th, .legacy-table-scroll td { padding: .8rem .85rem; }
}
