:root {
  --header-height: 7.4rem;
}

html {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 400;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden;
  padding-top: var(--header-height);
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}


@media screen and (min-width: 769px) {
  html {
    font-size: 0.694vw;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 12rem;
  }

  html {
    font-size: 1.333vw;
  }
}

/* -------------------------
hover
-------------------------- */
@media (hover: hover) {
  .cm-nav__link {
    transition: filter .3s;
  }

  .bbiq-qa__btn,
  .qtmobile-qa__btn {
    transition: transform .3s ease, filter .3s ease;
  }

  .cm-nav__link:hover {
    filter: contrast(.75) brightness(1.14);
  }

  .bbiq-qa__btn:hover,
  .qtmobile-qa__btn:hover {
    transform: translateX(-50%) translateY(-.4rem);
    filter: drop-shadow(0 .6rem .8rem rgba(0, 0, 0, .3));
  }
}

/* -------------------------
header
-------------------------- */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
}

.header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 12rem;
  background-color: #fff;
}

.header__logo {
  display: block;
  width: 11.9rem;
}

.header__hamburger {
  --line-w: 2.3rem;
  --line-h: .25rem;
  --line-gap: .75rem;
  position: relative;
  flex-shrink: 0;
  width: 5.1rem;
  height: 5.1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #0051a4;
  cursor: pointer;
}

.header__hamburger-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--line-w);
  height: var(--line-h);
  margin-top: calc(var(--line-h) / -2);
  margin-left: calc(var(--line-w) / -2);
  border-radius: 1rem;
  background-color: #fff;
  transition: transform .3s, opacity .3s;
}

.header__hamburger-line:nth-child(1) {
  transform: translateY(calc(var(--line-gap) * -1));
}

.header__hamburger-line:nth-child(3) {
  transform: translateY(var(--line-gap));
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background-color: #ededed;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s, visibility 0s;
}

.menu__inner {
  display: grid;
  grid-template-columns: repeat(2, 48rem);
  gap: 4rem;
  justify-content: center;
  align-items: start;
  padding: 8rem 0;
}

.menu__card {
  padding: 0 2.6rem 3rem;
  border-radius: .8rem;
  background-color: #fff;
  box-shadow: 0 0 1rem rgb(0 0 0 / .08);
}

.menu__card-head {
  position: relative;
  display: grid;
  place-items: center;
  height: 10.4rem;
}

.menu__card-logo {
  width: 16.3rem;
}

.menu__card-person {
  position: absolute;
  bottom: 0;
}

.menu__card--bbiq .menu__card-person {
  right: .2rem;
  width: 12rem;
}

.menu__card--qtmobile .menu__card-person {
  left: 1.2rem;
  width: 9.5rem;
}

.menu__list {
  border-bottom: 1px solid #e5e5e5;
}

.menu__item {
  border-top: 1px solid #e5e5e5;
}

.menu__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 7.5rem;
  padding: 0 4rem 0 1rem;
  color: #222;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.menu__link::after {
  position: absolute;
  top: 50%;
  right: 1.8rem;
  width: .9rem;
  height: .9rem;
  border-top: .4rem solid currentColor;
  border-right: .4rem solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

@media screen and (max-width: 768px) {
  .header__inner {
    padding: 0 2rem 0 2.8rem;
  }

  .header__logo {
    width: 16.5rem;
  }

  .header__hamburger {
    --line-w: 3.6rem;
    --line-h: .4rem;
    --line-gap: 1.1rem;
    width: 8rem;
    height: 8rem;
  }

  .menu__inner {
    grid-template-columns: 1fr;
    padding: 5rem 4rem 6rem;
  }

  .menu__card {
    padding: 0 3rem 4rem;
    border-radius: 1rem;
  }

  .menu__card-head {
    height: 15rem;
  }

  .menu__card-logo {
    width: 23.3rem;
  }

  .menu__card--bbiq .menu__card-person {
    right: 0;
    width: 15.2rem;
  }

  .menu__card--qtmobile .menu__card-person {
    left: 1.8rem;
    width: 13.4rem;
  }

  .menu__link {
    min-height: 10.8rem;
    padding: 0 5rem 0 1.6rem;
    font-size: 3rem;
  }

  .menu__link::after {
    right: 2.4rem;
    width: 1.2rem;
    height: 1.2rem;
    border-top-width: .5rem;
    border-right-width: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu.is-open,
  .header__hamburger-line {
    transition: none;
  }
}

/* -------------------------
bbiq
-------------------------- */
.bbiq {
  background-color: #c9e5ef;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / .5) .3rem, transparent .35rem),
    radial-gradient(circle, rgb(255 255 255 / .5) .3rem, transparent .35rem),
    url(../img/bg_texture.jpg);
  background-size: 2.4rem 3.8rem, 2.4rem 3.8rem, 133.4rem 133.4rem;
  background-position: 0 0, 1.2rem 1.9rem, 0 0;
  overflow-x: clip;
  padding-bottom: 20.1rem;
}

.cm-nav {
  position: relative;
  height: 25.5rem;
  padding-top: 2.4rem;
}

.cm-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  clip-path: polygon(0 0, 85% 0, 0 100%);
}

