/* ***********************************
共通項目
*************************************/

/* ***********************************
header
*************************************/
header{
    width:100%;
    height:auto;
    position: relative;
}
#sub header{
    height:90px;
    border-top: 5px solid #2C8624;
    background:repeating-linear-gradient(
-45deg,
#EFEABA,
#EFEABA 1px,
#F7F4DC 0,
#F7F4DC 29px
);
}
#sub header .inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#sub header .inner h1 p a{
    font-weight: 600;
    color: #393133;
}
#sub header .inner h1 p a span:nth-of-type(1){
    font-size: 15px;
    line-height: 1em;
}
#sub header .inner h1 p a span:nth-of-type(2){
    font-size: 28px;
    line-height: 1.2em;
}
@media only screen and (max-width: 768px){
#sub header { height: 70px; }
#sub header .inner h1 p a span:nth-of-type(1){
    font-size: 14px; }
#sub header .inner h1 p a span:nth-of-type(2){
    font-size: 22px; }
}
@media only screen and (max-width: 480px){
#sub header .inner h1 p a span:nth-of-type(1){
    font-size: 13px; }
#sub header .inner h1 p a span:nth-of-type(2){
    font-size: 20px; }    
}

/* mainimage ************************/
#mainimage{
    width: 100%;
    height: 540px;
    position: relative;
    opacity: 1;
    display: block;
    z-index: 2;
    overflow: hidden;
    text-align: center;
    border-top: 5px solid #2C8624;
}
#mainimage{
    background: #D6ECF3 no-repeat center center / cover;  
    background-image: url(../img/mainimage.png);
    }
#mainimage .inner{
    position:relative;
}
#mainimage .inner h1{
    position:absolute;
    top: 0;
    left: -50px;
    z-index: 10;
}
#mainimage .inner .area{
    position:absolute;
    top: 50%;
    right: -5%;
    z-index: 10;
}
#mainimage .inner .area_txt{
    display: none;
}

@media only screen and (max-width: 1024px){
#mainimage{
    width: 100%;
    height: 300px;
}
#mainimage .inner h1{
    width: 50vw;
    min-width: 300px;
}
#mainimage .inner h1 img{
    width: 100%;
    height: auto;
}
#mainimage .inner .area{
    display: none;
}
#mainimage .inner .area_txt{
    display: block;
}
#mainimage .inner .area_txt p{
    padding: 190px 30px 0 0;
    text-align: right;
    color: #3A3134;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}
}
@media only screen and (max-width: 768px){
#mainimage{
    width: 100%;
    height: 240px;
}
#mainimage .inner .area_txt p{
    padding: 150px 30px 0 0;
    font-size: 16px;
}
}
@media only screen and (max-width: 600px){
#mainimage .inner .area_txt p{
    padding: 150px 0 0 0;
    text-align: center;
}
}
/* logo************************/
#top header .logo{
    position: absolute;
    bottom:20px;
    left:calc(50% + 280px);
    z-index: 10;
}
@media only screen and (max-width: 1400px){
    #top header .logo{ left: auto; right: 5vw; }
}
@media only screen and (max-width: 1024px){
    #top header .logo{ width: 300px; }
    #top header .logo img{ width: 100%; height: auto; }
}
@media only screen and (max-width: 768px){
#top header .logo{ width: 230px; bottom:5px; }
}
@media only screen and (max-width: 600px){
#top header .logo{ left:calc(50% - 115px); }
}

/* top nav_area************************/
#top .nav_area{
    width:100%;
    height:54px;
    background-color:#E7F69B;
    border: none;
}
#top .nav_area .nav_pc{
    padding: 1em 0;
}

/* 共通 nav_area************************/
.nav_area .nav_pc{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 34px;
}
.nav_area .nav_pc li{
    margin-left:30px;
    line-height: 1.4;
}

