body{
    background: #d2d2d2;
}

.container{
    max-width: 1200px;
    background: white;
    margin: 0 auto;
}

.h-title{
    height: 100px;
    border-top: 5px solid blue;
    position: relative;
}


.h-title .h-logo{
    width: 300px;
    position: absolute;              /* 親要素はrelative, 子要素は absolute */
    top: 50%;                        /* 書き出し位置を上から50%にする */
    left: 4%;                        /* 左からの書き出し位置を4%にする */
    transform: translateY(-50%);     /* 部品の高さの半分まで、上に移動させる */
}

.h-nav{
    /* background-color: red; */
    border-top: #d2d2d2 solid 1px;
    border-bottom: #d2d2d2 solid 1px;
}

.h-menu{
    /* background-color: green; */
    letter-spacing: -.4em;          /* 文字の間のスペースを無くして、ヘッダーの隙間を無くす */
}

.h-list{
    display: inline-block;
    width: calc(100%/6);
    position: relative;
    letter-spacing: normal;         /* 文字間のスペースを元に戻す */
    height: 64px;
    border-right: #d2d2d2 solid 1px;
    box-sizing: border-box;
    vertical-align: bottom;         /* ヘッダーと画像のスキマを無くす */
    transition: 0.5s;
}

.h-list:hover .h-l-top{
    color: #0e36ca;
}

.h-list:hover{
    background-color: #e6ebfa;
}

/* マウスオーバー時に左に青線を入れる 微妙に左にずれる版 */

/* .h-list:hover .h-l-box{     
    border-left: 30px solid #0e36ca;
}
 */

/* マウスオーバー時に左に青線を入れる 微妙に左にずれない版 */

/* .h-list:hover .h-l-box::before{
    content: "";
    width: 3px;
    height: 100%;
    position: absolute;
    border-left: 3px solid #0e36ca;
    left: 4px;
} */

.h-list:hover .h-l-box::before{
    content: "";
    width: 3px;
    height: 100%;
    position: absolute;
    border-left: 3px solid #0e36ca;
    left: 4px;
}


.h-l-box{
    /* background-color: aqua; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 2021/10/24 幅を90%→100%に変更 */
    /* width: 90%; */
    width: 100%;
    text-align: center;
}

.h-l-top{
    font-size: 15px;
    color: #666666;
    /* 2021/10/24 マージントップ追加 */
    margin-top: 3px;
    margin-bottom: 6px;
    /* 2021/10/24 太字に変更 */
    font-weight: bold;
}

.h-l-bottom{
    font-size: 10px;
    color: #bababa;
    text-align: center;
    letter-spacing: 0.2em;
    /* 2021/10/24 マージンボトム追加 */
    margin-bottom: 3px;

}

/* アクティブなメニューの設定 */
.active{
    background-color: #e6ebfa;
}

.active .h-l-box::before{
    content: "";
    width: 1px;
    height: 100%;
    position: absolute;
    border-left: 3px solid #0e36ca;
    left: 4px;
}


/* ヘッダー画像 */
.h-imagebox img{
    max-width: 100%;
    height: auto;
}

.content{
    padding: 24px;
}

.main{
    /* background-color: lightblue; */
    float: left;
    width: 70%;
}

.m-h2{
    background: #0f3bda;
    color: #fff;
    padding: 14px 12px 14px 24px;
    border-radius: 4px;
    font-size: 18px;
    margin-bottom: 24px;
}

.m-h2::first-letter{
    border-left: 3px solid #8e9eef;
    padding-left: 16px;
}

.m-h3{
    background: #f6f6f6;
    color: #666666;
    padding: 14px 12px 14px 24px;
    border-radius: 4px;
    border: #ccc 1px solid;
    font-size: 17px;

}

.m-section{
    color: #666666;
    margin-bottom: 24px;
}

.m-info-date{
    float: left;
    padding: 8px 32px 8px 0;
    color: blue;

}

.m-info-content{
    /* float: left; */
    padding: 8px;
    border-bottom: 1px solid #ccc;

}

.m-info-new{
    color: #fff;
    background: red;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 2px;
    /* font-style: bold; */
}

.m-log{
    text-align: right;
    padding-top: 24px;
}

.m-log a{
    color: #666666;
}

.m-p{
    font-size: 15px;
    color: #666666;
    margin: 24px 16px;
    line-height: 2;
}

.m-p a{
    color: #666666;
    text-decoration: underline;
    transition: 0.5s;
}

.m-p a:hover{
    text-decoration: none;
    color: blue;
}

.m-point{
    color: red;
}

table{
    margin-bottom: 24px;
    width: 100%;
}

.m-pre{
    margin: 24px 16px;
    line-height: 2;
}

th, td{
    border: 1px solid #ccc;
    padding: 15px;

}

th{
    width: 20%;
    text-align: center;
    vertical-align: middle;
}

td{
    text-align: left;
}

td a{
    color: #666666;
    transition: 0.5s;
}

td a:hover{
    text-decoration: none;
    color: blue;
}

tr a{
    text-decoration: underline;
    transition: 0.5s;
}

tr a:hover{
    text-decoration: none;
    color: blue;
}

input{
    width: 60%;
}

textarea{
    width: 90%;
}

.button{
    width: 20%;
}

form{
    text-align: center;
}

