:root{
    --main-bg-color: #f5f5f5;
    --main-text-color: #333;
    --theme-color: #d6a;
    --sub-bg-color: #ddd;
    --fade-in-time: 2s;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--main-bg-color);
    background-image: url("/img/bg.webp");
    color: var(--main-text-color);
    font-family: Arial, sans-serif;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 500;
    font-style: normal;
    padding: 0;
    margin: 0;
}

header{
    margin:0;
    padding-top: 1em;
    padding-left: auto;
    padding-right: auto;
    text-align: center;
    background-color: var(--theme-color);
}

header img{
    max-height: 6em;
    max-width: 80vw;
    width: auto;
    height: auto;
}

#footer{
    margin-left: auto;
    margin-right: 1em;
    width: 3em;
    position: sticky;
    bottom: 2em;
}
#footer a{
    color: var(--main-bg-color);
    text-decoration: none;
}

.page-top{
    width:1em;
    margin-left: auto;
    margin-right: 3em;
    margin-bottom: 3em;
}

.material-symbols-outlined{
    scale: 2;
    padding: 0.1rem;
    background-color: var(--theme-color);
    border-radius: 50%;
    filter: drop-shadow(0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.5));
}

a{
    color: var(--theme-color);
    text-decoration: none;
}

.screen{
    position: relative;
    background-image: url("/img/back.webp");
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.screen .image{
    position: absolute;
    object-fit: contain;
    max-width: 60vw;
    max-height: 75vh;
    width: auto;
    height: auto;
}

.screen ._top{
    top: -10vh;
}

.screen ._bottom{
    bottom: -10vh;
}

.screen ._right{
    right: -5vw;
    animation-name: fadeInFromRight;
    animation-duration: var(--fade-in-time);
    animation-iteration-count: 1;
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen ._left{
    left: -5vw;
    animation-name: fadeInFromLeft;
    animation-duration: var(--fade-in-time);
    animation-iteration-count: 1;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen .tate{
    writing-mode: vertical-rl;
    position: absolute;
    width:fit-content;
    top: 1rem;
    left:0;
    right:0;
    margin: auto;
    font-size: min(3vh, 1.8em);
    color: var(--main-bg-color);
    filter: drop-shadow(0.2rem 0.2rem 0.15rem rgba(0, 0, 0, 1));
}

.screen .tate ._big{
    font-size: 1.5em;
    margin-top: -0.5em;
    margin-bottom: -0.5em;
}

.screen ._center{
    filter: drop-shadow(0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.7));
    max-width: 90vw;
    max-height: 60vh;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    animation-name: fadeInFromTop;
    animation-duration: var(--fade-in-time);
    animation-iteration-count: 1;
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-aspect-ratio: 0.85){
    .screen .image{
        max-width: 100vw;
        max-height: 70vh;
    }
    .screen ._top{
        top:-10vh;
    }
    .screen ._bottom{
        bottom:-10vh;
    }
    .screen ._right{
        left:40vw;
        right:auto;
    }
    .screen ._left{
        right:40vw;
        left:auto;
    }
    .screen ._center{
        max-width: 95vw;
    }
}

@media screen and (max-aspect-ratio: 0.7){
    .screen .image{
        max-width: 100vw;
        max-height: 60vh;
    }
    .screen ._top{
        top:-10vh;
    }
    .screen ._bottom{
        bottom:-10vh;
    }
    .screen ._right{
        left:40vw;
        right:auto;
    }
    .screen ._left{
        right:40vw;
        left:auto;
    }
    .screen ._center{
        max-width: 95vw;
    }
}
@media screen and (max-aspect-ratio: 0.6){
    .screen .image{
        height:50vh;
    }
    .screen ._top{
        top:0vh;
    }
    .screen ._bottom{
        bottom:0vh;
    }
    .screen ._right{
        left:auto;
        right:-10vh;
    }
    .screen ._left{
        right:auto;
        left:-10vh;
    }
    .screen ._center{
        max-width: 95vw;
    }
}
@media screen and (max-aspect-ratio: 0.45){
    .screen .image{
        height:50vh;
    }
    .screen ._top{
        top:0vh;
    }
    .screen ._bottom{
        bottom:0vh;
    }
    .screen ._right{
        left:35vw;
        right:auto;
    }
    .screen ._left{
        right:35vw;
        left:auto;
    }
    .screen ._center{
        max-width: 95vw;
    }
}

.full-width{
    width: 100%;
    height: auto;
}

.fit-height{
    height: fit-content;
    padding: 0;
}

.vh{
    height: 100vh;
    margin: 0;
    object-fit: cover;
}

.left{
    text-align: left;
}
.right{
    text-align: right;
}
.center{
    text-align: center;
}

.small{
    font-size: 60%;
}
.big{
    font-size: 150%;
}
.big input[type="checkbox"]{
    transform: scale(1.5);
}
.big input[type="radio"]{
    transform: scale(1.5);
}
label{
    margin:0.3em;
}
.wbr{
    word-break: keep-all;
    overflow-wrap: break-word;
}

#wrapper{
    width: 100%;
}

#container{
    margin: 0;
}

