/* =========================================================
   Home / Intro Flow Shell
   Hero と Featured の舞台。トップページ前半の暗い工房空間
   ========================================================= */
.p-home .site-main {
  overflow-x: clip;
}

.s-home-intro-flow {
  position: relative;
  overflow: clip;
  color: var(--text-on-dark);
  background: linear-gradient(
    180deg,
    var(--surface-dark) 0%,
    var(--surface-dark-soft) 58%,
    #6b5848 100%
  );
}

.s-home-intro-flow::before,
.s-home-intro-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.s-home-intro-flow::before {
  background:
    radial-gradient(
      circle at top left,
      rgba(216, 178, 122, 0.28),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 16%,
      rgba(90, 158, 166, 0.18),
      transparent 20%
    ),
    radial-gradient(circle at 72% 82%, rgba(84, 114, 77, 0.14), transparent 18%);
}

.s-home-intro-flow::after {
  background: linear-gradient(
    180deg,
    rgba(47, 38, 31, 0.12),
    rgba(47, 38, 31, 0) 20%,
    rgba(245, 241, 232, 0.12) 100%
  );
  mix-blend-mode: screen;
  opacity: 0.7;
}

.s-home-hero,
.s-home-featured,
.s-home-section,
.s-home-contact {
  position: relative;
  z-index: 1;
  scroll-margin-top: clamp(6.5rem, 12vh, 8rem);
}

/* =========================================================
   Home / Hero
   Runtime hero scene styles
   ========================================================= */
.s-home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: hsl(25, 30%, 12%);
}

@supports (height: 100dvh) {
  .s-home-hero {
    min-height: 100dvh;
  }
}

.s-home-hero__scenes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.s-home-hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: 0;
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

/* picture 要素がシーンの場合（初期表示用） */
picture.s-home-hero__scene {
  display: block;
}

.s-home-hero__scene-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.s-home-hero__scene--active {
  opacity: 1;
}

.s-home-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      hsla(25, 28%, 6%, 0.92) 0%,
      hsla(25, 25%, 9%, 0.75) 14%,
      hsla(25, 22%, 12%, 0.42) 32%,
      hsla(25, 20%, 14%, 0.12) 48%,
      transparent 62%
    ),
    radial-gradient(
      ellipse at 50% 48%,
      transparent 35%,
      hsla(25, 25%, 8%, 0.25) 100%
    ),
    linear-gradient(180deg, hsla(25, 30%, 7%, 0.3) 0%, transparent 8%);
}

.s-home-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 22% 52%,
      hsla(38, 65%, 50%, 0.06) 0%,
      transparent 48%
    ),
    radial-gradient(
      circle at 72% 32%,
      hsla(175, 50%, 50%, 0.03) 0%,
      transparent 28%
    );
  animation: s-home-hero-atmo-breathe 9s ease-in-out infinite;
}

