body {
  position:relative;
  color: #444440;
}

main {
  font-family: Helvetica,arial,sans-serif;
}

header {
  border-bottom: 1px solid #DDDDDD;
  position: sticky;
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 500;
  background-color: #FFFFFF;
}
h1 {
  position: absolute;
  padding-left: 2.6%;
}

h1 img {
  width: 20%;
  object-fit: fill;
  height: auto;
  display: flex;
}

.hamburger-menu {
  display: none;
}
ul {
  display: flex;
  margin: 0 auto;
}
.menu-content {
  margin: 0 auto;
  padding-left: 72%;
}
header ul {
  justify-content: space-between;
  display: flex;
}
a {
  color: #444440;
}
.menu-content a:hover {
  color: #14AE5C;
}
#menu-btn-check {
  display: none;
}

h2 {
  text-align: center;
  margin-top: 100px;
  font-size: 3rem;
  letter-spacing: 2px;
  word-spacing: 4px;
}

ul {
    list-style: none;
    text-align: center;
    /* display:flex; */
    display: grid;
    width: fit-content;
    column-gap: 3em;
    row-gap: 3em;
    grid-template-columns: repeat(3, auto);
    margin: 100px auto;
  }

img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  }

footer {
  text-align: center;
  margin: 20px auto;
  font-size: small;
}

  #zoomback {

    /* 絶対位置に配置 */
    position:fixed;
    top:0;
    
    /* 画面いっぱいに */
    width:100vw;
    height:100vh;
    
    /* 背景を少し透過 */
    background-color:rgba(255,255,255,0.9);
    
    /* 中のimgを中央揃え */
    display:flex;
    justify-content:center;
    align-items:center;
    }
    
    
    /* 拡大画像のサイズを調整 */
    #zoomimg {
    
    width:46%;
    height: auto;

    }
    #zoomback {
      display:none;
      }
    
    .contact form {
      width: 50%;
      margin: 8% auto;
      min-width: 9rem;
      text-align: center;
    }

    .contact input, .contact textarea {
      width: 100%;
      max-width: 600px;
      border: 1px solid #919191;
      margin: 0.5rem 0;
      padding: 0.5rem 1rem;
      font-family: Helvetica,arial,sans-serif;
      font-size: 0.8rem;
      color: #444;
    }

    .contact textarea {
      height: 10rem;
    }

    .contact input[type=submit] {
      margin-top: 20px;
      width: 60%;
      color: #fff;
      background-color: #919191;
      border: none;
      padding: 0.8rem 1rem;
    }

    .contact input[type=submit]:hover {
      background-color: #444440;
    }






    @media screen and (max-width: 959px) {
      /* 959px以下に適用されるCSS（タブレット用） */
      header{
        height: 60px;
      }
      .hamburger-menu {
        display: block;
      }
      .menu-btn {
        position: fixed;
        top: 0px;
        right: 0px;
        display: flex;
        height: 60px;
        width: 60px;
        justify-content: center;
        align-items: center;
        z-index: 90;
        background-color: #FFFFFF;
        border-left: #DDDDDD 1px solid;
        border-bottom: #DDDDDD 1px solid;
      }
      .menu-btn span,
      .menu-btn span:before,
      .menu-btn span:after {
        content: '';
        display: block;
        height: 1px;
        width: 25px;
        border-radius: 1px;
        background-color: #111111;
        position: absolute;
        transition: all 0.3s;
      }
      .menu-btn span:before {
        bottom: 8px;
      }
      .menu-btn span:after {
        top: 8px;
      }
      #menu-btn-check:checked ~ .menu-btn span {
        background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
      }
      #menu-btn-check:checked ~ .menu-btn {
        background-color: #14AE5C;
        border-bottom: none;
      }
      #menu-btn-check:checked ~ .menu-btn span:before,
      #menu-btn-check:checked ~ .menu-btn span:after {
        background-color: #FFFFFF;
      }
      #menu-btn-check:checked ~ .menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
      }
      #menu-btn-check:checked ~ .menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
      }
      .menu-content {
        width: 100%;
        height: 100%;
        position: fixed;
        top: -100%;
        left: 0;/*leftの値を変更してメニューを画面外へ*/
        z-index: 80;
        background-color: #14AE5C;
        transition: all 0.5s;/*アニメーション設定*/
        padding-left: 0;
      }
      .menu-content ul {
        padding: 39px 20px 50px;
        display: block;
        width: 100%;
      }
      .menu-content ul li {
        border-bottom: solid 1px #ffffff;
        list-style: none;
        padding: 14px 0;
        position: relative;
      }
      .menu-content ul .news {
        position: absolute;
        top: 359px;
        left: 50%;
        border-bottom: none;
      }
      .menu-content ul .recruit_sp {
        border-bottom: none;
      }
      .menu-content a:hover {
        color: #ffffff;
      }
      .menu-content ul li a {
        display: block;
        width: 100%;
        font-size: 16px;
        box-sizing: border-box;
        color:#ffffff;
        text-decoration: none;
        padding: 9px 15px 10px 0;
        position: relative;
      }

      .recruit_sp::after{
        content: '';
        margin-left: 10px;
        display: inline-block;
        vertical-align: top;
        width: 10px;
        height: 10px;
        background-image: url(../img/icon2.png);
        background-size: contain;
        position: absolute;
        top: 24px;
        left: 64px;
      }
      .inquiry a {
        border: #ffff 1px solid;
        padding: 20px 200px 16px 18px;
        color: #ffff;
        font-weight: 700;
        position: relative;
      }
      .inquiry {
        text-align: center;
        display: block;
      }
      .inquiry a::after {
        content: '';
        display: inline-block;
        vertical-align: top;
        width: 28px;
        height: 20px;
        background-image: url(../img/icon3.png);
        background-size: contain;
        position: relative;
        right: -180px;
        bottom: 4px;
      }
      #menu-btn-check:checked ~ .menu-content {
        top: 60px;
      }
    

      h2 {
        margin-top: 80px;
        font-size: 2rem;
        letter-spacing: 3.2px;
        word-spacing: 5.4px;
      }
      ul {
        column-gap: 0.4em;
        row-gap: 0.1em;
        grid-template-columns: repeat(3, auto);
        margin: 80px auto;
      }

      img {
        width: 12em;
        height: 12em;
        }

        #zoomimg {
    
          width:80%;
          height: auto;
    
          }
  
    }

    @media screen and (max-width: 480px) {
      /* 480px以下に適用されるCSS（スマホ用） */
      h1 {
        padding-left: 5.6%;
      }
      .menu-btn span, .menu-btn span:before, .menu-btn span:after {
        width: 22px;
      }
        
      h2 {
        margin-top: 60px;
        font-size: 1.6rem;
        letter-spacing: 1px;
        word-spacing: 2px;
      }
      ul {
        list-style: none;
        text-align: center;
        /* display:flex; */
        display: grid;
        width: fit-content;
        column-gap: 0.4em;
        row-gap: 0.1em;
        grid-template-columns: repeat(3, auto);
        margin: 60px auto;
      }

      img {
        width: 6.6em;
        height: 6.6em;
        }

              /* 拡大画像のサイズを調整 */
    #zoomimg {
    
      width:80%;
      height: auto;

      }

      .contact form {
        width: 80%;
      }

  
  
    }
