@charset "UTF-8";
/* ==========================================================================
   研究員BLOG: 記事ページの2列（本文＋サイドバー）・合わせて読みたい・前後の記事・
   一覧ページのカテゴリ切り替え。functions/original-functions.php で
   研究員BLOG の一覧・カテゴリ一覧・記事のときだけ読み込む。
   ========================================================================== */

/* ---------- レイアウト（PC は2列、1080px 以下は1列でサイドバーを下に） ---------- */
.blog-layout {
  padding-bottom: 100px;
}

.blog-layout .article-details {
  padding-bottom: 0;
}

@media (min-width: 1081px) {
  .blog-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .blog-layout__main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 740px;
  }
  .blog-side {
    flex: 0 0 290px;
    width: 290px;
    margin-left: 50px;
    align-self: stretch; /* 本文と同じ高さにして、お問い合わせ枠を最後まで追従させる */
  }
}

@media (max-width: 1080px) {
  .blog-side {
    margin-top: 60px;
  }
}

@media (max-width: 640px) {
  .blog-layout {
    padding-bottom: 60px;
  }
  .blog-side {
    margin-top: 40px;
  }
}

/* ---------- 記事タイトル・本文の見出し ----------
   本文の見出しにはエディタで付けた色・文字サイズ（span の style）が入っているので打ち消して、
   H2＝黄色の帯の箱、H3＝下線、H4＝ピンクの縦線にそろえる */
@media (min-width: 1081px) {
  .blog-layout .article-details__ttl {
    font-size: 3rem;
  }
}

.blog-layout .article-details__body h2 span,
.blog-layout .article-details__body h3 span,
.blog-layout .article-details__body h4 span,
.blog-layout .article-details__body h2 b,
.blog-layout .article-details__body h3 b,
.blog-layout .article-details__body h4 b,
.blog-layout .article-details__body h2 strong,
.blog-layout .article-details__body h3 strong,
.blog-layout .article-details__body h4 strong,
.blog-layout .article-details__body h2 em,
.blog-layout .article-details__body h3 em,
.blog-layout .article-details__body h4 em {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
}

.blog-layout .article-details__body h2:empty,
.blog-layout .article-details__body h3:empty {
  display: none;
}

.blog-layout .article-details__body h2 {
  position: relative;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: #212121;
  background-color: #fff;
  border-left: 8px solid #FFE106;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.08);
  padding: 18px 22px;
  margin: 44px 0 24px;
}

/* H3: 背景なし・左に細い黄色の縦線（H2 の白い箱・太い縦帯を小さく軽くした形） */
.blog-layout .article-details__body h3 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.55;
  color: #212121;
  padding: 2px 0 2px 14px;
  border-left: 4px solid #FFE106;
  margin: 36px 0 16px;
}

.blog-layout .article-details__body h4 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
  color: #212121;
  padding-left: 14px;
  border-left: 4px solid #E3007F;
  margin: 36px 0 14px;
}

@media (max-width: 640px) {
  .blog-layout .article-details__body h2 {
    font-size: 1.8rem;
    border-left-width: 6px;
    padding: 12px 14px;
    margin: 32px 0 16px;
  }
  .blog-layout .article-details__body h3 {
    font-size: 1.6rem;
    padding-left: 10px;
    border-left-width: 3px;
    margin: 26px 0 12px;
  }
  .blog-layout .article-details__body h4 {
    font-size: 1.5rem;
    padding-left: 10px;
    margin: 26px 0 12px;
  }
}

/* 本文の箇条書き: 文字サイズを段落と同じに（エディタで付いた文字サイズは打ち消す）、黒丸を付ける */
.blog-layout .article-details__body ul,
.blog-layout .article-details__body ol {
  margin: 20px 0;
  padding-left: 1.6em;
}

.blog-layout .article-details__body ul {
  list-style: disc;
}

.blog-layout .article-details__body ol {
  list-style: decimal;
}

