:root {
  --background-50: 0.985 0.003 85;
  --background-100: 0.965 0.004 85;
  --background-200: 0.928 0.005 85;
  --background-300: 0.878 0.006 85;
  --background-400: 0.80 0.008 85;
  --background-500: 0.72 0.010 85;
  --background-600: 0.64 0.012 85;
  --background-700: 0.54 0.012 85;
  --background-800: 0.44 0.010 85;
  --background-900: 0.32 0.008 85;
  --background-950: 0.20 0.006 85;

  --primary-50: 0.96 0.005 260;
  --primary-100: 0.90 0.006 260;
  --primary-200: 0.82 0.008 260;
  --primary-300: 0.70 0.010 260;
  --primary-400: 0.52 0.012 260;
  --primary-500: 0.36 0.012 260;
  --primary-600: 0.30 0.010 260;
  --primary-700: 0.25 0.008 260;
  --primary-800: 0.20 0.006 260;
  --primary-900: 0.16 0.005 260;
  --primary-950: 0.12 0.004 260;

  --accent-50: 0.97 0.02 82;
  --accent-100: 0.93 0.04 82;
  --accent-200: 0.88 0.06 82;
  --accent-300: 0.80 0.08 82;
  --accent-400: 0.70 0.09 82;
  --accent-500: 0.62 0.10 82;
  --accent-600: 0.54 0.09 82;
  --accent-700: 0.46 0.08 82;
  --accent-800: 0.38 0.06 82;
  --accent-900: 0.30 0.04 82;
  --accent-950: 0.22 0.03 82;

  --secondary-50: 0.97 0.003 260;
  --secondary-100: 0.94 0.004 260;
  --secondary-200: 0.88 0.005 260;
  --secondary-300: 0.80 0.006 260;
  --secondary-400: 0.70 0.008 260;
  --secondary-500: 0.58 0.010 260;
  --secondary-600: 0.48 0.010 260;
  --secondary-700: 0.38 0.008 260;
  --secondary-800: 0.28 0.006 260;
  --secondary-900: 0.20 0.005 260;
  --secondary-950: 0.15 0.004 260;

  --foreground-50: 0.97 0.004 260;
  --foreground-100: 0.94 0.005 260;
  --foreground-200: 0.87 0.006 260;
  --foreground-300: 0.78 0.008 260;
  --foreground-400: 0.66 0.010 260;
  --foreground-500: 0.54 0.012 260;
  --foreground-600: 0.44 0.012 260;
  --foreground-700: 0.34 0.010 260;
  --foreground-800: 0.26 0.008 260;
  --foreground-900: 0.20 0.006 260;
  --foreground-950: 0.15 0.005 260;

  --font-heading: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: oklch(var(--background-50));
  color: oklch(var(--foreground-900));
  line-height: 1.6;
  padding-bottom: 4.75rem;
}
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 768px) {
  .wrap { width: min(72rem, calc(100% - 4rem)); }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: oklch(var(--background-50) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(var(--background-200) / 0.7);
  transition: background .3s, border-color .3s;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
  gap: 1rem;
}
@media (min-width: 768px) {
  .header-bar { height: 5rem; padding: 0 2rem; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--primary-700));
  color: oklch(var(--background-50));
  font-size: 1.125rem;
  overflow: hidden;
}
.brand-logo { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: oklch(var(--foreground-900));
  white-space: nowrap;
}
.brand-firm {
  font-size: 0.6875rem;
  color: oklch(var(--foreground-500));
  white-space: nowrap;
}
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: oklch(var(--foreground-600));
  text-decoration: none;
  border-radius: 0.375rem;
  white-space: nowrap;
}
.nav-link:hover { color: oklch(var(--foreground-900)); }
.nav-link.is-active { color: oklch(var(--accent-600)); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  color: oklch(var(--foreground-700));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-cta { display: none; }
.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: oklch(var(--foreground-700));
  font-size: 1.25rem;
  cursor: pointer;
}
.nav-mobile { padding: 0 1rem 1rem; }
.nav-mobile-inner { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile-link, .nav-mobile-cta {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(var(--foreground-700));
}
.nav-mobile-link:hover, .nav-mobile-link.is-active { background: oklch(var(--background-100)); }
.nav-mobile-link.is-active { background: oklch(var(--primary-100)); color: oklch(var(--primary-700)); }
.nav-mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
  background: oklch(var(--accent-500));
  color: oklch(var(--background-50));
  font-weight: 600;
}
@media (min-width: 768px) {
  .header-phone, .nav-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

body.has-hero:not(.is-scrolled):not(.is-menu-open) .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
body.has-hero:not(.is-scrolled):not(.is-menu-open) .brand-name,
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-toggle,
body.has-hero:not(.is-scrolled):not(.is-menu-open) .header-phone {
  color: oklch(var(--background-50));
}
body.has-hero:not(.is-scrolled):not(.is-menu-open) .brand-firm { color: oklch(var(--background-100) / 0.7); }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-link { color: oklch(var(--background-100) / 0.9); }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-link:hover { color: oklch(var(--background-50)); }
body.has-hero:not(.is-scrolled):not(.is-menu-open) .nav-link.is-active { color: oklch(var(--accent-300)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { padding: 0.625rem 1.25rem; }
.btn-accent { background: oklch(var(--accent-500)); color: oklch(var(--background-50)); }
.btn-accent:hover { background: oklch(var(--accent-400)); }
.btn-primary { background: oklch(var(--primary-700)); color: oklch(var(--background-50)); }
.btn-primary:hover { background: oklch(var(--primary-800)); }
.btn-ghost {
  background: oklch(var(--background-50) / 0.1);
  border-color: oklch(var(--background-50) / 0.3);
  color: oklch(var(--background-50));
}
.btn-ghost:hover { background: oklch(var(--background-50) / 0.2); }
.btn-outline {
  background: transparent;
  border-color: oklch(var(--primary-700));
  color: oklch(var(--primary-700));
}
.btn-outline:hover { background: oklch(var(--primary-700)); color: oklch(var(--background-50)); }

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, oklch(0.16 0.005 260), oklch(0.28 0.008 260) 48%, oklch(0.36 0.012 260));
}
@media (min-width: 768px) {
  .hero { min-height: 720px; }
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.6), rgb(0 0 0 / 0.5), rgb(0 0 0 / 0.7));
}
.hero:not(:has(.hero-img)) .hero-shade {
  background: linear-gradient(to bottom, oklch(0.12 0.004 260 / 0.25), oklch(0.20 0.006 260 / 0.15), oklch(0.12 0.004 260 / 0.45));
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6rem 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-copy { padding: 6rem 2rem; }
}
.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: oklch(var(--background-50) / 0.1);
  border: 1px solid oklch(var(--background-50) / 0.2);
  color: oklch(var(--background-50));
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: oklch(var(--background-50));
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.75rem; }
}
.hero-role {
  margin-top: 1rem;
  font-size: 1rem;
  color: oklch(var(--background-100) / 0.9);
}
@media (min-width: 768px) {
  .hero-role { font-size: 1.25rem; }
}
.hero-meta, .hero-lead {
  margin-top: 1rem;
  color: oklch(var(--background-100) / 0.75);
  font-size: 0.875rem;
  line-height: 1.75;
}
.hero-lead { max-width: 42rem; margin-inline: auto; }
@media (min-width: 768px) {
  .hero-lead { font-size: 1rem; }
}
.hero-actions {
  width: min(100%, 13.5rem);
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.hero-actions .btn {
  width: 100%;
  padding: 0.7rem 1rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; width: auto; gap: 0.75rem; }
  .hero-actions .btn { width: auto; padding: 0.875rem 2rem; }
}

