:root {
  color-scheme: light;
  --bg: #f7f8f9;
  --paper: #fffdfb;
  --paper-soft: rgba(255, 253, 251, 0.86);
  --ink: #1a1717;
  --muted: #756c6c;
  --line: #e8e6e3;
  --line-dark: #d6d1cb;
  --red: #b4142c;
  --red-deep: #6f1230;
  --red-soft: #fff0f3;
  --rose: #d74c5f;
  --green: #13775d;
  --blue: #4f6f8f;
  --shadow: 0 22px 54px rgba(90, 35, 43, 0.13);
  --shadow-soft: 0 12px 28px rgba(28, 28, 28, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "YuGothic", "Noto Sans JP", "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(247, 245, 245, 0.48)),
    linear-gradient(135deg, rgba(180, 20, 44, 0.07) 0 24%, transparent 24% 100%),
    url("assets/emma-profile/backgrounds/emma-night-city-bg.png");
  background-attachment: fixed, fixed, fixed;
  background-position: center, left top, center;
  background-repeat: no-repeat;
  background-size: cover, auto, cover;
}

@media (hover: hover) and (pointer: fine) {
  body {
    --cursor-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 4.5 18.4 14.1l-6.1 1.1 3.7 6.8-3.2 1.65-3.55-6.6-4.7 4.8Z' fill='%236f1230' stroke='%23ffc0ca' stroke-width='.9' stroke-linejoin='round'/%3E%3C/svg%3E") 5 5, auto;
    cursor: var(--cursor-ring);
  }

  a[href],
  button,
  .button,
  .filter,
  [role="button"] {
    cursor: var(--cursor-ring);
  }

  input,
  textarea,
  select {
    cursor: auto;
  }

  .cursor-orbit,
  .cursor-hud {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-999px, -999px, 0);
    transition:
      opacity 130ms ease,
      transform 130ms ease;
    will-change: transform, opacity;
  }

  .cursor-orbit {
    z-index: 9998;
    width: 24px;
    height: 24px;
  }

  .cursor-orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      #ffc0ca 0deg,
      rgba(180, 20, 44, 0.94) 132deg,
      rgba(215, 76, 95, 0.58) 236deg,
      #ffc0ca 360deg
    );
    filter: drop-shadow(0 0 8px rgba(180, 20, 44, 0.28));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.9px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.9px));
  }

  .cursor-hud.is-visible {
    opacity: 1;
  }

  .cursor-orbit.is-active::before {
    animation: cursor-ring-spin 1.05s linear infinite;
    background: conic-gradient(
      from 0deg,
      #ffe1e6 0deg,
      rgba(111, 18, 48, 0.98) 132deg,
      rgba(215, 76, 95, 0.66) 236deg,
      #ffe1e6 360deg
    );
    filter: drop-shadow(0 0 11px rgba(180, 20, 44, 0.38));
  }

  .cursor-orbit.is-visible.is-active {
    opacity: 1;
  }

  .cursor-hud {
    min-width: 54px;
    padding: 0 0 7px;
    color: var(--red-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
  }

  .cursor-hud::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
    box-shadow: 0 0 10px rgba(180, 20, 44, 0.36);
    transition: width 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .cursor-hud.is-visible::before {
    width: 100%;
  }

  @keyframes cursor-ring-spin {
    to {
      transform: rotate(360deg);
    }
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 38px;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(180, 20, 44, 0.1);
  border-radius: 8px;
  pointer-events: none;
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 0;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 222, 214, 0.92);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(300px, 430px);
  grid-template-areas:
    "eyebrow eyebrow"
    "photo profile"
    "photo actions";
  gap: 24px clamp(28px, 4vw, 56px);
  align-items: center;
  justify-content: center;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 251, 0.92)),
    var(--paper);
  box-shadow: var(--shadow);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--rose), rgba(19, 119, 93, 0.68));
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-panel > .eyebrow {
  grid-area: eyebrow;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 5.8vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0;
}

.profile-head {
  grid-area: profile;
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 0;
  text-align: left;
}

.profile-name {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.02;
}

.profile-title,
.footer,
.guide-list p,
.contact-section p,
.sns-card em,
.feature-note {
  color: var(--muted);
}

.profile-title {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}

