/* ========================================
   FAQ page
   ======================================== */

.faq-eyebrow,
.faq-en {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.faq-eyebrow {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.faq-en {
  font-size: 0.75rem;
  font-style: italic;
  margin-left: 0.65rem;
}

.faq-aside {
  position: relative;
  padding-inline: 1rem;
  align-self: center;
  text-align: center;
}

.faq-aside::before,
.faq-aside::after {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  width: 1px;
  background: var(--accent);
}

.faq-aside::before { left: 0; }
.faq-aside::after { right: 0; }

.faq-aside p {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1.7;
}

/* Hero */
.faq-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f4f7fb;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #f4f7fb 0%,
      rgba(244, 247, 251, 0.92) 28%,
      rgba(244, 247, 251, 0.45) 48%,
      rgba(244, 247, 251, 0.08) 64%,
      transparent 78%
    ),
    url("../assets/faq-hero.jpg")
      right center / cover no-repeat;
}

.faq-hero-aside {
  padding-left: 1rem;
  padding-right: 0;
  text-align: left;
}

.faq-hero-aside::after {
  content: none;
}

.faq-hero-aside p {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem;
  align-items: center;
  padding-block: 4rem;
}

.faq-hero-text h1 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.faq-hero-text p:not(.faq-eyebrow) {
  max-width: 28rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.95;
}

.faq-hero-lead {
  margin-bottom: 0.85rem;
}

/* Breadcrumb */
.page-faq .breadcrumb {
  background: #f7f8fa;
  border-block: 1px solid #e8ecf2;
}

.page-faq .breadcrumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding-block: 0.85rem;
  font-size: 0.75rem;
  color: var(--navy-muted);
}

.page-faq .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.page-faq .breadcrumb a:hover {
  color: var(--accent);
}

/* Layout */
.faq-main {
  padding-block: 4rem;
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 2.5rem;
  align-items: start;
}

.faq-group {
  margin-bottom: 2.75rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.faq-group-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.faq-group-icon svg {
  width: 24px;
  height: 24px;
}

.faq-group-header h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* Accordion */
.faq-item {
  border: 1px solid #e7ebf2;
  background: #fff;
  margin-bottom: 0.55rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s var(--ease, ease), opacity 0.25s;
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-panel {
  padding: 0 1.25rem 1.15rem;
}

.faq-panel[hidden] {
  display: none;
}

.faq-panel p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.faq-panel a {
  color: var(--accent);
  word-break: break-all;
}

/* Sidebar */
.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}

.faq-side-card {
  padding: 1.6rem 1.4rem 1.45rem;
  background: #f7f4ef;
}

.faq-side-contact h3 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.faq-side-contact p,
.faq-side-support > p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.faq-side-card .btn {
  width: 100%;
  justify-content: center;
  border-radius: 0;
  font-family: var(--font-sans);
}

.faq-side-visual {
  position: relative;
  min-height: 220px;
  background: url("../assets/faq-side.jpg") 62% center / cover no-repeat;
}

.faq-aside-on-media {
  position: absolute;
  left: 1.15rem;
  right: auto;
  width: max-content;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  padding: 0 0 0 0.8rem;
  text-align: left;
}

.faq-aside-on-media::before {
  background: #1c2740;
}

.faq-aside-on-media::after {
  content: none;
}

.faq-aside-on-media p {
  color: #1c2740;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}

.faq-side-kicker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.75rem !important;
  line-height: 1.4 !important;
}

.faq-side-kicker span:first-child {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.faq-side-kicker span:last-child {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.faq-support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-support-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8125rem;
  color: var(--navy);
  line-height: 1.5;
}

.faq-support-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.faq-support-icon svg {
  width: 22px;
  height: 22px;
}

.faq-side-support .btn-outline {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: #fff;
}

.faq-side-support .btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* CTA */
.faq-cta {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f6f3ee;
}

.faq-cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #f6f3ee 0%,
      rgba(246, 243, 238, 0.94) 28%,
      rgba(246, 243, 238, 0.45) 48%,
      rgba(246, 243, 238, 0.08) 66%,
      transparent 80%
    ),
    url("../assets/about-mission.jpg")
      right center / cover no-repeat;
}

.faq-cta-aside {
  padding-left: 1rem;
  padding-right: 0;
  text-align: left;
}

.faq-cta-aside::after {
  content: none;
}

.faq-cta-aside p {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  line-height: 1.55;
  white-space: nowrap;
}

.faq-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem;
  align-items: center;
  padding-block: 4rem;
}

.faq-cta-text h2 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.faq-cta-text p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.9;
  margin-bottom: 1.75rem;
  max-width: 30rem;
}

.faq-cta-text .btn {
  font-family: var(--font-sans);
  border-radius: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .faq-side-visual {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .faq-hero-inner,
  .faq-cta-inner {
    grid-template-columns: 1fr;
  }

  .faq-aside {
    display: none;
  }

  .faq-aside-on-media {
    display: block;
  }
}

@media (max-width: 640px) {
  .faq-main {
    padding-block: 2.5rem;
  }

  .faq-hero,
  .faq-cta {
    display: flex;
    align-items: center;
    min-height: 380px;
  }

  .faq-hero-bg,
  .faq-cta-bg {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .faq-hero-bg {
    background:
      linear-gradient(180deg, rgba(244, 247, 251, 0.9) 0%, rgba(244, 247, 251, 0.74) 52%, rgba(244, 247, 251, 0.4) 100%),
      url("../assets/faq-hero.jpg") 72% center / cover no-repeat;
  }

  .faq-cta-bg {
    background:
      linear-gradient(180deg, rgba(246, 243, 238, 0.9) 0%, rgba(246, 243, 238, 0.72) 52%, rgba(246, 243, 238, 0.38) 100%),
      url("../assets/about-mission.jpg") 70% center / cover no-repeat;
  }

  .faq-hero-inner,
  .faq-cta-inner {
    padding-block: 2.25rem;
  }

  .page-faq .breadcrumb-inner,
  .faq-eyebrow,
  .faq-en {
    font-size: 0.6875rem;
  }

  .faq-hero-text h1,
  .faq-cta-text h2,
  .faq-group-header h2 {
    font-size: 1.2rem;
  }

  .faq-side-contact h3,
  .faq-side-kicker span:last-child {
    font-size: 1rem;
  }

  .faq-hero-text p:not(.faq-eyebrow),
  .faq-cta-text p,
  .faq-side-contact p,
  .faq-side-support > p,
  .faq-support-list li {
    font-size: 0.8125rem;
  }

  .faq-panel p {
    font-size: 0.75rem;
  }

  .faq-group {
    margin-bottom: 2rem;
  }

  .faq-group-icon {
    width: 38px;
    height: 38px;
  }

  .faq-sidebar {
    grid-template-columns: 1fr;
  }

  .faq-side-visual {
    min-height: 200px;
  }

  .faq-trigger {
    align-items: flex-start;
    padding: 0.9rem 0.95rem;
    font-size: 0.8125rem;
  }

  .faq-icon {
    margin-top: 0.35rem;
  }

  .faq-cta-text .btn {
    width: 100%;
    justify-content: center;
  }
}
