@media only screen and (max-width:599px) {
    body {
        min-width: auto;
        font-size: 14px;
    }

    main {
        padding-top: 61px;
    }

    .main-contents {
        min-height: calc(100dvh - 161px);
        overflow: hidden;
    }

    .main-contents::before,
    .main-contents::after {
        width: 60px;
        opacity: 0.9;
    }

    .main-contents::before {
        left: -5px;
    }

    .main-contents::after {
        right: -5px;
    }

    .sub-page .main-contents {
        padding: 20px 0;
    }

    .container {
        width: 90%;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .heading {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .breadcrumb {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .breadcrumb ol li {
        text-shadow: 1px 1px 1px #000;
    }

    /* ヘッダー */

    header {
        position: fixed;
        width: 100%;
        z-index: 99;
        left: 0;
        top: 0;
        background-color: #CC191D;
        display: block;
    }

    header .head-wrap {
        max-width: 95%;
        margin: auto;
        align-items: center;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
    }

    header .title img {
        height: 45px;
    }

    .navi-btn-wrap {
        display: flex;
        align-items: center;
    }

    .navi-btn {
        width: 32px;
        position: relative;
        cursor: pointer;
        display: inline-block;
        z-index: 1;
        height: 22px;
    }

    .navi-btn span {
        position: absolute;
        display: block;
        width: 32px;
        height: 2px;
        background: #fff;
        border-radius: 5px;
        transition: all .3s;
    }

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

    .navi-btn span:last-of-type {
        top: 22px;
    }

    .navi-btn-on span:first-of-type {
        transform: rotate(-45deg) translateY(8px) translateX(-6px);
    }

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

    .navi-btn-on span:last-of-type {
        transform: rotate(45deg) translateY(-9px) translateX(-7px);
    }

    #gnav {
        border: none;
        display: none;
        background-color: #CC191D;
    }

    #gnav ul {
        display: block;
        width: 90%;
        padding: 10px 0 20px;
        margin: auto;
    }

    #gnav ul li {
        margin-bottom: 10px;
    }

    #gnav ul li:last-child {
        margin-bottom: 0;
    }

    #gnav ul li a {
        height: auto;
        font-size: 1em;
        justify-content: space-between;
        padding: 10px 12px;
        background-color: #000;
        color: #fff;
    }

    #gnav ul li a::after {
        content: '';
        width: 8px;
        height: 8px;
        border: 0px;
        border-top: solid 2px #fff;
        border-right: solid 2px #fff;
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        margin-left: auto;
    }

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

    #gnav ul li a img {
        position: static;
        transform: unset;
        -webkit-transform: unset;
        -ms-transform: unset;
        width: 20px;
        transform: rotate(265deg);
    }

    /* フッター */

    footer .logo img {
        width: 140px;
    }

    footer .sns {
        gap: 16px;
    }

    footer .sns li img {
        max-height: 28px;
        max-width: 28px;
    }

    footer .foot-contents {
        padding: 16px 0;
    }

    footer .copyright {
        font-size: 0.8em;
        background-color: #CC191D;
        border: none;
    }

    /* TOP */

    #kv {
        height: calc(100dvh - 61px);
    }

    .kv-title {
        width: 90%;
        height: auto;
    }

    .kv-pisuke {
        height: auto;
        width: 60%;
    }

    #kv .logo {
        width: 120px;
        top: 3%;
    }

    #top-news {
        padding-top: 30px;
    }

    #top-news .contents {
        padding: 20px;
    }

    #top-player {
        padding-top: 40px;
    }

    #top-player .player-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    #top-player .player-list li a {
        padding: 4px;
    }

    #top-player .player-text {
        margin-top: 4px;
    }

    #top-player .player-text .name {
        font-size: 0.9em;
    }

    #top-player .player-text p {
        font-size: 0.75em;
    }

    #pickup {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    /* 出場選手 */

    #player .date {
        font-size: 0.9em;
    }

    #player table {
        font-size: 0.9em;
    }

    #player table th {
        padding: 6px 2px;
    }

    #player table td {
        padding: 2px;
    }

    #rainbow-cup {
        margin-top: 20px;
    }

    #player h2 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }

    /* アクセス */

    #access .access-title {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    #access .img-area {
        display: block;
    }

    #access .img-area>div:first-child {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .access-detail {
        margin-top: 20px;
    }

    #access .img-area>div {
        width: 100%;
    }

    .access-detail table td {
        line-height: 1.6;
    }

    #access .access-tamano {
        width: 100%;
    }

    #access .map {
        margin-top: 20px;
    }

    #access .time-table {
        margin-top: 10px;
    }

    #access .time-table h3 {
        font-size: 1.1em;
    }

    #access .bus {
        margin-bottom: 15px;
    }

    #access .time-table .date {
        margin-bottom: 5px;
    }

    #access .time-table table th {
        padding: 4px;
    }

    #access .time-table table td {
        padding: 4px;
    }

    #access .taxi .detail {
        display: block;
    }

    #access .taxi .detail>div {
        width: 100%;
    }

    #access .taxi .detail .going {
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* レース情報*/

    .race-info>div:not(:last-child) {
        margin-bottom: 20px;
    }

    .race-info h2 {
        font-size: 1.2em;
    }

    .race-info .detail {
        padding: 5px;
    }

    .release .detail {
        padding: 15px 0 0 0;
    }

    .release .detail>table:first-child {
        margin-bottom: 5px;
    }

    .release table:last-child {
        margin-bottom: 0;
    }

    .release table tr {
        display: block;
        margin-bottom: 10px;
    }

    .release .detail table {
        margin-top: 0;
    }

    .release .detail table tbody th {
        background-color: #ffcc00;
        padding: 8px 0;
    }

    .release .detail table td {
        display: block;
        padding: 5px 0;
        border-bottom: none;
        width: auto;
        border-top: 1px solid #ffcc00;
        border-right: 1px solid #ffcc00;
    }

    .release .detail table td:last-child {
        border-bottom: 1px solid #ffcc00;
    }

    .release .detail table th {
        display: block;
        border-bottom: none;
        padding: 10px 0;
        border: none;
    }

    .release table .place {
        width: auto;
    }

    .release table td .soldtime {
        display: inline-block;
        margin-right: 10px;
        font-weight: normal;
    }

    .release table td .allday {
        display: inline-block;
        font-weight: normal;
    }

    .release table .pc-only {
        display: none !important;
    }

    .release table td:before {
        content: attr(data-label);
        float: left;
        margin-right: 10px;
        padding: 5px 0;
        margin: -5px 0;
        width: 50%;
        border-right: 1px solid #ffcc00;
        border-left: 1px solid #ffcc00;
    }

    .release table td.sat:before {
        background-color: #daf6ff;
    }

    .release table td.sun:before {
        background-color: #ffe2e2;
    }

    .release .area-box tbody {
        display: none;
    }

    .release .area-box .area-ttl {
        position: relative;
        padding: 10px 0;
    }

    .release .area-box .area-ttl::after {
        position: absolute;
        top: 40%;
        right: 15px;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        content: "";
        width: 6px;
        height: 6px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .release .area-box .area-ttl.active::after {
        -webkit-transform: rotate(135deg);
        transform: rotate(135deg);
        top: 36%;
    }

    .release .guide {
        margin-top: 0;
    }

    .release .guide p {
        margin-top: 5px;
    }

    #race .time .detail {
        padding: 15px 0 0 0;
    }

    #race .time table {
        font-size: 0.9em;
    }

    #race .time table th {
        padding: 5px;
    }

    #race .time table td {
        padding: 5px;
    }

    #race .program img {
        padding: 10px;
    }

    #race .program .btn-area {
        margin-top: 15px;
    }

    .download-btn {
        width: 100%;
    }
}