.blog-layout .article-details__body li ul,
.blog-layout .article-details__body li ol {
  margin: 6px 0;
}

.blog-layout .article-details__body li {
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.blog-layout .article-details__body li li {
  font-size: inherit;
}

.blog-layout .article-details__body li span,
.blog-layout .article-details__body li b,
.blog-layout .article-details__body li strong {
  font-size: inherit !important;
}

@media (max-width: 640px) {
  .blog-layout .article-details__body li {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .blog-layout .article-details__body li li {
    font-size: inherit;
  }
}

/* 本文の画像の下にできる行の隙間をなくす */
.blog-layout .article-details__body p img {
  vertical-align: bottom;
}

/* ---------- 本文中の「合わせて読みたい」 ---------- */
/* 前後の余白は控えめに。直後の H2 は上の余白を詰める */
.blog-inline-related {
  position: relative;
  margin: 32px 0 24px;
  padding: 22px 18px 16px;
  border: 2px solid #FFE106;
  background-color: #fff;
}

.blog-inline-related__label {
  position: absolute;
  top: -13px;
  left: 16px;
  padding: 3px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  background-color: #FFE106;
  color: #212121;
}

.blog-inline-related__link {
  display: flex;
  align-items: center;
  color: #212121;
  text-decoration: none;
}

.blog-inline-related__thumb {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #EDEDED;
  margin-right: 18px;
}

.blog-inline-related__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.blog-inline-related__thumb img.is-noimage {
  object-fit: contain;
  padding: 18%;
  box-sizing: border-box;
}

.blog-inline-related__texts {
  min-width: 0;
}

.blog-inline-related__date {
  display: block;
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 6px;
}

.blog-inline-related__ttl {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}

.blog-inline-related__ttl:after {
  content: " \203A";
  color: #E3007F;
}

.blog-inline-related__link:hover .blog-inline-related__ttl {
  text-decoration: underline;
}

.blog-layout .article-details__body .blog-inline-related + h2 {
  margin-top: 24px;
}

@media (max-width: 640px) {
  .blog-inline-related {
    margin: 26px 0 18px;
    padding: 18px 12px 12px;
  }
  .blog-layout .article-details__body .blog-inline-related + h2 {
    margin-top: 18px;
  }
  .blog-inline-related__label {
    font-size: 1.1rem;
    left: 10px;
    top: -11px;
  }
  .blog-inline-related__thumb {
    flex-basis: 100px;
    width: 100px;
    margin-right: 12px;
  }
  .blog-inline-related__date {
    font-size: 1.1rem;
    margin-bottom: 3px;
  }
  .blog-inline-related__ttl {
    font-size: 1.3rem;
  }
}

/* ---------- 関連ジャンルの製造実績 ---------- */
.blog-jirei {
  margin-top: 60px;
  padding: 36px 30px 32px;
  background-color: #fff;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
}

.blog-jirei__ttl {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-jirei__ttl-en {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #E3007F;
  margin-bottom: 4px;
}

.blog-jirei__lead {
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-jirei__list {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.blog-jirei__item {
  width: calc(50% - 20px);
  margin: 10px;
  border: 1px solid #E2E2E2;
  background-color: #fff;
  box-sizing: border-box;
}

.blog-jirei__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #fff;
  border-bottom: 1px solid #EDEDED;
}

.blog-jirei__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-jirei__thumb.is-fit img {
  object-fit: contain;
}

.blog-jirei__body {
  padding: 14px 16px 18px;
}

.blog-jirei__type {
  display: inline-block;
  padding: 2px 12px;
  border: 1px solid #434343;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.blog-jirei__type--full {
  background-color: #434343;
  color: #fff;
}

.blog-jirei__name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.blog-jirei__client {
  font-size: 1.3rem;
  color: #555;
  margin-top: 4px;
}

.blog-jirei__para {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 1.3rem;
  line-height: 1.7;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #D7D7D7;
}

.blog-jirei__more {
  margin-top: 24px;
  text-align: center;
}

.blog-jirei__more a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid #FFE106;
  font-size: 1.5rem;
  font-weight: 700;
  color: #212121;
  text-decoration: none;
}

.blog-jirei__more a:after {
  content: "\203A";
  margin-left: 8px;
}

.blog-jirei__more a:hover {
  opacity: .7;
}

@media (max-width: 640px) {
  .blog-jirei {
    margin-top: 40px;
    padding: 24px 14px 22px;
  }
  .blog-jirei__ttl {
    font-size: 1.9rem;
  }
  .blog-jirei__lead {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  .blog-jirei__list {
    display: block;
    margin: 0;
  }
  .blog-jirei__item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 10px;
  }
  .blog-jirei__thumb {
    flex: 0 0 110px;
    width: 110px;
    aspect-ratio: 1 / 1;
    border-bottom: none;
    border-right: 1px solid #EDEDED;
  }
  .blog-jirei__body {
    min-width: 0;
    padding: 10px 12px;
  }
  .blog-jirei__type {
    font-size: 1rem;
    padding: 1px 10px;
    margin-bottom: 4px;
  }
  .blog-jirei__name {
    font-size: 1.4rem;
  }
  .blog-jirei__client {
    font-size: 1.2rem;
  }
  .blog-jirei__para {
    display: none;
  }
  .blog-jirei__more a {
    font-size: 1.3rem;
  }
}

/* 記事のカテゴリ（カテゴリ一覧へのリンク） */
.article-details__cat--link {
  display: block;
  width: auto;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
  color: #212121;
  text-decoration: none;
  transition: background-color .2s;
}

.article-details__cat--link:hover {
  background-color: #FFE106;
}

/* ---------- 前の記事・次の記事・一覧へ ---------- */
.blog-postnav {
  margin-top: 50px;
}

.blog-postnav__list {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #D7D7D7;
  border-bottom: 1px solid #D7D7D7;
}

.blog-postnav__item {
  width: 50%;
}

.blog-postnav__item--next {
  border-left: 1px solid #D7D7D7;
  text-align: right;
}

.blog-postnav__link {
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 20px 24px;
  color: #212121;
  text-decoration: none;
  transition: background-color .2s;
}

.blog-postnav__link:hover {
  background-color: #fff;
}

.blog-postnav__label {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #E3007F;
  margin-bottom: 6px;
}

.blog-postnav__item--prev .blog-postnav__label:before {
  content: "\2039";
  margin-right: 6px;
}

.blog-postnav__item--next .blog-postnav__label:after {
  content: "\203A";
  margin-left: 6px;
}

.blog-postnav__ttl {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 1.4rem;
  line-height: 1.6;
}

.blog-postnav__link:hover .blog-postnav__ttl {
  text-decoration: underline;
}

.blog-postnav__back {
  margin-top: 30px;
  text-align: center;
}

.blog-postnav__back-link {
  display: inline-block;
  min-width: 260px;
  box-sizing: border-box;
  padding: 16px 30px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #212121;
  background-color: #fff;
  border: 2px solid #212121;
  text-decoration: none;
  transition: background-color .2s;
}

.blog-postnav__back-link:hover {
  background-color: #FFE106;
}

@media (max-width: 640px) {
  .blog-postnav {
    margin-top: 30px;
  }
  .blog-postnav__link {
    padding: 14px 12px;
  }
  .blog-postnav__label {
    font-size: 1.1rem;
  }
  .blog-postnav__ttl {
    font-size: 1.2rem;
  }
  .blog-postnav__back-link {
    width: 100%;
    font-size: 1.3rem;
    padding: 14px 20px;
  }
}

/* ---------- 見出し（合わせて読みたい・サイドバー共通） ---------- */
.blog-related__ttl,
.blog-side__ttl {
  font-weight: 700;
  line-height: 1.3;
}

.blog-related__ttl-en,
.blog-side__ttl-en {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #E3007F;
  margin-bottom: 4px;
}

/* ---------- 合わせて読みたい ---------- */
.blog-related {
  margin-top: 70px;
}

.blog-related__ttl {
  font-size: 2.4rem;
  margin-bottom: 24px;
}

.blog-related__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.blog-related__item {
  width: calc(100% / 3);
  padding: 0 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.blog-related__link {
  display: block;
  height: 100%;
  background-color: #fff;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
  color: #212121;
  text-decoration: none;
  transition: box-shadow .2s;
}

.blog-related__link:hover {
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.3);
}

.blog-related__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #EDEDED;
}

.blog-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related__thumb img.is-noimage,
.blog-side__thumb img.is-noimage {
  object-fit: contain;
  padding: 18%;
  box-sizing: border-box;
}

.blog-related__texts {
  padding: 14px 16px 18px;
}

.blog-related__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.blog-related__date {
  font-size: 1.2rem;
  margin-right: 10px;
}

.blog-related__cat {
  font-size: 1.1rem;
  background-color: #EDEDED;
  padding: 2px 12px;
}

.blog-related__head {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-related__link:hover .blog-related__head {
  text-decoration: underline;
}

/* スマホは横長のカード（画像左・文字右）を縦に並べる */
@media (max-width: 640px) {
  .blog-related {
    margin-top: 45px;
  }
  .blog-related__ttl {
    font-size: 1.9rem;
    margin-bottom: 16px;
  }
  .blog-related__list {
    display: block;
    margin: 0;
  }
  .blog-related__item {
    width: 100%;
    padding: 0;
    margin-bottom: 10px;
  }
  .blog-related__link {
    display: flex;
    align-items: stretch;
  }
  .blog-related__thumb {
    flex: 0 0 116px;
    width: 116px;
    aspect-ratio: auto;
    min-height: 80px;
  }
  .blog-related__texts {
    padding: 10px 12px;
  }
  .blog-related__date {
    font-size: 1.1rem;
  }
  .blog-related__cat {
    font-size: 1rem;
  }
  .blog-related__head {
    font-size: 1.3rem;
    -webkit-line-clamp: 2;
  }
}

/* ---------- サイドバー ---------- */
.blog-side__block {
  background-color: #fff;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
  padding: 24px 22px;
  margin-bottom: 24px;
}

.blog-side__ttl {
  font-size: 1.8rem;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 3px solid #FFE106;
}

.blog-side__posts-item {
  border-bottom: 1px solid #EDEDED;
}

.blog-side__posts-item:last-child {
  border-bottom: none;
}

.blog-side__post {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  color: #212121;
  text-decoration: none;
}

.blog-side__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin-right: 12px;
  overflow: hidden;
  background-color: #EDEDED;
}

.blog-side__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-side__post-texts {
  min-width: 0;
}

.blog-side__date {
  display: block;
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 4px;
}

.blog-side__post-ttl {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-side__post:hover .blog-side__post-ttl {
  text-decoration: underline;
}

.blog-side__cats-item {
  border-bottom: 1px solid #EDEDED;
}

.blog-side__cats-item:last-child {
  border-bottom: none;
}

.blog-side__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-size: 1.4rem;
  color: #212121;
  text-decoration: none;
  transition: color .2s;
}

.blog-side__cat:hover,
.blog-side__cat.is-current {
  color: #E3007F;
}

.blog-side__cat.is-current {
  font-weight: 700;
}

.blog-side__cat-count {
  font-size: 1.1rem;
  min-width: 26px;
  padding: 2px 6px;
  box-sizing: border-box;
  text-align: center;
  background-color: #EDEDED;
  border-radius: 12px;
  color: #212121;
}

.blog-side__cat--guide:after {
  content: "\203A";
  font-size: 1.6rem;
  color: #E3007F;
}

.blog-side__cat--all {
  font-size: 1.3rem;
}

.blog-side__cat--all:after {
  content: "\203A";
  font-size: 1.6rem;
}

/* お問い合わせ（PC は画面に追従） */
.blog-side__cta {
  background-color: #FFE106;
  padding: 26px 22px;
  text-align: center;
}

@media (min-width: 1081px) {
  .blog-side__cta {
    position: -webkit-sticky;
    position: sticky;
    top: 100px; /* スクロール時の固定ヘッダー（約78px）の下 */
  }
}

.blog-side__cta-lead {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 12px;
}

.blog-side__cta-para {
  font-size: 1.3rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 18px;
}

.blog-side__cta-bt {
  display: block;
  position: relative;
  padding: 18px 28px 18px 16px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background-color: #E3007F;
  text-decoration: none;
  transition: opacity .2s;
}

.blog-side__cta-bt:after {
  content: "";
  display: block;
  width: 8px;
  height: 13.4px;
  background: url(../img/arrow_icon_wh.svg) no-repeat center center/cover;
  right: 14px;
  top: calc(50% - 6.7px);
  position: absolute;
}

.blog-side__cta-bt:hover {
  opacity: .75;
}

.blog-side__cta-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #212121;
}

.blog-side__cta-link:hover {
  text-decoration: none;
}

/* 1080px 以下: 新着とカテゴリを2列、お問い合わせは下に */
@media (max-width: 1080px) and (min-width: 641px) {
  .blog-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .blog-side__block {
    width: calc(50% - 12px);
    box-sizing: border-box;
  }
  .blog-side__cta {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .blog-side__block {
    padding: 20px 16px;
    margin-bottom: 16px;
  }
  .blog-side__ttl {
    font-size: 1.6rem;
  }
  .blog-side__cta-lead {
    font-size: 1.7rem;
  }
}

/* ---------- 一覧ページのカテゴリ切り替え ---------- */
.blog-catnav {
  margin-bottom: 30px;
}

.blog-catnav__list {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
}

.blog-catnav__item {
  margin: 5px;
}

.blog-catnav__link {
  display: block;
  padding: 9px 22px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #212121;
  background-color: #fff;
  border: 1px solid #D7D7D7;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}

.blog-catnav__link:hover {
  border-color: #212121;
}

.blog-catnav__link.is-current {
  background-color: #FFE106;
  border-color: #FFE106;
}

@media (max-width: 640px) {
  .blog-catnav {
    margin-bottom: 20px;
  }
  .blog-catnav__link {
    padding: 7px 16px;
    font-size: 1.2rem;
  }
}

/* ---------- 記事の検索窓（サイドバーの一番上・検索結果ページ） ---------- */
.blog-search {
  display: flex;
  margin-bottom: 24px;
}

.blog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  box-sizing: border-box;
  padding: 0 14px;
  font-size: 1.5rem;
  font-family: inherit;
  border: 1px solid #C9C9C9;
  border-right: none;
  border-radius: 0;
  background-color: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.blog-search__input:focus {
  outline: 2px solid #FFE106;
  outline-offset: -2px;
}

.blog-search__bt {
  flex: 0 0 54px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #212121;
  color: #FFE106;
  cursor: pointer;
  transition: opacity .2s;
}

.blog-search__bt:hover {
  opacity: .8;
}

.blog-search-wrap {
  max-width: 520px;
}

.blog-section__count {
  font-size: .6em;
  font-weight: 400;
  margin-left: 6px;
}

@media (max-width: 640px) {
  .blog-search__input,
  .blog-search__bt {
    height: 44px;
  }
  .blog-search__input {
    font-size: 1.6rem; /* iPhone で入力時に拡大されないよう 16px 以上 */
  }
}

/* ---------- グミづくりを知る（タイル） ---------- */
.blog-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.blog-guide__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 6px;
  box-sizing: border-box;
  background-color: #FFE106;
  color: #212121;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.blog-guide__link:hover {
  background-color: #212121;
  color: #FFE106;
}

.blog-guide__label {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1080px) and (min-width: 641px) {
  .blog-side__block--guide {
    width: 100%;
  }
  .blog-guide {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 記事の更新日 ---------- */
.article-details__date--mod {
  color: #777;
}

/* ---------- この記事を書いた人 ---------- */
.blog-author {
  margin-top: 50px;
  border: 1px solid #E2E2E2;
  background-color: #fff;
}

.blog-author__label {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 20px;
  background-color: #FFE106;
}

.blog-author__inner {
  display: flex;
  align-items: flex-start;
  padding: 20px;
}

.blog-author__img {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin-right: 18px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #F4F4F4;
}

.blog-author__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author__img.is-logo img {
  object-fit: contain;
  padding: 18%;
  box-sizing: border-box;
}

.blog-author__texts {
  min-width: 0;
}

.blog-author__role {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 2px;
}

.blog-author__name {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-author__profile {
  font-size: 1.4rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .blog-author {
    margin-top: 32px;
  }
  .blog-author__label {
    font-size: 1.3rem;
    padding: 8px 14px;
  }
  .blog-author__inner {
    padding: 14px;
  }
  .blog-author__img {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    margin-right: 12px;
  }
  .blog-author__name {
    font-size: 1.5rem;
  }
  .blog-author__profile {
    font-size: 1.3rem;
  }
}

/* 「グミづくりを知る」は白い枠で囲まず、タイルを直接並べる */
.blog-side__block--guide {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

.blog-side__block--guide .blog-guide {
  margin-top: 12px;
}

/* ---------- 目次（折りたたみ。<details>） ---------- */
.blog-toc {
  margin: 36px 0 40px;
  background-color: #fff;
  border: 1px solid #E2E2E2;
}

.blog-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  background-color: #FFE106;
}

.blog-toc__head::-webkit-details-marker {
  display: none;
}

.blog-toc__ttl {
  font-size: 1.6rem;
  font-weight: 700;
}

.blog-toc__toggle {
  font-size: 1.3rem;
  font-weight: 700;
}

.blog-toc__toggle:after {
  content: "開く \25BC";
}

.blog-toc[open] .blog-toc__toggle:after {
  content: "閉じる \25B2";
}

.blog-layout .article-details__body .blog-toc__list {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 16px 22px 18px;
}

.blog-layout .article-details__body .blog-toc__item {
  counter-increment: toc;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed #E2E2E2;
}

.blog-layout .article-details__body .blog-toc__item:last-child {
  border-bottom: none;
}

.blog-toc__item > .blog-toc__link:before {
  content: counter(toc) ".";
  display: inline-block;
  min-width: 1.6em;
  color: #E3007F;
}

.blog-layout .article-details__body .blog-toc__sub {
  list-style: none;
  margin: 6px 0 0 1.6em;
  padding: 0;
}

.blog-layout .article-details__body .blog-toc__sub-item {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 3px 0 3px 14px;
  position: relative;
}

.blog-toc__sub-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 6px;
  height: 2px;
  background-color: #C9C9C9;
}

.blog-toc__link {
  color: #212121;
  text-decoration: none;
}

.blog-toc__link:hover {
  text-decoration: underline;
}

/* 目次から飛んだときに固定ヘッダーで見出しが隠れないように */
.blog-layout .article-details__body h2[id],
.blog-layout .article-details__body h3[id] {
  scroll-margin-top: 100px;
}

@media (max-width: 640px) {
  .blog-toc {
    margin: 24px 0 28px;
  }
  .blog-toc__head {
    padding: 11px 14px;
  }
  .blog-toc__ttl {
    font-size: 1.5rem;
  }
  .blog-toc__toggle {
    font-size: 1.2rem;
  }
  .blog-layout .article-details__body .blog-toc__list {
    padding: 10px 14px 12px;
  }
  .blog-layout .article-details__body .blog-toc__item {
    font-size: 1.3rem;
    padding: 6px 0;
  }
  .blog-layout .article-details__body .blog-toc__sub-item {
    font-size: 1.2rem;
  }
  .blog-layout .article-details__body h2[id],
  .blog-layout .article-details__body h3[id] {
    scroll-margin-top: 80px;
  }
}
