﻿/* ================================================
   ZETTA TECHNOLOGY - CASE PAGE STYLESHEET
   事例・実績ページ固有スタイル
   依存: style.css（ベーススタイル・共通コンポーネント）
   ================================================ */

#container {
  display: block;
  width: 100%;
}


/* ================================================
   PAGE NAV（アンカーメニュー）
   ================================================ */
.page-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.page-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-nav-list::-webkit-scrollbar {
  display: none;
}

.page-nav-link {
  display: block;
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.page-nav-link:hover,
.page-nav-link.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}


/* ================================================
   SECTIONS COMMON
   ================================================ */
.case-section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

.case-section:nth-child(even) {
  background: var(--bg-light);
}

.section-header {
  margin-bottom: 48px;
}

/* バナーエリア */
.case-banners {
  padding: 40px 0 32px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.case-banners .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.case-banner-link {
  display: block;
  transition: var(--transition);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.case-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case-banner-link img {
  display: block;
  max-height: 100px;
}


/* ================================================
   導入事例（CASE STUDIES）
   ================================================ */
.case-studies-section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

.case-card-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

.case-card-logo {
  width: 200px;
  min-width: 200px;
  background: var(--bg-section);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-shrink: 0;
}

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

.case-card-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: center;
  line-height: 1.4;
}

.case-card-logo-text small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 4px;
}

.case-card-body {
  padding: 28px 32px;
  flex: 1;
}

.case-card-company {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.case-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.case-card-arrow {
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: var(--brand-red);
  flex-shrink: 0;
  opacity: 0;
  transition: var(--transition);
}

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

/* 外部リンクカード */
.case-card-external .case-card-arrow::after {
  content: '';
}


/* ================================================
   導入実績（TRACK RECORD）
   ================================================ */
.track-record-section {
  padding: 80px 0;
  background: var(--bg-light);
  scroll-margin-top: 120px;
}

.track-record-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.track-record-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: var(--transition);
}

.track-record-item:hover {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.track-record-item img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.track-record-item-text {
  text-align: center;
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 15px;
  line-height: 1.5;
}

.track-record-item-text small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* リンク付きアイテム */
a.track-record-item {
  color: inherit;
  text-decoration: none;
}

a.track-record-item:hover .track-record-item-text {
  color: var(--brand-red);
}


/* ================================================
   業種・業務別事例（INDUSTRY CASES）
   ================================================ */
.industry-section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-red);
}

.industry-card-label {
  background: var(--brand-navy);
  color: #fff;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  flex-shrink: 0;
}

.industry-card:nth-child(even) .industry-card-label {
  background: var(--brand-navy-light);
}

.industry-card-desc {
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  align-items: center;
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .track-record-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .case-section {
    padding: 56px 0;
  }

  .case-studies-section,
  .track-record-section,
  .industry-section {
    padding: 56px 0;
  }

  .case-card {
    flex-direction: column;
  }

  .case-card-logo {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 100px;
  }

  .case-card-body {
    padding: 20px 24px;
  }

  .case-card-arrow {
    display: none;
  }

  .track-record-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-card {
    flex-direction: column;
  }

  .industry-card-label {
    min-width: unset;
    padding: 14px 20px;
  }

  .case-banners .container {
    flex-direction: column;
    align-items: center;
  }

  .page-nav-link {
    padding: 14px 14px;
    font-size: 12px;
  }
}


/* ================================================
   CASE DETAIL PAGES（case_01?04 共通）
   ================================================ */

/* 概要カード */
.case-detail-section {
  padding: 64px 0 80px;
}

.case-overview-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}

.case-overview-logo {
  width: 220px;
  min-width: 220px;
  background: var(--bg-section);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  flex-shrink: 0;
}

.case-overview-logo img {
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
}

.case-overview-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: center;
  line-height: 1.4;
}

.case-overview-meta {
  padding: 32px 40px;
  flex: 1;
  display: flex;
  align-items: center;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  width: 100%;
}

.case-meta-item {}

.case-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: var(--font-en);
  margin-bottom: 4px;
}

.case-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.5;
}

