/*--------------------
    一般・共通設定(HTMLタグ)
    *SP向けデザインをベースにすること(最低320px)*
-------------------*/


/*
    基本構造()
-------------------*/
html{
    font-size: 62.5%;
    font-family: 'Noto Sans JP', sans-serif;   
}
body{
    font-size: 1.6rem;
    width: 100%;
    margin: 0 auto;
}
header{
    text-align: center;
}
/*
    ヘッダーをアイコン以外CSSで制御する
    320px~768px
-----------------------------------*/
#header_name{
    display: inline-block;
    width: 90vw;
}
#header_icon{
    display: inline-block;
    background-image:url(../images/SBMC.png);
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: right;
    height: calc(40px + 6vw);
    width: 20%;
    float: left;
}

#header_text{    
    text-align: left;
    padding-top: calc(0.5em + 1vw);
}
#header_text h1{
    font-size: calc(20% + 4vw);
}
#header_text p{
    font-size: calc(45% + 2vw);
    padding-top: 0.2rem;
    /*文字スタイル指定*/
    font-family: 'Dancing Script', cursive;
}
#header_Description {
    text-align: center;
}
#header_Description p{
    display: inline-block;
    text-align: left;
    font-weight: bold;
    font-size: calc(20% + 1.8vw);
    line-height: 1.2em;    
}

footer{/*フッターに付随ものなので例外で*/
    background: #f7f5f1;
}
.footerbox{
    display: grid;
    grid-template-rows: 1fr 0.4fr 0.4fr 0.2fr;/*縦幅*/
    grid-template-columns:  100%;/*横幅*/    
}
.address{
    grid-row: 3 / 4;
    grid-column: 1 ;
    text-align: center;
    font-size: 0.9em;
}
.footimg{
    grid-row: 2 / 3;
    grid-column: 1 ;
    margin: auto;
    text-align: center;
}
.footimg img{
    width: 90%;
}
.copyright{
    grid-row: 4 / 5;
    grid-column: 1 ; 
	font-size:0.75em;
	text-align:center;
}
.footmenu{
    grid-row: 1 / 2;
    grid-column: 1;
    display: grid;
    grid-template-rows: 0.5fr 1fr 1fr 1fr 1fr 1fr;/*縦幅*/
    grid-template-columns:  100%;/*横幅*/    
    text-align: center;
    margin: 0 1em;
    padding-bottom: 1em;
    font-size: 0.8em;
}
.menu1{
    grid-row:2/3;
    grid-column: 1;
    /*border-bottom: dotted 1px #333;*/
}
.menu2{
    grid-row:3/4;
    grid-column: 1;
    /*border-bottom: dotted 1px #333;*/
}
.menu3{
    grid-row:4/5;
    grid-column: 1;
    /*border-bottom: dotted 1px #333;*/
}
.menu4{
    grid-row:5/6;
    grid-column: 1;
    /*border-bottom: dotted 1px #333;*/
}
.menu5{
    grid-row:6/7;
    grid-column: 1;
    /*border-bottom: dotted 1px #333;*/
}
.footmenu a{
    text-decoration: none;
    color:#333; 
    font-size: 1.25em;
    line-height: 1.5em;
}

h1{
    line-height: 1.5em;
    font-weight: bold;
}
/*タイトルフォント*/
.wf-notosansjapanese { font-family: "Noto Sans Japanese"; }

h1 a{}
h1 a:hover{}
h2 {
    margin: 1em 0;/*他の文字との余白*/
    padding: 0.5em;/*文字周りの余白*/
    color: #333333;/*文字色*/
    background: #FFF4E0;/*背景色*/
    border-left: solid 5px #FFC679;/*左線（実線 太さ 色）*/
}
h3 {
  position: relative;
  text-align: center;
  margin: 0.7em 0;
}
h3 span {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0 2em;
  padding: 0 0.5em;
  background-color: #fff;
  text-align: left;
}
h3::before {
  position: absolute;
  top: 50%;
  z-index: 1;
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc;
}
h4 {
    color: #444d53;
    padding: .2em 1em;
    margin-top: 40px;
    border-left: 6px solid #444d53;
}
h5 {
    color: #444d53;
    margin-top: 40px;
    border-bottom: solid 2px #444d53;
}
h6 {
    color: #444d53;
    margin-top: 40px;
    border-bottom: solid 1px #444d53;
}

/*
    テキスト関係
-------------------*/
p{
    font-size:0.8em;
    margin:0 0 0.3rem 0;    
}
br{}
em{}
strong{}
/*
    テキスト表現
-------------------*/
b{}
s{}
u{}
/*
    アンカー・リスト表現
-------------------*/
a{}
a:hover{}
/*
    共通リスト
-------------------*/
nav{}
ul{}
li{}
dl{}
dt{}
dt::before{}
dd{}