.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, oklch(var(--primary-900)), oklch(var(--primary-800)) 55%, oklch(0.28 0.01 82));
  padding: 7rem 1rem 3.5rem;
}
@media (min-width: 768px) {
  .page-head { padding: 9rem 2rem 5rem; }
}
.page-head-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-head-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(var(--primary-900) / 0.72), oklch(var(--primary-800) / 0.78));
}
.page-head:not(:has(.page-head-img)) .page-head-shade { background: transparent; }
.page-head-deco {
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  font-size: 16rem;
  line-height: 1;
  color: oklch(var(--background-50));
  opacity: 0.06;
  pointer-events: none;
}
.page-head-inner { position: relative; z-index: 1; }
.page-head h1 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: oklch(var(--background-50));
}
@media (min-width: 768px) {
  .page-head h1 { font-size: 3rem; }
}
.page-head-desc {
  margin-top: 1rem;
  max-width: 42rem;
  color: oklch(var(--background-100) / 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .page-head-desc { font-size: 1rem; }
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: oklch(var(--background-100) / 0.5);
}
.crumbs a { color: oklch(var(--background-100) / 0.55); text-decoration: none; }
.crumbs a:hover { color: oklch(var(--background-50)); }
.crumb-current {
  color: oklch(var(--background-100) / 0.85);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.band { width: 100%; background: oklch(var(--background-50)); padding: 4rem 0; }
.band-mist { background: oklch(var(--background-100)); }
@media (min-width: 768px) {
  .band { padding: 6rem 0; }
}
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head.left { text-align: left; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 3.5rem; }
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(var(--accent-600));
}
.section-head h2, .cta-band h2, .aside-card h2, .aside-dark h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: oklch(var(--foreground-900));
}
.section-head h2 { font-size: 1.5rem; }
@media (min-width: 768px) {
  .section-head h2 { font-size: 2.25rem; }
}
.section-desc {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  color: oklch(var(--foreground-500));
  font-size: 0.875rem;
  line-height: 1.7;
}
.section-head.left .section-desc { margin-left: 0; }
@media (min-width: 768px) {
  .section-desc { font-size: 1rem; }
}
.section-more { margin-top: 2.5rem; text-align: center; }

