:root {
  --bg: #0b0f14;
  --surface-1: #10161d;
  --surface-2: #171f28;
  --surface-3: #1b252f;
  --border: rgba(231, 233, 234, 0.1);
  --border-strong: rgba(231, 233, 234, 0.18);
  --text-1: #e7e9ea;
  --text-2: #9aa3ab;
  --text-3: #71767b;
  --text-4: #5b6063;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-border: rgba(45, 212, 191, 0.24);
  --status-planning: #94a3b8;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text-1);
  background: var(--bg);
  font-family:
    Geist,
    "Noto Sans JP",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(231, 233, 234, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(231, 233, 234, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 58%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img,
svg {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.page-shell {
  width: min(100%, 728px);
  max-width: 728px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(11, 15, 20, 0.68), rgba(11, 15, 20, 0.98) 18rem),
    rgba(11, 15, 20, 0.94);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.profile-header {
  border-bottom: 1px solid var(--border);
}

.cover {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: var(--surface-1);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
  filter: saturate(1.04) contrast(1.03);
}

.cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(11, 15, 20, 0) 58%, rgba(11, 15, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 15, 20, 0.24), transparent 34%, rgba(11, 15, 20, 0.12));
}

.profile-body {
  position: relative;
  padding: 0 20px 22px;
}

.avatar-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.avatar {
  width: 144px;
  height: 144px;
  margin-top: -72px;
  background: var(--surface-1);
  border: 4px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #071110;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  color: var(--text-1);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.identity {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.display-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

h1 {
  margin-bottom: 0;
  color: var(--text-1);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.verified-badge .icon {
  width: 15px;
  height: 15px;
}

.verified-badge .icon path:first-child {
  fill: rgba(45, 212, 191, 0.18);
}

.handle {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bio {
  max-width: 64ch;
  margin: 14px 0 0;
  color: var(--text-1);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.bio-sub {
  max-width: 64ch;
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--text-2);
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.meta-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-row .icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.counts strong {
  color: var(--text-1);
  font-weight: 700;
}

.tab-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(11, 15, 20, 0.91);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 0 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.tab:hover {
  background: rgba(231, 233, 234, 0.04);
}

.tab[aria-current="page"] {
  color: var(--text-1);
  font-weight: 800;
}

.tab[aria-current="page"]::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 4px;
  content: "";
  background: var(--accent);
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

main {
  padding-bottom: 18px;
}

.content-section {
  padding: 24px 20px 26px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

h2 {
  margin-bottom: 0;
  color: var(--text-1);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-meta {
  flex: 0 0 auto;
  color: var(--text-3);
  font-family:
    "Geist Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.75rem;
  line-height: 1.4;
}

.section-copy {
  max-width: 64ch;
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.service-name {
  color: var(--text-1);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--status-planning);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.service-desc {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.65;
}

.service-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--text-3);
  background: rgba(11, 15, 20, 0.36);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family:
    "Geist Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.6875rem;
  font-weight: 500;
}

.policy-block {
  padding: 22px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.policy-block p {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.policy-block p + p {
  margin-top: 14px;
}

.policy-block strong {
  color: var(--text-1);
  font-weight: 800;
}

.policy-list {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.policy-list li {
  padding: 12px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.contact-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
}

.contact-label,
.contact-value {
  display: block;
}

.contact-label {
  margin-bottom: 3px;
  color: var(--text-1);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
}

.contact-value {
  color: var(--text-2);
  font-family:
    "Geist Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.8125rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  min-height: 80px;
  padding: 0 20px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

footer p {
  margin-bottom: 0;
}

.footer-operator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  color: var(--text-2);
}

.footer-operator img {
  width: 28px;
  height: 28px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  .page-shell {
    border-right: 0;
    border-left: 0;
  }

  .profile-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .avatar-actions {
    align-items: flex-start;
    min-height: 70px;
  }

  .avatar {
    width: 112px;
    height: 112px;
    margin-top: -56px;
  }

  .actions {
    max-width: 180px;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .btn {
    min-width: 82px;
    padding: 0 14px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .tab {
    min-height: 50px;
    font-size: 0.8125rem;
  }

  .content-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section-head {
    display: grid;
    gap: 4px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
    padding: 18px 16px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .avatar {
    width: 96px;
    height: 96px;
    margin-top: -48px;
  }

  .actions {
    max-width: 160px;
  }

  .btn {
    min-width: 74px;
    padding: 0 12px;
  }

  .tab {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
