/* =========================================================
   AIワプレス公式ブログ
========================================================= */
/* stickyを阻害するスクロールコンテナを作らず、横方向のはみ出しだけを隠す */
html,
body {
  overflow-x: clip;
}

/* 投稿本文内のリスト */
.single-post .aw-single-post__content > ul,
.single-post .aw-single-post__content > ol {
    margin: 24px 0;
    padding: 20px 24px 20px 48px;
    border: 1px solid #dbe3ec;
    background: #fff;
}

/* 各項目 */
.single-post .aw-single-post__content > ul > li,
.single-post .aw-single-post__content > ol > li {
    margin: 0 0 10px;
    padding-left: 4px;
    line-height: 1.8;
}

.single-post .aw-single-post__content > ul > li:last-child,
.single-post .aw-single-post__content > ol > li:last-child {
    margin-bottom: 0;
}

/* 点・数字を青にする */
.single-post .aw-single-post__content > ul > li::marker,
.single-post .aw-single-post__content > ol > li::marker {
    color: #2563eb;
    font-weight: 700;
}

/* スマートフォン */
@media (max-width: 767px) {
    .single-post .aw-single-post__content > ul,
    .single-post .aw-single-post__content > ol {
        margin: 20px 0;
        padding: 16px 16px 16px 40px;
    }
}
.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: var(--aw-navy);
  font-size: 14px;
}

.aw-blog-shell {
  padding-top: 34px;
}

.aw-breadcrumb {
  margin: 0 0 34px;
  color: #7a8794;
  font-size: 12px;
  line-height: 1.6;
}

.aw-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-breadcrumb__item {
  min-width: 0;
}

.aw-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: #c0c9d2;
}

.aw-breadcrumb__item a {
  color: #617284;
}

.aw-breadcrumb__item[aria-current="page"] {
  overflow: hidden;
  max-width: 52em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-blog-header {
  position: relative;
  max-width: 820px;
  margin: 10px 0 52px;
  padding-left: 22px;
  border-left: 3px solid var(--aw-blue);
}

.aw-blog-header__label {
  margin: 0 0 8px;
  color: var(--aw-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.aw-blog-header__title {
  margin: 0;
  color: var(--aw-navy);
  font-size: clamp(28px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.aw-blog-header__lead {
  margin: 14px 0 0;
  color: #617284;
  font-size: 15px;
  line-height: 1.9;
}

.aw-blog-header__lead > *:first-child {
  margin-top: 0;
}

.aw-blog-header__lead > *:last-child {
  margin-bottom: 0;
}

.aw-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
  overflow: visible;
}

.aw-blog-main {
  min-width: 0;
}

.aw-blog-shell--single .aw-single-post {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #dbe3ec;
  border-radius: 0;
  background: #fff;
}

.aw-post-list {
  display: grid;
  gap: 34px;
}

.aw-post-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 41, 64, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aw-post-card:hover {
  border-color: #cbdaf4;
  box-shadow: 0 16px 38px rgba(15, 41, 64, 0.09);
  transform: translateY(-2px);
}

.aw-post-card__image-link {
  display: block;
  min-height: 218px;
  overflow: hidden;
  background: #eef4ff;
}

.aw-post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.aw-post-card:hover .aw-post-card__image {
  transform: scale(1.025);
}

.aw-post-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 218px;
  background: linear-gradient(145deg, #eef4ff, #f8fbff);
  color: #8699ae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.aw-post-card__placeholder span {
  margin-right: 7px;
  color: var(--aw-blue);
  font-size: 23px;
  letter-spacing: 0;
}

.aw-post-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 28px 23px;
}

.aw-post-card__category,
.aw-single-post__category {
  align-self: flex-start;
  color: var(--aw-blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.aw-post-card__category:hover,
.aw-single-post__category:hover {
  text-decoration: none;
}

.aw-post-card__title {
  margin: 9px 0 12px;
  color: var(--aw-navy);
  font-size: clamp(19px, 2vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.aw-post-card__title a {
  color: inherit;
}

.aw-post-card__title a:hover {
  color: var(--aw-blue);
  text-decoration: none;
}

.aw-post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 16px;
  color: #657586;
  font-size: 13px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.aw-post-card__date {
  margin-top: auto;
  color: #98a3ae;
  font-size: 11px;
}

.aw-blog-sidebar {
  display: grid;
  gap: 28px;
  align-self: stretch;
  align-content: start;
  overflow: visible;
}

.aw-sidebar-section {
  padding: 0;
  border: 0;
  background: transparent;
}

.aw-sidebar-section__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7edf3;
  color: var(--aw-navy);
  font-size: 16px;
  line-height: 1.5;
}

.aw-sidebar-section__title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 9px;
  border-radius: 4px;
  background: var(--aw-blue);
  vertical-align: -2px;
}

.aw-sidebar-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  overflow: hidden;
  border: 1px solid #d7e0e9;
  border-radius: 6px;
  background: #fff;
}

.aw-sidebar-search__form:focus-within {
  border-color: var(--aw-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.aw-sidebar-search__form input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: var(--aw-text);
  font-size: 13px;
}

.aw-sidebar-search__form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--aw-navy);
  color: #fff;
  cursor: pointer;
}

.aw-sidebar-search__form button:hover {
  background: var(--aw-blue);
}

.aw-sidebar-posts {
  display: grid;
  gap: 15px;
}

.aw-sidebar-post {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--aw-text);
}

.aw-sidebar-post:hover {
  color: var(--aw-blue);
  text-decoration: none;
}

.aw-sidebar-post__media {
  display: block;
  overflow: hidden;
  width: 82px;
  aspect-ratio: 16 / 9;
  background: #eef4ff;
}

.aw-sidebar-post__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aw-sidebar-post__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--aw-blue);
  font-size: 13px;
  font-weight: 800;
}

