/* ===================================
   Hero Section（Top View Stage）
   =================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: clip;
  padding: calc(var(--header-clear) + var(--space-md)) 0 var(--space-lg);
  background-color: var(--color-bg-hero);
  --hero-parallax-offset: 0px;
  --hero-text-shadow-rgb: 24, 31, 42;
  --hero-parallax-scale: 1;
  --hero-parallax-inset: 0px;
  --hero-image-shift-y: 0px;
  --hero-image: url('../../images/hero-funeral-prayer-mobile.png');
  --hero-image-position: 62% center;
  --hero-overlay-focus-size: 70% 44%;
  --hero-overlay-focus-position: 24% 32%;
  --hero-overlay-focus-wash: linear-gradient(
    90deg,
    rgba(var(--ink-rgb), 0.5) 0%,
    rgba(var(--ink-rgb), 0.34) 38%,
    rgba(var(--sand-rgb), 0.26) 70%,
    rgba(var(--sand-rgb), 0.12) 100%
  );
  --hero-overlay-secondary-local: radial-gradient(
    ellipse 58% 48% at 72% 26%,
    rgba(var(--sand-rgb), 0.36) 0%,
    rgba(var(--sand-rgb), 0.1) 52%,
    transparent 100%
  );
  --hero-overlay-linear-local: linear-gradient(
    180deg,
    rgba(var(--sand-rgb), 0.16) 0%,
    rgba(var(--sand-rgb), 0.06) 45%,
    rgba(var(--ink-rgb), 0.24) 100%
  );
  --hero-overlay-depth-local: rgba(var(--ink-rgb), 0.12);
  --hero-overlay-depth-opacity: 0.3;
  --hero-image-filter: saturate(0.94) brightness(1.02);
  --hero-card-surface-fallback: rgba(255, 255, 255, 0.86);
  --hero-card-border: rgba(255, 255, 255, 0.42);
  --hero-card-shadow:
    0 18px 40px rgba(var(--color-main-rgb), 0.1),
    0 4px 14px rgba(var(--color-main-rgb), 0.06);
  --hero-card-blur: blur(12px) saturate(1.08);
}

.hero__bg {
  position: absolute;
  inset: var(--hero-parallax-inset);
  z-index: 0;
  pointer-events: none;
  background: var(--hero-image) var(--hero-image-position) / cover no-repeat;
  filter: var(--hero-image-filter);
  transform: translate3d(0, calc(var(--hero-parallax-offset) + var(--hero-image-shift-y)), 0) scale(var(--hero-parallax-scale));
  transform-origin: center center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    var(--hero-overlay-focus-wash),
    var(--hero-overlay-secondary-local),
    var(--hero-overlay-linear-local);
  background-size: 100% 100%;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease-in-out;
}

.hero__video--venue {
  z-index: 0;
  object-position: center center;
}

.hero__video--prayer {
  z-index: 1;
  object-position: center center;
}

.hero__video--active {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero__bg {
    animation: hero-background-reveal 0.9s ease-out both;
  }

  .page-home .hero__headline-group {
    animation: hero-copy-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }
}

@keyframes hero-background-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-copy-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero--parallax {
    --hero-parallax-inset: -22px;
    --hero-parallax-scale: 1.05;
  }

  .hero--parallax .hero__bg {
    will-change: transform;
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--hero-overlay-depth-local);
  opacity: var(--hero-overlay-depth-opacity);
}

.hero__scroll-cue {
  position: absolute;
  top: 0;
  right: var(--space-md);
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(var(--hero-text-shadow-rgb), 0.3);
  transition: color 0.2s ease;
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus-visible {
  color: rgba(255, 255, 255, 1);
}

.hero__scroll-cue:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 0.45rem;
  border-radius: 2px;
}

.hero__scroll-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -45%;
  left: 0;
  width: 1px;
  height: 45%;
  background: currentColor;
  animation: hero-scroll-line 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes hero-scroll-line {
  0% { transform: translateY(0); }
  70%, 100% { transform: translateY(320%); }
}

@media (min-width: 1024px) {
  .hero__scroll-cue {
    display: flex;
  }
}

/* タブの背面から覗く、ヒーロー下端の装花 */
.hero__floral-band {
  position: absolute;
  right: 0;
  left: 0;
  bottom: clamp(-2.2rem, -2.4vw, -1.1rem);
  z-index: 1;
  width: 100%;
  height: min(30.5vw, 539px);
  pointer-events: none;
  opacity: 1;
  filter:
    saturate(1.06)
    brightness(1.03)
    contrast(1.03)
    drop-shadow(0 -8px 16px rgba(var(--ink-rgb), 0.08));
}

