/* Hair Quality page — warm beige tone, shine-focused */

.hq-page {
  --hq-warm: #f7f2ea;
  --hq-beige: #efe6d8;
  --hq-accent: #9a7b5e;
}

/* ----- Hero ----- */
.hq-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem var(--space-inner) clamp(2.5rem, 8vh, 4rem);
  overflow: hidden;
  background: var(--hq-warm);
}

.hq-hero__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hq-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: brightness(1.08) saturate(1.03) contrast(1.01);
}

.hq-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(247, 242, 234, 0.9) 0%,
      rgba(247, 242, 234, 0.65) 24%,
      rgba(239, 230, 216, 0.22) 42%,
      transparent 60%
    ),
    linear-gradient(to bottom, transparent 0%, rgba(90, 78, 62, 0.05) 100%);
}

.hq-hero__content {
  position: relative;
  z-index: 2;
  width: min(19rem, 88vw);
  max-width: 22rem;
}

.hq-hero__panel {
  padding: clamp(1.35rem, 4vw, 1.7rem);
  background: linear-gradient(165deg, rgba(251, 250, 248, 0.97) 0%, rgba(247, 242, 234, 0.94) 100%);
  border: 1px solid rgba(232, 220, 200, 0.55);
  border-left: 2px solid rgba(180, 147, 107, 0.42);
  box-shadow: 0 8px 40px rgba(90, 78, 62, 0.06);
}

.hq-hero__label {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hq-accent);
}

.hq-hero__title {
  margin: 0.85rem 0 0;
  font-size: clamp(1.02rem, 4.3vw, 1.4rem);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: 0.1em;
  color: #5a5248;
}

.hq-hero__text {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  line-height: var(--leading);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hq-hero__sub {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  line-height: var(--leading-tight);
  letter-spacing: 0.06em;
  color: var(--hq-accent);
}

/* ----- Concerns ----- */
.hq-concerns {
  background: var(--white);
}

.hq-concerns__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 26rem;
  margin-inline: auto;
}

.hq-concerns__list li {
  padding: 1.1rem 1.15rem;
  background: var(--hq-warm);
  border: 1px solid rgba(180, 147, 107, 0.18);
  border-radius: var(--radius-soft);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.hq-concerns__list li::before {
  content: "—";
  margin-right: 0.55rem;
  color: var(--wood);
}

.hq-note-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.1rem;
  background: rgba(239, 230, 216, 0.45);
  border: 1px solid rgba(180, 147, 107, 0.22);
  border-radius: var(--radius-soft);
  font-size: 0.78rem;
  line-height: var(--leading-tight);
  letter-spacing: 0.05em;
  color: #6a5f52;
  text-align: center;
}

/* ----- Before / After ----- */
.hq-cases {
  background: var(--hq-warm);
}

.hq-cases__intro {
  margin: -1.5rem auto 2.25rem;
  max-width: 26rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: var(--leading-tight);
  letter-spacing: 0.06em;
}

.hq-ba {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 18rem;
  margin-inline: auto;
}

.hq-ba__photo {
  margin: 0;
}

.hq-ba__frame {
  overflow: hidden;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(180, 147, 107, 0.2);
  aspect-ratio: 1086 / 1448;
  width: 100%;
  background: var(--hq-beige);
}

.hq-ba__photo--before .hq-ba__frame {
  border-color: rgba(122, 116, 108, 0.22);
}

.hq-ba__photo--after .hq-ba__frame {
  border-color: rgba(154, 123, 94, 0.28);
  box-shadow: 0 10px 28px rgba(154, 123, 94, 0.1);
}

.hq-ba__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hq-ba__photo--before img {
  filter: brightness(0.9) saturate(0.9) contrast(0.97);
}

.hq-ba__photo--after img {
  filter: brightness(1.07) saturate(1.05) contrast(1.02);
}

.hq-ba__tag {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.hq-ba__photo--after .hq-ba__tag {
  color: var(--hq-accent);
}

.hq-ba__arrow {
  margin: 0.85rem 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0;
  line-height: 1;
  color: var(--wood);
}

.hq-ba__arrow::after {
  content: "↓";
  font-size: 1.1rem;
}

.hq-ba__note {
  margin: 1.15rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  line-height: var(--leading-tight);
  color: var(--muted);
  text-align: center;
}

/* ----- Difference accent ----- */
.hq-diff__card--quality {
  background: linear-gradient(180deg, rgba(239, 230, 216, 0.55) 0%, var(--hq-warm) 100%);
  border-color: rgba(180, 147, 107, 0.28);
}

/* ----- Voices ----- */
.hq-voices__grid {
  display: grid;
  gap: 1.15rem;
  max-width: 26rem;
  margin-inline: auto;
}

.hq-voice {
  margin: 0;
  padding: 1.35rem 1.2rem;
  background: var(--white);
  border: 1px solid rgba(180, 147, 107, 0.18);
  border-radius: var(--radius-soft);
}

.hq-voice__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: var(--leading);
  letter-spacing: 0.05em;
  color: var(--muted);
}

.hq-voice__author {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
}

/* ----- Mobile Hero ----- */
@media (max-width: 767px) {
  .hq-hero {
    padding-top: 5.75rem;
    padding-bottom: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .hq-hero__figure {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    aspect-ratio: 1009 / 1559;
    max-height: min(78svh, 40rem);
    border-radius: var(--radius-soft);
    overflow: hidden;
    border: 1px solid rgba(180, 147, 107, 0.16);
  }

  .hq-hero__overlay {
    display: none;
  }

  .hq-hero__img {
    object-fit: contain;
    object-position: center center;
    background: var(--hq-warm);
    filter: brightness(1.09) saturate(1.04) contrast(1.02);
  }

  .hq-hero__content {
    width: 100%;
    max-width: none;
  }

  .hq-hero__panel {
    box-shadow: none;
    border: 1px solid rgba(180, 147, 107, 0.16);
  }
}

/* ----- Desktop ----- */
@media (min-width: 768px) {
  .hq-hero {
    min-height: 88svh;
    padding-inline: 2rem;
  }

  .hq-hero__content {
    width: min(22rem, 36vw);
    margin-left: clamp(1rem, 3vw, 2rem);
  }

  .hq-hero__img {
    object-position: center 28%;
  }

  .hq-concerns__list {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .hq-ba {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: center;
    max-width: 36rem;
  }

  .hq-ba__arrow {
    margin: 1.5rem 0 0;
  }

  .hq-ba__arrow::after {
    content: "→";
    font-size: 1.35rem;
  }

  .hq-voices__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}
