* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

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

.faq {
  background-size: cover;
  width: 100%;
  background-color: #f4ede6;
  position: relative;
  overflow: hidden;
}

.faq-box {
  padding: 0 7.5% 14vw;
  position: relative;
  z-index: 2;
}

.accordion {
  overflow: hidden;
}

.tab {
  position: relative;
}

.tab:last-of-type {
  border-bottom: none;
}

.tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.tab__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4.5vw 7vw 1.8vw 0;
  font-weight: 700;
  line-height: 1.22;
  position: relative;
  color: #201f1f;
  font-size: 3.4vw;
  border-bottom: 2px solid #000;
}

.tab__label::after {
  content: "\276F";
  position: absolute;
  right: 2vw;
  top: 0;
  bottom: 0;
  font-weight: 300;
  margin: auto;
  width: 1.6vw;
  height: 1.5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}

.tab__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.5vw);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
  color: #201f1f;
  line-height: 1.315;
}

.tab__content-wrapper {
  padding: 3.5vw 0 0;
}

.tab input:checked ~ .tab__content {
  max-height: 200vh;
  opacity: 1;
  transform: translateY(0);
}

.tab__content p {
  margin: 0;
  padding: 0 0 1rem;
  font-size: 3.4vw;
  color: #363636;
  transition: padding 0.3s ease;
}

@media screen and (min-width: 1024px) {

  .faq {
    background: #fffbf5;
    margin-top: -1vw;
  }

  .faq-box {
    padding-bottom: 4.3vw;
  }

  .tab__label {
    font-size: 1.1vw;
    padding: 1.9vw 10vw .6vw 0;
  }

  .tab__content p {
    font-size: 1.1vw;
  }

  .accordion {
    width: 57.77vw;
    margin: 0 auto;
  }

  .tab__content-wrapper {
    padding: 1.1vw 0.25vw 0 0;
  }
}
