/* コラム・お知らせ（/blog/）…guide.css の上に重ねて読み込む */

/* カテゴリー・日付 */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: #717171;
}
.guide-head .blog-meta {
  margin-bottom: 14px;
}
.blog-meta time {
  font-family: "Albert Sans", "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: inherit;
}
.blog-meta__updated {
  font-size: 13px;
}
.blog-cat {
  display: inline-block;
  min-width: 68px;
  padding: 2px 10px 3px;
  border-radius: 4px;
  background-color: #00489d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.blog-cat--news {
  background-color: #1ca2dd;
}
.blog-cat--column {
  background-color: #00489d;
}

/* 一覧 */
.blog-index {
  padding-block: 40px 90px;
}
.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.blog-tabs a {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  background-color: #fff;
  color: #333;
  font-size: 15px;
  font-weight: 700;
}
.blog-tabs a:hover {
  opacity: 1;
  border-color: var(--guide-blue);
  color: var(--guide-blue);
}
.blog-tabs a.is-current {
  border-color: var(--guide-blue);
  background-color: var(--guide-blue);
  color: #fff;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
@media screen and (max-width: 991px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 599px) {
  .blog-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  opacity: 1;
  border-color: var(--guide-blue);
  box-shadow: 0 4px 16px rgba(0, 72, 157, 0.1);
}
.blog-card__thumb {
  aspect-ratio: 16 / 9;
  background-color: var(--guide-bg);
  overflow: hidden;
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card__thumb img {
  transform: scale(1.04);
}
.blog-card__thumb .blog-card__noimage {
  width: 40%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
  opacity: 0.6;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}
.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
}
.blog-card__excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}

/* ページ送り */
.blog-pagination {
  margin-top: 48px;
}
.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--guide-blue);
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.blog-pagination .page-numbers.current {
  border-color: var(--guide-blue);
  background-color: var(--guide-blue);
  color: #fff;
}
.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
}
.blog .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 記事：目次のない記事は1カラムで中央に */
.blog-layout--single {
  max-width: 880px;
  padding-block: 48px 40px;
}
.blog-eyecatch {
  margin-bottom: 32px;
  border-radius: 10px;
  overflow: hidden;
}
.blog-body .blog-eyecatch img {
  width: 100%;
  height: auto;
  max-height: none;
}

/* 記事：本文（管理画面で書いた HTML。guide.css の本文スタイルに足りないものを補う） */
.blog-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--guide-blue);
  scroll-margin-top: 160px;
}
.blog-body h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 28px 0 12px;
  color: var(--guide-blue);
}
@media screen and (max-width: 768px) {
  .blog-body h3 {
    font-size: 18px;
  }
}
.blog-body h2 strong,
.blog-body h3 strong,
.blog-body h4 strong {
  font-weight: inherit;
}
.blog-body hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--guide-line);
}
.blog-body img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: none;
  height: auto;
  vertical-align: bottom;
}
.blog-body .aligncenter {
  display: block;
  margin-inline: auto;
}
.blog-body .alignright {
  float: right;
  margin: 0 0 16px 20px;
}
.blog-body .alignleft {
  float: left;
  margin: 0 20px 16px 0;
}
.blog-body::after {
  content: "";
  display: block;
  clear: both;
}
.blog-body blockquote {
  margin-bottom: 18px;
  padding: 18px 22px;
  border-left: 4px solid var(--guide-line);
  background-color: var(--guide-bg);
  color: #555;
}
.blog-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 0;
}

/* 表（旧ブログの記事にある table-scroll / table-bordered も含む） */
.blog-body .table-scroll,
.blog-body .blog-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.75;
}
.blog-body .table-scroll table {
  min-width: 760px;
  margin-bottom: 0;
}
.blog-body th,
.blog-body td {
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  text-align: left;
  vertical-align: top;
}
.blog-body th {
  background-color: var(--guide-bg);
  font-weight: 700;
}
.blog-body thead th,
.blog-body table tr:first-child th {
  background-color: var(--guide-blue);
  color: #fff;
}
.blog-body .table-scroll tr:not(:first-child) td:last-child {
  background-color: #f2f8ff;
}

/* 旧ブログ（Cocoon）の文字装飾 */
.blog-body .marker-under-blue {
  background: linear-gradient(transparent 62%, #bfe3ff 62%);
}
.blog-body .blue {
  color: var(--guide-blue);
}
.blog-body .bold {
  font-weight: 700;
}
.blog-body .information-box {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 22px 18px 58px;
  border: 1px solid #b9d4f1;
  border-radius: 8px;
  background-color: #f2f8ff;
}
.blog-body .information-box::before {
  content: "i";
  position: absolute;
  top: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--guide-blue);
  color: #fff;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.blog-body .btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 999px;
  background-color: #ffde39;
  color: #333;
  font-weight: 700;
  text-decoration: none;
}
.blog-body p:has(> .btn) {
  text-align: center;
}

/* [author_box] 記事を書いた人 */
.blog-author {
  margin: 28px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  background-color: var(--guide-bg);
}
.guide-body .blog-author p {
  margin-bottom: 0;
}
.guide-body .blog-author__label {
  margin-bottom: 14px;
  color: var(--guide-blue);
  font-size: 14px;
  font-weight: 700;
}
.blog-author__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
@media screen and (max-width: 599px) {
  .blog-author__inner {
    flex-direction: column;
    align-items: center;
  }
}
.blog-body .blog-author img {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.guide-body .blog-author__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.blog-author__name small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}
.guide-body .blog-author__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
}
