/* リセット & 共通設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "YuGothic", sans-serif;
  line-height: 1.6;
  color: #333;
}
h1,
h2,
h3,
h4 {
  color: #111;
}
a {
  text-decoration: none;
  color: inherit;
}
:root {
  /* --color-main: #001f6b; */
  --color-main: #003c80;
  --color-accent: #e40046;
  --color-accent-gradient: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    #d72d60 60%,
    #cc7994 100%
  );
  /* --color-accent: #e32c4c; */
}
.display_flex {
  display: flex;
  align-items: center;
  justify-content: center;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ゆっくり遷移する */
html {
  scroll-behavior: smooth;
}
/* //--------------------------- 
/*  ヘッダー
/* ---------------------------// */
header h1 {
  width: 128px;
}
header h1 img {
  display: block;
}
header {
  font-size: 14px;
  color: white;
  text-align: center;
  background-color: var(--color-main);
  padding: 12px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.header_inner {
  width: 96%;
  max-width: 1180px;
  justify-content: space-between;
  margin: 0 auto;
}
.nav_items {
  color: #fff;
  /* margin: 0 15px; */
  gap: 24px;
}
.nav_items a {
  display: block;
  transition: 0.3s ease;
}
.header_entry {
  position: relative;
  border-radius: 100vmax;
  background: #fff;
  color: var(--color-main);
  padding: 6px 32px 6px 20px;
}
.header_entry:after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%) rotate(45deg);
  transition: 0.3s ease;
}
.nav_items a:hover {
  color: var(--color-accent);
  transition: 0.3s ease;
}
.nav_items a:hover.header_entry:after {
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

/* ヘッダーのハンバーガーメニュー */
.menu_circle {
  display: none;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  cursor: pointer;
  background: transparent;
  border: none;
}
.menu_circle::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.menu_bar {
  width: 24px;
  height: 18px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.menu_bar span {
  width: 24px;
  display: block;
  position: absolute;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  transition: transform 0.3s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.menu_bar span:first-of-type {
  top: 0;
}
.menu_bar span:nth-of-type(2) {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
.menu_bar span:nth-of-type(3) {
  bottom: 0;
}
.navbar {
  background-color: transparent;
  transition: 0.6s;
}
.side-menu {
  width: 32%;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1610;
  height: 100vh;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out;
  overflow: hidden;
  display: none;
  background: #fff;
}
.side-menu.side-menu-active {
  transform: translate3d(0, 0, 0);
}
.side-menu .inner-wrapper {
  padding: 4.5rem 4rem;
  height: 100svh;
  position: relative;
  overflow-y: auto;
  display: block;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
}
.side-menu .btn-close {
  height: 33px;
  width: 33px;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  position: absolute;
  margin-right: 10px;
  margin-top: 0;
  right: 20px;
  top: 24px;
  z-index: 12;
  cursor: pointer;
}
.side-menu .btn-close::before,
.side-menu .btn-close::after {
  content: "";
  position: absolute;
  box-sizing: initial;
  left: 16px;
  height: 24px;
  width: 2px;
  background: #111;
  top: 5px;
}
.side-menu .btn-close:before {
  transform: rotate(45deg);
}
.side-menu .btn-close:after {
  transform: rotate(-45deg);
}
.side-menu .side-nav {
  display: block;
  width: 100%;
  font-size: 16px;
  color: #111;
  margin-top: 30px;
  margin-bottom: 60px;
}
.navbar-nav {
  margin-top: 56px;
}
.side-nav .navbar-nav .nav-item {
  display: flex;
  margin: 24px 0;
  opacity: 0;
  transition: all 0.8s ease 500ms;
  transform: translateY(30px);
}
.side-menu.side-menu-active .side-nav .navbar-nav .nav-item {
  transform: translateY(0);
  opacity: 1;
}
.side-nav .navbar-nav .nav-item:first-child {
  transition-delay: 0.1s;
  margin-top: 0;
}
.side-nav .navbar-nav .nav-item:nth-child(2) {
  transition-delay: 0.2s;
}
.side-nav .navbar-nav .nav-item:nth-child(3) {
  transition-delay: 0.3s;
}
.side-nav .navbar-nav .nav-item:nth-child(4) {
  transition-delay: 0.4s;
  margin-top: 40px;
}
#close_side_menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: none;
  z-index: 1031;
  opacity: 0.5;
  cursor: pointer;
}
.side-menu .hero-btn {
  right: 24px;
  bottom: 2vh;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.3);
}
/* ハンバーガーメニューここまで */
@media (max-width: 767px) {
  .nav_items {
    display: none;
  }
  .menu_circle {
    display: block;
  }
  .side-menu {
    max-width: 400px;
    width: 80%;
    display: block;
  }
  .side-menu .inner-wrapper {
    padding: 2rem;
  }
  .header_entry {
    width: fit-content;
    background: var(--color-main);
    color: #fff;
  }
  .header_entry:after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
  }
  .side-nav hr {
    display: block;
    width: 92%;
    border-top: 1px solid var(--color-main);
    margin: 40px auto 16px;
  }
  .side-menu__logo_wrap {
    width: 140px;
    margin: 0 auto;
  }
  .side-nav .copyright {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 10px;
    color: var(--color-main);
    text-align: center;
    padding: 16px 0 80px;
  }
}
@media (max-width: 480px) {
  .header_inner {
    width: 100%;
  }
  header h1 {
    width: 90px;
  }
}
/* //--------------------------- 
/*  フッター */
/* ---------------------------// */
footer {
  background-color: #e6f0fc;
}
.footer_logo_wrap {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 24px;
}
#f_logo {
  height: 72px;
}
#f_logo img {
  object-fit: contain;
}
.footer_logo_wrap p {
  font-weight: bold;
}
#f_navi {
  width: 96%;
  max-width: 980px;
  padding: 30px 0;
  margin: 0 auto;
  font-size: 93%;
  color: #262626;
}
#f_navi ul {
  display: grid;
  grid-template-areas:
    "fNav1 fNav2 fNav3 fNav4"
    "fNav5 fNav6 fNav7 fNav8";
  column-gap: 1em;
  row-gap: 1em;
  padding: 0;
}
#f_navi li:nth-of-type(1) {
  grid-area: fNav1;
}
#f_navi li:nth-of-type(2) {
  grid-area: fNav2;
}
#f_navi li:nth-of-type(3) {
  grid-area: fNav3;
}
#f_navi li:nth-of-type(4) {
  grid-area: fNav4;
}
#f_navi li:nth-of-type(5) {
  grid-area: fNav5;
}
#f_navi li:nth-of-type(6) {
  grid-area: fNav6;
}
#f_navi li:nth-of-type(7) {
  grid-area: fNav7;
}
#f_navi li:nth-of-type(8) {
  grid-area: fNav8;
}
#f_navi li a,
#f_navi li a:link,
#f_navi li a:visited {
  color: #262626;
  text-decoration: none;
  padding: 0 0 0 15px;
  background: url(https://www.agmc.co.jp/common_img/f_icon.png) no-repeat left
    3px;
}
.footer_bg {
  background-color: #4b8ad5;
}
.footer_foot {
  clear: both;
  width: 96%;
  max-width: 980px;
  padding: 15px 0 12px;
  margin: 0 auto 0;
}
.footer_bg .copyright {
  color: #ffffff;
  font-size: 79%;
  text-align: center;
}
@media (max-width: 480px) {
  .footer_logo_wrap p {
    display: none;
  }
  #f_navi {
    padding: 24px 0 40px;
  }
  #f_navi ul {
    grid-template-areas:
      "fNav1 fNav2"
      "fNav3 fNav4"
      "fNav5 fNav6"
      "fNav7 fNav8";
    column-gap: 1em;
    row-gap: 1em;
    padding: 0;
    justify-content: center;
  }
}
