/* Machinery-related FAQ
   Scope: /hp/ja/contact/faq/ only
   Keep all selectors under .p-contact-faq to avoid affecting other pages. */


/* =========================================================
   Background-image-free Hero
   ClassNK common c-hero / c-hero__title are retained.
   Only the height and background required when no hero image is used
   are supplemented here, following the PrimeShip implementation.
========================================================= */

.p-contact-faq .p-contact-faq__hero {
  min-height: 180px;
  display: flex;
  align-items: center;
  background: #eef3f7;
}

@media screen and (max-width: 767px) {
  .p-contact-faq .p-contact-faq__hero {
    min-height: 120px;
  }
}

.p-contact-faq .p-contact-faq__note {
  color: #c00;
}

.p-contact-faq .p-contact-faq__nav {
  padding: 0 0 48px;
}

.p-contact-faq .p-contact-faq__nav-title {
  margin: 0 0 16px;
  font-weight: 700;
}

.p-contact-faq .p-contact-faq__nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-contact-faq .p-contact-faq__nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #d7dce3;
  background: #fff;
  text-decoration: none;
}

.p-contact-faq .p-contact-faq__nav-list a::after {
  content: "↓";
  flex: 0 0 auto;
}

.p-contact-faq .p-contact-faq__nav-list small {
  margin-left: auto;
  color: #666;
  white-space: nowrap;
}

.p-contact-faq .p-contact-faq__category {
  scroll-margin-top: 24px;
}

.p-contact-faq .p-contact-faq__list {
  display: grid;
  gap: 14px;
}

.p-contact-faq .p-contact-faq__item {
  border: 1px solid #d7dce3;
  background: #fff;
}

.p-contact-faq .p-contact-faq__question {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 54px 20px 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.7;
  position: relative;
}

.p-contact-faq .p-contact-faq__question::-webkit-details-marker {
  display: none;
}

.p-contact-faq .p-contact-faq__question::after {
  content: "＋";
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.p-contact-faq .p-contact-faq__item[open] > .p-contact-faq__question::after {
  content: "−";
}

.p-contact-faq .p-contact-faq__qno,
.p-contact-faq .p-contact-faq__answer-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  padding: 4px 8px;
  background: #005bac;
  color: #fff;
  font-weight: 700;
}

.p-contact-faq .p-contact-faq__qtext p {
  margin: 0;
}

.p-contact-faq .p-contact-faq__answer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-top: 1px solid #d7dce3;
  background: #f7f9fb;
}

.p-contact-faq .p-contact-faq__answer-label {
  align-self: start;
  background: #333;
}

.p-contact-faq .p-contact-faq__answer-body > :first-child {
  margin-top: 0;
}

.p-contact-faq .p-contact-faq__answer-body > :last-child {
  margin-bottom: 0;
}

.p-contact-faq .p-contact-faq__answer-body ul,
.p-contact-faq .p-contact-faq__answer-body ol {
  padding-left: 1.5em;
}

.p-contact-faq .p-contact-faq__answer-body a {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .p-contact-faq .p-contact-faq__nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .p-contact-faq .p-contact-faq__nav {
    padding-bottom: 32px;
  }

  .p-contact-faq .p-contact-faq__nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .p-contact-faq .p-contact-faq__nav-list a {
    gap: 6px;
    min-height: 64px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .p-contact-faq .p-contact-faq__nav-list small {
    font-size: 12px;
  }

  .p-contact-faq .p-contact-faq__question,
  .p-contact-faq .p-contact-faq__answer {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .p-contact-faq .p-contact-faq__question {
    padding: 16px 44px 16px 14px;
  }

  .p-contact-faq .p-contact-faq__question::after {
    top: 16px;
    right: 14px;
  }

  .p-contact-faq .p-contact-faq__answer {
    padding: 16px 14px;
  }

  .p-contact-faq .p-contact-faq__qno,
  .p-contact-faq .p-contact-faq__answer-label {
    min-width: 42px;
    font-size: 14px;
  }
}
