/* =========================================================
   CASE SINGLE PAGE
========================================================= */

/* ===== レイアウト ===== */
body.single-case {
  background-color: #f7f6f4;
}

body.single-case .l-main {
  margin-top: 94px; /* ヘッダー高さ分 */
}

.case-2col {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 32px 24px 80px;
  box-sizing: border-box;
}

.case-main {
  flex: 1 1 66.6666%;
  min-width: 0;
}

.case-sidebar {
  flex: 0 0 33.3333%;
}

/* ===== パンくず ===== */
.breadcrumb {
  background-color: var(--color-white);
  font-size: 14px;
  padding: 12px 0;
  margin-bottom: 30px;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
  padding: 0;
}

.breadcrumb-item::after {
  content: ">";
  margin: 0 0.5em;
  color: var(--color-text-light);
}

.breadcrumb-item:last-child::after {
  content: "";
}

.breadcrumb-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ===== 記事タイトル ===== */
.case-title,
.single-case .page-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #333;
  border: none;
  padding: 0;
  line-height: 1.5;
}

/* ===== 日付 ===== */
.single-case .page-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

/* ===== 記事ボックス ===== */
.case-article {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
}

.case-eyecatch,
.case-thumb {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.case-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-content,
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ===== 要約 ===== */
.case-summary {
  background: var(--color-bg);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-radius: 6px;
}

.case-summary-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.case-summary-list {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
  font-size: 13px;
  color: var(--color-text);
}

.case-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.case-check-icon {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1em;
  margin-top: 0.15em;
  flex-shrink: 0;
}

/* ===== サイドバー・企業情報 ===== */
.case-sidebar-box {
  position: sticky;
  top: 110px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.case-logo {
  margin-bottom: 1rem;
  text-align: center;
}

.case-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #EA526F;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ===== 企業概要テーブル ===== */
.case-info-list {
  margin: 0;
}

.case-info-item {
  display: flex;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}

.case-info-item:last-child {
  border-bottom: none;
}

.case-info-item dt {
  flex-shrink: 0;
  width: 90px;
  color: #666;
  font-weight: 600;
}

.case-info-item dd {
  margin: 0;
  flex: 1;
  color: #333;
}

/* =========================================================
   CASE CONTENT（本文要素）
========================================================= */

/* ===== リード文 ===== */
.interview-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  margin-bottom: 3rem;
}

/* ===== 見出し ===== */
.single-case .article-content h2,
h2.case {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  border-left: 6px solid var(--color-primary);
  padding-left: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.single-case .article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ===== 本文・段落 ===== */
.case-answer,
.single-case .article-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* ===== 強調マーカー ===== */
.case-marker {
  background: linear-gradient(transparent 60%, rgba(255, 235, 59, 0.7) 60%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 1s ease-out;
  font-weight: 600;
}

.case-marker.is-visible {
  background-size: 100% 100%;
}

/* ===== 画像 ===== */
.case-answer img,
.case-content img,
.single-case .article-content img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===== YouTube埋め込み ===== */
.case-content iframe,
.case-answer iframe,
.single-case .article-content iframe {
  display: block;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 2rem auto;
  border-radius: 8px;
  border: none;
}

/* ===== 質問見出し ===== */
.case-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.7;
  background: var(--color-bg-alt);
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
}

/* ===== 発言者名 ===== */
.speaker-name {
  display: inline-block;
  font-weight: 700;
  color: var(--color-secondary);
  margin-right: 0.3em;
}

/* =========================================================
   リスト
========================================================= */

/* ===== 箇条書き ===== */
.single-case .article-content ul {
  list-style: disc;
  margin: 1.5rem 0 2rem;
  padding-left: 1.5rem;
}

.single-case .article-content ul ul {
  list-style: circle;
  margin-top: 0.5rem;
}

.single-case .article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}

/* ===== 番号付きリスト ===== */
.single-case .article-content ol {
  list-style: decimal;
  margin: 1.5rem 0 2rem;
  padding-left: 1.5rem;
}

.single-case .article-content ol li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}

/* =========================================================
   テーブル
========================================================= */
.single-case table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--color-gray-4);
  margin: 2rem 0;
  font-size: 1rem;
}

.single-case th,
.single-case td {
  padding: 12px;
  border: 1px solid var(--color-gray-4);
  vertical-align: top;
  text-align: left;
}

.single-case thead th {
  background: var(--color-gray-2);
  font-weight: 600;
}

.single-case tbody tr:nth-child(even) {
  background: var(--color-gray-1);
}

/* =========================================================
   一覧に戻る
========================================================= */
.single-case .back-to-archive {
  text-align: center;
  margin-top: 4rem;
}

.single-case .back-to-archive-link {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  transition: 0.3s;
}

.single-case .back-to-archive-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* =========================================================
   画像2枚横並びコンポーネント
========================================================= */
.rcp-case-image-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.rcp-case-image-two figure {
  margin: 0;
}

.rcp-case-image-two figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* =========================================================
   CTA バナー
========================================================= */
.case-study-banner-sp {
  display: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media screen and (max-width: 1024px) {
  .case-2col {
    flex-direction: column;
  }

  .case-main,
  .case-sidebar {
    width: 100%;
    flex: none;
  }

  .case-sidebar-box {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  .case-2col {
    padding: 0 16px 60px;
  }

  .case-article {
    padding: 1.5rem;
  }

  .single-case .page-title {
    font-size: 1.5rem;
  }

  .interview-lead {
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .single-case .article-content h2,
  h2.case {
    font-size: 1.3rem;
  }

  .single-case .article-content h3 {
    font-size: 1.1rem;
  }

  /* 画像2枚：縦並び */
  .rcp-case-image-two {
    grid-template-columns: 1fr;
  }

  /* CTAバナー */
  .case-study-banner-pc {
    display: none;
  }

  .case-study-banner-sp {
    display: block;
  }
}
