:root {
  --csd-ink: #0f172a;
  --csd-slate: #475569;
  --csd-ivory: #fbf7f1;
  --csd-blue: #0f3d4c;
  --csd-teal: #1aa7a1;
  --csd-sun: #f0b76b;
  --csd-card: #ffffff;
  --csd-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.cs-detail {
  font-family: "Exo 2", "Noto Sans JP", sans-serif;
  color: var(--csd-ink);
  background: linear-gradient(160deg, #f8f4ee 0%, #f4f9ff 52%, #fff6e8 100%);
  position: relative;
  overflow: hidden;
}

.cs-detail-hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.cs-detail-hero::before,
.cs-detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 0;
}

.cs-detail-hero::before {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(26, 167, 161, 0.45), transparent 70%);
  top: -180px;
  right: -120px;
}

.cs-detail-hero::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240, 183, 107, 0.45), transparent 70%);
  bottom: -120px;
  left: -80px;
}

.cs-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--csd-blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.cs-back-link::before {
  content: "←";
}

.cs-detail-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--csd-teal);
  font-weight: 600;
}

.cs-detail-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  margin: 0.6rem 0 1rem;
}

.cs-detail-lead {
  font-size: 1.1rem;
  color: var(--csd-slate);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.cs-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-detail-tag {
  background: rgba(26, 167, 161, 0.12);
  color: var(--csd-teal);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cs-detail-highlights {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
}

.cs-highlight-card {
  display: flex;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.cs-highlight-dot {
  width: 10px;
  height: 10px;
  background: var(--csd-sun);
  border-radius: 50%;
  margin-top: 0.35rem;
}

.cs-detail-profile {
  display: flex;
  justify-content: center;
}

.cs-profile-card {
  background: var(--csd-card);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--csd-shadow);
  position: relative;
  max-width: 360px;
  width: 100%;
}

.cs-profile-ribbon {
  position: absolute;
  top: 1.2rem;
  right: -1.2rem;
  background: var(--csd-blue);
  color: #fff;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.cs-profile-body {
  margin-top: 1.2rem;
}

.cs-profile-meta {
  font-size: 0.9rem;
  color: var(--csd-slate);
}

.cs-profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.4rem 0 1rem;
}

.cs-profile-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 1rem 0;
}

.cs-profile-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--csd-teal);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.cs-profile-points {
  padding-left: 1.1rem;
  color: var(--csd-slate);
  line-height: 1.6;
  margin-bottom: 0;
}

.cs-detail-body {
  padding: 1rem 0 4rem;
}

.cs-qa {
  display: grid;
  gap: 1.6rem;
}

.cs-qa-card {
  background: var(--csd-card);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  padding: 1.8rem;
}

.cs-qa-question {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.cs-qa-label {
  background: var(--csd-blue);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.cs-qa-question h2 {
  font-size: 1.2rem;
  margin: 0;
}

.cs-qa-answer p {
  color: var(--csd-slate);
  line-height: 1.8;
}

.cs-feature-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cs-feature-card {
  background: rgba(26, 167, 161, 0.08);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(26, 167, 161, 0.2);
}

.cs-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--csd-blue);
}

.cs-feature-card p {
  margin-bottom: 0;
  color: var(--csd-slate);
  line-height: 1.7;
}

.cs-draft-callout {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px dashed rgba(26, 167, 161, 0.35);
  margin-bottom: 1.8rem;
}

.cs-draft-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cs-draft-text {
  color: var(--csd-slate);
  margin: 0;
}

.cs-outline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cs-outline-card {
  background: var(--csd-card);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.cs-outline-step {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--csd-teal);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.cs-outline-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.cs-outline-card p {
  color: var(--csd-slate);
  margin: 0;
}

.cs-detail-footer {
  margin-top: 3rem;
}

.cs-footer-card {
  background: var(--csd-blue);
  color: #fff;
  border-radius: 24px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cs-footer-card h3 {
  margin-bottom: 0.4rem;
}

.cs-footer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.cs-footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .cs-detail-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .cs-profile-ribbon {
    right: 1rem;
  }

  .cs-footer-card {
    align-items: flex-start;
  }
}
