* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #ECECEC;
}

header {
    background-color: #fff;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    padding: 30px 0 20px;
    font-size: 1.5rem;
}

h2 {
    margin: 0;
    text-align: center;
    margin-bottom: 30px;
}
br.pc{
    display: none;
  }

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
        padding: 60px 0 20px;
    }
    br.pc{
        display: inherit;
    }
  br.smp{
    display: none;
  }
}


/* タブ */
.tab-history {
    display: flex;
    overflow: hidden;
    padding: 0 10px;
}

.tab-button {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #745399;
    cursor: pointer;
    border-bottom: 1px solid #745399;
    margin: 0 1px;
}

.tab-button a{
    width: 100%;
    display: block;
    height: 100%;
    padding: 10px 0;
}

.tab-button.active {
    border-bottom: 5px solid #5d4b8c;
    font-weight: 600;
}

/* タブコンテンツ */
.tab-content {
    margin-bottom: 40px;
    padding: 0 10px;
    line-height: 1.5;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* フィルターセクション */
.filter-section {
    display: grid;
    justify-content: center;
    margin-bottom: 30px;
    grid-template-columns: auto auto;
    gap: 8px;
}

.filter-btn {
    padding: 8px 0px;
    border: 1px solid #A48B78;
    border-radius: 5px;
    background-color: #fff;
    color: #A48B78;
    font-weight: bold;
    font-size: .9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    width: 150px;
    text-align: center;
    font-family: "noto-sans-cjk-jp", sans-serif;
}

#tab_w_record .filter-btn , #tab_j_record .filter-btn {
width: 100px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #C99B20 0%, #AA7701 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(170, 119, 1, 0.08);
}

.filter-btn:hover span,
.filter-btn.active span {
    color: #fff;
}

.filter-btn.active {
    background: none;
    border: none;
}

#tab_memorable{
    padding-bottom:80px ;
}

@media (min-width: 768px) {
    .tab-history {
        max-width: 1200px;
        margin: 0 auto 40px;
    }

    .tab-button {
        font-size: 1.12rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .filter-btn {
        font-size: 1.1rem;
        padding: 15px 0px;
        width: 220px;

    }
    #tab_memorable{
        padding-bottom:220px ;
    }

}


/* --- history --- */
img {
    width: 100%;
    height: 100%;
}

