/* ----------------------------------------------------------------------
	
	ヘッダー & メガメニュー & フッター
	
---------------------------------------------------------------------- */

/* - ヘッダー
-------------------------------------------------- */

header {
    width: 100%;
    background-color: #004818;
    height: 60px;
    
    /*position: fixed;*/
    top: 0;
    z-index: 999;
}

header .content {
    width: 1080px;
    margin: 0 auto;
    height: 60px;
}

header .content > .inner {
    display: table;
    width: 100%;
    height: 100%;
}


header .content > .inner > .cell {
    display: table-cell;
    vertical-align: middle;
}

header .content > .inner > .cell.left {
/*
    float: left;
    padding: 17px 0;
*/
}

header h1 {

}

header h1 a {
    display: block;
}

header h1 a img {
    max-width: 241px;
    vertical-align: middle;
}


header .content > .inner > .cell.right {
/*    float: right;*/
    width: 680px;
    width: 750px;
    width: 760px;
/*    height: 60px;*/
/*
    display: flex;
    align-items: center;
*/
}

header .content > .inner > .cell.right > .menu {
    font-size: 0;
}

header .content > .inner > .cell.right > .menu > .cell {
    display: inline-block;
    font-size: 1.4rem;
    vertical-align: middle;
}

/* - トップナビ 
-------------------------------- */

.sp-top-nav {
    display: none;
}

.top-nav nav ul {
    font-size: 0;
}

.top-nav nav ul li {
    display: inline-block;
}

.top-nav nav ul li.current {
    background-color: #151515;
    transition: 0.3s;
}

.top-nav nav ul li a {
    display: block;
    color: #fff;
    padding: 0 12px;
/*    padding-right: 25px;*/
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    height: 60px;
}



.top-nav nav ul li a:hover {
    background-color: #151515;
    transition: 0.3s;
}

.entry nav a {
    padding: 0 18px;
    color: #151515;
    background-color: #d8c601;
    display: flex;
    align-items: center;
    height: 60px;
}

.entry nav a strong { font-weight: bold; }

.entry nav a:hover  {
    color: #d8c601;
    background-color: #151515;
    transition: 0.3s;
}


/* - メガメニュー 
-------------------------------- */

/*MENU*/

header > .content > .inner > .cell.right > .menu > .close {
/*    display: inline-block;*/
/*    display: block;*/
}

header > .content > .inner > .cell.right > .menu > .close > a {
    text-decoration: none;
    width: auto;
    position: relative;
    font-weight: bold;
    color: #fff;
    transition: all 140ms ease-in-out;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0 15px;
    font-size: 1.4rem;
    height: 60px;
    min-width: 74px;
    text-align: center;
}

header > .content > .inner > .cell.right > .menu > .close > a > .inner { display: table; }

header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell {
    display: table-cell;
    vertical-align: middle;
}

header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell.txt { padding-left: 10px; }

header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell > .icon {
    transition: rotate 0.4s;
    box-sizing: border-box;
    position: relative;
    display: block;
    margin: 0 auto;
    height: 17px;
    width: 26px;
}

header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell > .icon > span {
    position: absolute;
    left : 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell > .icon > span:nth-of-type(1) { top: 0; }
header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell > .icon > span:nth-of-type(2) { top: 7px; transition: all 0.1s ease-in-out; }
header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell > .icon > span:nth-of-type(3) { bottom: 0; }

header > .content > .inner > .cell.right.active {
    background-color: #fff;
}

header > .content > .inner > .cell.right > .menu > .close > a.active {
    background-color: #fff;
    color: #004818;
    
    background-color: #eee;
}

header > .content > .inner > .cell.right > .menu > .close > a.active > .inner > .cell > .icon > span {
    background-color: #004818;
}


header > .content > .inner > .cell.right > .menu > .close > a.active > .inner > .cell > .icon > span:nth-of-type(1) {
	-webkit-transform: translateY(7px) rotate(-45deg);
	transform: translateY(7px) rotate(-45deg);
    width: 26px;
}

header > .content > .inner > .cell.right > .menu > .close > a.active > .inner > .cell > .icon > span:nth-of-type(2) { opacity: 0; }

header > .content > .inner > .cell.right > .menu > .close > a.active > .inner > .cell > .icon > span:nth-of-type(3) {
	-webkit-transform: translateY(-7px) rotate(45deg);
	transform: translateY(-7px) rotate(45deg);
    width: 26px;
}


/* メガメニューナビ */

nav#gnav { display: none; }
nav#gnav > .content > .grid > .cell .sp-head { display: none; }

nav#gnav.opened {
    position: absolute;
    left: 0;
    width: 100%;
    top: 60px;
    display: block;
    z-index: 1000;
/*    overflow-y: scroll;*/
    -webkit-overflow-scrolling: touch;
/*    height: calc(100% - 60px);*/
/*    padding-bottom: 50px;*/

    /*top: 55px;*/
}