.grid-3, .grid-2, .news-list-vertical, .contact-tiles {
  display: grid;
  gap: 1.25rem;
}
.grid-3, .grid-2, .news-list-vertical { grid-template-columns: 1fr; }
.contact-tiles { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 3.5rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.news-list-vertical { max-width: 56rem; margin-inline: auto; gap: 1rem; }

.practice-card, .case-card, .news-card, .news-row, .contact-tile, .aside-card, .profile-meta-card {
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
  border-radius: 0.5rem;
  text-decoration: none;
}
.practice-card, .case-card, .news-card, .news-row {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: border-color .2s;
}
@media (min-width: 768px) {
  .practice-card, .case-card, .news-card { padding: 1.75rem; }
}
.practice-card:hover, .case-card:hover, .news-card:hover, .news-row:hover {
  border-color: oklch(var(--accent-300));
}
.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--primary-100));
  color: oklch(var(--primary-700));
  font-size: 1.25rem;
  transition: background .2s, color .2s;
}
.practice-card:hover .card-icon {
  background: oklch(var(--accent-500));
  color: oklch(var(--background-50));
}
.practice-card h2, .practice-card h3,
.case-card h2, .case-card h3,
.news-card h2, .news-card h3,
.news-row h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: oklch(var(--foreground-900));
  line-height: 1.4;
}
.practice-card:hover h2, .practice-card:hover h3,
.case-card:hover h2, .case-card:hover h3,
.news-card:hover h2, .news-card:hover h3,
.news-row:hover h2 { color: oklch(var(--accent-600)); }
.card-summary {
  margin-top: 0.75rem;
  color: oklch(var(--foreground-500));
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-more {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: oklch(var(--accent-600));
  font-size: 0.875rem;
  font-weight: 500;
}
.card-more i { transition: transform .2s; }
.practice-card:hover .card-more i,
.case-card:hover .card-more i,
.news-card:hover .card-more i,
.news-row:hover .card-more i { transform: translateX(0.25rem); }
.card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.pill {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: oklch(var(--secondary-100));
  color: oklch(var(--secondary-800));
  font-size: 0.75rem;
  font-weight: 500;
}
.card-date { font-size: 0.75rem; color: oklch(var(--foreground-400)); }
.case-result {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: oklch(var(--accent-600));
  font-size: 0.875rem;
  font-weight: 600;
}
.news-row .card-summary { flex: none; }

.intro-grid, .about-layout, .detail-layout, .consult-layout, .contact-layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .about-layout { grid-template-columns: 2fr 3fr; gap: 4rem; align-items: start; }
  .about-side { position: sticky; top: 7rem; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 20.5rem; align-items: start; gap: 2.5rem; }
  .detail-aside { position: sticky; top: 7rem; }
  .consult-layout { grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr); gap: 4rem; align-items: start; }
  .contact-layout { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; }
}
.portrait-frame {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, oklch(var(--primary-200)), oklch(var(--primary-500)));
}
@media (min-width: 1024px) {
  .intro-grid .portrait-frame { max-width: none; }
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: oklch(var(--background-50));
  font-family: var(--font-heading);
}
.portrait-fallback i { font-size: 3rem; }
.profile-role { margin-top: 0.35rem; color: oklch(var(--foreground-500)); font-size: 0.875rem; }
.profile-meta { margin-top: 0.35rem; color: oklch(var(--foreground-700)); font-size: 0.875rem; }
.profile-lead { margin-top: 1rem; color: oklch(var(--foreground-600)); font-size: 0.875rem; line-height: 1.75; }
@media (min-width: 768px) {
  .profile-lead { font-size: 1rem; }
}
.intro-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.profile-meta-card { margin-top: 1.5rem; padding: 1.5rem; }
.profile-meta-card h2 { font-family: var(--font-heading); font-size: 1.125rem; }