@keyframes s-home-hero-atmo-breathe {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.s-home-hero__content {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max-width, 72rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vw, 4rem) clamp(5rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.s-home-hero__copy {
  max-width: 44rem;
  text-align: center;
}

.s-home-hero__title {
  margin: 0;
  color: var(--text-on-dark, #f4ebdd);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow:
    0 2px 24px hsla(25, 40%, 8%, 0.6),
    0 0 80px hsla(38, 50%, 28%, 0.18);
  opacity: 0;
  transform: translateY(1.5rem);
  animation: s-home-hero-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.s-home-hero__title-verb {
  font-size: 0.78em;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

.s-home-hero__subcopy {
  max-width: 24rem;
  margin: var(--space-4, 1rem) auto 0;
  color: hsla(40, 30%, 88%, 0.88);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.75;
  text-shadow: 0 1px 10px hsla(25, 30%, 8%, 0.5);
  opacity: 0;
  transform: translateY(1.2rem);
  animation: s-home-hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.s-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 0.75rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
  justify-content: center;
  opacity: 0;
  transform: translateY(0.8rem);
  animation: s-home-hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s
    forwards;
}

@keyframes s-home-hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s-home-hero__cta {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.s-home-hero__cta--primary {
  padding: 0.9em 1.8em;
  color: hsl(42, 30%, 96%);
  background: hsl(38, 50%, 36%);
  border: 1px solid hsl(30, 42%, 43%);
  box-shadow:
    0 1px 0 hsl(38, 55%, 54%) inset,
    0 -1px 0 hsl(30, 40%, 32%) inset,
    0 4px 18px hsla(25, 40%, 12%, 0.35);
  animation:
    s-home-hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards,
    s-home-hero-cta-idle 5s ease-in-out 2.5s infinite;
}

@keyframes s-home-hero-cta-idle {
  0%,
  100% {
    box-shadow:
      0 1px 0 hsl(38, 55%, 54%) inset,
      0 -1px 0 hsl(30, 40%, 32%) inset,
      0 4px 18px hsla(25, 40%, 12%, 0.35),
      0 0 0 hsla(38, 60%, 48%, 0);
  }
  50% {
    box-shadow:
      0 1px 0 hsl(38, 55%, 54%) inset,
      0 -1px 0 hsl(30, 40%, 32%) inset,
      0 4px 18px hsla(25, 40%, 12%, 0.35),
      0 0 22px hsla(38, 60%, 48%, 0.14);
  }
}

.s-home-hero__cta--primary:hover {
  background: hsl(38, 55%, 34%);
  box-shadow:
    0 1px 0 hsl(38, 60%, 58%) inset,
    0 -1px 0 hsl(30, 45%, 33%) inset,
    0 6px 24px hsla(25, 40%, 12%, 0.4),
    0 0 36px hsla(38, 60%, 48%, 0.2);
  transform: translateY(-1px);
  animation: none;
}

.s-home-hero__cta--primary:active {
  transform: translateY(0.5px);
  animation: none;
}

.s-home-hero__cta--secondary {
  padding: 0.78em 1.45em;
  color: var(--text-on-dark, #f4ebdd);
  background: hsla(30, 20%, 28%, 0.35);
  border: 1px solid hsla(40, 30%, 68%, 0.16);
  backdrop-filter: blur(6px);
}

.s-home-hero__cta--secondary:hover {
  background: hsla(30, 25%, 33%, 0.5);
  border-color: hsla(40, 35%, 72%, 0.28);
  box-shadow: 0 0 24px hsla(38, 50%, 42%, 0.1);
}

.s-home-button {
  min-height: 3.2rem;
  padding-inline: 1.35rem;
  border-radius: var(--radius-pill);
  box-shadow: none;
}

.s-home-button--primary {
  color: var(--surface);
  background: var(--accent);
  border-color: rgba(255, 253, 250, 0.12);
}

.s-home-button--primary:hover {
  background: #b1752f;
}

.s-home-button--secondary {
  color: var(--text-on-dark);
  border-color: rgba(244, 235, 221, 0.18);
  background: rgba(255, 253, 250, 0.06);
}

.s-home-button--secondary:hover {
  background: rgba(255, 253, 250, 0.12);
}

.s-home-hero__paw-trail {
  position: absolute;
  bottom: clamp(1.2rem, 2.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: s-home-hero-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

.s-home-hero__paw-step {
  display: block;
  color: hsla(38, 48%, 58%, 0.18);
  animation: s-home-hero-paw-pulse 4s ease-in-out infinite;
  animation-delay: calc(var(--step) * 0.7s);
}

.s-home-hero__paw-step svg {
  display: block;
  fill: currentColor;
  transform: scaleY(-1);
}

.s-home-hero__paw-step--left {
  transform: translateX(-14px);
}

.s-home-hero__paw-step--right {
  transform: translateX(14px);
}

.s-home-hero__paw-step--left svg {
  transform: scaleY(-1) rotate(-12deg);
}

.s-home-hero__paw-step--right svg {
  transform: scaleY(-1) rotate(12deg);
}

.s-home-hero__paw-step:last-child {
  opacity: 0.7;
}

@keyframes s-home-hero-paw-pulse {
  0%,
  100% {
    color: hsla(38, 48%, 58%, 0.12);
  }
  20%,
  35% {
    color: hsla(38, 55%, 60%, 0.5);
  }
}

.s-home-hero__scene-nav {
  position: absolute;
  bottom: clamp(1.5rem, 3.5vh, 2.8rem);
  right: clamp(1.5rem, 3vw, 3rem);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  animation: s-home-hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

.s-home-hero__scene-label {
  color: hsla(40, 28%, 84%, 0.65);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: opacity 0.5s ease;
}

.s-home-hero__scene-paws {
  display: flex;
  gap: 5px;
  align-items: center;
}

.s-home-hero__scene-paw {
  appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: 7px;
  cursor: pointer;
  color: hsla(40, 25%, 72%, 0.3);
  transition: all 0.4s ease;
  border-radius: 6px;
}

.s-home-hero__scene-paw svg {
  display: block;
  fill: currentColor;
}

.s-home-hero__scene-paw:hover {
  color: hsla(38, 45%, 62%, 0.65);
  background: hsla(30, 20%, 50%, 0.08);
}

.s-home-hero__scene-paw--active {
  color: hsla(38, 58%, 58%, 0.9);
  filter: drop-shadow(0 0 6px hsla(38, 55%, 48%, 0.45));
}

.s-home-hero__scene-paw--active:hover {
  color: hsla(38, 58%, 58%, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .s-home-hero__title,
  .s-home-hero__subcopy,
  .s-home-hero__actions,
  .s-home-hero__paw-trail,
  .s-home-hero__scene-nav {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .s-home-hero__scene {
    transition: none !important;
  }

  .s-home-hero__atmosphere {
    animation: none !important;
    opacity: 0.8 !important;
  }

  .s-home-hero__cta--primary {
    animation: none !important;
  }

  .s-home-hero__paw-step {
    animation: none !important;
    color: hsla(38, 48%, 58%, 0.25) !important;
  }
}

@media (max-width: 1023px) {
  .s-home-hero__scene {
    object-position: 58% center;
  }

  .s-home-hero__copy {
    max-width: 36rem;
  }
}

@media (max-width: 767px) {
  .s-home-hero__scene {
    object-position: 55% 40%;
  }

  .s-home-hero__scene-img {
    object-position: center 30%;
  }

  /* モバイルでは自動切替のみ。手動ナビは出さない */
  .s-home-hero__scene-nav {
    display: none;
  }

  .s-home-hero__vignette {
    background:
      linear-gradient(
        0deg,
        hsla(25, 28%, 6%, 0.94) 0%,
        hsla(25, 25%, 9%, 0.78) 16%,
        hsla(25, 22%, 12%, 0.4) 40%,
        hsla(25, 20%, 14%, 0.15) 56%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 50% 40%,
        transparent 20%,
        hsla(25, 22%, 8%, 0.3) 80%
      );
  }

  .s-home-hero__content {
    padding: max(env(safe-area-inset-top, 0px) + 2rem, 3rem)
      var(--space-4, 1rem) clamp(4rem, 8vh, 5.5rem);
  }

  .s-home-hero__copy {
    max-width: none;
  }

  .s-home-hero__title {
    white-space: normal;
    font-size: clamp(1.9rem, 9.5vw, 3rem);
  }

  .s-home-hero__subcopy {
    padding-left: 0.5rem;
  }

  .s-home-hero__actions {
    flex-direction: column;
    padding-left: 0.5rem;
  }

  .s-home-hero__cta {
    justify-content: center;
  }

  .s-home-hero__cta--primary,
  .s-home-hero__cta--secondary {
    padding: 0.85em 1.5em;
  }

  .s-home-hero__paw-trail {
    bottom: clamp(0.8rem, 2vh, 1.5rem);
  }

  .s-home-hero__scene-nav {
    right: var(--space-3, 0.75rem);
    bottom: clamp(1rem, 2.5vh, 2rem);
  }

  .s-home-hero__scene-paw {
    padding: 8px;
  }

}

@media (max-width: 767px) and (max-height: 820px) {
  .s-home-hero__scene,
  .s-home-hero__scene-img {
    object-position: center 42%;
  }

  .s-home-hero__content {
    padding-bottom: max(env(safe-area-inset-bottom, 0px) + 3rem, 3.8rem);
  }

  .s-home-hero__title {
    font-size: clamp(1.65rem, 8.2vw, 2.35rem);
  }

  .s-home-hero__actions {
    margin-top: .85rem;
  }
}

/* =========================================================
   Home / Featured
   Hero 直下の軽い信頼。猫の手マシンを含む舞台
   ========================================================= */
.s-home-featured {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem)
    clamp(4rem, 8vw, 6rem);
}

.s-home-featured__header {
  max-width: var(--max-width, 72rem);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.s-home-featured__eyebrow {
  margin: 0 0 var(--space-3, 0.75rem);
  color: var(--accent-soft, #d8b27a);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-home-featured__title {
  margin: 0;
  color: var(--text-on-dark, #f4ebdd);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.s-home-featured__lead {
  max-width: 32rem;
  margin: var(--space-4, 1rem) auto 0;
  color: var(--muted-on-dark, rgba(244, 235, 221, 0.65));
  font-size: 1.02rem;
}

.s-home-featured__showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  max-width: var(--max-width, 72rem);
  margin: 0 auto;
}

.s-home-featured-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.s-home-featured-machine__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 26rem;
}

.s-home-featured-machine__glow {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 80%;
  background: radial-gradient(
    ellipse at 50% 75%,
    hsla(175, 45%, 42%, 0.14) 0%,
    hsla(38, 50%, 42%, 0.07) 35%,
    transparent 68%
  );
  pointer-events: none;
  animation: s-home-featured-glow-breathe 6s ease-in-out infinite;
}

@keyframes s-home-featured-glow-breathe {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.s-home-featured-machine__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px hsla(25, 30%, 6%, 0.55));
  will-change: transform, filter;
  animation: s-home-featured-idle-float 5s ease-in-out infinite;
}

.s-home-featured-machine__shadow {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 0;
  padding-bottom: 8%;
  background: radial-gradient(
    ellipse,
    hsla(25, 30%, 6%, 0.45) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.s-home-featured-machine__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3, 0.75rem);
}

.s-home-featured-machine__lights {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
}

.s-home-featured-machine__light {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(244, 235, 221, 0.2);
  box-shadow: 0 0 0 1px rgba(244, 235, 221, 0.08);
  transition: all 0.4s ease;
}

.s-home-featured-machine__light--warm {
  background: hsla(38, 55%, 55%, 0.45);
}

.s-home-featured-machine__light--teal {
  background: hsla(175, 45%, 52%, 0.3);
}

.s-home-featured-machine__light--forest {
  background: hsla(120, 25%, 42%, 0.3);
}

.s-home-featured-machine__status {
  margin-left: var(--space-2, 0.5rem);
  color: var(--muted-on-dark, rgba(244, 235, 221, 0.5));
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: color 0.4s ease;
}

.s-home-featured-machine__hint {
  max-width: 22rem;
  margin: 0;
  color: var(--muted-on-dark, rgba(244, 235, 221, 0.4));
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.6;
}

.s-home-featured-machine__trigger {
  min-height: 3rem;
  padding: 0.85rem 2rem;
  color: hsl(42, 30%, 96%);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: linear-gradient(
    180deg,
    hsla(38, 55%, 52%, 0.95),
    hsla(30, 50%, 38%, 0.98)
  );
  border: 1px solid hsla(40, 40%, 56%, 0.2);
  border-radius: 999px;
  box-shadow:
    0 1px 0 hsla(40, 60%, 60%, 0.2) inset,
    0 -1px 0 hsla(30, 40%, 28%, 0.3) inset,
    0 12px 28px hsla(25, 30%, 10%, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s-home-featured-machine__trigger:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 hsla(40, 60%, 60%, 0.2) inset,
    0 -1px 0 hsla(30, 40%, 28%, 0.3) inset,
    0 16px 34px hsla(25, 30%, 10%, 0.3);
  filter: brightness(1.05);
}

.s-home-featured-machine__trigger:active {
  transform: translateY(1px);
}

.s-home-feature-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text, #2f261f);
  background: linear-gradient(
    180deg,
    hsla(40, 40%, 97%, 0.95),
    hsla(35, 30%, 92%, 0.98)
  );
  border: 1px solid var(--line, rgba(196, 183, 162, 0.35));
  border-radius: calc(var(--radius-lg) + var(--space-1));
  box-shadow:
    0 8px 32px hsla(25, 30%, 10%, 0.2),
    0 2px 8px hsla(25, 20%, 15%, 0.1);
  will-change: transform, opacity;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.s-home-feature-card--output {
  will-change: transform, opacity;
}

.s-home-feature-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px hsla(25, 30%, 10%, 0.25),
    0 4px 12px hsla(25, 20%, 15%, 0.12);
}

.s-home-feature-card__output-label {
  margin: 0;
  color: var(--muted, #8a7e72);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.s-home-feature-card__category {
  margin: var(--space-2, 0.5rem) 0 0;
  color: var(--accent, #9f6a2e);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s-home-feature-card__title {
  margin: var(--space-3, 0.75rem) 0 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.s-home-feature-card__summary {
  margin: var(--space-4, 1rem) 0 0;
  color: var(--muted, #8a7e72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.s-home-feature-card__details {
  display: grid;
  gap: var(--space-3, 0.75rem);
  margin: var(--space-5, 1.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.s-home-feature-card__details li {
  position: relative;
  padding-left: calc(var(--space-5, 1.5rem) + 2px);
  color: var(--muted, #8a7e72);
  font-size: 0.92rem;
  line-height: 1.65;
}

.s-home-feature-card__details li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: var(--space-3, 0.75rem);
  height: 1px;
  background: var(--accent-teal, #5a9ea6);
}

.s-home-feature-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-5, 1.5rem);
  padding: 0.7em 1.3em;
  color: var(--text, #2f261f);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: hsla(40, 30%, 95%, 0.6);
  border: 1px solid var(--line-strong, rgba(196, 183, 162, 0.5));
  border-radius: 999px;
  transition: all 0.3s ease;
}

.s-home-feature-card__cta:hover {
  background: hsla(40, 30%, 92%, 0.9);
  border-color: var(--accent, #9f6a2e);
}

.s-home-featured-machine[data-state="active"]
  .s-home-featured-machine__light--warm {
  background: hsla(38, 65%, 58%, 0.85);
  box-shadow: 0 0 14px hsla(38, 60%, 50%, 0.45);
}

.s-home-featured-machine[data-state="active"]
  .s-home-featured-machine__light--teal {
  background: hsla(175, 50%, 55%, 0.8);
  box-shadow: 0 0 12px hsla(175, 50%, 48%, 0.4);
}

.s-home-featured-machine[data-state="active"]
  .s-home-featured-machine__light--forest {
  background: hsla(120, 30%, 48%, 0.7);
  box-shadow: 0 0 10px hsla(120, 30%, 42%, 0.35);
}

.s-home-featured-machine[data-state="active"] .s-home-featured-machine__status {
  color: hsla(175, 40%, 65%, 0.9);
}

.s-home-featured-machine.is-bursting .s-home-featured-machine__image {
  animation: s-home-featured-machine-thump 0.72s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes s-home-featured-idle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.4rem);
  }
}

@keyframes s-home-featured-machine-thump {
  0% {
    transform: translateY(0) scale(1);
  }
  20% {
    transform: translateY(0.8rem) scale(0.98);
  }
  48% {
    transform: translateY(-0.35rem) scale(1.02);
  }
  72% {
    transform: translateY(0.12rem) scale(0.995);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   Home / Section Shell
   中盤以降の明るい静的セクション共通
   ========================================================= */
.s-home-section {
  position: relative;
  padding: clamp(3.75rem, 8vw, 6.75rem) var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.76), rgba(255, 253, 250, 0)),
    var(--bg);
}

.s-home-section--muted {
  background: linear-gradient(
    180deg,
    var(--surface-muted),
    var(--surface-strong)
  );
}

.s-home-section--works {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.92),
    rgba(245, 241, 232, 0.9)
  );
}

.s-home-section--services {
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(216, 178, 122, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, var(--surface-muted), var(--surface-strong));
}

.s-home-section--team {
  background:
    radial-gradient(circle at 82% 16%, rgba(84, 114, 77, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.9), rgba(247, 241, 231, 0.92));
}

.s-home-section--consult {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.96),
    rgba(245, 241, 232, 0.94)
  );
}

.s-home-section__inner,
.s-home-contact__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.s-home-section__header {
  max-width: 48rem;
  margin-bottom: clamp(var(--space-5), 4vw, var(--space-7));
}

.s-home-section__eyebrow,
.s-home-contact__eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-home-section__title,
.s-home-contact__title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.16;
  text-wrap: balance;
}

.s-home-section__lead {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.s-home-section__note {
  margin: var(--space-5) 0 0;
  color: var(--muted);
}

.s-home-prose {
  display: grid;
  gap: var(--space-4);
  max-width: 46rem;
}

.s-home-prose--wide {
  max-width: 52rem;
}

.s-home-prose__paragraph {
  margin: 0;
}

/* =========================================================
   Home / Works
   実績フル版
   ========================================================= */
.s-home-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-4), 3vw, var(--space-6));
}

.s-home-work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.96),
    rgba(247, 241, 231, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + var(--space-1));
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.s-home-work-card:hover,
.s-home-service-card:hover,
.s-home-team-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--shadow);
}

.s-home-work-card__media {
  min-height: 13rem;
  padding: var(--space-4);
  background:
    linear-gradient(180deg, rgba(67, 52, 42, 0.1), rgba(67, 52, 42, 0.02)),
    rgba(255, 253, 250, 0.58);
  border-bottom: 1px solid var(--line);
}

.s-home-work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - var(--space-1));
}

.s-home-work-card__placeholder {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  height: 100%;
  min-height: calc(13rem - (var(--space-4) * 2));
  padding: var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius-md) - var(--space-1));
  background: linear-gradient(
    180deg,
    rgba(90, 158, 166, 0.08),
    rgba(255, 253, 250, 0.56)
  );
}

.s-home-work-card__placeholder-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.s-home-work-card__placeholder-label {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.s-home-work-card__body {
  display: grid;
  gap: var(--space-3);
  padding: clamp(var(--space-5), 4vw, var(--space-6));
}

.s-home-work-card__category {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s-home-work-card__title,
.s-home-service-card__title,
.s-home-team-card__title,
.s-home-step-list__title {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.35;
}

.s-home-work-card__text,
.s-home-service-card__text,
.s-home-team-card__text {
  margin: 0;
  color: var(--muted);
}

.s-home-work-card__points {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-home-work-card__points li {
  position: relative;
  padding-left: calc(var(--space-5) + var(--space-1));
  color: var(--muted);
}

.s-home-work-card__points li::before,
.s-home-consult-panel__list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: var(--space-3);
  height: 1px;
  background: var(--accent-teal);
}

.s-home-work-card__spotlight {
  margin: 0;
  padding-top: var(--space-3);
  color: var(--text);
  font-size: 0.95rem;
  border-top: 1px solid var(--line-soft);
}

/* =========================================================
   Home / Services
   相談領域の整理板
   ========================================================= */
.s-home-service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(var(--space-4), 3vw, var(--space-5));
}

.s-home-service-card {
  grid-column: span 3;
  display: grid;
  gap: var(--space-3);
  min-height: 100%;
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.94),
    rgba(239, 230, 214, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + var(--space-1));
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.s-home-service-card:first-child {
  grid-column: span 6;
}

.s-home-service-card__motif {
  margin: 0;
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.s-home-services__footer {
  max-width: 42rem;
}

/* =========================================================
   Home / Consult
   無料相談の流れ
   ========================================================= */
.s-home-step-list {
  counter-reset: consult-step;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-home-step-list__item {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5)
    calc(var(--space-8) + var(--space-2));
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.94),
    rgba(247, 241, 231, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + var(--space-1));
  box-shadow: var(--shadow-soft);
}

.s-home-step-list__item::before {
  counter-increment: consult-step;
  content: counter(consult-step, decimal-leading-zero);
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.s-home-consult-panel {
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.96),
    rgba(239, 230, 214, 0.98)
  );
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-md) + var(--space-1));
  box-shadow: var(--shadow-soft);
}

