@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Noto Sans JP", serif;
}

.maincontainer {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

@media screen and (max-width: 599px) {
    .maincontainer {
        display: block;
        width: 100%;
    }
}

.side {
    position: sticky;
    top: 0;
    left: 0;
    min-height: 100vh;
    width: calc(300px + 2rem);
    border-right: 1px solid #eee;
    /*box-shadow: 0 6px 6px rgba(0,0,0,0.05);*/
    box-shadow: 8px 0 6px -6px rgba(0,0,0,0.05);
}
.side .container {
    margin: 0 auto;
    padding: 3rem 0;
}
.side .nav {
    border-top: 1px solid #eee;
    margin: 0 0 1rem 0;
}
.side .nav a {
    display: block;
    padding: 1rem;
    font-size: 1.15rem;
    border-bottom: 1px solid #eee;
}
.side .ad {
    width: fit-content;
    margin: 3rem auto;
}

@media screen and (max-width: 599px) {
    .side {
        order: 2;
        display: block;
        position: sticky;
        top: 0;
        left: 0;
        min-height: 100vh;
        min-width: 100%;
        border-right: 1px solid #eee;
        /*box-shadow: 0 6px 6px rgba(0,0,0,0.05);*/
        box-shadow: 8px 0 6px -6px rgba(0,0,0,0.05);
    }
    .side .container {
        margin: 0 auto;
        padding: 3rem 0;
    }
    .side .nav {
        border-top: 1px solid #eee;
        margin: 0 0 1rem 0;
    }
    .side .nav a {
        display: block;
        padding: 1rem;
        font-size: 1.15rem;
        border-bottom: 1px solid #eee;
    }
    .side .ad {
        width: fit-content;
        margin: 3rem auto;
    }
}

.app {
    width: 1000px;
    margin: 0 auto;
}

@media screen and (max-width: 599px) {
    .app {
        padding: 1rem;
        min-width: 100%;
        max-width: 100%;
    }
}

.head {
    margin: 3rem 0;
}
.head .title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media screen and (max-width: 599px) {
    .head {
        margin: 3rem 0;
    }
    .head .title {
        font-size: 1.75rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }
}

.input {
    /*width: calc(100% - (300px + 2rem));*/
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    border-radius: .25rem;
    padding: 1rem;
}
.input label b {
    display: block;
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
}
.input input[type="text"],.input input[type="number"] {
    border: 1px solid #eee;
    border-radius: .25rem;
    padding: .85rem;
    font-size: 1.15rem;
}
.input select {
    border: 1px solid #eee;
    border-radius: .25rem;
    padding: 1rem .85rem;
    font-size: 1.15rem;
}

@media screen and (max-width: 599px) {
    .input {
        width: 100%;
        margin: 0 auto;
        display: block;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #eee;
        border-radius: .25rem;
        padding: 1rem 1rem 0 1rem;
    }
    .input label b {
        display: block;
        margin: 0 0 1rem 0;
        font-size: 1.15rem;
    }
    .input input[type="text"],.input input[type="number"] {
        width: 100%;
        border: 1px solid #eee;
        border-radius: .25rem;
        padding: .85rem;
        font-size: 1.15rem;
        margin: 0 0 1.5rem 0;
    } 
}

.button {
    padding: 3rem 0 3rem 0;
}
.button .run {
    display: block;
    width: 10rem;
    text-align: center;
    margin: 0 auto;
    background: #00f;
    color: #fff;
    font-weight: bold;
    padding: 1rem;
    border-radius: .25rem;
    font-size: 1.15rem;
}

.result {
    /*width: 1000px;*/
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: .25rem;
    padding: 5rem;
    text-align: center;
    font-size: 1.75rem;
}

.about {
    margin: 5rem 0;
}
.about h2 {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}
.about h2::before,.how h2::before {
    top: 50%;
    display: inline-block;
    content: "";
    width: 1rem;
    height: 1rem;
    background: #00f;
    border-radius: 50px;
    margin-right: .5rem;
}
.about p {
    line-height: 1.5rem;
}

.how {
    margin: 5rem 0;
}
.how h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}
.how p {
    line-height: 1.75rem;
}

/*エラー・通知等*/
.err-red {
    position: fixed;
    display: none;
    top: 10%;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    width: fit-content;
    background: #f00;
    color: #fff;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
    white-space: nowrap;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 0, 0, .5);
}