@charset "UTF-8";
/* ==========================================================================
   導入事例（Case Study）専用スタイル
   - style.css は編集せず、このファイルだけを追加する
   - 配色・角丸・コンテナ幅・ブレークポイントは既存 style.css の値に合わせている
       ブランドカラー : #c8191e
       背景（淡）     : #f3f5f6 / #edf0f2
       コンテナ       : max-width 1366px / padding 0 120px
       角丸           : カード 30px / バッジ 20px
       ブレークポイント: 1024px, 768px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 事例カード（トップ・一覧で共用）
   -------------------------------------------------------------------------- */
.case-card {
  background-color: #fff;
  border-radius: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.case-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.case-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #edf0f2;
}

.case-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card-img {
  transform: scale(1.04);
}

.case-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #edf0f2 0%, #dfe4e7 100%);
}

.case-card-placeholder-text {
  font-size: 16px;
  font-weight: 600;
  color: #6b7275;
  text-align: center;
  line-height: 1.5;
}

.case-card-part {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 26px;
  padding: 0 12px;
  background-color: #c8191e;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.case-card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 25px;
}

.case-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.case-card-industry {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c8191e;
}

.case-card-support {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 1px solid #c9ced1;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

/* 企業ロゴ（社名の上）
   高さを揃えて左端を合わせる。縦横比が違うロゴが混ざっても列が乱れないよう、
   ロゴ枠の高さを固定し、画像側は contain で収める。
   横に長いロゴ（製品ロゴ＋会社ロゴの組み合わせなど）は max-width で頭打ちにする。 */
.case-card-logo {
  display: flex;
  align-items: center;
  height: 44px;
  margin: 0 0 14px 0;
}

.case-card-logo-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.case-card-company {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.case-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: #333;
  margin: 0 0 14px 0;
}

.case-card-highlight {
  position: relative;
  margin: 0 0 20px 0;
  padding: 12px 14px;
  background-color: #f3f5f6;
  border-left: 3px solid #c8191e;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #000;
}

.case-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #c8191e;
}

.case-card-arrow {
  transition: transform 0.3s ease;
}

.case-card:hover .case-card-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   2. トップページの導入事例セクション
      直前の .works-uservoice（背景 #f3f5f6・下padding 102px）に続けて配置するため、
      上padding を持たせず地続きに見せる
   -------------------------------------------------------------------------- */
.case-section {
  position: relative;
  z-index: 10;
  background-color: #f3f5f6;
  padding: 0 0 102px;
}

.case-section-container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 130px;
}

.case-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  padding-top: 40px;
  border-top: 1px solid #dfe3e5;
}

.case-section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-section-title {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  margin: 0;
}

.case-section-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

.case-section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-section-link:hover {
  color: #c8191e;
}

.case-section-link-arrow {
  transition: transform 0.3s ease;
}

.case-section-link:hover .case-section-link-arrow {
  transform: translateX(4px);
}

.case-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* --------------------------------------------------------------------------
   3. 事例一覧（/case/）
      既存 .shared-hero は position: fixed なので、
      一覧セクション側に margin-top を持たせて重ねる（page-news.php と同じ作法）
   -------------------------------------------------------------------------- */
.case-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 10px;
}

.case-page .case-hero-title {
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  margin: 0;
}

.case-page .case-hero-subtitle {
  font-size: 18px;
  color: #000;
  margin: 0;
}

.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  position: absolute;
  bottom: 25vh;
  left: 120px;
  right: 0;
}

.case-list-section {
  position: relative;
  z-index: 10;
  background-color: #f3f5f6;
  padding: 100px 0 120px;
  margin-top: 72vh;
}

.case-list-container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 120px;
}

.case-list-lead {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 50px 0;
}

.case-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.case-pagination {
  margin-top: 70px;
}

.case-list-section .no-posts {
  font-size: 16px;
  color: #666;
}

/* --------------------------------------------------------------------------
   4. 事例詳細（/case/{slug}/）
   -------------------------------------------------------------------------- */
.single-case-page {
  background-color: #edf0f2;
}

.single-case-hero {
  background-color: #edf0f2;
  position: static;
  padding: 80px 120px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-case-hero-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 80px;
}

.single-case-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
}

.single-case-breadcrumb a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-case-breadcrumb a:hover {
  color: #c8191e;
}

.single-case-breadcrumb span {
  color: #999;
}

.single-case-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 60px;
}

.single-case-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.single-case-industry {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c8191e;
}

.single-case-support,
.single-case-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.single-case-support {
  border: 1px solid #c9ced1;
  color: #666;
}

