/*
 * 詳細ページ本文（.infoTextArea）の最低限の整形のみ。
 * 旧サイトのCSS（interview.css）はマークアップが分割前提なので、
 * 素のWP本文（p, h2, figure, img, ul, hr）を読みやすくする程度に補う。
 * 派手な装飾はしない（旧サイトの見た目はシンプルなボールド見出し）。
 */

/* 詳細ページ全体のインナー幅 */
.interview-detail {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2vw;
  box-sizing: border-box;
}
.interview-detail .infoDetailArea,
.interview-detail .infoPointArea,
.interview-detail .infoTextArea,
.interview-detail .btnArea {
  max-width: 100%;
}

.infoTextArea > p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1em;
}

.infoTextArea h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 700;
  line-height: 1.5;
}

.infoTextArea h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 700;
}

.infoTextArea hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1.5em 0;
}

.infoTextArea figure {
  margin: 1.5em 0;
  text-align: center;
}

.infoTextArea figure img,
.infoTextArea img {
  max-width: 100%;
  height: auto;
}

.infoTextArea ul,
.infoTextArea ol {
  padding-left: 1.8em;
  margin-bottom: 1em;
}

.infoTextArea ul li {
  list-style: disc;
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.infoTextArea ol li {
  list-style: decimal;
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* パンくず */
.breadCrumbArea {
  max-width: 1024px;
  margin: 1.5vw auto;
  padding: 0 1vw;
}

.breadCrumb {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
  list-style: none;
  padding: 0;
}

.breadCrumb li {
  display: flex;
  align-items: center;
}

.breadCrumb li + li::before {
  content: "»";
  margin: 0 0.5em;
  color: #999;
}

.breadCrumb li a {
  color: #E83428;
}

/* 業種タグ表示の調整（旧サイトCSSは a 前提なので span にも当てる） */
.infoDetailArea .tagSpace .tagList span {
  display: inline-block;
  color: #3b4043;
  font-size: calc(0.35vw + 0.8em);
  margin-right: 1vw;
}

/* 関連事例セクション */
.related-interviews {
  margin-top: 4vw;
  padding-bottom: 4vw;
}

/* フィルタリンク active 状態 */
.tab_content .tabIn a.filter-link.active {
  background-color: #E83428;
  color: #fff;
  border-color: #E83428;
}

/* カード画像: 外枠の角丸に合わせる（interview.css 866行の border-radius:8rem / padding:1em を打ち消す） */
.infoList li dt img {
  padding: 0 !important;
  border-radius: 0 !important;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
}

/* ホバーオーバーレイは不要 → 完全に消す */
.infoList li dt:before,
.infoList li dt:hover:before {
  content: none !important;
  display: none !important;
}

/* カード全体のホバーで軽く浮かせる */
.infoList li {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden; /* 内部の画像が角丸からはみ出さないように */
}
.infoList li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 画像と外枠の角丸を完全に揃える: 画像の上角丸 15px、カード下も白で揃える */
.infoList li dt {
  margin: 0;
}
.infoList li dt img {
  display: block;
}

/* カード内の文字階層整理 */
.infoList .inInfo {
  padding: 1.2em 1em !important;
}
.infoList .infoCom {
  margin-bottom: 1em !important;
  align-items: center;
}
.infoList .infoCom .inImg {
  flex: 0 0 30%;
  max-width: 80px;
}
.infoList .infoCom .inImg img {
  width: 100%;
  height: auto;
}
.infoList .infoCom .inImg + div {
  flex: 1;
  padding-left: 0.8em;
}
.infoList .infoCom .inTxt1 {
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700;
  margin-bottom: 0.3em !important;
  color: #222;
}
.infoList .infoCom .inTxt2 {
  font-size: 12px !important;
  color: #888;
  margin: 0 !important;
}

/* 説明文（リード）の読みやすさ */
.infoList .inInfo .inExp {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #555 !important;
  letter-spacing: 0.5px !important;
  margin-top: 0.5em;
}

/* inTitle（会社名と重複するので非表示） */
.infoList .inInfo .inTitle {
  display: none !important;
}

/* 絞り込み後の右マージン制御は JS が visible 要素の連番で行うため、
   nth-child による margin-right:0 を上書きできるよう優先度を上げる */
.infoList li {
  margin-right: 2%;
}
.infoList li:nth-child(3n) {
  /* デフォルト（全件表示時）は3列目右マージン0。JSが絞り込み時に上書きする */
  margin-right: 0;
}
