/* ===================================================
   case-detail.css — 事例詳細ページ専用スタイル
   top.css + maintenance.css + cases.css + common.css と併用
   クラスプレフィックス: cd-
   =================================================== */

/* ===================================================
   01. HERO
   =================================================== */
.cd-hero {
  position: relative;
  min-height: 480px;
  padding: 80px 0 96px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.cd-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.cd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 70, 0.92) 0%,
    rgba(19, 45, 127, 0.80) 60%,
    rgba(19, 45, 127, 0.60) 100%
  );
  z-index: 1;
}
.cd-hero__container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.cd-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.cd-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cd-hero__breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }
.cd-hero__breadcrumb span { color: rgba(255, 255, 255, 0.35); }

.cd-hero__tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: "Shippori Mincho", serif;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  background: var(--rc-navy);
  color: #fff;
  border: 1px solid rgba(203, 152, 49, 0.5);
  margin-bottom: 20px;
}
.cd-hero__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 760px;
}
.cd-hero__meta {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
}
.cd-hero__result {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(203, 152, 49, 0.5);
  background: rgba(203, 152, 49, 0.12);
}
.cd-hero__result-label {
  font-family: "Shippori Mincho", serif;
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: var(--rc-gold);
  font-weight: 600;
}
.cd-hero__result-value {
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ===================================================
   02. OVERVIEW
   =================================================== */
.cd-overview {
  background: #fff;
  border-bottom: 1px solid #e5e8ee;
}
.cd-overview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.cd-overview__eyebrow {
  font-family: "Shippori Mincho", serif;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--rc-gold);
  font-weight: 600;
  margin: 0 0 16px;
}
.cd-overview__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 2;
  color: var(--coolgray-90);
  margin: 0;
}

/* Info Panel */
.cd-info-panel {
  background: #fff;
  border: 1px solid #e5e8ee;
  border-top: 3px solid var(--rc-gold);
}
.cd-info-panel__list {
  margin: 0;
  padding: 0;
}
.cd-info-panel__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0;
  border-bottom: 1px solid #e5e8ee;
  padding: 0;
}
.cd-info-panel__row:last-child { border-bottom: none; }
.cd-info-panel__term {
  font-family: "Shippori Mincho", serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--rc-gold);
  font-weight: 600;
  padding: 14px 16px;
  background: rgba(203, 152, 49, 0.06);
  border-right: 1px solid #e5e8ee;
  display: flex;
  align-items: center;
}
.cd-info-panel__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8125rem;
  color: var(--coolgray-90);
  padding: 14px 20px;
  margin: 0;
  display: flex;
  align-items: center;
}

/* ===================================================
   03. MAIN VISUAL
   =================================================== */
.cd-visual {
  background: #f0f2f7;
}
.cd-visual__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.cd-visual__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===================================================
   04. SECTIONS (共通)
   =================================================== */
.cd-section {
  padding: 96px 0;
  background: #fff;
}
.cd-section--light {
  background: #f8f9fb;
}
.cd-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.cd-section__heading {
  margin-bottom: 56px;
}
.cd-section__heading--light .cd-section__title {
  color: #fff;
}
.cd-section__en {
  font-family: "Shippori Mincho", serif;
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  color: var(--rc-gold);
  font-weight: 600;
  margin: 0 0 10px;
}
.cd-section__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--rc-navy);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.3;
}

/* ===================================================
   05. CHALLENGE CARDS
   =================================================== */
.cd-content__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 2;
  color: var(--coolgray-90);
  margin: 0 0 40px;
  max-width: 720px;
}
.cd-challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cd-challenge-card {
  background: #fff;
  border: 1px solid #dde1ec;
  border-top: 3px solid var(--rc-navy);
  padding: 36px 32px;
}
.cd-challenge-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(19, 45, 127, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--rc-navy);
  margin-bottom: 20px;
}
.cd-challenge-card__title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--rc-navy);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}
.cd-challenge-card__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  color: var(--coolgray-60);
  line-height: 1.9;
  margin: 0;
}

/* ===================================================
   06. APPROACH STEPS
   =================================================== */
.cd-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid #e5e8ee;
  margin-left: 24px;
}
.cd-step {
  display: flex;
  gap: 36px;
  padding: 0 0 52px 48px;
  position: relative;
}
.cd-step:last-child { padding-bottom: 0; }
.cd-step::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rc-gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--rc-gold);
}
.cd-step__num {
  font-family: "Shippori Mincho", serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--rc-gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}
.cd-step__title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rc-navy);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.cd-step__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  color: var(--coolgray-60);
  line-height: 2;
  margin: 0;
}

/* ===================================================
   07. RESULTS SECTION
   =================================================== */
