.insight-detail {
  padding-block: 5rem 7rem;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.insight-detail .container-contents {
  width: min(100% - 2.5rem, 800px);
  gap: 2.5rem;
  min-width: 0;
}

.insight-breadcrumb,
.insight-meta,
.insight-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  color: #596660;
  font-size: .875rem;
  line-height: 1.6;
}

.insight-breadcrumb .txt-contents1,
.insight-tags .txt-contents1 {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.insight-detail article {
  min-width: 0;
}

.insight-detail .contentstitle {
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-color: var(--line);
}

.insight-detail h1 {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.insight-body {
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.insight-body h2,
.insight-body h3,
.insight-body h4,
.insight-body h5,
.insight-body h6 {
  display: block;
  width: auto;
  padding: 0;
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  line-height: 1.5;
  scroll-margin-top: 6rem;
  text-wrap: balance;
}

.insight-body h2 { font-size: 1.5rem; }
.insight-body h3 { font-size: 1.25rem; margin-top: 2rem; }
.insight-body h4,
.insight-body h5,
.insight-body h6 { font-size: 1.0625rem; }
.insight-body > :first-child { margin-top: 0; }
.insight-body > :last-child { margin-bottom: 0; }

.insight-body p,
.insight-body ul,
.insight-body ol { margin: 0 0 1.25rem; }
.insight-body ul,
.insight-body ol { padding-left: 1.5rem; }
.insight-body li { margin-block: .5rem; }
.insight-body li > ul,
.insight-body li > ol { margin-bottom: 0; }
.insight-body strong { font-weight: 600; }

.insight-body a,
.insight-related a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.insight-body a:hover,
.insight-related a:hover { text-decoration-thickness: 2px; }

.insight-detail a:focus-visible,
.insight-table:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.insight-body blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--background);
  border: 1px solid var(--line);
  color: #46574f;
  font-size: 1rem;
  line-height: 1.8;
}
.insight-body blockquote > :last-child { margin-bottom: 0; }

.insight-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  scrollbar-color: var(--primary) var(--background);
  scrollbar-width: thin;
}

.insight-table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.75;
  text-align: left;
}

.insight-table th,
.insight-table td {
  padding: .875rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.insight-table th { background: var(--background); font-weight: 600; }
.insight-table tr:last-child td { border-bottom: 0; }

.insight-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.25rem;
  background: var(--background);
  font-size: .875rem;
  line-height: 1.7;
}
.insight-body code { font-size: .9em; }
.insight-body img { display: block; max-width: 100%; height: auto; margin-block: 1.5rem; }
.insight-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }
.insight-body ::selection { color: var(--white); background: var(--primary); }
.insight-tags { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.insight-related {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  line-height: 1.7;
}
.insight-related h2 { font-size: 1.125rem; font-weight: 600; }

@media (max-width: 767px) {
  .insight-detail { padding-block: 2.5rem 4rem; }
  .insight-detail .container-contents { gap: 1.75rem; }
  .insight-detail .contentstitle { margin-bottom: 2rem; }
  .insight-body { font-size: 1rem; line-height: 1.85; }
  .insight-body h2 { font-size: 1.375rem; }
  .insight-body h3 { font-size: 1.125rem; }
  .insight-table table { min-width: 32rem; }
}
