@charset "utf-8";

/* ============================================================
   cases.css — 導入事例詳細ページ専用スタイル
   Shared header/footer/sitemap/page-heroスタイルは components.css にあります
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: hidden; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  overflow-x: clip;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #06617f; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #30a1af; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: #646464;
}
.breadcrumb a { color: #30a1af; }
.breadcrumb a:hover { color: #06617f; }
.breadcrumb__sep {
  margin: 0 0.5rem;
  color: #cacaca;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-pad { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--c-teal);
  margin: 0.75rem auto 0;
  border-radius: 0.125rem;
}

/* ============================================================
   本文＋右サイドバー レイアウト
   ============================================================ */
.case-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

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

.case-sidebar {
  position: sticky;
  top: 6rem;
  flex: 0 0 22.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-sidebar__box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 0.25rem 1.5rem rgba(6, 97, 127, 0.1);
  overflow: hidden;
}

.case-sidebar__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-teal);
  margin: -1.75rem -1.5rem 1.25rem;
  padding: 1rem 1.5rem;
}

.case-sidebar__heading .material-symbols-outlined { font-size: 1.25rem; }

.case-sidebar__group:not(:first-of-type) {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 0.0625rem solid #e3eef0;
}

.case-sidebar__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-dark-blue);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.case-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-sidebar__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #646464;
  line-height: 1.5;
  background: var(--c-light-bg);
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
}

.case-sidebar__list .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--c-teal);
  flex-shrink: 0;
}

/* ---- 他の導入事例 ---- */
.case-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-related-list__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-dark-blue);
  background: var(--c-light-bg);
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background .2s, color .2s;
}

.case-related-list__link .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--c-teal);
  flex-shrink: 0;
}

.case-related-list__link:hover {
  background: var(--c-teal);
  color: #fff;
}

.case-related-list__link:hover .material-symbols-outlined { color: #fff; }

/* ============================================================
   Before / NSSの提案 / After 比較
   ============================================================ */
.case-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.case-compare__col {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.case-compare__col--highlight {
  background: #fff;
  border-radius: 0.75rem;
}

.case-compare__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.case-compare__avatar {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.case-compare__badge {
  display: inline-block;
  background: var(--c-teal);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
}

.case-compare__body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--c-dark-blue);
  margin-bottom: 0.5rem;
}

.case-compare__body h3:not(:first-child) {
  margin-top: 1.5rem;
}

.case-compare__body p {
  font-size: 0.9375rem;
  color: #646464;
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */
.case-cta {
  text-align: center;
  margin-top: 4rem;
}

.case-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  background: var(--c-dark-blue);
  color: #fff;
  border-radius: 3.125rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background .3s, transform .2s;
}
.case-cta__btn:hover {
  background: var(--c-teal);
  color: #fff;
  transform: translateY(-0.125rem);
}

/* ============================================================
   レスポンシブ（≤768px）
   ============================================================ */
@media (max-width: 48rem) {
  .section-pad { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }

  .case-layout {
    flex-direction: column;
    gap: 2.5rem;
  }
  .case-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }

  .case-compare {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
