@charset 'utf-8';

body {
  font-family: "メイリオ", Meiryo, "Hiragino Sans", "ヒラギノ角ゴシック",
    "Arial", "Avenir", "Helvetica Neue", YuGothic, "Yu Gothic", "Helvetica",
    "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 1.1rem;
}

body * {
  list-style: none;
  color: #1f1f1f;
  margin: 0;
  padding: 0;
}

a:hover {
  color: #1f1f1f;
  text-decoration: none;
}

.menu-icon {
  display: none;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1rem 2rem;
  z-index: 9999;
  box-shadow: 0 2px 10px rgb(0 0 0 / 16%);
  border-top: 2px solid #666;
  background-image: linear-gradient(-45deg, #ecfffe, white);
}

h1 {
  position: relative;
  font-size: 2rem;
  font-weight: bold;
}
h1 a {
  display: block;
}
h1 span {
  font-size: 0.75em;
  margin-right: 0.2em;
}

h1 p {
  font-size: 0.4em;
  font-weight: normal;
}

h1 p.partnar {
  font-size: 1rem;
  font-weight: bold;
  line-height: 2rem;
  position: absolute;
  right: 0;
  top: 0;
}

h2 {
  font-size: 2.4rem;
  font-weight: bold;
  width: fit-content;
  margin: auto;
  padding-bottom: 0.3em;
  background: linear-gradient(transparent 80%, #39c578 0%);
}

section {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
section {
  margin-bottom: 8rem;
}
section > div {
  position: relative;
  width: 100%;
  margin: auto;
}
.inner {
  max-width: 1000px;
  margin: auto;
}

.menu {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: nowrap;
  width: auto;
  gap: 2em;
  position: relative;
}
.menu::before {
  position: absolute;
  content: "次世代型オートロック";
  top: -0.5rem;
  left: 0;
  font-size: 0.75rem;
}

.menu li {
  font-weight: bold;
  line-height: 2.5;
}

.menu li a {
  position: relative;
}
.menu li a:after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #1f1f1f;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}
.menu li a:hover:after {
  transform: scale(1, 1);
}

.remark {
  font-size: 0.9rem;
}

#main {
  width: 100%;
}

.flex {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

/* btn */
.btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn {
  color: white;
  font-weight: bold;
  display: inline-block;
  margin: auto;
  padding: 1em 6em;
  background-color: #1e77f9;
  border: 1px solid #1e77f9;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 16%);
  transition: 0.2s;
}
.btn:after {
  content: "＞";
  position: relative;
  color: inherit;
  font-size: inherit;
  left: 2em;
}

.xy-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}
.x-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}
.y-center {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

#page-top {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 3rem;
  background-color: rgba(153, 153, 153, 0.8);
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
}
#page-top::after {
  content: "";
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  -webkit-transform: translateX(-50%) rotate(-45deg);
  -ms-transform: translateX(-50%) rotate(-45deg);
  width: 1.2em;
  height: 1.2em;
  border-top: 0.2em solid white;
  border-right: 0.2em solid white;
}
#page-top span {
  position: absolute;
  left: 50%;
  bottom: -1em;
  transform: translate(-50%, 100%);
  font-size: 0.7rem;
  width: 6em;
}
#page-top:hover {
  opacity: 0.6;
}

footer {
  position: relative;
  background-color: #f2f2f2;
  width: 100%;
  padding: 2rem 0 0;
}
footer .footer-inner {
  justify-content: center;
  gap: 5%;
  width: fit-content;
  margin-bottom: 2rem;
}
footer .footer-inner > * {
  width: 40%;
  white-space: nowrap;
}
footer h1 {
  text-align: right;
}
footer .etc-links {
  text-align: center;
  margin-bottom: 1rem;
}
footer .etc-links a {
  margin: 0 0.5em;
}
footer .etc-links a:hover {
  opacity: 0.8;
  transition: 0.3s;
  text-decoration: underline;
}
footer .footer-bottom {
  color: white;
  padding: 1rem 0;
  background-color: #666;
  box-shadow: 0 20px 8px -10px rgb(0 0 0 / 15%) inset;
}
footer .footer-bottom .sns-icon-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
footer .footer-bottom .sns-icon-area img {
  width: 3rem;
}
footer .footer-bottom .copyright {
  font-size: 1rem;
  color: inherit;
  text-align: center;
}