.cd-result-section {
  position: relative;
  background: var(--rc-navy);
  padding: 96px 0;
  overflow: hidden;
}
.cd-result-section::before {
  content: "RESULTS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}
.cd-result-section__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.cd-result-section .cd-section__en { color: var(--rc-gold); }
.cd-result-section .cd-section__title { color: #fff; }

.cd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.08);
}
.cd-metric {
  background: rgba(255, 255, 255, 0.04);
  padding: 44px 36px;
  text-align: center;
}
.cd-metric__value {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--rc-gold);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cd-metric__unit {
  font-size: 0.45em;
  font-weight: 500;
  vertical-align: baseline;
  margin-left: 2px;
  letter-spacing: 0.05em;
}
.cd-metric__label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* Voice / Quote */
.cd-voice {
  position: relative;
  border-left: 3px solid var(--rc-gold);
  padding: 32px 64px 28px 64px;
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
}
.cd-voice::before,
.cd-voice::after {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--rc-gold);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  position: absolute;
}
.cd-voice::before {
  content: "\201C"; /* 左二重引用符 */
  top: 4px;
  left: 24px;
}
.cd-voice::after {
  content: "\201D"; /* 右二重引用符 */
  bottom: -22px;
  right: 24px;
}
.cd-voice__text {
  font-family: "Shippori Mincho", serif;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 2;
  margin: 0 0 20px;
  letter-spacing: 0.03em;
}
.cd-voice__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-voice__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(203, 152, 49, 0.15);
  border: 1px solid var(--rc-gold);
  color: var(--rc-gold);
  flex-shrink: 0;
}
.cd-voice__source {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rc-gold);
  letter-spacing: 0.08em;
}

/* ===================================================
   08. RELATED CASES
   =================================================== */
.cd-related {
  background: #f8f9fb;
  padding: 96px 0;
}
.cd-related__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.cd-related__eyebrow {
  font-family: "Shippori Mincho", serif;
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  color: var(--rc-gold);
  font-weight: 600;
  margin: 0 0 10px;
}
.cd-related__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--rc-navy);
  margin: 0 0 48px;
  letter-spacing: 0.04em;
}
.cd-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.cd-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e8ee;
  text-decoration: none;
  transition: border-color 0.25s ease;
}
.cd-related-card:hover { border-color: var(--rc-gold); }
.cd-related-card__img-wrap {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}
.cd-related-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cd-related-card:hover .cd-related-card__img { transform: scale(1.04); }
.cd-related-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cd-related-card__tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: "Shippori Mincho", serif;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 8px;
}
.cd-related-card__tag--building {
  background: var(--rc-navy);
  color: #fff;
}
.cd-related-card__tag--hr {
  background: var(--rc-gold);
  color: #fff;
}
.cd-related-card__meta {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.6875rem;
  color: var(--coolgray-60);
  margin: 0 0 10px;
}
.cd-related-card__title {
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rc-navy);
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}
.cd-related-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Shippori Mincho", serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rc-navy);
  border-bottom: 1px solid var(--rc-gold);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s ease;
}
.cd-related-card:hover .cd-related-card__link { color: var(--rc-gold); }

.cd-related__more {
  text-align: center;
}
.cd-related__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rc-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rc-gold);
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.cd-related__more-link:hover { color: var(--rc-gold); }

/* ===================================================
   TABLET (768px - 1023px)
   =================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .cd-hero { min-height: 400px; padding: 80px 0 80px; }
  .cd-hero__container { padding: 0 32px; }
  .cd-hero__title { font-size: 2rem; }

  .cd-overview__container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 32px;
  }
  .cd-visual__container { padding: 0 32px; }
  .cd-visual__img { height: 360px; }

  .cd-section__container { padding: 0 32px; }
  .cd-result-section__container { padding: 0 32px; }
  .cd-related__container { padding: 0 32px; }

  .cd-challenge-grid { grid-template-columns: 1fr; }
  .cd-metrics { grid-template-columns: repeat(3, 1fr); }
  .cd-related__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===================================================
   SP (max-width: 767px)
   =================================================== */
@media (max-width: 767px) {
  .cd-hero {
    min-height: 360px;
    padding: 110px 0 56px;
    align-items: flex-end;
  }
  .cd-hero__container { padding: 0 20px; }
  .cd-hero__title { font-size: 1.5rem; }
  .cd-hero__result { flex-direction: column; gap: 6px; }

  .cd-overview__container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
  }

  .cd-visual__container { padding: 0; }
  .cd-visual__img { height: 240px; }

  .cd-section { padding: 64px 0; }
  .cd-section__container { padding: 0 20px; }
  .cd-section__heading { margin-bottom: 36px; }

  .cd-challenge-grid { grid-template-columns: 1fr; gap: 16px; }
  .cd-challenge-card { padding: 28px 24px; }

  .cd-steps { margin-left: 12px; }
  .cd-step { padding: 0 0 40px 32px; gap: 20px; }

  .cd-result-section { padding: 64px 0; }
  .cd-result-section__container { padding: 0 20px; }
  .cd-metrics {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 40px;
  }
  .cd-metric { padding: 32px 24px; }

  .cd-voice { padding: 24px 44px 20px 48px; }
  .cd-voice::before,
  .cd-voice::after { font-size: 3.5rem; }
  .cd-voice::before { top: 4px; left: 12px; }
  .cd-voice::after { bottom: -16px; right: 12px; }
  .cd-voice__text { font-size: 0.9375rem; }
  .cd-voice__avatar { width: 32px; height: 32px; }

  .cd-related { padding: 64px 0; }
  .cd-related__container { padding: 0 20px; }
  .cd-related__grid { grid-template-columns: 1fr; gap: 16px; }
  .cd-related-card__img-wrap { height: 180px; }
}
