@charset "UTF-8";

:root {
    --text-color: #191919;
    --accent-color-blue: #445669;
    --accent-color-green: #456944;
    --accent-color-gold: #695B44;
    --bg-color-blue: #E7EDF0;
    --bg-color-green: #E7F0ED;
    --bg-color-gold: #F0EFE7;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: inherit;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    background-color: #fff;
}

ul,
li {
    list-style: none;
}

.pc-none {
    display: block;
}

.sp-none {
    display: none;
}

.main-box {
    width: 100%;
    max-width: 480px;
    margin: 14px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
}

.rules-guide {
    margin-top: 80px;
}

.rules-guide__header {
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}

.rules-guide__title {
    font-size: 26px;
    font-weight: bold;
}

.rules-guide__subtitle {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
}

.rules-guide__title-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: block;
    width: 40px;
    height: 2px;
    background-color: #000;
    border-radius: 10px;
    transform: translateX(-50%);
}

.rules-guide__notice {
    margin: 7px 0 0 16px;
    font-size: 16px;
    color: #4d4d4d;
    text-align: left;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
}

.rules-section {
    position: relative;
    width: 100%;
    margin-top: 61px;
    padding: 25px 0;
    border: 3px solid #F0F0F0;
    border-radius: 14px;
}

.rules-section:last-of-type {
    margin-bottom: 120px;
}

.rules-section__label {
    display: inline-block;
    width: 220px !important;
    padding: 9px 14px 8px !important;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFF;
    text-align: left;
    border-radius: 0 6px 6px 0;
    height: auto;
}

.rules-section__label--blue {
    background-color: var(--accent-color-blue);
}

.rules-section__label--green {
    background-color: var(--accent-color-green);
}

.rules-section__label--gold {
    background-color: var(--accent-color-gold);
}

.rules-section__bean-reward {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 20px;
    font-weight: 600;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
}

.rules-section__bean-reward--blue {
    color: var(--accent-color-blue);
}

.rules-section__bean-reward--green {
    color: var(--accent-color-green);
}

.rules-section__bean-reward--gold {
    color: var(--accent-color-gold);
}

.rules-section__bean-reward img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.rules-section__list {
    padding: 10px 16px 0;
}

.rules-section__item {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-top: 18px;
}

.rules-section__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    flex-shrink: 0;
    border-radius: 7px;
}

.rules-section__item-icon img {
    width: 80px;
    height: 80px;
}

.rules-section__item-icon--blue {
    background-color: var(--bg-color-blue);
}

.rules-section__item-icon--green {
    background-color: var(--bg-color-green);
}

.rules-section__item-icon--gold {
    background-color: var(--bg-color-gold);
}

.rules-section__item-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rules-section__item-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.rules-section__item-content {
    margin-top: 7px;
}

.rules-section__item-description {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    flex-grow: 1;
}

.rules-section__item-buttons {
    /* display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; */
    display: inline-block;
    margin-top: 5px;
}

.rules-section__item-link {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline !important;
    margin-top: 2px;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
}

.rules-section__item-buttons .rules-section__item-link {
    margin-top: 5px;
}

.rules-section__item-link:hover {
    text-decoration: underline;
}

.rules-section__item-link img {
    width: 14.4px;
    height: 9.17px;
    margin-left: 0.5em;
}

.prize-section {
    margin-top: 80px;
}

.prize-section__title {
    text-align: center;
}

.prize-section__title img {
    width: min(312px, 96%);
    height: 54px;
}

