.fes-second {
  --blue: #079fec;
  --orange: #ff7836;
  background: #fff;
  color: #111;
  font-family: var(--fes-body-font, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
  font-weight: 500;
}

.fes-second-inner {
  width: min(100% - 48px,1200px);
  margin: auto;
  padding: 56px 0;
}

.fes-second .fes-second-announcement {
  font-family: 'M PLUS 1p',sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 22px;
}

.fes-second-announcement::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 4px;
  margin: 0 10px 5px 0;
  background: var(--blue);
  transform: skewX(-25deg);
}

.fes-second h2 {
  margin: 0 0 24px;
  font-family: 'Zen Kaku Gothic New',sans-serif;
  font-size: clamp(25px,6.5vw,52px);
  line-height: 1.4;
  font-weight: 900;
}

.fes-second h2 span {
  color: var(--blue);
}

.fes-topics-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 16px;
}

.fes-topics-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 1px solid #079fec;
  border-radius: 50%;
  background: #fff;
  color: #079fec;
  font-size: 22px;
  cursor: pointer;
}

.fes-topics-controls button:disabled {
  opacity: .3;
  cursor: default;
}

.fes-topics-controls button:hover:not(:disabled) {
  background: #f3fbfe;
}

.fes-topics-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #bde6f7 transparent;
  padding: 8px 0 20px;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.fes-topics-track::-webkit-scrollbar {
  height: 4px;
}

.fes-topics-track::-webkit-scrollbar-thumb {
  background: #bde6f7;
}

.fes-topics-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.fes-topic {
  flex: 0 0 360px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
  border: 1px solid #e8eff2;
}

.fes-topic-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3fbfe;
}

.fes-topic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.fes-topic--athlete .fes-topic-photo img {
  object-position: center 25%;
}

.fes-topic--team .fes-topic-photo img {
  object-position: center 65%;
}

.fes-topic--timing .fes-topic-photo img {
  object-position: center center;
}

.fes-topic-illustration img {
  object-fit: contain;
}

.fes-topic-logo {
  background: #fff;
}

.fes-topic-logo img {
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.fes-topic-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  background: #EAF7FC;
}

.fes-topic h3 {
  margin: 0 0 14px;
  font-family: 'Zen Kaku Gothic New',sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.025em;
  line-height: 1.5;
}

.fes-topic p {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 16px;
}

.fes-second-sports {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: auto 0 0;
}

.fes-second-sports li {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  background: #f3fbfe;
  color: #067cac;
  padding: 4px 8px;
  border-radius: 3px;
}

.fes-topic .fes-topic-record {
  font-size: 14px;
  font-weight: 700;
}

.fes-topic-record span {
  color: var(--blue);
}

.fes-topic-record strong {
  color: var(--orange);
  font-size: 18px;
}

.fes-topic-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.fes-topic-link span {
  font-size: 22px;
}

a.fes-topic {
  cursor: pointer;
  transition: transform .2s,box-shadow .2s;
}

a.fes-topic:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

a.fes-topic:hover img {
  transform: scale(1.035);
}

.fes-topics :focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

@media(min-width:768px) {
  .fes-second-inner {
    width: min(90%,1200px);
    padding: 80px 0;
  }

  .fes-second .fes-second-announcement {
    font-size: 23px;
  }

  .fes-topics {
    max-width: 1100px;
  }
}

@media(max-width:767px) {
  .fes-second-inner {
    width: calc(100% - 32px);
  }

  .fes-topics-track {
    gap: 16px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .fes-topic {
    flex-basis: 84vw;
  }

  .fes-topic-body {
    padding: 20px;
  }

  .fes-topic h3 {
    font-size: 21px;
  }
}

@media(prefers-reduced-motion:reduce) {
  a.fes-topic,.fes-topic-photo img {
    transition: none;
  }
}
