.p-faq {
  margin: 0 auto;
}

.p-faq a:hover, .p-faq a:focus, .p-faq a:active {
  color: var(--black);
}

/* ========== ヒーロー ========== */
.p-faq__hero {
  width: 100%;
}

.p-faq__hero__inner {
  margin: 0 auto;
  padding: 0 20px;
}

.p-faq__hero__inner .p-guide__divider {
  max-width: 900px;
  margin: 0 auto;
}

.p-faq__hero__title {
  font-size: 32px;
  font-weight: 700;
  color: #3a3a4a;
  text-align: center;
  margin: 50px 0 20px;
}

@media screen and (max-width: 767px) {
  .p-faq__hero__title {
    font-size: 22px;
    margin: 12px 0 24px;
  }
}

/* ========== 検索・カテゴリーから探す ========== */
.p-faq__filter {
  background-color: var(--yellow);
  width: 100%;
}

.p-faq__filter__inner {
  margin: 0 auto;
  padding: 60px 20px;
}

@media screen and (max-width: 767px) {
  .p-faq__filter__inner {
    padding: 40px 20px;
  }
}

/* ========== 検索窓 ========== */
.p-faq__search {
  margin: 0 auto;
  max-width: 940px;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.p-faq__search__input {
  flex: 1;
  padding: 22px 15px !important;
  font-size: 16px;
  border: none !important;
  outline: none;
  background: transparent;
  font-family: inherit;
}

.p-faq__search__input::placeholder {
  color: #aaa;
}

.p-faq__search .p-faq__search__icon {
  flex-shrink: 0;
  padding: 0 14px 0 18px;
  color: #aaa;
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
}
.p-faq__search .p-faq__search__icon:hover,
.p-faq__search .p-faq__search__icon:focus {
  background: transparent;
  color: #888;
}

.p-faq__cloud {
  margin: 30px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.p-faq__cloud__head {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--black);
  font-size: 12px;
  font-weight: bold;
  position: relative;
  border-radius: 4px;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .p-faq__cloud__head {
    margin: 0 auto;
  }
}

.p-faq__cloud__head::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--black);
}

.p-faq__cloud__head::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--yellow);
  z-index: 1;
}

.p-faq__cloud__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-faq__cloud__item {
  list-style-type: none;
}

.p-faq__cloud__link {
  display: block;
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #333 !important;
  background-color: #FBDE97;
  white-space: nowrap;
  text-decoration: none;
}

.p-faq__cloud__link:hover {
  border: 1px solid #333;
  background-color: #c29500;
}