nav#gnav > .content { display: none; }
nav#gnav.opened > .content {
    display: block;
    animation: obj_fade_in 0.5s ease-out, obj_scale_in 0.1s ease-out;
    
    width: 1080px;
    margin: 0 auto;
    
/*    border: 6px solid #004818;*/
    border-top: none;
}

nav#gnav > .content > .grid {
    width: 100%;
    padding: 32px;
    background-color: #fff;
    display: flex;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    background-color: #eee;
}

nav#gnav > .content > .grid > .cell {
}

nav#gnav > .content > .grid > .cell.left {
/*    width: 146px;*/
    align-self: center;
    margin-right: 40px;
}

nav#gnav > .content > .grid > .cell.left .head {
    width: 146px;
    height: 146px;
}

nav#gnav > .content > .grid > .cell.right .sub_head {
    color: #121212;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 3px;
}

nav#gnav > .content > .grid > .cell.right ul {
    font-size: 0;
}

nav#gnav > .content > .grid > .cell.right ul li {
    display: inline-block;
    width: 33.33%;
    padding-right: 30px;   
}
nav#gnav > .content > .grid > .cell.right > .special_contents.col2 > ul li {
    width: 50%;
}

nav#gnav > .content > .grid > .cell.right ul li a {
    display: block;
    color: #121212;
    vertical-align: middle;
    padding: 8px;
    padding-left: 0;
    font-size: 1.4rem;
    border-bottom: dotted 1px #666;
    line-height: 1.4;
}



/* - コンテンツ
-------------------------------------------------- */

/*#container { padding-top: 60px; }*/



/* - フッター
-------------------------------------------------- */

footer {
    background-color: #333;
}



footer a { color: #fff; }

footer .footer_nav { 
    padding: 40px 0;
    background-color: #404040;
}

footer .footer_nav > .content {
    display: flex;
    width: 1080px;
    margin: 0 auto; 
    padding: 0 30px;
    align-items: center;
}

footer .footer_nav > .content > nav {
/*    display: table-cell;*/
}

nav.foot_contents {
    width: 75%;
}

nav.foot_top {
    width: 25%;
    min-width: 236px;
    padding: 20px;
    background-color: #4b4b4b;
}

footer .footer_nav > .content > nav.foot_contents > ul {
	display: flex;
    align-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

footer ul.ft_special { margin-top: 18px; }

nav.foot_contents > ul > li {
    margin-right: 8px;
}

nav.foot_contents > ul > li a {
    display: block;
    padding: 10px;
    font-size: 1.6rem;
/*
    line-height: 1.2em;
    white-space: nowrap;
*/
}

footer .footer_nav > .content > nav > ul > li a:hover {
    text-decoration: underline;
}


nav.foot_top > ul > li a {
    display: block;
    padding: 6px;
    font-size: 1.4rem;
}

nav.foot_top > ul > li a:hover {
    text-decoration: underline;
}

.footer_info {
    width: 1080px;
    margin: 0 auto;
    padding: 20px 0;
}

.footer_info .grid {
    display: flex;
    align-items: center;
}

.footer_info .grid .cell.left { width: 88px; }
.footer_info .grid .cell.center { width: 70%; }
.footer_info .grid .cell.right {
    width: 25%;
    min-width: 220px;
}

.footer_info .grid .cell {
    
}

.footer_info .grid .cell.center ul {
    display: flex;
    align-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.footer_info .grid .cell.left .img {
	padding-right: 28px;
}

.footer_info .grid .cell.left .img a img {
    width: 60px;
    vertical-align: top;
}

.footer_info .grid .cell.center ul > li {
	padding-right: 18px;
}

.footer_info .grid .cell.center ul > li:last-child { padding-right: 0; }

.footer_info .grid .cell.center ul > li a { line-height: 1.6; }

.footer_info .grid .cell.center ul > li a:hover {
    text-decoration: underline;
}

.footer_info .grid .cell.right {
    text-align: right;
}

p.copyright { color: rgba(255,255,255,0.6); }



/* ------------------------------------------------------------

	1089px以下

------------------------------------------------------------ */

@media only screen and (max-width: 1099px) {

    #main { width: 100%; max-width: 100%; }

    header .content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    nav#gnav.opened > .content {
        max-width: 100%;
    }
    
    
    /* フッター */
    
    .footer_info,
    footer .footer_nav > .content {
        width: 100%;
        max-width: 100%;
    }
    
    .footer_info {
        padding-left: 10px;
        padding-right: 10px;
    }

}


/* ------------------------------------------------------------

	1029px以下

------------------------------------------------------------ */

@media only screen and (max-width: 1029px) {
    
    header .content > .inner > .cell.right { width: 200px; white-space: nowrap;}
    
    header .content > .inner > .cell.right > .menu > .cell.top-nav { display: none; }
    
    header { height: 106px; }
    
    .sp-top-nav {
        display: block;
        background-color: #2e2e2e;
    }
    
    .sp-top-nav nav ul {
        font-size: 0;
    }
    
    .sp-top-nav nav ul li {
        display: inline-block;
        text-align: center;
        padding: 0;
    }
    
    .sp-top-nav nav ul li a {
        display: block;
        font-size: 1.4rem;
        padding: 16px;
        color: #fff;
        
    }
    
    .sp-top-nav nav ul li a:hover {
        background-color: #6a3;
        background-color: #000;
    }
    
    nav#gnav > .content > .grid { padding: 20px; }
    
    nav#gnav > .content > .grid > .cell.left { margin-right: 20px; }
    
    nav#gnav > .content > .grid > .cell.right ul li {
        width: 50%;
        padding-right: 20px;
    }
    
    
    /* - コンテンツ
    -------------------------------------------------- */
    #container { padding-top: 106px; }
    
    
    .footer_info .grid .cell.left ul > li.img {
        padding-right: 18px;
    }
    
    .footer_info .grid .cell.left ul > li a { font-size: 1.2rem; }

    p.copyright { font-size: 1.1rem; }

    }


/* - 第二階層以下
-------------------------------------------------- */

#wrapper { line-height: 1.5; }


/* - パンくず
    -------------------------------------------------- */

.bread_crumb {
    width: 100%;
}

.bread_crumb > .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 10px;
}