.cta-band {
  position: relative;
  background: oklch(var(--primary-800));
  padding: 4rem 0;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-band { padding: 5rem 0; }
}
.cta-band h2 { color: oklch(var(--background-50)); font-size: 1.5rem; }
@media (min-width: 768px) {
  .cta-band h2 { font-size: 2.25rem; }
}
.cta-band p {
  margin: 1rem auto 0;
  max-width: 40rem;
  color: oklch(var(--background-100) / 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .cta-band p { font-size: 1rem; }
}

.list-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: oklch(var(--background-100));
  border: 1px solid oklch(var(--background-200) / 0.7);
}
.list-cta h2 { font-family: var(--font-heading); font-size: 1.25rem; }
.list-cta p { margin-top: 0.35rem; color: oklch(var(--foreground-500)); font-size: 0.875rem; }
.empty-note { color: oklch(var(--foreground-500)); text-align: center; padding: 2rem 0; }

.contact-tile { padding: 1.25rem; text-align: center; }
.tile-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--primary-100));
  color: oklch(var(--primary-700));
  font-size: 1.25rem;
}
.tile-label { display: block; font-size: 0.75rem; color: oklch(var(--foreground-400)); }
.tile-value { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: oklch(var(--foreground-800)); word-break: break-word; }
.tile-note { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: oklch(var(--foreground-400)); }
.contact-tile .btn { margin-top: 0.75rem; }

