/* =========================================================
   事例ページ（/unit/*.html）
   Figma: MQeNLOX7gC8gBisUi3lF21 node 33:2315
   - 1280px以上   : 本文720px＋サイドバー352px（2カラム、サイドバーは追従）
   - 767〜1279px  : 1カラム（左右40px）
   - 480px未満    : 1カラム（左右16px）
   ========================================================= */

/* style.css の html, body { overflow-x: hidden } があると position: sticky が効かないため、
   対応ブラウザでは clip に置き換える（clip はスクロールコンテナを作らない） */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.case_page {
  color: #222;
}
.case_page a:not(.btn) {
  color: inherit;
}

/* ---------- レイアウト ---------- */
.case_layout {
  padding: 40px 16px 96px;
}
.case_main {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}
.case_side {
  display: none;
}
/* 1カラム時だけ表示するブロック（企業カード・バナー） */
.case_only_narrow {
  display: block;
}

@media screen and (min-width: 480px) {
  .case_layout {
    padding: 64px 40px 96px;
  }
  .case_main {
    gap: 48px;
  }
}
@media screen and (min-width: 767px) {
  .case_layout {
    /* 固定ヘッダー（81px）の分を足す */
    padding-top: 145px;
  }
}
@media screen and (min-width: 1280px) {
  .case_layout {
    display: grid;
    grid-template-columns: 720px 352px;
    gap: 48px;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: start;
    align-items: start;
    padding: 145px 0 96px;
  }
  /* サイドバーは本文と同じ高さまで伸ばし、その中でバナー（.case_cta）だけを追従させる。
     サイドバー全体（約1045px）を追従させると、高さ1080px以下の画面でお問い合わせボタンが切れるため */
  .case_side {
    -webkit-align-self: stretch;
    align-self: stretch;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 24px;
  }
  .case_side .case_cta {
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
  }
  .case_only_narrow {
    display: none;
  }
}

/* ---------- 共通：小見出し（英字＋日本語） ---------- */
.case_eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #c70202;
  line-height: normal;
}
.case_heading {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

/* ---------- タグ ---------- */
.case_chips {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
}
.case_chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f6f6f6;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

/* ---------- 記事タイトル ---------- */
.case_head h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}
.case_head .case_head_sub {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}
@media screen and (min-width: 480px) {
  .case_head h1 {
    font-size: 32px;
  }
}

/* ---------- メイン画像 ---------- */
.case_kv img {
  height: auto;
  border-radius: 8px;
}

/* ---------- 導入のポイント ---------- */
.case_point {
  padding: 32px 24px 36px;
  border: 1px solid #c70202;
  border-top-width: 4px;
  border-radius: 4px;
}
.case_point_list {
  margin-top: 24px;
}
.case_point_list li {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid #e0e0e0;
}
.case_point_list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.case_point_list li:last-child {
  padding-bottom: 0;
}
.case_point_num {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  font-family: "Jost", sans-serif;
  font-size: 28px;
  line-height: normal;
  color: #c70202;
}
.case_point_title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.case_point_txt {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.8;
}
.case_point_note {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}
@media screen and (min-width: 480px) {
  .case_point {
    padding: 32px 36px 36px;
  }
}

/* ---------- 目次 ---------- */
.case_toc {
  padding: 28px 24px 32px;
  border-radius: 4px;
  background: #f6f6f6;
}
.case_toc_title {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}
.case_toc ol {
  list-style: none;
  margin-top: 14px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 14px;
}
.case_toc li {
  position: relative;
  padding-left: 17px;
  font-size: 15px;
  line-height: 1.7;
}
.case_toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.85em - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c70202;
}
.case_toc a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case_toc a:hover {
  color: #c70202;
}
@media screen and (min-width: 480px) {
  .case_toc {
    padding: 28px 36px 32px;
  }
}

/* ---------- 本文（リード・回答） ---------- */
.case_body {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 24px;
}
.case_body p {
  font-size: 16px;
  line-height: 2;
}
.case_body .case_speaker {
  font-weight: 700;
}

/* ページ内リンクの着地点が固定ヘッダーに隠れないように */
.case_page [id] {
  scroll-margin-top: 24px;
}
@media screen and (min-width: 767px) {
  .case_page [id] {
    scroll-margin-top: 105px;
  }
}

/* ---------- Q&A ---------- */
.case_qa_q {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  color: #c70202;
}
.case_qa_q::before {
  content: "";
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  margin-top: 0.8em;
  background: #c70202;
}

/* ---------- インタビューを終えて ---------- */
.case_thanks {
  padding: 32px 24px;
  background: #f6f6f6;
}
.case_thanks_txt {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
}
.case_thanks_red {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #c70202;
}
@media screen and (min-width: 480px) {
  .case_thanks {
    padding: 32px 36px;
  }
}

