@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300..700&display=swap');

#main_wrap {
    padding-bottom: 0;
}

.fv-section {
    width: 100%;
}

.fv-title {
    margin: 0;
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}
.fv-img {
    height: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.fv-text {
    margin: 2em auto;
    font-size: 1.6rem;
    line-height: 1.7;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
}

/*診断スタートなどのタイトル部分*/
h3.start-title {
    font-size: 3.6rem;
    margin: 20px auto 0;
    text-align: center;
    color: #00A3F3;
    font-family: "Teko", sans-serif;
    font-weight: normal;
    position: relative;
    z-index: 1;
}
h3.start-title::after{
    content: "";
    position: absolute;
    height: 20px;
    width: 40px;
    clip-path: polygon(50% 100%, 100% 0%, 0% 0%);
    background-color: #00A3F3;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
}




/*質問ひとつづつのセクション*/
.question-field {
    position: relative;
    padding: 100px 20px;
    background-color: #E5F3F8;
}
.question-field:nth-of-type(2n) {
    background-color: #fff;
}
.question-field::before{
    content: "";
    position: absolute;
    height: 30px;
    width: 60px;
    clip-path: polygon(50% 100%, 100% 0%, 0% 0%);
    background-color: #fff;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
.question-field:nth-of-type(2n)::before{
    background-color: #E5F3F8;
}

/*質問セクションタイトル*/
.question-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}
.question-color {
    color: #00A3F3;
}
.question-number {
    font-size: 2.2rem;
    display:block;
    width: fit-content;
    margin: 0 auto 20px;
    text-align: center;
    border-bottom: #00A3F3 3px solid;
    font-family: "Teko", sans-serif;
    color: #000;
    padding: 0 0.2em;
    font-weight: normal;
}

.q-number-icon {
	width: 100%;
}

.q-icon {
	display: block;
    width: 100%;
    margin: 0 auto 10px;
    position: relative;
    transform: scale(1.1);
}

/*回答選択肢を囲うボックス　flexで横並び*/
.question-field__question-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 1250px;
}

/*質問の一つ一つです。　aタグを使っていないので
ホバーエフェクトや、カーソルの指定はこのliに対してつける感じです
*/
.question-field__question-box li {
    border: solid 2px #C9C9C9;
    box-sizing: border-box;
    width: 230px;
    color: #333;
    font-size: 14px;
    text-align: center;
    position: relative;
    padding: 20px 20px 15px;
    cursor: pointer;
    margin: 10px;
    line-height: 1.2;
    background-color: #fff!important;
    display: flex;
    flex-direction: column;
}
.question-field:nth-of-type(2n) .question-field__question-box li {
    background: #E5F3F8!important;
}
  
.question-field__question-box li span {
    font-weight: bold;
    color: #00A3F3;
    font-size: 18px;
    display: block;
    margin: 0.8em 0 0.5em;
  }

.question-field__question-box li:hover {
	border: solid 2px #00A3F3;
}

.question-field__question-box li.active {
	border: solid 2px #00A3F3;
}

.question-field__question-box li.active::after {
    content: "\f00c";
    display: block;
    color: #fff;
    font-family: "FontAwesome";
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%,-50%);
    background: #00A3F3;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    overflow: hidden;
}


/*選択されなかった質問には.grayoutクラスが付きます*/
.question-field__question-box li.grayout {
    opacity: 0.5;
}

/*ロード画像のスタイル*/
.loading-img {
	display: block;
	margin: 0 auto;
    padding: 30px 0;
	width: 100px;
	height: auto;
}

/*//////////////////////////////*/
/*結果エリア*/
/*//////////////////////////////*/

.answer-area {
	background: #2D4263;
    display: none;
    opacity: 0;
    transition: 0.5s;
    padding: 50px 10px;
}

h3.answer-title {
    font-size: 2.4rem;
    text-align: center;
    color: #EBC946;
    padding: 0.3em;
    margin-bottom: 1em;
}

.answer-area-active {
	padding-bottom: 100px;
    display: block;
    opacity: 1;
}


/*結果エリアの囲い*/
.answer-box {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;
    background: #fff;
    position: relative;
    box-sizing: border-box;
}
.answer-box::before{
    content: "";
    position: absolute;
    height: 30px;
    width: 60px;
    clip-path: polygon(50% 100%, 100% 0%, 0% 0%);
    background-color: #2D4263;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
.answer-field {
    display: grid;
    position: relative;
}

/*結果商品の一個一個*/
.answer-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: space-around;
	flex-direction: column;
	box-sizing: border-box;
    z-index: 1;
}

h4.answer-item-title {
    margin: 0 0 0 40%;
    font-size: 30px;
    border-bottom: none !important;
}

h4.answer-item-title a {
    color: #000;
}

/*商品のキャッチコピーにかけるスタイル*/
.item-catch-copy {
	color: #299736;
    font-size: 18px;
    font-weight: bold;
}

/*一位の商品の中身だけに適用するスタイル　商品画像を右にするため*/
.item-inner-flex {
	display: flex;
}

.image-box {
    flex-basis: 40%;
    margin-top: -40px;
    padding-right: 20px;
}

.description-box {
    flex-basis: 60%;
    padding-right: 20px;
}

/*商品img要素に適用するスタイル*/
.item-image {
    width: 100%;
}

