.hero-section {
  --hero-background-shift: 0px;
  --hero-person-shift: 0px;
  position: relative;
  padding: 0;
  overflow: clip;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -64px 0;
  background: url("../../images/pc_bg.webp") center center / cover no-repeat;
  pointer-events: none;
  transform: translate3d(0, var(--hero-background-shift), 0);
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  width: var(--container-wide);
  min-height: min(68vw, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(20px, 3.8vw, 58px);
  align-items: center;
  padding: clamp(34px, 4.2vw, 58px) 0 0;
}

.hero-section__inner::before {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -10%;
  width: 42%;
  height: 46%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.72), transparent 48%),
    linear-gradient(112deg, rgba(var(--color-accent-soft-rgb), 0.22), rgba(255, 255, 255, 0));
  filter: blur(22px);
  pointer-events: none;
}

.hero-section__content,
.hero-section__visual {
  position: relative;
  z-index: 1;
}

.hero-section__content {
  max-width: 620px;
  padding: 28px 0 56px 28px;
}

.hero-section__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-section__local-eyebrow {
  margin: 0;
  color: rgba(77, 60, 48, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-section__script,
.page-hero__script {
  margin: 0;
}

.hero-section__script {
  color: rgba(var(--color-accent-rgb), 0.5);
  font-family: var(--font-script);
  font-size: clamp(2.95rem, 4.7vw, 4.15rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.01em;
}

.hero-section__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.14em;
  max-width: 10.4ch;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-section__title span {
  display: block;
  white-space: nowrap;
}

.hero-section__title em {
  color: var(--color-gold-dark);
  font-style: normal;
}

.hero-section__lead {
  max-width: 100%;
  margin: 26px 0 0;
  color: #53463c;
  font-size: clamp(1rem, 1.06vw, 1.02rem);
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.01em;
}

.hero-section__location {
  max-width: 35rem;
  margin: 28px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(77, 60, 48, 0.82);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.hero-section__location::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(var(--color-accent-rgb), 0.64);
  box-sizing: border-box;
  flex: 0 0 auto;
}

.hero-section__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-section__cta {
  gap: 18px;
  min-width: 208px;
  padding-right: 24px;
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: clamp(0.96rem, 1.08vw, 1rem);
  letter-spacing: 0.01em;
}

.hero-section__cta--primary {
  color: var(--color-white);
}

.hero-section__cta--secondary {
  background: rgba(255, 255, 255, 0.72);
}

.hero-section__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 690px;
}

.hero-section__profile-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-section.has-parallax::before,
.hero-section.has-parallax .hero-section__image {
  will-change: transform;
}

.hero-section__visual-note {
  position: absolute;
  top: 108px;
  right: 18px;
  z-index: 2;
  width: clamp(126px, 10.2vw, 152px);
  display: grid;
  justify-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-section__visual-note:focus-visible {
  outline: 3px solid rgba(var(--color-accent-rgb), 0.55);
  outline-offset: 6px;
  border-radius: 50%;
}

.hero-section__visual-badge {
  width: clamp(108px, 8.4vw, 126px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.2rem;
  padding: 0.82rem 0.72rem 0.78rem;
  border: 1px solid rgba(var(--color-accent-rgb), 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.96), rgba(255, 251, 245, 0.82) 38%, rgba(243, 228, 207, 0.72) 100%),
    linear-gradient(145deg, rgba(255, 252, 248, 0.9), rgba(248, 238, 226, 0.74));
  box-shadow:
    0 20px 36px rgba(131, 97, 62, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  text-align: center;
}

.page-is-loaded .hero-section__visual-badge {
  animation: hero-visual-note-float 3.2s ease-in-out 1.1s infinite;
}

.hero-section__visual-note:hover .hero-section__visual-badge {
  filter: brightness(1.035) saturate(1.06);
}

@keyframes hero-visual-note-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -9px, 0) scale(1.045);
  }
}

.hero-section__visual-badge::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.14);
  border-radius: 50%;
}

.hero-section__visual-badge::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.9), rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 0 6px rgba(var(--color-accent-rgb), 0.08);
}

.hero-section__visual-badge-status {
  display: block;
  position: relative;
  z-index: 1;
  color: rgba(var(--color-accent-rgb), 0.82);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
}

.hero-section__visual-badge-prefecture {
  display: block;
  position: relative;
  z-index: 1;
  color: rgba(var(--color-accent-rgb), 0.82);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.1em;
}

.hero-section__visual-badge-city {
  display: block;
  position: relative;
  z-index: 1;
  color: #7f5a21;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.98vw, 1.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.05em;
}

.hero-section__profile-bg {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: var(--profile-frame-width);
  aspect-ratio: var(--profile-frame-ratio);
  z-index: 1;
  overflow: hidden;
  filter: drop-shadow(0 18px 28px rgba(55, 43, 49, 0.12));
}

.hero-section__image {
  position: absolute;
  top: var(--profile-crop-y);
  left: 50%;
  z-index: 1;
  width: calc(var(--profile-crop-scale) * 100%);
  max-width: none;
  height: auto;
  transform: translate3d(-50%, var(--hero-person-shift), 0);
  object-fit: contain;
  object-position: center top;
}

.hero-section__profile-bg.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.95), rgba(252, 250, 247, 0.92) 40%, rgba(247, 243, 237, 0.86) 72%, rgba(243, 236, 226, 0.8) 100%);
}

.hero-section__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  color: rgba(17, 17, 17, 0.65);
  text-align: center;
}

.hero-section__placeholder span {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5rem);
}

.hero-section__local-eyebrow,
.hero-section__script,
.hero-section__title span,
.hero-section__lead,
.hero-section__location,
.hero-section__cta-group,
.hero-section__visual-note,
.hero-section__profile-bg {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-section__local-eyebrow {
  transition-delay: 0s;
}

.hero-section__script {
  transition-delay: 0.08s;
}

.hero-section__title span:first-child {
  transition-delay: 0.18s;
}

.hero-section__title span:last-child {
  transition-delay: 0.3s;
}

.hero-section__lead {
  transition-delay: 0.42s;
}

.hero-section__location {
  transition-delay: 0.5s;
}

.hero-section__cta-group {
  transition-delay: 0.58s;
}

.hero-section__visual-note {
  transition-delay: 0.38s;
}

.hero-section__profile-bg {
  transition-delay: 0.4s;
}

.page-is-loaded .hero-section__local-eyebrow,
.page-is-loaded .hero-section__script,
.page-is-loaded .hero-section__title span,
.page-is-loaded .hero-section__lead,
.page-is-loaded .hero-section__location,
.page-is-loaded .hero-section__cta-group,
.page-is-loaded .hero-section__visual-note,
.page-is-loaded .hero-section__profile-bg {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-hero__script {
  color: rgba(var(--color-accent-rgb), 0.34);
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.page-hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(28px, 4vw, 42px);
}

.page-hero--compact {
  padding-bottom: 8px;
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.page-hero__lead {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-section {
    --hero-background-shift: 0px !important;
    --hero-person-shift: 0px !important;
  }

  .hero-section__local-eyebrow,
  .hero-section__script,
  .hero-section__title span,
  .hero-section__lead,
  .hero-section__location,
  .hero-section__cta-group,
  .hero-section__visual-note,
  .hero-section__profile-bg {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-is-loaded .hero-section__visual-badge {
    animation: none;
  }
}
