@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');

/*
    リセット+ノーマライズ
                    */
*,
*::after,
*::before {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

p {
    margin: 0;
    padding: 0;
}

br.pc {
    display: block;
}

br.sp {
    display: none;
}

/*
    CSS変数
            */
:root {
    --text-color: #1e1e1e;
    --main-color: #D5AE46;
    --gray-color: #cccccc;
    --blown-color: #42210b;
}

body {
    font-size: 16px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1px;
    color: var(--text-color);
}

/*
レイアウト
*/
.hero {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* overflow: hidden; */
    position: relative;
}

.kk-logo {
    position: absolute;
    top: 10px;
    left: 10px;
}

.kk-logo img {
    width: 150px;
    height: auto;
}

.hero-image {
    object-fit: cover;
    height: 100vh;
    height: 100svh;
}

.logo {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translatey(-50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding-bottom: 1.1em;
}

h1 {
    margin: 0;
    padding: 0;
    /* width: 30vw; */
    /* max-width: 400px; */
    color: white;
    font-size: clamp(3rem, 0.529rem + 7.89vw, 10rem);
    letter-spacing: 4px;
}

.event-badge {
    width: 600px;
    position: absolute;
    bottom: -18px;
    right: 0;
    z-index: 2;
    filter: drop-shadow(4px 8px 16px rgba(0, 0, 0, 0.3));

}

/*channel*/
.channel {
    background-image: url(./img/968006.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem 1rem;
    color: white;
}

.channel .inner {
    padding: 2rem;
}

.channel .copy {
    text-align: center;
    font-size: clamp(3rem, 1.222rem + 3.7vw, 4rem);
    font-weight: 700;
    font-family: "Shippori Mincho", serif;
    margin-bottom: 2rem;
}

.channel .sub-copy {
    text-align: center;
    font-size: clamp(1.7rem, 0.278rem + 2.96vw, 2.5rem);
    font-weight: 600;
    font-family: "Shippori Mincho", serif;
    letter-spacing: 2px;
}

.channel .channel-wrap {
    width: 100%;
    margin: 2rem auto;
    display: grid;
    gap: 0rem;
    grid-template-columns: 1fr 0.5fr 1fr;
}

.channel .channel-wrap .vs {
    background-image: url(./img/vs-mark.png);
    background-repeat: no-repeat;
    background-size: contain;
}

/* .channel .channel-wrap .vs .gyakuten {
    border-radius: 50%;
    max-width: 80px;
}

.channel .channel-wrap .vs span {
    font-size: 7rem;
    color: var(--main-color);
    filter: drop-shadow(4px 8px 12px rgba(255, 255, 255, 0.3));
    display: block;
    align-self: start;
} */

.channel .channel-wrap figure {
    margin: 0;
}

.channel .channel-wrap figure img {
    filter: drop-shadow(4px 8px 18px rgba(255, 255, 255, 0.2));
}

.channel .channel-wrap figcaption {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin: 1.5rem 1rem;
    font-size: clamp(1rem, 0.778rem + 0.46vw, 1.125rem);
}

/*about*/
.about {
    background-image: url(./img/gravel.webp);
    padding: 3rem 1rem;
}

.about .inner {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.about h2 {
    color: var(--blown-color);
    font-size: clamp(1.7rem, 0.278rem + 2.96vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;

}

.about p {
    text-align: center;
    font-weight: 600;
    line-height: 1.8;
    font-size: clamp(1.2rem, 0.667rem + 1.11vw, 1.5rem);
    margin-bottom: 2rem;
}

.about img {
    width: 80%;
    max-width: 550px;
    margin: 3rem auto;
}

/*keirin-jp*/
.keirin-jp {
    padding: 4rem 1rem;
}

.keirin-jp .inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.keirin-jp h2 {
    background-color: var(--main-color);
    font-size: clamp(1.2rem, 0.667rem + 1.11vw, 1.5rem);
    padding: 0.8rem 3rem;
    width: 80%;
    font-style: italic;
    margin: 0 auto;
    margin-bottom: 4rem;
    text-align: center;
    line-height: 1.1;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
}

.keirin-jp .banner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 240px));
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.keirin-jp .banner {
    display: flex;
    justify-content: center;
    gap: 8rem;
    flex-wrap: wrap;
}

.keirin-jp .text {
    font-size: 1.25rem;
    text-align: center;
    margin: 2rem 0;
}

.keirin-jp .copy {
    text-align: center;
    margin: 4rem 0;
}

/*movie*/
.movie {
    display: flex;
    justify-content: center;
}

.movie iframe {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  height: auto;
}

/*how-to*/
.how-to {
    padding: 4rem 1rem;
}

.how-to .inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.how-to h2 {
    background-color: var(--main-color);
    font-size: clamp(1.2rem, 0.667rem + 1.11vw, 1.5rem);
    padding: 0.8rem 3rem;
    width: fit-content;
    font-style: italic;
    margin: 0 auto;
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.1;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
}

.how-to-line {
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    background-color: var(--gray-color);
    display: grid;
    grid-template-columns: max-content 1fr;
    margin-bottom: 2rem;
    padding: 0.5rem 2rem;
    width: calc(100% - 4rem);
}

.how-to-line.sec {
    margin-left: 2rem;
    width: calc(100% - 4rem);
}

.how-to-line.th {
    margin-left: 4rem;
    margin-bottom: 4rem;
}

.heading-24 {
    position: relative;
    padding-top: 1.2em;
    font-size: clamp(1.5rem, -0.278rem + 3.7vw, 2.5rem);
    padding-left: 2.3em;
    margin: 0;
    align-self: flex-end;
}

.heading-24::before {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    /* color: #d9f4ff; */
    color: #fafafa;
    font-size: 2em;
    line-height: 1;
    content: attr(data-number);
    pointer-events: none;
}

.how-to p {
    font-weight: 600;
    font-size: clamp(1.2rem, -0.222rem + 2.96vw, 2rem);
    padding-left: 2em;
    align-self: flex-end;
}

.how-to .nam {
    font-size: clamp(1.5rem, -0.278rem + 3.7vw, 2.5rem);
}

.how-to .ano {
    display: inline-block;
    font-size: clamp(1rem, 0.644rem + 0.74vw, 1.2rem);
}

.how-to-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.how-to-table th,
.how-to-table td {
    border: 1px solid #b8a79d;
    text-align: center;
    vertical-align: middle;
    padding: 24px 16px;
}

.how-to-table th {
    background: #cfcfcf;
    font-size: clamp(1.5rem, 0.611rem + 1.85vw, 2rem);
    font-weight: 700;
}

.how-to-table td {
    background: #fff;
    font-size: clamp(2rem, 1.111rem + 1.85vw, 2.5rem);
    font-weight: 700;
    line-height: 1.5;
}

.how-to-table td:first-child,
.how-to-table td:last-child {
    font-size: clamp(1.2rem, 0.667rem + 1.11vw, 1.5rem);
}

.how-to-table td span {
    display: block;
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.how-to dl {
    margin: 2rem auto;
}

.how-to dt {
    position: relative;
    padding: 0.3rem 0 0.7rem 2rem;
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
}

.how-to dt::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 0;
    width: 6px;
    height: 44px;
    background: var(--main-color);
    transform: skewX(-20deg);
    transform-origin: top;
}

.how-to dt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--main-color);
}

.how-to dd {
    margin: 2rem 0;
    padding-left: 1rem;
    font-size: clamp(1rem, 0.778rem + 0.46vw, 1.125rem);
}

/*link*/
.link {
    background-image: url(./img/gravel.webp);
    padding: 4rem 1rem;
}

.link .inner {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.link h2 {
    background-color: var(--main-color);
    font-size: clamp(1.2rem, 0.667rem + 1.11vw, 1.5rem);
    padding: 0.8rem 3rem;
    width: 80%;
    font-style: italic;
    margin: 0 auto;
    margin-bottom: 4rem;
    text-align: center;
    line-height: 1.1;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.3);
}

.link .cycle {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}

.link .banner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 240px));
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.link .banner a {
    max-width: 240px;
    justify-self: center;
}

