/* =====================================================
   AI-TERRACE ブログ一覧ページ専用スタイル
===================================================== */

body.page-template-page-blog #header-container,
body.single-post #header-container {
  display: none;
}

body.page-template-page-blog #content,
body.single-post #content {
  margin-top: 0;
}

body.page-template-page-blog #main,
body.single-post #main {
  padding-top: 0;
  padding-bottom: 0 !important;
}

.ai-terrace-blog-page {
  --atb-ink: #07142f;
  --atb-blue: #0b4fe8;
  --atb-muted: #52647a;
  --atb-line: #dbe6f7;
  --atb-soft: #f4f8ff;
  color: var(--atb-ink);
  background:
    radial-gradient(circle at 4% 78%, rgba(11, 79, 232, 0.08), transparent 18%),
    radial-gradient(circle at 94% 34%, rgba(11, 79, 232, 0.07), transparent 20%),
    #ffffff;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.ai-terrace-blog-page *,
.ai-terrace-blog-page *::before,
.ai-terrace-blog-page *::after {
  box-sizing: border-box;
}

.ai-terrace-blog-page a {
  color: inherit;
  text-decoration: none !important;
}

.ai-terrace-blog-page h1,
.ai-terrace-blog-page h2,
.ai-terrace-blog-page h3 {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.atb-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.atb-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.18) 70%),
    url("../images/services-hero.png") center right / cover no-repeat;
}

.atb-hero__inner {
  padding: 58px 0 64px;
}

.atb-hero__body {
  max-width: 610px;
}

.atb-kicker {
  margin: 0 0 22px;
  color: var(--atb-blue);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.atb-title {
  margin: 0;
  color: var(--atb-ink);
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
}

.atb-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #17233c;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 600;
}

.atb-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
  color: var(--atb-ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.atb-topic-list span {
  position: relative;
  padding-left: 18px;
  white-space: nowrap;
}

.atb-topic-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atb-blue);
}

.atb-section {
  padding: 60px 0;
}

.atb-section--latest {
  background: rgba(255, 255, 255, 0.86);
}

.atb-section--list {
  padding-top: 72px;
}

.atb-section-head,
.atb-list-head {
  text-align: center;
}

.atb-section-head {
  margin-bottom: 28px;
}

.atb-section-head h2,
.atb-list-head h2 {
  margin: 0;
  color: var(--atb-ink);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.35;
  font-weight: 900;
}

.atb-section-head h2::after,
.atb-list-head h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--atb-blue);
}

.atb-list-head {
  max-width: 760px;
  margin: 0 auto 34px;
}

.atb-list-head p {
  margin: 16px 0 0;
  color: var(--atb-muted);
  font-weight: 700;
  line-height: 1.9;
}

.atb-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.atb-category-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--atb-line);
  color: var(--atb-blue);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7, 20, 47, 0.04);
}

.atb-category-nav a[aria-current="page"] {
  background: var(--atb-blue);
  border-color: var(--atb-blue);
  color: #ffffff;
}

.atb-post-grid {
  display: grid;
  gap: 24px;
}

.atb-post-grid--latest,
.atb-post-grid--archive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atb-post-card {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--atb-line);
  box-shadow: 0 14px 34px rgba(7, 20, 47, 0.08);
}

.atb-post-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--atb-soft);
}

.atb-post-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.atb-post-card:hover .atb-post-card__image img {
  transform: scale(1.03);
}

.atb-post-card__image span {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--atb-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.atb-post-card__body {
  padding: 18px 18px 20px;
}

.atb-post-card h3 {
  margin: 0;
  color: var(--atb-ink);
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 900;
}

.atb-post-card time {
  display: block;
  margin-top: 12px;
  color: #71839a;
  font-size: 0.9rem;
  font-weight: 700;
}

.atb-pagination {
  margin-top: 42px;
}

.atb-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atb-pagination .page-numbers li {
  margin: 0;
}

.atb-pagination .page-numbers a,
.atb-pagination .page-numbers span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--atb-line);
  background: #ffffff;
  color: var(--atb-ink);
  font-weight: 900;
}

.atb-pagination .page-numbers .current {
  background: var(--atb-blue);
  border-color: var(--atb-blue);
  color: #ffffff;
}

.atb-pagination .next,
.atb-pagination .prev {
  min-width: 140px !important;
  border-radius: 999px !important;
  color: var(--atb-blue) !important;
}

.atb-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--atb-line);
  color: var(--atb-muted);
  text-align: center;
  font-weight: 700;
}

.atb-single {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.atb-single-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(11, 79, 232, 0.1), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  border-bottom: 1px solid var(--atb-line);
}

.atb-single-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 46px;
  align-items: center;
  padding: 72px 0;
}

.atb-single-hero__text {
  min-width: 0;
}

.atb-single-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 18px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--atb-line);
  color: var(--atb-blue);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 20, 47, 0.06);
}

.atb-single-title {
  margin: 0;
  color: var(--atb-ink);
  font-size: clamp(2.2rem, 4.7vw, 4.2rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.atb-single-date {
  display: block;
  margin-top: 22px;
  color: #71839a;
  font-size: 0.96rem;
  font-weight: 800;
}

.atb-single-hero__image {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--atb-line);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(7, 20, 47, 0.1);
}

.atb-single-hero__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.atb-single-body {
  padding: 58px 0 76px;
}

.atb-single-body__inner {
  max-width: 920px;
}

.atb-single-content {
  padding: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--atb-line);
  box-shadow: 0 16px 38px rgba(7, 20, 47, 0.07);
  color: #17233c;
  font-size: 1rem;
  line-height: 2;
  font-weight: 600;
}

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

.atb-single-content > *:last-child {
  margin-bottom: 0;
}

.atb-single-content h2,
.atb-single-content h3 {
  margin: 2.1em 0 0.8em;
  color: var(--atb-ink);
  font-weight: 900;
  line-height: 1.45;
}

.atb-single-content h2 {
  font-size: 1.7rem;
}

.atb-single-content h3 {
  font-size: 1.32rem;
}

.atb-single-content p {
  margin: 0 0 1.35em;
}

.atb-single-content a {
  color: var(--atb-blue);
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

.atb-single-nav {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.atb-single-nav a {
  min-width: 220px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--atb-blue);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(11, 79, 232, 0.22);
}

@media (max-width: 1020px) {
  .atb-post-grid--latest,
  .atb-post-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atb-single-hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .atb-wrap {
    width: min(100% - 28px, 1180px);
  }

  .atb-hero {
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88)),
      url("../images/services-hero.png") center / cover no-repeat;
  }

  .atb-hero__inner {
    padding: 48px 0;
  }

  .atb-topic-list {
    gap: 12px 20px;
  }

  .atb-post-grid--latest,
  .atb-post-grid--archive {
    grid-template-columns: 1fr;
  }

  .atb-pagination .page-numbers {
    flex-wrap: wrap;
  }

  .atb-single-hero__inner {
    gap: 26px;
    padding: 48px 0;
  }

  .atb-single-body {
    padding: 38px 0 54px;
  }

  .atb-single-content {
    padding: 26px 20px;
  }
}
