* {
    font-family: "Poppins", "Noto Sans JP", sans-serif;
}

body {
    --parkHeight: 75vh;
    --parkSHeight: 75svh;
}

.header {
    height: min(calc((100vh - var(--parkHeight)) / 2), calc((100svh - var(--parkSHeight)) / 2));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding-bottom: 2vh;
    flex-direction: column;
    gap: 0.2em;
}

.header::before {
    content: "\f0d8";
    font-family: "FontAwesome";
    line-height: 0.4em;
    font-size: 3em;
}

.parking {
    width: min(375px, 96%);
    min-height: min(var(--parkHeight), var(--parkSHeight));
    display: grid;
    grid-template: 1fr/repeat(6, 1fr);
    margin: 0 auto;
    border-top: 1px solid #888888;
}

.parking>div {
    display: grid;
    grid-template: repeat(4, 1fr)/1fr;
    gap: 1%;
}

.car {
    background: url(img/lv1.svg) center/contain no-repeat;
    position: relative;
}

.car.lv1 {
    background-image: url(img/lv1.svg)
}

.car.lv2 {
    background-image: url(img/lv2.svg)
}

.car.lv3 {
    background-image: url(img/lv3.svg)
}

.car.lv4 {
    background-image: url(img/lv4.svg)
}

.car.lv5 {
    background-image: url(img/lv5.svg)
}

.car.lv6 {
    background-image: url(img/lv6.svg)
}

.name,
.wish {
    position: absolute;
    left: 50%;
    transform: translate(0, -50%);
}

.name {
    top: 50%;
    left: 20%;
    writing-mode: vertical-rl;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 -1px 2px #000000, 1px 0 2px #000000, 0 1px 2px #000000, -1px 0 2px #000000;
    line-height: 1;
    font-size: 0.9em;
    white-space: nowrap;
    /* text-shadow: 0 -2px 1px #fff, 2px 0 1px #fff, 0 2px 1px #fff, -2px 0 1px #fff; */
    /* background: rgba(255, 255, 255, 0.7); */
    /* border-radius: 50px; */
    /* text-align: center; */
    /* min-height: 100px; */
    /* border: 2px solid #ffffff; */
}

.name::after {
    content: "さん";
    font-size: 0.6em;
}

.wish {
    top: 50%;
    left: 48%;
    /* -webkit-text-stroke: #fff 0.5px; */
    /* transform: translate(-50%, 0); */
    writing-mode: vertical-rl;
    white-space: nowrap;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    font-size: 0.9em;
    text-shadow: 0 -1px 2px #000000, 1px 0 2px #000000, 0 1px 2px #000000, -1px 0 2px #000000;
}

.car.lv4 {
    background-image: url(img/lv4.svg)
}

* {
    box-sizing: border-box;
}

p {
    margin: 0;
}

.rank {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    background: #fff;
    padding: 0.2em;
    border-radius: 50px;
    width: 2em;
    height: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
}

.parking>div {
    border-right: 1px solid #888;
    /* padding: 0 0.2em; */
}

.parking .emply {
    display: block;
}

.parking>div.lane1 {
    border-left: 1px solid #888;
}

.parking>div.empty {
    display: block;
}

.parking>div.load {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background: #bababa;
    text-shadow: -2px 0 0 #ffffff, 0 2px 0 #ffffff, 2px 0 0 #ffffff, 0 -2px 0 #ffffff;
    writing-mode: vertical-lr;
    letter-spacing: 1em;
    font-size: 1.2em;
    color: #242424;
}

.parking>div.other {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    /* background: #bababa; */
    text-shadow: -2px 0 0 #ffffff, 0 2px 0 #ffffff, 2px 0 0 #ffffff, 0 -2px 0 #ffffff;
    writing-mode: vertical-lr;
    letter-spacing: 0.4em;
    font-size: 1em;
    color: #242424;
}

.parking>div.other::after {
    content: "他のクラスのレーン";
}

.modal {
    position: fixed;
    inset: 0;
    margin: auto;
    background: #fff;
}

