/*
 * Shared subpage layout bridge.
 * Concept Technology remains the canonical source of these values.
 * Quality Care consumes the same hero / wrap tokens without changing CT rules.
 */

.quality-page {
  --ct-ink: #1a1a1a;
  --ct-body: #2b2b2b;
  --ct-muted: #6b6560;
  --ct-line: rgba(26, 26, 26, 0.12);
  --ct-beige: #f4f1ed;
  --ct-beige-deep: #efe9e0;
  --ct-ivory: #faf8f5;
  --ct-panel: #1a1a1a;
  --ct-metal: #9a8d78;
  --ct-max: 1240px;
  --ct-gutter: clamp(24px, 5vw, 80px);
  --ct-section: clamp(100px, 12vw, 160px);
  --ct-inner: clamp(80px, 8vw, 120px);
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ct-footer-bg: rgb(199, 187, 173);
}

.quality-page .ct-wrap {
  width: min(var(--ct-max), calc(100% - (var(--ct-gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.quality-page .ct-figure {
  position: relative;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.04);
}

.quality-page .ct-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-page .ct-figure-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(20, 18, 16, 0.35);
  pointer-events: none;
}

/* ===== HERO (identical to Concept Technology) ===== */
.quality-page .concept-hero.scrollfixcontents.white.luxury {
  background: linear-gradient(
    110deg,
    rgba(190, 176, 160, 0.96) 0%,
    rgba(211, 199, 185, 0.94) 42%,
    rgba(232, 222, 210, 0.88) 100%
  );
  min-height: max(600px, 100svh);
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--ct-section) + clamp(36px, 3.5vw, 50px));
  padding-bottom: clamp(48px, 6vh, 72px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  scroll-margin-top: 0;
}

.quality-page .concept-hero .concept-breadcrumb {
  color: rgba(26, 26, 26, 0.62);
}

.quality-page .concept-hero .ct-page-name,
.quality-page .concept-hero .ct-hero-main {
  color: #1a1a1a;
}

.quality-page .concept-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.quality-page .concept-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-muted);
}

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

.quality-page .concept-breadcrumb a:hover {
  color: var(--ct-ink);
}

.quality-page .concept-breadcrumb__sep {
  opacity: 0.4;
}

.quality-page .concept-hero .ct-page-name {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: 400;
}

.quality-page .concept-hero .ct-hero-main {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--ct-body);
}

.quality-page .concept-hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 558px;
  margin-left: auto;
  overflow: hidden;
}

.quality-page .concept-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

@media (max-width: 900px) {
  .quality-page .concept-hero__grid {
    grid-template-columns: 1fr;
  }

  .quality-page .concept-hero__media {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .quality-page {
    --ct-section: clamp(80px, 14vw, 120px);
    --ct-inner: clamp(56px, 10vw, 88px);
  }

  .quality-page .concept-hero.scrollfixcontents.white.luxury {
    min-height: max(600px, 100svh);
    align-items: flex-start;
    padding-top: calc(var(--ct-section) + 36px);
    padding-bottom: clamp(40px, 8vw, 56px);
    background: linear-gradient(
      110deg,
      rgba(186, 172, 156, 0.96) 0%,
      rgba(208, 196, 182, 0.94) 48%,
      rgba(228, 218, 206, 0.9) 100%
    );
  }

  .quality-page .concept-hero__media {
    max-width: 360px;
  }
}

/* ===== Shared subpage Final CTA (CT + QC) ===== */
.subpage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 52px;
  padding: 14px 36px;
  box-sizing: border-box;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, 0.32);
  border-radius: 3px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.subpage-cta:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.subpage-cta--static {
  cursor: default;
  pointer-events: none;
}

.subpage-cta--static:hover {
  background: #ffffff;
  color: #1a1a1a;
  border-color: rgba(26, 26, 26, 0.32);
}