/* スマホ表示（ベーススタイル） */
.history {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.history__link {
    display: block;
    position: relative;
    z-index: 3;
}

.history-list {
    display: flex;
    justify-content: center;
    width: 100%;
}

.history-list .filter-section {
    grid-template-columns: auto;
    gap: 0;
    margin-bottom: 0;
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
}

.history:before {
    content: "";
    width: 2px;
    height: 100%;
    background: #745399;
    position: absolute;
    transform: translateX(-50%);
    z-index: 0;
    left: 5px;
}

.history__item {
    position: relative;
    display: block;
    padding: 0 0 35px 20px;
    width: 94%;
    margin-bottom: 60px;
}

.history__item:not(:first-child) {
    margin-top: -40px;
}

.history__item:before {
    content: "";
    width: 8px;
    height: 8px;
    background: #745399;
    position: absolute;
    border-radius: 50%;
    top: 0;
    transform: translate(-50%, 0);
    z-index: 1;
    left: 5px;
}

.history__inner {
    position: relative;
    box-sizing: border-box;
}

.history__item:nth-of-type(2n) .history__inner {
    text-align: left !important;
}

.history__title {
    position: static;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 10px;
    padding: 0;
    color: #333;
    text-align: left;
}

.history__item:nth-of-type(odd) .history__title,
.history__item:nth-of-type(2n) .history__title {
    text-align: left;
    right: auto;
    left: 0;
    margin-left: 0;
}

.history__image {
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 100%;
}
.history__image .lazy{
    aspect-ratio: 1000/688;
}

.history__image:nth-of-type(2) {
    margin-top: 20px;
}

.history__image .lazy img{
    height: 100%;
}

.history__image img {
    display: block;
    width: 100%;
    height: auto;
}

.history__text {
    padding: 15px;
    letter-spacing: 0.05em;
    background-color: #fff;
    border-radius: 10px;
    font-size: .75rem;
    margin-bottom: 10px;
}
.record-table .cell:nth-child(5n+5){
    text-align: left;
}
.record-table .cell:nth-child(5n+4) br{
   margin-left: 5px;
}

.history__video {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
    margin: 5px 0 10px;
    line-height: 0;
}

.history__video .lazy {
    aspect-ratio: 16/9;
    background: center center no-repeat;
    background-size: cover;
}

.history__video:hover {
    opacity: 0.8;
}

.history__info {
    position: relative;
    top: 0;
    transform: none;
    padding-right: 0;
    text-align: left;
    margin-bottom: 10px;
    z-index: 2;
    line-height: .5;
}

.video-thumb {
    width: 150px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.video-text {
    font-size: .75rem;
    line-height: 1.5;
    padding: 6px;
}

.history__item:nth-of-type(2n) .history__info {
    right: auto;
    transform: none;
    padding-left: 0;
    text-align: left;
}

.history__num {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #745399;
    display: block;
}

.year {
    background: linear-gradient(90deg, #C99B20 0%, #AA7701 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    line-height: 1;
    width: fit-content;
}

span.place {
    color: #000;
    -webkit-text-fill-color: black;
    font-size: 1rem;

}

.history__year {
    font-size: 20px;
    font-weight: bold;
    margin-right: 6px;
}





.history__item:nth-of-type(2n)::after {
    left: 30px;
    right: auto;
    width: 30px;
    background: #745399;
}

.history__item:last-child {
    padding-bottom: 15px;
}





/* PCサイズ */
@media only screen and (min-width: 768px) {
    .history-list .filter-section {
        bottom: -180px;
    }
    .history {
        max-width: 1200px;
    }

    .history:before {
        left: 50%;
        z-index: 0;
    }

    .history__item {
        padding: 0;
        display: flex;
        margin-bottom: 0;
        width: 100%;
    }

    .history__item:nth-of-type(2n) .history__inner {
        margin-left: 50px !important;
    }

    .history__item:not(:first-child) {
        margin-top: -200px;
    }

    .history__item:nth-of-type(2n) {
        justify-content: flex-end;
    }

    .history__item:before {
        left: 50%;
        top: calc(36vw / 12);
        width: 10px;
        height: 10px;
    }

    .history__inner {
        max-width: calc(530vw / 12);
        margin: 0 !important;
    }

    .history__item::after {
        content: "";
        position: absolute;
        top: calc(40vw / 12);
        height: 2px;
        background: #745399;
        z-index: 0;
        left: auto;
        right: 50%;
        width: calc(330vw / 12);
    }

    .history__item:nth-of-type(2n)::after {
        left: 50%;
        right: auto;
        width: calc(60vw / 12);
    }

    .history__item:nth-of-type(2n) .history__inner {
        margin-left: calc((100% - 450px) / 4 + 15px) !important;
    }





    .history__item:last-child {
        padding-bottom: 0;
    }



    .history__title {
        margin: 15px 0 20px;
    }

    .history__text {
        margin-top: 15px;
        font-size: 1rem;
    }

    .history__num {
        font-size: calc(14vw / 12);
    }

    .history__year {
        font-size: 24px;
    }

    .year {
        font-size: calc(32vw / 12);

    }

    .history__image {
        margin-top: 40px;
    }

    .video-thumb {
        width: calc(270vw / 12);
    }

    .video-text {
        font-size: calc(14vw / 12);
    }

    span.place {
        font-size: calc(16vw/12);
    }
}


@media only screen and (min-width:1201px) {
    .history__item:before {
        top: 36px;
    }

    .history__item::after {
        top: 40px;
        width: 330px;
    }

    .history__item:nth-of-type(2n)::after {
        width: 60px;
    }

    .history__num {
        font-size: 14px;
    }

    .year {
        font-size: 32px;
    }

    span.place {
        font-size: 16px;
    }

    .history__inner {
        max-width: 530px
    }

    .video-thumb {
        width: 270px;
    }

    .video-text {
        font-size: 14px;
    }
}


.subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #745399;
    margin-bottom: 18px;
    font-weight: 600;
}


/*世界記録・日本記録*/
.record h2 {
    line-height: 1;
    font-size: 1.1rem;
}
.record h2 span {
    font-size: .75rem;
}

.sidenote span {
    font-size: .75rem;
}
.record h3 {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
}

.record .filter-section {
    grid-template-columns: auto auto auto;
    margin-bottom: 20px;
}

.record-table {
    display: grid;
    grid-template-columns: 28% 72%;
    margin: 0 auto 50px;
    font-size: 14px;
}

.record-table .cell {
    border: none;
    padding: 3px;
}



.record-table .cell:nth-child(5n+1),
.record-table .header:nth-child(5n+1) {
    grid-column: 1 / 2;
    grid-row: span 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-table .cell:nth-child(5n+2),
.record-table .cell:nth-child(5n+3),
.record-table .cell:nth-child(5n+4),
.record-table .cell:nth-child(5n+5) {
    grid-column: 2 / 3;
}
.record-table .header:nth-child(5n+1),
.record-table .header:nth-child(5n+4) {
    margin-bottom: 5px;
}

.record-table .cell:nth-child(5n+2) {
    font-size: 1rem;
    padding-top: 10px;
}

.record-table .header {
    background-color: #745399;
    color: #fff;
    font-size: 16px;
}
.record-table .cell:nth-child(5n+5) {
    border-bottom: 1px solid #ccc;
    grid-column: 1 / -1; 
  }
  .record-table .cell:nth-child(10n + 1),
  .record-table .cell:nth-child(10n + 2),
  .record-table .cell:nth-child(10n + 3),
  .record-table .cell:nth-child(10n + 4),
  .record-table .cell:nth-child(10n + 5) {
      background-color: #e0e0f8;
  }



@media (min-width: 768px) {
    .record h2 {
        font-size: 1.5rem;
    }


    .record h3 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .record .filter-section {
        margin-bottom: 90px;
    }

    .record-table {
        display: grid;
        grid-template-columns: 1fr 1.5fr 3fr 2fr 3fr;
        gap: 0;
        max-width: 1200px;
        margin: 0 auto 90px;
        background-color: #fff;
        font-size: 16px;
    }

    .record-table .cell:nth-child(5n+1),
    .record-table .header:nth-child(5n+1) {
        grid-column: inherit;
        grid-row: inherit;
        display: flex;
    }

    .record-table .cell:nth-child(5n+2),
    .record-table .cell:nth-child(5n+3),
    .record-table .cell:nth-child(5n+4),
    .record-table .cell:nth-child(5n+5) {
        grid-column: inherit;
    }



    .record-table .cell:nth-child(5n + 3) {
        justify-content: flex-start;
        text-align: left;
    }

    .record-table .header:nth-child(5n+1),
    .record-table .header:nth-child(5n+4) {
        margin-bottom: 0;
    }
    .record-table .cell:nth-child(5n+2) {
        margin-top: 0px;
    }

    .record-table .header,
    .record-table .cell {
        border-bottom: 1px solid #c6c6e6;
        border-right: 1px solid #c6c6e6;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .header {
        font-weight: 600;
        padding: 20px 0;
    }

    .record-table>.header:nth-child(5n+1),
    .record-table>.cell:nth-child(5n+1) {
        border-left: 1px solid #c6c6e6;
    }

    .sidenote {
        flex-direction: column
    }



    .record .cell {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        min-height: 72px;

    }

    .record .history__video {
        border-radius: 0;
        margin-top: 0;
        background-color: initial;
        margin-top: 15px;
    
    }
    .video-cell{
        margin-bottom: 0px;
    }

    .record .video-thumb {
        width: calc(150vw / 12);
    }
    .record-table .cell:nth-child(5n+1).event,.record-table .cell:nth-child(5n+2).event{
        grid-row: span 2;
      display: flex;
      align-items: center;
      justify-content: center;
      }
      .record-table .cell:nth-child(5n+1).hidden,.record-table .cell:nth-child(5n+2).hidden{
    display: none;
      }

}

@media (min-width: 1201px) {
    .record .video-thumb {
        width: 150px;
    }
    
  }
  

/************** Uniweb ***************/
.accessibility--FIH .filter-btn::before,.accessibility--FITT .filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #AA7701 ;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.accessibility--FIH .year,.accessibility--FITT .year{
    background-color: #AA7701;
  }
