* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; 
}

.header-right {
  display: flex;
  align-items: center;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.logo img {
  max-width: 400px;
}

.tel-icon {
    max-height: 100px;
    display: block;
    margin-left: auto;
    margin-right: 30px; 
}

section {
/*  padding: 2rem; */
}

h1,
h2 {
margin-bottom: 1rem;
color: #333;
}

.hamburger {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 1000; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hamburger div {
    width: 30px;
    height: 5px;
    background-color: #000000;
    margin: 3px 0;
}

.hamburger.open div {
    background-color: #ffffff;
}

.sidemenu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #008000;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidemenu a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 20px;
    color: #ffffff;
    display: block;
    transition: 0.3s;
}

@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.header  {
  position: absolute;  
  top: 100%;  
  left: 0;  
  width: 100%; 
  transition: 0.5s;  
  height: 0;  
  overflow: hidden;  
}

.header  {
  height: auto; 
}

#hero {
position: relative;
text-align: center;
}

#hero img {
width: 100%;
height: auto;
display: block;
  margin-left: auto;
  margin-right: auto;
  animation-name: fadeIn;
  animation-duration: 2s; 
  animation-timing-function: ease-in;
}

#hero h1 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 3rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#t {
  border-radius: 10px;
  text-align: center; /* センタリング */
  font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "ＭＳ 明朝", "MS Mincho", serif; 
}

#t h1 {
font-size: 2rem;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

#t h3 {
font-size: 1.4rem;
}

#t img {
width: 100%;
height: auto;
display: block;
  margin-left: auto;
  margin-right: auto;
  animation-name: fadeIn;
  animation-timing-function: ease-in;
  padding: 4rem;
  border-radius: 10px;
  text-align: center; /* センタリング */
  font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", "ＭＳ 明朝", "MS Mincho", serif; 
}

#greeting,
#company,
#products,
#lub,
#Recruitment,
#jigyosyo,
#contact {
padding: 1rem;
border-radius: 10px;
}

.signature {
  text-align: right;
  display: inline-block;
  width: 100%;
}

.greeting {
  padding: 1rem;
  margin-top: 1rem;
}

.greeting p {
  text-indent: 1rem;
  line-height: 1.6;
}

  .greeting-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

.oil-image {
  max-width: 400px;
  }

.content-box {
  /*border: 1px solid #333;   */
  padding: 0px; 
  margin-bottom: 20px; 
  background-color: #fff; 
}

.content-box h2 {
  margin-top: 20px; 
}

img.responsive {
  max-width: 100%;
  height: auto;
}

.responsive-map-container {
 position: relative;
  overflow: hidden;
  padding-top: 56.25%; 
}

.responsive-map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
  .left-align {
    text-align: left;
  }



#back{
	background: url(back.jpg) no-repeat 11% 11% fixed;
	background-size: cover;
	-webkit-background-size: cover;
	text-align: center;
	padding: 220px 20px;
}

  #back img{
    max-width: 600px;

  }


form {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
}

form label {
  display: block;
  font-weight: bold;
  margin: 10px 0;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: white; 
}


form label[for="name"]:after,
form label[for="email"]:after,
form label[for="message"]:after {
  content: " *";
  color: red;
}


form input[type="submit"] {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}


form input[type="submit"]:hover {
  background-color: #0056b3;
}


footer {
    display: flex;
    overflow: hidden;
    flex-direction: row;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column-reverse; 
    }


    .left-footer {
        clip-path: none;
    }
}

.left-footer, .right-footer {
    flex: 1;
    padding: 20px;
    position: relative;
}

.left-footer {
    background-color: #008000;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%); 
    color: white;
}

.right-footer {
    background-color: #ffffff; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.right-footer a img {
    max-height: 30px;
    width: auto;
}

.container {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start 
}

  .textimage, .text {
  flex: 1 0 calc(50% - 10px); 
  box-sizing: border-box; 
}

.textimage {
   margin-right: 10px;  
}

.text {
  margin-left: 10px;  
}


@media screen and (min-width: 769px) {
  .container {
   max-width: 1200px;
   padding-left: 100px;
   padding-right: 100px;
  }
}

/* モバイルデバイス向け */
@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .logo img {
    width: 150px;
  }
  .tel-icon {
        max-width: 90px;
  }
  #hero h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
  /*  padding: 1rem;*/
  }

#t h1 {
font-size: 1.2rem;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

#t h3 {
font-size: 0.9rem;
}

#back{
display: none;
}



.container {
  max-width: 100%;
  padding: 0px;
  box-sizing: border-box;
  margin: 0 auto;
}

  .textimage, .text {
    flex: 1 0 100%; 
    margin-right: 0; 
    margin-left: 0;
  }
.textimage {
   max-width: 500px;
}
}

/* タブレットデバイス向け */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo img {
    width: 260px;
  }

  #hero h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  section {
  /*  padding: 1.4rem;*/
  }

    .tel-icon {
        width: 180px; 
    }



#t h1 {
font-size: 1.8rem;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

#t h3 {
font-size: 1.2rem;
}

  #back img{
    max-width: 400px;
}
}