* {
    box-sizing: border-box;
}
html {
    font-size: 12px;
}
body {
    margin: 0;
    font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}
img {
    width: 100%;
}
h1 {
    color: #42210B;
    text-align: center;
    font-size: 1.5rem;
}
a {
    color: #0071bc;
    cursor: pointer;
}
a:hover img {
    filter: invert(15%);
}
button:hover {
    opacity: .8;
}
ul {
    padding: 0;
}
li {
    list-style: none;
}
footer a {
    font-size: .9rem;
    color: #5F3917;
    text-decoration: none;
}
footer a:hover {
    color: #af9b87;
}
#pc-header {
    position: relative;
    top: 50px;
}
#sp-header {
    position: fixed;
    background: #000;
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 9999;
}
#slide-menu-sign {
    position: absolute;
    top: 15px;
    left: 60px;
    color: #ffffff;
    font-size: 15px;
}
#slide-menu-btn {
    position: relative;
    height: 50px;
    cursor: pointer;
}
#slide-menu-btn a {
    position: absolute;
    left: 1rem;
    width: 30px;
    height: 50px;
}
#slide-menu-btn span {
    display: block;
    position: absolute;
    background-color: #fff;
    width: 100%;
    height: 1px;
    margin: 0;
    transition: all .75s;
}
#slide-menu-btn span:nth-child(1) {
    top: 16px;
}
#slide-menu-btn span:nth-child(2) {
    top: 23.5px;
}
#slide-menu-btn span:nth-child(3) {
    top: 32px;
}
#slide-menu-btn.open span:nth-child(1) {
    top: 23.5px;
    transform: rotate(45deg);
}
#slide-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
#slide-menu-btn.open span:nth-child(3) {
    top: 23.5px;
    transform: rotate(-45deg);
}
#slide-menu {
    position: fixed;
    left: -100vw;
    width: 0;
    top: 0;
    background: rgba(0, 0, 0, .7);
    height: 100vh;
    z-index: 100;
    overflow-y: hidden;
    transition: .5s ease;
}
#slide-menu.open {
    left: 0;
    width: 100vw;
}
#slide-menu ul {
    padding: 2rem;
    position: relative;
    margin: 35vh auto;
    width: 12rem;
    height: 300px;
    list-style-type: disclosure-closed;
    color: #fff;
}
#slide-menu li {
    margin-top: 1rem;
}
#slide-menu a {
    text-decoration: none;
    color: #fff;
}
#slide-menu a:hover {
    opacity: .3;
}
#login-bonus {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .8);
    z-index: 1000;
}
#login-bonus .dialog {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    background-color: #fff;
    width: 100%;
    max-width: 300px;
    height: 175px;
    z-index: 1001;
    border: 5px solid #B69318;
    border-image: linear-gradient(0.3turn, #B69318, #F8EB8C, #B69318, #B69318, #F8EB8C, #B69318);
    border-image-slice: 1;
    border-radius: 10px;
    text-align: center;
}
#login-bonus span.close {
    display: block;
    position: absolute;
    top: -20px;
    right: -20px;
    padding: 5px 9px;
    background-color: #fff;
    border: 5px solid #e1bb35;
    border-radius: 50%;
    cursor: pointer;
}
#login-bonus span.close:hover {
    background-color: rgb(255, 250, 225);
}
#login-bonus img {
    /* display: block; */
    width: 100px;
    position: absolute;
    top: 50px;
    left: 100px;
}





#error-alert {
    position: relative;
    top: 55px;
}
@media screen and (min-width:980px) {
    #error-alert {
        top: 0;
    }    
}