/* notice */
#notice {
  position: sticky;
  left: 100%;
  margin-right: 1em;
  bottom: 1em;
  margin-bottom: 1em;
  z-index: 9998;
  text-align: left;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 22em;
  padding: 2.5em 0;
  border-radius: 0.5em;

  transition: 0.5s;
  transform: translateY(150%);
  box-shadow: 0 2px 10px rgb(0 0 0 / 16%);
}

#notice.notice-fadeIn {
  transform: translateY(0);
}
#notice p {
  color: white;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 0.3em;
}
#notice .close {
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 1rem;
  right: 0.5rem;
  cursor: pointer;
}
#notice .close::before,
#notice .close::after {
  position: relative;
  display: block;
  content: "";
  width: 100%;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}
#notice .close::after {
  top: -2px;
  transform: rotate(-45deg);
}
#notice img {
  width: 3.5em;
  margin-right: 0.4em;
}

.n-link {
  color: #1e77f9;
}
.n-link:hover {
  color: #1e77f9;
  text-decoration: underline;
  opacity: 0.9;
  transition: 0.2s;
}
.sp {
  display: none !important;
}

@media screen and (max-width: 1000px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: inherit !important;
  }

  header {
    flex-wrap: wrap;
    padding: 1rem;
    overflow: hidden;
  }

  header .menu {
    display: block;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    height: 0;
  }

  .menu::before {
    content: '';
  }

  h1 p {
    position: absolute;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
  } 
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  h1 p.partnar {
    display: none;
  }
  .flex {
    display: block;
  }

  .menu-icon {
    align-self: center;
    display: inline-block;
    width: 3em;
    height: 2em;
    cursor: pointer;
  }

  .menu-icon > p {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0;
    padding-bottom: 3px;
  }

  #hbg-box {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    height: 100%;
  }
  #hbg-box p {
    position: relative;
    background-color: #666;
    border-radius: 0.5em;
    content: "";
    height: 4px;
    margin: 0;
    transition: 0.3s;
  }
  .show-menu .hbg-1 {
    transform: rotate(45deg);
    top: 1rem;
    right: 0rem;
  }

  .show-menu .hbg-2 {
    opacity: 0;
    visibility: hidden;
  }

  .show-menu .hbg-3 {
    transform: rotate(-45deg);
    top: -1rem;
    right: 0rem;
  }

  .show-menu .hbg-box {
    display: block;
  }

  .show-menu .menu {
    visibility: visible;
    height: auto;
    padding-top: 1rem;
    opacity: 1;
  }

  .menu li {
    border-bottom: 1px solid #ccc;
    line-height: 5rem;
    text-align: center;
  }

  .menu li a {
    display: block;
    transition: 0.3s;
  }

  .menu li a:hover:after {
    transform: scale(0, 0);
  }

  .menu li a:hover {
    color: white;
    background-color: #494949;
  }

  .btn {
    padding: 1em 2em;
  }
  .btn:after {
    content: "＞";
    position: relative;
    color: inherit;
    font-size: inherit;
    left: 1em;
  }

  /* notice */
  #notice {
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    left: 0;
    bottom: 0;
    margin-bottom: 0;
    padding: 1rem 0;
    overflow: hidden;

    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
  #notice .btn {
    height: 3rem;
    line-height: 2rem;
  }
  #notice * {
    align-self: center;
    font-size: 0.9em !important;
    margin-bottom: 0 !important;
  }

  #page-top {
    left: 85%;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 500px) {
  h2 {
    font-size: 1.8rem;
  }
  footer h1 {
    text-align: center;
    margin-bottom: 1rem;
  }
  footer .footer-inner {
    flex-direction: column;
  }
  footer .footer-inner > * {
    width: auto;
  }
  footer .etc-links a {
    display: block;
    margin-bottom: 1rem;
  }
  .inner {
    max-width: 98%;
  }
  #notice img {
    position: absolute;
    opacity: 0.3;
    width: 4rem;
    top: 0.2rem;
    left: 0.2rem;
  }
}
