@charset "UTF-8";

/* 数値入力 */
#enter {
    border: 5px solid var(--i_main_color);
    padding: 30px 4%;
    box-sizing: border-box;
}

#enter p {
    font-size: 2.3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 15px;
}

#enter p small {
    font-size: 1.6rem;
}

#enter p span {
    font-size: 1.55rem;
    font-weight: normal;
    padding-left: 10px;
}

#enter input {
    width: 100%;
    max-width: 800px;
    height: 45px;
    font-size: 2rem;
    padding: 5px;
    border: 1px solid var(--i_txt_color);
    box-sizing: border-box;
}

#enter input:focus {
    border: 2px solid #7b0000;
    box-shadow: 0 0 5px rgba(0, 0, 0, .05);
}

#enter>div:last-of-type {
    display: none;
    margin-top: 15px;
}

@media screen and (max-width: 800px) {
    #enter p span {
        padding-left: 0;
        padding-top: 10px;
        display: block;
    }

    #enter p,
    #enter input {
        font-size: 1.8rem;
    }
}

/* 表示内容 */
#result {
    margin-top: 20px;
}

#result>p {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
}

#result>a {
    display: block;
    transition: .4s ease-in-out;
}

#result a:hover {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.13);
}

#result dl {
    display: flex;
    gap: 20px;
    border: 1px solid var(--i_border_color);
    padding: 5px;
    box-sizing: border-box;
}

#result dl dt {
    max-width: 350px;
    width: 100%;
}

#result dl h1 span {
    background: var(--i_main_color);
    font-size: 2rem;
    color: var(--i_bg_color);
    display: inline-block;
}

#result dl .red {
    color: #7b0000;
    font-weight: bold;
    font-size: 3rem;
}

#result .add dd>p:first-of-type {
    font-size: 2rem;
    font-weight: bold;
    padding-top: 10px;
}

#result .add {
    margin-bottom: 30px;
}

@media screen and (max-width: 650px) {
    #result dl {
        flex-direction: column;
        align-items: center;
    }

    #result dl h1 {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    #result dl h1 span {
        font-size: 1.65rem;
        padding: 5px;
        margin-bottom: 5px;
    }

    #result dl .red {
        font-size: 2.5rem;
    }

    #result .add dd>p:first-of-type {
        font-size: 1.8rem;
        padding-top: 0;
    }
}