.top{
    margin: 0;
    height: fit-content;
    background-color: var(--theme-color);
    color: white;
    text-align: center;
    padding: 0.5em;
    padding-left: 5vw;
    padding-right: 5vw;
    font-size: x-large;
    display: flex;
    justify-content:space-between;
    align-items: center;
}

.bottom{
    border-top: 1px solid var(--theme-color);
    text-align: center;
    margin: 1em;
    padding: 1em;
}
.bottom p{
    margin: 0;
}

.title{
    width: 100%;
    height: fit-content;
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}

.article{
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
}

.waku{
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(245, 245, 245, 0.5);
    padding: 2em;
    border: 0.15rem solid var(--sub-bg-color);
}

.form-wrapper{
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#form{
    width:fit-content;
    font-size: large;
}

#form input[type=text]{
    width: 8em;
    height: 1.7em;
    border-radius: 0.5em;
    border: 0.15rem solid var(--theme-color);
    background-color: rgba(245, 245, 245, 0.5);
    font-size: larger;
    text-align: center;
    -moz-appearance: textfield;
}


#form input::-webkit-inner-spin-button,
#form input::-webkit-outer-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

td{
    padding: 0.5em;
}
#result_pre{
    text-align: center;
    margin-bottom: 0;
}
#result{
    font-weight: bold;
    font-size: xxx-large;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

h1{
    border-bottom: 0.15rem solid var(--theme-color);
}

h2{
    margin-bottom: 0.25em;
}

ul{
    margin-top: 0;
}

p{
    margin-top: 0;
}

.review_container{
    display: none;
    opacity: 0;
    transition: 1s;
}

.review_container.show{
    display: flex;
    flex-wrap: wrap;
    animation-name: fadeIn;
    animation-fill-mode:forwards;
    animation-duration:1s;
}

@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

#show_review{
    font-size: large;
    padding: 0.5em;
    border: 0.15rem solid var(--theme-color);
    border-radius: 0.5em;
    background-color: transparent;
    color: var(--theme-color);
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
}
#show_review:hover{
    background-color: var(--theme-color);
    color: white;
}

button.calc{
    font-size: x-large;
    padding: 0.5em;
    border: 0.15rem solid var(--theme-color);
    border-radius: 0.2em;
    background-color: rgba(245, 245, 245, 0.5);
    background-position: right;
    background-size: contain;
    background-repeat:no-repeat;
    color: var(--theme-color);
    cursor: pointer;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
}
button.calc:hover{
    background-color: var(--theme-color);
    color: white;
}

.review{
    flex: 1;
    margin: 1em;
}

.review .name{
    border-bottom: 0.15rem solid var(--theme-color);
    font-size: x-large;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.review_text{
    margin-top: 0;
}

.char{
    max-width: 450px;
    width: 100%;
    object-fit: scale-down;
    margin:1em;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 0;
}

@media screen and (max-width: 800px){
    .article{
        width: auto;
    }
    .review{
        flex: 1 1 100%;
        margin-top: 0;
    }
    .review .name{
        margin-top: 0;
        width: auto;
    }
    .char{
        margin-left: auto;
        margin-right: auto;
    }
}