.s-home-consult-panel__list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.s-home-consult-panel__list li {
  position: relative;
  padding-left: calc(var(--space-5) + var(--space-1));
  color: var(--muted);
}

.s-home-step-list__title {
  margin-bottom: var(--space-3);
}

.s-home-step-list__text {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   Home / Responsive
   ページ全体のタブレット・モバイル調整
   ========================================================= */
@media (max-width: 1023px) {
  .s-home-consult {
    grid-template-columns: 1fr;
  }

  .s-home-featured__header {
    max-width: none;
  }

  .s-home-featured__showcase {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .s-home-featured-machine__stage {
    max-width: 22rem;
  }

  .s-home-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s-home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s-home-service-card,
  .s-home-service-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .s-home-featured,
  .s-home-section {
    padding-inline: var(--space-4);
  }

  .s-home-works-grid,
  .s-home-service-grid {
    grid-template-columns: 1fr;
  }

  .s-home-featured-machine {
    gap: var(--space-4);
  }

  .s-home-featured__header {
    text-align: left;
  }

  .s-home-featured__lead {
    margin-left: 0;
    margin-right: 0;
  }

  .s-home-featured-machine__stage {
    max-width: 18rem;
  }

  .s-home-featured-machine__trigger {
    width: 100%;
    max-width: 18rem;
  }

  .s-home-step-list__item {
    padding-left: var(--space-5);
    padding-top: calc(var(--space-6) + var(--space-2));
  }

  .s-home-step-list__item::before {
    top: var(--space-4);
    left: var(--space-5);
  }

  .s-home-work-card__media {
    min-height: 12rem;
  }
}

/* =========================================================
   Home / Reduced Motion
   ページ全体で動きを抑える設定
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .s-home-featured-machine .s-home-featured-machine__image,
  .s-home-featured-machine .s-home-featured-machine__glow,
  .s-home-featured-machine.is-bursting .s-home-featured-machine__image {
    animation: none !important;
    transition: none !important;
  }

  .s-home-work-card,
  .s-home-service-card {
    transition: none !important;
  }

  .s-home-work-card:hover,
  .s-home-service-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
    filter: none;
  }
}
