﻿html {
    height: 100%;
}

body{
  font-size: 0.9em;
  height: 100%;
  margin: 0;
  background: #f7f7f2;
  animation: fadein 3s ease 0s 1 normal;
  -webkit-animation: fadein 2s ease 0s 1 normal;
  font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
}

*{
  box-sizing: border-box;
  border: 0;
  margin: 0;
  padding: 0;
}

header {
   padding: 10px 4% 0px;
   top: 0;
   width: 100%;
   background: #f7f7f2;
   display: flex;
   align-items: center;
}

a {	
   text-decoration: none;
   color: #2c883a;
   font-size: 1.1em;
   font-weight: bold;
   letter-spacing: 0.1em
}

/* PCでは非表示にしておく */
.nav_toggle {
  display: none;
}

@media only screen and (min-width: 800px){
nav{
text-align: center;
margin: 0 0 0 auto;
}
nav ul{
margin: 0 ;
padding: 0 ;
list-style: none;
display: flex;
}
nav li{
list-style: none;
display: inline-block;
width: 10%;
min-width: 130px;
}
nav li:not(:last-child){
border-right:1px solid #547063;
}
nav a:hover{
color:#eebb04;
border-bottom:1px solid #F7CB4D;
}
.contents{
  text-align: center;
  padding: 4%;
}
.contents_rif{
  background-image: url("../img/rifure.png") ;
  background-size:cover; 
  text-align: center;
  padding: 4%;
}
.contents_foot{
  background: #2c883a;
  text-align: center;
  padding: 4%;
}
}

@media screen and (max-width: 799px) {
    
  .moroyalogo{
    width: 90%;
    text-align: center;
    }
    
/* ハンバーガーのマーク */
  .nav_toggle {
    display: block;
    position: relative;
    width: 1.75rem;
    height: 1.5rem;
    margin-right: 10px;
    z-index: 2;
  }
  .nav_toggle i {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: transform 0.5s, opacity 0.5s;
  }
  .nav_toggle i:nth-child(1) {
    top: 0;
  }
  .nav_toggle i:nth-child(2) {
    top: 0;
    bottom: 0;
    margin: auto;
  }
  .nav_toggle i:nth-child(3) {
    bottom: 0;
  }

  /* クリックされた後のハンバーガーのマーク */
  .nav_toggle.show i:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
  }
  .nav_toggle.show i:nth-child(2) {
    opacity: 0;
  }
  .nav_toggle.show i:nth-child(3) {
    transform: translateY(-12px) rotate(45deg);
  }

  /* クリックで表示されるメニュー：クリックされる前 */
  .nav {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    background-color: #f7f7f2;
    z-index: 1;
  }
  .nav_menu_li {
    margin-bottom: 30px;
    list-style: none;
  }
  .nav_menu_li a {
    color: #2c883a;
    text-decoration: none;
  }

  /* クリックで表示されるメニュー：クリックされた後 */
  .nav.show {
    opacity: 1;
    visibility: visible;
  }
.contents{
  text-align: center;
  padding: 1%;
}
.contents_rif{
  background-image: url("../img/rifure.png") ;
  background-size:cover; 
  text-align: center;
  padding: 1%;
}
.contents_foot{
  background: #2c883a;
  text-align: center;
  padding: 1%;
}
}

.select{
    color: #eebb04;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.1em
}

.main_img img{
    width: 100%;
}
@media screen and (max-width: 567px) {
.rif_img{
    width: 100%;
}
}
@media screen and (max-width: 1126px) {
.case_img{
    width: 100%;
}
}
@media screen and (max-width: 738px) {
.case2_img{
    width: 100%;
}
}

.head_concept{
  background-image: url("../img/concept.png") ;
  background-size:cover; 
  text-align: center;
  padding: 7%;
}

.head_works{
  background-image: url("../img/works.png") ;
  background-size:cover; 
  text-align: center;
  padding: 7%;
}

.head_guide{
  background-image: url("../img/guide.png") ;
  background-size:cover; 
  text-align: center;
  padding: 7%;
}

.head_company{
  background-image: url("../img/company.png") ;
  background-size:cover; 
  text-align: center;
  padding: 7%;
}

.head_contact{
  background-image: url("../img/contact.png") ;
  background-size:cover; 
  text-align: center;
  padding: 7%;
}

.head_policy{
  background-image: url("../img/policy.png") ;
  background-size:cover; 
  text-align: center;
  padding: 7%;
}

.head_title{
    color: #f7f7f2;
    font-size: 3em;
    letter-spacing: 0.3em;
}

.contents_foot p{
    color: #f7f7f2;
}

h1{
    font-size: 2em;
    padding: 1em;
    color: #2c883a;
}
h2{
    font-size: 1.2em;
    padding-top: 1em;
    color: #2c883a;
}

p{
    margin: 0.7em;
}
mark{
    background: #f7f7f2;
}

.button {
	display: inline-block;
	padding: 0.8em 2em 0.8em 2em;
    margin: 1.5em;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: #2c883a;
	border:1px solid #2c883a;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}
.button:hover {
	 background: #fff;
     color: #2c883a;
	 text-decoration: none;
}
dl.case1{
    margin:10px;
    padding:0;
    line-height:1.8;
}
dl.case1 dt{
    width:30%;
    float:left;
    margin:0;
    padding:0 0 0 5px;
}
dl.case1 dd{
    margin:0 0 10px;
    padding:0 5px 10px 8em;
    border-bottom:1px dashed #000;
}

.gaiyo{
    margin: auto;
    width:80%;
    margin-bottom: 3.5em;
}
figure {
	float: left;
	margin: 0 1em 1em 0;
	width: 50%;
}
figure img {
	max-width: 100%;
}
.right_box{
    text-align: left;
}
.policy{
    text-align: left;
    padding: 5%;
}

.policy li{
    padding: 0 0 00 2em;
}

.div-box{
    text-align: center;
}
.gallery{
  border: 1px solid #ddd;
  display: inline-block;
  width: 250px;
  max-width: 100%;
  height: 250px;
  margin: 10px;
  overflow: hidden;
  cursor: pointer;
}
.gallery img{
  height: 100%;
  transition-duration: 0.5s;
}

.gallery:hover img{
  transform: scale(1.2);
  transition-duration: 0.5s;
}

.footer_btn {
	display: inline-block;
    position:fixed;
    right: 0px;
    bottom: 0px;
	padding: 0.5em;
	text-align: center;
	text-decoration: none;
    font-size: 1em;
	color: #fff;
	background: #eebb04;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}
.footer_btn:hover {
	 background: #fff;
     color: #eebb04;
	 text-decoration: none;
}

footer{
    padding: 5%;
    clear: both;
}