/*
    画像表現
-------------------*/
img
{}

/*
    テーブル表現
-------------------*/
table{
    font-size: 0.9em;
    margin-bottom: 2em;
    border:1px #666 solid;
    border-collapse:collapse;
    word-wrap: break-word;   
}
th{
    padding:0.6em;
    border:1px #666 solid;
    border-collapse:collapse;
    background:#f5f5f5;
    text-align:center;
}
td{
    padding:1.4em;
    border-collapse:collapse;
	border:1px #666 solid;
	text-align:left; 
}


/*
    フレーム
-------------------*/
iframe{}
/*--------------------
   カラムレイアウト
-------------------*/
#contents{
    width:100%;
}
#main{
    width: 100%;
    float: none;
    line-height: 1.2em;
}
#slidebar{
    display: none;
}

/*----------------------------------------
    以下共有部のコンテンツごとのID,Class設定
    どの関連の設定かコメントアウトで表示
---------------------------------------*/
/*
    メイン部分関連
-------------------*/
/*--改行・余白
<span class="br"></span>
--*/
.br::after {
    content: "\A";
    white-space: pre;
  }
.shif{
    margin-right: 1em;
}
/*-----------------
    文章囲い枠
(2019.11現在 同じのをちょくちょく
 使っているので枠だけでも統一したい)
width,font-size,line-height
はここで設定せず別途id,classを指定する
------------------*/
.enclosureflame{
    margin: 1em auto 1em 0.25em;
    padding: 0.75em;
    color: #333; /*文字色*/
    font-weight: bold;
    border: 7px solid #FA9B01; /*線の太さ・色*/
    background-color: #fff; /*背景色*/
    box-shadow: -2px 5px 5px #e8d3c7; /*影*/
    border-radius: 25px; /*角の丸み*/
}

/*
    共通メニュー関連
-------------------*/

/*↓↓トグル用↓↓*/
.btn-content{
text-align: right;
}/*20*/

/*↓↓グローバル用↓↓*/
.menu{
    width: 100%;
    margin: 10px auto;
    background: #444;/*７*/
}
.menu-content > li > a:hover{
    background: #555;/*11*/
    color: #fff;/*12*/
}

.menu-content > li > a{
    width: 100%;
    line-height: 40px;/*６*/
    padding: 0;
    text-decoration: none;
/*--------------------*/
    position: relative;
    display: block;
    height: 100%;
    background: #444;/*９*/
    color: #fff;/*10*/
    font-size: 70%;
    z-index: 2;
}

.menu-content > li > a{
    padding: 0;
    line-height: 40px;/*６*/
/*--------------------*/
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: #444;/*９*/
    color: #fff;/*10*/
    font-size: 80%;
    z-index: 2;
    text-decoration: none;
}

/*２階層目*/
.menu-content > li > ul.second-content{
    visibility: hidden;/**/
    position: absolute;
    top: 0;
    margin: 0;
    padding-left: 0;
    list-style-type: none;
    z-index: -1;
}
.menu-content > li > ul.second-content > li{
    text-align: center;
    width: 200px;/*４*/
    height: 40px;/*５*/
}
.menu-content > li > ul.second-content > li > a{
    display: block;
    line-height: 40px;/*５*/
    background: #444;/*13*/
    color: #fff;/*14*/
    font-size: 70%;
    text-decoration: none;
}
.menu-content > li > ul.second-content > li > a:hover{
    background: #555;/*15*/
    color: #fff;/*16*/
}
/*↓↓重複部分書き出し↓↓（トグル）*/
.menu-inner{
    width: 100%;
    height: auto;
/*--------------------*/
   margin: 0 auto;
    background: #444;/*８*/
}
.menu-btn{
    display: inline-block;
/*--------------------*/
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    background: #555;/*17*/
    color: #fff;/*18*/
    font-size: 70%;
}
.menu-content{
    display: none;
/*--------------------*/
    padding-left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    list-style-type: none;
  }

.menu-content > li{
    height: 40px;/*６*/
    float: none;
/*--------------------*/
    width: 100%;
    position: relative;
    text-align: center;
}
.menu-content > li > a > .blogicon-chevron-down{
display: none;
}
/*２階層目*/
.menu-content > li:hover > ul.second-content{
display: none;
}
/*現在表示ページ用*/
#nowpage{
    background-color: aqua;
}

/*
    ページトップへの戻り
-------------------*/
.totop{
	position:fixed;
	bottom:15px;
	right:15px;
}
.totop a{
	display:block;
	text-decoration:none;
}
.totop img{
	background:#FFC679;
}
.totop img:hover{
	background:#f19500;
}

