@import url(common.css);

/* 背景色 */
main {
  /* background-color: hsla(170, 71%, 26%, 0.3); */
  padding: 0 15px;
}

/* 大見出し「お問い合わせ」下余白 */
h1 {
  padding-bottom: 20px;
}
/* フォント 背景色 角丸 幅余白 */
.question {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #fff;
  border-radius: 10px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 5px 15px 10px 15px;
}
/* 質問ジャンル */
h2 {
  font-size: 35px;
  text-decoration: underline;
  font-weight: 500;
  color: #333;
  text-align: left;
  padding-top: 5px;
  padding-bottom: 20px;
  padding-left: 25px;
}
/* 質問リスト */
.q1 {
  font-size: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ques {
  margin-bottom: 5px;
  border-radius: 10px;
  background-color: lightgray;
  /* transition: 0.5s; */
}

.ques:hover,
.ques.click {
  background-color: rgb(166, 255, 228);
  transition: 0.5s;
}

/* 質問文 */
.q1 dt {
  cursor: pointer;
  padding: 6px 15px;
  display: flex;
  justify-content: space-between;
}

/* 回答 */
.q1 dd {
  font-size: 25px;
  text-align: right;
  padding-left: 15px;
  padding-bottom: 10px;
  display: none;
}
.ques dd a {
  color: blue;
}

/* 質問アイコン */
.q-button {
  text-align: center;
  width: 30px;
  background-image: url(../img/answer.svg);
  background-repeat: no-repeat;
  background-color: transparent;
  background-position: center;
  border: none;
  transition: transform 0.5s;
}
/* 質問アイコンを押したとき */
.q-button.open {
  transition: transform 0.5s;
  transform: rotate(180deg);
}

/* ----------
1155px以下の時
---------- */

@media (max-width: 1155px) {
  /* 大見出し「お問い合わせ」下余白 */
  h1 {
    padding-bottom: 1.7vw;
  }
  /* フォント 背景色 角丸 幅余白 */
  .question {
    padding: 0.43vw 1.32vw 0.86vw 1.32vw;
  }
  /* 質問ジャンル */
  h2 {
    font-size: 3vw;
    text-decoration: underline;
    font-weight: 500;
    color: #333;
    text-align: left;
    padding-top: 0.43vw;
    padding-bottom: 1.73vw;
    padding-left: 2.16vw;
  }
  /* 質問リスト */
  .q1 {
    font-size: 2.6vw;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .ques {
    margin-bottom: 0.43vw;
    border-radius: 10px;
    background-color: lightgray;
    transition: 0.5s;
  }

  .ques:hover,
  .ques.click {
    background-color: rgb(166, 255, 228);
    transition: 0.5s;
  }

  /* 質問文 */
  .q1 dt {
    cursor: pointer;
    padding: 0.52vw 1.3vw;
    display: flex;
    justify-content: space-between;
  }

  /* 回答 */
  .q1 dd {
    font-size: 2.16vw;
    text-align: right;
    padding-left: 1.29vw;
    padding-bottom: 0.86vw;
    display: none;
  }

  .ques dd a:hover {
    color: blue;
  }

  /* 質問アイコン */
  .q-button {
    text-align: center;
    width: 2.6vw;
    background-image: url(../img/answer.svg);
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
    border: none;
    transition: transform 0.5s;
  }
  /* 質問アイコンを押したとき */
  .q-button.open {
    transition: transform 0.5s;
    transform: rotate(180deg);
  }
}
