/*
*   header  
*/
header {
  background-color: #ffffffe0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  padding: 1rem 5rem;
  width: 100%;
  height: 10rem;
  z-index: 9999;
}
header h1 a {
  display: block;
  opacity: 1;
  transition: all 0.3s;
}
header h1 a:hover {
  opacity: 0.7;
}
header h1 a img {
  width: 40rem;
  height: 8rem;
}
header nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
}
header nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-align: center;
  width: 16rem;
  height: 10rem;
}
header nav ul li a:hover {
  background: transparent linear-gradient(180deg, #53bed800 0%, #53bed8 100%);
}
header nav ul li a .header_link_button {
  display: block;
}
header nav ul li a .header_link_button span img {
  object-fit: contain;
  margin: 0 0.5rem 0 0;
  padding: 0.25rem 0 0 0;
  width: auto;
  height: 2rem;
}
header nav ul li a .header_link_button .jp {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}
header nav ul li a .header_link_button .en {
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
}
.hamburger {
  display: none;
}
@media screen and (max-width: 680px) {
  header {
    padding: 1.5rem;
    width: 100%;
    height: 7.5rem;
  }
  header h1 a img {
    width: 20.2rem;
    height: 4.2rem;
  }
  header nav {
    background: #044591;
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面の外に隠れている */
    width: 30rem;
    height: 100%;
    transition: right 0.3s ease; /* スライドインのアニメーション */
    padding: 8rem 2rem;
    z-index: 99999;
  }
  header nav.open {
    right: 0;
  }
  header nav ul {
    flex-direction: column;
  }
  header nav ul li,
  header nav ul li a {
    width: 100%;
  }
  header nav ul li a:hover {
    background: #53bed8;
  }
  header nav ul li a span {
    color: #ffffff;
  }
  header nav ul li a span img {
    display: none;
  }
  /* ボタンのスタイル */
  .hamburger {
    display: block;
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    cursor: pointer;
    z-index: 999999;
    transition: transform 0.5s ease;
  }
  .hamburger span {
    display: block;
    height: 0.3rem;
    width: 100%;
    background-color: #000000;
    margin: 0.5rem 0;
    transition: all 0.3s;
  }
  .hamburger.active span {
    background: #ffffff;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.6rem, -0.6rem);
  }
}

/* メインTOP画像 */
.main_title_img {
  align-items: center;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  height: 30rem;
  margin-top: 10rem;
  width: 100%;
}

.company_img {
  background-image: url(../img/company_top.png);
}

.service_img {
  background-image: url(../img/service_top.png);
}

.contact_img {
  background-image: url(../img/contact_top.png);
}

.main_title_text_wrap {
  margin-left: 5rem;
}

.main_title_ja {
  color: #ffffff;
  font-size: 5rem;
  text-shadow: 0px 0.3rem 0.6rem #000000cc;
}
.main_title_en {
  color: #ffffff;
  font-size: 3rem;
  text-shadow: 0px 0.3rem 0.6rem #000000cc;
}

@media screen and (max-width: 680px) {
  .main_title_img {
    height: 15rem;
    margin: 7.5rem 0 0 0;
  }
  .company_img {
    background-image: url(../img/company_top_sp.png);
  }

  .service_img {
    background-image: url(../img/service_top_sp.png);
  }

  .contact_img {
    background-image: url(../img/contact_top_sp.png);
  }
  .main_title_text_wrap {
    margin-left: 1.5rem;
  }

  .main_title_ja {
    font-size: 3rem;
  }
  .main_title_en {
    font-size: 2rem;
  }
}

/*
*   footer
*/
footer {
  background: #5c5c5c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5rem;
  width: 100%;
  height: 18.4rem;
}
footer a {
  color: #ffffff;
  opacity: 1;
  transition: all 0.3s;
}
footer a:hover {
  opacity: 0.7;
}
footer a img {
  width: 40rem;
  height: 8rem;
}
footer .footer_information h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
}
footer .footer_information table {
  margin: 0.8rem 0 0 0;
  width: 40rem;
  height: 10rem;
}
footer .footer_information table th,
footer .footer_information table td {
  color: #ffffff;
  font-size: 2rem;
}
@media screen and (max-width: 680px) {
  footer {
    background: #5c5c5c;
    color: #ffffff;
    justify-content: center;
    flex-direction: column;
    padding: 0 1.5rem 2.2rem 1.5rem;
    width: 100%;
    height: auto;
  }
  footer a {
    color: #ffffff;
    opacity: 1;
    transition: all 0.3s;
  }
  footer a:hover {
    opacity: 0.7;
  }
  footer a img {
    display: block;
    margin: 5rem auto;
    width: 25.1rem;
    height: 5.3rem;
  }
  footer .footer_information h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
  }
  footer .footer_information table {
    margin: 0.8rem 0 0 0;
    width: 100%;
    height: auto;
  }
  footer .footer_information table th,
  footer .footer_information table td {
    color: #ffffff;
    font-size: 2rem;
  }
  footer .footer_information table td {
    padding: 0 0 0 0.75rem;
    overflow-wrap: break-word;
  }
}