.aside-card, .aside-dark { border-radius: 0.5rem; padding: 1.5rem; }
.aside-dark {
  background: oklch(var(--primary-800));
  color: oklch(var(--background-100) / 0.85);
  margin-bottom: 1.25rem;
}
.aside-dark h2, .aside-card h2 { font-size: 1.125rem; margin-bottom: 1rem; }
.aside-dark h2 { color: oklch(var(--background-50)); }
.aside-lead { color: oklch(var(--foreground-600)); font-size: 0.875rem; margin-bottom: 1rem; }
.aside-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.aside-meta li, .prep-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
}
.aside-meta i, .prep-list i { color: oklch(var(--accent-600)); margin-top: 0.15rem; }
.aside-dark .aside-meta i, .aside-dark .prep-list i { color: oklch(var(--accent-300)); }
.aside-meta a, .footer-wechat {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.prep-list { display: flex; flex-direction: column; gap: 0.65rem; }

.detail-card {
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}
.detail-card + .detail-card { margin-top: 1.25rem; }
.lead-quote {
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid oklch(var(--accent-500));
  color: oklch(var(--foreground-700));
}
.fact-row, .detail-meta, .detail-actions, .thanks-actions, .not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fact-row { margin-bottom: 1.25rem; }
.fact {
  flex: 1 1 12rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: oklch(var(--background-100));
  border: 1px solid oklch(var(--background-200) / 0.7);
}
.fact p { font-size: 0.75rem; color: oklch(var(--foreground-400)); }
.fact strong { display: block; margin-top: 0.25rem; font-size: 0.95rem; }
.fact a { color: oklch(var(--accent-700)); }
.detail-meta { margin-bottom: 1rem; color: oklch(var(--foreground-500)); font-size: 0.875rem; }
.detail-meta a { color: oklch(var(--accent-700)); }
.detail-actions { margin-top: 1.5rem; }
.alert-soft {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: oklch(var(--accent-50));
  color: oklch(var(--foreground-700));
  font-size: 0.875rem;
}
.alert-soft i { color: oklch(var(--accent-700)); }
.author-card, .related-lawyer {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  background: oklch(var(--background-100));
  border: 1px solid oklch(var(--background-200) / 0.7);
}
.author-card img, .related-lawyer img {
  width: 4rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.375rem;
}
.author-card p, .related-lawyer p { color: oklch(var(--foreground-500)); font-size: 0.8125rem; }
.faq-item { padding: 0.85rem 0; border-top: 1px solid oklch(var(--background-200) / 0.8); }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.faq-item p { color: oklch(var(--foreground-600)); font-size: 0.875rem; }

.reading { max-width: 48rem; }
.prose { color: oklch(var(--foreground-700)); font-size: 0.95rem; line-height: 1.85; }
.prose > * + * { margin-top: 0.9rem; }
.prose h2, .prose h3 { font-family: var(--font-heading); color: oklch(var(--foreground-900)); line-height: 1.35; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: oklch(var(--accent-700)); }
.prose img { border-radius: 0.5rem; }
.prose blockquote {
  margin-left: 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid oklch(var(--accent-500));
  background: oklch(var(--accent-50));
  border-radius: 0 0.5rem 0.5rem 0;
}

.form-panel { position: relative; }
.form-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: oklch(var(--foreground-900));
}
.side-form .form-title {
  font-size: 1.1rem;
  padding-left: 0.7rem;
  border-left: 3px solid oklch(var(--accent-500));
}
.form-sub { margin: 0.4rem 0 1.1rem; color: oklch(var(--foreground-500)); font-size: 0.875rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; margin-bottom: 0.45rem; font-size: 0.875rem; font-weight: 500; color: oklch(var(--foreground-700)); }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid oklch(var(--background-300) / 0.7);
  background: oklch(var(--background-50));
  color: oklch(var(--foreground-900));
  font-size: 0.875rem;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: oklch(var(--primary-300));
  box-shadow: 0 0 0 3px oklch(var(--primary-200) / 0.7);
}
.form-check { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-check label { margin: 0; font-weight: 400; }
.form-check a { color: oklch(var(--accent-700)); }
.form-disclaimer { margin-top: 0.85rem; font-size: 0.75rem; color: oklch(var(--foreground-400)); line-height: 1.6; }
.form-btn { border: 0; }
.contact-form .form-btn { width: 100%; background: oklch(var(--primary-700)); }
.contact-form .form-btn:hover { background: oklch(var(--primary-800)); }
@media (min-width: 640px) {
  .contact-form .form-btn { width: auto; }
}
.consult-form .form-panel {
  background: oklch(var(--background-100));
  border: 1px solid oklch(var(--accent-300));
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 12px 32px oklch(var(--primary-900) / 0.06);
}
@media (min-width: 768px) {
  .consult-form .form-panel { padding: 2rem; }
}
.consult-form .form-btn { width: 100%; }
.side-form {
  background: oklch(var(--background-100));
  border: 1px solid oklch(var(--background-200) / 0.7);
  border-radius: 0.5rem;
  padding: 1.15rem 1.15rem 1.25rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.steps-band {
  width: 100%;
  background: oklch(var(--background-100));
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .steps-band { padding: 6rem 0; }
}
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}
.step-item {
  flex: 1 1 16.5rem;
  max-width: 22rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
  border-radius: 0.5rem;
  padding: 1.5rem 1.25rem;
}
.step-item h3, .step-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 0.5rem;
  background: oklch(var(--primary-700));
  color: oklch(var(--background-50));
  font-family: var(--font-heading);
  font-weight: 700;
}
.step-item h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 0.45rem; }
.step-item p { color: oklch(var(--foreground-500)); font-size: 0.875rem; line-height: 1.7; }

