/* layout */

/* title_and_lead */
.heading-1{
    margin-top: 20px;
    line-height: 1.4;
    font-size: 1.8rem;
}

.heading-2{
    text-align: center;
    background: #45a155;
    color: #fff;
    padding: 20px 10px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 1.7rem;
}

.heading-3{
    text-align: center;
    padding: 10px;
    border-top: 2px solid;
    border-bottom: 2px solid;
    line-height: 1.4;
    font-size: 1.6rem;
}

.main-introduction{
    padding-top: 20px;
    line-height: 1.8;
    font-size: 1.4rem;
}

.section-introduction{
    margin: 20px 0;
    font-size:1.3rem;
}

.heading-banner{
    text-align: center;
    margin: 20px 0;
}

.heading-banner img{
    vertical-align: bottom;
}

@media (min-width: 768px){
    .heading-1{
        font-size: 2rem;
    }

    .heading-2{
        font-size: 2.3rem;
    }

    .heading-3{
        font-size: 2rem;
    }

    .main-introduction{
        padding-top: 20px;
        line-height: 1.8;
        font-size: 1.4rem;
    }

    .main-introduction{
        font-size: 1.5rem;
    }

    .main-introduction br{
        display: block;
    }

    .section-introduction{
        font-size:1.4rem;
    }
}


/* table of contents */
.block-toc__wrap{
    margin: 50px 0 60px;
}

.block-toc__title{
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.7rem;
}

.block-toc__list{
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    gap: 8px;
    width: 760px;
    max-width: 100%;
}

.block-toc__list > li{
    width: 100%;
}