.link .text {
    font-size: 1.25rem;
    text-align: center;
    margin: 2rem 0;
}

.link .copy {
    text-align: center;
    margin: 4rem 0;
}

.ctc-flag {
    position: fixed;
    top: 0;
    right: 10px;
    z-index: 100;
    width: 80px;
    height: auto;
}

.topbtn {
    width: 80px;
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.topbtn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media screen and (max-width:768px) {
    br.pc {
        display: none;
    }

    .logo {
        padding-bottom: 0.6em;
    }

    .event-badge {
        width: 400px;
        bottom: -15px;

    }

    .channel .inner {
        padding: 0;
    }

    .channel .channel-wrap {
        grid-template-columns: 1fr 100px 1fr;
        gap: 1.5rem;
    }

    .channel .channel-wrap figcaption {
        margin: 1rem 0;
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .channel .channel-wrap .vs span {
        font-size: 5rem;
    }

    .keirin-jp .banner {
    gap: 2rem;
}

    .how-to-line {
        display: grid;
        grid-template-columns: 1fr;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .how-to p {
        padding-left: 1rem;
    }

    .heading-24 {
        padding-top: 0.5em;
        margin-bottom: 0.5rem;
    }

    .how-to .ano {
        font-size: 0.875rem;
    }

    .link .banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-wrap {
        overflow-x: auto;
    }

    .table-wrap table {
        min-width: 750px;
    }
}

@media screen and (max-width:500px) {
    br.sp {
        display: block;
    }

    .kk-logo img {
        width: 80px;
        height: auto;
    }

    .hero-image {
        object-position: 35% center;
    }

    h1 {
        /* font-size: 2.3rem; */
    }

    .event-badge {
        width: 300px;

    }

    .channel .copy {
        font-size: 2.2rem;
    }

    .channel .channel-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 0.8fr 1fr;
    }

    .channel .channel-wrap .vs {
        background-size: contain;
        background-position: center;
        background-size: cover;
        background-position: center;
    }

    .about p {
        font-size: 1rem;
    }

    .how-to dt {
        font-size: 1.125rem;
    }

    .link .banner {
        grid-template-columns: 1fr;
    }

    .link .text {
        font-size: 1rem;
    }

    .link .cycle {
        width: 240px;
    }
}