#top-wrapper {
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 30px;
    /* border: 2.5px solid var(--themered); */
    border-radius: 15px;
    background-color: var(--beige40);
    width: 71%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#top-wrapper p{
    font-size: 18px;
    font-weight: 600;
}

.top-first {
    margin-top: 10px;
}

p.garapon-finish-message {
    margin: -5px 10% 12px 10%;
    color: var(--themered);
    font-size: 14px !important;
    text-shadow: 0.5px 0.5px 1px #EFD669cc;
}




.top-second {
    margin-left: 5%;
    margin-bottom: 8px;
    margin-top: -5px;
}

#top-wrapper p span {
    font-size: 48px;
    font-family: shippori mincho;
    font-weight: 800;
    margin-right: 8px;
    color: var(--themered);
    text-shadow: 1px 2px 2px #EFD669cc;
}

#state_wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}



.each_state {
    border: 2px solid var(--themebeige);
    /* border-radius: 5px; */
    color: var(--themered);
    width: 64%;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFF9E5;
}

#survey_state_wrapper{
        border: 2px solid var(--themered);
}

.each_state .state-top {
    color: var(--themered);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: -5px;
}

.state-topright {
    position: absolute;
    top: -1em;
    right: -2px;
    background-color: var(--themebeige);
    color: var(--themewhite);
    font-size: 14px;
    padding: 1px 5px;
    font-weight: bold;
}


.state-topright-survey {
    font-size: 16px;
    border: 2px solid var(--themered);
    background: var(--themered);
    padding: 1px 9px;
}

.state-main {
    display: flex;
    height: 60px;
    font-size: 30px;
    font-weight: 700;
    justify-content: center;
    /* margin: 0 auto; */
    align-items: center;
    /*text-shadow: 1px 1px 1px #EFD669cc;*/
}


.state-main-contest{
    align-items: baseline;
    font-size: 14px;
    margin-left: 26px;
}

.state-main-contest span{
        margin-right: 4px;

}

.template_btn {
    text-align: center;
    position: relative;
    margin-bottom: 3px;
        margin-top: 9px;
}

.template_btn a {
    color: var(--themered);
    border: 1px solid var(--themered);
    display: inline-block;
    font-family: "Shippori Mincho", serif;
    font-weight: bold;
    font-size: 11px;
    /* padding: 0.3em 0.6em; */
    position: relative;
    transition: all .3s;
    line-height: 1.4;
    padding: 0.6em 2em;
}

.template_btn a:hover {
    color: var(--themewhite);
    background-color: var(--themered);
}


.template_btn span {
    background: var(--themered);
    display: inline-block;
    width: 36px;
    height: 1px;
    position: absolute;
    top: 50%;
    right: -19px;
    transition: all .3s;
}

.template_btn a:hover span {
    right: -26px;
    background-color: var(--themered);
}

.template_btn a:hover span::after {
    background-color: var(--themered);
}

.template_btn span::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 7px;
    transform: rotate(35deg);
    right: -1px;
    top: -2px;
    background-color: currentColor;
}

#garapon_intro_wrapper {
    margin-top: 48px;
}

#garapon_intro_wrapper img{
    width: 70%;
    height: auto;
    margin: 15px 15%;
}

#contest_intro_wrapper{
    margin-top: 48px;
}

#contest_intro::before{
    width: 144px;
}

#voted_booths{
    margin-top: 28px;
}

#voted_booths::before{
    width: 120px;
}

#contest_booths_wrapper {
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#contest_booths_wrapper .card_event{
    width: 190px;
}

.each_intro p{
    padding-left: 10%;
    padding-right: 10%;
}

.garapon_btn {
    margin: 20px 0 30px 0!important;
}

.garapon_btn a{
    padding: 0.6em;
}

p.hinmoku {
    font-size: 12px;
    color: var(--themeblack);
    font-family: "Shippori Mincho", serif;
    line-height: 1.2;
}

#contest_booths_wrapper p{
    padding-left: 0;
    padding-right: 0;
}

@media screen and (min-width: 1024px) {
.each_intro p {
    padding-left: 15%;
    padding-right: 15%;
}

#garapon_intro_wrapper img {
    width: 30%;
    height: auto;
    margin: 15px 35%;
}

#contest_booths_wrapper{
    margin-left: 15%;
    margin-right: 15%;
}


}