.ma-sfa-detail {
  --detail-ink: #2b2020;
  --detail-red: #a5121c;
  --detail-wine: #6e0d14;
  --detail-muted: #564b4c;
  --detail-border: #ead8d7;
  --detail-tint: #fbefee;
  padding: clamp(60px, 7vw, 104px) 0;
  color: var(--detail-ink);
  background: #fff;
}
.ma-sfa-detail--tint { background: #fff8f8; }
.ma-sfa-detail__heading {
  max-width: 820px;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.ma-sfa-detail__heading h2 {
  margin: 0;
  color: var(--detail-wine);
  font-size: clamp(28px, 4vw, 49px);
  font-weight: 750;
  line-height: 1.3;
  text-wrap: balance;
}
.ma-sfa-detail__heading p:not(.ma-sfa-detail__label) {
  margin: 16px 0 0;
  color: var(--detail-muted);
  font-size: 16px;
  line-height: 1.9;
}
.ma-sfa-detail .ma-sfa-detail__label,
.ma-sfa-detail .ma-sfa-detail__tag {
  margin: 0 0 7px;
  color: var(--detail-red);
  font-size: 13px;
  font-weight: 750;
}
.ma-sfa-detail__entry,
.ma-sfa-detail__players,
.ma-sfa-detail__example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 30px);
}
.ma-sfa-detail__entry article,
.ma-sfa-detail__players article,
.ma-sfa-detail__example > div {
  min-width: 0;
  padding: clamp(19px, 2.65vw, 32px);
  border: 1px solid var(--detail-border, #ead8d7);
  border-radius: 13px;
  background: #fff;
}
.ma-sfa-detail__entry article:first-child { background: var(--detail-tint); }
.ma-sfa-detail h3,
.ma-sfa-detail__team h3,
.ma-sfa-detail__team h4 {
  margin: 0 0 9px;
  color: var(--detail-wine, #6e0d14);
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 750;
  line-height: 1.45;
}
.ma-sfa-detail article p,
.ma-sfa-detail__sequence p,
.ma-sfa-detail__example p,
.ma-sfa-detail__example li,
.ma-sfa-detail__team p {
  margin: 0;
  color: var(--detail-muted, #564b4c);
  font-size: 15px;
  line-height: 1.85;
}
.ma-sfa-detail__sequence {
  margin: 27px 0 0;
  padding: 0;
  counter-reset: sequence;
}
.ma-sfa-detail__sequence > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(10px, 2.8vw, 26px);
  padding: 21px 0;
  border-bottom: 1px solid var(--detail-border);
  counter-increment: sequence;
}
.ma-sfa-detail__sequence > li::before {
  content: counter(sequence, decimal-leading-zero);
  color: var(--detail-red);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}
.ma-sfa-detail__sequence--phases > li:first-child { border-top: 1px solid var(--detail-border); }
.ma-sfa-detail__pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.ma-sfa-detail__pipeline span {
  position: relative;
  padding: 12px 7px;
  border-radius: 7px;
  background: var(--detail-tint);
  color: var(--detail-wine);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.ma-sfa-detail__pipeline span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  color: var(--detail-red);
  content: "›";
  font-size: 18px;
}
.ma-sfa-detail__team { margin-top: clamp(45px, 6vw, 74px); }
.ma-sfa-detail__team > p:not(.ma-sfa-detail__decision) { margin-bottom: 22px; }
.ma-sfa-detail__pm {
  width: min(100%, 780px);
  margin: 0 auto 22px;
  padding: 20px 24px;
  border-radius: 13px;
  background: #6e0d14;
  text-align: center;
}
.ma-sfa-detail__pm h4,
.ma-sfa-detail__pm p { color: #fff; }
.ma-sfa-detail__players { position: relative; }
.ma-sfa-detail__players::before {
  position: absolute;
  top: -22px;
  left: 50%;
  height: 22px;
  width: 1px;
  background: #d5a4a5;
  content: "";
}
.ma-sfa-detail__players h4 { font-size: 20px; }
.ma-sfa-detail__team .ma-sfa-detail__decision,
.ma-sfa-detail .ma-sfa-detail__decision {
  margin-top: 23px;
  padding: 16px 20px;
  border-radius: 9px;
  background: #fbeae9;
  color: #49272a;
  font-size: 14px;
  line-height: 1.85;
}
.ma-sfa-detail__example dl { margin: 13px 0 0; }
.ma-sfa-detail__example dl div {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--detail-border);
}
.ma-sfa-detail__example dt { color: var(--detail-red); font-weight: 750; }
.ma-sfa-detail__example dd { margin: 0; }
.ma-sfa-detail__example ul { padding-left: 1.25em; }
.ma-sfa-detail__example li + li { margin-top: 10px; }
.ma-sfa-detail__reports {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  color: var(--detail-muted);
  font-size: 14px;
  line-height: 1.62;
}
.ma-sfa-detail__reports caption {
  margin-bottom: 8px;
  color: var(--detail-wine);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}
.ma-sfa-detail__reports :is(th, td) {
  padding: 13px 15px;
  border-bottom: 1px solid var(--detail-border);
  text-align: left;
  vertical-align: top;
}
.ma-sfa-detail__reports thead { background: var(--detail-wine); color: #fff; }
.ma-sfa-detail__reports tbody th { width: 17%; background: var(--detail-tint); color: var(--detail-wine); }
.ma-sfa-detail__reports tbody td:nth-child(2) { width: 32%; }
@media (max-width: 720px) {
  .ma-sfa-detail__entry, .ma-sfa-detail__players, .ma-sfa-detail__example {
    grid-template-columns: minmax(0, 1fr);
  }
  .ma-sfa-detail__pipeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  .ma-sfa-detail__pipeline span:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -17px;
    transform: translateX(50%) rotate(90deg);
  }
  .ma-sfa-detail__reports :is(tbody, tr, th, td) { display: block; }
  .ma-sfa-detail__reports thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .ma-sfa-detail__reports tbody th,
  .ma-sfa-detail__reports tbody td:nth-child(2) { width: auto; }
  .ma-sfa-detail__reports tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--detail-red);
    font-weight: 750;
  }
  .ma-sfa-detail__reports tbody td:nth-child(2)::before { content: "確認する数字"; }
  .ma-sfa-detail__reports tbody td:nth-child(3)::before { content: "定例で判断すること"; }
}
