/* ーーーーー　リセットCSS ーーーーー */
*, *::before, *::after {
    box-sizing: content-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role='list'], ol[role='list'] {
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* ーーーーー　ログインページ　ーーーーー */
.login_wrap {
    width: 80%;
    margin: 80px auto 50px auto;
}

.page_title {
    text-align: center;
    margin-bottom: 30px;
}

.login_form {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.login_form dl {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.login_form dt {
    text-align: left;
    margin-bottom: 5px;
}

.login_form dd {
    width: 100%;
    margin: 0 auto 20px auto;
}

.login_wrap input {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #aaaaaa;
    padding: 5px;
}

.login_button_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 30px auto 50px auto;
    align-items: center;
}

.login_button_wrap .login-button, .register-button {
    width: 95%;
    max-width: 750px;
    display: block;
    background-color: #e51500;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border: 1px solid #aaaaaa;
    cursor: pointer;
    padding: 10px 0;
    border-radius: 5px;
}

.login_button_wrap .login-button {
    margin-bottom: 15px;
}

/* ーーーーー　新規登録ページ　ーーーーー */
.register_wrap {
    width: 80%;
    margin: 80px auto 50px auto;
}

.register_form {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.register_form dl {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.register_form_flex-top {
    display: flex;
    flex-direction: column;
}

.register_form_flex-bottom {
    display: flex;
    justify-content: left;
    max-width: 800px;
}

.register_form dt {
    text-align: left;
    margin-bottom: 5px;
}

.register_form dd {
    width: 100%;
    margin: 0 auto 20px auto;
}

.register_wrap input, select {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #aaaaaa;
    padding: 5px;
} 

.birthday_wrap {
    display: flex;
    width: 30%;
    flex-direction: column;
    text-align: center;
}

.gender_wrap {
    display: flex;
    width: 30%;
    flex-direction: column;
    text-align: center;
    margin-left: 20%;
}

.gender_wrap select {
    padding: 5px;
    border-radius: 5px;
}

.register_button_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 30px auto 50px auto;
    align-items: center;
}

.register_button_wrap .login-button, .register-button {
    width: 95%;
    max-width: 750px;
    display: block;
    background-color: #e51500;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 0;
}

.register_button_wrap .login-button {
    margin-bottom: 15px;
}

/*モーダルウィンドウ*/
.modal_window {
    display: none;
    width: 90%;
    max-width: 300px;
    background: #ffffff;
    border: solid 1px #000000;
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .modal_window.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

/*モーダルウインドウ内*/
.modal_contents {
    height: 50px;
    background: #ffffff;
    padding: 10px;
    text-align: center;
}

/*モーダルウインドウ内ボタン*/
.modal_btn {
    display: flex;
    text-align: center;
    background: #ffffff;
}

.ok {
    width: calc(100% / 2 - 10px);
    font-weight: bold;
    background: #e51500;
    border-radius: 5px;
    border: 1px solid #aaaaaa;
    color: #f9f9f9;
    padding: 5px;
    margin: 5px;
    text-decoration: none;
}

.modal_btn a {
    display: inline-block;
    width: calc(100% / 2 - 10px);
    font-weight: bold;
    background: #e51500;
    border-radius: 5px;
    color: #f9f9f9;
    padding: 5px;
    margin: 5px;
    text-decoration: none;
}

/*オーバーレイ*/
.modal_over_ray {
    display: none;
    width: 100%;
    height: 100%;
    background: #666666;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    opacity: 0.5;
}

.modal_over_ray.active {
    display: block;
}

main.active {
    height: 100vh;
    overflow: hidden;
}

@media only screen and (min-width:900px) {
    .modal_window {
        width: 600px;
        max-width: 90%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}