@charset "UTF-8";
.qa-visual.small>figure img{
  min-height: 250px;
}

.qa-visual>figure img{
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.main-content2{
  position: absolute;
  padding: 0px 20px;
  left: 0px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content2 h2{
  width: 450px;
  height: 100px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.1em;
  font-family: "Noto Serif JP", serif;
  font-size: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position:absolute;
  bottom: 75px;
}

@media screen and (max-width: 768px) {
  .qa-visual>figure img{
    object-position: -80rem;
  }
  .main-content2 h2{
    height: 80px;
    bottom: 85px;
  }
}

@media screen and (max-width: 500px) {
  .qa-visual>figure img{
    object-position: -90rem;
  }

  .main-content2 h2{
    width: 350px;
  }
}

.qa-nav {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 5px;
  grid-gap: clamp(5px, 2vw, 20px);
}
.qa-nav > a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ede9e4;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  height: 45px;
  font-size: clamp(1.2rem, 3.8vw, 1.8rem);
}
.qa-content {
  margin-top: 30px;
  padding-bottom: 60px;
}
.qa-content > h3 {
  padding-top: 50px;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  position: relative;
  margin-bottom: 10px;
}
.qa-content > h3::after {
  content: "";
  bottom: -8px;
  height: 2px;
  position: absolute;
  width: 100%;
  left: 0px;
  background-color: #f8da0f;
}
.qa-according {
  padding: 30px 0px 20px;
  border-bottom: 1px solid #d9d2ca;
}
.qa-according > dt {
  position: relative;
  padding-right: 35px;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.qa-according > dt:hover {
  opacity: 0.8;
}
.qa-according > dd {
  height: 0px;
  overflow: hidden;
}

.qa-according > dt p,
.qa-answer p {
  font-size: 1.6rem;
  color: #3b4043;
}
.qa-according > dt p {
  font-weight: bold;
  padding-top: 2px;
}
.qa-answer p {
  line-height: 1.66667;
}
.qa-according > dt,
.qa-answer {
  display: grid;
  grid-template-columns: 35px calc(100% - 50px);
  grid-gap: 15px;
}
.qa-according a {
  color: #06c;
  text-decoration: underline;
}
.qa-according > dt::before,
.qa-answer::before {
  content: "";
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 13px 18px;
}
.qa-according > dt::before {
  background-image: url("../images/faq/icon_q.svg");
  background-color: #f8da0f;
}
.qa-answer::before {
  background-image: url("../images/faq/icon_a.svg");

  border: 3px solid #f8da0f;
}
.qa-answer {
  padding: 20px 0px 0px;
}
.qa-open {
  position: absolute;
  height: 20px;
  width: 20px;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.qa-according > dt.active .qa-open::after {
  transform: rotate(90deg);
}
.qa-open::after,
.qa-open::before {
  position: absolute;
  background-color: #707070;
  content: "";
}
.qa-open::after {
  height: 100%;
  width: 3px;
  transition: transform 0.3s ease;
}
.qa-open::before {
  height: 3px;
  width: 100%;
}
.qa-table1 {
  color: #3b4043;
  font-size: 1.6rem;
  width: 100%;
  border-collapse: collapse;
  max-width: 895px;
  margin-top: 5px;
  min-width: 700px;
}
.qa-table1 thead {
  background-color: #d9d2ca;
  font-weight: 500;
}
.qa-table1 tbody {
  background-color: #ede9e4;
}
.qa-table1 tr,
td,
th {
  border: 2px solid white;
}
.qa-table1 td,
.qa-table1 th {
  padding: 2px 10px;
  line-height: 1.3;
}
.qa-table1 tr > *:first-child {
  width: 23.6%;
  text-align: center;
}
.qa-table1 tr > *:last-child {
  width: 32.5%;
}
.qa-table1 tr td:not(:first-child) {
  padding-left: 10px;
}
.qa-over {
  overflow-x: auto;
}
@media screen and (min-width: 768px) {
  .qa-visual>figure img {
    min-height: 625px;
  }
  .qa-nav {
    --w: 1020px;
    --n: 4;
    --m: 2;
    margin-top: 66px;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-columns: repeat(
      auto-fit,
      minmax(
        clamp(
          100%/ (var(--n) + 1) + 0.1%,
          (var(--w) - 100vw) * 1000,
          100%/ (var(--m) + 1) + 0.1%
        ),
        1fr
      )
    );
  }
  .qa-nav > a {
    font-size: 2rem;
    height: 64px;
  }
  .qa-content {
    margin-top: 70px;
    padding-bottom: 100px;
  }
  .qa-content > h3 {
    padding-top: 78px;
    font-size: 3rem;
    margin-bottom: 12px;
  }
  .qa-content > h3::after {
    bottom: -13px;
    height: 5px;
  }
  .qa-according {
    padding: 33px 0px 20px;
  }
  .qa-answer {
    padding: 31px 0px 10px;
    max-width: 980px;
  }
  .qa-according > dt p,
  .qa-answer p {
    font-size: 1.8rem;
  }
  .qa-according > dt p {
    padding-top: 6px;
  }
  .qa-according > dt {
    padding-right: 75px;
  }
  .qa-open {
    height: 28px;
    width: 28px;
    right: 28px;
    top: 60%;
  }
  .qa-according > dt::before,
  .qa-answer::before {
    height: 45px;
    width: 45px;
  }
  .qa-according > dt::before {
    background-size: 15.113px 17.306px;
  }
  .qa-answer::before {
    background-size: 15.046px 15.887px;
  }
  .qa-according > dt,
  .qa-answer {
    grid-template-columns: 45px 1fr;
    grid-template-columns: 45px calc(100% - 78px);
    grid-gap: 33px;
  }
  .qa-table1 {
    font-size: 1.8rem;
    min-width: 770px;
  }
  .qa-table1 tr td:not(:first-child) {
    padding-left: 41px;
    padding-left: clamp(10px, 50vw - 460px, 41px);
  }
}