.hero__floral-band::before,
.hero__floral-band::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: min(50%, 885px);
  height: 100%;
  background-image: url('../../images/home/hero-floral-band-v2.webp');
  background-repeat: no-repeat;
  background-size: 224% auto;
  animation-duration: 0.9s;
  animation-delay: 0.75s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

.hero__floral-band::before {
  left: 0;
  background-position: left bottom;
  animation-name: hero-floral-enter-left;
}

.hero__floral-band::after {
  right: 0;
  background-position: right bottom;
  animation-name: hero-floral-enter-right;
}

@keyframes hero-floral-enter-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-floral-enter-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__bg {
    animation: none;
    opacity: 1;
  }

  .page-home .hero__headline-group {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__floral-band::before,
  .hero__floral-band::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__video {
    display: none;
  }

  .hero__scroll-line::after {
    top: 0;
    height: 100%;
    animation: none;
    transform: none;
  }

}

@media (max-width: 767px) {
  .hero__video--venue {
    object-position: 56% center;
  }

  .hero__video--prayer {
    object-position: 62% center;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--layout-width-stage) - var(--space-sm) * 2);
}

.hero__content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-md), 3vw, var(--space-lg));
  align-items: stretch;
}

.hero__decision-area {
  width: 100%;
  display: grid;
  gap: clamp(0.35rem, 1vw, 0.65rem);
  margin-top: auto;
}

.hero__proof-wrap {
  width: 100%;
  margin: 0 auto;
}