.single-case-part {
  background-color: #c8191e;
  color: #fff;
  font-weight: 600;
}

.single-case-company {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.single-case-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  margin: 0;
}

.single-case-content-section {
  position: relative;
  z-index: 10;
  background-color: #f3f5f6;
  padding: 80px 0 100px;
}

.single-case-content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
}

.single-case-thumbnail {
  margin: 0 0 50px 0;
  border-radius: 30px;
  overflow: hidden;
}

.single-case-thumbnail-img {
  display: block;
  width: 100%;
  height: auto;
}

.single-case-lead {
  font-size: 17px;
  line-height: 1.9;
  font-weight: 500;
  color: #000;
  margin-bottom: 50px;
}

.single-case-lead p {
  margin: 0 0 20px 0;
}

.single-case-lead p:last-child {
  margin-bottom: 0;
}

/* 課題・決め手・成果の3点サマリ */
.single-case-summary {
  background-color: #fff;
  border-radius: 30px;
  padding: 40px 45px;
  margin-bottom: 50px;
}

.single-case-summary-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 1px dashed #d6d7d8;
}

.single-case-summary-list {
  margin: 0;
}

.single-case-summary-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #eceef0;
}

.single-case-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.single-case-summary-label {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #c8191e;
  line-height: 1.7;
}

.single-case-summary-label::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c8191e;
}

.single-case-summary-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.single-case-interviewee {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 50px 0;
  padding: 16px 20px;
  background-color: #edf0f2;
  border-radius: 8px;
  font-size: 15px;
}

.single-case-interviewee-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background-color: #6b7275;
  border-radius: 20px;
  padding: 4px 12px;
}

.single-case-interviewee-name {
  font-weight: 600;
  color: #000;
  line-height: 1.7;
}

/* 本文 */
.single-case-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.single-case-content p {
  margin: 0 0 24px 0;
}

/* 見出し（本文中の h2 = 原稿の【見出し1〜3】） */
.single-case-content h2,
.single-case-content .case-heading {
  position: relative;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  margin: 60px 0 28px;
  padding-left: 20px;
}

.single-case-content h2::before,
.single-case-content .case-heading::before {
  content: "";
  position: absolute;
  top: 0.25em;
  left: 0;
  width: 5px;
  height: 1.1em;
  background-color: #c8191e;
  border-radius: 3px;
}

.single-case-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin: 40px 0 16px;
}

/* インタビュアーの質問（原稿の「──」で始まる行） */
.single-case-content .case-q {
  position: relative;
  margin: 36px 0 20px;
  padding: 18px 22px;
  background-color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: #000;
}

.single-case-content .case-q::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 28px;
  height: 3px;
  background-color: #c8191e;
}

/* 本文中の写真 */
.single-case-content .case-figure {
  margin: 40px 0;
  border-radius: 20px;
  overflow: hidden;
}

.single-case-content .case-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.single-case-content .case-figure figcaption {
  padding: 12px 4px 0;
  font-size: 13px;
  color: #666;
}

.single-case-content ul,
.single-case-content ol {
  margin: 0 0 24px;
  padding-left: 30px;
}

.single-case-content li {
  margin-bottom: 12px;
}

/* 前編 ⇔ 後編 */
.single-case-pair {
  margin-top: 70px;
  padding: 30px 35px;
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid #e3e6e8;
}

.single-case-pair-label {
  font-size: 13px;
  font-weight: 700;
  color: #c8191e;
  margin: 0 0 12px 0;
}

.single-case-pair-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  text-decoration: none;
  color: #000;
}

.single-case-pair-part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid #c8191e;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c8191e;
}

.single-case-pair-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.single-case-pair-link:hover .single-case-pair-title {
  color: #c8191e;
}

.single-case-pair-arrow {
  color: #c8191e;
  transition: transform 0.3s ease;
}

.single-case-pair-link:hover .single-case-pair-arrow {
  transform: translateX(4px);
}

/* 記事末CTA */
.single-case-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 60px;
  padding: 40px 45px;
  background-color: #edf0f2;
  border-radius: 30px;
}

.single-case-cta-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: #000;
}

.single-case-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 240px;
  padding: 18px 32px;
  background-color: #c8191e;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.single-case-cta-button:hover {
  opacity: 0.85;
}

.single-case-cta-arrow {
  transition: transform 0.3s ease;
}

.single-case-cta-button:hover .single-case-cta-arrow {
  transform: translateX(4px);
}

