/* =========================================
   ブログ記事デザイン改善 2026-07
   目次 / 著者表示 / CTA / 強調ボックス / シェアボタン追加
   ========================================= */

/* 著者表示（日付の右に並べる） */
.p-single__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #cfcfcf;
  border-left: 1px solid #cfcfcf;
  padding: 0.1em 0.8em;
  margin-left: 0.6em;
  font-weight: bold;
}
.p-single__author-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

/* 目次(TOC) */
.p-single__toc {
  background-color: #f8f8f8;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 40px 0;
}
.p-single__toc-ttl {
  font-size: 1.125em;
  font-weight: bold;
  margin-bottom: 0.8em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid #eea900;
}
.p-single__toc-list {
  counter-reset: toc-counter;
}
.p-single__toc-list > li {
  counter-increment: toc-counter;
  margin-top: 0.6em;
  line-height: 1.5;
}
.p-single__toc-list > li::before {
  content: counter(toc-counter) ".";
  font-weight: bold;
  color: #eea900;
  margin-right: 0.5em;
}
.p-single__toc-list > li.is-sub {
  margin-left: 1.6em;
  font-size: 0.9em;
}
.p-single__toc-list > li.is-sub::before {
  content: "-";
  color: #cfcfcf;
}
.p-single__toc-list a {
  color: #4e4e4e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.p-single__toc-list a:hover {
  color: #eea900;
}

/* 本文中の強調ボックス（block editorの「追加CSSクラス」で使用） */
.p-content-box--point {
  background-color: #fffaf0;
  border: 1px solid #eea900;
  border-radius: 8px;
  padding: 1.5em;
  position: relative;
}
.p-content-box--point::before {
  content: "POINT";
  display: inline-block;
  background-color: #eea900;
  color: #fff;
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 0.05em;
  padding: 0.2em 0.8em;
  border-radius: 4px;
  margin-bottom: 0.8em;
}

.p-content-box--note {
  background-color: #f3f3f3;
  border-left: 4px solid #cfcfcf;
  padding: 1.2em 1.5em;
  font-size: 0.95em;
  color: #4e4e4e;
}

