@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* コラム記事（single.php） */
#main .tg-page-hero-column > p:first-child { font-family: "Montserrat", sans-serif; }

.single-post .article { max-width: 1184px; margin: 0 auto; padding-top: 94px; }
.single-post .article-header { display: flex; flex-direction: column; margin: 0; }
.single-post .date-tags { order: 1; margin: 0; font-size: 14px; line-height: 1; letter-spacing: .05em; color: #000; text-align: left; }
.single-post .date-tags .fa, .single-post .date-tags .post-date:has(~ .post-update) { display: none; }
.single-post .article-header .entry-title { order: 2; margin: 36px 0 0; padding: 0; font-size: 36px; font-weight: 500; line-height: 1.6; letter-spacing: .05em; color: #000; }
.tg-share { order: 3; display: flex; gap: 24px; margin-top: 36px; }
.tg-share a { display: block; width: 24px; height: 24px; }
.tg-share svg { display: block; width: 100%; height: 100%; }
.single-post .eye-catch-wrap { order: 4; margin: 36px 0 0; }
.single-post .eye-catch { display: block; width: 100%; margin: 0; }
.single-post .eye-catch img { width: 100%; height: auto; }
.single-post .eye-catch .cat-label { display: none; }
.single-post .entry-content { margin-top: 36px; }

/* 本文 */
.single-post .entry-content > p { margin: 0 0 14px; font-size: 20px; line-height: 1.6; color: #333; }
.single-post .entry-content > p { font-family: "Noto Sans JP", sans-serif; font-weight: 500; }
.single-post .article .entry-content h2 { margin: 0 0 24px; padding: 0; border: none; background: none; font-size: 24px; font-weight: 700; line-height: 1.6; color: #fd8061; }
.single-post .article .entry-content h3 { margin: 0 0 24px; padding: 0; border: none; background: none; font-size: 20px; font-weight: 700; line-height: 1.6; color: #cc6600; }

/* 目次 */
.single-post .toc { display: block; width: 100%; margin: 0 0 24px; padding: 0; border: none; background: none; font-size: 16px; }
.single-post .toc-title { display: block; margin: 0 0 24px; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.6; color: #fd8061; text-align: left; }
.single-post .toc-checkbox + .toc-title::after, .single-post .toc-checkbox:checked + .toc-title::after { content: none; }
.single-post .toc-content { padding: 24px 24px 8px; background: #f5f5f5; border-radius: 2px; }
.single-post .toc-list, .single-post .toc-list ol { margin: 0; padding-left: 32px; list-style: none; }
.single-post .toc-list li { margin: 0 0 16px; list-style: none; }
.single-post .toc-list li::before { content: none; }
.single-post .toc-list ol { margin-top: 16px; }
.single-post .toc-list a { font-size: 16px; font-weight: 500; line-height: 1.2; color: #616161; text-decoration: none; }

/* 吹き出し: アイコンを小さく、吹き出しは余白・行間を広げて淡い色に */
.article .speech-wrap { margin-bottom: 32px; }
.article .speech-person { width: 72px; min-width: 0; flex-shrink: 0; }
.article .speech-icon-image { border: 1px solid #e5e5e5; }
.article .speech-name { margin-top: 6px; font-size: 12px; line-height: 1.4; color: #666; }
.article .speech-balloon { max-width: 640px; padding: 16px 22px; border-radius: 12px; font-size: 16px; line-height: 1.8; letter-spacing: .03em; }
.article .speech-balloon p { font-size: inherit; line-height: inherit; }
.article .sbs-togetsu.sbp-l:not(.not-nested-style) { --cocoon-custom-background-color: #f0f2f3; --cocoon-custom-border-color: #f0f2f3; }
.article .sbs-togetsu.sbp-r:not(.not-nested-style) { --cocoon-custom-background-color: #e6f0f5; --cocoon-custom-border-color: #e6f0f5; }

/* 本文最後のバナーは上をあける、記事下の著者名は出さない */
.single-post .entry-content > .wp-block-image:is(:last-child, :has(+ p:last-child)) { margin-top: 56px; }
.single-post .author-info { display: none; }

/* おすすめ記事（tmp/related-entries.php） */
.tg-recommend { margin: 108px 0 0; padding: 0 0 76px; text-align: center; }
.article .tg-recommend .tg-recommend-heading, .tg-recommend .tg-recommend-heading { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 0; border: none; background: none; font-family: "Noto Sans JP", sans-serif; font-size: 36px; font-weight: 700; line-height: 1.4; color: #333; }
.tg-recommend-icon { width: 28px; height: 28px; fill: #ff3535; }
.tg-recommend .tg-recommend-sub { margin: 10px 0 0; font-family: "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.4; color: #333; }
.tg-recommend-list { display: flex; justify-content: center; gap: 20px; margin-top: 48px; text-align: left; }
/* カード: コラム一覧と同じ白カード＋影、画像のない記事はベージュ地にロゴ */
.tg-recommend-card { width: 330px; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 20px rgba(0,0,0,.1); text-decoration: none; color: #333; transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s cubic-bezier(.22, 1, .36, 1); }
.tg-recommend-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,.14); color: #333; }
.tg-recommend-thumb { aspect-ratio: 1158 / 540; overflow: hidden; border-radius: 8px; background: #f3f1ee; }
.tg-recommend-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.tg-recommend-card:hover .tg-recommend-thumb img { transform: scale(1.05); }
.tg-recommend-thumb.is-empty { display: flex; align-items: center; justify-content: center; }
.tg-recommend-thumb.is-empty::before { content: ""; width: 44px; height: 44px; background: url(/wp-content/uploads/2026/09/togetsu_logo.webp) center / contain no-repeat; opacity: .3; }
.tg-recommend .tg-recommend-date { margin: 20px 0 0; font-family: "Montserrat", sans-serif; font-size: 14px; line-height: 1; color: #666; }
.tg-recommend .tg-recommend-title { margin: 10px 0 0; font-family: "Montserrat", "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.6; color: #333; }
.tg-recommend-more { display: inline-flex; align-items: center; justify-content: center; width: 192px; height: 56px; margin-top: 71px; border: 2px solid #3f3f3f; border-radius: 12px; font-family: "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 500; color: #333; text-decoration: none; }
.tg-recommend-more:hover { opacity: .7; color: #333; }

@media screen and (max-width: 834px) {
  .tg-recommend-list { flex-direction: column; align-items: center; gap: 30px; }
  .tg-recommend-card { display: flex; align-items: center; gap: 20px; width: min(100%, 619px); }
  .tg-recommend-thumb { flex: 0 0 40%; }
  .tg-recommend .tg-recommend-date { margin-top: 0; }
}

@media screen and (max-width: 480px) {
  .single-post .article { padding-top: 48px; }
  .single-post .date-tags { font-size: 12px; }
  .single-post .article-header .entry-title { margin-top: 24px; font-size: 20px; }
  .single-post .entry-content > p { font-size: 14px; }
  .single-post .article .entry-content h2, .single-post .toc-title { font-size: 18px; }
  .article .speech-person { width: 48px; }
  .article .speech-name { font-size: 11px; }
  .article .speech-wrap .speech-balloon { padding: 12px 16px; font-size: 15px; }
  .tg-recommend { margin-top: 80px; padding-bottom: 60px; }
  .article .tg-recommend .tg-recommend-heading, .tg-recommend .tg-recommend-heading { font-size: 28px; }
  .tg-recommend-list { padding: 0 6px; }
  .tg-recommend-card { gap: 14px; width: 100%; padding: 14px; }
  .tg-recommend-thumb { flex-basis: 112px; }
  .tg-recommend .tg-recommend-date { font-size: 12px; }
  .tg-recommend .tg-recommend-title { margin-top: 6px; font-family: "Noto Sans JP", sans-serif; font-size: 14px; font-weight: 500; line-height: 1.5; }
  .tg-recommend-more { width: 196px; height: 54px; margin-top: 48px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-recommend-card, .tg-recommend-thumb img { transition: none; }
}

/* 吹き出し関連 */
/* ===== PC：アイコンと吹き出しを横並び ===== */

.article .speech-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

/* 右の話者 */
.article .speech-wrap.sbp-r {
  flex-direction: row-reverse;
}

/* アイコンと名前 */
.article .speech-wrap > .speech-person {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  min-width: 0;
}

.article .speech-person > .speech-icon {
  width: 100%;
  margin: 0;
}

.article .speech-icon-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.article .speech-person > .speech-name {
  margin: 6px 0 0;
  text-align: center;
}

/* 吹き出し本体 */
.article .speech-wrap > .speech-balloon {
  position: relative;
  flex: 1;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.article .speech-wrap.sbp-l > .speech-balloon {
  margin-left: 20px;
}

.article .speech-wrap.sbp-r > .speech-balloon {
  margin-right: 20px;
}

/* PC：左の話者のしっぽ */
.article .speech-wrap > .speech-balloon::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: auto;
  left: -12px;
  right: auto;
  width: 0;
  height: 0;
  border: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid var(--cocoon-custom-background-color);
  background: transparent;
  border-radius: 0;
}

/* PC：右の話者のしっぽ */
.article .speech-wrap.sbp-r > .speech-balloon::before {
  left: auto;
  right: -12px;
  border-right: 0;
  border-left: 12px solid var(--cocoon-custom-background-color);
}

.article .speech-wrap > .speech-balloon::after {
  display: none;
}


/* ===== スマホ：アイコンの下に吹き出し ===== */

@media screen and (max-width: 600px) {
  .article .speech-wrap,
  .article .speech-wrap.sbp-r {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  /* アイコンと名前を横並びに */
  .article .speech-wrap > .speech-person {
    display: flex;
    flex: none;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: auto;
  }

  /* 右の話者：名前 → アイコン */
  .article .speech-wrap.sbp-r > .speech-person {
    flex-direction: row-reverse;
    align-self: flex-end;
  }

  .article .speech-person > .speech-icon {
    flex: 0 0 50px;
    width: 50px;
    margin: 0;
  }

  .article .speech-person > .speech-name {
    margin: 0;
  }

  /* 吹き出しを本文幅いっぱいに */
  .article .speech-wrap > .speech-balloon {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* 左の話者：左端で上向き */
  .article .speech-wrap.sbp-l > .speech-balloon::before {
    top: -12px;
    left: 18px;
    right: auto;
    border: 0;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--cocoon-custom-background-color);
  }

  /* 右の話者：右端で上向き */
  .article .speech-wrap.sbp-r > .speech-balloon::before {
    top: -12px;
    left: auto;
    right: 18px;
    border: 0;
    border-left: 12px solid transparent;
    border-bottom: 12px solid var(--cocoon-custom-background-color);
  }
}

@media screen and (min-width: 601px) {
  /* 左右にアイコン72px＋余白20pxを確保 */
  .article .speech-wrap {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    column-gap: 20px;
    align-items: start;
  }

  /* アイコン */
  .article .speech-wrap > .speech-person {
    grid-row: 1;
  }

  .article .speech-wrap.sbp-l > .speech-person {
    grid-column: 1;
  }

  .article .speech-wrap.sbp-r > .speech-person {
    grid-column: 3;
  }

  /* 吹き出しは左右共通の中央列 */
  .article .speech-wrap.sbp-l > .speech-balloon,
  .article .speech-wrap.sbp-r > .speech-balloon {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
}

/* ========================================
   監修者2名表示
   対象：/column/udrascuy/ のみ
======================================== */

/* 監修者全体のレイアウト */
.togetsu-supervisors {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

/* 各監修者ボックス */
.togetsu-supervisors .togetsu-supervisor-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
}