.hero__proofs {
  --hero-proof-size: min(29vw, 7.5rem);
  display: grid;
  grid-template-columns: repeat(3, var(--hero-proof-size));
  gap: clamp(12px, 2.2vw, 24px);
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__proof {
  width: var(--hero-proof-size);
  height: var(--hero-proof-size);
  min-width: 0;
  min-height: 0;
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 0.35rem;
  justify-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(10, 33, 46, 0.08);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 1px 7px rgba(var(--hero-text-shadow-rgb), 0.42);
  box-shadow: none;
}

.hero__proof-value {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin-top: 0;
}

.hero__proof-value span {
  margin-left: 0.08em;
  font-size: 0.58em;
  font-weight: 500;
}

.hero__proof-label {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.6875rem, 1.3vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero__proof-note {
  margin: 5px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.5625rem, 1.15vw, 0.6875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  text-shadow: 0 1px 6px rgba(var(--hero-text-shadow-rgb), 0.46);
}

@media (min-width: 768px) {
  .hero__proofs {
    --hero-proof-size: 7.5rem;
  }
}

@media (max-width: 480px) {
  .hero__proofs {
    gap: 6px;
  }

  .hero__proof {
    padding: 5px;
  }

  .hero__proof-label {
    font-size: 0.625rem;
    line-height: 1.25;
  }

  .hero__proof-value {
    margin-top: 0;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero__proof-wrap {
    animation: hero-copy-reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
  }
}

.hero__summary {
  width: min(100%, 44rem);
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.5rem);
}

/* Figma ヒーロー：写真上の白文字キャッチ（node-id=59-481 相当） */
.hero__title-stack,
.hero__headline-group {
  margin-bottom: clamp(var(--space-sm), 2.4vw, var(--space-md));
}

.hero__service-title {
  margin: 0 0 clamp(0.55rem, 1.3vw, 0.85rem);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.hero__service-line {
  display: inline;
}

.hero__service-keyword {
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1;
  vertical-align: -0.04em;
  letter-spacing: 0.07em;
  text-shadow: none;
  box-shadow: inset 0 -1.5px 0 var(--color-white);
}

.hero__service-glue {
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1;
  vertical-align: 0.02em;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(var(--hero-text-shadow-rgb), 0.2);
}

.hero__service-title + .hero__headline {
  margin-top: 0;
}

.hero__main .hero__summary {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  width: min(100%, 44rem);
}

.hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.hero__points li {
  position: relative;
  padding-left: 1.35rem;
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 0.65rem;
  height: 0.4rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.hero--rich .hero__main {
  gap: clamp(var(--space-sm), 2.4vw, var(--space-md));
}

.hero--rich.hero--with-tabs .hero__content {
  margin-bottom: clamp(var(--space-md), 3vw, var(--space-lg));
}

.hero__catchcopy-lead--photo,
.hero__lead,
.hero__catchcopy-main--photo .hero__catchcopy-main-line:not(.hero__catchcopy-main-line--strong),
.hero__headline .hero__headline-line:not(.hero__headline-line--strong) {
  display: block;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: 0.045em;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(var(--hero-text-shadow-rgb), 0.34), 0 0 20px rgba(var(--hero-text-shadow-rgb), 0.18);
}

.hero__lead + .hero__headline {
  margin-top: 1em;
}

.hero__headline + .hero__lead {
  margin-top: clamp(0.85rem, 1.8vw, 1.2rem);
}

.hero__catchcopy-main--photo,
.hero__headline {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--color-white);
}

.hero__catchcopy-main--photo .hero__catchcopy-main-line,
.hero__headline .hero__headline-line {
  display: block;
}

.hero__headline-line--strong .hero__line-chunk {
  display: inline-block;
  white-space: nowrap;
}

.hero__line-chunk {
  white-space: nowrap;
}

.hero__headline .hero__headline-line--emotion {
  line-height: 1.48;
}

.hero__headline .hero__headline-line--emotion + .hero__headline-line--strong {
  margin-top: clamp(0.2rem, 0.7vw, 0.5rem);
}

.hero__catchcopy-main--photo .hero__catchcopy-main-line--strong,
.hero__headline .hero__headline-line--strong {
  display: block;
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(var(--hero-text-shadow-rgb), 0.42), 0 0 28px rgba(var(--hero-text-shadow-rgb), 0.24);
}

.hero__catchcopy-sub,
.hero__summary-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.875rem, 3vw, 1rem);
  font-weight: 500;
  line-height: 2;
  color: var(--color-text);
}

.hero__summary .hero__summary-text {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.hero__summary--lead-only {
  gap: 0;
}

.page-home .hero__summary--lead-only .hero__summary-text {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.page-home .hero__headline-group {
  margin-bottom: clamp(0.65rem, 1.6vw, 1rem);
}

.page-home .hero__headline-group .hero__summary-text {
  max-width: 38rem;
  margin-top: clamp(0.75rem, 1.8vw, 1.1rem);
}

.page-home .hero__summary .hero__summary-text {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 2.1vw, 1rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.page-home .hero.hero--with-tabs {
  padding-bottom: 0;
}

.page-home .hero.hero--with-tabs > .container.container--wide {
  max-width: var(--layout-width-content);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__main-card,
.hero__summary-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hero-card-border);
  background-color: var(--hero-card-surface-fallback);
  -webkit-backdrop-filter: var(--hero-card-blur);
  backdrop-filter: var(--hero-card-blur);
  box-shadow: var(--hero-card-shadow);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.7rem);
}

.hero__phone-center,
.hero__hotline {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: clamp(0.45rem, 1.8vw, 0.7rem);
}

.hero__cta-main,
.hero__button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-action);
  box-shadow: none;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  box-sizing: border-box;
}

.hero__cta-secondary,
.hero__button--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border-cta);
  background-color: var(--color-button-secondary-bg);
  color: var(--color-button-secondary-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition), opacity var(--transition);
}

.hero__cta-secondary--full,
.hero__cta-main--full,
.hero__button--full {
  width: 100%;
  justify-content: center;
}

.hero__cta-note {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  color: var(--color-text-sub);
  line-height: 1.8;
}

.hero__decision-card,
.hero__reasons-card {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hero-card-border);
  background-color: var(--hero-card-surface-fallback);
  -webkit-backdrop-filter: var(--hero-card-blur);
  backdrop-filter: var(--hero-card-blur);
  box-shadow: var(--hero-card-shadow);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.hero__decision-reasons,