#contents {
    position: relative;
    top: 50px;
    height: 100%;
}
#first-view {
    position: relative;
    background-image: url("/img/background-tower-image.png");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    width: 100%;    
    height: 20vh;
    min-height: 250px;
    pointer-events: none;
    overflow-x: hidden;
}
.container {
    position: relative;
    margin: 0 auto;
    max-width: 1080px;
    height: 100%;
}
#main-menu {
    display: none;
    position: relative;
    z-index: 50;
    pointer-events: fill;
}
#giant-tower-catch {
    width: 100%;
    position: relative;
    z-index: 60;
}
#giant-tower-catch.active {
    display: block;
}
#winning-tickets {
    display: none;
    position: absolute;
    z-index: 30;
}
#winning-tickets.active {
    display: flex;
}
#tower-cache {
    display: none;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    z-index: 20;
}
#tower-cache.active {
    display: block;
    animation: tower-cache-scale-up 1.5s ease-in-out forwards;
}
#tower-cache.show {
    display: block;
    animation: tower-cache-scale-up 0s ease-in-out forwards;
}
@keyframes tower-cache-scale-up {
    from {
        transform: scale(0);
        transform-origin: bottom;
    }
    to {
        transform: scale(.75);
        transform-origin: bottom;
    }
}
#flash {
    display: none;
    position: absolute;
    bottom: 0;
    left: -50px;
    opacity: 0;
    z-index: 10;
}
#flash.active {
    display: block;
    animation: flash-light-up 1s forwards;
}
#flash.show {
    display: block;
    animation: flash-light-up 0s forwards;
}
@keyframes flash-light-up {
    from {
        transform: scale(2) translateX(-10vw);
        transform-origin: bottom;
    }
    to {
        opacity: 0.6;
        transform: scale(2) translateX(-10vw);
        transform-origin: bottom;
    } 
}

#customer-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 7.5%;
    margin: 0 auto;
    width: 100%;
    min-width: 280px;
    max-width: 300px;
    z-index: 50;
}
#customer-info {
    position: absolute;
    font-size: .5rem;
    top: 32.5%;
    left: 7.5%;
    line-height: .025;
    color: #fff;
    z-index: 60;
    pointer-events: auto;
}
#customer-info a {
    color: #fff;
}
@media screen and (min-width: 280px) {
    #customer-card {
        right: 0;
        top: 20%;
    }
    #customer-info {
        font-size: .5rem;
        top: 30.5%;
        left: 7.5%;
        line-height: .025;
    }
}
@media screen and (min-width: 380px) {
    #customer-card {
        max-width: 380px;
    }
    #customer-info {
        font-size: 1rem;
        line-height: .25;
    }
    #customer-info .fs-7 {
        font-size: .75rem;
    }
}
@media screen and (min-width: 580px) {
    #customer-card {
        top: 25%;
    }
}
@media screen and (min-width: 680px) {
    #customer-card {
        top: 30%;
        max-width: 480px;
    }
}
@media screen and (min-width: 780px) {
    #customer-card {
        max-width: 480px;
    }
}
@media screen and (min-width: 880px) {
    #customer-card {
        max-width: 480px;
    }
    #customer-info {
        top: 32.5%;
        font-size: 1rem;
        line-height: .3;
    }
    #customer-info .fs-7 {
        font-size: .85rem;
    }
}

