@charset "utf-8";

/* --- トップビジュアル領域 開始---  */
.top-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin: 0;
}

.top-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 1;
}

.top-img1 {
    background: url("../images/cont_kv01.jpg") no-repeat center/cover;
}

.top-img2 {
    background: url("../images/cont-kv07.jpg") no-repeat center/cover;
}

.top-img3 {
    background: url("../images/cont-kv04.jpg") no-repeat center/cover;
}

.top-img4 {
    background: url("../images/cont-kv02.jpg") no-repeat center/cover;
}

.top-img5 {
    background: url("../images/cont-kv11.jpg") no-repeat center/cover;
}

.top-img6 {
    background: url("../images/cont-kv09.jpg") no-repeat center/cover;
}

.top-img7 {
    background: url("../images/cont-kv08.jpg") no-repeat center/cover;
}

.top-img8 {
    background: url("../images/cont-kv12.jpg") no-repeat center/cover;
}

.top-wrap h1 {
    position: relative;
    z-index: 3;
    margin-top: 30px;
    text-shadow: 1px 1px 2px #fff;
}

.top-wrap p {
    z-index: 2;
    margin-top: 20px;
    text-shadow: 1px 1px 2px #fff;
}

.top-wrap ul {
    width: 320px;
    display: flex;
    position: absolute;
    left: 5px;
    top: 5px;
    margin: 0 10px;
    padding: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.breadcrumbs ul {
    display: flex;
    text-align: left;
    margin: 10px 0 0 20px;
    font-weight: bold;
}

.top-wrap ul a:hover,
.breadcrumbs ul a:hover {
    color: #ffcc00;
}

/* --- トップビジュアル領域 終了 --- */

/* --- セクションcss 開始 --- */
#sec-top,
#sec-merit,
#sec-except {
    width: 100%;
    text-align: center;
    margin: 0px auto;
    padding: 0;
}

.sec-depart,
.sec-disease,
.sec-symptom,
.selfCheck {
    margin: 0px auto;
    padding: 0 25px;
    text-align: left;
    margin-bottom: 20px;
}

.sec-diet {
    margin: 40px auto;
    padding: 0 25px;
    text-align: left;
}

.sec-depart h2,
.sec-disease h2,
.sec-symptom h2 {
    margin: 30px 0 5px 0;
    color: #237db1;
    font-weight: bold;
}

.sec-depart h3,
.sec-disease h3,
.sec-diet h3,
.sec-symptom h3 {
    padding-left: 10px;
    color: #33adbc;
    font-weight: bold;
    border-left: #33adbc 5px solid;
}

.sec-depart div,
.sec-diet div {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px 0;
    align-items: top;
}

.sec-disease div,
.sec-symptom div {
    width: 100%;
    display: block;
    margin: 5px 15px 30px 15px;
}

.sec-depart div p,
.sec-diet div p {
    padding: 0 10px;
    margin-bottom: 10px;
    width: 70%;
}

.sec-depart div img,
.sec-diet div img {
    max-width: 100%;
    height: auto;
    width: 30%;
}

.sec-depart div a,
.sec-diet div a,
.sec-symptom a {
    background-color: #33adbc;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 5px 15px;
}

.sec-depart div a:hover,
.sec-diet div a:hover,
.sec-symptom a:hover {
    color: #ffcc00;
}

.cont-merit,
.cont-except {
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

/* メリットセクション 開始 */
.box-merit {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 30px;
    padding: 10px 30px;
}

.cont-merit li {
    margin: 30px;
}

.cont-merit li h3 {
    margin: 10px;
    color: #33adbc;
    font-weight: bold;
}

.box-merit img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cont-merit li h3::before {
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
    background-color: #33adbc;
    margin: 0 10px 0 0;
    padding: 10px 10px;
    font-size: 75%;
}

.cont-merit li:first-child h3::before {
    content: 'Point1';
}

.cont-merit li:nth-child(2) h3::before {
    content: 'Point2';
}

.cont-merit li:nth-child(3) h3::before {
    content: 'Point3';
}

.text {
    margin: 0 20px;
}

.sec-symptom .chart {
    width: 600px;
    max-width: 100%;
    margin: 5px;
    padding: 0;
}

div .step {
    margin: 0;
    padding: 0;
    line-height: 1.4em;
}

.sec-symptom .c-question {
    font-weight: bold;
    margin: 5px;
    padding: 0;
    position: relative;
}

.sec-symptom .yes-result {
    margin: 0;
    position: absolute;
    padding-left: 5px;
    font-weight: bold;
}

.sec-symptom .answer-y {
    background-color: #237db1;
    font-weight: bold;
    color: #fff;
    font-size: 90%;
    margin: 0 5px;
    padding: 3px 12px;
    border-radius: 5px;
}

.sec-symptom .answer-n {
    background-color: #dd7755;
    font-weight: bold;
    color: #fff;
    font-size: 90%;
    margin: 0 5px;
    padding: 3px 5px;
    border-radius: 5px;
}

/* メリットセクション 終了 */

/* 例外セクション 開始 */
#sec-except {
    background-color: #e5e5db;
    padding: 10px;
}

.cont-except {
    display: flex;
    justify-content: space-around;
    padding: 10px;
}