/* ブロック（課題・解決策・効果） */
.case-block {
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.case-block-header {
  background: var(--brand-navy);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.case-block-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  flex-shrink: 0;
}

.case-block-title {
  font-family: var(--font-serif-ja);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.case-block-body {
  padding: 32px;
}

.case-block-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.case-block-body p:last-child {
  margin-bottom: 0;
}

/* チェックポイントリスト */
.case-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.case-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-section);
  border-radius: var(--radius);
  border-left: 3px solid var(--brand-red);
}

.case-point-icon {
  width: 28px;
  height: 28px;
  background: var(--brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
}

.case-point-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 500;
}

/* サブセクション（PSE ブロック） */
.case-subsection {
  margin-bottom: 48px;
}

.case-subsection-title-block {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.case-step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-step {
  display: flex;
  gap: 0;
  position: relative;
}

.case-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  width: 1px;
  height: calc(100% - 32px);
  background: var(--border);
}

.case-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-right: 24px;
  position: relative;
  z-index: 1;
}

.case-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

.case-step-icon.problem {
  background: rgba(153,0,0,0.1);
  color: var(--brand-red);
  border: 2px solid rgba(153,0,0,0.2);
}

.case-step-icon.solution {
  background: rgba(0,200,232,0.1);
  color: var(--accent-cyan);
  border: 2px solid rgba(0,200,232,0.2);
}

.case-step-icon.effect {
  background: rgba(0,184,160,0.1);
  color: var(--accent-teal);
  border: 2px solid rgba(0,184,160,0.2);
}

.case-step-body {
  flex: 1;
  padding-bottom: 40px;
}

.case-step-heading {
  font-family: var(--font-serif-ja);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 12px;
  line-height: 1.5;
  padding-top: 14px;
}

.case-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.case-step-text p {
  margin-bottom: 12px;
}

.case-step-text p:last-child {
  margin-bottom: 0;
}

.case-step-text strong, .case-step-text .emphasis {
  color: var(--brand-red);
  font-weight: 700;
}

.case-step-image {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: inline-block;
  max-width: 100%;
}

.case-step-image img {
  display: block;
  max-width: 100%;
}

/* 企業プロフィールカード */
.case-company-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.case-company-logo {
  flex-shrink: 0;
}

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

.case-company-info {}

.case-company-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.case-company-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.case-company-name a:hover {
  color: var(--brand-red);
}

.case-company-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 製品リスト */
.case-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.case-product-tag {
  padding: 8px 16px;
  background: var(--brand-navy);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-product-tag::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.case-product-tag:hover {
  background: var(--brand-red);
}

/* 引用（お客様の声） */
.case-quote {
  background: var(--brand-navy);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
  position: relative;
}

.case-quote::before {
  content: '\201C';
  font-size: 64px;
  color: rgba(255,255,255,0.5);
  font-family: Georgia, serif;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.case-quote .case-quote-text {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  position: relative;
  z-index: 1;
  padding-left: 16px;
}

.case-quote .case-quote-text strong {
  color: #ff6666;
}

/* セクションタイトル（小見出し） */
.case-section-label {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-red);
}

.case-section-heading {
  font-family: var(--font-serif-ja);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* 前後ページャー */
.case-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  gap: 16px;
}

.case-pager-back,
.case-pager-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.case-pager-back:hover,
.case-pager-next:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: rgba(153,0,0,0.04);
}

.case-pager-list {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

.case-pager-list a {
  color: var(--brand-red);
  text-decoration: none;
}

.case-pager-list a:hover {
  text-decoration: underline;
}

/* ================================================
   RESPONSIVE（detail pages）
   ================================================ */
@media (max-width: 768px) {
  .case-detail-section {
    padding: 40px 0 60px;
  }

  .case-overview-card {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .case-overview-logo {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 120px;
  }

  .case-overview-meta {
    padding: 24px;
  }

  .case-meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-block-header {
    padding: 16px 20px;
  }

  .case-block-body {
    padding: 24px 20px;
  }

  .case-step-icon {
    width: 44px;
    height: 44px;
    font-size: 10px;
  }

  .case-step:not(:last-child)::after {
    left: 22px;
  }

  .case-step-heading {
    font-size: 16px;
  }

  .case-company-card {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .case-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .case-pager-back,
  .case-pager-next {
    justify-content: center;
  }
}
