@charset "UTF-8";

/* 共通部分 */

html {
    font-size: 100%;
    font-family: 'M PLUS Rounded 1c', sans-serif, 'Noto Serif JP', serif;

}
body {
    line-height: 1.7;
    color: rgb(0, 0, 0);
}
a {
    text-decoration: none;    
}
img {
    max-width: 100%;
}
.logo {
    text-align: center;
}
h1 {
    margin-bottom: 15px;
}

/* ナビゲーションメニュー */
.menuBar {
    margin-top: 230px;
    background-color: #364e96;
    text-align: center;
}
.menuBar ul li {
    display: inline-block;
    width: 120px;
    margin: 0 35px;
    /* padding-bottom: 10px; */
    cursor: pointer;
    transition: all 0.8s;
}
.menuBar ul li a {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
}
.menuBar ul li:hover {
    background-color: #0bd;
}
.subMenu-1 {
    position: absolute;
    background-color: #364e96;
    padding-top: 10px;
    padding-bottom: 10px;
    display: none;
    z-index: 3;
}
.menuBar ul li:hover .subMenu-1 {
    display: block;
}
.menuBar ul li:hover .subMenu-1 ul li {
    display: block;
    width: 160px;
    border-bottom: 1px dotted white;
}
.menuBar ul li:hover .subMenu-1 ul li:last-child{
    border-bottom: none;
}
/* 全体 */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}
.page-header {
    background-image: url(/images/header-small.png);
    height: 280px;
    background-position: center;
    margin-bottom: 50px;
}
/* フッター */
footer {
    background-color: #432;
    text-align: center;
    padding: 26px 0;
}
footer p {
    color: #fff;
    font-size: 0.9rem;
}
/* 記事 */
article {
    width: 74%;
}
/* サイドバー */
aside {
    width: 22%;
}
/* 記事～サイドバー */
.main-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}
/* 見出し１のデザイン※題名 */
h1 {
    position: relative;
    padding: 0.25em 1em;
    border-top: solid 2px #432;
    border-bottom: solid 2px #432;
  }
h1:before, h1:after {
    content: '';
    position: absolute;
    top: -7px;
    width: 2px;
    height: -webkit-calc(100% + 14px);
    height: calc(100% + 14px);
    background-color: black;
}
h1:before {
    left: 7px;
}
h1:after {
    right: 7px;
}
/* 見出し２のデザイン */
h2 {
    position: relative;
    padding: 5px 5px 5px 42px;
    background: #364e96;
    font-size: 20px;
    color: white;
    margin-left: -33px;
    margin-bottom: 20px;
    line-height: 1.3;
    z-index:-1;
}  
h2:before {
    position: absolute;
    content: '';
    left: -2px;
    top: -2px;
    border: none;
    border-left: solid 40px white;
    border-bottom: solid 79px transparent;
    z-index:-2
}
/* 見出し３のデザイン */
h3 {
    color: #364e96;/*文字色*/
    padding: 0.5em 0;/*上下の余白*/
    border-top: solid 3px #364e96;/*上線*/
    border-bottom: solid 3px #364e96;/*下線*/
}
/* サイドバーのデザイン */
aside p {
    padding: 12px 10px;
}
.side-menu {
    margin-bottom: 60px;
    list-style: none;
}
details {
    margin: 10px 0 10px;
}
.side-menu li {
    border-bottom: 1px #ddd solid;
    list-style: none;
}
.side-menu a {
    color: rgb(0, 0, 0);
    padding: 10px; 
    display: block;
    transition: 0.5s;
}
.side-menu a:hover {
    color: #364e96;
    font-weight: bold;
    background-color: #c4d1f7ab;
    font-size: 1rem;
}
.nav-menu-small a {
    font-size: 0.8rem;
}
/* レシポンシブデザイン１ */
@media (max-width: 1100px){
    .logo {
        font-size: large;
    }
    h1{
        color: black;
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .page-header {
        background-size: 100%;
    }    
    .menuBar ul li {
        display: inline-block;
        font-size: 0.8rem;
        width: 100px;
    }
}

/* レシポンシブデザイン２ */
@media (max-width: 760px) {
    .logo {
        font-size: large;
    }
    h1{
        color: black;
        font-size: 1.5rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .page-header {
        background-size: 100%;
    }

    /* メインコンテンツ縦並び */
    .main-content {
        margin-top: 80px;
        flex-direction: column;
    }
    article, aside {
        width: 100%;
    }
    .page-title {
        font-size: 2.5rem;
    }
    .page-header {
        height: 200px;
    }
    .menuBar {
        margin-top: 150px;
    }
    .main-nav {
        background-color: white;
        font-size: 1rem;
        margin-top: 180px;
        display: list-item;
        list-style-type: none;
    }
    .main-nav a {
        color: #364e96;
    }
    .main-nav li {
        display: list-item;
        list-style-type: none;
        text-transform: uppercase;
        margin: 0 20px;
    }
}