.gel-cure-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: left;
}

.gel-cure-steps li {
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--blush);
}

.gel-cure-steps b {
  color: var(--berry-deep);
}

.gel-cure-art {
  height: 196px;
  margin: 8px 0;
  border-radius: 8px;
  background: var(--card);
  display: grid;
  place-items: center;
}

.gel-cure-art::before {
  content: '';
  display: block;
  width: min(100%, var(--art-width));
  aspect-ratio: var(--art-ratio);
  background: url('../assets/learn/photopolymerization.jpg') var(--art-x) var(--art-y) / var(--art-size) auto no-repeat;
}

.gel-cure-art--uncured {
  --art-width: 215px;
  --art-ratio: 266 / 237;
  --art-x: 0%;
  --art-y: 64%;
  --art-size: 301%;
}

.gel-cure-art--light {
  --art-width: 134px;
  --art-ratio: 260 / 369;
  --art-x: 50%;
  --art-y: 36%;
  --art-size: 308%;
}

.gel-cure-art--cured {
  --art-width: 215px;
  --art-ratio: 266 / 237;
  --art-x: 100%;
  --art-y: 62%;
  --art-size: 301%;
}

.gel-cure-figure figcaption,
.gel-section-figure figcaption {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.gel-cure-figure,
.gel-section-figure {
  scroll-margin-top: 72px;
}

.gel-section-figure {
  max-width: 520px;
  margin-inline: auto;
}

/* 指先の絵の上で、拡大する爪の表面を示す。 */
.gel-tip-view {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
}

.gel-tip-view img {
  display: block;
  width: 100%;
  height: auto;
}

.gel-tip-spot {
  position: absolute;
  top: 26%;
  left: 65%;
  width: 14%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid var(--berry-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card);
}

.gel-section-figure .gel-tip-zoom {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.gel-section-diagram {
  max-width: 360px;
  margin-inline: auto;
  padding: 10px 14px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--band1);
}

.gel-section-pointer {
  color: var(--berry-deep);
  font-size: 15px;
  line-height: 1.45;
}

.gel-section-pointer::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: 5px auto 0;
  border-inline: 5px solid transparent;
  border-top: 7px solid var(--berry-deep);
}

.gel-section-cut {
  padding: 5px 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.gel-section-cut--surface {
  height: 18px;
  padding: 0;
  border-radius: 6px 6px 0 0;
  background: var(--berry-deep);
}

.gel-section-cut--cured {
  background: var(--berry-soft);
}

.gel-section-cut--nail {
  border: 1px solid var(--accent-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--ng-soft);
}

.gel-section-figure .gel-section-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.gel-removal-illustration {
  max-width: 280px;
  aspect-ratio: 6 / 5;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
}

.gel-removal-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#gel-removal,
.gel-coats-figure {
  scroll-margin-top: 72px;
}

.gel-coats-figure {
  max-width: 390px;
  margin-inline: auto;
}

.gel-coats-figure figcaption {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.gel-coats-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 10px;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 14px;
}

.gel-coats-layer {
  align-self: stretch;
  min-height: 28px;
  border: 1px solid var(--accent-dash);
  background: var(--coat-color);
}

.gel-coat--top {
  --coat-color: var(--paper);
  border-radius: 9px 9px 0 0;
}

.gel-coat--color { --coat-color: var(--plum); }
.gel-coat--base { --coat-color: var(--berry-soft); }

.gel-coat--nail {
  --coat-color: var(--ng-soft);
  min-height: 36px;
  border-radius: 0 0 9px 9px;
}

.gel-coats-figure p {
  margin: 10px 0 0;
  font-size: 14px;
}

@media (max-width: 650px) {
  .gel-cure-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