.bread_crumb > .content > ul > li {
    display: inline-block;
    font-size: 1.4rem;
}

.bread_crumb > .content > ul > li > a {
    padding-left: 5px;
    color: #333;
}

.bread_crumb > .content > ul > li.current > a {
    font-weight: bold;
}

.bread_crumb > .content > ul > li:first-child > a {
    padding-left: 0;
}

.bread_crumb > .content > ul > li .divider {
    padding-left: 5px;
}


/* - コンテンツタイトル
    -------------------------------------------------- */

.header_line {
    background-color: #333333;
    width: 100%;
}

.header_line > .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 10px;
}

.header_line > .content h1,
.header_line > .content h2 {
    color: #FFF;
    font-size: 2.6rem;
    font-weight: bold;
}

.header_line > .content h1 > span {
    display: block;
    font-size: 1.8rem;
}

/* - 第二階層　コンテンツ
    -------------------------------------------------- */

#contents_body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    padding-bottom: 80px;
    position: relative;
}


/* ------------------------------------------------------------

	1079px以下

------------------------------------------------------------ */

@media only screen and (max-width: 1079px) {



/* ぱんくず */
    .bread_crumb > .content {
        padding: 10px 15px;
    }
    
    /* メインヘッダー */
    .header_line > .content {
        padding: 15px 15px;
    }
    
    
    #contents_body {
        padding: 0 15px;
        padding-bottom: 60px;
}

}

/* ------------------------------------------------------------

	767px以下

------------------------------------------------------------ */

@media only screen and (max-width: 767px) {

    .footer_info .grid { display: block; }
    
    .footer_info .grid .cell.left,
    .footer_info .grid .cell.center,
    .footer_info .grid .cell.right {
        width: 100%;
    }
    
    .footer_info .grid .cell.left .img {
        padding-right: 0;
    }
    
    .footer_info .grid .cell {
        display: flex;
        justify-content: center;
    }
    
    .footer_info .grid .cell.center {
        margin-top: 15px;
    }
    
    .footer_info .grid .cell.right {
        margin-top: 15px;
        text-align: center;
    }
    
}


/* ------------------------------------------------------------

	759px以下

------------------------------------------------------------ */

@media only screen and (max-width: 759px) {

    nav#gnav > .content > .grid > .cell.right .special_contents ul li { width: 100%; }

}


