/* ========================================
  Section 6: Routine (L6-B)
  - Vertical stack
  - PC: two columns, Night reversed
  - BG same tone as section5
  - No accent / thin divider only
======================================== */
/* ========================================
  Section: Routine (HOW TO USE / 3 steps)
  - uses existing JS: .section-routine -> .is-inview, .routine-item stagger
======================================== */

.section-routine{
  position: relative;
  padding-block: clamp(72px, 10vw, 120px);
  background: var(--bg, #FAF2F4);
  overflow: hidden;

  /* fade-in initial */
  opacity: 0;
  transform: translateY(14px);
}

.section-routine.is-inview{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

/* うっすら表情 */
.section-routine::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: .06;
  background:
    radial-gradient(70% 60% at 50% 10%, rgba(180,90,115,.14), transparent 70%),
    radial-gradient(80% 70% at 50% 105%, rgba(180,90,115,.10), transparent 75%);
}

.section-routine__container{
  width: min(var(--maxw, 1120px), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section-routine__head{
  text-align: center;
  margin-bottom: clamp(26px, 4vw, 42px);

  opacity: 0;
  transform: translateY(10px);
}

.section-routine.is-inview .section-routine__head{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .75s ease, transform .75s ease;
  transition-delay: .15s;
}

/* kicker pill */
.section-routine__kicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .10em;
  font-size: .72rem;
  color: #c75b7a;
  background: rgba(255, 210, 224, 0.65);
  border: 1px solid rgba(199, 91, 122, 0.18);
  margin: 0 0 14px;
}

.section-routine__title{
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw + .9rem, 2.55rem);
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--text, #3A2B2A);
  font-weight: 600;
}

.section-routine__titleEm{
  color: #ff2f6d;
  font-weight: 700;
}

.section-routine__lead{
  margin: 14px auto 0;
  max-width: 64ch;
  font-size: clamp(.95rem, .55vw + .85rem, 1.05rem);
  line-height: 2;
  letter-spacing: .03em;
  color: #c75b7a;
}

/* ========================================
  Steps
======================================== */

.routine-steps{
  position: relative;
  display: grid;
  gap: clamp(16px, 2.6vw, 22px);
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: clamp(18px, 3vw, 30px);
}

/* PC/Tablet: 3 columns */
@media (min-width: 760px){
  .routine-steps{
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.8vw, 26px);
  }

}

/* card */
.routine-step{
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(58, 43, 42, 0.10);
  border-radius: 18px;
  padding: clamp(18px, 2.3vw, 26px);
  text-align: center;
  box-shadow: 0 18px 36px rgba(58, 43, 42, 0.06);
  backdrop-filter: blur(4px);

  /* fade-in initial (JS stagger uses --d) */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 680ms ease, transform 680ms ease;
  will-change: opacity, transform;
}

.section-routine.is-inview .routine-step{
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(.35s + var(--d, 0ms));
}

/* icon */
.routine-step__icon{
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.routine-step__iconCircle{
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ff2f6d;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(58, 43, 42, 0.08);
  box-shadow: 0 14px 28px rgba(58, 43, 42, 0.06);
}

.routine-step__badge{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  color: #fff;
  background: #ff2f6d;
  box-shadow: 0 10px 22px rgba(255, 47, 109, 0.22);
}

.routine-step__title{
  margin: 0;
  font-size: clamp(1.05rem, .6vw + 1rem, 1.18rem);
  letter-spacing: .02em;
  line-height: 1.5;
  color: var(--text, #3A2B2A);
  font-weight: 650;
}

.routine-step__text{
  margin: 12px auto 0;
  max-width: 34ch;
  font-size: .95rem;
  line-height: 2;
  letter-spacing: .03em;
  color: #b05674;
}

/* reduce motion */
/* @media (prefers-reduced-motion: reduce){
  .section-routine,
  .routine-step,
  .section-routine__head{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
} */