/* 下線アニメーション */
.nav_area .nav_pc li a{
    display: block;
    position: relative;
    text-decoration: none;
    font-size:17px;
    line-height: 1.4;
    font-weight:bold;
    letter-spacing: -0.05em;
}
.nav_area .nav_pc li a::before,
.nav_area .nav_pc li a::after {
  border-bottom: 4px solid #74D36B;
  bottom:-14px;
  content: "";
  display: block;
  position: absolute;
  transition: all .3s ease;
  -webkit-transition: all .3s ease;
  width: 0;
}
.nav_area .nav_pc li a::before {
  left: 50%;
}
.nav_area .nav_pc li a::after {
  right: 50%;
}
.nav_area .nav_pc li a:hover::before,
.nav_area .nav_pc li a:hover::after {
  width: 50%;
}
/* 下線アニメーションここまで */

/* カレント */
.nav_area .nav_pc li.current a::before,
.nav_area .nav_pc li.current a::after {
  bottom:-25px;
  content: "";
  display: block;
  position: absolute;
  transition: 0;
  width: 50%;
}
/* カレントここまで */

.naviButton {
    display: none;
}
#nav_sp{
    display: none;    
}

@media only screen and (max-width: 1400px) {
    .nav_area .nav_pc li{ margin-left:20px; }
}

@media only screen and (max-width: 1024px) {
    .nav_area .nav_pc { display: none; }
}

/* ハンバーガーメニュー */
@media only screen and (max-width: 1024px) {
.naviButton{
    display:block;
}
#nav_sp{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: #F7F4DC;
    box-shadow: 0 4px 8px -3px rgba(17,17,17,.1);
    padding: 70px 15px 30px;
}
.spnav {
    font-size: 0;
    border-top: 1px solid #393133;
}
.spnav li {
    border-bottom: 1px solid #393133;
}
.spnav li a{
    display: block;
    height: 80px;
    padding-left: 20px;
    margin-right:20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 80px;
    color: #393133;
    text-decoration: none;
    position: relative;
}
.spnav li a::before{
  content: '';
  width: 8px;
  height: 8px;
  border: 0px;
  border-top: solid 2px #393133;
  border-right: solid 2px #393133;
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -5px;
}
.naviButton {
    width: 40px;
    height: 50px;
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 200;
}
.naviButton span {
    width: 30px;
    height: 2px;
    display: block;
    background: #393133;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -25px;
}
.flag span {
    transition: all 0.5s;
    transform: translateY(0px) !important;
}
.flag .top {
    margin-top: -10px;
    transform: rotate(0deg) !important;
}
.flag .bottom {
    margin-top: 10px;
    transform: rotate(0deg) !important;
}
.flag.is-open .middle {
    background: rgba(255, 255, 255, 0);
}
.flag.is-open .top {
    transform: rotate(-405deg) !important;
    margin-top: 0px;
}
.flag.is-open .bottom {
    transform: rotate(405deg) !important;
    margin-top: 0px;
}
}

/* ***********************************
下層 h2エリア
*************************************/
#pagettl{
    width: 100%;
    height: 180px;
    background: url(../img/bg_pagettl.png) no-repeat center top / contain #E7F69B; 
}
#pagettl .inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
#pagettl .inner h2{
    font-size:36px;
    font-weight: 600;
    color:#393133;
}
#pagettl .inner .logo img{
    width: 100%;
    height: auto;
}
@media only screen and (max-width: 1999px) {
    #pagettl{
    background: url(../img/bg_pagettl.png) no-repeat center top / cover #E7F69B;
    }
}
@media screen and (max-width: 1024px) {
    #pagettl{ height: 160px; }
    #pagettl{
    background: url(../img/bg_pagettl.png) no-repeat -360px top / cover #E7F69B;
    }
    #pagettl .inner .logo{ width:30vw; min-width:260px; }
}
@media screen and (max-width: 768px) {
    #pagettl .inner h2{ font-size: 28px; }
    #pagettl .inner .logo{ display: none; }
}

/* ***********************************
inner
*************************************/
.inner{
    width: 100%;
    height:100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
    }
