@charset "utf-8";
:root {
    --capsule-test-f-en: "Montserrat";
    --capsule-test-f-jp: "Noto Sans JP", sans-serif;
    --capsule-test-c-brown: rgb(121, 97, 72);
    --capsule-test-c-beige: rgb(234, 207, 181);
    --capsule-max-sp: 90.67vw;
}

#capsule-test {
    font-family: var(--capsule-test-f-en),var(--capsule-test-f-jp), sans-serif;
    color: #000;
    line-height: 1.6;
    font-size: clamp(1.2rem, 1.092rem + 0.3vw, 1.4rem);
    text-align: center;
}
#capsule-test .area-inner {
    overflow: hidden;
    position: relative;
    z-index: 2;
}
#capsule-test > .section {
    height: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 1s ease-in-out;
}
#capsule-test > .section.active {
    height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#capsule-test #test-top,
#capsule-test #test-question {
    display: grid;
}
#capsule-test #test-question {
    place-items: center;
}
#capsule-test a {
    color: #000;
}
#capsule-test #test-top .wave-wrap {
    background-color: #fff;
    position: relative;
}
#capsule-test #test-top .wave-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url('../img/noise.png');
    background-size: cover;
    opacity: 0.3;
    mix-blend-mode: soft-light;
    z-index: 1;
}
#capsule-test .waves {
    position: relative;
    width: 220%;
    height: 40px;
    min-height: 80px;
    max-height: 150px;
    color: var(--capsule-test-c-beige);
    margin-bottom: -7px;
}
#capsule-test #test-result .waves {
    color: #fff;
}
#capsule-test .parallax > use {
    animation: move-forever 18s cubic-bezier(.55,.5,.45,.5) infinite;
    fill: currentColor;
    opacity: .9;
}
#capsule-test .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    opacity: .4;
}
#capsule-test .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    opacity: .6;
}
#capsule-test .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    opacity: .8;
}
#capsule-test .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    opacity: 1;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}
#capsule-test #test-top .area-inner {
    display: flex;
    flex-direction: column;
}
#capsule-test #test-top .top-inner {
    position: relative;
    color: #fff;
    background: linear-gradient(0deg,rgb(121, 97, 72) 0%, rgb(234, 207, 181) 100%);
    flex: auto;
    padding: min(3vw,30px) 0 min(16vw,80px);
}
#capsule-test #test-top .top-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url('../img/noise.png');
    background-size: cover;
    mix-blend-mode: soft-light;
    opacity: 0.3;
    transition: opacity 1s ease-in-out;
}
#capsule-test #test-result .wave-wrap {
    overflow: hidden;
}
#capsule-test #test-result .wave-wrap.bottom {
    transform: scaleY(-1) scaleX(-1);
}
@media screen and (min-width: 767px) {
    #capsule-test #test-top .top-inner::after {
        background-size: 40%;
        background-repeat: repeat-x;
    }
    #capsule-test #test-top .wave-wrap::before {
        background-size: 40%;
    }
    #capsule-test .waves {
        width: 100%;
        height: 11vh;
        margin-bottom: -7px;
    }
    #capsule-test #test-result .waves {
        width: 100%;
        height: 12vh;
    }
}
#capsule-test .head {
    padding: min(50px,8vw) 0 min(30px,5vw);
}
#capsule-test .head .sub-title {
    padding-bottom: min(20px,3vw);
    font-weight: 500;
    text-align: center;
}
#capsule-test #test-top .drop {
    width: min(30px,5vw);
    margin: 0 auto;
}
#capsule-test #test-top h1 {
    font-size: clamp(3rem, 2.241rem + 2.108vw, 4.4rem);
    line-height: 1.34;
}
#capsule-test #test-top h1 > span {
    font-size: clamp(1.6rem, 1.275rem + 0.9vw, 2.2rem);
}
#capsule-test #test-top .lead-text {
    font-weight: 500;
    text-align: center;
    margin: min(40px,4vw) 0  min(50px,8vw);
}
#capsule-test .btn-wrap a {
    display: inline-block;
    padding: min(2.6vw,10px) min(16vw,60px);
    background-color: #fff;
    border-radius: 10vw;
    position: relative;
    font-weight: 500;
}
#capsule-test .btn-wrap a.start::after,
#capsule-test .btn-wrap a.next::after {
    content: "";
    display: inline-block;
    width: min(2.6vw,10px);
    height: min(2.6vw,10px);
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transform: rotate(45deg) translateX(-76%);
    position: absolute;
    top: 50%;
    right: min(5vw,28px);
}
#capsule-test .btn-wrap a.start {
    padding: min(3.4vw,16px) min(16vw,70px);
    transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
    border: 1px solid #fff;
}
#capsule-test .btn-wrap a.start::after {
    transition: border-color 0.6s ease;
}
#capsule-test .btn-wrap a.next {
    border: 1px solid #000;
    transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}
