/* ============================================================
   stem-cell.css — 幹細胞治療ページ
   ============================================================ */

.stem-cell-page {
  background-color: var(--color-white);
}

.stem-cell-hero {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  background-color: var(--color-brand);
  color: var(--color-white);
}

.stem-cell-hero__inner {
  position: relative;
  padding-block: clamp(1.5rem, 3vw, 3rem);
}

.stem-cell-hero__media {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 50vw, 40rem);
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 56px rgb(0 0 0 / 0.18);
  isolation: isolate;
}

.stem-cell-hero__figure,
.stem-cell-hero__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stem-cell-hero__figure img {
  object-fit: cover;
  object-position: center 34%;
}

.stem-cell-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(var(--color-brand-rgb) / 0.42) 0%,
    rgb(var(--color-brand-rgb) / 0.22) 30%,
    rgb(var(--color-brand-rgb) / 0.08) 60%,
    rgb(var(--color-brand-rgb) / 0) 100%
  );
  pointer-events: none;
}

.stem-cell-hero__content {
  position: absolute;
  inset-block-start: auto;
  inset-block-end: clamp(1.25rem, 4vw, 4rem);
  inset-inline-start: clamp(1.25rem, 4vw, 4rem);
  z-index: 1;
  display: grid;
  gap: var(--space-4);
}

.stem-cell-hero__eyebrow {
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.16);
}

.stem-cell-hero__title {
  max-width: 20em;
  margin-block-end: 0;
  font-size: clamp(1.6rem, calc(0.8rem + 4vw), 2.8rem);
  font-weight: 900;
  line-height: 1.16;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.18);
}

.stem-cell-hero__title-line {
  display: block;
}

.stem-cell-hero__title-line:first-child {
  margin-block-end: 20px;
}

.stem-cell-hero__lead {
  padding-block-start: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.88);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.24);
}

.stem-cell-section--alt {
  background-color: var(--color-bg-band);
}

.stem-cell-section__head {
  display: grid;
  gap: 0.25rem;
}

.stem-cell-section__head .section-head__en {
  justify-content: flex-start;
}

.stem-cell-section__head .section-head__ja {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-block-end: 0.85rem;
  font-size: var(--text-3xl);
  line-height: 1.45;
}

.stem-cell-section__head .section-head__ja::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: min(6.5rem, 38%);
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-light);
}

.stem-cell-panel {
  padding: clamp(1.25rem, 1.8vw, 2rem);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.stem-cell-copy {
  display: grid;
  gap: var(--space-4);
  color: var(--color-ink);
}

.stem-cell-copy p {
  margin: 0;
  line-height: 1.95;
}

.stem-cell-copy strong {
  font-weight: 900;
}

.stem-cell-panel__title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-block: var(--space-5) 0;
  padding-inline-start: 0.9rem;
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.5;
}

.stem-cell-panel__title::before,
.stem-cell-card :is(h3, h4)::before {
  content: "";
  position: absolute;
  inset-block: 0.25em;
  inset-inline-start: 0;
  width: 4px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-mid);
}

.stem-cell-quality-grid {
  display: grid;
  gap: 1rem;
}

.stem-cell-quality-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-block-start: var(--space-4);
}

.stem-cell-quality-figure,
.stem-cell-flow-figure {
  margin: var(--space-5) 0 0;
}

.stem-cell-quality-figure,
.stem-cell-flow-figure {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border: 1px solid rgb(var(--color-brand-rgb) / 0.1);
  border-radius: var(--radius-lg);
  background-color: rgb(var(--color-brand-rgb) / 0.03);
}

.stem-cell-quality-figure figcaption,
.stem-cell-flow-figure figcaption {
  margin: 0;
  color: var(--color-brand);
  font-size: var(--text-lg);
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.stem-cell-quality-figure__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.stem-cell-quality-figure__item {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  text-align: center;
}

.stem-cell-quality-figure__item--high {
  border: 2px solid var(--color-brand-mid);
}

.stem-cell-quality-figure__item img {
  width: min(100%, 18rem);
  height: auto;
}

.stem-cell-quality-figure__item p,
.stem-cell-flow-figure__items p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  color: var(--color-brand);
  font-weight: 900;
  line-height: 1.5;
}

