/* */
.diagnosis-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
    background-image: url(../img/comm/ico_home.png);
    background-size: cover;
    background-position: center;
    border-radius: 999px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* 기본 그림자 */
    transition: all 0.2s ease-in-out;
    border: none;
}

.diagnosis-btn:hover {
    opacity: 0.95;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* 더 강한 그림자 */
    transform: translateY(-3px); /* 약간 튀어오름 */
    color: #fff;
}

.diagnosis-btn:active {
    transform: translateY(1px); /* 눌리는 효과 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* */

#main-wrap {
    width: 100%;
    background-image: url(../img/comm/page.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 16px;
}

#main-wrap._main {
    background-image: url(../img/comm/home.png);
    display: flex;
    flex-direction: column; /* 세로로 배치 */
    justify-content: space-between; /* 위와 아래에 공간을 두기 */
    align-items: center; /* 가로 가운데 정렬 */
}

.survey-wrap-main {
    max-width: 650px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 24px;
    /* ⬅️ 내부 여백 */
    border-radius: 20px;
}

.survey-wrap {
    max-width: 650px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 24px;
    /* ⬅️ 내부 여백 */
    border: 5px solid #FFD98A;
    background-color: #fff;
    border-radius: 20px;
}

/* */

._tit {
    position: relative;
    max-width: 460px;
    margin: 20px auto 0;
    padding: 14px 20px;
    background-color: #FFEBC2;
    border-radius: 10px;
    font-size: 24px;
    color: #FF8130;
    text-align: center;
}

/* 왼쪽 원 */
._tit::before {
    content: "";
    position: absolute;
    top: -25px;
    left: -25px;
    width: 25px;
    height: 25px;
    background-color: #EAEAEA;
    border-radius: 50%;
}

/* 오른쪽 원 */
._tit::after {
    content: "";
    position: absolute;
    top: -25px;
    right: -25px;
    width: 25px;
    height: 25px;
    background-color: #EAEAEA;
    border-radius: 50%;
}

/* */

._stit {
    position: relative;
    max-width: 460px;
    margin: 15px auto;
    padding: 14px 14px 14px 58px;
    border-radius: 10px;
    font-size: 20px;
    text-align: left;
}

._stit span {
    position: absolute;
    top: 15px;
    left: 0;
    width: 50px;
    height: 30px;
    text-align: center;
    background-color: #8FE292;
    border-radius: 50% / 50%;
    line-height: 30px;
}

._stit .toggle-btn._q {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../img/comm/ico_toggle.png);
    font-size: 0;
    color: #fff;
    text-align: center;
    border-radius: 999px;
    cursor: pointer;
}

/* */

.chk-box {
    max-width: 410px;
    margin: 30px auto 50px;
}

.form-check {
    display: flex;
    align-items: center;
    max-width: 100%;  /* 너비를 100%로 제한 */
    margin-bottom: 12px;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #EAEAEA;
    cursor: pointer;
}

.form-check.flex-column .toggle-btn._q {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../img/comm/ico_toggle.png);
    font-size: 0;
    color: #fff;
    text-align: center;
    border-radius: 999px;
}

.q-wrap {
    display: inline; /* 문장 흐름 안에 자연스럽게 */
    white-space: normal; /* 줄바꿈 허용 */
}

.q-wrap span {
    position: relative;
    top: 2px;
    margin: 0 0 0 4px;
}

.my-collapse {
    display: none;
    width: 100%;
    margin: 10px 0 0;
    padding: 10px;
    font-size: 12px;
    font-weight: normal;
    background-color: #EAEAEA;
    border-radius: 10px;
}

.my-collapse .inner span {
    position: absolute;
    top: -1px;
    left: 0;
}

.my-collapse .inner._pl {
    position: relative;
    padding: 0 0 0 18px;
}

.form-check-input {
    display: none;
    /* 기본 체크박스 숨김 */
}

.form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    padding-left: 0;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #333;
}