.hero-actions,
.filters,
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  grid-area: actions;
  display: grid;
  justify-content: stretch;
  align-self: start;
  width: 100%;
  max-width: 430px;
}

.button,
.filter,
.copy-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button::before,
.filter::before,
.copy-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.54) 48%, transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(255, 210, 218, 0.42), transparent 62%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 320ms ease,
    transform 1150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button:hover,
.filter:hover,
.copy-button:hover,
.sns-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
}

.button:hover::before,
.filter:hover::before,
.copy-button:hover::before,
.button:focus-visible::before,
.filter:focus-visible::before,
.copy-button:focus-visible::before {
  opacity: 1;
  transform: translateX(120%);
}

.button.primary:hover,
.filter.is-active:hover,
.copy-button:hover {
  box-shadow:
    0 14px 30px rgba(180, 20, 44, 0.34),
    0 0 0 7px rgba(255, 194, 205, 0.22);
}

.button.secondary:hover,
.filter:hover {
  border-color: rgba(180, 20, 44, 0.45);
  background: rgba(255, 244, 247, 0.78);
  box-shadow:
    0 12px 28px rgba(180, 20, 44, 0.14),
    0 0 0 6px rgba(255, 210, 218, 0.18);
}

.button.primary,
.filter.is-active,
.copy-button {
  color: var(--paper);
  border-color: transparent;
  background: linear-gradient(135deg, var(--red-deep), var(--red) 58%, var(--rose));
  box-shadow: 0 12px 28px rgba(180, 20, 44, 0.24);
}

.button.secondary,
.filter {
  border-color: rgba(180, 20, 44, 0.28);
  color: var(--red-deep);
  background: rgba(255, 240, 243, 0.52);
}

.signal-row {
  justify-content: center;
}

.signal-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #4e4943;
  font-size: 12px;
  font-weight: 680;
}

.portrait {
  grid-area: photo;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: hidden;
  background: #151515;
  box-shadow: 0 18px 42px rgba(111, 18, 48, 0.16);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 45%, rgba(111, 18, 48, 0.3)),
    linear-gradient(90deg, rgba(255, 240, 243, 0.18), transparent 36%);
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  gap: 8px;
  color: #fff;
}

.portrait-caption .portrait-name {
  margin: 0;
  color: #fff;
  font-size: clamp(56px, 6vw, 86px);
  font-weight: 600;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.portrait-route {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 620;
}

.portrait-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 900ms ease,
    transform 5200ms ease;
}

.portrait-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.focus-center {
  object-position: center 45%;
}

.focus-street {
  object-position: center 42%;
}

.slide-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.slide-dots span {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: transparent;
  opacity: 0.8;
}

.slide-dots span.is-active {
  width: 18px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.quick-links,
.sns-section,
.guide-section {
  margin-top: 30px;
  padding: 32px 0 48px;
}

.section-heading {
  border-top: 1px solid rgba(180, 20, 44, 0.16);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.section-heading h2 {
  color: var(--ink);
  text-shadow: none;
}

.section-heading .eyebrow {
  border-radius: 999px;
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature-grid,
.sns-grid,
.guide-list {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sns-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.sns-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 248, 250, 0.96), rgba(255, 255, 255, 0.88)),
    var(--paper);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.feature-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.feature-card:hover,
.sns-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.feature-logo,
.sns-mark {
  flex: 0 0 auto;
}

.feature-logo,
.sns-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-note {
  display: block;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.is-inverted {
  filter: invert(1);
}

.instagram {
  background: #b64a7b;
}

.x {
  background: #161616;
}

.youtube {
  background: #d92d27;
}

.tiktok {
  background: #111;
}

.red {
  background: #d8232a;
}

.douyin {
  border: 1px solid var(--line);
  background: #fff;
}

.company {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 42%),
    var(--green);
}

.accent-ink {
  background:
    linear-gradient(145deg, rgba(180, 20, 44, 0.2), rgba(255, 248, 250, 0.9) 52%, rgba(255, 255, 255, 0.82)),
    var(--paper);
}

.accent-blue {
  background:
    linear-gradient(145deg, rgba(19, 119, 93, 0.16), rgba(248, 255, 252, 0.9) 52%, rgba(255, 255, 255, 0.82)),
    var(--paper);
}

.accent-red {
  background:
    linear-gradient(145deg, rgba(216, 35, 42, 0.22), rgba(255, 247, 248, 0.9) 52%, rgba(255, 255, 255, 0.82)),
    var(--paper);
}

.filters {
  justify-content: flex-start;
  margin: -8px 0 28px;
}

.filter {
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
}

.sns-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.sns-card.is-hidden {
  display: none;
}

.sns-card strong,
.sns-card em {
  display: block;
}

.sns-card strong {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.25;
}

.sns-card em {
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.sns-mark .brand-logo {
  width: 30px;
  height: 30px;
}

.douyin-logo-crop {
  width: 42px;
  height: 42px;
  display: block;
  overflow: hidden;
}

.douyin-logo-source {
  width: 113px;
  height: 42px;
  display: block;
  max-width: none;
}

.company-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.guide-list article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 248, 250, 0.94), rgba(246, 252, 250, 0.86)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.guide-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), rgba(215, 76, 95, 0.12));
}