.prize-section__content {
    width: 100%;
    padding-left: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prize-section__list {
    display: flex;
    gap: 15px;
    width: 705px;
    margin-top: 25px;
}

.prize-section__list-spacer {
    width: 75px;
    flex-shrink: 0;
}

.prize-section__item {
    width: 200px;
    flex-shrink: 0;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
}

.prize-section__item img {
    width: 44px;
    height: 44px;
}

.prize-section__item h5 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

.prize-section__item h5 a {
    text-decoration: underline !important;
}

.prize-section__item p {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    margin-top: 7px;
}

.prize-section__graph.pc-none {
    display: block;
    margin: 20px auto;
    width: 720px;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 334px;
    height: 230px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: popupAnim 0.3s ease-out;
}

.popup-content {
    position: relative;
    padding: 15px;
    text-align: center;
}

.popup-content h2 {
    padding-top: 48px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
}

.popup-content p {
    margin-top: 10px;
    font-size: 13px;
    text-align: left;
}

.popup-border {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e6e6e6;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 15px;
    font-size: 16px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

@keyframes popupAnim {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media screen and (min-width: 768px) {
    .pc-none {
        display: none;
    }

    .sp-none {
        display: block;
    }

    .main-box {
        max-width: 1200px;
        margin: 28px auto 0;
    }

    .rules-guide__title {
        font-size: 30px;
    }

    .rules-guide__subtitle {
        font-size: 20px;
        line-height: 1.6;
    }

    .rules-guide__title-underline {
        width: 60px;
        height: 4px;
    }

    .rules-guide__notice {
        margin: 28px 0;
        font-size: 16px;
        text-align: center;
    }

    .rules-section {
        padding: 35px 0 43px;
    }

    .rules-section__bean-reward {
        position: absolute;
        top: 40px;
        right: 20px;
        margin-top: 0;
        padding: 0;
        font-size: 18px;
    }

    .rules-section__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        grid-template-rows: auto auto 1fr;
        gap: 14px 20px;
        margin: 16px 0 0;
        padding: 0 20px;
    }

    .rules-section__item {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        /* gap: 0; */
        margin-top: 0;
    }

    .rules-section__item-icon {
        grid-row: 1;
        width: 100%;
        height: auto;
        padding: 20px 0;
        align-self: center;
        margin-top: 20px;
    }

    .rules-section__item-body {
        grid-row: 2 / span 2;
        display: grid;
        grid-template-rows: subgrid;
        gap: 10px;
    }

    .rules-section__item-title {
        grid-row: 1;
        font-size: 18px;
        font-weight: bold;
        line-height: 1.4;
        align-self: start;
    }

    .rules-section__item-content {
        grid-row: 2;
        margin-top: 0;
        align-self: start;
    }

    .rules-section__item-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .rules-section__item-buttons {
        margin-top: 0;
    }

    .rules-section__item-link {
        font-size: 14px;
    }

    .prize-section__title img {
        width: 370px;
        height: 64px;
    }

    .prize-section__content {
        overflow-x: visible;
        padding-left: 0;
    }

    .prize-section__list {
        display: grid;
        grid-template-columns: 170px repeat(3, 1fr);
        grid-template-rows: auto auto 1fr;
        align-items: stretch;
        width: 100%;
        max-width: 1140px;
        margin: 48px auto 0;
        padding: 0;
        gap: 20px;
    }

    .prize-section__list-spacer {
        grid-row: 1 / -1;
    }

    .prize-section__item {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        gap: 12px 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .prize-section__item img {
        grid-row: 1;
        margin: 0 auto;
        align-self: center;
    }

    .prize-section__item h5 {
        grid-row: 2;
        font-size: 18px;
        margin: 0;
        align-self: start;
        font-weight: bold;
        line-height: 1.6;
        text-align: center;
    }

    .prize-section__item p {
        grid-row: 3;
        margin: 0;
        align-self: start;
        font-size: 16px;
        line-height: 1.6;
    }

    .prize-section__graph.pc-none {
        display: none;
    }

    .prize-section__graph.sp-none {
        display: block;
        width: 100%;
        max-width: 1121px;
        margin: 25px auto 0;
    }

    .popup {
        width: 460px;
    }

    .popup-content {
        padding: 0 20px 15px;
    }

    .popup-content h2 {
        padding-top: 60px;
        font-size: 24px;
        letter-spacing: -0.03em;
        font-weight: bold;
    }

    .popup-content p {
        font-size: 16px;
        line-height: 1.4;
    }

    .close-btn {
        top: 15px;
        right: 15px;
        font-size: 19px;
    }
}