.hero__reasons {
  margin-top: 0;
}

.hero__issues-title,
.hero__reasons-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 2.8vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-strong);
  text-align: center;
}

.hero__reasons-title {
  margin: 0;
}

.hero__reasons-title-accent {
  background-color: rgba(var(--color-accent-rgb), 0.28);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__issues-title::before,
.hero__reasons-title::before {
  content: none;
}

.hero__issues-list,
.hero__reasons-list {
  margin-top: 0.65rem;
  display: grid;
  list-style: none;
}

.hero__issues-list li {
  position: relative;
  display: block;
  padding: 0.1rem 0 0.1rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.65;
}

.hero__issues-list li::before,
.hero__reasons-item::before {
  content: '';
  position: absolute;
}

.hero__issues-list li::before {
  left: 0;
  top: 0.34rem;
  width: 17px;
  height: 17px;
  background-color: var(--color-sub);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23000' d='m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23000' d='m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero__issues-list li::after {
  content: none;
}

.hero__issues-item-title {
  display: block;
  font-weight: 500;
  color: var(--color-text-strong);
  line-height: 1.55;
}

.hero__issues-item-sub {
  display: block;
  font-size: 0.94rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  font-weight: 400;
}

.hero__reasons-item {
  position: relative;
  display: block;
  padding: 0.8rem 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.82;
}

.hero__reasons-item:first-child {
  padding-top: 0.2rem;
}

.hero__reasons-item:last-child {
  padding-bottom: 0.2rem;
}

.hero__reasons-item + .hero__reasons-item {
  border-top: 1px solid rgba(var(--color-main-rgb), 0.12);
}

.hero__reasons-item::before {
  content: none;
}

.hero__reasons-item::after {
  content: none;
}

.hero__reasons-item-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-strong);
  line-height: 1.78;
}

.hero__reasons-item-text {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.95rem;
  line-height: 1.82;
  font-weight: 400;
  color: var(--color-text);
  text-wrap: pretty;
}

.hero__phone-callout,
.hero__hotline-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: clamp(0.65rem, 1.2vw, 1.35rem);
  row-gap: 0.2rem;
  text-align: center;
  border: none;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
}

.hero__phone-callout-pretext,
.hero__hotline-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 2.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-strong);
}

.hero__phone-callout-label,
.hero__hotline-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-urgent);
}