/* ------------------------------------------------------------

	639px以下

------------------------------------------------------------ */

@media only screen and (max-width: 639px) {

     header { height: 126px; }

    .sp-top-nav nav ul {
    
    }
    
    .sp-top-nav nav ul:after {
        content: '';
        display: block;
        clear: both;
    }
    
    .sp-top-nav nav ul li {
        float: left;
        width: 50%;
        border-right: 1px solid rgba(255,255,255,0.2);
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .sp-top-nav nav ul li:nth-child(2) { border-right: none; }

    .sp-top-nav nav ul li a {
        padding: 10px 6px;
        font-size: 1.2rem;
    }
    
    /* - コンテンツ
    -------------------------------------------------- */
    #container { padding-top: 126px; }
    
    footer .footer_nav {
        padding: 0;
        padding-top: 30px;
    }
    
    footer .footer_nav > .content {
        display: block;
        padding: 0;
    }
    
    footer .footer_nav > .content > nav {
        display: block;
        width: 100%;
    }
    
    footer .footer_nav > .content > nav.foot_contents > ul {
        display: block;
    }
    
    footer .footer_nav > .content > nav.foot_contents > ul:after {
        content: '';
        display: block;
        clear: both;
    }
    
    nav.foot_contents > ul li {
        float: left;
        width: 50%;
        margin: 0;
    }
    
    
    
    nav.foot_contents > ul li a > span {
        display: block;
        margin-left: 0.5em;
    }
    
    nav.foot_top { 
        margin-top: 30px;
        padding: 0;
    }
    
    nav.foot_top ul li {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    nav.foot_top ul li:first-child { border-top: none; }
    
    nav.foot_top > ul > li a {
        text-align: center;
        padding: 18px;
        
    }

}



/* ------------------------------------------------------------

	559px以下

------------------------------------------------------------ */

@media only screen and (max-width: 559px) {

    header { height: 116px; }
    
    header h1 a img { max-width: 200px; }
    
    header .content > .inner > .cell.right { width: 122px; }
    
    header .content,
    header .content > .inner > .cell.right,
    .entry nav a {
        height: 50px;
    }
    
    .entry nav a { padding: 0 10px; }
    
    header > .content > .inner > .cell.right > .menu > .close > a {
        height: 50px;
    }
    
    header > .content > .inner > .cell.right > .menu > .close > a {
        padding: 0 10px;
        min-width: inherit;
    }
    
    header > .content > .inner > .cell.right > .menu > .close > a > .inner > .cell.txt { display: none; }
    
    
    
    nav#gnav.opened { top: 50px; }
    
    nav#gnav > .content > .grid > .cell.left { display: none; }
    
    nav#gnav > .content > .grid > .cell .sp-head {
        display: block;
        margin-bottom: 16px;
        padding: 10px;
        text-align: center;
        
        background-color: #28819d;
        color: #fff;
        
        font-size: 1.4rem;
        font-weight: bold;
        
    }
    
    /* - コンテンツ
    -------------------------------------------------- */
    #container { padding-top: 116px; }

}


/* ------------------------------------------------------------

	479px以下

------------------------------------------------------------ */

@media only screen and (max-width: 479px) {
    
    nav#gnav > .content > .grid > .cell.right ul li {
        width: 100%;
        padding-right: 0;
    }
    
    nav#gnav > .content > .grid > .cell.right ul li a {
        padding: 10px 0;
        font-size: 1.3rem;
    }
    
    nav.foot_contents > ul li > a { font-size: 1.4rem; }
    
    .footer_info .grid .cell.center ul {
        justify-content: center;
    }
    
    .header_line > .content h1 {
    font-size: 2.2rem;
    }

    .header_line > .content h1 > span {
        font-size: 1.6rem;
    }
    
}


/* ------------------------------------------------------------

	419px以下

------------------------------------------------------------ */

@media only screen and (max-width: 419px) {
    
    .footer_info .grid .cell.center ul li:nth-child(2) {
        padding-right: 0;
    }
    
}


/* ------------------------------------------------------------

	359px以下

------------------------------------------------------------ */

@media only screen and (max-width: 359px) {
    
    header h1 a img {
        width: 150px;
    }
    
    .sp-top-nav nav ul li a {
        padding: 11px 4px;
        font-size: 1.1rem;
    }
    
    nav.foot_contents { padding: 0 20px; }
    
    nav.foot_contents > ul li {
        width: 100%;
    }
}