/* =====================================================
   青山法律事務所 - AOYAMA LAW OFFICE
   Style Sheet
   ===================================================== */

/* ----- CSS Variables ----- */
:root {
  --primary: #1A2744;
  --primary-light: #2A3B5E;
  --primary-dark: #0F1A2E;
  --gold: #B8963E;
  --gold-light: #D4B05C;
  --gold-dark: #9A7B2F;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-50: #F5F6F8;
  --gray-100: #ECEEF2;
  --gray-200: #D8DBE3;
  --gray-300: #B8BDCA;
  --gray-400: #8E95A7;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --text: #2D3748;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 8px 32px rgba(26, 39, 68, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 39, 68, 0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --header-height: 80px;
  --top-bar-height: 40px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--top-bar-height));
}

body {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only {
  display: inline;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 150, 62, 0.4);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ----- Top Bar ----- */
.top-bar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right a {
  color: var(--gold-light);
  font-weight: 500;
}

.top-bar-right a:hover {
  color: var(--gold);
}

.top-bar-divider {
  opacity: 0.3;
}

.top-bar i {
  margin-right: 4px;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-jp {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--gold);
  background-color: var(--gray-50);
}

.btn-cta-nav {
  background-color: var(--gold);
  color: var(--white) !important;
  margin-left: 8px;
  font-weight: 600;
}

.btn-cta-nav:hover {
  background-color: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: calc(var(--header-height) + var(--top-bar-height));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.92) 0%, rgba(26, 39, 68, 0.85) 50%, rgba(42, 59, 94, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 80px 20px;
}

.hero-sub {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-desc {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note i {
  color: var(--gold-light);
  margin-right: 4px;
}

/* ----- Sections ----- */
.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-sub {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.section-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ----- Services ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 26px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--gold-dark);
}

.service-link i {
  font-size: 11px;
  transition: transform var(--transition);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-number {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.about-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  margin: 0 auto 24px;
}

.about-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  text-align: left;
}

/* ----- Lawyers ----- */
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lawyer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.lawyer-avatar {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.lawyer-avatar i {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.25);
}

.lawyer-info {
  padding: 28px;
}

.lawyer-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.lawyer-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.lawyer-name-en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.lawyer-bar {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.lawyer-bar i {
  color: var(--gold);
  margin-right: 4px;
}

.lawyer-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.specialty-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--gray-100);
  padding: 4px 12px;
  border-radius: 20px;
}

.lawyer-message {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  padding: 16px;
  background-color: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

/* ----- Flow ----- */
.flow {
  background: var(--white) !important;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.flow-step {
  flex: 1;
  max-width: 200px;
  text-align: center;
  padding: 0 12px;
}

.flow-number {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.flow-icon {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.flow-step:hover .flow-icon {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.05);
}

.flow-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.flow-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 56px;
  color: var(--gray-300);
  font-size: 16px;
}

/* ----- Fee ----- */
.fee-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

.fee-notice i {
  font-size: 24px;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.fee-notice p {
  font-size: 14px;
  line-height: 1.8;
}

.fee-notice strong {
  color: var(--gold-light);
}

.fee-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.fee-table thead {
  background: var(--primary);
  color: var(--white);
}

.fee-table th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.fee-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.fee-table tbody tr:last-child td {
  border-bottom: none;
}

.fee-table tbody tr:hover {
  background-color: var(--gray-50);
}

.fee-table tbody tr:nth-child(even) {
  background-color: var(--off-white);
}

.fee-table tbody tr:nth-child(even):hover {
  background-color: var(--gray-100);
}

.fee-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
}

/* ----- FAQ ----- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(184, 150, 62, 0.15);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: background-color var(--transition);
}

.faq-question:hover {
  background-color: var(--gray-50);
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-question i {
  color: var(--gold);
  transition: transform var(--transition);
  font-size: 14px;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ----- Office Info ----- */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.office-table {
  width: 100%;
  border-collapse: collapse;
}

.office-table tr {
  border-bottom: 1px solid var(--border);
}

.office-table th {
  padding: 16px 20px 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  white-space: nowrap;
  width: 100px;
  vertical-align: top;
}

.office-table td {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text);
}

.office-table td a {
  color: var(--gold);
  font-weight: 600;
}

.office-table td a:hover {
  color: var(--gold-dark);
}

.office-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.office-map iframe {
  display: block;
}

/* ----- News ----- */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-item:hover {
  padding-left: 12px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-info {
  background-color: var(--primary);
  color: var(--white);
}

.tag-column {
  background-color: var(--gold);
  color: var(--white);
}

.tag-media {
  background-color: #2D6A4F;
  color: var(--white);
}

.news-title-text {
  font-size: 14px;
  color: var(--text);
  transition: color var(--transition);
}

.news-item:hover .news-title-text {
  color: var(--gold);
}

/* ----- CTA ----- */
.cta {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0 !important;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.95) 0%, rgba(26, 39, 68, 0.9) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.cta-sub {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.cta-phone > i {
  font-size: 28px;
  color: var(--gold-light);
}

.cta-phone-number {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  display: block;
  line-height: 1.2;
}

.cta-phone-number:hover {
  color: var(--gold-light);
}

.cta-phone-hours {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Footer ----- */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  background: rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-jp {
  color: var(--white);
}

.footer-logo .logo-en {
  color: var(--gold);
}

.footer-address {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-tel a {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 15px;
}

.footer-tel a:hover {
  color: var(--gold);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bar-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bar-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-bar-info i {
  color: var(--gold);
  margin-right: 4px;
  font-size: 10px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  font-family: var(--font-en);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ----- Page Top ----- */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.page-top.visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-4px);
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lawyers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lawyers-grid .lawyer-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .flow-steps {
    flex-wrap: wrap;
    gap: 24px;
  }

  .flow-arrow {
    display: none;
  }

  .flow-step {
    flex: 0 0 calc(33.333% - 16px);
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --top-bar-height: 0px;
  }

  .pc-only {
    display: none;
  }

  .top-bar {
    display: none;
  }

  .header {
    top: 0;
  }

  /* Mobile Nav */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .btn-cta-nav {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  /* Hero */
  .hero {
    min-height: 500px;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 15px;
  }

  /* Sections */
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-card {
    padding: 36px 28px;
  }

  /* Lawyers */
  .lawyers-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lawyers-grid .lawyer-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  /* Flow */
  .flow-step {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 0;
  }

  .flow-icon {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .flow-number {
    margin-bottom: 4px;
  }

  /* Fee */
  .fee-table-wrapper {
    border: none;
    box-shadow: none;
  }

  .fee-table thead {
    display: none;
  }

  .fee-table,
  .fee-table tbody,
  .fee-table tr,
  .fee-table td {
    display: block;
    width: 100%;
  }

  .fee-table tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 16px;
  }

  .fee-table td {
    padding: 6px 0;
    border-bottom: none;
    font-size: 14px;
  }

  .fee-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary);
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
  }

  .fee-notice {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  /* Office */
  .office-grid {
    grid-template-columns: 1fr;
  }

  .office-map iframe {
    height: 300px;
  }

  /* News */
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-title-text {
    flex-basis: 100%;
  }

  /* CTA */
  .cta {
    background-attachment: scroll;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-phone {
    flex-direction: column;
    padding: 20px 24px;
    gap: 8px;
    text-align: center;
  }

  .cta-phone-number {
    font-size: 26px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 22px;
  }

  .container {
    padding: 0 16px;
  }
}