.card{
    border: 1px solid #ccc;
    padding: 20px;
    overflow: hidden;
    line-height: 2;
    position: relative;
    box-shadow: 0px 5px 10px #ccc;
    background: linear-gradient(#fff, #eee);
    transition: all 0.5s;
    margin-bottom: 20px;
}

.card:hover{
    box-shadow: 0px 10px 20px #ccc;
    transform: translateY(-3px);
    background: linear-gradient(#fff, #fff);
    /* background-color: red; */
    color: blue;
    /* transition: 2s; */
    /* 2021/10/31 グラデーションについては色変更のアニメーションが反映されない沼にハマった */
    /* こちらについては下記サイトが参考になる(はず) */
    /* CSSのグラデーションボタンをホバー（マウスオーバー）でアニメーションさせる方法 https://www.tsukimi.net/css_gradient_hover_animation.html */
    /* before, afterの要素を使うのだが、矢印にbefore疑似要素を使っているので断念 */
}

.card img{
    width: 25%;
    float: left;
    margin-right: 10px;
}

a{
    text-decoration: none;
    color: #666;
}

.card h4{
    color: blue;
}

.card::before{
    content: "→";
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    background: #666;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 3px;
}

.card:hover:before{
    background: black;
    
}

.card-nolink{
    border: 1px solid #ccc;
    padding: 20px;
    overflow: hidden;
    line-height: 2;
    position: relative;
    box-shadow: 0px 5px 10px #ccc;
    background: linear-gradient(#fff, #eee);
    transition: all 0.5s;
    margin-bottom: 20px;
}

.card-nolink h4{
    color: blue;
}

.red{
    color: red;
}

.redbold{
    color: red;
    font-weight: bold;
}

.bggray{
    background: #CCC;
    padding: 5px 10px;
    border-radius: 4px;
}


.aside{
    /* background-color: green; */
    float: right;
    width: 25%;
}

.s-framebox{
    padding: 10px;
    border: solid 1px #ccc;
    background: #f4f4f4;
    margin-bottom: 24px;
    color: #666666;
}

.s-box{
    margin-bottom: 24px;
    color: #666666;
}

.s-h4{
    padding: 28px 10px;
    border-top: 5px solid blue;
    background: #eeeeee;
    border-bottom: 1px solid #d2d2d2;
    /* color: #666666; */
}

.s-list{
    border-bottom: 1px solid #d2d2d2;
    padding: 15px;
    overflow: hidden;

}

.s-list:hover{
    background: white;
    
}

.s-list a{
    text-decoration: none;
    color: #666666;
}

.s-list:hover a{
    color: blue;
}


.s-img{
    float: left;
    width: 20%;
    margin-right: 5px;
}

.s-l-title{
    color: blue;
    font-size: 11px;

}

.s-l-description{
    font-size: 11px;

}

.s-company-title{
    font-weight: bold;
    text-align: center;
    font-size: 15px;
    padding: 10px 0;
}

.s-company-info{
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
}


/* フッター */
.footer{
    background-color: blue;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    padding: 16px 0;
    line-height: 2;
    /* floatの解除 */
    clear: both;
}

.footer-under{
    font-size: 12px;
}

.footer a{
    text-decoration: none;
    color: #ffffff;
}

.footer a:hover{
    color: blue;
}


#nav-contents{
    /* display: none; */
}

/* ハンバーガーメニュー用のチェックボックス */
.nav-invisible{
    display: none;
}

/* ハンバーガーメニュー押下時のリスト */
#nav-contents{
    position: absolute;
    top: 100px;
    /* zインデックスをマイナスにして、操作できないようにする */
    z-index: -10;
    width: 100%;
    height: auto;
    background: black;
    transition: .3s;
    /* 透明度設定　0 で透明になる */
    opacity: 0;
}

/* ハンバーガーメニュー押下時の動き 間接セレクタ */
#nav-input:checked ~ #nav-contents{
    opacity: .8;
    z-index: 100;
}

.sp-menu-list{
    border-bottom: 1px solid white;
    text-align: left;
    line-height: 2.0;
    padding: 16px;
}

.sp-menu-list a{
    color: white;
    text-decoration: none;
}

.sp-menu-top{
    font-size: 18px;
}

.sp-menu-bottom{
    font-size: 11px;
}


/* スマホ用デザイン */
@media screen and (max-width: 780px){
    body{
        font-size: 12px;
        line-height: 1.5;
    }

    .container{
        width: 98%;
    }
    /* スマホの時はナビバーが表示されないようにする */
    .h-nav{
        display: none;
    }

    .main{
        float: none;
        width: auto;
    }

    .content{
        padding: 2%;
    }

    .h-title .h-logo{
        width: 60%;
    }


    .m-h2, .m-h3{
        font-size: 16px;
        padding: 7px 6px 7px 8px;
    }

    .m-h2::first-letter{
        padding-left: 8px;
    }

    .m-info-date{
        font-size: 8px;
    }

    .m-info-content{
        font-size: 8px;
        line-height: 1.5;
    }

    .m-info-new{
        font-size: 8px;
        padding: 1px 2px;
    }

    .aside{
        float: none;
        width: auto;
    }

    /* ハンバーガーメニュー */
    #nav-open span, #nav-open span:before, #nav-open span:after{
    position: absolute;
    height: 3px;
    width: 30px;
    background: #666;
    content: "";
    cursor: pointer;
    }

    #nav-open span{
        top: 38px;
        right: 30px;
    }

    #nav-open span:before{
        bottom: -12px;
    }

    #nav-open span:after{
        bottom: -24px;
    }
    
}