#capsule-test .btn-wrap a.next::after {
    transition: border-color 0.6s ease;
}
#capsule-test .btn-wrap a.back {
    display: inline-block;
    color: #fff;
    background-color: transparent;
    border: 1px solid #fff;
    padding: min(2.6vw,10px) min(36vw,80px);
    border-radius: 10vw;
    position: relative;
    margin: min(60px,12vw) 0;
}
#capsule-test .btn-wrap a.back::before {
    content: "";
    display: inline-block;
    width: min(2.6vw,10px);
    height: min(2.6vw,10px);
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    transform: rotate(45deg) translateX(-76%);
    position: absolute;
    top: 50%;
    left: min(10vw,28px);
}
@media (any-hover: hover) {
    #capsule-test .btn-wrap a.start:hover {
        background-color: transparent;
        color: #fff;
        border-color: #fff;
        opacity: 1;
    }
    #capsule-test .btn-wrap a.start:hover::after {
        border-top-color: #fff;
        border-right-color: #fff;
    }
    #capsule-test .btn-wrap a.next:hover {
        background-color: var(--capsule-test-c-brown);
        color: #fff;
        border-color: #fff;
        opacity: 1;
    }
    #capsule-test .btn-wrap a.next:hover::after {
        border-top-color: #fff;
        border-right-color: #fff;
    }
}
#capsule-test #test-question,
#capsule-test #test-result {
    background-color: rgb(193, 162, 142);
    background-image:
        radial-gradient(circle at 10% 10%, hsla(58,36%,85%,0.9) 0px, transparent 35%),
        radial-gradient(circle at 85% 85%, hsla(58,36%,82%,0.8) 0px, transparent 40%),
        radial-gradient(circle at 50% 50%, hsla(58,36%,78%,0.5) 0px, transparent 45%);
    background-size: 150% 170%;
    animation: bgAnime 10s ease-in-out infinite;
    color: #fff;
    position: relative;
}
@keyframes bgAnime { 
    0%{background-position:50% 20%}
    50%{background-position:50% 80%}
    100%{background-position:50% 20%}
}
#capsule-test #test-question::after,
#capsule-test #test-result::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url('../img/subpage-noise.png');
    background-size: min(20%,90px);
    opacity: 0.3;
    mix-blend-mode: soft-light;
}
#capsule-test #test-question .drop-stack {
    display: flex;
    gap: min(30px,15vw);
    align-items: center;
    justify-content: center;
}
#capsule-test #test-question .drop-stack li {
    position: relative;
    width: min(30px, 5vw);
    aspect-ratio: 1 / 1.3;
    background-color: rgba(255, 255, 255, 0.4);
    -webkit-mask-image: url('../img/drop.svg');
    mask-image: url('../img/drop.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: auto 88%;
    mask-size: auto 88%;
    -webkit-mask-position: center;
    mask-position: center;
    overflow: hidden;
}
#capsule-test #test-question .drop-stack li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateY(-100%);
}
#capsule-test #test-question .drop-stack li.current::before {
    transform: translateY(0%);
    transition: transform 1s cubic-bezier(0, 0, 0, 1);
}
#capsule-test #test-question .contents > div {
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}
#capsule-test #test-question .contents > div.active {
    height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#capsule-test #test-question .question {
    font-size: clamp(1.8rem, 1.583rem + 0.602vw, 2.2rem);
    padding: min(50px,8vw) 0;
}
#capsule-test #test-question .question br {
    display: none;
}
@media screen and (max-width: 766px) {
    #capsule-test #test-question .question br {
        display: block;
    }
}
#capsule-test #test-question .content .question span {
    font-size: calc(clamp(1.8rem, 1.583rem + 0.602vw, 2.2rem) * 1.2);
    padding-bottom: min(50px,8vw);
}
#capsule-test #test-question .answer-wrap ul li {
    background-color: #fff;
    width: min(81.33vw, 500px);
    margin: 0 auto;
    border-radius: 10px;
    transition: color 0.6s ease;
}
#capsule-test #test-question .answer-wrap ul li + li {
    margin-top: min(26px,4vw);
}
#capsule-test #test-question .answer-wrap li a {
    display: block;
    padding: min(26px,5vw) 0;
    transition: color 0.4s ease;
}
@media (any-hover: hover) {
    #capsule-test #test-question .answer-wrap ul li:hover a {
        color: var(--capsule-test-c-brown);
        opacity: 1;
    }
}
#capsule-test #test-result .head {
    padding: min(80px,10vw) 0 min(60px,10vw);
}
#capsule-test #test-result .head .sub-title {
    display: inline-block;
    color: var(--capsule-test-c-brown);
    background-color: #fff;
    border-radius: 40px;
    line-height: 2;
    padding: 0 min(20px,4vw);
    min-height: 2em;
}
#capsule-test #test-result .head .loading {
    display: flex;
    justify-content: center;
    column-gap: min(4vw,20px);
    margin-top: min(4vw,20px);
}
#capsule-test #test-result .head .loading > span {
    display: block;
    width: min(3vw,10px);
    height: min(3vw,10px);
    background-color: #fff;
    border-radius: 50%;
    animation: loading 0.8s ease-in-out infinite alternate;
}
#capsule-test #test-result .head .loading > span:nth-child(2) {
    animation-delay: 0.2s;
}
#capsule-test #test-result .head .loading > span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes loading {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.4);
    }
}
#capsule-test #test-result .recommend-inner {
    background-color: #fff;
    position: relative;
    color: #000;
    padding: min(5vw,70px) 0;
}
#capsule-test #test-result .capsule-item {
    width: min(var(--capsule-max-sp),660px);
    margin-inline: auto;
}
#capsule-test #test-result .recommend-capsule figure,
#capsule-test #test-result .recipe-wrap figure {
    width: min(370px,70vw);
    margin: 0 auto min(20px,5vw);
    border-radius: 10px;
    overflow: hidden;
}
#capsule-test #test-result .recommend-capsule figure img,
#capsule-test #test-result .recipe-wrap figure img {
    transition: transform 0.6s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (any-hover: hover) {
    #capsule-test #test-result .recommend-capsule figure:hover img,
    #capsule-test #test-result .recipe-wrap figure:hover img {
        transform: scale(1.05);
    }
}
#capsule-test #test-result .capsule-name {
    text-align: center;
}
#capsule-test #test-result .description {
    font-size: clamp(1.3rem, 1.192rem + 0.301vw, 1.5rem);
    letter-spacing: 0;
    font-weight: 500;
    text-align: center;
    margin: min(4vw,20px) 0;
}
@media screen and (max-width: 766px) {
    #capsule-test #test-result .description {
        text-align: left;
    }
}
#capsule-test #test-result .reccomend-recipe {
    padding-top: min(12vw,50px);
}
#capsule-test #test-result .reccomend-recipe h3 {
    font-size: clamp(1.8rem, 1.583rem + 0.6vw, 2.2rem);
    font-weight: 500;
    padding-bottom: min(4vw,20px);
}
#capsule-test #test-result .recipe-wrap {
    width: min(var(--capsule-max-sp),660px);
    margin: 0 auto;
    padding: min(40px,8vw);
    background-color: #fff;
    border-radius: 10px;
    color: #000;
}
#capsule-test #test-result .recipe-wrap .recipe-step {
    counter-reset: circle-counter;
    line-height: 1.5;
    text-align: left;
}
#capsule-test #test-result .recipe-wrap .recipe-step li {
    position: relative;
    counter-increment: circle-counter;
    display: flex;
    align-items: baseline;
    gap: min(10px,3vw);
    font-weight: 500;
}
#capsule-test #test-result .recipe-wrap .recipe-step li + li {
    margin-top: min(12px,2vw);
}
#capsule-test #test-result .recipe-wrap .recipe-step li::before {
    content: counter(circle-counter);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: min(6vw,30px);
    height: min(6vw,30px);
    background-color: #f2ece5;
    border-radius: 50%;
    line-height: 1;
}
#capsule-test #test-result .recipe-wrap .recipe-recommend {
    border-top: 1px solid #ddd;
    margin-top: min(6vw,30px);
    padding-top: min(6vw,30px);
}
#capsule-test #test-result .recipe-wrap .recipe-recommend > p {
    font-weight: 500;
    text-align: center;
}
#capsule-test #test-result .recipe-wrap .recipe-milk {
    width: 100%;
    margin-top: min(2vw,10px);
    background-color: #f2ece5;
    border-radius: 100vmax;
    padding: min(1vw,10px) min(2vw,20px);
    font-size: clamp(1.4rem, 1.183rem + 0.6vw, 1.8rem);
} 

#banner, .asideBox, #footer .footInner {
    display: none !important;
}
#footer {
    margin-top: 0 !important;
}
