/* 地域別メインカラーの設定 */
.rule-page.hokkaido {
    --area-color: #406CB1;
}

.rule-page.tohoku {
    --area-color: #FFB601;
}

.rule-page.kanto {
    --area-color: #E76D9E;
}

.rule-page.chubu {
    --area-color: #8FCD0F;
}

.rule-page.kinki {
    --area-color: #01B7E5;
}

.rule-page.chugoku {
    --area-color: #EB6666;
}

.rule-page.kyushu {
    --area-color: #A978F4;
}

.rule-page.oversea {
    --area-color: #4BA17A;
}


@media screen and (min-width: 769px) {
    .sp-only {
        display: none;
    }
}

.rule-page p {
    font-size: 1.8rem;
    line-height: 1.5;
    letter-spacing: .02em;
}

/* グラデーション背景のベース */
.page-header__bg {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(226, 207, 255, 1), rgba(251, 253, 191, 1));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.page-header__inner {
    padding: 0 59px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.page-header-text p {
    font-size: clamp(20px, 7.3vw, 100px);
    font-weight: 700;
    margin: 0;
    letter-spacing: .05em;
    display: inline-block;
    position: relative;
}

.page-header-text p::after {
    content: "";
    width: 50px;
    height: 95px;
    background: url(../img/rule/icon_a.svg) no-repeat center / cover;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    -webkit-transform: translateY(-50%) translateX(100%);
}

.page-header-text span, .r_venue_name {
    color: #F0007F;
}

.rule_main {
    color: initial;
}

.entry-content .inner {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 35px;
    border-radius: 20px;
    background-color: #fff;
}


.rule-page h2 {
    font-size: 2.9rem;
    padding-bottom: 16px;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid #AAAAAA;
    position: relative;
}

.rule-page h2::before {
    content: "";
    width: 223px;
    height: 3px;
    display: block;
    background-color: #F0007F;
    position: absolute;
    bottom: -3px;
    left: 0;
}

.rule-page ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.rule-page li {
    margin: 5px 0;
    font-size: 1.8rem;
    letter-spacing: .02em;
    line-height: 1.4;
}

.rule-page .wp-block-group {
    margin: 40px 0;
}

.btn-back {
    text-align: center;
    display: block !important;
    width: 50%;
    padding: 20px 0;
    background-color: #555;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 20px auto;
    border-radius: 7px;
}

.wp-block-heading strong {
    font-weight: 700;
    letter-spacing: .03em;
}

.rule-page .wp-block-paragraph a {
    text-decoration: underline;
    text-underline-offset: 7px;
}

h4.wp-block-heading {
    font-size: 1.8rem;
    margin: 30px 0 10px;
}


@media screen and (max-width: 768px) {
    .rule-page {
        padding-top: 40px;
    }

    .page-header__bg {
        height: 182px;
    }

    .page-header__inner {
        padding: 0 20px;
    }

    .page-header-text p {
        font-size: 3.6rem;
    }

    .page-header-text p::after {
        width: 14px;
        height: 26px;
    }

    .r_venue_name {
        font-size: 2rem;
    }

    .page-header__title {
        margin: 10px 0;
    }

    .entry-content {
        padding: 0 5px;
    }

    .entry-content .inner {
        padding: 15px 10px;
    }

    .rule-page h2 {
        font-size: 2.2rem;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .rule-page li {
        font-size: 1.6rem;
    }

    .btn-back {
        width: 80%;
    }
}