.cm-nav__list {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.cm-nav__link {
  display: block;
  width: 40rem;
}

.bbiq-cm {
  position: relative;
  width: 60rem;
  margin: -1.3rem auto 0;
  scroll-margin-top: calc(var(--header-height) + 3rem);
}

.bbiq-cm__logo {
  width: 24rem;
  margin: 0 auto;
}

.bbiq-cm__movie {
  margin-top: 2.8rem;
}

.bbiq-cm__ttl-img {
  width: 61.3rem;
  margin-left: -.65rem;
}

.bbiq-cm__deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.bbiq-cm__deco--planet {
  top: 3.6rem;
  left: -9.9rem;
  width: 12rem;
}

.bbiq-cm__deco--star {
  top: 14.3rem;
  left: -10.5rem;
  width: 6.6rem;
}

.bbiq-cm__deco--cloud {
  top: -2.8rem;
  right: -14.6rem;
  width: 16rem;
}

.movie {
  position: relative;
}

.movie__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10rem;
  height: 10rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgb(255 255 255 / .85);
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='50' cy='50' r='50' fill='white'/%3E%3Cpath d='M38 26 L74 50 L38 74 Z' fill='black' stroke='black' stroke-width='8' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Ccircle cx='50' cy='50' r='50' fill='white'/%3E%3Cpath d='M38 26 L74 50 L38 74 Z' fill='black' stroke='black' stroke-width='8' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.movie__play.is-hidden {
  display: none;
}

.bbiq-qa {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100rem;
  margin: 4.7rem auto 0;
}

.bbiq-qa__item {
  scroll-margin-top: calc(var(--header-height) + 3rem);
}

.bbiq-qa__item--q3 {
  position: relative;
}

.bbiq-qa__btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 40rem;
  transform: translateX(-50%);
}

@media screen and (max-width: 768px) {
  .bbiq {
    padding-bottom: 16rem;
  }

  .cm-nav {
    height: 33.8rem;
    padding-top: 3rem;
  }

  .cm-nav::before {
    clip-path: polygon(0 0, 100% 0, 100% 13.6rem, 0 100%);
  }

  .cm-nav__list {
    gap: 1.8rem;
  }

  .cm-nav__link {
    width: 33.6rem;
  }

  .bbiq-cm {
    width: auto;
    margin: 0 3rem;
  }

  .bbiq-cm__logo {
    width: 32rem;
  }

  .bbiq-cm__ttl-img {
    width: 70.3rem;
  }

  .bbiq-cm__deco--planet {
    top: -6.9rem;
    left: 0;
    width: 16rem;
  }

  .bbiq-cm__deco--star {
    top: 5.5rem;
    left: -1.2rem;
    width: 9rem;
  }

  .bbiq-cm__deco--cloud {
    top: -9.4rem;
    right: -8rem;
    width: 21rem;
  }

  .movie__play {
    width: 12rem;
    height: 12rem;
  }

  .bbiq-qa {
    width: 69rem;
    gap: 3rem;
  }

  .bbiq-qa__item--q3 {
    width: 72rem;
  }

  .bbiq-qa__btn {
    bottom: 3.6rem;
    left: 43.5rem;
    width: 45rem;
  }
}

/* -------------------------
qtmobile
-------------------------- */
.qtmobile {
  margin-top: -30rem;
  padding: 35rem 0 8rem;
  background-image: linear-gradient(90deg, #014b59 0%, #00191e 100%);
  clip-path: polygon(0 30rem, 100% 0, 100% 100%, 0 100%);
}

.qtmobile-cm {
  width: 60rem;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-height) + 3rem);
}

.qtmobile-cm__logo {
  width: 22rem;
  margin: 0 auto;
}

.qtmobile-cm__movie {
  margin-top: 3rem;
}

.qtmobile-cm__ttl-img {
  width: 82rem;
  margin: 3rem 0 0 -10rem;
}

