/* トップページ */
body {
    margin: 0;
    padding: 0;
    background-color: #486d46;            /* 背景色 */
    background-image: url("images/top_main.jpg"); /* 画像 */
    background-size: cover;               /* 全画面 */
    background-attachment: fixed;         /* 固定 */
    background-position: center center;   /* 縦横中央 */
 }

#viewTitle {
    color:white;
    margin-left: 10px;
}

header {
    width: 100%;
    background-color: darkblue;
    z-index: 1;
    position: fixed;
    top: 0px;
 }

header img {
    height: 50px;
    display: block;
}

header li {
    border-left: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

header li {
    border-left: 0;
    border-right: 1px solid #ffffff;
}

ul {
    list-style: none;
    list-style-type: none;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.1em;
}

.hamburger {
    margin: 20px auto 0;
    width: 100%;
    max-width: 970px;
    display: flex;
    justify-content: space-between;
}


.hamburger .btn-gNav {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    z-index: 12;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}

.hamburger .btn-gNav span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-radius: 10px;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}

.hamburger .btn-gNav span:nth-child(1) {
    top: 0;
}

.hamburger .btn-gNav span:nth-child(2) {
    top: 10px;
}

.hamburger .btn-gNav span:nth-child(3) {
    top: 20px;
}

.hamburger .btn-gNav.open span:nth-child(1) {
    background: #ffffff;
    top: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.hamburger .btn-gNav.open span:nth-child(2),
.hamburger .btn-gNav.open span:nth-child(3) {
    top: 6px;
    background: #ffffff;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}


.btn-gNav {
    display: none;
}

.gNav .gNav-menu {
    display: flex;
    justify-content: space-between;
}

.gNav .gNav-menu li {
    margin: 0 auto;
    padding: 0 5px;
}

@media screen and (max-width: 600px) {
    .btn-gNav {
        display: block;
    }

    .gNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        padding-top: 50px;
        transition: .3s;
    }

    .gNav.open {
        right: 0;
    }

    .gNav .gNav-menu {
        padding: 0;
        width: 100%;
        height: 100%;
        display: block;
        flex-direction: column;
    }

    .gNav .gNav-menu li {
        width: 100%;
        padding: 15px;
        border-bottom: #525252 1px solid;
    }

}

/*フッター*/
footer ul {
    padding: 0;
    list-style: none;
}
  
footer a {
    color: #4b5564;
    text-decoration: none;
}
  
footer a:hover {
    color: #000;
}
  
footer hr {
    height: 1px;
    border: 0;
    border-top: 1px solid #e5e7eb;
}
  
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
  
.footer {
    position: relative;
    bottom: -100px;
    padding: 2rem;
    font-size: 15px;
    color: #4b5564;
    background: #fff;
}
  
.footer__navi-heading {
    font-weight: 600;
}
  
.footer__logo {
    display: inline-block;
    margin-bottom: 2rem;
}

#footer_logo {
    height: 70px;
}
  
.footer__navi li {
    margin-bottom: 0.75rem;
}
  
.footer__social a {
    display: inline-block;
    width: 24px;
    opacity: 0.7;
}
  
.footer__social a:not(:last-child) {
    margin-right: 16px;
}
  
@media (min-width: 768px) {
    .md-flex {
      display: flex;
    }
  
    .md-justify-between {
      justify-content: space-between;
    }
  
    .grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* メインエリア */
#main_area {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 100px;
}

.contents {
    background-color:#ffffff;
    width: 90%;
    margin: 5px auto;
    border-radius: 5px; /* ボックスの四つ角を丸くする */
    opacity: 0.8;
}

.contents p {
    margin-left: 10px;
    margin-top: auto;
    padding: auto;
}

.contents_inner {
    display: flex;
}

.icons {
    margin: auto;
    position: relative;
    right: 0px;
}

.icon_btn {
    border: solid 1px gray;
	border-radius: 5px;
	background-repeat: no-repeat;
	background-size: auto 85%;
	background-position: center center;
	width: 80px;
	height: 58px;
    margin: 5px;
	
	text-align: left;	/* テキストは左寄せ */
	text-indent: 30px;	/* インデントを使用して画像分余白を開ける */
}

.icon_btn:hover {
	background-color: lavender;
	background-size: auto 90%;
}

.icon_btn:active {
	background-color: #DFDFF9;
	background-size: auto 80%;
}

@media (max-width: 1000px) {
    .contents {
        width: 100%;
        margin: 5px auto;
    }
}

@media (max-width: 840px) {
    .contents_inner {
        display: block;
        text-align: center;
    }

    .contents p {
        margin: 0px;
        padding: 0px;
    }

    .icon_btn {
        width: 80px;
        height: 50px;
        margin-left: 10px;
    }
}


