
:root{
    --main_color:#D92400;
}
body{
    font-size: 16px;
    line-height: 1.4;
    background:#fff;
    color:#000;
    font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    padding:0;
    margin:0;
}
img{
    max-width: 100%;
}
a{
    display:inline-block;
    color:inherit;
}
ul{
    padding:0;
    margin:0;
    list-style: none;
}
.al_center{
    text-align: center;
}
.al_right{
    text-align: right;
}
.sp_only{
    display:none;
}
.pc_only{
    display:block;
}
h2{
    margin:0;
    padding:0;
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1rem;
    line-height: 1.3;
}
h2::before{
    content: '';
    display: block;
    position: absolute;
    left:0;
    top:0;
    bottom: 0;
    width:5px;
    background-color: var(--main_color);
}
h3{
    padding-bottom: .2em;
    border-bottom: 2px solid var(--main_color);
}
.wrap{
    width:min(980px,100%);
    margin:0 auto;
    overflow: hidden;
    padding:0 .5rem;
}
.main_flex{
    display:flex;
    padding:1rem .5rem;
}
.main_flex .main_content{
    margin-right: 2rem;
    flex-grow: 1;
}
.main_flex .sidebar{
    flex:0 0 295px;
}

/*header*/
header{
    position: relative;
    border-bottom: 2px solid var(--main_color);
}
header .logo_area{
    display:flex;
    align-items: center;
    padding:.5rem 0;
}
header .logo_area img{
    height:80px;
    width:auto;
    display:block;
}
header .logo_area h1{
    padding:0;
    margin:0;
    font-size: 1.3rem;
    margin-left: .5rem;
}
.head_nav_area{
    background-image:linear-gradient(0deg,#eee,#f7f7f7);
}
.head_nav_area .head_nav{
    display:flex;
    position: relative;
}
.head_nav_area .head_nav li{
    border-right: 1px solid #0003;
    padding:2px;
    width:calc(100% / 6 );
    
}
.head_nav_area .head_nav li:first-of-type{
    border-left: 1px solid #0003;
}
.head_nav_area .head_nav li a{
    display:block;
    padding:.2em 1em;
    text-decoration: none;
    color:#111;
    font-size: .9em;
}

/*sidebar*/
.logout_area{
    padding:.5rem 0;
    font-size: .8em;
    margin-bottom: 10px;

    .title{
        text-align: center;
        
    }
    .btns{
        display:flex;
        align-items: center;

        .in{
            padding:.3rem;
            width:65%;
            text-align: center;
            border-radius: 4px;
            border:1px solid #ccc;
            color:var(--main_color);
            text-decoration: none;
        }
        .out{
            padding:.3rem;
            width:35%;
            text-align: center;
            border-radius: 4px;
            border:1px solid #ccc;
            background-color:var(--main_color);
            color:#fff;
            text-decoration: none;
        }
    }
}

.login_area{
    background-image: url(images/loginform.png);
    background-repeat: no-repeat;
    width: 295px;
    height: 160px;
    padding-top: 40px;
    margin-bottom: 10px;

    .field{
        width: 185px;
        height: 25px;
        margin-bottom: 10px;
        margin-left: 95px;
    }
    button{
        width: 100px;
        height: 25px;
        margin-bottom: 10px;
        margin-left: 97px;
    }
}

.sidebar .bnr_area{
    display: flex;
    flex-direction: column;
    gap:10px;
    a{
        display:block;
        img{
            display:block
        }
    }
}

/*footer*/
footer{
    border-top:1px solid #ccc;
    background:#f7f7f7;
    padding:1rem;
    
    .foot_nav_ul{
        display:flex;
        align-items: center;
        font-size: .9em;
        li{
            padding:0 .5rem;
        }
    }
    .foot_address{
        text-align: right;
        margin-top:3rem;
        font-size: .9em;
        margin-bottom: 1rem;
        .title{
            font-weight: bold;
            font-size: 1.2em;
        }
    }
    .copy{
        text-align: center;
        font-size: .8em;
    }
}

/*home*/
.news_list{
    padding:1rem;
    margin:1rem 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    .title{
        padding-bottom: .3em;
        border-bottom: 2px solid var(--main_color);
    }
    .news_ul{
        margin-top: .5rem;
        display: flex;
        flex-direction: column;

        li{
            display: flex;
            align-items: center;
            padding:.2em;
            font-size: .9em;
            border-bottom: 1px dashed #ddd;
            time{
                
                flex:0 0 140px;
            }
            a{
                text-decoration: none;
            }
        }
    }
    
}

@media(max-width:767px){
    .sp_only{
        display:block;
    }
    .pc_only{
        display:none;
    }

    header .head_flex{
        display:flex;
        align-items: center;
        justify-content: space-between;

        .logo_area img{
            height:60px;
        }

        .btn_menu{
            padding:5px;
            border-radius: 4px;
            border:1px solid #ddd;
            width:50px;
            height:50px;
            display:flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;

            span{
                height:7px;
                width:100%;
                background-color: #ddd;
            }
        }
    }
    header .head_nav_area{
        position: absolute;
        left:0;
        width:100%;
        z-index: 9;
        display:none;


        .wrap{
            padding:0;
        }
        .head_nav{
            flex-direction: column;

            li{
                width:100%;
                border:0;
                border-bottom: 1px solid #0003;
                
                a{
                    padding:.7em;
                }
            }
            li:first-of-type{
                border-left:0;
            }
        }
    }
    header .head_nav_area.active{
        display:block;
    }

    .main_flex{
        flex-direction: column;

        .main_content{
            width:100%;
            margin:0;
        }
        .sidebar{
            flex:auto;
            width:100%;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top:1px solid var(--main_color);

            .login_area{
                margin:10px auto;
            }
            .bnr_area{
                align-items: center;
            }
        }
    }

    footer{
        .foot_nav_ul{
            flex-direction: column;
            align-items: flex-start;
        }
        .foot_address{
            text-align: left;
            margin-top: 2rem;
        }
    }

    /*home*/
    .news_list .news_ul li{
        flex-direction: column;
        align-items: flex-start;

        time{
            flex:auto;
        }
    }
}