/* ---------- インタビュアー紹介 ---------- */
.case_interviewer {
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.case_interviewer_head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 24px;
}
.case_interviewer_img {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.case_interviewer .case_eyebrow {
  font-size: 12px;
}
.case_interviewer_name {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}
.case_interviewer_position {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}
.case_interviewer_txt {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 企業情報（記事最下部） ---------- */
.case_profile .case_heading {
  font-size: 22px;
}
.case_profile_inner {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.case_profile_logo {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 200px;
  height: 120px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.case_profile_logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case_profile_name {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}
.case_profile_txt p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
}
@media screen and (min-width: 767px) {
  .case_profile_inner {
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 28px;
  }
  .case_profile_body {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
  }
}

/* ---------- 企業カード（サイドバー／1カラム時は本文中） ---------- */
.case_company {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}
.case_company_logo {
  width: 140px;
  height: 77px;
  object-fit: contain;
  object-position: left center;
}
.case_company_name {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
.case_company_rows {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 16px;
}
.case_company_rows > div {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 12px;
}
.case_company_rows dt {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 84px;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}
.case_company_rows dd {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.7;
}
.case_page .case_company_rows dd a {
  color: #c70202;
  text-decoration: underline;
}

/* ---------- バナー（資料請求・お問い合わせ） ---------- */
.case_cta {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 40px;
}
.case_cta_card {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.case_cta_card .btn {
  width: 100%;
}
/* 資料請求 */
.case_cta_dl {
  gap: 16px;
  padding: 24px;
}
.case_cta_dl_head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 16px;
}
.case_cta_dl_thumb {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 114px;
  height: 64px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.case_cta_dl_lead {
  font-size: 13px;
  font-weight: 700;
  color: #c70303;
  line-height: normal;
}
.case_cta_dl_title {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  letter-spacing: 0;
}
.case_cta_dl_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #efefef;
}
.case_cta_dl_list li {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  white-space: nowrap;
}
.case_cta_dl_list img {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.case_cta_dl_action {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 14px;
}
.case_cta_balloon {
  position: relative;
  padding: 10px;
  border-radius: 8px;
  background: #fedddd;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #c70303;
}
.case_cta_balloon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 13.33%;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #fedddd;
  border-left: 5px solid transparent;
}
/* お問い合わせ */
.case_cta_contact {
  gap: 12px;
  padding: 28px;
}
.case_cta_contact_lead {
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  color: #c70202;
}
.case_cta_contact_title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}
.case_cta_contact_txt {
  font-size: 13px;
  line-height: 1.7;
}
/* 1カラム時（記事の最後に置く） */
.case_cta--narrow {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- 関連記事（あなたにおすすめの事例） ---------- */
.case_related {
  padding: 96px 16px;
  background: #f6f6f6;
  overflow: hidden;
}
.case_related_inner {
  max-width: 1120px;
  margin: 0 auto;
}
.case_related_head {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.case_related_eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  color: #c70202;
  line-height: normal;
}
.case_related_title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}
.case_related_more {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
}
.case_related_more::after {
  content: "→";
  font-size: 16px;
  font-weight: 700;
  color: #c70202;
}
.case_related_more:hover {
  color: #c70202;
}
.case_cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.case_card {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.case_card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.case_card_thumb {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 198px;
  border-bottom: 1px solid #e0e0e0;
}
.case_card_thumb img {
  width: 208px;
  height: 114px;
  object-fit: contain;
}
.case_card_body {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1;
  flex: 1;
  gap: 12px;
  padding: 20px 24px 24px;
}
.case_card_title {
  min-height: 85px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}
.case_card_company {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}
@media screen and (min-width: 767px) {
  .case_related {
    padding: 96px 40px;
  }
  .case_related_head {
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: flex-end;
    align-items: flex-end;
  }
}

/* 1279px以下：カルーセル（slick）。JSが動かない場合は横スクロールで見られるようにする */
@media screen and (max-width: 1279px) {
  .case_cards:not(.slick-initialized) {
    display: -webkit-flex;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .case_cards:not(.slick-initialized) > li {
    -webkit-flex: 0 0 min(352px, 85%);
    flex: 0 0 min(352px, 85%);
  }
  .case_cards.slick-initialized {
    display: block;
    position: relative;
  }
  .case_cards .slick-list {
    overflow: visible;
  }
  .case_cards .slick-track {
    display: -webkit-flex;
    display: flex;
  }
  .case_cards .slick-slide {
    height: auto;
    width: min(352px, calc(100vw - 32px));
    margin-right: 16px;
  }
  .case_cards .slick-slide > div {
    height: 100%;
  }
  .case_cards .slick-slide li {
    height: 100%;
  }
  .case_cards .slick-arrow {
    position: absolute;
    z-index: 2;
    top: 175px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }
  .case_cards .slick-arrow,
  .case_cards .slick-arrow:hover,
  .case_cards .slick-arrow:focus {
    background: #222;
    color: #fff;
    -webkit-transform: none;
    transform: none;
  }
  .case_cards .slick-arrow::before {
    display: none;
  }
  .case_cards .slick-prev {
    left: -6px;
  }
  .case_cards .slick-next {
    right: -6px;
  }
  .case_cards .slick-arrow.slick-disabled {
    opacity: 0.25;
    cursor: default;
  }
  .case_cards .slick-dots {
    position: static;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
  }
  .case_cards .slick-dots li {
    width: 8px;
    height: 8px;
    margin: 0;
  }
  .case_cards .slick-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    font-size: 0;
    cursor: pointer;
  }
  .case_cards .slick-dots button::before {
    display: none;
  }
  .case_cards .slick-dots .slick-active button {
    background: #c70202;
  }
}

/* 関連記事カード：今のサイトの事例一覧と同じく、写真がある事例は写真を枠いっぱいに表示する */
.case_card_thumb--photo {
  overflow: hidden;
}
.case_card_thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