@media screen and (max-width: 767px) {
  .p-faq__cloud {
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .p-faq__cloud__head::after {
    right: 50%;
    top: auto;
    bottom: -10px;
    transform: translateX(50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #333;
    border-bottom: none;
  }

  .p-faq__cloud__head::before {
    right: 50%;
    top: auto;
    bottom: -8px;
    transform: translateX(50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--yellow);
    border-bottom: none;
  }
}

/* ========== リード文 ========== */
.p-faq__lead__inner {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.p-faq__lead__text {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 1em;
}

@media screen and (max-width: 767px) {
  .p-faq__lead__text {
    font-size: 14px;
  }
}

.p-faq__lead__text:last-child {
  margin-bottom: 0;
}

.p-faq__lead__notice {
  margin-top: 16px;
}

.p-faq__lead__notice__text {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 8px;
}

.p-faq__lead__notice__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-faq__lead__notice__item {
  margin: 0 0 8px;
}

.p-faq__lead__notice__item::before {
  content: "■";
  margin-right: 5px;
  color: var(--yellow);
}

.p-faq__lead__notice__link {
  color: var(--black);
  text-decoration: underline;
}

.p-faq__lead__notice__link:hover {
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .p-faq__lead__notice__text,
  .p-faq__lead__notice__link {
    font-size: 14px;
  }
}

/* ========== コンテンツエリア ========== */
.p-faq__container {
  padding: 80px 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media screen and (max-width: 900px) {
  .p-faq__container {
    padding: 10px 10px 60px;
  }
}

@media screen and (max-width: 767px) {
  .p-faq__container {
    padding: 50px 20px;
  }
}

/* ========== 検索結果なし ========== */
.p-faq__no-results {
  display: none;
  text-align: center;
  padding: 48px 0;
  color: #6b7280;
  font-size: 15px;
}

/* ========== カテゴリ ========== */
.p-faq__category {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.p-faq__category--search-hidden {
  display: none;
}

.p-faq__category__header {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  padding: 18px 20px !important;
  background: #fff !important;
  background-color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background 0.15s;
  font-family: inherit;
  color: inherit !important;
}

.p-faq__category__header:hover {
  background: #fffdf0 !important;
  background-color: #fffdf0 !important;
}

.p-faq__category__title {
  flex: 1;
  font-size: 15px;
  font-weight: bold;
  color: #181818;
}

.p-faq__category__count {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.p-faq__category__toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.p-faq__category--open .p-faq__category__toggle {
  transform: rotate(45deg);
}

.p-faq__category__body {
  display: grid;
  grid-template-rows: 0fr;
  background: #fff;
  transition: grid-template-rows 0.35s ease, border-top-width 0.35s ease;
  border-top: 0 solid #f0f0f0;
}

.p-faq__category--open .p-faq__category__body {
  grid-template-rows: 1fr;
  border-top-width: 1px;
}

.p-faq__category__body__inner {
  min-height: 0;
  overflow: hidden;
}

/* ========== Q&Aアイテム ========== */
.p-faq__item {
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
}

.p-faq__item:last-child {
  border-bottom: none;
}

.p-faq__item--search-hidden {
  display: none;
}

.p-faq__item__header {
  display: flex !important;
  align-items: flex-start;
  width: 100% !important;
  padding: 14px 20px 14px 24px !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  text-align: left;
  gap: 10px;
  transition: background 0.15s;
  font-family: inherit;
  color: inherit !important;
}

.p-faq__item__header:hover {
  background: #fafafa !important;
  background-color: #fafafa !important;
}

/* ちびさんかく */
.p-faq__item__triangle {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--yellow);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.p-faq__item--open .p-faq__item__triangle {
  transform: rotate(90deg);
}

.p-faq__item__question {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: normal
}

.p-faq__item__answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
}

.p-faq__item--open .p-faq__item__answer {
  grid-template-rows: 1fr;
}

.p-faq__item__answer__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px 0 44px;
}

@media (max-width: 768px) {
  .p-faq__item__answer__inner {
      padding-left: 34px;
  }
}

.p-faq__item__answer__content {
  font-size: 14px;
  line-height: 1.9;
  margin: 10px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--yellow);
}

.p-faq__item__answer__content p:last-child {
  margin: 0;
}

.p-faq__item__answer__content a {
  color: var(--black);
}

.p-faq__item__answer__content a:hover, .p-faq__item__answer__content a:focus, .p-faq__item__answer__content a:active {
  text-decoration: none;
}

.p-faq__item__answer__content ul {
  padding-left: 14px;
}

/* ========== 検索しても解決しない時 ========== */
.p-faq__support__inner {
  max-width: 900px;
  margin: 80px auto 0;
  padding: 40px 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--white);
}

@media screen and (max-width: 767px) {
  .p-faq__support__inner {
    flex-direction: column;
    gap: 32px;
    margin: 0 20px;
    padding: 30px 20px;
  }
}

.p-faq__support__content {
  flex: 1;
  min-width: 0;
}

.p-faq__support__title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 16px;
}

@media screen and (max-width: 767px) {
  .p-faq__support__title {
    font-size: 18px;
  }
}

.p-faq__support__text {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .p-faq__support__text {
    font-size: 14px;
  }
}

.p-faq__support__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.p-faq__support__note {
  max-width: 260px;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .p-faq__support__note {
    font-size: 14px;
  }
}

.p-faq__support__note a {
  color: inherit;
  text-decoration: underline;
}

.p-faq__support__link {
  color: var(--black);
  text-decoration: underline;
}

.p-faq__support__link:hover {
  text-decoration: none;
}

.p-faq__support__annotation {
  color: #4b5563;
}

.p-faq__support__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 90px;
  background-color: var(--yellow, var(--yellow));
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  color: var(--black) !important;
}

.p-faq__support__btn:hover, .p-faq__support__btn:focus, .p-faq__support__btn:active {
  background-color: #C29500;
}