#top01 .inner,#top03 .inner.op,#top05 .inner{
    max-width: 1220px;
}
@media only screen and (max-width: 1220px) {
    .inner{ padding: 0 25px; }
}
@media only screen and (max-width: 768px) {
    .inner{ padding: 0 15px; }
}
/*ここまで*/

/* ***********************************
ぱんくず
*************************************/
#breadcrumb li{
    display: inline-block;
    font-size: 14px;
    margin: 1em 0;
}
#breadcrumb li:nth-last-child(n+2)::after {
    content: '>';
    padding: 0px 0.5em;
}
#breadcrumb li:last-child::after {
  content: '';
}

/* ***********************************
hタグ
*************************************/
.subttl{
    color: #3A3134;
    font-weight:600;  
}
.subttl.h2{
    font-size:36px;
    text-align: center;
    margin-bottom: 1.0em;
}
.subttl.h2 span{
    font-size: 20px;
}
.subttl.line{
    position: relative;
    margin-bottom: 1.5em;
}
.subttl.line::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -.5em;
    left: calc(50% - 38px);
    width: 76px;/*線の長さ*/
    height: 10px;/*線の太さ*/
    background: url(../img/line_h2.png) no-repeat center top;/*img*/    
}
.subttl.line.pino::after { left: calc(50% - 62px); }
.subttl.normal{
    font-size: 24px;
    line-height: 2em;
}
.subttl.big{
    font-size: 28px;
    line-height: 2em;
}
.subttl.small{
    font-size: 20px;
    line-height: 2em;
}
@media only screen and (max-width: 1024px) {
    .subttl.h2{ font-size:32px; }
    .subttl.h2 span{ font-size: 16px; }
}
@media only screen and (max-width: 768px) {
    .subttl.h2{ font-size:28px; }
    .subttl.line::after {
    bottom: -15px;
　　}
    .subttl.line.pino::after { left: calc(50% - 58px); }
    .subttl.small{ font-size:19px; }
    .subttl.big{ font-size: 22px; }
}
@media only screen and (max-width: 480px) {
    .subttl.h2{ font-size:22px; line-height: 1.2em; }
    .subttl.h2 span{ font-size: 14px; }
    .subttl.line.pino::after { left: calc(50% - 52px); }
    .subttl.normal{ font-size:22px; }
    .subttl.small{ font-size:17px; }
}
@media only screen and (max-width: 340px) {
    #top01 .subttl.h2{ font-size:21px; }
}
/*ここまで*/

/* ***********************************
GoogleMap
*************************************/
.gmap{
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.gmap iframe{
    width: 100%;
    height: auto;
    min-height: 280px;
}
/* ***********************************
footer
*************************************/
footer .footer_imgarea{
    width: 100%;
    height: 280px;
    background: url(../img/bg_footer.png) no-repeat center top / cover #E7F69B;
    overflow: hidden;
    }
footer .footer_txtarea{
    background-color: #2C8624;
    padding: 20px 0;
}
footer .footer_in{
    display:flex;
    justify-content: center;
    align-items: center;
    margin-bottom: .5em;
}
footer .footer_in li.footer_logo{
    margin: 0 3.5%;
}
footer .footer_in li,
footer .footer_in li a{
    color: #fff;
}
footer .copyright{
    text-align: center;
    font-size: 14px;
    line-height: 1em;
    color: #fff;
}
.pagetop {
    position: fixed;
    bottom: 125px;
    right: calc(50% - 800px);
    transform: translate(-50%,0);
    z-index: 30;
}
@media only screen and (max-width: 1700px) {
.pagetop { right: 2%; }
}
@media only screen and (max-width: 768px) {
footer .footer_imgarea { height: 40vw; }
footer .footer_in { display: block; text-align: center; }
footer .footer_in li{ font-size: 14px; }
footer .footer_in li,footer .footer_in li.footer_logo{ margin: 0 0 10px;}
footer .footer_in li.footer_logo img{
    width: 50vw;
    min-width: 260px;
    line-height: 1em; }
footer .footer_in .footer_company ul li{
    display: inline;
    padding: 0 .5em; }
.pagetop { bottom: 40px; }
}
/*ここまで*/
