
#Wrapper {
    width: 100vw;
    font-family: sans-serif;
    background-color: #EEEEEE;
    color: #000;
    line-height: 1.6;
    box-sizing: content-box;
  margin-left: calc(50% - 50vw);
}

#Wrapper .ContainerBox {
    max-width: 940px;
    margin: auto;
    background: #fff;
    padding: 0px;
}

#Wrapper .ContainerBox img {
    width: 100%;
}

.Container {
    margin: auto;
    padding: 20px 0;
}

.Container p {
    width: 80%;
    margin: auto;
    text-align: left;
}

.Container .chart p {
    text-align: center;
    margin-bottom: 15px;
}

#Wrapper h2 {
    text-align: center;
    font-weight: bold;
    color: #E2001B;
    font-size: 140%;
    margin-bottom: 15px;
}

span.marker {
    background-color: yellow;
}

/*========================================*/
/*===============お悩み診断===============*/
/*=======================================*/
#Wrapper .problem-group-box {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    width: 100%;
    justify-content: center;
}

#Wrapper .problem-group {
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 46%;
    margin: 0 10px 10px 0;
    padding: 10px;
    justify-content: space-between; /* 追加 */
}

#Wrapper .checkbox-options {
    display: flex;
    margin: 0 -5px;
    justify-content: center;
}

/* 通常のチェックボックスを非表示にする */
#Wrapper .custom-checkbox input[type="checkbox"] {
    display: none;
}

/* 画像のコンテナ（ラベル）のスタイル */
#Wrapper .custom-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: calc(33.33% - 10px);
    margin: 5px;
    padding: 2px;
    box-sizing: border-box;
    text-align: center;
}

#Wrapper .checkbox-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 通常のチェックボックスを非表示にする */
#Wrapper .custom-checkbox input[type="checkbox"] {
    display: none;
}

/* 画像のスタイル */
#Wrapper .custom-checkbox .checkbox-image {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

/* テキストのスタイル */
#Wrapper .checkbox-text {
    margin: 5px 0 0 0 !important;
    letter-spacing: -1.75px;
    font-size: 85%;
    line-height: 110%;
}


#Wrapper .custom-checkbox:has(input[type="checkbox"]:checked) .checkbox-image {
    opacity: 1;
    transform: scale(1.01);
    border: 2px solid #E2001B;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ホバー時のスタイル (変更なし) */
#Wrapper .custom-checkbox .checkbox-image:hover {
    opacity: 1.0;
}

/* チェックボックスの並びのスタイル */
#Wrapper .checkbox-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -5px;
}

#Wrapper .checkbox-options .custom-checkbox {
    margin: 5px;
}

#Wrapper button {
    display: block;
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
    font-size: 18px;
    color: #FFF;
    background-color: #E2001B;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin:30px auto auto;
    text-align: center;
}

#Wrapper button:hover {
    background-color: #DD554B;
    color: #FFF;
}

#Wrapper #result,
#Wrapper #catResult {
    margin-top: 30px;
    padding: 20px;
    background: #FEFEFE;
    border: 1px solid #DEDEDE;
    border-radius: 8px;
}

#Wrapper #result h2,
#Wrapper #catResult h2 {
    color: #E2001B;
}

#Wrapper #result h3,
#Wrapper #catResult h3 {
    margin-top: 40px;
    border-top: 2px dotted #DD554B;
    padding-top: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 110%;
}

#Wrapper #result h4,
#Wrapper #catResult h4 {
    font-weight: bold;
    color: #E2001B;
    text-align: center;
}

#Wrapper #result p,
#Wrapper #catResult p {
    color: #000;
    width: 100%;
}

#Wrapper #result img,
#Wrapper #catResult img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
}

/* リンクボタンのコンテナを追加 */
.link-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

#Wrapper .result-link {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background-color: #E2001B;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#Wrapper .result-link:hover {
    background-color: #DD554B;
}

#Wrapper .other-result {
    border-top: 1px solid #ccc;
    margin-top: 15px;
    padding-top: 15px;
}

#result,
#catResult {
    display: none;
}

/* ---------------------------------- */
/* ---------------------------------- */
/* こちらもおすすめセクションのレイアウト調整 */
/* ---------------------------------- */
.other-results-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.other-result {
    width: calc(50% - 10px);
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}

.other-result:nth-child(2n) {
    margin-right: 0;
}

.other-result img {
    width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

.other-result h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.other-result p {
    font-size: 0.9em;
}

.main-result ul {
    list-style: none;
    width: 75%;
    margin: auto;
}

.other-result ul {
    list-style: none;
    width: 100%;
}

.other-result li,
.main-result li {
    text-align: left;
    position: relative;
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}

.other-result li::before,
.main-result li::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    border: 4px solid #DD554B;
    border-radius: 50%;
    position: absolute;
    left: -1.5em;
    top: 0.75em;
}
/*=======================================*/

/*-----------------------------------*/
/*------------ Tab Style ------------*/
/*-----------------------------------*/


div#Wrapper .tab_wrap .tab_area label {
    width: 50%;
    margin: 0;
    display: inline-block;
    padding: px 0;
    color: #E2001B;
    background: #E0E0E0;
    text-align: center;
    font-size: 24px;
    border: 0;
}

div#Wrapper .tab_area label.active {
    background: #E2001B;
    color: #fff;
}

/*-----------------------------------*/


/*-----------------------------------*/
/*------------- for SP --------------*/
/*-----------------------------------*/
@media screen and (max-width: 1024px) {
    /*--- SPの時 ---*/
    /*--- Tab style ---*/

    div#Wrapper .tab_wrap .tab_area {
        margin: 48px auto 0px;
        width: 85%;
        letter-spacing: -0.1em;

    }

    #Wrapper .ContainerBox {
        max-width: 100%;
        padding: 0;
    }

    #Wrapper .problem-group {
        width: 100%;
    }

    .other-result {
        width: 100%;
    }
}


/*-------------------------------*/
/*----------theme 競合-----------*/
/*-------------------------------*/
.page-header__text-wrapper.text-container > * {
    display: none;
}
#Wrapper .text-container img:not([style*=float]), .rte img:not([style*=float]) {
    margin: 0px;
}