/*ボタンに共通するスタイル*/
.button-box {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}
.button-box a {
    display: block;
}
.button-box a:hover {
    box-shadow: 0 0 0 transparent !important;
    top: 3px;
}

.button-a,
.button-b,
.button-c {
	display: block;
    margin: 5px;
}

.button-a a, .button-b a, .button-c a {
    padding: 12px 15px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    border-radius: 7px !important;
}

/*各ボタンのスタイル*/
span.button-a a {
    border: 3px solid #299736;
    box-shadow: 0 3px 0 #779a46;
    color: #299736;
}

span.button-b a {
    background: linear-gradient(45deg, #f32815 50%, #f64638 51%);
    border: 3px solid #f64638;
    box-shadow: 0 3px 0 #a72e2d;
    text-align: center;
    color: #fff;
}

span.button-c a {
    background: #1f6ad2;
    border: 3px solid #1f6ad2;
    box-shadow: 0 3px 0 #002963;
    color: #fff;
}


/*販売価格のスタイル*/
span.item-price-label {
    background: #EAF5EB;
    padding: 10px 15px;
    margin-right: 10px;
    font-size: 16px;
}

span.item-price {
    color: red;
    font-weight: bold;
    font-size: 24px;
}

span.item-price-yen {
    font-size: 16px;
}
p.item-price {
    margin: 10px 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/*もう一度診断する*/
.rediagnosis-box {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}
a.rediagnosis {
    display: block;
    cursor: pointer;
    color: #fff;
    background: #00A3F3;
    font-weight: bold;
    padding: 10px;
}
a.rediagnosis:before {
    font-family: 'FontAwesome';
    content: '\f0e2';
    padding: 10px;
}

/*//////////////////////////////*/
/*比較表ポップアップエリアのCSSめんどくさいのでそのまま*/
/*//////////////////////////////*/
#comparison {
    background: #FFF;
    border: 1px solid #DDD;
    border-bottom: none;
    bottom: -101px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 40%);
    box-sizing: border-box;
    padding: 30px;
    position: fixed;
    text-align: center;
    width: 1000px;
    z-index: 999;
    right: 0;
    left: 0;
    margin: auto;
}

#comparison span {
    color: #0069D9;
    display: inline-block;
    margin-right: 40px;
}

#comparison a {
    background: #0069D9;
    border-radius: 8px;
    color: #FFF;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    text-align: center;
    width: 165px;
}

#comparison img {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}


.form-area {
    margin: 0 auto;
    padding: 3em 0;
}



@media screen and (max-width: 770px){

    .fv-section {
        width: 100%;
    }

    .fv-title {
        margin: 0;
        width: 100%;
        height: 60vw;
    }
    .fv-img {
        height: 100%;
        max-width: none;
    }
    .fv-text {
        margin: 2em;
        font-size: 14px;
    }
    h3.start-title {
        font-size: 30px;
    }

    /*//////////////////////////////*/
    /*質問エリア*/
    /*//////////////////////////////*/
    .question-field {
        padding: 10vw 5vw;
    }
    .question-title {
        font-size: 16px;
    }

    ul.question-field__question-box {
        flex-wrap: wrap;
    }

    .question-field__question-box li {
        width: 200px;
        max-width: 48%;
        padding: 10px;
        margin: 1%;
        font-size: 12px;
    }
    .q-icon {
        transform: scale(1);
        margin: 0 auto 5px;
    }
    .question-field__question-box li span {
        font-size: 14px;
        margin: 0.5em 0 0.3em;
    }
    .question-number {
        font-size: 26px;
    }

    /*//////////////////////////////*/
    /*結果エリア*/
    /*//////////////////////////////*/

    .answer-box {
        padding: 5vw;
    }

    /*結果エリア背景*/
    .answer-field {
        background: none;
    }

    .answer-field:before {
        background: url(../img/navians-top-sp.jpg) center top no-repeat,url(../img/navians-bottom-sp.jpg)center bottom no-repeat,url(../img/navi-line-side-sp.jpg)repeat-y;
    }

    .item-inner-flex {
        display: block !important;
    }

    section.answer-item {
        text-align: center;
    }

    h4.answer-item-title {
        margin: 10px 0;
        font-size: 25px;
    }

    .answer-field section:first-of-type .description-box {
        padding: 10px 15px;
    }

    .answer-title-box h3{
        font-size: 20px;
        line-height: 1.2;
    }

    /*結果各要素調整*/
    p.item-catch-copy {
        font-size: 16px;
        padding: 0 !important;
    }
    span.item-price-label {
        font-size: 12px;
    }
    span.item-price {
        font-size: 18px;
    }
    span.item-price-yen {
        font-size: 12px;
    }
    p.item-description {
        font-size: 12px;
    }

    .item-image {
        width: 70%;
    }

    .image-box {
        margin: 0;
        padding: 0;
    }
    p.item-price {
        justify-content: center;
    }


    /*ボタン各種スタイル*/
    .button-a, .button-b, .button-c {
        margin: 2px;
    }

    .button-a a, .button-b a, .button-c a {
        font-size: 11px;
        padding: 10px 5px;
    }

    .button-box {
        font-size: 13px;
        justify-content: center;
    }

    /*もう一度診断する*/ 
    .rediagnosis-box {
        position: static;
        text-align: center;
        width: 12em;
        margin: 20px auto;
    }
    .form-area {
        padding: 0;
    }
    
}