.single-case-navigation {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   5. /marketing/ の既存「全体最適の導入事例」カードに追加したリンク
      既存の .case-study-* の見た目は変更していない。追加した要素だけを装飾する
   -------------------------------------------------------------------------- */
/* 実名表示（実名版カード画像が配置されているときだけ出力される） */
.case-study-company {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  margin: 0 0 10px 0;
}

.case-study-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  /* このセクション内の既存 .case-study-industry と同じ赤に合わせる（サイト内に2種類の赤がある） */
  color: #c8102e;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.case-study-more:hover {
  opacity: 0.7;
}

.case-study-more-arrow {
  transition: transform 0.3s ease;
}

.case-study-more:hover .case-study-more-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. タブレット（1024px 以下）
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .case-section-container,
  .case-list-container {
    padding: 0 60px;
  }

  .case-section-grid,
  .case-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .case-section-title {
    font-size: 40px;
  }

  .single-case-hero {
    padding: 60px 60px 50px;
  }

  .single-case-hero-content {
    padding-left: 0;
  }

  .case-breadcrumb {
    left: 60px;
  }
}

/* --------------------------------------------------------------------------
   7. スマートフォン（768px 以下）
      既存 style.css の .shared-hero（height: 40vh）に合わせて
      一覧セクションの margin-top も 25vh に揃える
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* カード */
  .case-card {
    border-radius: 20px;
  }

  .case-card-image {
    height: 200px;
  }

  .case-card-content {
    padding: 20px;
  }

  .case-card-logo {
    height: 38px;
    margin-bottom: 12px;
  }

  .case-card-company {
    font-size: 18px;
  }

  /* トップのセクション */
  .case-section {
    padding: 0 0 60px;
  }

  .case-section-container {
    padding: 0 30px;
  }

  .case-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .case-section-title {
    font-size: 32px;
  }

  .case-section-subtitle {
    font-size: 15px;
  }

  .case-section-grid,
  .case-list-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 一覧 */
  .case-page .case-hero-title {
    font-size: 40px;
  }

  .case-page .case-hero-subtitle {
    font-size: 16px;
  }

  .case-breadcrumb {
    bottom: 5vh;
    left: 35px;
    font-size: 10px;
  }

  .case-list-section {
    margin-top: 25vh;
    padding: 40px 0 80px;
  }

  .case-list-container {
    padding: 0 30px;
  }

  .case-list-lead {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .case-pagination {
    margin-top: 50px;
  }

  /* 詳細 */
  .single-case-hero {
    padding: 40px 30px 40px;
  }

  .single-case-hero-wrapper {
    gap: 40px;
  }

  .single-case-breadcrumb {
    font-size: 11px;
    gap: 6px;
  }

  .single-case-title {
    font-size: 24px;
  }

  .single-case-company {
    font-size: 17px;
  }

  .single-case-content-section {
    padding: 50px 0 70px;
  }

  .single-case-content-container {
    padding: 0 25px;
  }

  .single-case-thumbnail {
    border-radius: 20px;
    margin-bottom: 35px;
  }

  .single-case-lead {
    font-size: 16px;
    margin-bottom: 35px;
  }

  .single-case-summary {
    border-radius: 20px;
    padding: 25px 22px;
    margin-bottom: 35px;
  }

  .single-case-summary-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .single-case-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .single-case-summary-text {
    font-size: 14px;
  }

  .single-case-interviewee {
    margin-bottom: 35px;
    padding: 14px 16px;
    font-size: 14px;
  }

  .single-case-content {
    font-size: 15px;
  }

  .single-case-content h2,
  .single-case-content .case-heading {
    font-size: 21px;
    margin: 45px 0 22px;
    padding-left: 16px;
  }

  .single-case-content .case-q {
    padding: 16px 18px;
    font-size: 15px;
    margin: 28px 0 18px;
  }

  .single-case-content .case-q::before {
    left: 18px;
  }

  .single-case-content .case-figure {
    margin: 30px 0;
    border-radius: 14px;
  }

  .single-case-pair {
    margin-top: 50px;
    padding: 22px 20px;
    border-radius: 14px;
  }

  .single-case-pair-title {
    font-size: 15px;
  }

  .single-case-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 45px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .single-case-cta-text {
    flex: 1 1 auto;
    font-size: 15px;
  }

  .single-case-cta-button {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
    font-size: 15px;
  }

  /* /marketing/ の追加要素（既存の .case-study-title は 19px なのでそれに合わせる） */
  .case-study-company {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .case-study-more {
    margin-top: 14px;
    font-size: 13px;
  }
}
