@charset "utf-8";


/*faq*/
.faq{
	width: 90%;
	margin: 50px auto 100px;
}
@media (min-width: 1200px){
	.faq{
		max-width: 1200px;
		margin: 100px auto 100px;
	}
}


.faq__item + .faq__item {
  margin-top: 30px;
}

.faq__details {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.10);
  background: #fff;
}

.faq__summary::-webkit-details-marker {
  display: none;
}
.faq__summary::marker {
  content: "";
}

.faq__summary {
	-webkit-tap-highlight-color: transparent;
  list-style: none;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 18px 18px;
  color: #fff;
  background: #1a6ec8;
  font-weight: 700;
  line-height: 1.5;
}

.faq__q {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0; 
  line-height: 1.8;
}

.faq__qmark {
  flex: 0 0 auto;
  font-weight: 800;
}

/*矢印*/
.faq__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq__icon::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, 0) rotate(45deg); /* 閉じてるとき：下向き∨ */
  transition: 
  	max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
	opacity 0.4s ease;
}
/* 開いているとき：上向き∧ */
.faq__details[open] .faq__icon::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

/*アコーディオン*/
.faq__content{
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height .45s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  will-change: height;
  background: #fff; /* 白をここに持たせると余白も白になる */
}

.faq__details.is-open .faq__content{
  opacity: 1;
}

/* 開いた時に欲しい上下余白は“内側”に */
.faq__contentInner{
  padding: 22px 22px 24px;
}

.faq__contentInner p{
	margin: 0;
	line-height: 1.8;
}


/* Focus (keyboard) */
.faq__summary:focus-visible {
  outline: 3px solid rgba(31, 134, 183, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (min-width: 1200px){
	.faq__summary{
		padding: 18px 50px;
	}
	.faq__contentInner {
		padding: 40px 70px;
	}
}
