@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'ＭＳ Ｐゴシック', Osaka,
    sans-serif;
  line-height: 1;
}

section {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  white-space: pre;
}

a {
  display: inline-block;
  font-size: inherit;
  cursor: pointer;
  transition: 0.3s;
}

a:hover {
  opacity: 0.5;
  transform: translate(1px, 1px);
}

a[href=''] {
  pointer-events: none;
}

[data-lity] {
  cursor: pointer;
  transition: 0.3s;
}
[data-lity]:hover {
  opacity: 0.5;
}

/* ///// header ///////////////////////////////// */
header {
  position: relative;
  z-index: 2;
  /* padding: max(10px,.5%) 0; */
  padding: clamp(23px, 3vw, 32px) 0;
  background-color: #ffffff;
  box-shadow: 0 0 10px #0000004d;
  text-align: center;
}

.logoimg {
  display: inline-block;
  margin: 0 auto;
}
.logoimg:hover {
  opacity: 0.5;
  transition: 0.5s;
}

.logoimg img {
  width: auto;
  height: max(35px, 2.5vw);
}

/* ///// footer ///////////////////////////////// */
.footer__inner {
  display: grid;
  grid-template-columns: 5fr 2fr;
  grid-template-rows: repeat(1, 1fr);
  gap: 32px 60px;
  max-width: 1120px;
  margin: 3rem auto;
}

.footer__inner * {
  font-family: var(--f-font-base);
}

.footer__gnav-wrap {
  grid-row: 1/3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer__input {
  display: none;
}

.footer__gnav_ttl {
  display: block;
  margin-bottom: 24px;
}

.footer__ttl,
.footer__gnav_ttl {
  font-size: 14px;
  font-weight: 900;
}

.footer__gnav-list {
  padding-left: 0;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__gnav-item {
  list-style: none;
}

.footer__gnav-item a {
  font-size: 14px;
  color: #000;
  font-weight: 400;
}

.footer__link {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 7px;
}

.footer__sns-wrap {
  display: flex;
  gap: 0.5rem;
}

.footer__sns-btn {
  background: #000000;
  color: #fff;
  padding: 0.5em 1.1em 0.5em;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  gap: 0.8em;
  align-items: center;
  &::before {
    content: '';
    display: block;
    width: 1em;
    height: 1em;
    background: no-repeat center / contain url(../images/x_logo.svg);
    background-size: contain;
  }
}

.footer__sns,
.footer__appli {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__appli .footer__appli-wrap {
  width: 80%;
  margin: 0;
  display: flex;
  gap: 0.5rem;
}

.footer__nav {
  grid-column: 1/3;
  display: flex;
  gap: min(1.8vw, 48px);
  align-items: center;
  justify-content: center;
  font-size: min(1vw, 14px);
}

.footer__nav-text {
  display: flex;
  gap: 2rem;
  margin-top: 1.1rem;
  width: fit-content;
}

.footer__nav-text a {
  font-size: 14px;
  font-weight: 400;
  color: #000;
}

.footer__logo {
  height: 3em;
  display: block;

  img {
    height: 100%;
    width: auto;
  }
}
@media (max-width: 769px) {
  .footer__logo {
    height: 2em;
  }
}

.footer__copyright {
  margin: auto;
  text-align: center;
  padding: 2rem;
  font-size: 14px;
  background: #378a40;
  color: #fff;
  font-weight: 500;
}

@media screen and (max-width: 1150px) {
  .footer__inner {
    display: flex;
    flex-direction: column;
    width: 90%;
  }
}

@media screen and (max-width: 769px) {
  .footer__btn-group {
    padding: 4rem;
  }

  .footer__btn-wrap {
    display: flex;
    max-width: 1120px;
    margin: auto;
    gap: 1rem;
    justify-content: space-around;
    flex-direction: column;
  }

  .footer__btn {
    width: 85%;
    text-align: center;
  }

  .footer__gnav {
    border-bottom: 1px solid #000;
  }

  .footer__gnav:first-of-type {
    border-top: 1px solid #000;
  }

  .footer__gnav_ttl {
    margin-bottom: 0;
    padding-right: 1em;
    transition: background 0.5s;
    background: no-repeat center right/1rem url('../images/add-line.svg');
  }

  [name='footer-menu']:checked ~ .footer__gnav_ttl {
    background: no-repeat center right/1rem url('../images/subtract-line.svg');
  }

  .footer__gnav_ttl,
  .footer__gnav-item {
    padding-block: 1.5em;
    margin-inline: 0.5em;
    list-style: none;
  }

  .footer__gnav_accordion {
    display: grid;
    grid-template-rows: 0fr;
    transition: 250ms grid-template-rows ease;
    transition: all 0.5s;
  }

  [name='footer-menu']:checked ~ .footer__gnav_accordion {
    grid-template-rows: 1fr;
  }

  .footer__gnav-list {
    gap: 0;
    overflow: hidden;
    margin: 0;
  }

  .footer__gnav-item {
    border-top: 1px solid #0000004d;
    padding-right: 1em;
    list-style: none;
  }

  .footer__link {
    width: 90%;
    margin-inline: auto;
  }

  .footer__appli {
    width: 100%;
  }

  .footer__nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-size: 14px;
  }

  .footer__nav-text {
    display: flex;
    gap: 1rem;
    margin-top: 1.1rem;
    flex-direction: column;
    align-items: center;
  }

  .footer__gnav-wrap {
    display: block;
    width: 90%;
    margin: auto;
  }

  .footer__logo {
    margin-left: -1rem;
  }
}

/* ///// topbtn ///////////////////////////////// */
.p_topBtn {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  box-sizing: border-box;
  padding-top: 27px;
  width: 60px;
  height: 60px;
  border-radius: 40px;
  background-color: #b1b1b1;
  color: #ffffff;
  text-align: center;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 16px;
  line-height: 22px;
  pointer-events: auto;
}
@media (max-width: 769px) {
  .p_topBtn {
    right: 10px;
    bottom: 10px;
  }
}

.p_topBtn:before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  content: '▲';
  text-align: center;
  font-size: 16px;
}

.p_topBtn:hover {
  opacity: 0.5;
  transition: 0.5s;
}
