@keyframes fadeInGrid {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transform-origin: center;
  }

  1% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.p-olympic-2024-sidebar-box-header a {
  color: #000000;
}

@media screen and (min-width: 600px) {
  .p-olympic-2024-sidebar-sokudashi {}

  .p-olympic-2024-sidebar-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .p-olympic-2024-sidebar-box-header_link:after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid #1E2428;
    border-right: 2px solid #1E2428;
    display: inline-block;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: 5px;
  }

  .p-olympic-2024-sidebar-sokudashi {
    margin-top: 20px;
  }

  .p-olympic-2024-sidebar-box-header_link {
    font-size: 14px;
    padding: 3px 0;
    line-height: 1.2;
  }

  .p-olympic-2024-sidebar-box-header_link:hover {
    color: #165394;
  }

  .p-olympic-2024-sidebar-box-header_link:hover::after {
    border-top: 2px solid #165394;
    border-right: 2px solid #165394;
  }

  .p-olympic-2024-sidebar-box-header h2 {
    font-size: 18px;
    font-weight: bold;
  }

  .p-olympic-2024-sidebar-box-header_link {
    display: inline-block;
    /* background-color: #081b6d; */
    /* color: #FFFFFF; */
    font-size: 15px;
    /* font-size: .75rem; */
    padding: 3px 5px;
    line-height: 1.2;
    /* font-weight: normal; */
  }

  .olympic-2024-sokudashi-square {
    display: grid;
    display: -ms-grid;
    grid-gap: 8px;
  }

  .olympic-2024-sokudashi-square.fadeIn li {
    animation: 0.3s ease fadeInGrid forwards;
  }

  .olympic-2024-sokudashi-square.horizontal0 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 130px);
    -ms-grid-columns: 1fr 8px 1fr 8px 1fr;
    -ms-grid-rows: 130px 8px 130px;
  }

  .olympic-2024-sokudashi-square.horizontal1 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 130px);
    -ms-grid-columns: 1fr 8px 1fr 8px 1fr;
    -ms-grid-rows: 130px 8px 130px;
  }

  .olympic-2024-sokudashi-square.horizontal2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 97px);
    -ms-grid-columns: 1fr 8px 1fr;
    -ms-grid-rows: 97px 8px 97px 8px 97px;
  }

  .olympic-2024-sokudashi-square.horizontal3 {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: repeat(6, 50px);
    -ms-grid-columns: 3fr 8px 2fr;
    -ms-grid-rows: 50px 8px 50px 8px 50px 8px 50px 8px 50px 8px 50px;
  }

  .olympic-2024-sokudashi-square.horizontal4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 97px);
    -ms-grid-columns: 1fr 8px 1fr;
    -ms-grid-rows: 97px 8px 97px 8px 97px;
  }

  .olympic-2024-sokudashi-square.horizontal5 {
    grid-template-columns: 2fr 3fr;
    grid-template-rows: repeat(12, 20px);
    -ms-grid-columns: 2fr 8px 3fr;
    -ms-grid-rows: 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px 8px 20px;
  }

  .olympic-2024-sokudashi-square.horizontal6 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 97px);
    -ms-grid-columns: 1fr 8px 1fr;
    -ms-grid-rows: 97px 8px 97px 8px 97px;
  }
}

@media screen and (max-width: 599px) {
  .p-olympic-2024-sidebar-sokudashi {
    margin-top: 16px;
  }

  .p-olympic-2024-sidebar-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 32px);
    margin: 0 auto 12px;
  }

  .p-olympic-2024-sidebar-extra-news .p-olympic-2024-sidebar-box-header {
    width: 100%;
  }

  .p-olympic-2024-sidebar-box-header_link:after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid #1E2428;
    border-right: 2px solid #1E2428;
    display: inline-block;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: 5px;
  }

  .p-olympic-2024-sidebar-sokudashi {
    margin-top: 20px;
  }

  .p-olympic-2024-sidebar-box-header_link {
    font-size: 14px;
    padding: 3px 0;
    line-height: 1.2;
  }

  .p-olympic-2024-sidebar-box-header h2 {
    font-size: 18px;
    font-weight: bold;
  }

  /* .p-olympic-2024-sidebar-box-header a {
    display: inline-block;
    background-color: #081b6d;
    color: #FFFFFF;
    font-size: 12px;
    font-size: .75rem;
    padding: 3px 5px;
    line-height: 1.2;
    font-weight: normal;
  } */
  .olympic-2024-sokudashi-square {
    display: grid;
    grid-gap: 8px;
    padding: 0 16px;
  }

  .olympic-2024-sokudashi-square.fadeIn li {
    animation: 0.3s ease fadeInGrid forwards;
  }

  .olympic-2024-sokudashi-square.horizontal0 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 44vw);
  }

  .olympic-2024-sokudashi-square.horizontal1 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 44vw);
  }

  .olympic-2024-sokudashi-square.horizontal2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 34vw);
  }

  .olympic-2024-sokudashi-square.horizontal3 {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: repeat(6, 16vw);
  }

  .olympic-2024-sokudashi-square.horizontal4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 31vw);
  }

  .olympic-2024-sokudashi-square.horizontal5 {
    grid-template-columns: 2fr 3fr;
    grid-template-rows: repeat(12, 6vw);
  }

  .olympic-2024-sokudashi-square.horizontal6 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 31vw);
  }
}

