/* ============================================================
   walking-recovery.css — 歩行回復・機能改善プログラム
   ============================================================ */

.walking-recovery-page {
  background-color: var(--color-white);
}

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

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

.walking-recovery-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);
}

.walking-recovery-hero__title {
  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);
}

.walking-recovery-hero__title-line {
  display: block;
}

.walking-recovery-hero__title-line:first-child {
  margin-block-end: 20px;
}

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

.walking-recovery-hero__figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.walking-recovery-hero__figure img {
  object-fit: cover;
  object-position: center center;
}

.walking-recovery-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;
}

.walking-recovery-hero__content {
  position: absolute;
  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);
}

.walking-recovery-section--alt {
  background-color: var(--color-bg-band);
}

.walking-recovery-section__head {
  display: grid;
  gap: 0.25rem;
}

.walking-recovery-section__head .section-head__en {
  justify-content: flex-start;
}

.walking-recovery-section__head.section-head--center .section-head__en {
  justify-content: center;
}

.walking-recovery-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;
}

.walking-recovery-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);
}

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

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

.walking-recovery-copy p {
  margin: 0;
  line-height: 1.95;
}

.walking-recovery-copy strong {
  font-weight: 900;
}

.walking-recovery-card-list {
  display: grid;
  gap: 1rem;
}

.walking-recovery-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 1.5rem;
  border: 1px solid rgb(var(--color-brand-rgb) / 0.1);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.walking-recovery-card-list > .walking-recovery-card:nth-child(odd) {
  background-color: rgb(var(--color-brand-rgb) / 0.05);
}

.walking-recovery-card h3 {
  position: relative;
  margin-block-end: 0;
  padding-inline-start: 0.9rem;
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.5;
}

.walking-recovery-card h3::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);
}

.walking-recovery-card p {
  margin: 0;
  line-height: 1.95;
}

.walking-recovery-panel__note {
  margin: 0;
  padding: .7rem 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);
  color: var(--color-brand);
  font-weight: 900;
  line-height: 1.9;
}

.walking-recovery-program-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin: 0;
  padding: clamp(1rem, 2vw, 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);
}

.walking-recovery-program-figure > img {
  width: 100%;
  height: auto;
}

.walking-recovery-program-figure__steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.walking-recovery-program-figure__steps li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-brand);
  font-size: var(--text-lg);
  font-weight: 900;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgb(var(--color-brand-rgb) / 0.08);
}

.walking-recovery-program-figure__steps li::before {
  content: counter(list-item);
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 1rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background-color: var(--color-brand);
  color: var(--color-white);
  font-size: var(--text-sm);
  transform: translateY(-50%);
}

.walking-recovery-program-figure__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-end: -0.6rem;
  inset-inline-start: 1.65rem;
  width: 0.75rem;
  height: 0.75rem;
  background: url("../images/icons/icon__arrow--right-line.svg") center / contain no-repeat;
  transform: rotate(-90deg);
}

@media (max-width: 767px) {
  .walking-recovery-hero__media {
    min-height: 24rem;
  }

  .walking-recovery-hero__title {
    max-width: 100%;
    font-size: 1.6rem;
  }

  .walking-recovery-hero__content {
    gap: 0.75rem;
  }

  .walking-recovery-hero__eyebrow {
    padding-inline: 0.75rem;
  }

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

  .walking-recovery-panel,
  .walking-recovery-card {
    padding: 1.1rem;
  }

  .walking-recovery-program-figure {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
