span.aks {
    display: inline-block;
}

body {
    font-family: "Shimanami", serif;
    color: #fff;
    margin: 0;
    padding: 0;
    background-color: #231112;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70.89px;
    background-color: #111113;
    box-shadow: 0 0 2rem rgba(200, 163, 83, 0.5);
}

main {
    height: calc(100svh - 70.89px);
    margin-top: 70.89px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/** analysis **/
#top {
    margin: 0 auto;
    width: 92%;
    text-align: center;
}

h2 {
    position: relative;
    margin: 1.4em 0;
}

h2 img {
    width: auto;
    height: 3em;
}

/**
h2 {
    position: relative;
    margin: 2.5em 0 1.5em;
    padding-bottom: 0.5em;
    -webkit-text-fill-color: transparent;
    background: -webkit-linear-gradient(top, #f9f8f5 0%, #9b9b9b 52.08%, #f9f8f5 52.09%);
    background: linear-gradient(180deg, #f9f8f5 0%, #9b9b9b 52.08%, #f9f8f5 52.09%);
    -webkit-background-clip: text;
}

h2::before {
    content: "";
    position: absolute;
    top: -0.95em;
    left: 50%;
    width: 2.6em;
    height: 0.8em;
    transform: translate(-50%, 0%);
    background-image: url(../img/title_ornament.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1.8em;
    height: 1px;
    transform: translate(-50%, 0%);
    background-color: #8f7f58;
}
**/

#top p {
    margin: 0;
}

#question {
    margin: 2em 0;
}

.swiper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 2em;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    margin: 1.5em 0;
    padding: 2em 2.5em;
    transition: opacity 0.4s ease, transform 0.4s ease;
    outline: 5px double #231112;
    outline-offset: -15px;
    color: #231112;
    background-color: #F8F0E5;
    display: flex;
    flex-direction: column;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.4;
    transform: scale(0.8);
    pointer-events: none;
}


.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide>.d-flex {
    flex-grow: 1;
}

.slide-item {
    padding: 1em;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: center;
}

#question h5 {
    font-size: 1.1em;
}

.slide-item label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.slide-item-text {
    display: flex;
    align-items: flex-start;
}

.slide-item input[type="radio"] {
    margin: 0.4em;
    flex-shrink: 0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    max-width: 12em;
    height: auto;
    margin: 0.5em auto;
}

.swiper-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.5em;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    line-height: 1;
}

.prev,
.next {
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    margin: 0;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    width: 3em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev i,
.next i {
    font-size: 2em;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.prev:disabled,
.next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev {
    left: 3.5em;
}

.next {
    right: 3.5em;
}

/** responsive **/
@media all and (min-width: 768px) {
    /* md */
    .swiper-slide {
        margin: 0;
        height: auto;
    }

    .slide-item {
        padding: 1.5em;
        flex: 1;
    }

    .swiper-slide img {
        max-width: 20em;
    }

    .swiper-controls {
        position: static;
        background: none;
        height: auto;
        display: block;
    }

    .prev,
    .next {
        position: absolute;
        top: 35%;
        z-index: 10;
    }

    .prev {
        left: 0em;
    }

    .next {
        right: 0em;
    }

    .swiper-pagination {
        position: relative !important;
        bottom: 0;
        padding-top: 1.5em;
        text-align: center;
    }
}

@media all and (min-width: 992px) {
    /* lg */
    #analysis {
        margin: 0 auto;
        width: 80%;
    }

    .swiper {
        overflow: visible !important;
    }

    .prev {
        left: 0.5em;
    }

    .next {
        right: 0.5em;
    }
}

@media all and (min-width: 1200px) {
    /* xl */
    #analysis {
        width: 60%;
    }
}

/** result **/
.result-container {
    margin: 0 auto;
    padding: 2.5em;
    width: 92%;
}

.result-container+.result-container {
    font-size: 0.9em;
}

.--bg {
    background-color: #0f0304;
}

.result-type {
    position: relative;
    margin: 1.2em 0;
    padding: 1.5em 0;
    font-size: 1.2em;
}

.result-type span {
    padding: 0 0.3em;
    font-weight: 900;
    color: #8f7f58;
    text-shadow: 4px 6px 4px rgba(117, 108, 91, 0.4);
}