.block-toc__list > li a{
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border: 1px solid #45a155;
    border-radius: 8px;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    color: #222;
    transition: all 0.2s;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.block-toc__list > li a:after{
    content: '';
    transform: translateY(-25%) rotate(45deg);
    width: 6px;
    height: 6px;
    margin-left: 10px;
    border-bottom: 2px solid #45a155;
    border-right: 2px solid #45a155;
    transition: transform .5s;
}

.block-toc__list > li a:hover{
    background: #efefef;
}

.block-toc__list > li img{
    width: 30px;
    height: 30px;
}

@media (min-width: 768px){
    .block-toc__list{
        justify-content: center;
        gap:12px;
    }

    .block-toc__title{
        font-size: 1.9rem;
    }

    .block-toc__list > li{
        width: calc((100% - 40px) / 3);
    }

    .block-toc__list > li a{
        padding: 10px;
        border-width: 2px;
        flex-direction: column;
    }

    .block-toc__list > li img{
        width: 50px;
        height: 50px;
    }
}

/* ranking */


/* product_list */
.block-productlist__items{
    gap: 40px 16px;
    padding-bottom: 40px;
}

.block-productlist__item-sp{
    width:calc((100% - 16px) / 2);
    position:relative;
}

.block-productlist__item-sp a{
    transition: all 0.2s;
}

.block-productlist__item-sp a:hover{
    opacity: 0.7;
}

.block-productlist__item-sp .block-items__item__img {
    border: 1px solid #ddd;
}

.block-productlist__item-sp  .block-items__item__name{
    text-decoration: none;
    line-height: 1.4;
    font-size: 1.3rem;
    font-weight: bold;
}

.block-productlist__item-sp  .product-list__desc{
    display: none!important;
}

.ranking__inr {
    padding-top:20px;
}

.ranking__inr .block-productlist__item-sp:before{
    position: absolute;
    top: -28px;
    left: -16px;
    border-radius: 50px;
    border: 2px solid;
    background: #45a155;
    color: #fff;
    z-index: 1;
    padding-top: 0px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 2.2rem;
    font-weight: bold;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(1):before {
    content: "1";
    background: #a79950;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(2):before {
    content: "2";
    background: #839ba7;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(3):before {
    content: "3";
    background: #aa6e52;
}

.ranking__inr .block-productlist__item-sp:nth-of-type(4):before {
    content: "4";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(5):before {
    content: "5";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(6):before {
    content: "6";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(7):before {
    content: "7";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(8):before {
    content: "8";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(9):before {
    content: "9";
}

.ranking__inr .block-productlist__item-sp:nth-of-type(10):before {
    content: "10";
}

@media (min-width: 768px) {
    .block-productlist__item-sp{
        width:calc((100% - 64px) / 5);
    }
}

/* 別ページリンクボタン */
.all-item_btn a {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 20px 30px 20px 15px;
    border: 3px solid #45a155;
    border-radius: 5px;
    color: #222;
    font-size: 1.6rem;
    font-weight: bold;
    max-width: 600px;
    margin: auto;
}

.all-item_btn a:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 10px;
    height: 10px;
    transform: rotate(-45deg) translate(0, -50%);
    border-bottom: 3px solid #45a155;
    border-right: 3px solid #45a155;
}

.all-item_btn a:hover{
    opacity: 0.7;
}

/* 予算リスト */
.budget-list{
        overflow: scroll;
}

.budget-list table{
    width: max-content;
    font-size: 1.2rem;
}

.budget-list th, .budget-list td {
    vertical-align: middle;
    border: 1px solid #cccccc;
    padding: 15px 10px;
}

.budget-list a {
    text-decoration: underline;
    color: #004e98;
}

.budget-list a:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .budget-list{
        overflow: auto;
    }
    .budget-list table{
        width: 100%;
        font-size: 1.3rem;
    }
}

/* よくある質問 */
.faq__item{
    background: #f0f2ed;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 8px;
}

.faq__question{
    position: relative;
    line-height: 1.4;
    font-size: 1.8rem;
}

.faq__question span{
    color:#45a155;
    margin-right: 8px;
    font-size: 2.4rem;
}

.faq__reply{
    position: relative;
    margin-top: 8px;
    line-height: 1.4;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.faq__reply span{
    width: calc(100% - 52px);
}

.faq__reply:before{
    content: 'A';
    display: flex;
    justify-content: center;
    align-items: center;
    background: #Fff;
    width: 32px;
    height: 32px;
    margin-right: 20px;
    border-radius: 100px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #45a155;
}

/* 関連特集 */
.feature_list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    padding-bottom: 40px;
}

.feature_list > li{
    width: 100%;
    -ms-flex-direction: row;
    flex-direction: row;
}

.feature_list > li a{
    display: flex;
  	flex-direction: column;
    color:#333;
}

.feature_list > li a:hover{
    opacity: 0.7;
}

.feature_list > li img{
    width: 100%;
    vertical-align: bottom;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.feature_list > li .name{
    margin: 8px 0;
    line-height: 1.4;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature_list > li .comment{
    line-height: 1.4;
    color: #555;
    font-size: 1.2rem;
}

@media screen and (min-width: 600px){
    .feature_list > li {
        width: calc((100% - 24px) / 2);
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .feature_list > li .name{
        font-size: 1.8rem;
    }
    
    .feature_list > li .comment{
        font-size: 1.3rem;
    }
}


/* sidenavi */
#side_navi{
    display: none;
}

.section-navi{
    padding-bottom: 40px;
}

@media screen and (min-width: 1400px) and (min-height: 550px){
    /* 初期表示はサイドメニューが表示された状態 */
    #side_navi {
        position: fixed;
        display: block;
        z-index: 100;
        right: -130px; 
        bottom: 20px;
        transition: all 0.3s ease; 
    }

    /* 非表示時のスタイル */
    #side_navi.hidden {
        right: -130px;
    }

    #side_navi.visible{
        right: -130px; 
    }

    #side_navi.visible.hidden{
        right: 0; 
    }

    /* トグルボタンのスタイル */
    .toggle-btn {
        position: absolute;
        left: -34px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #efefef;
        border: 1px solid #dfdfdf;
        border-radius: 5px 0 0 5px;
        border-right: none;
        padding: 25px 10px;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
        font-size: 1.4rem;
    }

    #side_navi .toggle-btn {
        opacity: 0;
        cursor: default;
    }

    #side_navi.visible .toggle-btn,
    #side_navi.visible.hidden .toggle-btn{
        opacity: 1;
        cursor: pointer;
    }

    .item_navi {
        position: relative;
        border-radius: 10px 0 0 10px;
        width: 130px;
        padding: 15px 10px;
        text-align: center;
        background: #efefef;
        border: 1px solid #dfdfdf;
        border-right: none;
    }

    .snav li {
        margin-top: 7px;
        position: relative;
    }

    .snav li a {
        display: flex;
        align-items: center;
        position: relative;
        color: #222;
        padding: 2px 2px 2px 14px;
        min-height: 30px;
        border: 1px solid #b3b3b3;
        border-radius: 5px;
        background: #fff;
        line-height: 1.3;
        font-size: 1rem;
        font-weight: bold;
        text-align: left;
        transition: all 0.2s;
    }

    .snav li a:before{
        content: "";
        position: absolute;
        top: 39%;
        left: 5px;
        color: #bf0000;
        border-style: solid;
        border-color: transparent;
        border-width: 0.35em 0.5em;
        border-right-color: currentColor;
        border-left: 0;
    }

    .snav li a:hover {
        color: #fff;
        background: #bf0000;
    }

    .snav li a.active {
        color: #fff;
        background: #bf0000;
    }

    .section-navi{
        margin-top: -100px;
        padding-top: 110px;
    }
}

@media screen and (min-width: 1500px) and (min-height: 650px){
    #side_navi {
        right: -150px; 
    }

    /* 非表示時のスタイル */
    #side_navi.hidden {
        right: -150px;
    }

    #side_navi.visible{
        right: -150px; 
    }

    .item_navi {
        width: 150px;
        padding: 15px 10px;
    }

    .snav li {
        margin-top: 7px;
    }

    .snav li a {
        padding: 3px 5px 3px 17px;
        min-height: 32px;
        font-size: 1.1rem;
    }
}