.guide-list span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 640;
}

.guide-list p {
  margin-bottom: 0;
  line-height: 1.82;
}

.contact-section {
  margin-top: 34px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 4.5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 248, 250, 0.96), rgba(246, 252, 250, 0.9)),
    var(--paper-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.contact-section > div:first-child {
  display: grid;
  gap: 16px;
  align-content: center;
}

.contact-section .eyebrow {
  margin-bottom: 0;
}

.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.18;
  white-space: nowrap;
}

.contact-section p {
  max-width: 620px;
  margin-bottom: 0;
  line-height: 2;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions .button {
  min-height: 50px;
}

.contact-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.65;
}

.footer {
  width: min(100%, 720px);
  margin: 18px auto 0;
  border-top: 1px solid rgba(180, 20, 44, 0.18);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px 18px 0;
  color: #413a3a;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.footer.reveal {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.footer p {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  filter: none;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.reveal.is-revealed {
  opacity: 1;
  filter: none;
  transform: translateY(0);
}

.profile-panel.reveal {
  transform: translateY(12px);
}

.feature-card.reveal,
.sns-card.reveal,
.guide-list article.reveal {
  transform: translateY(16px);
}

.quick-links.reveal,
.sns-section.reveal,
.guide-section.reveal {
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .button,
  .filter,
  .copy-button,
  .feature-card,
  .sns-card {
    transition: none;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 28px, 620px);
    padding-top: 22px;
  }

  .profile-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "photo"
      "profile"
      "actions";
    gap: 18px;
    padding: 18px;
  }

  .profile-head {
    justify-items: center;
    text-align: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    width: 100%;
    max-width: min(360px, 100%);
    justify-self: center;
  }

  .section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    justify-items: start;
    text-align: center;
  }

  .section-heading h2 {
    width: 100%;
    text-align: left;
  }

  .feature-grid,
  .sns-grid,
  .guide-list,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    margin-top: 30px;
    margin-bottom: 36px;
    gap: 24px;
    padding: 28px;
    text-align: center;
  }

  .contact-section p {
    max-width: none;
  }

  .filters {
    justify-content: center;
  }

  h2 {
    font-size: clamp(25px, 7.4vw, 30px);
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 24px, 480px);
    padding-top: 18px;
  }

  .profile-panel {
    gap: 16px;
    padding: 16px;
  }

  .profile-name {
    font-size: 28px;
    line-height: 1.1;
  }

  .quick-links,
  .sns-section,
  .guide-section {
    margin-top: 24px;
    padding: 28px 0 40px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .portrait-caption {
    left: 18px;
    bottom: 16px;
    gap: 5px;
  }

  .portrait-caption .portrait-name {
    font-size: clamp(44px, 12vw, 56px);
  }

  .portrait-route {
    font-size: 12px;
  }

  .profile-panel {
    padding: 16px;
  }

  .hero-actions .button {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
  }

  .portrait {
    aspect-ratio: 16 / 8.9;
  }

  .contact-section {
    margin-top: 26px;
    margin-bottom: 22px;
    gap: 22px;
    padding: 22px;
  }

  .contact-section h2 {
    font-size: clamp(29px, 8vw, 34px);
    white-space: normal;
  }
}
