/* TOP専用CSS(静的版 index.html の <head> 内インライン<style> をそのまま移したもの)。フロントページだけで読み込む。 */
/* PR-TOPVOICE-RESTORE1: TOPの合格体験記スライダーだけに限定。 */
.top-voice-restored .admission-index-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
body:not(.lower-page) .results-voice.top-voice-restored .results,
body:not(.lower-page) .results-voice.top-voice-restored .admission-index,
body:not(.lower-page) .results-voice.top-voice-restored .voice {
  grid-area: auto !important;
  grid-column: 1 / -1 !important;
  width: 100%;
  max-width: none;
}
.top-voice-restored .admission-index-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}
.top-voice-restored .admission-index-list a::after {
  display: block;
  content: "↓";
  color: var(--pink);
  font-weight: 800;
  line-height: 1;
}
.top-voice-restored .admission-index-photo {
  display: block;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 50%;
}
body:not(.lower-page) .results-voice.top-voice-restored .voice-slider-outer {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}
.top-voice-restored .voice-slider {
  overflow: hidden;
  padding: 18px 72px;
}
.top-voice-restored .voice-cards { overflow: visible; }
.top-voice-restored .voice-card,
.top-voice-restored .voice-card.main {
  flex: 0 0 calc(100% - 96px);
  opacity: 0.42;
  transform: scale(0.9);
}
.top-voice-restored .voice-card.is-active {
  opacity: 1;
  transform: scale(1);
}
.top-voice-restored .voice-headline span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-weight: 700;
}
.top-voice-restored .voice-headline h3 { margin: 0; }
.top-voice-restored .admission-index .voice { border-top: 0; }
@media (max-width: 980px) {
  .top-voice-restored .admission-index-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top-voice-restored .admission-index-hint {
    margin: 4px 0 0;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 600;
  }
  body:not(.lower-page) .results-voice.top-voice-restored .admission-index-list {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px 8px !important;
    padding: 0.5rem 0;
  }
  body:not(.lower-page) .top-voice-restored .admission-index-list a {
    display: flex;
    align-items: center;
    flex: 0 0 calc(25% - 6px);
    max-width: calc(25% - 6px);
  }
  body:not(.lower-page) .top-voice-restored .admission-index-list a > span:last-child {
    font-size: 10.5px;
    line-height: 1.2;
    display: block;
  }
  .top-voice-restored .admission-index-photo {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
  /* 2026-09-27: padding:0だと最初のカードが枠に密着し左端が見切れる/スワイプの手掛かりがない状態だった。
     左右に余白を持たせ、カード幅も100%未満にして隣のカードが少し覗く形にする(スクロール領域側で解決)。
     JS側(updateVoiceSlider)はslider paddingを自動で読み取って中央寄せするため、この変更だけで追従する。 */
  .top-voice-restored .voice-slider { padding: 18px 28px !important; }
  .top-voice-restored .voice-card,
  .top-voice-restored .voice-card.main { flex-basis: calc(100% - 0px); }
  .top-voice-restored .top-voice-card .voice-headline span { font-size: 14px; }
  .top-voice-restored .top-voice-card .voice-headline h3 { font-size: 1.3em; }
}
