body {
  background: url("bg.png") no-repeat center center fixed;
  background-size: cover;
    overflow-x: hidden;
    overflow-y: auto;
}

body > .wrap {
    overflow-x: hidden;
    overflow-y: hidden;    
}

textarea {
    background-color: #F3F3F3;
    min-height: 10em;
}
.categoryhtml {
    padding: 0.75em 1.75em 0.5em 1.75em;
    display: inline-block;
    background-color: #fff;
    border-radius: 3em;
    color: #888;
    margin-bottom: 0.5em;
    margin-right: 0.5em;
    vertical-align: 0.5em;
    span {
        background: linear-gradient(90deg, #33ffc5 0%, #477de0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;        
        font-size: 1.5em;        
    }
}
th,td {
    font-weight: normal;
    text-align: justify;
}
.max-w-4xl {
    max-width: 64rem !important;
}
.step-content {
    
}
.p-8 {
    padding: 2rem 4rem !important;
}
.qtitle {
    color: #fff;
    text-align: center;
    h2 {
        font-size: 2em;
    }
    .text-lg {
        line-height: 2em;
        font-size: 1.2em;    
    }
}

.logo02 {
    img {
        display: inline-block;
        background: #fff;
        border-radius: 100%;
        width: 5em;
        box-shadow: 0 0 2em 0em rgba(255, 255, 255, 1);
    }
}
main.result {
    .logo02 {
        img {
            box-shadow: 0 0 0.2em 0.5em #FAFFBE;
        }
    }
}
.steps {
    border-top: 2px solid #fff;
    margin-top: 20px;
    margin-bottom: 20px;
    .step-indicator {
        margin-top: -5px;
        &.active:after {
            position: absolute;
            content: "";
            display: inline-block;
            width: 3.5em;
            height: 3.5em;
            background: url(logo-02-w.png) no-repeat center center;
            background-size: contain;
        }
    }
    
}
.btnnext {
    position: relative;
    display: inline-block;
    background-color: #FF5D9A;
    padding: 1.5em 4em 1.5em 4em;
    border-radius: 3em;
    color: #fff;
    width: 20em;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0.5em 0.5em 0.5em 0em rgba(0, 0, 0, 0.3);
    &:after {
        position: absolute;
        content: url(next.svg);
        right: 3em;
        height: 1.5em;
        width: 1.5em;
        top: 0.75em;
    }
}
.btnback {
    position: relative;
    display: inline-block;
    background-color: #8C8C8C;
    padding: 1.5em 3em 1.5em 3em;
    border-radius: 3em;
    color: #fff;
    text-align: center;
    width: 20em;
    margin-top: 20px;
    box-shadow: 0.5em 0.5em 0.5em 0em rgba(0, 0, 0, 0.3);
    &:after {
        position: absolute;
        content: url(back.svg);
        left: 2em;
        height: 1.5em;
        width: 1.5em;
        top: 0.75em;
    }
}
.btntop {
    position: relative;
    display: inline-block;
    background-color: #8C8C8C;
    padding: 1.5em 3em 1.5em 3em;
    border-radius: 3em;
    color: #fff;
    text-align: center;
    width: 20em;
    margin-top: 20px;
    box-shadow: 0.5em 0.5em 0.5em 0em rgba(0, 0, 0, 0.3);
    &:after {
        position: absolute;
        content: url(back.svg);
        left: 2em;
        height: 1.5em;
        width: 1.5em;
        top: 0.75em;
    }
}

.btnmail {
    position: relative;
    display: inline-block;
    background-color: #FF5D9A;
    padding: 1.5em 6em 1.5em 4em;
    border-radius: 3em;
    color: #fff;
    width: 25em;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0.5em 0.5em 0.5em 0em rgba(0, 0, 0, 0.3);
    &:after {
        position: absolute;
        content: url(next.svg);
        right: 3em;
        height: 1.5em;
        width: 1.5em;
        top: 0.75em;
    }
}
@media (min-width: 1025px) {
    .btntop,.btnmail,.btnback,.btnnext {
        margin-left: 5em;
        margin-right: 5em;    
    }
}

.step-indicator {
    transition: all 0.3s ease;
}
.step-indicator.active {
    background-color: #3B82F6;
    color: white;
}
.step-indicator.completed {
    position: relative;
    background-color: #FF5D9A;
    color: white;
    &:after {
        position: absolute;
        content: " ";
        left: 0rem;
        width: 4rem;
        height: 3px;
        background-color: #FF5D9A;
    }
}
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.category-card.selected {
    background-color: #3B82F6;
    color: white;
}
.matrix-cell {
    transition: all 0.3s ease;
    cursor: pointer;
}
.matrix-cell:hover {
    background-color: #F3F4F6;
}
.matrix-cell.selected {
    background-color: #3B82F6;
    color: white;
}
.rating-button {
    transition: all 0.3s ease;
    cursor: pointer;
    width: 2em;
    height: 2em;
    text-align: center;
}
.rating-button:hover {
    background-color: #F3F4F6;
}
.rating-button.selected {
    background-color: #3B82F6;
    color: white;
}
.text-gray-700 {
    span:not(.name) {
        color: #FF5D9A;
    }
}

@media (min-width: 1025px) {
    main {
        scale: 1.5;
        transform-origin: top;
    }
    footer {
        background-color: #494949;
        color: #fff;
        top: 2500px;
        width: 100%;
    }
}

input, textarea, select {
    border-style: solid;
}
#ai-advice {
    white-space: pre-wrap;    
    position: relative;
    overflow: hidden; 
    padding: 0.5em;
    font-size: 0.8em;
}

#ai-advice::after {
  content: "";
  position: absolute;
  top: 26%;   /* 上から20%以降をぼかす */
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(5px);  /* ぼかし効果 */
  -webkit-backdrop-filter: blur(5px); /* Safari対応 */
}
.areamail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
}
#step-result:has(.advicecomp[step='0']) {
    #ai-advice::after {
        display: none;
    }
}
#step-result:has(.advicecomp[step='3']) {
    #ai-advice::after {
        display: none;
    }
}
#step-result {
    position: relative;
}
#result-email {
    background-color: #fff;
    margin-top: 2em;
    outline: 1px solid #FF5D9A;
} 
.advicecomp {
    position: absolute;
    top: 32em;
    left: 50%;
    transform: translate(-50%, -50%);
    &[step='0'] {
        display: none;
    }
    &[step='1'] {
        .step2 {
            display: none;
        }
    }
    &[step='2'] {
        .step1 {
            display: none;
        }
    }
    &[step='3'] {
        display: none;
    }
}