.modal .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* HTML: <div class="loader"></div> */

.loader {
    width: min(160px, 70%);
    aspect-ratio: 1;
    --c: conic-gradient(from -90deg, #000 90deg, #0000 0);
    background: var(--c), var(--c);
    background-size: 40% 40%;
    animation: l20 1.5s infinite;
}

@keyframes l20 {
    0%,
    20% {
        background-position: 0 0, 0 calc(100%/3)
    }
    33% {
        background-position: 0 0, calc(100%/3) calc(100%/3)
    }
    66% {
        background-position: 0 calc(100%/3), calc(100%/3) 0
    }
    80%,
    100% {
        background-position: 0 calc(100%/3), 0 0
    }
}


/* form.htm */

#form form {
    width: min(600px, 90%);
    min-height: 320px;
    margin: 5em auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    box-shadow: 0 0 5px #737373;
    padding: 2em;
    align-items: center;
}

#form form p:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
}

#form form p:nth-of-type(2) input {
    display: block;
    /* width: min(355px,100%); */
    width: 100%;
    padding: 0.2em;
    font-size: 1em;
}

#form p {
    width: 80%;
    padding: 1em;
    background: #e2e3f3;
    box-sizing: content-box;
}

#form p:first-of-type {
    display: flex;
}

#form p:first-of-type select {
    font-size: 1em;
    flex: 1;
}

#form form p:last-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin: 0 !important;
    padding: 0;
}

input.next,
input[type="submit"] {
    padding: 0.8em 3em;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50px;
    width: 75%;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

input.next:not([disabled="true"]):hover,
input[type="submit"]:not([disabled="true"]):hover {
    background: midnightblue;
    color: #fff;
}

#form label {
    margin-right: 1em;
}

p.warning {
    background: transparent !important;
}

.warning span {
    display: block;
}

.warning small {
    color: crimson;
    user-select: none;
    cursor: pointer;
}

.warning input[type="checkbox"] {
    vertical-align: middle;
}

#form form[action="install.php"] {
    display: none;
}

#entry div.container {
    width: min(600px, 90%);
    margin: 1.5em auto;
    box-shadow: 0 0 10px lightgray;
    padding: 3em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#entry div.text p::before {
    font-family: "FontAwesome";
    content: "\f1d8";
    margin-right: 0.2em;
    color: #2684fc
}

#entry div.image {
    display: flex;
    justify-content: space-evenly;
    background: bisque;
    position: relative;
    border-radius: 16px;
}

#entry div.image::after {
    content: "";
    display: block;
    background: #fff;
    position: absolute;
    width: 20px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#entry div.image figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1 / 1;
    justify-content: flex-start;
}

#entry div.image img {
    width: 80%;
    aspect-ratio: 1 / 1;
}

#entry div.next p:nth-of-type(2) {
    text-align: center;
    padding: 1em;
}

#entry div.next p:nth-of-type(2) input {
    background: lightblue;
}

#entry div.next p:nth-of-type(2) input:hover {
    background: midnightblue;
}

#setup .explain {
    width: min(600px, 96%);
    margin: 4em auto;
    padding: 2em;
    box-shadow: 0 0 10px lightgray;
    display: flex;
    flex-direction: column;
}

#setup .explain>p:first-of-type {
    font-size: 1.2em;
    font-weight: bold;
}

#setup .qr {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    background: bisque;
    padding: 1em;
}

#setup .qr img {
    width: min(180px, 90%);
    aspect-ratio: 1/1;
    object-fit: contain;
}

.honorific-title {
    font-size: 0.7em;
}

.your-email {
    display: block;
    padding: 0.3em;
    background: bisque;
}

#setup .making-shortcut {
    margin-top: 2em;
}

#setup .making-shortcut img {
    width: min(90%, 300px);
    border-radius: 24px;
    border: 8px solid #000;
}

#setup .making-shortcut p:nth-of-type(2) {
    display: flex;
    justify-content: center;
    padding: 2em;
    background: bisque;
}