/* 기본 상태: 체크 안 함 이미지 */
.form-check-label::before {
    content: "";
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url(../img/comm/unchecked.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 체크 상태: 체크된 이미지 */
.form-check-input:checked+.form-check-label::before {
    background-image: url(../img/comm/checked.png);
}

.form-check-label .d-inline-block {
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
}

.chk-btn {
    max-width: 460px;
    margin: 10px auto 20px;
}

.chk-btn a {
    display: block;
    padding: 9px 0;
    width: 100%;
    background-color: #FFB280;
    font-size: 16px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s; /* 부드러운 전환 효과 */
    cursor: pointer;
}

.chk-btn a:hover {
    background-color: #FF8130; /* hover 시 배경 색 변경 */
}

.gui-btn {
    max-width: 460px;
    margin: 30px auto 0;
}

.gui-btn a {
    display: block;
    padding: 9px 0;
    width: 100%;
    background-color: #FFB280;
    font-size: 16px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
}

/* 말풍선 */

.square-wrap {
    overflow: hidden;
    width: 100%;
    max-width: clamp(320px, 80vw, 566px);
    /* 유동적인 max-width */
    margin: 40px auto;
    padding: 0 40px;
    font-size: 22px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.square-wrap.square-2 {
    height: 248px;
}

.square-wrap.square-3 {
    height: 335px;
}

.square-wrap.square-4 {
    height: 335px;
}

.square-wrap.square-6 {
    height: 430px;
}

.square-wrap.square-7 {
    height: 520px;
}

._purple .square-wrap.square-2 {
    background-image: url(../img/comm/purple_2.png);
}

._purple .square-wrap.square-3 {
    background-image: url(../img/comm/purple_3.png);
}

._purple .square-wrap.square-7 {
    background-image: url(../img/comm/purple_7.png);
}

._green .square-wrap.square-3 {
    background-image: url(../img/comm/green_3.png);
}

._green .square-wrap.square-6 {
    background-image: url(../img/comm/green_6.png);
}

._pink .square-wrap.square-4 {
    background-image: url(../img/comm/pink_4.png);
}

/* 퍼플 */

._purple ._tit {
    background-color: #DAD7FF;
    color: #5947FF;
}

._purple .gui-btn a {
    background-color: #5947FF;
}

._purple .chk-btn a {
    background-color: #B4ACFF;
}

/* 그린 */

._green ._tit {
    background-color: #DAEFDB;
    color: #15AD1A;
}

._green .gui-btn a {
    background-color: #159A19;
}

._green .chk-btn a {
    background-color: #8FE292;
}

/* 팡크 */

._pink ._tit {
    background-color: #FFEDED;
    color: #D98E8E;
}

._pink .gui-btn a {
    background-color: #D98E8E;
}

._pink .chk-btn a {
    background-color: #FFCCCC;
}

/* 가이드 박스 */

.guide-box-wrap {
    margin: 30px 0 10px;
}

.guide-box {
    max-width: 460px;
    margin: 20px auto;
    padding: 14px;
    background-color: #FFEBC2;
    border-radius: 10px;
}

.guide-box em {
    position: absolute;
    top: 2px;
    left: 0;
    font-style: normal;
}

.guide-box strong {
    font-size: 22px;
    color: #FF8130;
}

.guide-box ul {
    margin: 10px 0 0;
    padding-left: 0 !important;
}

.guide-box ul li {
    list-style: none;
    position: relative;
    padding: 2px 0 2px 20px;
    color: #fff;
}

._memo {
    position: relative;
    max-width: 460px;
    margin: 20px auto 30px;
    padding: 0 0 0 13px;
    font-size: 11px;
    color: #8b8b8b;
}

._memo em {
    font-style: normal;
    position: absolute;
    top: 0;
    left: 0;
}

/* */

.guide-box._pur {
    background-color: #B4ACFF;
}

.guide-box._pur strong {
    color: #5947FF;
}

.guide-box._pur em {
    color: #5947FF;
}

/* */

.guide-box._ora {
    background-color: #FFC347;
}

.guide-box._ora strong {
    color: #FF8130;
}

.guide-box._ora em {
    color: #FF8130;
}

/* */

.guide-box._gre {
    background-color: #8FE292;
}

.guide-box._gre strong {
    color: #159A19;
}

.guide-box._gre em {
    color: #159A19;
}

._mobile {
    display: none;
}