.olympic-2024-sokudashi-square.horizontal0 li:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal0 li:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  -ms-grid-column: 3;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal0 li:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  -ms-grid-column: 5;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal0 li:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  -ms-grid-column: 1;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal0 li:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  -ms-grid-column: 3;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal0 li:nth-child(6) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  -ms-grid-column: 5;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal1 li:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal1 li:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  -ms-grid-column: 5;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal1 li:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  -ms-grid-column: 1;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal1 li:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  -ms-grid-column: 3;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal1 li:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  -ms-grid-column: 5;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal2 li:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
}

.olympic-2024-sokudashi-square.horizontal2 li:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  -ms-grid-column: 3;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal2 li:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  -ms-grid-column: 3;
  -ms-grid-row: 3;
  -ms-grid-row-span: 3;
}

.olympic-2024-sokudashi-square.horizontal2 li:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  -ms-grid-column: 1;
  -ms-grid-row: 5;
}

.olympic-2024-sokudashi-square.horizontal3 li:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
}

.olympic-2024-sokudashi-square.horizontal3 li:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 3 / 5;
  -ms-grid-column: 1;
  -ms-grid-row: 5;
  -ms-grid-row-span: 3;
}

.olympic-2024-sokudashi-square.horizontal3 li:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 5 / 7;
  -ms-grid-column: 1;
  -ms-grid-row: 9;
  -ms-grid-row-span: 3;
}

.olympic-2024-sokudashi-square.horizontal3 li:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  -ms-grid-column: 3;
  -ms-grid-row: 1;
  -ms-grid-row-span: 5;
}

.olympic-2024-sokudashi-square.horizontal3 li:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 4 / 7;
  -ms-grid-column: 3;
  -ms-grid-row: 7;
  -ms-grid-row-span: 5;
}

.olympic-2024-sokudashi-square.horizontal4 li:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal4 li:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  -ms-grid-column: 3;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal4 li:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 4;
  -ms-grid-column: 1;
  -ms-grid-row: 3;
  -ms-grid-row-span: 3;
}

.olympic-2024-sokudashi-square.horizontal4 li:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  -ms-grid-column: 3;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal4 li:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  -ms-grid-column: 3;
  -ms-grid-row: 5;
}

.olympic-2024-sokudashi-square.horizontal5 li:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 7;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
  -ms-grid-row-span: 11;
}

.olympic-2024-sokudashi-square.horizontal5 li:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 7 / 10;
  -ms-grid-column: 1;
  -ms-grid-row: 13;
  -ms-grid-row-span: 5;
}

.olympic-2024-sokudashi-square.horizontal5 li:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 10 / 13;
  -ms-grid-column: 1;
  -ms-grid-row: 19;
  -ms-grid-row-span: 5;
}

.olympic-2024-sokudashi-square.horizontal5 li:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 1 / 5;
  -ms-grid-column: 3;
  -ms-grid-row: 1;
  -ms-grid-row-span: 7;
}

.olympic-2024-sokudashi-square.horizontal5 li:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 5 / 9;
  -ms-grid-column: 3;
  -ms-grid-row: 9;
  -ms-grid-row-span: 7;
}

.olympic-2024-sokudashi-square.horizontal5 li:nth-child(6) {
  grid-column: 2 / 3;
  grid-row: 9 / 13;
  -ms-grid-column: 3;
  -ms-grid-row: 17;
  -ms-grid-row-span: 7;
}

.olympic-2024-sokudashi-square.horizontal6 li:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal6 li:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  -ms-grid-column: 3;
  -ms-grid-row: 1;
}

.olympic-2024-sokudashi-square.horizontal6 li:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  -ms-grid-column: 1;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal6 li:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  -ms-grid-column: 3;
  -ms-grid-row: 3;
}

.olympic-2024-sokudashi-square.horizontal6 li:nth-child(5) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  -ms-grid-column: 1;
  -ms-grid-row: 5;
}

.olympic-2024-sokudashi-square.horizontal6 li:nth-child(6) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  -ms-grid-column: 3;
  -ms-grid-row: 5;
}

.olympic-2024-sokudashi-square li img {
  object-fit: cover;
  font-family: 'object-fit: cover;';
  /*IE対策*/
  width: 100%;
  height: 100%;
}