#login-register {
    display: none;
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    z-index: 40;
    pointer-events: fill;
}
#login-register.active {
    display: block;
}
#election-number {
    position: relative;
}
#election-number .card {
    padding: 1rem;
    background: #603813;
    border-radius: 0;
    max-width: 516px;
    margin: 0 auto;
}
#election-number .card-header {
    padding: 0.5rem 1rem 0;
    background: #fff;
    white-space: nowrap;
}
#election-number .card-header h3 {
    font-size: 1rem;
    text-align: left;
    margin: 0;
    line-height: normal;
}
#election-number .card-header span {
    font-weight: bold;
    color: red;
    font-size: 1rem;
    letter-spacing: -1px;
}
#election-number .card-header span.number {
    font-size: 2rem;
}
#election-number .card-footer {
    text-align: center;
    padding: 0 5px;
    background: linear-gradient(0.25turn, #B69318, #F8EB8C, #B69318);
    color: red;
    font-weight: bold;
    text-shadow: 1px 1px 1px #fff, 1px -1px 1px #fff, 0 -1px 1px #fff, -1px -1px 1px #fff, -1px 0 1px #fff, -1px 1px 1px #fff,
                 2px 2px 1px #fff, 2px -2px 1px #fff, 0 -2px 1px #fff, -2px -2px 1px #fff, -2px 0 1px #fff, -2px 2px 1px #fff,
                 3px 3px 1px #fff, 3px -3px 1px #fff, 0 -3px 1px #fff, -3px -3px 1px #fff, -3px 0 1px #fff, -3px 3px 1px #fff;
}
#about .float {
    margin-top: 2rem;
}
#about p {
    padding: 1rem;
}
#about span {
    margin: 0;
    width: 100%;
    font-weight: bold;
    line-height: 1.85;
    overflow-y: hidden;
    text-align: justify;
}
#about .float img:nth-of-type(2)  {
    display: none;
}
#login.border-gold-container,
#register-qr.border-gold-container,
#pre-register.border-gold-container,
#pre-check.border-gold-container,
#forgot-password.border-gold-container,
#reset-password-complete.border-gold-container {
    max-width: 500px;
    width: 100%;
}
#login h2,
#register h2,
#register-qr h2,
#pre-register h2,
#pre-check h2 {
    color: #42210B;
    text-align: center;
    font-size: 1.5rem;
}
#login input,
#register input,
#pre-register input,
#pre-check input {
    border: 1px solid #8C8C8C;
    border-radius: 0;
}
#login button,
#register button,
#pre-register button,
#pre-check button,
#forgot-password button,
#reset-password button,
#customer-information button {
    margin: 1rem 0;
    padding: 1px;
    background: linear-gradient(0.25turn, #000, #965b00, #000);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    border: 0;
    border-radius: 5px;
    width: 100%;
}
#register a {
    display: block;
    padding: 1px;
    border: 2px solid #42210B;
    border-radius: 7.5px;
    color: #42210B;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    text-align: center;
}
#register a:hover {
    background: rgba(0, 0, 0, .1);
}
#register-qr {
    max-width: 200px;
    text-align: center;
}
#register-qr img {
    margin: 0;
    width: 100%;
    max-width: 100px;
}
#costs-and-points table {
    text-align: center;
    width: 100%;
    border: 1px solid #8A633C;
}
#costs-and-points table th {
    border: 1px solid #8A633C;
    background-color: #8A633C;
    color: #fff;
    padding: 5px;
}
#costs-and-points table td {
    border: 1px solid #8A633C;
    padding: 5px;
}
#costs-and-points table td:nth-child(2) {
    text-align: right;
}
#costs-and-points h3 {
    background-color: #A2202A;
    color: #fff;
    padding: .5rem 1rem;
    text-align: center;
}
#mailbox table {
    width: 100%;
}
#mailbox table th {
    background-color: #8A633C;
    color: #fff;
    padding: 5px;
}
#mailbox table th:nth-child(1) {
    border-radius: 3px 0 0 0;
}
#mailbox table th:nth-child(3) {
    border-radius: 0 3px 0 0;
}
#mailbox table td:nth-child(1) {
    width: 10%;
    max-width: 3rem;
    text-align: center;
    color: orange;
}
#mailbox table td:nth-child(3) {
    min-width: 7rem;
}
#mailbox table tr {
    border-bottom: 1px solid #8A633C;
    cursor: pointer;
}
#mailbox table tr:hover {
    background: rgba(0, 0, 0, .1);
}
#mailbox table .label-new {
    font-size: 1px;
    width: 30px;
    text-align: center;
    position: relative;
    top: 2.5px;
}
/* .table {
    display: table;
}
.table-row {
    display: table-row;
} */


/* ペジネーション用 */
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #8A633C;
    border-color: #8A633C;
}
.page-link {
    color: #8A633C;
}
.page-link:hover {
    color: #8A633C;
}
.page-link {
    padding: 0.3rem 0.4rem;
}
@media screen and (min-width: 440px) {
    .page-link {
        padding: 0.375rem 0.75rem;
    }
}







