@charset "utf-8";
/* for PC */
@media screen and (min-width: 1025px){
    .anker:hover,
    .paging:hover{
        opacity: 0.6;
    }
}
/* for tablet */
@media screen and (max-width: 1024px){
    /* header */
    header{
        width: 100%;
    }
    .header_right{
        display: none;
    }
    /* global navi & sub navi */
    #nav_area{
        display: none;
    }

    .nav_wrapper{
        margin: 0;
        width: 100%;
        height: 100px;
    }
    /* main logo */
    .nav_wrapper >div{
        position: fixed;
        z-index: 95;
        width: 70%;
        margin: 12.5px 0 12.5px 10px;
    }

    .nav_wrapper >.main_logo_z{
        z-index: 80;
    }
    /* hamburger list navi */
    #hamburgerNavi{
        display: block;
        position: fixed;
        z-index: 90;
        width: 100%;
        height: 100px;
        background-color: #fff;
    }

    .menu_title{
        background-color: #fff;
    }

    .menu_title::before{
        content: 'MENU';
        padding-left: 5rem;
        line-height: 100px;
        font-size: 3rem;
        font-weight: bold;
    }

    #navi_toggle_wrapper{
        width: 100%;
        height: 100px;
        position: fixed;
        z-index: 110;
    }

    #navi_toggle{
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 120;
        width: 80px;
        height: 60px;
        background-image: url(/naruhodo/common/img/sp_nav.png);
        background-size: 100%;
    }

    #hamburgerList{
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        width: 100%;
        height: 100%;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #025aaa;
    }

    #hamburgerList li{
        width: 80%;
        height: 4rem;
        line-height: 4rem;
        padding: 5px 0;
        text-align: center;
        box-sizing: border-box;
        border-bottom: solid 4px #fff;
    }

    #hamburgerList li a{
        font-size: 1.5rem;
        color: #fff;
    }

    .hamburgerList_item{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .hamburgerList_item p{
        font-size: 2rem;
        color: #fff;
    }

    .hamburgerList_icon{
        width: 1rem;
        height: 1rem;
        margin: auto 10px auto 0;
    }

    #hamburgerNavi .is_active{
        display: flex;
    }
    /* breadclumbs list */
    .breadcrumbs_wrapper{
        margin-bottom: 1rem;
        width: 100%;
    }
    /* side navi */
    #sidenav{
        display: block;
        width: 100%;
        margin: 0 0 1rem;
    }

    #sidenav label{
        margin: 0;
    }

    #label_basic,
    #label_advance,
    #label_reference{
        width: 100%;
    }

    .down{
        margin-left: calc(100% - 2.5rem - 2.5rem - 3.3rem - 0.5rem);
    }
    
    #basic:checked ~ #label_basic .down,
    #advance:checked ~ #label_advance .down,
    #reference:checked ~ #label_reference .down {
        transform: rotate(180deg);
        margin: 0;
        margin-left: calc(100% - 2.5rem - 2.5rem - 3.3rem - 0.5rem);
    }
    /* top page */
    .top_img_wrapper{
        width: 100%;
    }

    .top_img{
        max-width: 100%;
    }

    .for_top_page{
        width: 100%;
    }
    
    #top_index_button_list{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .top_index_label{
        margin: 5px;
    }

    .top_index_label .button{
        width: 100%;
    }
    .top_index_label .link{
        width: 90%;
    }
    /* category top page */
    #index_page{
        width: 100%;
    }

    .category_index_wrapper{
        padding: 0;
    }

    #category_index_button_list{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /* section contents page */
    .contents_wrapper{
        display: block;
        flex-direction: unset;
        width: 100%;
        padding: 0;
    }
    
    #text_wrapper{
        display: block;
        width: 100%;
    }
    
    #text_wrapper .picture_wrapper{
        width: 100%;
    }
    /* footer */
    .footer_info{
        width: 100%;
    }
}
/* for smartphone */
@media screen and (max-width: 767px){
    #index_page .button{
        height: auto;
    }
    /* main logo */
    .nav_wrapper{
        width: 100%;
    }

    .nav_wrapper >div{
        height: auto;
        width: 230px;
        margin: 27.5px 0;
    }

    .main_logo{
        width: 230px;
    }
    /* hambergur list navi */
    #navi_toggle_wrapper{
        height: 100px;
    }

    #navi_toggle{
        top: 27.7px;
        right: 10px;
        width: 60px;
        height: 45px;
    }

    .menu_title::before{
        padding-left: 3rem;
        font-size: 2rem;
        line-height: 100px;
    }

    #hamburgerNavi{
        height: 100px;
    }

    #hamburgerList li{
        height: 3rem;
        line-height: 3rem;
    }

    .hamburgerList_item p{
        font-size: 1.5rem;
        color: #fff;
    }

    #hamburgerList li a{
        font-size: 1rem;
        color: #fff;
    }
    /* breadcrumbs list */
    .breadcrumbs_wrapper{
        margin-bottom: 0;
    }

    .breadcrumbs li{
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    /* side navi */
    .down{
        margin-left: calc(100% - 2.5rem - 2.5rem - 3.3rem - 0.5rem);
    }
    
    #basic:checked ~ #label_basic .down,
    #advance:checked ~ #label_advance .down,
    #reference:checked ~ #label_reference .down {
        transform: rotate(180deg);
        margin: 0;
        margin-left: calc(100% - 2.5rem - 2.5rem - 3.3rem - 0.5rem);
    }
    /* top page */
    .top_index_label{
        list-style: none;
        margin: 10px 0;
    }

    .top{
        height: auto;
    }

    .top .title_icon{
        margin: 0;
    }

    #top_index_button_list{
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .top_index_item_text{
        display: none;
    }
    
    .link{
        display: none;
    }
    /* category top page */
    #category_index_button_list{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .category_index_label .button{
        width: 100%;
        margin: 5px 0;
    }
    /* section contents page */
    #text_wrapper .right,
    #text_wrapper .left{
        float: unset;
        margin: 0 0 1.8rem;
    }
    
    #text_wrapper .picture_wrapper{
        width: 100%;
    }

    .picture_wrapper .picture_item{
        width: 100%;
        margin: 0.3rem 0.3rem 1rem 0.3rem;
    }

    .core_static{
        display: flex;
        flex-direction: column;
    }

    .keyword,
    .keyword dt,
    .keyword dd{
        height: auto;
    }

    .term,
    .term dt,
    .term dd{
        height: auto;
    }
    /* section index page */
    .section_guide{
        display: block;
    }
    /* page control */
    .page_control_wrapper >.return_top{
        margin: 0 calc((100% - 5.5rem - 6rem - 6rem) / 2);
    }

    .return_top img{
        width: 5rem;
    }

    .paging{
        width: 6rem;
        height: 2.3rem;
        font-size: 0.5rem;
        padding: 0.8rem;
    }
    /* footer */
    .footer_info{
        flex-direction: column;
    }

    .footer_info >div{
        text-align: center;
        margin-bottom: 1rem;
    }

    .copy{
        text-align: left;
    }
}