.stem-cell-quality-figure__item p span,
.stem-cell-quality-figure__item p small {
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 400;
}

.stem-cell-flow-figure__items {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stem-cell-flow-figure__items li {
  position: relative;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.stem-cell-flow-figure__items li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(100% - 0.125rem);
  inset-block-start: 30%;
  width: 0.75rem;
  height: 0.75rem;
  background: url("../images/icons/icon__arrow--right-line.svg") center / contain no-repeat;
}

.stem-cell-flow-figure__items img {
  width: min(100%, 5rem);
  height: auto;
}

.stem-cell-flow-figure__items p {
  font-size: var(--text-sm);
}

.stem-cell-flow-figure__items p span {
  color: var(--color-brand-mid);
}

.stem-cell-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.08);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.stem-cell-card :is(h3, h4) {
  position: relative;
  margin-block-end: var(--space-4);
  padding-inline-start: 0.9rem;
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.5;
}

.stem-cell-quality-card__title {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-inline-start: 0;
}

.stem-cell-quality-card__title::before {
  content: none;
}

.stem-cell-quality-card h4.stem-cell-quality-card__title {
  position: static;
  margin-block-end: var(--space-3);
  padding-inline-start: 0;
  font-size: var(--text-lg);
  line-height: 1.45;
}

.stem-cell-quality-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: rgb(var(--color-brand-rgb) / 0.08);
  color: var(--color-brand);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.stem-cell-quality-card__text {
  min-width: 0;
}

.stem-cell-card p {
  margin: 0;
  line-height: 1.95;
}

.stem-cell-card p + p {
  margin-block-start: var(--space-3);
}

.stem-cell-callout {
  margin-block: 0.5rem;
  padding-block: 0.5rem;
  padding-inline: 1.1rem;
  border-inline-start: 4px solid var(--color-brand-mid);
  border-radius: var(--radius-md);
  background-color: rgb(var(--color-brand-rgb) / 0.05);
}

.stem-cell-callout p {
  line-height: 1.9;
}

.stem-cell-cost__panel {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  text-align: left;
}

.stem-cell-cost__actions {
  display: flex;
  justify-content: flex-start;
}

.stem-cell-risk-panel {
  display: grid;
  gap: var(--space-4);
}

.stem-cell-risk-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stem-cell-risk-list li {
  padding: 0.95rem 1rem;
  border-inline-start: 4px solid var(--color-brand-mid);
  border-radius: var(--radius-md);
  background-color: rgb(var(--color-brand-rgb) / 0.045);
  font-weight: 700;
  line-height: 1.8;
}

.stem-cell-section .page-cta__copy {
  display: grid;
  gap: var(--space-3);
}

.stem-cell-section .page-cta__copy p {
  margin: 0;
  line-height: 1.95;
}

@media (max-width: 767px) {
  .stem-cell-hero__content {
    inset-inline-start: 1rem;
    inset-block-end: 1rem;
    max-width: calc(100% - 2rem);
  }

  .stem-cell-hero__lead {
    font-size: var(--text-base);
  }

  .stem-cell-section__head .section-head__ja {
    font-size: var(--text-2xl);
  }

  .stem-cell-panel,
  .stem-cell-card {
    padding: 1.1rem;
  }

  .stem-cell-panel__title,
  .stem-cell-card :is(h3, h4) {
    font-size: var(--text-lg);
  }

  .stem-cell-quality-figure__items {
    grid-template-columns: 1fr;
  }

  .stem-cell-flow-figure {
    width: min(100%, 22rem);
    margin-inline: auto;
    justify-items: stretch;
  }

  .stem-cell-flow-figure figcaption {
    text-align: start;
  }

  .stem-cell-flow-figure__items {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 2.75rem;
    margin: 0;
  }

  .stem-cell-flow-figure__items li {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    justify-items: start;
    text-align: start;
  }

  .stem-cell-flow-figure__items li:not(:last-child)::after {
    inset-block-start: calc(100% + 1rem);
    inset-block-end: auto;
    inset-inline-start: 2rem;
    transform: rotate(90deg);
  }

  .stem-cell-flow-figure__items p {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
}
