@font-face {
    font-family: 'honokamarugo';
    src: url('font_1_honokamarugo_1.1_kai.woff2');
    font-display: swap;
}

.message {
    font-size: calc(90% + 0.1vw);
}

h3 {
    margin: 0 1vw 0 1vw;
}
.pw {
    width: 50%;
    display: block;
    height: 25px;
}
html {
    font-size: calc(102.5% + 0.2vw);
}

.title {
    margin-left: 40px;
    margin-bottom: 0;
}

.tooltip {
    position: relative;
    cursor: pointer;
    display: inline-block;
}
.area-text {
    display: none;
    position: absolute;
    padding: 1vw;
    font-size: 1.25vw;
    line-height: 0.6vw;
    color: #fff;
    border-radius: 0.5vw;
    background: #000000;
    width: 34vw;
}

.tooltip::before {
    content: '';
    position: absolute;
}

.tooltip svg {
    margin-left: 0.5vw;
    height: 1.2vw;
}

/* NavBar */
.nav-list {
    margin-top: 0;
    background: white;
    display: flex;
    padding: 1rem 0;
    justify-content: flex-start;
    align-items: center;
    border-bottom: solid 4px whitesmoke;
    border-radius: 3px;
}
.nav-item {
    list-style: none;
    margin-left: 2rem;
    padding: 5px;
}

.nav-item a {
    text-decoration: none;
    color: black;
    transition: all 200ms ease-in;
}

.nav-item a:hover {
    color: gray;
}

.text {
    display: inline-block;
}

/*  */
body {
    font-family: 'honokamarugo';
}

.input-number {
    text-align: right;
    width: 33%;
    padding: 10px 15px;
    height: 85%;
    font-size: 14px;
    border-radius: 3px;
    border: 2px solid #ddd;
    box-sizing: border-box;
}

.input-color {
    background-color: gray;
    border-radius: 5px;
    padding: 2px;
    width: 30%;
    border: 1px solid gray;
    min-height: 35px;
}

.animation-button {
    display: inline-block;
    border: 3px solid #a5a3a3;
    border-radius: 0;
    background: #ffffff;
    padding: 0.5em 1em;
    margin-right: 1vw;
    margin-left: 1vw;
    width: 100%;
    height: 150%;
}
.animation-button:before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    content: '';
    transition: all 0.3s;
    border: 1px solid #868080;
}
.animation-button:hover:before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
}

.bg-color {
    width: 15%;
    margin: 1vw;
}

.btn {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 5vw;
    width: 25%;
    height: 150%;
    background: #516fb1;
    color: white;
    border-bottom: solid 4px #536283;
    border-radius: 3px;
}

.history-btn {
    display: inline-block;
    padding: 0.5em 1em;
    background: gray;
    color: white;
    border-bottom: solid 4px whitesmoke;
    border-radius: 3px;
    margin: 1vw;
}

/*  */
.ml {
    margin-right: auto;
}

.middle {
    vertical-align: middle;
}

.center {
    display: flex;
    justify-content: center;
}

.canvas {
    padding: 1rem;
    text-align: center;
    flex: 1;
}
.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-basis: 30%;
    font-size: 16px;
}

.row-left {
    justify-content: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    flex-basis: 30%;
}

.container {
    display: flex;
}

.menu {
    flex-grow: 2;
}

.stack {
    flex-direction: column;
    display: flex;
    justify-content: flex-end;
}

.category {
    border: solid 4px whitesmoke;
    border-radius: 3px;
    margin: 2vw 1vw 4vw 1vw;
    padding: 1vw 3vw 1vw 3vw;
}

@media (min-width: 1080px) {
    .tooltip:hover .area-text {
        display: inline-block;
        right: -38vw;
    }
}

@media (max-width: 1000px) and (min-width: 600px) {
    p {
        font-size: calc(120% + 0.2vw);
    }
    .container {
        flex-wrap: wrap;
    }
    .row {
        flex-basis: 45%;
    }
    .menu {
        margin: 2vw;
    }
    canvas {
        width: 65%;
    }
    .bg-color {
        width: 15%;
    }
    .canvas {
        flex-basis: 100%;
    }
    div {
        font-size: calc(16px + ((1vw - 6.4px) * 3.571));
    }
    .input-number {
        height: 7vw;
        font-size: 2.5vw;
    }
    .animation-button {
        border: 1px solid 333333;
        border-right-width: medium;
        border-left-width: medium;
        border-top-width: 0px;
        border-bottom-width: 0px;
        height: 7vw;
        font-size: 3vw;
    }
    .animation-button:before {
        width: 1.2vw;
        height: 1.2vw;
    }
    .area-text {
        padding: 1vw;
        font-size: 2vw;
        line-height: 3vw;
        color: #fff;
        border-radius: 0.5vw;
        background: #000000;
        width: 65vw;
        height: 4vw;
    }
    .tooltip svg {
        margin-left: 1vw;
        height: 3vw;
    }
    .tooltip:hover .area-text {
        display: inline-block;
        right: -70vw;
    }
}

@media (max-width: 600px) {
    .tooltip:hover .area-text {
        display: inline-block;
        right: -65vw;
    }
    h3,
    .title {
        font-size: calc(24px + ((1vw - 6px) * 3.571));
    }
    h4,
    .nav-item a {
        font-size: calc(20px + ((1vw - 6px) * 3.571));
    }
    .input-number {
        height: 7vw;
        font-size: 2.5vw;
    }
    p {
        margin-left: 1vw;
        font-size: 110%;
    }
    div {
        font-size: calc(16px + ((1vw - 7px) * 3.571));
    }
    .nav-list {
        justify-content: left;
    }
    .container {
        flex-wrap: wrap;
    }
    .row {
        flex-basis: 50%;
    }
    .menu {
        margin: 2vw;
    }
    canvas {
        width: 65%;
    }
    .bg-color {
        width: 15%;
    }
    .canvas {
        flex-basis: 100%;
    }
    .animation-button {
        border: 1px solid 333333;
        border-right-width: medium;
        border-left-width: medium;
        border-top-width: 0px;
        border-bottom-width: 0px;
        height: 6vw;
        font-size: 2.5vw;
    }
    .animation-button:before {
        width: 1vw;
        height: 1vw;
    }
}