.aw-sidebar-post__content {
  min-width: 0;
}

.aw-sidebar-post__title {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.aw-sidebar-post time {
  display: block;
  margin-top: 4px;
  color: #99a4af;
  font-size: 10px;
}

.aw-sidebar-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aw-sidebar-categories li + li {
  border-top: 1px solid #edf1f5;
}

.aw-sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  color: #4e6173;
  font-size: 13px;
  font-weight: 600;
}

.aw-sidebar-categories a:hover {
  color: var(--aw-blue);
  text-decoration: none;
}

.aw-sidebar-categories a span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f4f8;
  color: #8190a0;
  font-size: 10px;
}

.aw-auto-post-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid #cddcf5;
  border-radius: 9px;
  background: linear-gradient(145deg, #f4f7ff 0%, #fff 70%);
}

.aw-auto-post-banner::before {
  content: "AI";
  position: absolute;
  right: -6px;
  bottom: -34px;
  color: rgba(37, 99, 235, 0.045);
  font-size: 116px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.aw-auto-post-banner--top,
.aw-auto-post-banner--bottom {
  margin: 34px 0;
  padding: 25px 28px;
}

.aw-auto-post-banner--bottom {
  margin-bottom: 0;
}

.aw-auto-post-banner--sidebar {
  padding: 25px 23px;
}

.aw-auto-post-banner__label {
  position: relative;
  z-index: 1;
  color: var(--aw-blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.aw-auto-post-banner__title {
  position: relative;
  z-index: 1;
  margin: 7px 0 8px;
  color: var(--aw-navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
}

.aw-auto-post-banner__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #647688;
  font-size: 12px;
  line-height: 1.8;
}

.aw-auto-post-banner__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.aw-auto-post-banner__link,
.aw-auto-post-banner__trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.aw-auto-post-banner__link {
  border: 1px solid #c7d5e3;
  background: #fff;
  color: var(--aw-navy);
}

.aw-auto-post-banner__trial {
  border: 1px solid var(--aw-blue);
  background: var(--aw-blue);
  color: #fff;
}

.aw-auto-post-banner__link:hover,
.aw-auto-post-banner__trial:hover {
  text-decoration: none;
}

.aw-auto-post-banner__link:hover {
  border-color: var(--aw-blue);
  color: var(--aw-blue);
}

.aw-auto-post-banner__trial:hover {
  background: #1d4ed8;
  color: #fff;
}

.aw-single-post .aw-auto-post-banner__link {
  border-color: var(--aw-blue);
  background: var(--aw-blue);
  color: #fff;
}

.aw-single-post .aw-auto-post-banner__link:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.aw-blog-sidebar .aw-auto-post-banner__actions {
  display: grid;
  grid-template-columns: 1fr;
}

.aw-blog-sidebar .aw-auto-post-banner__link,
.aw-blog-sidebar .aw-auto-post-banner__trial {
  width: 100%;
}

@media (min-width: 821px) {
  .aw-blog-sidebar .aw-auto-post-banner--sidebar {
    position: -webkit-sticky;
    position: sticky;
    z-index: 2;
    top: 96px;
    align-self: start;
    width: 100%;
  }

  .admin-bar .aw-blog-sidebar .aw-auto-post-banner--sidebar {
    top: 128px;
  }
}

.aw-single-post__header {
  margin-bottom: 32px;
}

.aw-single-post__title {
  margin: 12px 0 17px;
  color: var(--aw-navy);
  font-size: clamp(30px, 4vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.aw-single-post__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: #8593a1;
  font-size: 12px;
}

.aw-single-post__eyecatch {
  overflow: hidden;
  margin: 0 0 34px;
  border-radius: 10px;
  background: #eef4ff;
}

.aw-single-post__image {
  display: block;
  width: 100%;
  height: auto;
}

.aw-post-toc {
  margin: 0 0 34px;
  padding: 23px 26px;
  border: 1px solid #dbe3ec;
  border-radius: 0;
  background: #fff;
}

.aw-post-toc__title {
  margin: 0 0 14px;
  color: var(--aw-navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.aw-post-toc__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.6em;
}

.aw-post-toc__list li {
  padding-left: 4px;
  color: #536678;
  font-size: 14px;
  line-height: 1.7;
}

.aw-post-toc__list li::marker {
  color: var(--aw-blue);
  font-weight: 800;
}

.aw-post-toc__list a {
  color: inherit;
}

.aw-post-toc__list a:hover {
  color: var(--aw-blue);
  text-decoration: none;
}

.aw-single-post__content {
  color: #2d3d4c;
  font-size: 16px;
  line-height: 2;
}

.aw-single-post__content h2 {
  scroll-margin-top: 110px;
  margin: 60px 0 24px;
  padding: 15px 18px;
  border-left: 4px solid var(--aw-blue);
  background: #f4f7fb;
  color: var(--aw-navy);
  font-size: clamp(22px, 3vw, 22px);
  line-height: 1.55;
}

.aw-single-post__content h3 {
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e2eb;
  color: var(--aw-navy);
  font-size: clamp(20px, 2.4vw, 20px);
  line-height: 1.6;
}

.aw-single-post__content h4 {
  margin: 34px 0 14px;
  color: var(--aw-navy);
  font-size: 19px;
  line-height: 1.65;
}

.aw-single-post__content p,
.aw-single-post__content ul,
.aw-single-post__content ol,
.aw-single-post__content table,
.aw-single-post__content figure,
.aw-single-post__content blockquote {
  margin-top: 0;
  margin-bottom: 28px;
}

.aw-single-post__content ul,
.aw-single-post__content ol {
  padding-left: 1.5em;
}

.aw-single-post__content li + li {
  margin-top: 7px;
}

.aw-single-post__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aw-single-post__content blockquote {
  padding: 22px 24px;
  border-left: 4px solid #b9c8d8;
  background: #f7f9fb;
  color: #566879;
}

.aw-single-post__content blockquote > *:last-child {
  margin-bottom: 0;
}

.aw-single-post__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.aw-single-post__content th,
.aw-single-post__content td {
  padding: 12px 14px;
  border: 1px solid #dbe3eb;
  text-align: left;
  vertical-align: top;
}

.aw-single-post__content th {
  background: #f1f5f9;
  color: var(--aw-navy);
}

.aw-single-post__content pre {
  overflow-x: auto;
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 6px;
  background: #14283a;
  color: #eef6ff;
  font-size: 13px;
  line-height: 1.75;
}

.aw-single-post__content code {
  padding: 0.15em 0.35em;
  border-radius: 3px;
  background: #eff3f7;
  font-size: 0.9em;
}

.aw-single-post__content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.aw-single-post__content .aw-post-toc__title {
  margin: 0 0 14px;
}

.aw-single-post__content .aw-post-toc__list {
  margin: 0;
  padding-left: 1.6em;
}

.aw-single-post__content .aw-auto-post-banner__title {
  margin: 7px 0 8px;
}

.aw-single-post__content .aw-auto-post-banner__text {
  margin: 0;
}

.aw-single-post__content .aw-auto-post-banner--top + h2 {
  margin-top: 34px;
}

.aw-article-author {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 30px;
  padding: 26px;
  border: 1px solid #dbe3ec;
  border-radius: 0;
  background: #fff;
}

.aw-article-author__icon {
  display: block;
  width: 88px;
  height: 88px;
  border: 1px solid #d7e1eb;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.aw-article-author__label {
  margin: 0 0 4px;
  color: var(--aw-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.aw-article-author__title {
  margin: 0 0 9px;
  color: var(--aw-navy);
  font-size: 19px;
  line-height: 1.55;
}

.aw-article-author__text {
  margin: 0;
  color: #596c7e;
  font-size: 13px;
  line-height: 1.85;
}

.aw-article-author__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--aw-blue);
  font-size: 12px;
  font-weight: 800;
}

.aw-related-posts {
  margin-top: 30px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #dbe3ec;
  border-radius: 0;
  background: #fff;
}

.aw-related-posts__heading {
  margin: 0 0 24px;
  color: var(--aw-navy);
  font-size: 24px;
  line-height: 1.5;
}

.aw-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.aw-related-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  background: #eef4ff;
}

.aw-related-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aw-related-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #8094aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.aw-related-card__title {
  margin: 11px 0 0;
  color: var(--aw-navy);
  font-size: 15px;
  line-height: 1.65;
}

.aw-related-card__title a {
  color: inherit;
}

.aw-related-card__title a:hover {
  color: var(--aw-blue);
  text-decoration: none;
}

.navigation.pagination {
  margin-top: 44px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dbe3eb;
  border-radius: 5px;
  background: #fff;
  color: #536678;
  font-size: 13px;
  font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--aw-blue);
  background: var(--aw-blue);
  color: #fff;
  text-decoration: none;
}

.aw-blog-empty {
  margin: 0;
  padding: 36px;
  border: 1px solid #e1e8ef;
  background: #f8fafc;
  color: #66788a;
  text-align: center;
}

@media (max-width: 1040px) {
  .aw-blog-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 38px;
  }

  .aw-post-card {
    grid-template-columns: minmax(190px, 35%) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .aw-blog-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .aw-blog-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-blog-sidebar .aw-auto-post-banner {
    position: static;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .aw-blog-shell {
    padding-top: 24px;
  }

  .aw-breadcrumb {
    margin-bottom: 25px;
  }

  .aw-blog-header {
    margin-bottom: 38px;
    padding-left: 16px;
  }

  .aw-blog-header__title {
    font-size: 31px;
  }

  .aw-blog-header__lead {
    font-size: 14px;
  }

  .aw-post-card {
    grid-template-columns: 1fr;
  }

  .aw-post-card__image-link,
  .aw-post-card__placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .aw-post-card__body {
    padding: 21px 20px 20px;
  }

  .aw-post-card__title {
    font-size: 20px;
  }

  .aw-blog-sidebar {
    grid-template-columns: 1fr;
  }

  .aw-blog-sidebar .aw-auto-post-banner {
    grid-row: auto;
  }

  .aw-single-post__title {
    font-size: 29px;
  }

  .aw-blog-shell--single .aw-single-post {
    padding: 24px 18px;
  }

  .aw-post-toc {
    padding: 20px 18px;
  }

  .aw-single-post__content {
    font-size: 15px;
    line-height: 1.95;
  }

  .aw-single-post__content h2 {
    margin-top: 48px;
    padding: 13px 14px;
    font-size: 22px;
  }

  .aw-single-post__content h3 {
    margin-top: 38px;
    font-size: 20px;
  }

  .aw-single-post__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .aw-auto-post-banner--top,
  .aw-auto-post-banner--bottom {
    padding: 22px 20px;
  }

  .aw-auto-post-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .aw-auto-post-banner__link,
  .aw-auto-post-banner__trial {
    width: 100%;
  }

  .aw-related-posts__grid {
    grid-template-columns: 1fr;
  }

  .aw-related-posts {
    padding: 24px 18px;
  }

  .aw-article-author {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .aw-article-author__icon {
    width: 64px;
    height: 64px;
  }

  .aw-article-author__title {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-post-card,
  .aw-post-card__image {
    transition: none;
  }
}
