/* common */
:root,
body {
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 600px) {

    :root,
    body {
        font-size: 14px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Yu Gothic', sans-serif;
    background-color: #000;
    color: #f2f2f2;
}

.wrapper {
    max-width: 768px;
    margin: 0 auto;
}

.content {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 4rem;

}

.title-img {
    margin-bottom: 1rem;
}



/* 診断ページ*/
.note {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #c1c1c1;

    text-align: center;
    margin-bottom: 2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: center;
}

.form label {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: large;
    font-weight: bold;
    letter-spacing: 0.2em;

}

.form input {
    padding: 0.5rem 0.75em;
    font-size: 1rem;
    border: 1px solid #666;
    background-color: #111;
    color: #fff;
    box-sizing: border-box;
    margin-bottom: 1.2em;
}

.form input:focus {
    outline: 2px solid #8b0000;
    background-color: #111;
}

.form button {
    font-size: large;
    padding: 0.6rem 1rem;
    background-color: #8b0000;
    letter-spacing: 0.2em;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    margin-top: 1.25rem;
    letter-spacing: 0.1em;
    box-shadow: 0 0 5px rgb(139 0 0);
}

.form button:hover {
    background-color: #4b0000;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #111 inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 600px) {

    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}


/* 結果ページ*/
.result-heading {
    font-size: 1.5em;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.result-heading .name {
    font-size: 1.25em;
}


.result-list {
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.result-item .label {
    color: #c00;
    flex-shrink: 0;
    text-align: left;
}

.result-item .text {
    padding-left: 0;
}

.button-wrap {
  width: 100%;
  text-align: center;
}

.button-wrap button {
  width: 100%;
}

#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
    font-family: sans-serif;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1em;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-weight: bold;
    font-size: 1.2em;
}