@charset "utf-8";

html {
  font-size: 100%;
}
body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
a {
  text-decoration: none;
  color: #000;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}
p {
  line-height: 2.5;
}

#header {
  height: 300px;
  position: relative;
  background-color: #555;
}

.header-inner {
  display: flex;
  justify-content: space-between;
}
.logo {
  width: 150px;
}

.hamburger {
  position: fixed;
  right: 50px;
  top: 50px;
  width: 50px;
  height: 25px;
  cursor: pointer;
  z-index: 9999;
}
.hamburger__line {
  position: absolute;
  width: 50px;
  height: 4px;
  background-color: #8da0b6;
  border-radius: 5px;
  transition: all 300ms ease;
  transform: rotate(0deg);
}
.hamburger__line:nth-child(1) { top: 0px; }
.hamburger__line:nth-child(2) { top: 15px; }
.hamburger__line:nth-child(3) { top: 30px; }
.hamburger.open .hamburger__line:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger__line:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}
.hamburger.open .hamburger__line {
  background-color: #8da0b6;
}
.menu {
  position: fixed;
  top: 100px;
  right: 50px;
  z-index: 9998;
  flex-direction: column;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 300ms ease;
  width: 200px;
  background-color: #8da0b6;
  color: #fff;
  padding: 50px;
  gap: 10px;
}
.menu.open {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #fff;
  padding-bottom: 20px;
  border-bottom: 1px solid #fff;
}
.menu__item:last-child {
  border-bottom: none;
}
.icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.submenu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-left: 15px;
  margin-bottom: 20px;
}
.submenu.open {
  display: flex;
}
.submenu__item {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.9;
}
.submenu__item:hover {
  opacity: 1;
}



#news {
  max-width: 1240px;
  padding: 100px 16px 50px 16px;
  margin: -50px auto 10px auto;
}
.news-title {
  font-size: 2.25rem;
  margin-bottom: 30px;
  text-align: center;
}
.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.item {
  box-shadow: 0 0 8px 4px #ccc;
}
.fadein {
  vertical-align: top;
}
.item-content {
  padding: 30px;
}
.item-text {
  font-weight: bold;
  margin-bottom: 20px;
}
.item-date {
  font-size: 0.75rem;
  text-align: right;
}



#footer {
  background: #555;
  color: #fff;
  margin-top: 100px;
  padding: 50px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.footer-left {
  flex: 2;
}
.footer-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.footer-nav a:hover {
  opacity: 0.7;
}
.footer-nav-service {
  position: relative;
}
.footer-nav-service-label {
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.footer-submenu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #444;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  white-space: nowrap;
  z-index: 10;
  list-style: none;
}
.footer-submenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #444;
}
.footer-nav-service:hover .footer-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.footer-submenu a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.footer-submenu a:hover {
  opacity: 0.7;
}
.footer-company {
  position: relative;
  max-width: 360px;
}
.footer-logo {
  position: relative;
  left: -40px;
  bottom: -20px;
  width: 200%;
  opacity: 0.3;
}
.footer-company-text {
  position: absolute;
  left: 0;
  bottom: 0;
}
.footer-logo-text {
  font-size: 36px;
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}
.footer-address {
  font-size: 14px;
  line-height: 1.5;
  font-style: normal;
}
.footer-right {
  flex: 1;
  display: flex;
  gap: 150px;
}
.footer-line {
  width: 1.5px;
  background: rgba(255, 255, 255, 0.4);
}
.footer-contact {
  display: flex;
  align-items: center;
}
.footer-contact-text p:first-child {
  font-size: 28px;
  margin-bottom: 8px;
}
.footer-contact-text p:nth-child(2) {
  font-size: 14px;
  margin-bottom: 24px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #fff;
  color: #555;
}



@media screen and (max-width: 767px) {
  html {
    font-size: 90%;
  }

  .logo {
    width: 50px;
  }
  .hamburger {
    right: 30px;
    top: 30px;
    width: 30px;
    height: 25px;
  }
  .hamburger__line {
    width: 35px;
  }
  .hamburger__line:nth-child(1) { top: 0px; }
  .hamburger__line:nth-child(2) { top: 9px; }
  .hamburger__line:nth-child(3) { top: 18px; }
  .menu {
    right: 30px;
  }


  .footer-inner {
    padding: 0 20px;
  }
  .footer-left {
    flex: 1;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 16px;
  }
  .footer-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    padding: 8px 0 0 16px;
    border-radius: 0;
    gap: 12px;
  }
  .footer-submenu::after {
    display: none;
  }
  .footer-company {
    max-width: 100%;
    margin-top: 30px;
  }
  .footer-logo {
    width: 140%;
    left: -10px;
    bottom: 0;
  }
  .footer-logo-text {
    margin-bottom: -10px;
  }

  .footer-right {
    flex-direction: column;
    gap: 24px;
  }

  .footer-line {
    background: none;
  }
  .footer-contact {
    align-items: none;
  }
  .footer-contact-text p:first-child {
    font-size: 22px;
  }

  .footer-btn {
    width: 100%;
    text-align: center;
  }
}