/*======================
    メディアクエリ
========================*/

@media (min-width:481px){/*481px以上(SP横＆TB縦)*/
/*
    フッター関連
-------------------*/
.footerbox{
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 1fr 0.25fr;/*縦幅*/
    grid-template-columns:  5.5fr 4.5fr/*横幅*/
    
}
.address{
    grid-row: 2 / 3;
    grid-column: 1 / 2 ;
    text-align: center;
    font-size: 0.75em;
}
.footimg{
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    margin: auto 0 0.75em ;
    text-align: center;
}
.footimg img{
    width: 100%;
}
.copyright{
    grid-row: 2 / 3;
    grid-column: 2 / 3 ; 
	text-align:center;
    margin-bottom: 1em;
    font-size: 0.65em;
}
 .footmenu{
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;/*縦幅*/
    grid-template-columns:  1fr;/*横幅*/    
    text-align: center;
    font-size:0.5em;
    margin: 0;
    padding-left:10em; 
}   
}


@media (min-width:768px){/*19 1024px以上(TB横＆PC)*/
header{
    width: 100%;
}    
    
#contents{
	max-width: 960px;
    margin: 0 auto;
	display: -webkit-flex;
    display: flex;
}
#main{
    width: 70%;
    order: 1;
    margin-bottom: 0.75em;
}
/*
    ヘッダー関連
-------------------*/
#header_name{
    display: block;
    width: 600px;
    margin: 0 auto;
}
#header_icon{
    height: 90px;
    width: 90px;
}
#header_text{
    text-align: left;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem
}
#header_text h1{
    font-size: 200%;
}
#header_text p{
    font-size: 150%;
    padding-top: 0.5rem;
}
#header_Description {
    width: 600px;
    margin: 0 auto;
}
#header_Description p{
    display: block;
    font-size: 100%;
    line-height: 1.2em;  
}
/*
    フッター関連
-------------------*/
.footer{
    width: 960px;
    }
.footerbox{
    margin: 0 auto;
    display: grid;
    grid-template-rows: 3fr 1fr;/*縦幅*/
    grid-template-columns:  2fr 1.1fr/*横幅*/
    
}
.address{
    grid-row: 2 / 3;
    grid-column: 1 / 2 ;
    text-align: center;
    font-size: 0.9em;
}
.footimg{
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    margin: auto 0 0.75em ;
    text-align: center;
}
.footimg img{
    width: 75%;
}
.copyright{
    grid-row: 2 / 3;
    grid-column: 2 / 3 ; 
	text-align:center;
    margin-top: 1.5em;
    font-size: 0.75em;
}
 .footmenu{
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    display: grid;
    grid-template-rows: 5px;/*縦幅*/
    grid-template-columns:  1fr;/*横幅*/    
    text-align: center;
    font-size:0.6em;
    margin: 0;
    padding-left:12.5em;
    padding-bottom: 0;
}   


    
/*
    サイドメニュー関連
-------------------*/
#slidebar {
        width: 30%;
        float: left;
        display: block;
        margin-left: 0.5em;
        margin-top: 0.5em;
}
.slidebar_item {
        margin-bottom: 1em;
}
.slidebar_item-fixed {
      position: sticky;
      margin-bottom: 0;
      top: 40px;
      z-index: 1;
    }

.slidebar_item-fixed li a::before{/*文字前に■を付ける*/
    	content:"\0025a0";
    	color:#000;
    }

.slidebar_item-fixed li{
        border-bottom: 1px dotted #ddd;
        padding: 5px 2px;
        list-style: none;
        font-size: 0.95em;
    }

.slidebar_item-fixed li a {
        text-decoration: none;
        color: #333333;        
    }    
    
.slidebar_item-fixed h3 {
        margin-left: 2em;
    }
.slidebar_pagename{
        margin-bottom: 0.5em;
        color:#6b0b3e; 
        border-bottom: 1px solid #e78f00;
    }
/*
    共通メニュー関連
-------------------*/
/*↓↓重複部分書き出し↓↓（グローバル）*/
.menu-inner{
    max-width: 960px;/*１*/
    height: 40px;/*２*/
}
.menu-btn{
display: none;
}
.menu-content{
    display:block;
}
.menu-content > li{
    height: 100%;
    width: 20%;
    float: left;
}
.menu-content > li{
    height: 100%;
    float: left;
}
.menu-content > li > a > .blogicon-chevron-down{
margin-right: 5px;
}
/*２階層目*/
.menu-content > li:hover > ul.second-content{
    display: block;
    visibility: visible;
    top: 40px;/*2*/
    z-index: 1;
    transition: all .3s;
}
}
