/* FAQ page (Views/Home/Faq.cshtml): six topics wired to the DESOL hub in the banner, then a topic rail and the questions.
   Behaviour (picked topic, accordions) in wwwroot/js/faq.js. */
body {
  background-image: none;
  background-color: #ffffff;
}

/* ---------- Banner: topics around the hub ---------- */
.faq-hero {
  background-image: radial-gradient(ellipse 40% 60% at 75% 50%, rgba(0, 194, 203, 0.13), transparent 70%), radial-gradient(ellipse 30% 30% at 92% 8%, rgba(47, 127, 224, 0.12), transparent 70%), linear-gradient(180deg, #f3fbfc 0%, #ffffff 100%);
}
/* Faint blueprint grid instead of the shared photo overlay */
.faq-hero:before {
  background: linear-gradient(rgba(0, 194, 203, 0.07) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, rgba(0, 194, 203, 0.07) 1px, transparent 1px) 0 0/44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 75% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 70% at 75% 50%, #000 20%, transparent 75%);
}
.top-banner.faq-hero .container .content-banner {
  padding-right: 0;
}
.faq-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4.8rem;
  align-items: center;
}
.faq-map {
  position: relative;
  height: 38rem;
  margin-top: 9.7rem;
}
.faq-map__wire,
.faq-map__live {
  position: absolute;
  top: calc(var(--y) - 1px);
  width: 16%;
  height: 2px;
}
.faq-map__wire {
  color: #9fe3e7;
}
.faq-map__wire--left {
  left: 34%;
}
.faq-map__wire--right {
  left: 50%;
}
.faq-map__spine {
  position: absolute;
  top: 16.667%;
  left: calc(50% - 1px);
  height: 66.666%;
  border-left: 2px solid #d4eff1;
}
/* The picked topic's wire, placed by faq.js */
.faq-map__live {
  top: calc(var(--y) - 1.5px);
  left: 34%;
  height: 3px;
  transition: top 0.3s ease, left 0.3s ease;
}
.faq-map__live.is-right {
  left: 50%;
  animation-direction: reverse;
}
.faq-map__hub {
  --hub: 11.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-map__tiles {
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-tile {
  position: absolute;
  top: var(--y);
  width: 34%;
  transform: translateY(-50%);
}
.faq-tile--left {
  left: 0;
}
.faq-tile--right {
  right: 0;
}
.faq-tile__link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 6.4rem;
  padding: 1rem 1.4rem;
  border: 1px solid #d4eff1;
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1.2rem 2.4rem -2rem rgba(14, 42, 56, 0.45);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0e2a38;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.faq-tile__link:hover {
  border-color: #00c2cb;
  color: #0e2a38;
}
.faq-tile__link.is-active {
  border-color: #00c2cb;
  background: #f0fbfc;
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.12), 0 1.4rem 2.8rem -1.6rem rgba(0, 194, 203, 0.6);
}
.faq-tile__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 1.2rem;
  background: #eef6f7;
  color: #4a6370;
  transition: background 0.25s, color 0.25s;
}
.faq-tile__link.is-active .faq-tile__icon {
  background: linear-gradient(135deg, #00c2cb, #00838c);
  color: #ffffff;
}

/* ---------- Topic rail and questions ---------- */
.faq-body {
  padding: 8rem 0 9.6rem;
  border-top: 1px solid #e3eef0;
  background: #ffffff;
}
.faq-body__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4.8rem;
}
/* Sticky on desktop, below the header logo: a line through the topics, the picked one marked by a cyan dot */
.faq-rail {
  position: sticky;
  top: 21rem;
  flex: 1 1 24rem;
  max-width: 28rem;
}
.faq-rail__label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a7380;
}
.faq-rail ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0 0 0 1.8rem;
  list-style: none;
  background: linear-gradient(#d4eff1, #d4eff1) 0.6rem 2.2rem/2px calc(100% - 4.4rem) no-repeat;
}
.faq-rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 4.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3e5662;
  transition: background-color 0.2s, color 0.2s;
}
.faq-rail__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.7rem;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -0.6rem;
  border: 2px solid #b9e6e9;
  border-radius: 50%;
  background: #ffffff;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.faq-rail__link:hover {
  color: #00737a;
}
.faq-rail__link.is-active {
  background: #f0fbfc;
  color: #00737a;
}
.faq-rail__link.is-active::before {
  border-color: #00c2cb;
  background: #00c2cb;
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.2);
}
.faq-rail__count {
  margin-left: auto;
  font-size: 1.2rem;
  color: #5a7380;
}
.faq-topics {
  display: flex;
  flex: 999 1 56rem;
  flex-direction: column;
  gap: 4.4rem;
  min-width: 0;
}
.faq-topic {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  scroll-margin-top: 9.6rem;
}
.faq-topic__title {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0 0 0.4rem;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0e2a38;
}
.faq-topic__title::before {
  content: "";
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, #00c2cb, #2f7fe0);
}
.faq-item {
  border: 1px solid #e3eef0;
  border-radius: 1.8rem;
  background: #ffffff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.is-open {
  border-color: #00c2cb;
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.08), 0 1.8rem 3.6rem -2.6rem rgba(0, 194, 203, 0.55);
}
.faq-item__q {
  margin: 0;
}
.faq-item__q button {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  min-height: 6.4rem;
  padding: 1.6rem 2rem;
  border: 0;
  border-radius: 1.8rem;
  background: transparent;
  font-family: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: #0e2a38;
  cursor: pointer;
}
.faq-item__q button > span:first-child {
  flex: 1;
}
.faq-item__q button:focus-visible {
  outline: 2px solid #00c2cb;
  outline-offset: 2px;
}
.faq-item__chevron {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #eef6f7;
  color: #4a6370;
  transition: transform 0.25s, background-color 0.25s, color 0.25s;
}
.faq-item.is-open .faq-item__chevron {
  background: #00c2cb;
  color: #ffffff;
  transform: rotate(180deg);
}
.faq-item__a {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 0 2rem 2rem;
  animation: faq-in 0.3s ease;
}
.faq-item__a[hidden] {
  display: none;
}
.faq-item__a p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.7;
}
.faq-item__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-item__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid #b9e6e9;
  border-radius: 999px;
  background: #f0fbfc;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00737a;
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
html[lang=ja] .faq-item__q button,
html[lang=ja] .faq-tile__link {
  word-break: auto-phrase;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .faq-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.2rem;
  }
  /* The topics become a grid; the hub and wires only fit beside the text */
  .faq-map {
    height: auto;
    margin-top: 0;
  }
  .faq-map__wires,
  .faq-map__hub {
    display: none;
  }
  .faq-map__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
  .faq-tile {
    position: static;
    width: auto;
    transform: none;
  }
  .faq-rail {
    position: static;
    max-width: none;
  }
  .faq-rail ul {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    background: none;
  }
  .faq-rail__link {
    border: 1px solid #d4eff1;
  }
  .faq-rail__link::before {
    display: none;
  }
}
@media (max-width: 767px) {
  .faq-body {
    padding: 4.8rem 0 6.4rem;
  }
  .faq-body__grid {
    gap: 3.2rem;
  }
  .faq-tile__link {
    min-height: 5.6rem;
    font-size: 1.4rem;
  }
  .faq-item__q button {
    padding: 1.4rem 1.6rem;
    font-size: 1.6rem;
  }
  .faq-item__a {
    padding: 0 1.6rem 1.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item__a {
    animation: none;
  }
  .faq-map__live {
    transition: none;
  }
}
