.sans {
    font-family: 'Noto Sans JP', sans-serif;
}

.serif {
    font-family: 'Noto Serif JP', serif;
}

.kaisyo {
    font-family: 'Yuji Syuku', sans-serif;
}

body {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.content {
    position: relative;
    width: 100%;
    height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    position: relative;
    width: 100%;
    height: 5%;
    color: rgb(255, 255, 255);
    background-color: rgb(164, 164, 165);
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    outline: none;
    border: 3px double rgb(200, 200, 200);
    border-radius: 10px;
    background-image: linear-gradient(to bottom, #ffffff, #cbcbcb);
    box-shadow: 1px 1px 3px rgba(150, 150, 150, 0.8);
}

* {
    white-space: nowrap;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 1px;
}

*::-webkit-scrollbar-thumb {
    background-color: rgb(180, 180, 180);
    border-radius: 5px;
    box-shadow: inset 3px 3px 3px rgba(255, 255, 255, 0.2);
}

*::-webkit-scrollbar-track {
    background-color: rgb(240, 240, 240);
    border-radius: 5px;
    box-shadow: inset 3px -3px 5px rgba(100, 100, 100, 0.2);
}

*::-webkit-scrollbar-corner {
    display: none;
}

.side-bar {
    position: relative;
    width: 20%;
    height: 100%;
}

.side-bar > header {
    position: relative;
    width: 100%;
    height: 15%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}

.side-bar > header > img {
    position: relative;
    width: auto;
    height: 60%;
}

.side-bar > header > div {
    position: relative;
    width: auto;
    height: 50%;
    margin-left: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.side-bar > header > div > span:nth-child(1) {
    border-bottom: 1px solid rgb(0, 0, 0);
    white-space: nowrap;
}

.side-bar > header > div > span:nth-child(2) {
    font-size: 0.7em;
}

.side-bar > main {
    position: relative;
    width: 100%;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(164, 149, 218);
}

.content-title {
    position: relative;
    width: 90%;
    height: 2em;
    margin-left: 5%;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: left;
    align-items: center;
}

.side-content {
    position: relative;
    width: 100%;
    height: 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.side-content > div:nth-child(2) {
    position: relative;
    width: 90%;
    height: 2em;
    margin-left: 5%;
    border: 3px double rgb(200, 200, 200);
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.side-content > div:nth-child(2) > input, .side-content > div:nth-child(2) > span:nth-child(1) {
    position: relative;
    width: calc(100% - 3em);
    height: 100%;
    outline: none;
    border: none;
    padding-left: 0.5em;
    display: flex;
    justify-content: left;
    align-items: center;
}

.side-content > div:nth-child(2) > span:nth-child(2) {
    position: relative;
    width: 1em;
    height: 100%;
}

.side-content > div:nth-child(2) > span:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 1em;
    border-right: 2px solid rgb(150, 150, 150);
}

.side-content > div:nth-child(2) > span:nth-child(3) {
    position: relative;
    width: 2em;
    height: 100%;
    cursor: pointer;
}

.side-content > div:nth-child(2) > span:nth-child(3)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(315deg);
    width: 0.5em;
    height: 0.5em;
    border-left: 2px solid rgb(150, 150, 150);
    border-bottom: 2px solid rgb(150, 150, 150);
    margin-top: -0.1em;
    margin-left: -0.1em;
}

.side-content > .select-list {
    position: absolute;
    top: calc(100% - (100% - 4em) / 2 + 2px);
    left: 5%;
    width: 90%;
    height: auto;
    max-height: 6em;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 0, 0);
    border-radius: 5px;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    transition: 0.5s;
}

.side-content > .select-list.open {
    visibility: visible;
    opacity: 1;
    z-index: 10;
    transition: 0.5s;
}

.side-content > .select-list > ol {
    margin: 0;
    padding: 0 5%;
}

.side-content > .select-list > div, .side-content > .select-list li {
    position: relative;
    width: 90%;
    height: 1.3em;
    font-size: 0.9em;
    border-bottom: 1px solid rgb(0, 0, 0);
    margin: 0.5em 0;
    display: flex;
    justify-content: left;
    align-items: flex-end;
    cursor: pointer;
}

.side-content > .select-list > div {
    margin-top: 5%;
    margin-left: 5%;
}

.select-template {
    position: relative;
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.select-template > div:nth-child(2) {
    position: relative;
    width: 90%;
    height: calc(100% - 2em);
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    margin-left: 5%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
}

.select-template > div:nth-child(2) > img {
    position: relative;
    width: 20%;
    height: auto;
    margin: auto;
    border: 1px solid rgb(0, 0, 0);
}

.select-template > div:nth-child(2) > img:hover {
    outline: 1px solid rgb(255, 180, 0);
}

.side-content > button {
    position: relative;
    width: 50%;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: auto;
}

.side-content > button:active {
    position: relative;
    top: 2px;
}

.side-content > .manual {
    position: absolute;
    bottom: 2%;
    left: 0;
    color: rgb(255, 255, 255);
    font-size: 0.8em;
    cursor: pointer;
}

.side-content > .manual:hover {
    color: rgb(255, 180, 0);
}

.header-title {
    position: relative;
    width: 90%;
    height: 100%;
    border-bottom: 1px solid rgb(164, 149, 218);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.main-content {
    position: relative;
    width: 50%;
    height: 100%;
}

.preview-area {
    position: relative;
    width: 30%;
    height: 100%;
}

.main-content > header, .preview-area > header {
    position: relative;
    width: 100%;
    height: 15%;
}

.main-content > main, .preview-area > main {
    position: relative;
    width: 100%;
    height: 85%;
}

.content-area {
    position: relative;
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-area, .tool-area {
    position: relative;
    width: 46%;
    height: 96%;
    padding: 1%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-area {
    flex-direction: column;
    align-items: flex-start;
}

.name-tool {
    position: relative;
    width: 87%;
    height: 60%;
}

.name-form {
    padding: 0 3%;
    overflow-x: hidden;
    overflow-y: auto;
}

.input-form {
    position: relative;
    width: 100%;
    height: 4em;
    padding-bottom: 0.3em;
    margin-top: 0.5em;
    border-bottom: 1px dotted rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.input-form > div {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: left;
    align-items: center;
}

.input-form > div > span {
    position: relative;
    width: 25%;
    height: 100%;
    padding-left: 0.5em;
    display: flex;
    justify-content: left;
    align-items: center;
}

.input-form > div > span:nth-child(1):after {
    content: ":";
    position: absolute;
    left: 85%;
}

.input-form > div > input {
    position: relative;
    width: 75%;
    height: 80%;
    outline: none;
    border: 1px solid rgb(150, 150, 150);
    border-radius: 5px;
    padding-left: 0.5em;
}

.sub-tool {
    position: relative;
    width: 86%;
    height: 40%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.font-tool {
    position: relative;
    width: 30%;
    height: 100%;
}

.bg-tool {
    position: relative;
    width: 50%;
    height: 100%;
}

.tool-title {
    position: relative;
    width: 100%;
    height: 1.5em;
    display: flex;
    justify-content: left;
    align-items: center;
}

.tool-title::before {
    content: "\25A0";
    color: rgb(164, 149, 218);
    margin-right: 0.2em;
}

.schedule-room {
    position: relative;
    width: auto;
    height: 1.5em;
    margin-left: 1em;
    padding: 0 0.5em;
    font-size: 0.9em;
    color: rgb(50, 50, 50);
    outline: none;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 5px;
    box-shadow: inset 1px 1px 3px rgba(150, 150, 150, 0.6);
}

.tool-form {
    position: relative;
    width: 100%;
    height: calc(100% - 2em);
    border: 3px double rgb(200, 200, 200);
    border-radius: 10px;
    box-shadow: inset -1px -1px 3px rgb(200, 200, 200);
}

.font-form, .bg-form {
    font-size: 0.8em;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
}

.font-form > div {
    position: relative;
    width: 100%;
    height: 33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.font-form > div:nth-child(2) {
    border-top: 1px dotted rgb(0, 0, 0);
    border-bottom: 1px dotted rgb(0, 0, 0);
}

.font-form > div > span:nth-child(1) {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    justify-items: left;
    align-items: center;
}

.font-form > div > span:nth-child(1) > input, .bg-form > div > input {
    accent-color: #8f82bc;
    inline-size: 0.8rem;
    margin-right: 0.2em;
}

.bg-form > div {
    position: relative;
    width: 85%;
    height: 25%;
    border-bottom: 1px dotted rgb(100, 100, 100);
    margin: auto;
    display: flex;
    justify-content: left;
    align-items: center;
}

.bg-form > div:last-child {
    border: none;
}

.bg-form > div > label {
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-left: 1em;
}

.bg-form > div > label > span {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
}

.bg-form > div > label > span:nth-child(2) {
    font-size: 1.1em;
}

.box {
    position: relative;
    width: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
    border: 1px solid rgb(0, 0, 0);
    z-index: -10;
    overflow: hidden;
}

.box > img, .box > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.box > #background, .box > .background {
    z-index: -2;
}

.box > #frame, .box > .frame {
    z-index: -1;
}

.box > #time, .box > .time {
    position: absolute;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5em;
}

.box > #hall, .box > .hall {
    position: absolute;
    top: 95%;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.2em;
}

.box > .room.vertical {
    position: absolute;
    top: 87%;
    transform: translateX(-50%);
}

.box > .name.vertical {
    position: absolute;
    transform: translateX(-50%);
    writing-mode: vertical-lr;
    font-weight: 500;
}

.box > .wake.vertical {
    position: absolute;
    top: 74%;
    transform: translateX(-50%);
}

.box > .funeral.vertical {
    position: absolute;
    top: 77.7%;
    transform: translateX(-50%);
}

.box > .vertical31 {
    left: 20.5%;
    top: 25%;
}

.box > .vertical32 {
    left: 50%;
    top: 25%;
}

.box > .vertical33  {
    left: 80.5%;
    top: 25%;
}

.box > .vertical21 {
    left: 28.5%;
    top: 23%;
}

.box > .vertical22 {
    left: 70.5%;
    top: 23%;
}

.box > .room.horizontal {
    position: absolute;
    left: 25%;
    transform: translateX(-50%);
    letter-spacing: 0.1em;
}

.box > .name.horizontal {
    position: absolute;
    left: 24%;
    letter-spacing: 0.2em;
}

.box > .wake.horizontal {
    position: absolute;
    left: 44%;
    letter-spacing: 0.1em;
}

.box > .funeral.horizontal {
    position: absolute;
    left: 69%;
    letter-spacing: 0.1em;
}

.box > .room.horizontal.room51 {
    top: 25%;
}

.box > .room.horizontal.room52 {
    top: 39.5%;
}

.box > .room.horizontal.room53 {
    top: 54%;
}

.box > .room.horizontal.room54 {
    top: 68.5%;
}

.box > .room.horizontal.room55 {
    top: 83.3%;
}

.box > .name.horizontal.name51 {
    top: 19%;
}

.box > .name.horizontal.name52 {
    top: 34%;
}

.box > .name.horizontal.name53 {
    top: 48%;
}

.box > .name.horizontal.name54 {
    top: 63%;
}

.box > .name.horizontal.name55 {
    top: 78%;
}

.box > .wake.horizontal.wake51, .box > .funeral.horizontal.funeral51 {
    top: 26%;
}

.box > .wake.horizontal.wake52, .box > .funeral.horizontal.funeral52 {
    top: 40.7%;
}

.box > .wake.horizontal.wake53, .box > .funeral.horizontal.funeral53 {
    top: 55.3%;
}

.box > .wake.horizontal.wake54, .box > .funeral.horizontal.funeral54 {
    top: 70.3%;
}

.box > .wake.horizontal.wake55, .box > .funeral.horizontal.funeral55 {
    top: 84.5%;
}

.box > .room.horizontal.room41 {
    top: 28%;
}

.box > .room.horizontal.room42 {
    top: 46%;
}

.box > .room.horizontal.room43 {
    top: 64%;
}

.box > .room.horizontal.room44 {
    top: 81.5%;
}

.box > .name.horizontal.name41 {
    top: 22%;
}

.box > .name.horizontal.name42 {
    top: 40%;
}

.box > .name.horizontal.name43 {
    top: 58%;
}

.box > .name.horizontal.name44 {
    top: 76%;
}

.box > .wake.horizontal.wake41, .box > .funeral.horizontal.funeral41 {
    top: 29%;
}

.box > .wake.horizontal.wake42, .box > .funeral.horizontal.funeral42 {
    top: 46.8%;
}

.box > .wake.horizontal.wake43, .box > .funeral.horizontal.funeral43 {
    top: 64.8%;
}

.box > .wake.horizontal.wake44, .box > .funeral.horizontal.funeral44 {
    top: 82.8%;
}

.content-preview {
    position: relative;
    width: 90%;
    height: 100%;
    padding-top: 3.6%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-area {
    position: relative;
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-area {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.schedule-form {
    position: relative;
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-title {
    position: relative;
    width: 20%;
    height: 2em;
    border-radius: 10px;
    background-image: linear-gradient(to bottom, #ffffff, #d5d4d4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-input {
    position: relative;
    width: 18%;
    height: 2em;
    padding: 0 0.5em;
    border: 3px double rgb(200, 200, 200);
    border-radius: 10px;
    box-shadow: inset 0px 0px 3px rgba(100, 100, 100, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-input > input {
    position: relative;
    width: calc(100% - 2em);
    height: 1.5em;
    padding-left: 0.2em;
    outline: none;
    border: none;
}

.schedule-input > input::-webkit-inner-spin-button {
    display: none;
}

.schedule-input > span {
    position: relative;
    width: 1em;
    height: 100%;
    font-size: 0.85em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-input > span:nth-child(2)::after {
    background-color: aqua;
    content: "";
    position: absolute;
    top: auto;
    left: 50%;
    height: 50%;
    border-left: 2px solid rgb(150, 150, 150);

}

.btn-area {
    position: relative;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-end;
}

.btn-area > button {
    position: relative;
    width: 5em;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 3px double rgb(164, 149, 218);
    background-image: linear-gradient(to right, #8f82bc, #d1c5fd);
    box-shadow: 2px 2px 5px rgba(150, 150, 150, 0.8);
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.btn-area > button.reset-btn {
    width: 8em;
    height: 2em;
    aspect-ratio: auto;
    border-radius: 10px;
    border: 3px double rgb(200, 200, 200);
    background-image: linear-gradient(to bottom, #ffffff, #bcbcbc);
    color: rgb(100, 100, 100);
    font-size: 0.9em;
}

.btn-area > button:active {
    position: relative;
    top: 2px;
}

.sub-area > button#top {
    position: relative;
    width: 12em;
    height: 3em;
    font-size: 0.85em;
    border-radius: 50px;
    color: rgb(100, 100, 100);
    cursor: pointer;
}

.sub-area > button:active {
    position: relative;
    top: 2px;
}

.content > .error-comment {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 2em;
    color: rgb(255, 0, 0);
}