.hero__phone-callout-link,
.hero__hotline-number {
  display: block;
  width: 100%;
  margin-top: 0.1rem;
  font-family: var(--font-inter);
  font-size: clamp(2.6rem, 11vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.hero__decision-cta-wrap,
.hero__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.hero__primary-actions {
  width: min(100%, 48rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero__primary-actions .hero__button--secondary {
  border-color: rgba(255, 255, 255, 0.82);
  background-color: transparent;
  color: var(--color-white);
}

.hero__button--action {
  height: 54px;
  min-height: 54px;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero__decision-main {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.hero__decision-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
}

.hero__cta-secondary--outline {
  border-color: var(--color-border);
  background-color: var(--color-white);
}

.hero__decision-note {
  margin-top: 0;
  font-size: var(--font-size-xs);
}

.hero-follow {
  --hero-follow-bubble-height: clamp(32px, 4.5vw, 40px);
  background: var(--color-bg-sub);
  border-top: 1px solid rgba(var(--color-main-rgb), 0.14);
  padding: var(--space-lg) 0;
}

.hero-follow .container {
  padding-top: 0;
}

.hero-follow__inner {
  position: relative;
  overflow: visible;
  max-width: var(--content-page-max-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(20px, 4vw, 30px);
  text-align: left;
}

.hero-follow__copy {
  min-width: 0;
  display: grid;
  gap: clamp(14px, 3vw, 20px);
  padding-top: var(--hero-follow-bubble-height);
}

.hero-follow__heading {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.hero-follow__bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transform: translate(-8%, -100%) rotate(-2deg);
  transform-origin: left bottom;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px 9px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.34);
  border-radius: 999px;
  background: var(--color-white);
  /* box-shadow: 0 6px 14px rgba(var(--color-accent-rgb), 0.16); */
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--color-main-text);
  white-space: nowrap;
}

.hero-follow__bubble::after {
  content: '';
  position: absolute;
  left: clamp(16px, 4vw, 26px);
  bottom: -6px;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  border-right: 1px solid rgba(var(--color-accent-rgb), 0.34);
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.34);
  background: var(--color-white);
}

.hero-follow__title {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding-bottom: 0;
  font-family: var(--font-serif);
  font-size: var(--type-heading-section);
  font-weight: 700;
  line-height: 1.52;
  color: var(--color-text);
  border-bottom: 0;
  display: block;
}

.hero-follow__title-main,
.hero-follow__title-nowrap {
  display: inline-block;
  white-space: nowrap;
}

.hero-follow__text {
  max-width: 62ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--type-body);
  line-height: 1.95;
  color: var(--color-text);
}

.hero-follow__advisor {
  --hero-follow-advisor-radius: clamp(18px, 3vw, 24px);
  --hero-follow-advisor-padding: clamp(10px, 2vw, 14px);
  --hero-follow-advisor-inner-radius: calc(var(--hero-follow-advisor-radius) - var(--hero-follow-advisor-padding));
  width: min(100%, 460px);
  margin: 0;
  padding: var(--hero-follow-advisor-padding);
  display: grid;
  gap: 12px;
  justify-self: center;
  background: var(--color-white);
  border: 1px solid rgba(var(--color-main-rgb), 0.12);
  border-radius: var(--hero-follow-advisor-radius);
  box-shadow: 0 14px 34px rgba(var(--color-main-rgb), 0.08);
}

.hero-follow__advisor-image {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--hero-follow-advisor-inner-radius);
}

.hero-follow__advisor-caption {
  margin: 0;
  padding: 0 4px 2px;
  font-family: var(--font-serif);
  font-size: var(--type-body-sm);
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hero__lead wbr,
  .hero__headline-line--strong wbr {
    display: none;
  }

  .hero {
    --hero-overlay-focus-size: 56% 34%;
    --hero-overlay-focus-position: 16% 23%;
  }

  .hero__cta-main,
  .hero__button--primary {
    min-height: 54px;
    font-size: var(--font-size-lg);
  }

  .hero__issues-list,
  .hero__reasons-list {
    grid-template-columns: 1fr;
  }

  .hero-follow__inner {
    max-width: var(--layout-width-content);
    grid-template-columns: minmax(0, 1fr) minmax(220px, 36vw);
    column-gap: clamp(22px, 4vw, 36px);
    align-items: start;
  }

  .hero-follow__copy {
    align-content: start;
  }

  .hero-follow__title {
    line-height: 1.48;
  }

  .hero-follow__text {
    max-width: 34rem;
  }

  .hero-follow__advisor {
    width: 100%;
    max-width: 330px;
    justify-self: end;
  }

  .hero-follow__text br {
    display: none;
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero--parallax {
    --hero-parallax-inset: -36px;
    --hero-parallax-scale: 1.07;
  }
}

@media (min-width: 1024px) {
  .hero__proof-wrap {
    width: 100%;
    margin: 0;
  }

  .hero__service-title {
    font-size: clamp(1.45rem, 2.1vw, 1.8rem);
    font-weight: 600;
  }

  .page-home .hero__service-title :is(.hero__service-keyword, .hero__service-glue) {
    font-weight: 600;
  }

  .hero__catchcopy-lead--photo,
  .hero__lead,
  .hero__catchcopy-main--photo .hero__catchcopy-main-line:not(.hero__catchcopy-main-line--strong),
  .hero__headline .hero__headline-line:not(.hero__headline-line--strong),
  .hero__catchcopy-main--photo .hero__catchcopy-main-line--strong,
  .hero__headline .hero__headline-line--strong {
    white-space: nowrap;
  }

  .hero__headline .hero__headline-line--emotion {
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__catchcopy-lead--photo,
  .hero__lead,
  .hero__catchcopy-main--photo .hero__catchcopy-main-line:not(.hero__catchcopy-main-line--strong),
  .hero__headline .hero__headline-line:not(.hero__headline-line--strong) {
    font-size: clamp(1.55rem, 3vw, 2rem);
    white-space: nowrap;
  }

  .hero__headline .hero__headline-line--emotion {
    white-space: normal;
  }

  .hero__catchcopy-main--photo .hero__catchcopy-main-line--strong,
  .hero__headline .hero__headline-line--strong {
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    white-space: nowrap;
  }

  .page-home .hero__headline .hero__headline-line--strong {
    font-size: clamp(2.75rem, 4.8vw, 3rem);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__title-stack,
  .hero__headline-group {
    margin-bottom: clamp(1.6rem, 4.8vw, 2.5rem);
  }

  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__actions > .hero__button--secondary {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__actions > .hero__button--primary {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 639px) {
  .hero__title-stack,
  .hero__headline-group {
    margin-bottom: clamp(1.6rem, 4.8vw, 2.5rem);
  }

  .hero__actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .hero__primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero__proof-wrap {
    width: 100%;
  }

  .hero__proof-note {
    text-align: center;
  }

  .hero__lead wbr,
  .hero__headline-line--strong wbr {
    display: inline;
  }

  .hero__service-title {
    display: grid;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: clamp(1.15rem, 4.8vw, 1.55rem);
    font-weight: 600;
    line-height: 1.3;
  }

  .page-home .hero__service-title :is(.hero__service-keyword, .hero__service-glue) {
    font-weight: 600;
  }

  .hero__service-line {
    display: block;
  }

  .hero__title-stack,
  .hero__headline-group {
    margin-bottom: clamp(1.8rem, 7.2vw, 2.6rem);
  }

  .hero__catchcopy-lead--photo,
  .hero__lead,
  .hero__catchcopy-main--photo .hero__catchcopy-main-line:not(.hero__catchcopy-main-line--strong),
  .hero__headline .hero__headline-line:not(.hero__headline-line--strong) {
    font-size: clamp(1.12rem, 5.2vw, 1.46rem);
    white-space: normal;
  }

  .hero__catchcopy-main--photo .hero__catchcopy-main-line--strong,
  .hero__headline .hero__headline-line--strong {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.32;
    white-space: normal;
    word-break: keep-all;
  }

  .page-home .hero__headline .hero__headline-line--strong + .hero__headline-line--strong {
    margin-top: 0.15em;
  }

  .hero__phone-callout-link,
  .hero__hotline-number {
    font-size: clamp(2.2rem, 10.2vw, 3rem);
    letter-spacing: 0.01em;
  }
}

@media (min-width: 1024px) {
  .hero-follow__inner {
    max-width: var(--layout-width-content);
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 440px);
    column-gap: clamp(28px, 4vw, 52px);
    row-gap: var(--space-sm);
    align-items: center;
    text-align: left;
  }

  .hero-follow__copy {
    align-content: start;
  }

  .hero-follow__title {
    line-height: 1.46;
  }

  .hero-follow__text {
    max-width: 38rem;
    text-align: left;
    line-height: 1.9;
  }

  .hero-follow__advisor {
    width: 100%;
    max-width: 440px;
    justify-self: end;
  }

  .hero-follow__text br {
    display: none;
  }

  .hero {
    padding: calc(var(--header-clear) + var(--space-lg)) 0 clamp(var(--space-lg), 5vw, var(--space-xl));
    --hero-image: url('../../images/hero-funeral-prayer-desktop.png');
    --hero-image-position: center top;
    --hero-image-shift-y: 24px;
    --hero-overlay-focus-size: 66% 48%;
    --hero-overlay-focus-position: 20% 28%;
    --hero-overlay-secondary-local: radial-gradient(
      ellipse 52% 42% at 72% 24%,
      rgba(var(--sand-rgb), 0.32) 0%,
      rgba(var(--sand-rgb), 0.08) 52%,
      transparent 100%
    );
    --hero-overlay-linear-local: linear-gradient(
      180deg,
      rgba(var(--sand-rgb), 0.14) 0%,
      rgba(var(--sand-rgb), 0.05) 45%,
      rgba(var(--ink-rgb), 0.22) 100%
    );
    --hero-overlay-depth-local: rgba(var(--ink-rgb), 0.1);
    --hero-overlay-depth-opacity: 0.26;
  }

  .hero__main {
    display: flex;
    flex-direction: column;
  }

  .hero__title-stack,
  .hero__headline-group {
    margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
  }

  .hero__decision-card,
  .hero__reasons-card {
    max-width: 360px;
    width: 100%;
    justify-self: end;
  }

  .hero__catchcopy-lead--photo,
  .hero__lead,
  .hero__catchcopy-main--photo .hero__catchcopy-main-line:not(.hero__catchcopy-main-line--strong),
  .hero__headline .hero__headline-line:not(.hero__headline-line--strong) {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  }

  .hero__catchcopy-main--photo .hero__catchcopy-main-line--strong,
  .hero__headline .hero__headline-line--strong {
    font-size: clamp(2.6rem, 4vw, 4rem);
  }

  /* 小さめのPCでも、メインコピーをヒーローの主役として十分な大きさに保つ */
  .page-home .hero__headline .hero__headline-line--strong {
    font-size: clamp(3.25rem, 4.5vw, 4rem);
  }

  .hero__catchcopy-sub,
  .hero__summary-text {
    font-size: 1.05rem;
    line-height: 1.95;
  }

  .page-home .hero__summary--lead-only .hero__summary-text {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .hero__phone-callout-link,
  .hero__hotline-number {
    font-size: clamp(3.3rem, 4.8vw, 4.4rem);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero--parallax {
    --hero-parallax-inset: -68px;
    --hero-parallax-scale: 1.11;
  }
}

@media (hover: hover) {
  .hero__cta-main:hover,
  .hero__button--primary:hover {
    opacity: 1;
    background: var(--color-action-dark);
  }

  .hero__cta-secondary:hover,
  .hero__button--secondary:hover {
    background-color: var(--color-button-secondary-hover-bg);
    border-color: var(--color-button-secondary-hover-border);
    opacity: 1;
  }

  .hero__primary-actions .hero__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
  }
}

/* ===================================
   Hero – ヒーロー下端タブ
   =================================== */
.hero--with-tabs .hero__content {
  margin-bottom: var(--space-md);
}

.hero-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hero-tabs-gap, 8px);
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-tabs__guide {
  position: relative;
  z-index: 3;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 16px;
  color: var(--color-main-dark);
  background-color: var(--structure-guide-bg);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(20, 16, 12, 0.12);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: none;
  animation:
    hero-guide-reveal 0.45s ease-out 1.65s both,
    hero-guide-float 3.6s ease-in-out 2.1s infinite;
}

.hero-tabs__guide::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 8px;
  background-color: var(--structure-guide-bg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

@keyframes hero-guide-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes hero-guide-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__proof-wrap {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-tabs__guide {
    animation: none;
    opacity: 1;
  }
}

.hero-tabs__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(80px, 12vw, 96px);
  padding: clamp(12px, 2.4vw, 18px);
  border: var(--structure-border-width) solid var(--color-hairline);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  background: var(--structure-tab-muted-bg);
  color: var(--color-main-dark);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.hero-tabs__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hero-tabs__label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  background: rgba(var(--ink-rgb), 0.1);
}

.hero-tabs__title {
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 3.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.hero-tabs__btn:not(.hero-tabs__btn--active) .hero-tabs__title {
  color: var(--ink);
}

.hero-tabs__btn:not(.hero-tabs__btn--active) .hero-tabs__label {
  background: var(--color-white);
}

.hero-tabs__btn--active {
  background: var(--color-white);
  color: var(--color-main);
  border-color: var(--color-hairline);
  border-bottom: var(--structure-border-width) solid var(--color-white);
  z-index: 1;
  margin-bottom: calc(var(--structure-border-width) * -1);
}

.hero-tabs__btn--urgent.hero-tabs__btn--active .hero-tabs__label {
  background: rgba(var(--color-action-rgb), 0.1);
  color: var(--color-action-dark);
}

.hero-tabs__btn--plan.hero-tabs__btn--active .hero-tabs__label {
  background: rgba(var(--ink-rgb), 0.1);
  color: var(--ink);
}

.hero-tabs__btn--active .hero-tabs__title {
  color: var(--color-text-strong);
  text-shadow: none;
}

.hero-tabs__btn:focus-visible {
  outline: 2px solid var(--color-main-bright);
  outline-offset: 2px;
}

@media (hover: hover) {
  .hero-tabs__btn:not(.hero-tabs__btn--active):hover {
    background: var(--structure-tab-muted-hover);
    color: var(--color-main-dark);
    border-color: var(--color-hairline);
  }
}

@media (min-width: 521px) and (max-width: 1023px) {
  .hero__floral-band {
    height: 31.5vw;
  }

  .hero__floral-band::before,
  .hero__floral-band::after {
    background-size: 232% auto;
  }
}

@media (max-width: 520px) {
  .page-home {
    --hero-tabs-gap: 4px;
  }

  .hero-tabs__btn--active {
    border-bottom: none;
    margin-bottom: 0;
  }

  .page-home .hero {
    min-height: 365px;
    --hero-overlay-focus-wash: linear-gradient(
      90deg,
      rgba(var(--ink-rgb), 0.68) 0%,
      rgba(var(--ink-rgb), 0.48) 55%,
      rgba(var(--ink-rgb), 0.2) 100%
    );
  }

  .hero__floral-band {
    bottom: -0.85rem;
    height: min(59.8vw, calc(9.35vw + 197px));
    opacity: 0.9;
  }

  .hero__floral-band::before {
    display: none;
  }

  .hero__floral-band::after {
    width: 100%;
    background-size: min(220vw, calc(34.4vw + 724px)) auto;
    animation-name: hero-floral-enter-mobile;
  }

  @keyframes hero-floral-enter-mobile {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-tabs__btn {
    min-height: 68px;
    padding: 8px 8px;
    border-radius: 12px 12px 0 0;
  }

  .hero-tabs__text {
    gap: 3px;
  }

  .hero-tabs__label {
    padding: 2px 6px;
    font-size: var(--type-label);
  }

  .hero-tabs__title {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  }

  .hero-tabs__btn:not(.hero-tabs__btn--active) {
    background: var(--structure-tab-muted-bg);
  }
}

/* PC: ファーストビューはヒーロー＋状況別タブまで */
@media (min-width: 768px) {
  .page-home .hero.hero--with-tabs {
    min-height: 100svh;
    padding-top: calc(var(--header-clear) + 1.5rem);
  }
}

/* 大きいディスプレイ: コピーと安心ポイントを余白に負けないよう一段上げる */
@media (min-width: 1280px) and (min-height: 900px) {
  .page-home .hero__service-title {
    font-size: clamp(1.65rem, 1.7vw, 2.05rem);
  }

  .page-home .hero__headline .hero__headline-line--strong {
    font-size: clamp(3.75rem, 4.2vw, 4.75rem);
  }

  .page-home .hero__proofs {
    --hero-proof-size: 8.75rem;
    gap: clamp(18px, 1.6vw, 28px);
  }

  .page-home .hero__proof {
    padding: 14px;
    row-gap: 0.4rem;
  }

  .page-home .hero__proof-label {
    font-size: 0.9rem;
  }

  .page-home .hero__proof-value {
    font-size: 1.5rem;
  }
}

/* ノートPCなど縦が短いときだけ、タブまで収まるよう密度を上げる */
@media (min-width: 768px) and (max-height: 850px) {
  .page-home .hero--rich.hero--with-tabs .hero__content,
  .page-home .hero--with-tabs .hero__content {
    gap: 0;
    margin-bottom: 0;
  }

  .page-home .hero__headline-group {
    margin-bottom: 0;
  }

  .page-home .hero__service-title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
  }

  .page-home .hero__proofs {
    --hero-proof-size: 7rem;
    gap: 16px;
  }

  .page-home .hero__proof {
    padding: 5px;
  }

  .page-home .hero__proof-label {
    font-size: 0.625rem;
  }

  .page-home .hero__proof-value {
    font-size: 1.2rem;
  }

  .page-home .hero__proof-note {
    margin-top: 2px;
  }

  .page-home .hero-tabs__guide {
    margin-bottom: 10px;
    padding: 6px 15px;
  }

  .page-home .hero-tabs__btn {
    min-height: 76px;
    padding-block: 10px;
  }
}