/* 記事末尾CTA */
.p-single__cta {
  position: relative;
  margin-top: 60px;
  padding: 40px 48px;
  background: linear-gradient(135deg, #fff8ea 0%, #fff3d9 100%);
  border: 1px solid #eea900;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(238, 169, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}
.p-single__cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 48px;
  height: 4px;
  background: #eea900;
  border-radius: 0 0 4px 4px;
}
.p-single__cta-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(238, 169, 0, 0.2);
}
.p-single__cta-body {
  flex-grow: 1;
  min-width: 0;
}
.p-single__cta-ttl {
  font-size: 1.25em;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 0.5em;
  color: #3a2c00;
}
.p-single__cta-text {
  font-size: 0.9em;
  line-height: 1.7;
  color: #6b5a2e;
}
.p-single__cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 16px 32px;
  background-color: #c98600;
  color: #fff;
  font-weight: bold;
  font-size: 0.95em;
  border-radius: 100vh;
  box-shadow: 0 4px 12px rgba(201, 134, 0, 0.35);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.p-single__cta-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.p-single__cta-btn:hover {
  background-color: #a86f00;
  transform: translateY(-2px);
}
.p-single__cta-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}
.p-single__cta-note {
  font-size: 0.75em;
  color: #a8a8a8;
  text-align: center;
}
@media screen and (max-width: 959px) {
  .p-single__cta {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .p-single__cta-action {
    width: 100%;
  }
  .p-single__cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   一覧ページ・最新記事カード刷新（2026-07-03追加）
   c-news-list.--blog は archive-blog.php と
   single-blog.php の「最新記事」で共有クラス。
   ここを直せば両方に自動反映される。
   ========================================= */
.c-news-list.--blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  border-top: none;
  margin-top: 32px;
}
@media screen and (max-width: 959px) {
  .c-news-list.--blog {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
}
@media screen and (max-width: 599px) {
  .c-news-list.--blog {
    grid-template-columns: 1fr;
  }
}
.c-news-list.--blog .c-news-list__item {
  border-bottom: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.c-news-list.--blog .c-news-list__item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.c-news-list.--blog .c-news-list__item a {
  display: block;
  padding: 0;
}
.c-news-list.--blog .c-news-list__item a:hover span {
  text-decoration: none;
}
.c-news-list.--blog .c-news-list__item figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}
.c-news-list.--blog .c-news-list__item figure img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s ease;
}
.c-news-list.--blog .c-news-list__item a:hover figure img {
  transform: scale(1.05);
}
.c-news-list.--blog .c-news-list__item .p-single__header {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 16px 20px 0;
}
.c-news-list.--blog .c-news-list__item .p-single__catLink {
  display: inline-block;
  background-color: #eea900;
  color: #4e2e00;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.3em 0.9em;
  border-radius: 100vh;
}
.c-news-list.--blog .c-news-list__item time {
  font-size: 0.75rem;
  font-weight: normal;
  color: #a8a8a8;
  min-width: 0;
}
.c-news-list.--blog .c-news-list__title {
  font-size: 1.05em;
  font-weight: bold;
  line-height: 1.5;
  color: #414141;
  margin: 0.6em 20px 0.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-news-list.--blog .c-news-list__exerpt {
  font-size: 0.85em;
  color: #7a7a7a;
  line-height: 1.7;
  margin: 0 20px 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* インタビュイー・プロフィールカード（本文中で使用） */
.p-profile-card {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 24px 0;
  padding: 32px 32px 32px 40px;
  background-color: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.p-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #eea900, #c98600);
}
.p-profile-card__photo {
  flex-shrink: 0;
  width: 220px;
  min-height: 260px;
  border-radius: 12px 24px 12px 12px;
  overflow: hidden;
}
.p-profile-card__photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  -o-object-fit: cover;
     object-fit: cover;
  object-position: center top;
  display: block;
}
.p-profile-card__body {
  flex-grow: 1;
  min-width: 0;
}
.p-profile-card__label {
  display: inline-block;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #eea900;
  border: 1px solid #eea900;
  border-radius: 4px;
  padding: 0.15em 0.7em;
  margin-bottom: 0.6em;
}
.p-profile-card__name {
  font-size: 1.6em;
  font-weight: bold;
  color: #3a2c00;
  margin-bottom: 0.15em;
  line-height: 1.4;
}
.p-profile-card__name-en {
  font-size: 0.55em;
  font-weight: normal;
  color: #a8a8a8;
  margin-left: 0.7em;
}
.p-profile-card__role {
  font-size: 0.9em;
  font-weight: bold;
  color: #6b5a2e;
  margin-bottom: 0.6em;
}
.p-profile-card__meta {
  font-size: 0.85em;
  color: #a8a8a8;
  padding-bottom: 0.9em;
  margin-bottom: 0.9em;
  border-bottom: 1px solid #ececec;
}
.p-profile-card__bio {
  font-size: 0.9em;
  line-height: 1.9;
  color: #4e4e4e;
}
.p-profile-card__link {
  margin-top: 0.8em;
  font-size: 0.9em;
}
.p-profile-card__link a {
  color: #4e4e4e;
  text-decoration: underline;
  text-decoration-color: #c98600;
  text-underline-offset: 2px;
}
.p-profile-card__link a:hover {
  color: #c98600;
}
@media screen and (max-width: 959px) {
  .p-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }
  .p-profile-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #eea900, #c98600);
  }
  .p-profile-card__photo {
    width: 160px;
    min-height: 160px;
  }
  .p-profile-card__photo img {
    min-height: 160px;
  }
  .p-profile-card__meta,
  .p-profile-card__label {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================
   ケーススタディ型ワーク詳細（single-work.php）
   client / agency / category スペックパネル + リード文
   ========================================= */
.p-work-spec {
  position: relative;
  margin: 32px 0;
  padding: 28px 32px 28px 40px;
  background-color: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.p-work-spec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #eea900, #c98600);
}
.p-work-spec__label {
  display: inline-block;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #eea900;
  border: 1px solid #eea900;
  border-radius: 4px;
  padding: 0.15em 0.7em;
  margin-bottom: 1em;
}
.p-work-spec__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0;
}
.p-work-spec__row {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-width: 140px;
}
.p-work-spec__row dt {
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #a8a8a8;
}
.p-work-spec__row dd {
  font-size: 1em;
  font-weight: bold;
  color: #3a2c00;
  margin: 0;
}
@media screen and (max-width: 959px) {
  .p-work-spec {
    padding: 24px 20px 24px 28px;
  }
  .p-work-spec__list {
    flex-direction: column;
    gap: 14px;
  }
}

.p-work-overview {
  position: relative;
  margin: 32px 0 40px;
  padding: 0.2em 0 0.2em 24px;
  border-left: 2px solid #d8d8d8;
  font-size: 1em;
  line-height: 1.9;
  color: #3a2c00;
}
@media screen and (max-width: 959px) {
  .p-work-overview {
    margin: 24px 0 32px;
    padding-left: 18px;
    font-size: 1em;
    line-height: 1.85;
  }
}

/* クライアント名バッジ（一覧カード・最新記事カード共通） */
.c-news-list.--blog .c-news-list__client {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  color: #6b5a2e;
  background-color: #f7ecd2;
  padding: 0.25em 0.8em;
  border-radius: 100vh;
  margin: 0.6em 20px 0;
}
@media screen and (max-width: 959px) {
  .c-news-list.--blog .c-news-list__client {
    font-size: 0.65rem;
    margin: 0.5em 16px 0;
  }
}

/* シェアボタン（Facebook / X / LINE） */
.p-single-share__item a {
  display: inline-flex;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 9px;
}
.p-single-share__icon {
  width: 43px;
  height: 43px;
  display: block;
  border-radius: 9px;
}
.p-single-share__item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 959px) {
  .p-single-share {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

/* =========================================
   個別記事ページ大幅刷新（2026-07-03）
   アイキャッチ / ヘッダー / タイトル / 見出し階層
   ========================================= */

/* --- 1. アイキャッチを「記事のヒーロー」に --- */
.blog-detail__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.blog-detail__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.blog-detail__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  font-size: 0.8em;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
@media screen and (max-width: 959px) {
  .blog-detail__image {
    border-radius: 10px;
  }
}

/* --- 2. ヘッダー（カテゴリ/日付/著者）をピルバッジで一覧ページと統一 --- */
.p-single > .p-single__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.p-single > .p-single__header .p-single__catLink {
  display: inline-block;
  background-color: #eea900;
  color: #4e2e00;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding: 0.4em 1.1em;
  border-radius: 100vh;
}
@media screen and (max-width: 959px) {
  .p-single > .p-single__header {
    gap: 8px;
    margin-bottom: 20px;
  }
}

/* --- 3. タイトルにアクセントバーで視線の起点を作る --- */
.p-single__ttl-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 40px;
}
.p-single__ttl-accent {
  flex-shrink: 0;
  width: 6px;
  min-height: 1.3em;
  align-self: stretch;
  border-radius: 100vh;
  background: linear-gradient(180deg, #eea900 0%, #f5cf6b 100%);
}
.p-single__ttl-wrap .p-single__ttl {
  margin: 0;
}
@media screen and (max-width: 959px) {
  .p-single__ttl-wrap {
    gap: 10px;
    margin-bottom: 28px;
  }
  .p-single__ttl-accent {
    width: 4px;
  }
}

/* --- 4-0. 本文の行間・段落間隔をタイトに調整（bodyのline-height:2.125が縦にスカスカ見えるため） --- */
.p-single__content {
  line-height: 1.9;
}
.p-single__content > * + * {
  margin-top: 0.8em;
}
@media screen and (max-width: 959px) {
  .p-single__content {
    line-height: 1.85;
  }
}

/* --- 4. h2/h3の視覚階層強化：記事の骨格を一目で --- */
.p-single__content h2 {
  position: relative;
  margin-top: 3em;
  padding: 0.7em 1em 0.7em 1.2em;
  background-color: #f8f8f8;
  border-left: 6px solid #eea900;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}
.p-single__content > h2:first-child {
  margin-top: 0;
}
.p-single__content h3 {
  position: relative;
  margin-top: 2.2em;
  padding-left: 1.1em;
  line-height: 1.5;
}
.p-single__content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1em;
  background-color: #eea900;
  border-radius: 100vh;
}
@media screen and (max-width: 959px) {
  .p-single__content h2 {
    margin-top: 2.4em;
    padding: 0.6em 0.8em 0.6em 1em;
    border-left-width: 4px;
  }
  .p-single__content h3 {
    margin-top: 1.8em;
  }
}
