@charset "UTF-8";

.faq-page {
  background: #f6f9fc;
  color: #173550;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

.faq-container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.faq-header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(18, 55, 88, 0.08);
}

.faq-header__inner,
.faq-footer .faq-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.faq-header__inner {
  min-height: 78px;
}

.faq-header__brand img {
  display: block;
  width: 150px;
  height: auto;
}

.faq-header__home,
.faq-footer a {
  color: #0068b7;
  font-size: 1.4rem;
  font-weight: 700;
}

.faq-header__home span {
  margin-left: 5px;
}

.faq-hero {
  padding: 68px 0 72px;
  background: linear-gradient(115deg, #07588f 0%, #087ba9 60%, #08a9b6 100%);
  color: #fff;
}

.faq-hero__eyebrow {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.faq-hero h1 {
  margin-top: 8px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.3;
}

.faq-hero p:last-child {
  margin-top: 14px;
  font-size: 1.6rem;
}

.faq-content {
  padding-top: 34px;
  padding-bottom: 88px;
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 58px;
}

.faq-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #cbdde9;
  border-radius: 999px;
  background: #fff;
  color: #07588f;
  font-size: 1.35rem;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.faq-nav a:hover {
  border-color: #00aebb;
  background: #eaf8fb;
}

.faq-section {
  margin-top: 54px;
  scroll-margin-top: 28px;
}

.faq-section:first-of-type {
  margin-top: 0;
}

.faq-section h2 {
  padding-left: 15px;
  border-left: 5px solid #00aebb;
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.45;
}

.faq-section__list {
  margin-top: 22px;
  border-top: 1px solid #cbdde9;
}

.faq-item {
  border-bottom: 1px solid #cbdde9;
  background: #fff;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.65;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #eaf8fb;
  color: #0068b7;
  content: "+";
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 58px 24px 22px;
  color: #405a6e;
  font-size: 1.48rem;
}

.faq-item__answer p + p,
.faq-item__answer p + ul {
  margin-top: 12px;
}

.faq-item__answer ul {
  padding-left: 1.3em;
}

.faq-item__answer li {
  list-style: disc;
}

.faq-item__answer a {
  color: #0068b7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-contact {
  margin-top: 72px;
  padding: 38px 42px;
  border-radius: 18px;
  background: #e7f4fa;
}

.faq-contact h2 {
  font-size: 2.3rem;
  font-weight: 900;
}

.faq-contact p {
  margin-top: 8px;
  font-size: 1.5rem;
}

.faq-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 21px;
  border-radius: 999px;
  background: #0068b7;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
}

.faq-footer {
  padding: 30px 0;
  border-top: 1px solid #d7e5ed;
  background: #fff;
  color: #617588;
  font-size: 1.3rem;
}

.faq-nav a:focus-visible,
.faq-item summary:focus-visible,
.faq-header a:focus-visible,
.faq-contact a:focus-visible,
.faq-footer a:focus-visible,
.faq-item__answer a:focus-visible {
  outline: 3px solid #00aebb;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .faq-header__inner {
    min-height: 66px;
  }

  .faq-header__brand img {
    width: 126px;
  }

  .faq-header__home {
    font-size: 1.25rem;
  }

  .faq-hero {
    padding: 48px 0 52px;
  }

  .faq-hero p:last-child {
    font-size: 1.45rem;
  }

  .faq-content {
    padding-bottom: 64px;
  }

  .faq-nav {
    gap: 8px;
    margin-bottom: 46px;
  }

  .faq-nav a {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 1.25rem;
  }

  .faq-section {
    margin-top: 44px;
  }

  .faq-item summary {
    padding: 18px 48px 18px 15px;
    font-size: 1.48rem;
  }

  .faq-item summary::after {
    right: 14px;
  }

  .faq-item__answer {
    padding: 0 18px 20px 15px;
    font-size: 1.4rem;
  }

  .faq-contact {
    margin-top: 58px;
    padding: 29px 24px;
  }

  .faq-contact h2 {
    font-size: 2.05rem;
  }

  .faq-footer .faq-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
