﻿/* --------------------------------------------------------------------
	質問モーダル
-------------------------------------------------------------------- */
:root{
  --vmin:375;
  --vchange:768;
  --vmax:1440;
}
.question-modal *{
  box-sizing: border-box;
}
.qa_btn {
  position: fixed;
  bottom: 100px;
  right: 0;
  width: 40px;
  height: 231px;
  writing-mode: vertical-rl;
  z-index: 100;
}
.qa_btn button{
  font-weight: bold;
  letter-spacing: 2px;
}
.question-modal{
  position: fixed;
  inset: 0;
  z-index:9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.question-modal.is-open{
  opacity: 1;
  visibility: visible;
}
.question-bg{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 1;
}
.question-modal__body{
  width: 90%;
  max-width: 630px;
  height: 80%;
  padding: clamp(28px,calc(28px + 2 * ((100vw - calc(var(--vmin) * 1px)) / calc(var(--vmax) - var(--vmin)))),30px) clamp(16px,calc(16px + 12 * ((100vw - calc(var(--vmin) * 1px)) / calc(var(--vmax) - var(--vmin)))),28px) 28px;
  background-color: #fff;
  border-radius: 14px;
  border: 1px solid #C8C8C8;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index:2;
}
.word-input{
  width: 100%;
  padding-left: 1.8em;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #C8C8C8;
}
.word-input::before{
  content: "";
  width: 28px;
  height: 30px;
  display: block;
  background-image: url(/cms/img/icon_mushimegane.png);
  background-size: 100% 100%;
  position: absolute;
  left: 0;
}
input[name="word-search"]{
  width: 100%;
  padding: 0.5em;
  font-size: clamp(20px,calc(20px + 4 * ((100vw - calc(var(--vmin) * 1px)) / calc(var(--vmax) - var(--vmin)))),24px);
  border: none;
}
input[name="word-search"]{
  outline: none;
}
input[name="word-search"]:focus{
  outline: none;
}
input[name="word-search"]{
  -webkit-appearance: none;
  outline: none;
}
.question-modal__wrap{
  margin-top: clamp(16px,calc(16px + 8 * ((100vw - calc(var(--vmin) * 1px)) / calc(var(--vmax) - var(--vmin)))),24px);
  padding: 32px 12px 34px;
  border: 1px solid #C8C8C8;
  border-radius: 12px;
  background-color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.question-modal__content{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.question-modal__title{
  color: #435667;
  font-size: 17px;
  font-weight: bold;
}
.question-modal__detail > p.question-modal__category-title{
  padding-left: 1.2em;
  color: #435667;
  font-size: 15px;
  font-weight: bold;
  position: relative;
}
.question-modal__detail > p.question-modal__category-title::before{
  content: "";
  width: 12px;
  height: 2px;
  display: block;
  background-color: #435667;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);

}
.question-modal__lists + .question-modal__category-title{
  margin-top: 30px;
}

.question-modal__detail{
  margin-top: 24px;
  padding-right: 5px;
  max-height: 300px;
  overflow-y: auto;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.question-modal__detail > p{
  color: #435667;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.8;
}
.question-modal__lists{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px 0;
  overflow-y: auto;
}
.question-modal__link{
  padding: 0.25em 0.25em 0.25em 32px;
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}
a.question-modal__link:link, a.question-modal__link:visited{
  color: #435667;
  text-decoration: none;
}
.question-modal__link::before{
  content: "";
  width: 25px;
  height: 23px;
  display: block;
  background-image: url(/cms/img/icon_fukidashi.png);
  background-size: 100% 100%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.question-modal__btn-wrap{
  margin-top: 20px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 16px 0;
}
.question-modal__btn{
  color: #435667;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}
a.question-modal__btn:visited,
a.question-modal__btn:link{
  color: #435667;
  text-decoration: none;
}
.question-modal__close{
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  color: transparent;
  background-color: transparent;
  cursor: pointer;
  position: absolute;
  top: 40px;
  right: 20px;
}
.question-modal__close::before,
.question-modal__close::after{
  content: "";
  width: 20px;
  height: 2px;
  display: block;
  background-color: #435667;
  position: absolute;
  top: 10px;
  z-index: 2;
}
.question-modal__close::before{
  transform: rotate(45deg);
}
.question-modal__close::after{
  transform: rotate(-45deg);
}
.question-select__head{
  display: flex;
  align-items: center;
  gap: 0 20px;
}
.modal-back__btn{
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
}
.modal-back__btn img{
  width: 100%;
}
.question-select__title{
  padding-right: 30px;
  color: #435667;
  font-size: clamp(18px,calc(18px + 2 * ((100vw - calc(var(--vmin) * 1px)) / calc(var(--vmax) - var(--vmin)))),20px);
  font-weight: 600;
}
.question-modal__content .img_ img{
  width: 100%;
}
.question-type-icon{
  padding: 0.2em 0.4em 0.1em;
  color: #435667;
  font-size: 12px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #435667;
  display: inline-block;
  margin-left: 0.2em;
}


@media screen and (min-width:768px){
  .question-modal__body{
    width: 100%;
    max-height: 450px;
  }
  .question-modal__wrap{
    padding: 32px 24px 34px;
  }
  a.question-modal__link:hover{
    text-decoration: underline;
  }
}