.box-except {
    margin: 10px;
}

.cont-except li {
    margin: 15px;
    padding: 0;
}

.cont-except li h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: #33adbc;
    font-weight: bold;
    text-align: center;
    line-height: 1.2em;
    border-bottom: #33adbc 1px solid;
}

.cont-except li div {
    width: 280px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.4em;
}

/* 例外セクション 終了 */


/* 肥満度チェックセクション 開始 */
.selfCheck {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px 25px;
    background-color: #e7e7df;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
}

.selfCheck h2 {
    margin: 0 0 20px 0;
    text-align: center;
}

.question {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    text-align: left;
}

.question-number {
    min-width: 45px;
    font-weight: bold;
    color: #237db1;
    flex-shrink: 0;
}

.question-content {
    flex-grow: 1;
}

.question-content .question-text {
    display: block;
    margin-bottom: 5px;
}

.question-content .choices {
    padding-left: 1em;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #e5e5db;
}

.result .headline {
    font-size: 1.2em;
    font-weight: bold;
    color: #237db1;
    margin-bottom: 10px;
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #33adbc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #237db1;
}

#resultModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e5e5db;
    color: #333;
    padding: 20px 20px;
    border: 2px solid #237db1;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

#resultModal .headline {
    font-size: 1.2em;
    color: #237db1;
    font-weight: bold;
    margin-bottom: 10px;
}

#resultModal button {
    margin-top: 20px;
    padding: 6px 18px;
    background-color: #33adbc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#resultModal button:hover {
    background-color: #1976d2;
}

#customAlert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e5e5db;
    color: #333;
    padding: 20px 30px;
    border: 2px solid #33adbc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

#customAlert button {
    margin-top: 15px;
    padding: 5px 15px;
    background-color: #33adbc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#customAlert button:hover {
    background-color: #237db1;
}

/* --- 肥満度チェックセクション 終了 --- */


/* レスポンシブ対応 */
@media screen and (max-width: 959px) and (min-width: 600px) {

    .sec-depart div p,
    .sec-diet div p {
        margin: 0 auto;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .sec-depart div img,
    .sec-diet div img {
        display: block;
        margin: 0 auto;
        width: 240px;
        height: 180px;
        max-width: 100%;
    }

    .selfCheck {
        max-width: 500px;
        margin: 20px auto;
        padding: 15px 25px;
        background-color: #e7e7df;
        border: 1px solid #ccc;
        border-radius: 10px;
        text-align: center;
    }

    #sec-except {
        font-size: 90%;
    }

    .cont-except li div {
        width: 95%;
        margin: 0 auto;
        padding: 0;
        line-height: 1.4em;
    }

    .cont-except li {
        margin: 10px;
        padding: 0;
    }
}

/* スマホ対応 */
@media screen and (max-width: 599px) {

    .sec-disease,
    .sec-symptom {
        margin: 0 auto;
        padding: 0 10px;
        width: 360px;
        max-width: 100%;
    }

    .cont-merit li {
        margin: 0;
        padding: 0;
        text-align: center;
    }

    #sec-except p {
        line-height: 1.5em;
    }

    .cont-except li {
        width: 320px;
        margin: 10px auto;
        padding-bottom: 10px;
        line-height: 1.6em;
    }

    #sec-except h2 {
        line-height: 1.4em;
        margin-bottom: 15px;
    }

    .box-except p {
        width: 300px;
        margin: 0 auto;
        text-align: left;
    }

    .box-merit {
        margin: 0;
        padding: 0;
    }

    .cont-merit li h3::before {
        display: block;
        width: 40px;
        font-weight: bold;
        color: #fff;
        border-radius: 50%;
        background-color: #33adbc;
        margin: 10px auto;
        padding: 10px 10px;
        font-size: 75%;
    }

    .top-wrap ul {
        display: none;
    }

    .sec-top h1 {
        text-align: center;
        font-weight: bold;
        margin: 40px 0;
    }

    .sec-top .h1-lead {
        text-align: center;
        margin: 0 15px;
    }

    .box-merit {
        display: block;
        width: 350px;
        margin: 20px auto;
        text-align: center;
    }

    .cont-merit li p {
        width: 300px;
        text-align: left;
    }

    .cont-except {
        display: block;
        text-align: center;
    }

    .cont-except li {
        display: block;
        width: 350px;
        margin: 15px auto;
    }

    .cont-except li p {
        width: 300px;
        text-align: left;
    }

    .sec-depart div,
    .sec-diet div {
        width: 100%;
        margin: 10px auto;
        display: block;
    }

    .sec-depart div p,
    .sec-diet div p {
        margin: 0 auto;
        padding: 0 15px;
        margin-bottom: 20px;
        width: 100%;
    }

    .sec-depart div img,
    .sec-diet div img {
        display: block;
        margin: 0 auto;
        width: 80%;
        height: auto;
    }

    .selfCheck {
        max-width: 380px;
        margin: 20px auto;
        padding: 15px 15px;
        background-color: #e7e7df;
        border: 1px solid #ccc;
        border-radius: 10px;
        text-align: center;
        font-size: 95%;
    }

    .chart {
        font-size: 90%;
    }

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }
}