/* ── この記事でわかること ────────────────────────────────────
   クラスプレフィックス .learn-box は本モジュール専用。
──────────────────────────────────────────────────────────── */

.learn-box {
  border: 2px solid var(--color-accent, #e85d04);
  border-radius: 6px;
  overflow: hidden;
}

.learn-box__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--color-accent, #e85d04);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 16px;
}

.learn-box__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.learn-box .learn-box__list {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: color-mix(in srgb, var(--color-accent, #e85d04) 6%, #fff);
}

@supports not (background: color-mix(in srgb, red 6%, white)) {
  .learn-box .learn-box__list { background: #fff6ee; }
}

.learn-box .learn-box__item {
  position: relative;
  padding-left: 1.6em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text, #1a1a1a);
}

.learn-box .learn-box__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background-color: transparent;
  border-radius: 0;
  box-sizing: content-box;
  color: var(--color-accent, #e85d04);
  font-weight: 700;
}

@media (max-width: 640px) {
  .learn-box__bar { font-size: 12px; }
  .learn-box__item { font-size: 13px; }
}
