/* ============================================================
   アメフトとは（/アメフトとは/）— ページ専用CSS
   共通部分（配色・ナビ・見出し・ボタン・カード）は shinkan-common.css
   ============================================================ */
/* ----- MOVIE ----- */
.am-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--sk-radius);
  overflow: hidden;
  background: #000000;
}
.am-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- GAME FLOW ----- */
.am-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
}
.am-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 6px;
  border: 7px solid transparent;
  border-left: 10px solid var(--sk-blue);
  z-index: 1;
}
.am-flow-badge {
  display: inline-block;
  background: var(--sk-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.am-flow-step:last-child .am-flow-badge { background: var(--sk-yellow); color: var(--sk-ink); }
.am-flow-step h3 { font-size: 17px; font-weight: 900; line-height: 1.5; margin-bottom: 6px; }
.am-flow-step p { font-size: 15px; }
.am-flow-ng {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--sk-gray);
  border-radius: 8px;
  font-size: 14px !important;
}
.am-flow-ng b { display: block; color: #8A6400; }
@media (max-width: 900px) {
  .am-flow { grid-template-columns: 1fr 1fr; }
  .am-flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .am-flow { grid-template-columns: 1fr; gap: 28px; }
  .am-flow-step:not(:last-child)::after {
    display: block;
    right: auto;
    left: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top: 10px solid var(--sk-blue);
  }
}

.am-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 28px; }
.am-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.am-score-pt { font-weight: 700; line-height: 1.1; }
.am-score-pt b { font-weight: 900; font-size: 44px; margin-right: 2px; color: var(--sk-blue); }
.am-score--after .am-score-pt b { color: var(--sk-ink); }
.am-score-name { font-weight: 900; margin: 8px 0 4px; line-height: 1.5; }
.am-score-desc { font-size: 14px; line-height: 1.6; color: var(--sk-sub); }
@media (max-width: 860px) { .am-scores { grid-template-columns: 1fr 1fr; } }

/* ----- FIELD ----- */
/* Elementorが .elementor-widget 内の figure の margin を0にする（詳細度が高い）ので、figure の下の余白は padding で取る */
.am-figure { padding-bottom: 36px; }
.am-figure img { border-radius: var(--sk-radius); width: 100%; }
.am-figure figcaption { text-align: center; font-size: 14px; color: var(--sk-sub); margin-top: 10px; }
.am-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
.am-terms dt { font-weight: 900; color: var(--sk-blue); margin-bottom: 4px; }
.am-terms dd { font-size: 15px; }
@media (max-width: 700px) { .am-terms { grid-template-columns: 1fr; } }

/* ----- POSITIONS ----- */
.am-pos-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 48px;
}
.am-pos-jump-row { display: flex; align-items: center; gap: 10px; }
.am-pos-jump p { font-size: 13px; font-weight: 700; color: var(--sk-sub); white-space: nowrap; }
.am-pos-jump ul { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
@media (max-width: 600px) {
  .am-pos-jump { flex-direction: column; align-items: stretch; gap: 10px; }
  .am-pos-jump-row { align-items: flex-start; }
  .am-pos-jump p { flex: none; width: 5.8em; padding-top: 8px; }
  .am-pos-jump a { min-width: 42px; padding: 6px 6px; }
}
.am-pos-jump a {
  display: block;
  min-width: 46px;
  text-align: center;
  font-family: var(--sk-font-en);
  font-size: 17px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sk-blue);
  color: #FFFFFF !important;
}
.am-pos-jump a:hover { background: var(--sk-yellow); color: var(--sk-ink) !important; }

.am-pos-group + .am-pos-group { margin-top: 64px; }
.am-pos-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 21px;
  font-weight: 900;
  border-bottom: 3px solid var(--sk-blue);
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.am-pos-group-title::before {
  content: attr(data-en);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--sk-blue);
}

.am-pos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
.am-pos {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 20px;
}
.am-pos-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto !important; border-radius: var(--sk-radius); }
.am-pos-body { padding-top: 18px; }
.am-pos-abbr {
  font-family: var(--sk-font-en);
  font-size: 38px;
  line-height: 1;
  color: var(--sk-blue);
}
.am-pos-abbr span {
  font-family: var(--sk-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sk-sub);
  margin-left: 10px;
  vertical-align: 0.3em;
}
.am-pos-name { font-size: 19px; font-weight: 900; margin: 6px 0 2px; line-height: 1.5; }
.am-pos-catch {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--sk-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
  margin-bottom: 12px;
}
.am-pos-body > p:not(.am-pos-abbr):not(.am-pos-catch):not(.am-pos-senpai) { font-size: 15px; }
.am-pos-senpai {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sk-blue);
  background: var(--sk-gray);
  border-radius: 8px;
  padding: 8px 12px;
}
@media (max-width: 760px) { .am-pos-grid { grid-template-columns: 1fr; } }

/* ----- GLOSSARY ----- */
.am-glossary div {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sk-line);
}
.am-glossary dt { font-weight: 900; color: var(--sk-blue); }
.am-glossary dd { font-size: 15px; }
@media (max-width: 600px) {
  .am-glossary div { grid-template-columns: 1fr; gap: 2px; }
}