.trust-bar {
  background: oklch(var(--background-50));
  border-top: 1px solid oklch(var(--background-200) / 0.7);
  padding: 1.25rem 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem 1.5rem;
}
.trust-item {
  flex: 1 1 14rem;
  max-width: 18rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--accent-100));
  color: oklch(var(--accent-700));
  font-size: 1.15rem;
  line-height: 1;
}
.trust-item .trust-icon i { font-size: 1em; line-height: 1; display: block; }
.trust-item strong, .trust-item > div span, .trust-item a { display: block; }
.trust-item strong { font-size: 0.875rem; }
.trust-item > div span, .trust-item a { font-size: 0.8125rem; color: oklch(var(--foreground-500)); text-decoration: none; word-break: break-word; }

.site-footer {
  background: oklch(var(--primary-800));
  color: oklch(var(--background-100) / 0.65);
  padding: 3rem 0 1.25rem;
}
@media (min-width: 768px) {
  .site-footer { padding: 4rem 0 1.25rem; }
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.25fr 0.8fr 1.05fr 0.9fr; }
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; margin-bottom: 1rem; }
.site-footer .brand-name { color: oklch(var(--background-50)); }
.site-footer .brand-firm, .footer-blurb, .footer-license { color: oklch(var(--background-100) / 0.6); }
.footer-blurb, .footer-license { font-size: 0.875rem; margin-top: 0.35rem; }
.site-footer h3 { color: oklch(var(--background-50)); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links, .footer-nap-list { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a, .footer-nap-list a, .footer-wechat { color: oklch(var(--background-100) / 0.65); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover, .footer-nap-list a:hover, .footer-wechat:hover { color: oklch(var(--background-50)); }
.footer-nap-list li, .footer-wechat { display: flex; align-items: flex-start; gap: 0.45rem; }
.footer-practices-row { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid oklch(var(--background-50) / 0.1); }
.footer-practices { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.footer-practices a { color: oklch(var(--background-100) / 0.65); text-decoration: none; font-size: 0.875rem; }
.footer-practices a:hover { color: oklch(var(--accent-300)); }
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid oklch(var(--background-50) / 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: oklch(var(--background-100) / 0.5);
}
.footer-tech { font-size: 0.75rem; color: oklch(var(--background-100) / 0.38); }
.footer-tech a { color: oklch(var(--background-100) / 0.55); }

.pc-convert { display: none; }
.pc-convert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.pc-convert-text { display: flex; flex-direction: column; }
.pc-convert-text strong { color: oklch(var(--background-50)); }
.pc-convert-text span, .pc-convert-phone { color: oklch(var(--background-100) / 0.75); font-size: 0.875rem; }
.pc-convert-actions { display: flex; align-items: center; gap: 0.75rem; }
.pc-convert-phone { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; font-weight: 600; }
@media (min-width: 1024px) {
  body { padding-bottom: 4.25rem; }
  .pc-convert {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: oklch(var(--primary-800));
    border-top: 1px solid oklch(var(--background-50) / 0.1);
  }
}
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  background: oklch(var(--background-50) / 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid oklch(var(--background-200) / 0.7);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.45rem 0.15rem 0.55rem;
  border: 0;
  background: none;
  color: oklch(var(--foreground-500));
  font-size: 0.6875rem;
  text-decoration: none;
  cursor: pointer;
}
.mobile-bar-item i { font-size: 1.25rem; line-height: 1; }
.mobile-cta { color: oklch(var(--accent-600)); }
.mobile-cta i {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -0.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(var(--accent-500));
  color: oklch(var(--background-50));
  font-size: 1.05rem;
}
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
}

.pager { display: flex; justify-content: center; margin-top: 2.5rem; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid oklch(var(--background-300) / 0.8);
  background: oklch(var(--background-50));
  color: oklch(var(--foreground-700));
  text-decoration: none;
  font-size: 0.875rem;
}
.pagination a:hover { border-color: oklch(var(--accent-400)); color: oklch(var(--accent-700)); }
.pagination .active span, .pagination .current span {
  background: oklch(var(--primary-700));
  border-color: oklch(var(--primary-700));
  color: oklch(var(--background-50));
}
.pagination .disabled span { opacity: 0.45; }

.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 1rem;
  background: oklch(0.12 0.004 260 / 0.55);
}
.wechat-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wechat-modal-box {
  position: relative;
  width: min(100%, 22rem);
  padding: 2rem 1.4rem 1.4rem;
  text-align: center;
  background: oklch(var(--background-50));
  border: 1px solid oklch(var(--background-200) / 0.7);
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px oklch(0.16 0.005 260 / 0.28);
}
.wechat-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: oklch(var(--foreground-500));
  cursor: pointer;
  font-size: 1.25rem;
}
.wechat-modal-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: oklch(var(--accent-100));
  color: oklch(var(--accent-700));
  font-size: 1.5rem;
}
.wechat-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: oklch(var(--foreground-900));
}
.wechat-modal-desc { margin-top: 0.4rem; color: oklch(var(--foreground-500)); font-size: 0.875rem; }
.wechat-qr { width: 180px; height: 180px; margin: 1rem auto; object-fit: contain; }
.wechat-modal-dismiss {
  margin-top: 0.5rem;
  border: 0;
  background: transparent;
  color: oklch(var(--foreground-500));
  cursor: pointer;
}
.wechat-id-row { justify-content: center; }
.thanks-wechat .wechat-qr, .thanks-wechat img { margin-inline: auto; }
@media (min-width: 768px) {
  body:has(#wechat-modal img) .wechat-id-row,
  body:has(#wechat-modal img) .wechat-id-hint { display: none !important; }
}

.off-hours-tip {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  background: oklch(var(--accent-50));
  border: 1px solid oklch(var(--accent-200));
  color: oklch(var(--foreground-700));
  font-size: 0.875rem;
}
.off-hours-tip[hidden] { display: none !important; }
.off-hours-tip-inner { display: flex; gap: 0.5rem; align-items: flex-start; }
.off-hours-tip i { color: oklch(var(--accent-700)); }

.thanks-inner, .not-found-inner { max-width: 40rem; margin-inline: auto; text-align: center; padding: 1rem 0 2rem; }
.not-found-code {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: oklch(var(--accent-300));
  line-height: 1;
  margin-bottom: 0.5rem;
}
.not-found-inner p { color: oklch(var(--foreground-600)); }
.not-found-actions { justify-content: center; margin-top: 1.5rem; }
.thanks-icon { font-size: 3rem; color: oklch(var(--accent-600)); }
.thanks-lead { margin: 1rem 0; color: oklch(var(--foreground-600)); }
.thanks-inner .crumbs, .not-found-inner .crumbs { justify-content: center; }
.thanks-hours { margin-top: 1.5rem; text-align: left; }
.thanks-hours h2 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.35rem; }
.thanks-disclaimer { margin-top: 1rem; font-size: 0.75rem; color: oklch(var(--foreground-400)); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: oklch(var(--accent-700));
  text-decoration: none;
  font-weight: 600;
}

.related-band { padding: 3rem 0 4rem; background: oklch(var(--background-50)); }
.related-block { margin-top: 1.5rem; }
.related-block h3 { font-family: var(--font-heading); margin-bottom: 0.75rem; }
.related-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid oklch(var(--background-200) / 0.8);
  text-decoration: none;
}
.related-item span { flex: 1; }
.related-item em { font-style: normal; color: oklch(var(--accent-700)); font-size: 0.8125rem; }
.related-lawyer-name { font-weight: 600; }
