* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 0.65vw;
    height: 100%;
}

body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #111;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 1.6rem;
    position: relative;
}

body::before {
    content: "";
    display: block;
    position: absolute;
    background-image: url(../img/bg.webp);
    background-size: cover;
    width: 100%;
    height: 100%;
    position: fixed;
    background-position: center;
}

main {
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 8rem 0;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

a:hover {
    opacity: 0.8;
}

.container {
    width: 120rem;
    margin: auto;
}

.sub-page .contents-wrap {
    background-color: rgb(255 255 255 / 80%);
    padding: 3.2rem 2.8rem;
    box-shadow: 0 0 1rem rgb(247 235 17 / 50%);
}

.main-title {
    text-align: center;
    margin-bottom: 2.8rem;
    font-size: 3.2rem;
    background: linear-gradient(to bottom, #f7d26f 0%, #ce8b28 100%);
}

.sp-only {
    display: none;
}

/* ヘッダー */

#kv {
    height: 100svh;
    height: 100dvh;
    height: 100vh;
    background-image: url(../img/kv_bg.webp);
    background-size: cover;
    background-position-y: 28%;
    background-position-x: center;
    position: relative;
}

#kv .catch {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    max-height: 23%;
}

#kv .title img {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    max-height: 38%;
    max-width: 90%;
}

.kv-l {
    position: absolute;
    top: 40%;
    left: 0%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    max-height: 80%;
    max-width: 40%;
}

.kv-r {
    position: absolute;
    top: 40%;
    right: 0%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    max-height: 85%;
    max-width: 40%;
}

#kv .takamatsu-logo {
    position: absolute;
    left: 2%;
    top: 2%;
    width: 20rem;
}

#kv .komatsushima-logo {
    position: absolute;
    right: 2%;
    width: 30rem;
    top: 1%;
}

.gnav {
    position: relative;
    z-index: 2;
}

.gnav ul {
    list-style: none;
    display: flex;
}

.gnav ul li {
    width: 100%;
    background-color: #000;
}

.gnav ul li a {
    text-decoration: none;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #edad28;
    color: #000;
    font-size: 1.8rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gnav ul li a.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.gnav ul li:nth-child(even) a {
    background-color: #d61618;
    color: #fff;
}

.gnav .logo {
    display: none;
}

/* フッター */

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 2.8rem 0;
    position: relative;
    z-index: 2;
}

footer .sns {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 2.8rem;
    margin-bottom: 2rem;
}

footer .sns img {
    width: 4rem;
}

footer .sns img.w80 {
    width: 20rem;
}

footer .copyright {
    font-size: 1.2rem;
}

/* TOP */

#news {
    background-color: rgb(255 255 255 / 80%);
    padding: 2.8rem;
    box-shadow: 0 0 1rem rgb(247 235 17 / 50%);
}

#news ul {
    list-style: none;
}

#news ul li:not(:last-child) {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f8de8a;
    padding-bottom: 2rem;
}

#news ul li .date {
    display: block;
    margin-bottom: 0.4rem;
}

#news ul li a {
    color: #111;
}

#bnr {
    margin-top: 6rem;
}

#bnr ul {
    list-style: none;
    display: flex;
    gap: 4rem;
}

#bnr ul li {
    width: 100%;
}

/* レース情報 */

#race dl dt {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#race dl dt::before {
    content: "■";
    color: #d61618;
}

#race dl dd {
    margin-bottom: 2.4rem;
}

#race dl dd table {
    width: 100%;
    border-collapse: collapse;
}

#race dl dd table th {
    background-color: #edad28;
    border: 1px solid #000;
    padding: 0.4rem;
}

#race dl dd table td {
    text-align: center;
    border: 1px solid #000;
    padding: 0.4rem;
    background-color: #fff;
}

#race dl dd table tbody tr:nth-child(even) td {
    background-color: #f7f4c1;
}

#race .timetable>div:not(:last-child) {
    margin-bottom: 2.4rem;
}

#race .timetable .day {
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.8rem;
}

/* 中継 */

#live dt {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#live dt::before {
    content: "■";
    color: #d61618;
}

#live dd table {
    width: 100%;
    border-collapse: collapse;
}

#live dd table th {
    background-color: #edad28;
    border: 1px solid #000;
    padding: 0.8rem;
}

#live dd table td {
    text-align: center;
    border: 1px solid #000;
    padding: 0.8rem;
    background-color: #fff;
}

#live dd table td a {
    color: #111;
}

/* アクセス */

#access dt {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#access dt::before {
    content: "■";
    color: #d61618;
}

#access dd:not(:last-child) {
    margin-bottom: 4rem;
}

#access dd .map {
    margin-bottom: 2rem;
}

#access dd .map iframe {
    width: 100%;
    height: 40rem;
}

#access dd table {
    width: 100%;
    border-collapse: collapse;
}

#access dd table th {
    background-color: #edad28;
    border: 1px solid #000;
    padding: 0.8rem 1.2rem;
    width: 24rem;
}

#access dd table td {
    border: 1px solid #000;
    padding: 0.8rem 1.2rem;
    background-color: #fff;
}

#access dd table td ul {
    list-style: none;
}

#access dd table td ul li {
    text-indent: -1em;
    padding-left: 1em;
    margin-bottom: 0.4rem;
}

#access dd table td ul li:last-child {
    margin-bottom: 0;
}

#access dd table td ul li::before {
    content: "・";
    font-weight: bold;
}

/* イベント */

.event-tab {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;
}

.event-tab li {
    cursor: pointer;
    width: 20rem;
    text-align: center;
    padding: 1.2rem;
    font-weight: 500;
    color: #fff;
    background-color: #000;
}

.event-tab li.active {
    background-color: #d61618;
    cursor: auto;
}

#event .event-contents {
    display: none;
}

#event .event-contents.active {
    display: block;
}

#event .event-box {
    background-color: #fff;
    padding: 2rem;
    border: 0.2rem solid #edad29;
    margin-bottom: 2.4rem;
}

#event .event-box:last-child {
    margin-bottom: 0;
}

#event .event-box .date {
    display: flex;
    gap: 0.8rem;
}

#event .event-box .date span {
    background-color: #edad29;
    display: inline-block;
    font-size: 0.8em;
    font-weight: bold;
    padding: 0.4rem 1.2rem;
    min-width: 8rem;
    text-align: center;
}

#event .event-box .date .sat {
    background-color: #04a1e9;
    color: #fff;
}

#event .event-box .date .sun {
    background-color: #e70113;
    color: #fff;
}

#event .event-box h2 {
    margin: 1.2rem 0;
    font-size: 2.4rem;
}

#event .event-box .detail dl dd:not(:last-child) {
    margin-bottom: 1.2rem;
}

.guest-img {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 2rem;
}

.guest-name {
    text-align: center;
    font-size: 0.9em;
    margin-top: 0.8rem;
}

@media only screen and (min-width: 1280px) {
    html {
        font-size: 10px;
    }
}