.sub-type {
    position: relative;
    margin: 1em 0 3em;
    padding: 1.5em 0;
}

.sub-type span {
    margin: 0.7em 0;
    padding: 0 0.2em;
    font-size: 1.1em;
    font-weight: 600;
    color: #8f7f58;
    text-shadow: 4px 4px 4px rgba(117, 108, 91, 0.4);
}

.result-type::before,
.sub-type::before {
    content: "";
    position: absolute;
    top: -1.8em;
    left: 50%;
    width: 100%;
    height: 3.5em;
    transform: translate(-50%, 0%);
    background-image: url(../img/result-top.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.result-type::after,
.sub-type::after {
    content: "";
    position: absolute;
    bottom: -1.8em;
    left: 50%;
    width: 100%;
    height: 3.5em;
    transform: translate(-50%, 0%);
    background-image: url(../img/result-bottom.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.result-description {
    margin: 3.5em 0 2em;
}

.ring {
    margin: 1em 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
}

.ring>div {
    flex: 0 1 calc(50% - 2em);
    max-width: 18em;
}

.ring img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto 0.4em;
    border-radius: 15px;
}

.ring a {
    text-decoration: none;
}

.ring p {
    margin: 0;
    font-size: 0.75em;
    color: #fff;
}

.color {
    margin: 3em 0 1em;
}

.color-img {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2em 0;
    margin: 2em auto;
    max-width: 800px;
}

.color-item {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    order: 2;
    padding: 1.5em;
    overflow: visible;
}

.color-item.color-active {
    grid-column: span 4;
    order: 1;
}

.color-item img {
    height: 3em;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.color-active img {
    transform: scale(1.3);
    filter: drop-shadow(1px 3px 5px rgba(255, 255, 255, 0.5));
    margin-bottom: 1.2em;
}

.color-item:not(.color-active) img {
    filter: brightness(0.6);
}

.color-item small {
    display: block;
    margin-top: 0.5em;
    font-size: 70%;
    white-space: nowrap;
}

.color-active small {
    font-size: 90%;
    font-weight: 900;
    color: #fff;
}

.ring_link img {

}
.ring_link p {

}

/** responsive **/
@media all and (max-width: 575px) {
    /* xs */
}

@media all and (min-width: 576px) {
    /* sm */
}

@media all and (min-width: 768px) {
    /* md */
    .color {
        flex-direction: row;
    }

    .color-img {
        width: 60%;
    }

    .color-item img {
        height: 6.5em;
    }
}

@media all and (min-width: 992px) {
    /* lg */
    .result-container {
        width: 60%;
    }

    .ring>div {
        flex: 0 1 calc(25% - 2em);
    }
}

@media all and (min-width: 1200px) {
    /* xl */
}

@media all and (min-width: 1400px) {
    /* xxl */
}


/* loading */
#loading-bg {
    margin: 0;
    background-color: #231112;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.75;
    z-index: 5;
}

#loading-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.75;
    z-index: 10;
}

#loader {
    font-size: 1.5em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    animation: load5 1.1s infinite ease;
    transform: translateZ(0);
}

@media all and (min-width: 768px) {
    /* md */
    #loader {
        font-size: 2em;
    }
}

#loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.6em;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
}


@-webkit-keyframes load5 {

    0%,
    100% {
        box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
    }

    12.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
    }

    25% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    37.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    62.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    75% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    87.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
    }
}

@keyframes load5 {

    0%,
    100% {
        box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
    }

    12.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
    }

    25% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    37.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    62.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    75% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }

    87.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
    }
}

/* * 
 * 選択肢の要素についての対応 
 * 実テキストと虚テキストを用意
 * 2つのうち長い方を虚テキストとして用意することで長さを統一する
 */
.grid-layer {
    display: grid;
    grid-template-columns: 1fr;
}
.grid-layer .real-text,
.grid-layer .dummy-text {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    
    /* フォント設定を確実に合わせる（ズレ防止） */
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}
.grid-layer .dummy-text {
    visibility: hidden;
    pointer-events: none;
    white-space: normal;
}
/* 縦に並べているときは不要 */
@media all and (max-width: 768px) {
    .dummy-text {
        display: none;
    }
}