@charset "UTF-8";
/*=======================================
お客様インタビュー詳細（single-interview.php）
1カラム・文章＋写真のシンプル構成
=======================================*/

.interview {
  /* ヘッダー逃しは #page_title バー（header.php）が担うため小さめでよい */
  padding-top: 60px;
}

.interview__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 記事ヘッダー */
.interview__company {
  font-size: 119%;
  font-weight: 700;
  color: #014099;
  margin-bottom: 12px;
}
.interview__title {
  font-size: 188%;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin-bottom: 60px;
}

/* 本文（Gutenberg 出力） */
.interview__content {
  line-height: 2;
  margin-bottom: 120px;
}
.interview__content p {
  margin-bottom: 2em;
}
.interview__content h2 {
  font-size: 144%;
  font-weight: 700;
  line-height: 1.5;
  color: #014099;
  border-left: 5px solid #014099;
  padding: 0.3em 0 0.3em 0.6em;
  margin: 3em 0 1.4em;
}
.interview__content h3 {
  font-size: 125%;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px solid #014099;
  padding-bottom: 0.3em;
  margin: 2.6em 0 1.4em;
}
.interview__content h4 {
  font-size: 107%;
  font-weight: 700;
  margin: 2.2em 0 1em;
}
.interview__content img {
  max-width: 100%;
  height: auto;
}
.interview__content figure {
  margin: 3em 0;
}
.interview__content figcaption {
  font-size: 82%;
  color: #777;
  text-align: center;
  margin-top: 0.6em;
}
.interview__content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* カラムブロック: ブロック自体に上下マージンを持たせる（figure と同じリズム）。
   列内の端要素マージンで高さを稼ぐ構造は列間 gap と二重になるため下で除去する */
.interview__content .wp-block-columns {
  margin: 3em 0;
}
/* カラム内の先頭/末尾要素のマージンは列間 gap と加算されて
   二重余白になる（flex gap はマージン相殺しない）ため除去。
   PC でも隣列とのテキスト開始位置ズレ防止になる */
.interview__content .wp-block-column > :first-child {
  margin-top: 0;
}
.interview__content .wp-block-column > :last-child {
  margin-bottom: 0;
}
.interview__content ul,
.interview__content ol {
  margin: 0 0 1.6em;
  padding-left: 1.6em;
}
.interview__content ul li {
  list-style: disc;
  margin-bottom: 0.4em;
}
.interview__content ol li {
  list-style: decimal;
  margin-bottom: 0.4em;
}
.interview__content a {
  color: #014099;
  text-decoration: underline;
}
.interview__content blockquote {
  background: #f7f7f7;
  border-left: 4px solid #ccc;
  padding: 1em 1.4em;
  margin: 2em 0;
}
.interview__content blockquote p:last-child {
  margin-bottom: 0;
}

/* その他のインタビュー記事 */
.interview-related {
  max-width: 1160px;
  margin: 0 auto 100px;
  padding: 80px 20px 0;
  border-top: 1px solid #ddd;
}
.interview-related__title {
  text-align: center;
  font-size: 125%;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
}
.interview-related__title .caveat {
  display: block;
  color: #014099;
  font-size: 138%;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.interview-related__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.interview-related__item a {
  display: block;
  color: #333;
  text-decoration: none;
}
.interview-related__item a:hover {
  opacity: 0.8;
}
.interview-related__thumb {
  margin-bottom: 8px;
}
.interview-related__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 385 / 253;
  object-fit: cover;
}
/* 未公開記事のステータスバッジ（ログイン編集者にのみ表示される） */
.voice-status-badge {
  display: inline-block;
  background: #d33;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 3px;
  margin-top: 8px;
}
.interview-related__company {
  font-size: 82%;
  font-weight: 700;
  color: #014099;
  margin-top: 8px;
  line-height: 1.4;
}
.interview-related__name {
  font-size: 88%;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 4px;
}

/*=======================================
一覧ページ（interview-list.php）
=======================================*/
.interview-list__inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}
.interview-list__desc {
  text-align: center;
  margin-bottom: 40px;
}
.interview-list__empty {
  text-align: center;
  margin-bottom: 40px;
}
.interview-list__inner .pagination {
  margin-top: 40px;
  text-align: center;
}
/* 一覧はゆったり見せる3カラム（詳細下の関連4カラムとは別）*/
.interview-list__inner .interview-related__list {
  grid-template-columns: repeat(3, 1fr);
}
/* 一覧はカードが大きいぶん文字も大きく */
.interview-list__inner .interview-related__company {
  font-size: 100%;
  margin-top: 12px;
}
.interview-list__inner .interview-related__name {
  font-size: 113%;
  margin-top: 6px;
}

/* 一覧へ戻る */
.interview__back {
  text-align: center;
  margin-bottom: 80px;
}
.interview__back a {
  display: inline-block;
  background: #014099;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 50px;
  border-radius: 100px;
  transition: opacity 0.3s;
}
.interview__back a:hover {
  opacity: 0.8;
}

/*=======================================
SP（column.css と同じ 600px 境界）
=======================================*/
@media only screen and (max-width: 600px) {
  .interview {
    padding-top: 40px;
  }
  .interview__inner {
    padding: 0 16px;
  }
  .interview__title {
    font-size: 138%;
    margin-bottom: 40px;
  }
  .interview__content {
    margin-bottom: 60px;
  }
  /* SP ではブロック間の余白を圧縮（PC の広め設定が em 基準でそのまま効くと間延びする） */
  .interview__content p {
    margin-bottom: 1.6em;
  }
  .interview__content h2 {
    margin: 2em 0 1em;
  }
  .interview__content h3 {
    margin: 1.8em 0 1em;
  }
  .interview__content h4 {
    margin: 1.6em 0 0.8em;
  }
  .interview__content figure {
    margin: 1.8em 0;
  }
  /* カラムブロックが縦積みになった時の列間 gap（WP 既定 2em=32px）を圧縮 */
  .interview__content .wp-block-columns {
    gap: 1.5em;
    margin: 1.8em 0;
  }
  .interview-related {
    padding: 40px 16px 0;
    margin-bottom: 50px;
  }
  .interview-related__list,
  .interview-list__inner .interview-related__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .interview-list__inner .interview-related__company {
    font-size: 88%;
  }
  .interview-list__inner .interview-related__name {
    font-size: 94%;
  }
  .interview__back a {
    padding: 12px 40px;
  }
}
