@charset "utf-8";

body {
	font-family: "游ゴシック medium", "Yu Gothic medium","游ゴシック体",YuGothic,"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",Meiryo, "メイリオ", sans-serif;
	color: black;
	background: #6D831A;
}
#container {
	margin: 0 auto;
	width: 98%;
	background-color: #FFF;
}
img,video {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
header {
    width: 100%;
}
.matome {
    display: flex;
    
    flex-wrap: wrap;
    justify-content: space-around;
}
.ue {
    width: 35%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  //  padding: 10px 0 0 1%;
}
.ue section img {
    margin-top: 10px;
    padding-bottom: 10px;
}
.ue .tenmei {
color: #0C392D;
margin-top: 45px;
text-align: center;
font-size: 1.2rem;
padding-left: 2%;
}
.yoko {
    width: 60%;
}
.yoko {
    justify-content: space-around;
    margin-top: 45px;
}
.yoko nav {
    text-align: center;
}
   .yoko nav ul{
    margin: 0 auto;
}
   .yoko nav li{
    list-style: none;
    display: inline-block;
    width: 14%;
    min-width: 90px;
    font-size: 1rem;
    }
    nav li:not(:last-child){
    border-right:6px solid #6D831A;
    }
   .yoko nav a{
    text-decoration: none;
    color: #0C392D;
    }
   .yoko nav a:hover{
    color: #6D831A;
}
nav li{
list-style: none;
display: inline-block;
}
nav li:not(:last-child){
border-right:2px solid silver;
height: 20px;
}
nav a{
text-decoration: none;
color: #0C392D;
}
nav a:hover{
color:#0C392D;
border-bottom:2px solid #6D831A;
}


.top {
    width: 100%;
    margin: 0 auto;
    background: #0C392D;
    text-align: center;
    padding: 50px 0;
    margin-bottom: 50px;
}

.top p {
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFF;
    text-align: center;
    line-height: 0.5;
}
.top p a {
    margin: 0 auto;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}


.demo #slider1 img {
    width: 100%;
    
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

main {
    width: 100%;
    margin: 0 auto;
}

.title { 
    width: 80%;
    margin: 0 auto;
    text-align: center;
    margin: 100px auto 50px auto;
    font-weight: bold;
}
.title h2 {  
    border-bottom: 2px solid black;
    padding-bottom: 5px;
    text-align: center;
    font-size: 1.5rem;
}
.title h3 {
    padding-top: 10px;
    font-size: 1rem;
    margin-bottom: 30px;
}

.teiban, .teiban02, .kisetu {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    line-height: 2rem;
}

.teiban section p, .teiban02 section p {
    width: 38%;
}

.teiban section, .teiban02 section {
    display: flex;
    justify-content: space-around;
}
.second {
    width: 100%;
    margin: 0 auto;
    padding-top: 70px;
    margin-bottom: -30px;
}
section p {
    font-size: 0.8rem;
    text-align: center;
    margin: 20px;
}
.teiban section, .teiban02 section {
    width: 47%;
}
.teiban section p, .teiban02 section p {
    margin-left: 0;
    line-height: 2rem;
}


/* 画像が大きくなる */

main section img {
	transition-duration: 0.4s;
}
main section img:hover {
	transform:scale(1.2,1.2);
}



/* トップに戻るボタン */

.pagetop {
    display: block;
    position: fixed;
    bottom: 30px;
    right: 40px;
}

.pagetop a {
	display: block;
	padding: 10px 10px;
	border-radius: 10px;
}

footer {
    margin: 0 auto;
	width: 100%;
	background:#0C392D;
	color: #FFF;
    
}
footer .f_block {
	font-size: 0.8rem;
    margin-top: 5px;
    padding: 0 0 60px 0;
}
footer .sanoliva {
    display: flex;
    width: 95%;
    justify-content: space-around;
    height: 90px;
    /* padding-top: 10px; */
    text-align: center;
    margin-left: 0;
    padding-left: 2%;
}
.sanoliva .migi {
    
    width: 45%;
    margin:0 auto;
    height: 90px;
    padding-top: 7px;
    margin-left: 0;
    padding-left: 20%;
}
.sanoliva ul {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.sanoliva p {
    text-align: center;
    margin: 10px;
    font-size: 0.9rem;
}
.migi .sanoliva02 a{
    font-size: 1rem;
    font-weight: 500;
}

footer ul li a {
    color:#FFF;
    }

    footer ul li a:hover {
 
        color:#6D831A;
        }
  /*--------menu-hanbaga--------*/

  @media screen and (max-width: 1025px){
    .yoko {
        width: 90%;
        margin-top: 15px;
    }
    .ue .tenmei {
        margin-top: 10px;
        }
        /* .teiban section, .teiban02 section {
            flex-direction: column;
        } */
        .teiban section p, .teiban02 section p {
            line-height: 1rem;
        }
        section p {
            width: 100%;
            margin: 0px;
            margin-top: 10px;
  }
  .sanoliva .migi {
    padding-left: 0;
  }
}

  
@media screen and (max-width: 769px){
    .yoko {
        width: 100%;
    }
    .ue {
        width: 50%;
    }
    .tenmei {
        width: 100%;
    }
    .news h2 {
        font-size: 1.2rem;
    }
    
    .sanoliva .migi {
        width: 55%;
        padding-left: 0%;
    }
/* .teiban, .teiban02 {
    display: flex;
} */
    .teiban section p, .teiban02 section p {
    width: 100%;
}
.teiban section, .teiban02 section {
    display: block;
}
    }
    
@media screen and (max-width: 651px){

    .yoko nav ul {
        display: block;
    }
    .drawerBg {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 999;
        background-color: rgba(100, 100, 100, 0.3);
        display: none;
        top: 0;
        left: 0;
    }
    
    .drawerBt {
        display: block;
        background: none;
        border: none;
        padding: 0;
        width: 42px;
        letter-spacing: 1em;
        cursor: pointer;
        position: fixed;
        right: 4%;
        z-index: 9999;
        text-align: center;
        outline: none;
    }
    
    .drawerBt.active .drawerBar {
        width: 49px;
    }
    
    .drawerBt.active .drawerBar1 {
        transform: rotate(30deg);
    }
    
    .drawerBt.active .drawerBar2 {
        opacity: 0;
    }
    
    .drawerBt.active .drawerBar3 {
        transform: rotate(-30deg);
    }
    
    .drawerBt.active .drawerMenuText {
        display: none;
    }
    
    .drawerBt.active .drawerClose {
        display: block;
    }
    
    .drawerBar {
        display: block;
        height: 2px;
        margin: 10px 0;
        transition: all 0.2s; /*表示の遅延効果*/
        transform-origin: 0 0;
    }
    
    .drawerText {
        text-align: center;
        font-size: 10px;
        
    }
    
    .drawerClose {
        letter-spacing: 0.08em;
        display: none;
    }
    
    .drawerMenuText {
        display: block;
    }
    
    /*navの設定*/
    
    .dNavWrapper {
        width: 40%; /*右側に300px隠している*/
        margin: 0;
        transition: all 0.2s;
        transform: translate(220px); /*クリックすると-300pxされる、ちょうどよりも少し大きめに設定するとバグが発生しずらい*/
        position: fixed;
        right: 0;
        z-index: 1000;
        background-color: rgba(250, 250, 250, 0.6);
    }
    
    .dNavWrapper.open {
        transform: translate(0); /*オープンしてる状態は0じゃないと表示されない*/
    }
    
    /*+++ Default Navigation CSS +++*/
    
    .dNav {
        padding: 40px 0;
        background: none;
        line-height: 3rem;
    }
    
    .dNav li {
        width:100%;
        font-size: 0.7rem;
        line-height: 2rem;
        border:none;
        font-weight: bold;
    }
    
    .drawerBt {
        background-color: #fff;
        width: 43px;
        padding: 5px;
        
    }
    
    .drawerBar {
        background-color: #000;
    }
}
@media screen and (max-width: 426px){

    .yoko {
        margin-top: 10px;
    }
       .yoko nav li{
        font-size: 0.7rem;
        }
        nav li:not(:last-child){
        border-right:none;
        }
    nav li:not(:last-child){
    border-right: none;
    }
    .matome {
        width: 100%;
        flex-direction: column;
    }
    .matome .ue {
        width: 70%;
    }
    .ue section img {
        display: none;
    }
    .ue .tenmei {
    display: inline-block;
    font-size: 0.9rem;
    margin: 20px 5% 15px 0;
    }
    .top {
        padding: 20px 0;
        margin-bottom: 20px;
    }
.teiban section, .teiban02 section {
    display: block;
}
    /*footer*/


footer .f_block {
	font-size: 0.5rem;
}
footer .sanoliva {
    height: 50px;
}
footer img {
    width: 70%;
}

.sanoliva .migi {
    width: 80%;
    height: 50px;
}
.sanoliva ul {
    font-size: 0.5rem;
}
.sanoliva p {
    margin: 5px;
    font-size: 0.5rem;
}
.migi .sanoliva02 a{
    font-size: 0.5rem;
    font-weight: 400;
}

.pagetop {
    bottom: 5px;
    right: 10px;
}

.pagetop a {
	padding: 5px 5px;
}
.title {
    margin: 0 auto;
margin: 40px auto 20px auto;
font-weight: bold;
}
.title h2 {  
font-size: 1.2rem;
}
.title h3 {
font-size: 0.8rem;
}
.kisetu {
    flex-direction: column;
}
}
@media screen and (max-width: 321px){
    main section {
        width: 80%;
        margin: 0 auto;
    }
    .top {
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    footer img {
        width: 50%;
        margin-top: 10px;
    }
    
    .sanoliva .migi {
        padding-left: 0;
    }
    .sanoliva ul {
        display: flex;
        flex-wrap: wrap;
    }
    .migi ul li {
        width: calc(100%/3);
    }
}