.border-gold-container {
    max-width: 600px;
    width: 100%;
}
.border-gold {
    border: 5px solid #B69318;
    border-image: linear-gradient(0.3turn, #B69318, #F8EB8C, #B69318, #B69318, #F8EB8C, #B69318);
    border-image-slice: 1;
    padding: 3px;
}
.border-gold > .border-gold {
    border-width: 1px;
}
.border-bottom-gold {
    border-bottom: 1px solid #B69318;
    border-image: linear-gradient(0.25turn, #B69318, #F8EB8C, #B69318);
    border-image-slice: 1;
}
.insurance-link {
    text-align: center;
}
.insurance-link > div {
    margin: 0 auto;
    width: 100%;
    padding: 5px;
    background:#f0ebd7;
    border-radius: 5px;
}
.insurance-link a {
    font-weight: bold;
    text-decoration: none;
}
.wrapper {
    max-width: 960px;
}
main {
    margin-top: 3rem;
}
footer {
    margin-top: 3rem;
    font-weight: bold;
    font-size: .7rem;
    position: relative;
    top: 50px;
    padding: .5rem 0;
    text-align: center;
    color: #754c24;
    background: linear-gradient(0.25turn, #B69318, #F8EB8C, #B69318);
}
@media screen and (min-width: 280px) {
    #first-view {
        height: 30vh;
        min-height: 380px;
    }
}
@media screen and (min-width: 380px) {
    html {
        font-size: 14px;
    }
    #slide-menu-btn {
        width: 30px;
    }
    #first-view {
        height: 40vh;
        min-height: 480px;
    }
}
@media screen and (min-width: 480px) {
    #first-view {
        height: 50vh;
        min-height: 580px;
    }
    #election-number .card-header h3 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    #election-number .card-header span {
        font-size: 1.75rem;
        line-height: 1;
        vertical-align: baseline;
    }
    #election-number .card-header span.number {
        font-size: 2.5rem;
        line-height: 1.5;
    }
}
@media screen and (min-width: 580px) {
    #first-view {
        height: 60vh;
        min-height: 680px;
    }
}
@media screen and (min-width: 680px) {
    html {
        font-size: 16px;
    }
    #first-view {
        height: 70vh;
        min-height: 780px;
    }
    #login-register {
        position: absolute;
        max-width: 650px;
        margin: 0 auto;
    }
    #election-number .card {
        min-width: 430px;
    }
}
@media screen and (min-width: 780px) {
    #first-view {
        height: 80vh;
        min-height: 880px;
    }
}
@media screen and (min-width: 880px) {
    #first-view {
        height: 90vh;
        min-height: 980px;
    }
}
@media screen and (min-width: 980px) {
    #pc-header {
        top: 0;
    }
    #sp-header {
        display: none;
    }
    #slide-menu.open {
        left: -100vw;
        width: 0;
    }
    #contents {
        top: 0;
    }
    footer {
        top: 0;
    }
    .container {
        overflow-x: unset;
    }
    #first-view {        
        width: 100%;
        min-height: 880px;
    }
    #main-menu.active {
        display: block;
    }
    #winning-tickets.active {
        display: block;
        width: 350px;
    }
    #login-register {
        position: absolute;
        bottom: 0;
        z-index: 40;
        max-width: 650px;
        margin: 0 0 0 auto;
    }
    #tower-cache.active,
    #tower-cache.show {
        left: auto;
    }

    #about .float {    
        width: 960px;
    }
    #about .float img:nth-of-type(1)  {
        float: left;
    }
    #about .float span:nth-of-type(1)  {
        float: left;
        padding: .5rem 1.1rem 1rem;
    }
    #about .float span:nth-of-type(2)  {
        float: left;
        padding: 1rem 1.1rem 0 0;
    }
    #about .float img:nth-of-type(2)  {
        clear: left;
        display: inline;
    }
    #about img {
        width: 100%;
        max-width: 480px;
        height: 480px;
    }
    #about p {
        padding: 0;
    }
    #about span {
        max-width: 480px;
        height: 480px;
        font-size: 1rem;
    }
    @keyframes tower-cache-scale-up {
        from {
            transform: scale(0);
            transform-origin: bottom;
        }
        to {
            transform: scale(1);
            transform-origin: bottom;
        }
    }
    @keyframes flash-light-up {
        from {
            opacity: 0;
            transform: scale(2) translateX(-50px);
            transform-origin: bottom;
        }
        to {
            opacity: 0.75;
            transform: scale(2) translateX(-50px);
            transform-origin: bottom;
        } 
    }
}