@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@100;300;400;500;700;800;900&family=Yusei+Magic&display=swap');

body {
    font-size: 20px;
    color: #5B5B5B;
}

body * {
    box-sizing: border-box;
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 400;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    font-family: 'Yusei Magic', sans-serif;
    font-weight: bold;
    font-size: 30px;
}

.btn {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.name {
    margin: 0 auto;
}

.name-inp {
    display: flex;
    justify-content: space-between;
}

.name p {
    margin-bottom: 0;
    font-size: 16px;
}

.kousi {
    display: block;
    width: 45%;
    padding: 5px 0;
    text-align: center;
    color: #fff;
    background-color: #5B5B5B;
}

.fff {
    display: block;
    width: 45%;
    padding: 5px 0;
    text-align: center;
    background-color: #fff;
    border: 1px solid #5B5B5B;
}

#seki,
#seki2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

main>div,
main>p {
    width: 22%;
    margin-bottom: 15px;
    padding: 35px 0;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    border: 1px solid #5B5B5B;
}

main>div:nth-child(4n+2),
main>p:nth-child(4n+2) {
    margin-right: 40px;
}

.mem {
    width: 48%;
}

.mem-mae {
    width: 50%;
    padding-left: 2%;
    border-left: 1px solid #5B5B5B;
}

.member {
    display: inline-block;
    position: relative;
    width: 100%;
}

.member textarea {
    font: 15px/24px sans-serif;
    box-sizing: border-box;
    width: 100%;
    padding: 0.3em;
    transition: 0.3s;
    border: 1px solid #5B5B5B;
    border-radius: 4px;
    outline: none;
}

.member textarea:focus {
    border-color: #FC9D9D;
}

.member textarea {
    padding-left: 40px;
    vertical-align: bottom;
}

.member i {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 8px;
    transition: 0.3s;
    color: #aaaaaa;
}

.member textarea:focus+i {
    color: #FC9D9D;
}

.setup {
    width: 100%;
    display: block;
    margin-top: 1rem;
    padding: 0.5em 3em;
    color: #fff;
    background-color: #AAD6EC;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: .3s;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 3px 2px #7e7e7e;
}

.setup:hover {
    background: #EEF9FF;
    color: #AAD6EC;
    box-shadow: none;
}

input.start {
    display: inline-block;
    font-size: 18pt;
    text-align: center;
    cursor: pointer;
    padding: 12px 31px;
    width: 45%;
    background: #AAD6EC;
    font-weight: 700;
    color: #ffffff;
    line-height: 1em;
    transition: .3s;
    box-shadow: 0 3px 2px #7e7e7e;
    border-radius: 0.5rem;
    border: 2px solid #AAD6EC;
}

input.start:hover {
    box-shadow: none;
    color: #AAD6EC;
    background: #ffffff;
}

input.stop {
    display: inline-block;
    font-size: 18pt;
    text-align: center;
    cursor: pointer;
    padding: 12px 31px;
    width: 45%;
    background: #FC9D9D;
    font-weight: 700;
    color: #ffffff;
    line-height: 1em;
    transition: .3s;
    box-shadow: 0 3px 2px #7e7e7e;
    border-radius: 0.5rem;
    border: 2px solid #FC9D9D;
}

input.stop:hover {
    box-shadow: none;
    color: #FC9D9D;
    background: #ffffff;
}

footer {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    font-size: 15px;
}

.back {
    padding: 0 10px;
    color: rgb(148,159,202);
    font-weight: 500;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgb(148,159,202) 50%);
    background-position: 0 0;
    background-size: 200% auto;
    transition: 1s;
    text-decoration: none;
    border-radius: 0.5rem;
}

.back:hover {
    background-position: -100% 0;
    color: #fff;
}

.fadein {
    opacity: 0;
    transition : all 1s;
}
.fadein.active {
    opacity: 1;
}

@media (max-width: 500px) {
    header,
    .name {
        padding: 0 10px;
    }

    .name-inp {
        flex-wrap: wrap;
    }

    .mem {
        width: 100%;
    }

    .mem-mae {
        width: 100%;
        padding: 2% 0 0;
        margin-top: 10px;
        border-top: 1px solid #5B5B5B;
        border-left: none;
    }

    main>div:nth-child(4n+2), main>p:nth-child(4n+2) {
        margin-right: 20px;
    }

    input.start,
    input.stop {
        font-size: 14pt;
        padding: 12px 5px;
    }
}