.qtmobile-qa {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100rem;
  margin: 5rem auto 0;
}

.qtmobile-qa__item {
  scroll-margin-top: calc(var(--header-height) + 3rem);
}

.qtmobile-qa__item--q1 {
  padding-bottom: 3rem;
  border-radius: 1rem;
  background-color: #fff;
  overflow: hidden;
}

.qtmobile-qa__cta {
  position: relative;
}

.qtmobile-qa__btn {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  width: 40rem;
  transform: translateX(-50%);
}

.qtmobile-acc__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.qtmobile-acc__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7rem;
  width: 1.5rem;
  height: 1.5rem;
  border-top: .5rem solid #000;
  border-left: .5rem solid #000;
  transform: translateY(-75%) rotate(-135deg);
  transition: transform .3s;
}

.qtmobile-acc__btn[aria-expanded="true"]::after {
  transform: translateY(-25%) rotate(45deg);
}

.qtmobile-acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s;
}

.qtmobile-acc__body.is-open {
  grid-template-rows: 1fr;
}

.qtmobile-acc__inner {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .qtmobile {
    margin-top: -20rem;
    padding: 28rem 0 7.5rem;
    clip-path: polygon(0 20rem, 100% 0, 100% 100%, 0 100%);
  }

  .qtmobile-cm {
    width: auto;
    margin: 0 3rem;
  }

  .qtmobile-cm__logo {
    width: 29rem;
  }

  .qtmobile-cm__ttl-img {
    width: 58rem;
    margin: 3rem auto 0;
  }

  .qtmobile-qa {
    width: 69rem;
    gap: 3rem;
    margin-top: 4rem;
  }

  .qtmobile-acc__btn::after {
    right: 6rem;
  }

  .qtmobile-qa__btn {
    bottom: 3.6rem;
    left: 43.5rem;
    width: 45rem;
  }
}

/* -------------------------
footer
-------------------------- */
.footer {
  padding-top: 8rem;
  background-color: #fff;
  color: #000;
  font-size: 1.6rem;
  line-height: 1.6;
}

.footer__logo {
  max-width: 46rem;
  padding: 0 2rem;
  margin: 0 auto 4rem;
}

.footer__body {
  padding: 5rem;
}

.footer__inner {
  display: flex;
  gap: 2.4rem;
  justify-content: space-between;
  align-items: end;
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__sns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
  margin: 0 0 2rem;
}


.footer__sns-link {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__sns-link::after {
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -.4rem;
  margin-left: -.4rem;
  content: "";
  background: url("../img/icon-external-black.svg") no-repeat center center / 100%;
}

.footer__sns-icon {
  width: 3rem;
}

.footer__info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer__info-link {
  position: relative;
  display: block;
  padding: 0 0 0 2rem;
}

.footer__info-link::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  content: "・";
}

.footer__copyright {
  display: block;
  font-family: "Ubuntu", "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
}

.footer__page-top-link {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: center;
}

.footer__page-top-icon {
  width: 6rem;
  height: 6rem;
  transform: rotate(-90deg);
}

.footer__page-top-text {
  font-family: "Ubuntu", "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.1;
}

@media screen and (max-width: 768px) {
  .footer {
    padding-top: 9.6rem;
    font-size: 3.2rem;
  }

  .footer__logo {
    max-width: 68rem;
    padding: 0 4rem;
    margin-bottom: 9.6rem;
  }

  .footer__body {
    padding: 0 4rem 10rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8rem;
    align-items: stretch;
  }

  .footer__links {
    gap: 4.8rem;
  }

  .footer__sns-list {
    display: grid;
    gap: 3.2rem 6rem;
    margin: 0 0 4rem;
  }

  .footer__sns-link {
    gap: 2rem;
  }

  .footer__sns-link::after {
    width: 3.2rem;
    height: 3.2rem;
    margin-top: -.8rem;
    margin-left: -.8rem;
  }

  .footer__sns-icon {
    width: 6rem;
  }

  .footer__info-list {
    display: grid;
    gap: 2rem 4rem;
  }

  .footer__info-link {
    padding: 0 0 0 4rem;
  }

  .footer__copyright {
    font-size: 2.8rem;
  }

  .footer__page-top {
    align-self: center;
  }

  .footer__page-top-link {
    gap: .8rem;
  }

  .footer__page-top-icon {
    width: 8.4rem;
    height: 8.4rem;
  }

  .footer__page-top-text {
    font-size: 3.2rem;
  }
}