@media only screen and (max-width: 767px) {
    html {
        font-size: 2.68vw;
    }

    body {
        font-size: 1.4rem;
    }

    main {
        padding: 4rem 0;
    }

    .container {
        max-width: 90%;
    }

    .sub-page {
        background-color: rgb(255 255 255 / 80%);
    }

    .sub-page .contents-wrap {
        background: unset;
        box-shadow: unset;
        padding: 0;
    }

    .main-title {
        font-size: 2rem;
        padding: 0.4rem;
        margin-bottom: 2.4rem;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    /* ヘッダー */

    #kv .takamatsu-logo {
        display: none;
    }

    #kv .komatsushima-logo {
        display: none;
    }

    .navi-btn-wrap {
        display: flex;
        align-items: center;
        position: fixed;
        top: 2%;
        right: 3%;
        z-index: 99;
    }

    .navi-btn {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4rem;
        height: 4rem;
        background-color: #000;
        border-radius: 50%;
    }

    .navi-btn > div {
        position: relative;
        width: 2.4rem;
        height: 1.6rem;
        z-index: 1;
    }

    .navi-btn span {
        position: absolute;
        display: block;
        width: 2.4rem;
        height: 0.2rem;
        background: #fff;
        border-radius: 0.4rem;
        transition: all .3s;
    }

    .navi-btn span:nth-of-type(2) {
        top: 0.8rem;
        opacity: 1;
        transition: all .3s;
    }

    .navi-btn span:last-of-type {
        top: 1.6rem;
    }

    .navi-btn-on span:first-of-type {
        transform: rotate(-45deg) translateY(0.6rem) translateX(-0.5rem);
    }

    .navi-btn-on span:nth-of-type(2) {
        transform: translateX(0);
        opacity: 0;
    }

    .navi-btn-on span:last-of-type {
        transform: rotate(45deg) translateY(-0.6rem) translateX(-0.5rem);
    }

    .gnav {
        display: none;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 98;
        background-color: #edad28;
        height: 100svh;
        height: 100dvh;
        height: 100vh;
        padding-top: 6.6rem;
        overflow-y: scroll;
    }

    .gnav ul {
        flex-wrap: wrap;
        gap: 1.2rem;
        width: 90%;
        margin: auto;
    }

    .gnav ul li a {
        font-size: 1.6rem;
        height: auto;
        padding: 1.2rem;
        display: block;
        text-align: left;
        position: relative;
        background-color: #000;
        color: #fff;
    }

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

    .gnav ul li a::after {
        position: absolute;
        top: 40%;
        right: 2rem;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        content: "";
        width: 0.8rem;
        height: 0.8rem;
        border-top: 0.2rem solid #fff;
        border-right: 0.2rem solid #fff;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .gnav .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.6rem;
        margin-top: 2.8rem;
    }

    .gnav .logo a {
        display: inline-block;
    }

    .gnav .takamatsu-logo {
        width: 16rem;
    }

    .gnav .komatsushima-logo {
        width: 24rem;
    }

    /* TOP */

    #news {
        padding: 2rem;
    }

    #news ul li:not(:last-child) {
        padding-bottom: 1.6rem;
        margin-bottom: 1.6rem;
    }

    #bnr {
        margin-top: 4rem;
    }

    #bnr ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    /* フッター */

    footer {
        padding: 2rem 1rem;
    }

    footer .sns img {
        width: 3.2rem;
    }

    /* レース情報 */

    #race dl dt {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

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

    #race .timetable .day {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    #race dl dd table {
        font-size: 1.2rem;
        table-layout: fixed;
    }

    .timetable table thead tr:first-child th:first-child {
        width: 2.4rem;
        writing-mode: vertical-rl;
        letter-spacing: 1px;
    }

    /* 中継 */

    #live dt {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    #live dd table th {
        padding: 0.4rem;
        white-space: nowrap;
    }

    #live dd table td {
        padding: 0.4rem;
    }

    /* アクセス */

    #access dt {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

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

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

    #access dd .map iframe {
        height: 20rem;
    }

    #access dd table th {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    #access dd table td {
        display: block;
        border-bottom: none;
    }

    #access dd table tr:last-child td {
        border-bottom: 1px solid #000;
    }

    /* イベント */

    .event-tab {
        margin-top: 0;
        margin-bottom: 2rem;
        gap: 1.6rem;
    }

    .event-tab li {
        padding: 0.8rem;
    }

    #event .event-box {
        margin-bottom: 2rem;
        padding: 1.6rem;
    }

    #event .event-box .date span {
        padding: 0.4rem;
        min-width: 6.4rem;
    }

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

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

    .guest-img {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0;
    }
}