/*
Theme Name:  LegalBase BEAUTY
Theme URI: https://example.com/bennavi
Author: Your Name
Author URI: https://example.com
Description: 美容業界（美容室・エステサロン・ネイルサロン・美容クリニック）向け 弁護士検索・相談予約サイト用WordPressテーマ
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bennavi
Tags: lawyer, legal, consultation, booking
*/

/* ===== Base Reset & Variables =====
 * LegalBase BEAUTY — Champagne Gold × Off-White × Near-Black
 * See new-Design/DESIGN.md §2 for the full palette.
 * Legacy tokens (--primary, --text-main etc.) are remapped to the new palette
 * so existing selectors pick up the new colors without mass class renames.
 */
:root {
  /* --- LegalBase BEAUTY design tokens (canonical) --- */
  --lb-bg:             #faf8f4;
  --lb-fg:             #2a2724;
  --lb-primary:        #c9a961;
  --lb-primary-fg:     #faf8f4;
  --lb-accent:         #b08f3f;
  --lb-secondary:      #f2ece0;
  --lb-muted:          #ede7db;
  --lb-muted-fg:       #7d756a;
  --lb-border:         #e4ddcd;
  --lb-dark:           #2a2724;
  --lb-radius:         0.5rem;
  --lb-font-sans:      'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lb-font-serif:     'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;

  /* --- Legacy aliases (remapped to BEAUTY palette) --- */
  --primary:           var(--lb-primary);
  --primary-dark:      var(--lb-accent);
  --primary-light:     #dcc38a;
  --secondary:         var(--lb-secondary);
  --text-main:         var(--lb-fg);
  --text-muted:        var(--lb-muted-fg);
  --border:            var(--lb-border);
  --white:             #ffffff;
  --line-green:        #2a2724; /* LINE btn -> near-black per DESIGN.md §2.3 */
  --background:        var(--lb-muted);
  --accent-light:      var(--lb-muted);
  --dark-section:      var(--lb-dark);
  --gradient-start:    #756a58;
  --gradient-end:      #b08f3f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--lb-font-sans);
  font-feature-settings: 'palt';
  background-color: var(--lb-bg);
  color: var(--lb-fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.grecaptcha-badge { visibility: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--lb-font-serif);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--lb-fg);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.tracking-wide {
  letter-spacing: 0.1em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
  color: #fff;
}

.font-bold {
  font-weight: 700;
}

.font-serif {
  font-family: var(--lb-font-serif);
  letter-spacing: 0.04em;
}

/* ===== Layout Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  padding: 5rem 0;
  background: var(--dark-section);
  color: #E8E8E8;
}

.section-dark h2,
.section-dark h3,
.section-dark .text-primary {
  color: white;
}

.section-dark .text-muted {
  color: #B8B8B8;
}

.section2 {
  padding: 1rem 10px;
}

@media (max-width: 768px) {
  .section {
    padding: 1rem 10px;
  }

  .section-dark {
    padding: 3rem 1rem;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

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

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-1 {
  flex: 1;
}

.gap-1 {
  gap: 0.1rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Margin Utilities */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Padding Utilities */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

@media (min-width: 768px) {
  .md\:p-8 {
    padding: 2rem;
  }

  .md\:p-10 {
    padding: 2.5rem;
  }
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Grid Utilities - Basic */
.grid {
  display: grid;
}

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

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

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

/* Text Colors */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-gray-300 {
  color: #D1D5DB;
}

.text-gray-400 {
  color: #9CA3AF;
}

.text-gray-500 {
  color: #6B7280;
}

.text-gray-600 {
  color: #4B5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-600 {
  color: #2563EB;
}

.text-blue-700 {
  color: #1D4ED8;
}

.text-blue-800 {
  color: #1E40AF;
}

.text-green-600 {
  color: #059669;
}

.text-white {
  color: white;
}

/* Backgrounds */
.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #F9FAFB;
}

.bg-gray-100 {
  background-color: #F3F4F6;
}

.bg-blue-50 {
  background-color: #EFF6FF;
}

.bg-green-100 {
  background-color: #D1FAE5;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: var(--border);
}

.border-2 {
  border-width: 2px;
  border-style: solid;
  border-color: var(--border);
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-b-2 {
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

.border-gray-100 {
  border-color: #F3F4F6;
}

.border-gray-200 {
  border-color: #E5E7EB;
  margin-top: 1.5rem;
}

.border-primary {
  border-color: var(--primary);
}

.border-blue-100 {
  border-color: #DBEAFE;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.object-cover {
  object-fit: cover;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-32 {
  width: 8rem;
}

.h-32 {
  height: 8rem;
}

/* Responsive Utilities (Vanilla CSS Simulation of Tailwind) */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:justify-start {
    justify-content: flex-start;
  }

  .md\:items-start {
    align-items: flex-start;
  }

  .md\:mx-0 {
    margin-left: 0;
    margin-right: 0;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {

  /* lg breakpoint */
  .lg\:grid {
    display: grid;
  }

  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .lg\:gap-8 {
    gap: 2rem;
  }

  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .lg\:mt-0 {
    margin-top: 0;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.sticky {
  position: sticky;
}

.top-6 {
  top: 1.5rem;
}

.top-8 {
  top: 2rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-hiddenthanks {
  overflow: hidden;
  padding: 6rem 40px 1rem 30px;
}

.pt-6 {
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .overflow-hiddenthanks {
    padding: 3rem 0 1rem 0;
  }
}

/* Specific Component Styles */
.max-w-7xl {
  max-width: 80rem;
}

/* Header */
.site-header {
  background: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.site-title {
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  /* Subtle rounded corners like J-Q */
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 175, 175, 0.3);
  transform: translateY(-2px);
}

/* J-Q Style Arrow Box Button */
.btn-arrow-box {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  width: 300px;
  padding: 0;
  border-radius: 40px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-arrow-box .btn-text {
  padding: 1rem 0px 1rem 1rem;
  flex: 1;
}

.btn-arrow-box .btn-arrow {
  /*background: rgba(0, 0, 0, 0.15);*/
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-arrow-box:hover {
  box-shadow: 0 4px 12px rgba(0, 175, 175, 0.3);
  transform: translateY(-2px);
}

/*.btn-arrow-box:hover .btn-arrow {
  background: rgba(0, 0, 0, 0.25);
}*/

/* Gradient Button (J-Q Header Style) */
.btn-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 4px;
}

.btn-gradient:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--background);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(0, 175, 175, 0.05);
}

.btn-line {
  background: var(--line-green);
  color: white;
  border-radius: 4px;
}

.btn-line:hover {
  background: #05b34b;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  padding: 0 1rem;
}

.hero-subtitle {
  color: var(--primary);
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.7rem;
  }
}

.hero-text {
  color: #FFF;
  font-size: 1.1rem;
  line-height: 2;
  font-weight: 500;
  margin-bottom: 3rem;
}

/* Feature Cards */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-num {
  font-size: 3rem;
  font-weight: 300;
  color: #D4CFC7;
  display: block;
  margin-bottom: 1rem;
}

.card:hover .feature-num {
  color: var(--primary);
}

/* Category Grid */
.category-item {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.category-item:hover {
  background: #F0EBE3;
}

.category-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.category-name {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.category-item:hover .category-name {
  color: var(--primary);
}

/* Flow */
.flow-step {
  display: flex;
  gap: 1.5rem;
  /*background: white;*/
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.step-label {
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  flex-shrink: 0;
}

/* Search Filters UI */
.filter-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  gap: 0.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #E8E4DE;
  color: #A0998F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.step-circle.active {
  background: #8b7354;
  color: white;
}

.step-text {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #A0998F;
}

.step-text.active {
  color: var(--primary);
}

.progress-line {
  width: 2rem;
  height: 2px;
  background: #E8E4DE;
  margin-top: -1.5rem;
}

.progress-line.active {
  background: var(--primary);
}

.filter-card {
  /*border: 1px solid var(--border);*/
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  max-width: 750px;
  margin: 0 auto;
}

.filter-header {
  background: #FFFFFF;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}

.advisor-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.advisor-bubble {
  flex: 1;
}

.advisor-name {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.filter-content {
  padding: 1rem;
}

/* Filter Buttons Grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.filter-option {
  padding: 1rem;
  /*border: 1px solid var(--border);*/
  border-radius: 0.5rem;
  background: #F3F3F3;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.filter-option:hover {
  border-color: var(--primary);
  background: #8b7354;
  color: #fff;
}

.filter-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Lawyer List */
.lawyer-card-container {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.lawyer-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

@media (min-width: 768px) {
  .lawyer-card {
    flex-direction: row;
  }
}

.lawyer-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lawyer-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .lawyer-card-content {
    flex-direction: row;
  }
}

.lawyer-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.lawyer-info {
  flex: 1;
}

.lawyer-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .lawyer-actions {
    width: 200px;
    margin-left: auto;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: var(--accent-light);
  color: var(--text-muted);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--text-main);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.footer-links a {
  color: #9CA3AF;
  font-size: 0.875rem;
  margin: 0 1rem;
}

.footer-links a:hover {
  color: white;
}

/* Utilities for visibility */
.hidden {
  display: none !important;
}

/* Contact Form 7 Overrides (Minimal) */
div.wpcf7-response-output {
  margin: 1em 0;
  padding: 0.5em 1em;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

/* Contact Form 7 (Design) */
/* 全体ラップ */
.cf7-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* 各ブロック */
.cf7-group {
  margin-bottom: 24px;
}

/* ラベル */
.cf7-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

/* 入力欄共通 */
.cf7-input input,
.cf7-input select,
.cf7-input textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* テキストエリア */
.cf7-input textarea {
  min-height: 120px;
  resize: vertical;
}

/* フォーカス時 */
.cf7-input input:focus,
.cf7-input select:focus,
.cf7-input textarea:focus {
  outline: none;
  border-color: #999;
}

/* ラジオボタン */
.cf7-radio {
  display: flex;
  gap: 24px;
}

.cf7-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

/* プライバシーポリシー同意 */
.cf7-consent {
  margin: 32px 0 16px;
}

.cf7-consent .wpcf7-list-item {
  margin: 0;
}

.cf7-consent label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

/* 必須・任意タグ共通 */
.cf7-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.4;
}

/* 必須 */
.tag.required {
  background: #222;
  color: #fff;
}

/* 任意 */
.tag.optional {
  background: #eee;
  color: #666;
}


/* 送信ボタン */
.cf7-submit input[type="submit"] {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: #1f1f1f;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.cf7-submit input[type="submit"]:hover {
  opacity: 0.9;
}

/* ワンポイント付きボックス */
.cstm-box-pin {
  margin: 0.4em auto;
  /* 外側余白 */
  padding: 1em;
  /* 内側余白 */
  position: relative;
  /* 擬似要素配置の基準 */
  border: 8px solid #eee;
  /* 枠線（太さ・種類・色） */
  z-index: 0;
  /* 重なり順 */
  max-width: 800px;
  /* 最大幅 */
}

.cstm-box-pin::before {
  content: '';
  /* 擬似要素にコンテンツなし */
  display: block;
  /* ブロック要素として表示 */
  position: absolute;
  /* 絶対位置指定 */
  top: -8px;
  /* 上に配置 */
  left: -8px;
  /* 左に配置 */
  width: 8px;
  /* サイズ（幅） */
  height: 8px;
  /* サイズ（高さ） */
  background-color: #cca497;
  /* ワンポイントの色 */
  z-index: 1;
  /* 前面に表示 */
}

/* 段落の余白リセット */
.cstm-box-pin p {
  margin: 0;
}

/* Prose (Typography) Styles */
.prose p {
  margin-bottom: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Features Section Styles */
.features-section {
  padding: 6rem 0;
  background-color: #f8f9fa;
}

@media (min-width: 768px) {
  .features-section {
    padding: 8rem 0;
  }
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.features-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.features-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.features-label-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #6b7280;
  font-weight: 500;
}

.features-label-line {
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.features-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .features-heading {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .features-heading {
    font-size: 3rem;
  }
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.feature-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

.feature-card:hover .feature-number {
  color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
  color: #0f172a;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.feature-description {
  color: #6b7280;
  line-height: 1.625;
  margin: 0;
}

/* Category Section Styles */
.category-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .category-section {
    padding: 8rem 0;
  }
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.category-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.category-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-label-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #6b7280;
  font-weight: 500;
}

.category-label-line {
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.category-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .category-heading {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .category-heading {
    font-size: 3rem;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.category-card {
  background-color: #f8f9fa;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .category-card {
    padding: 2rem;
  }
}

.category-card:hover {
  background-color: #0f172a;
}

.category-card:hover .category-icon {
  color: #ffffff;
}

.category-card:hover .category-title {
  color: #ffffff;
}

.category-card:hover .category-description {
  color: rgba(255, 255, 255, 0.7);
}

.category-icon {
  display: inline-block;
  color: #0f172a;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.category-icon svg {
  width: 2rem;
  height: 2rem;
}

.category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.category-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  transition: color 0.3s ease;
}

/* Flow Section Styles */
.flow-section {
  padding: 6rem 0;
  background-color: #0f172a;
  color: #f8f9fa;
}

@media (min-width: 768px) {
  .flow-section {
    padding: 8rem 0;
  }
}

.flow-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flow-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.flow-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.flow-label-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(248, 249, 250, 0.6);
  font-weight: 500;
}

.flow-label-line {
  flex: 1;
  height: 1px;
  background-color: rgba(248, 249, 250, 0.2);
}

.flow-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f8f9fa;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .flow-heading {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .flow-heading {
    font-size: 3rem;
  }
}

.flow-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}


.flow-step-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.flow-step-number {
  font-size: 3.75rem;
  font-weight: 700;
  color: rgba(248, 249, 250, 0.1);
  line-height: 1;
}

@media (min-width: 768px) {
  .flow-step-number {
    font-size: 4.5rem;
  }
}

.flow-step-text {
  padding-top: 1rem;
}

.flow-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8f9fa;
  margin-bottom: 0.75rem;
}

.flow-step-description {
  color: rgba(248, 249, 250, 0.7);
  line-height: 1.625;
  margin: 0;
}

.flow-step-connector {
  display: none;
}

@media (min-width: 768px) {
  .flow-step-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 3rem;
    height: 1px;
    background-color: rgba(248, 249, 250, 0.2);
  }
}

/* Terms Hero Section Styles */
.terms-hero-section {
  padding: 4rem 0;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .terms-hero-section {
    padding: 6rem 0 4rem 0;
  }
}

.terms-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.terms-hero-inner {
  max-width: 56rem;
}

.terms-hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #6b7280;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.terms-hero-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0;
}

@media (min-width: 768px) {
  .terms-hero-heading {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .terms-hero-heading {
    font-size: 3rem;
  }
}

/* Terms Content Section Styles */
.terms-content-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .terms-content-section {
    padding: 4rem 0;
  }
}

.terms-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.terms-content-inner {
  width: 100%;
}

.terms-date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.terms-intro {
  color: #0f172a;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.terms-articles {
  margin-bottom: 4rem;
}

.terms-article {
  margin-bottom: 3rem;
}

.terms-article-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.terms-article-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(107, 114, 128, 0.3);
}

.terms-article-content {
  color: #6b7280;
  line-height: 1.75;
}

.terms-article-content p {
  margin-bottom: 1rem;
}

.terms-article-content p:last-child {
  margin-bottom: 0;
}

.terms-article-content ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-top: 1rem;
}

.terms-article-content ul li {
  margin-bottom: 0.5rem;
}

.terms-contact {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
}

.terms-contact-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.terms-contact-box {
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .terms-contact-box {
    padding: 2rem;
  }
}

.terms-contact-box p {
  color: #6b7280;
  line-height: 1.75;
  margin: 0 0 0.5rem 0;
}

.terms-contact-box p:last-child {
  margin-bottom: 0;
}

/* Search Section Styles */
.search-section {
  padding: 6rem 0;
  background-color: #f8f9fa;
}

@media (min-width: 768px) {
  .search-section {
    padding: 8rem 0;
  }
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.search-inner {
  width: 100%;
  margin: 0 auto;
}

.search-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.search-label-text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #6b7280;
  font-weight: 500;
}

.search-label-line {
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.search-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .search-heading {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .search-heading {
    font-size: 3rem;
  }
}

.search-description {
  color: #6b7280;
  margin-bottom: 3rem;
}

.search-form {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .search-form {
    padding: 3rem;
  }
}

.search-step {
  margin-bottom: 2.5rem;
}

.search-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.search-step-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.search-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .search-options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.search-options-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-option {
  cursor: pointer;
}

.search-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.search-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #f8f9fa;
  color: #0f172a;
  transition: all 0.2s ease;
}

.search-option-input:checked+.search-option-label {
  background-color: #0f172a;
  color: #ffffff;
}

.search-option-label:hover {
  background-color: #e5e7eb;
}

.search-option-input:checked+.search-option-label:hover {
  background-color: #1e293b;
}

.search-option-check {
  display: none;
  width: 1rem;
  height: 1rem;
}

.search-option--checkbox .search-option-input:checked+.search-option-label .search-option-check {
  display: block;
}

.search-submit {
  width: 100%;
  background-color: #0f172a;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.search-submit:hover {
  background-color: #1e293b;
}

.search-submit-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.search-submit:hover .search-submit-arrow {
  transform: translateX(0.25rem);
}

/* Checkbox Selection Style */
.filter-option:has(input:checked),
.filter-option.selected {
  background-color: #8b7354;
  color: #ffffff !important;
  border-color: #8b7354;
}

.filter-option:has(input:checked) span,
.filter-option.selected span {
  color: #ffffff;
}
/* About Section Styles */
.about-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    .about-section {
        padding: 8rem 0;
    }
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-inner {
    max-width: 72rem;
    margin: 0 auto;
}

.about-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.about-label-text {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #6b7280;
    font-weight: 500;
}

.about-label-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
}

.about-heading {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .about-heading {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .about-heading {
        font-size: 3rem;
    }
}

.about-text {
    color: #6b7280;
    line-height: 1.625;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    aspect-ratio: 3 / 2;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #f3f4f6;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-decoration {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    z-index: -1;
}

/* ===== Lawyer Single Page Table Styles ===== */
.lawyer-info-table th {
    width: 25%; /* SP (mobile) default */
}
.wp-block-list{
margin-bottom: 2rem;margin-top: 1rem;padding: 0 0 0 0.9rem;}

@media (min-width: 768px) {
    .lawyer-info-table th {
        width: 20%; /* PC (tablet and above) */
    }
}

/* =======================================================================
 * BEAUTY Rebrand Override Layer
 * -----------------------------------------------------------------------
 * Overrides hard-coded colors and typography throughout the theme so the
 * existing section structure (about / features / category / flow / search)
 * picks up the LegalBase BEAUTY palette without renaming any selectors.
 *
 * - #0f172a (slate near-black)   → var(--lb-fg)
 * - #f8f9fa (light gray bg)      → var(--lb-secondary)
 * - #6b7280 (muted gray text)    → var(--lb-muted-fg)
 * - #e5e7eb (light border)       → var(--lb-border)
 * - #2563eb (blue email button)  → var(--lb-primary)
 * - #8b7354 (legacy brown)       → var(--lb-primary)
 *
 * bennavi-tenant の --brand-primary が設定された場合は、ロゴ円など
 * whitelabel 対象箇所のみそれを優先する（フォールバック記法を使用）。
 * ======================================================================= */

/* Headings — Serif with tighter tracking per DESIGN.md §3 */
.hero-title,
.about-heading,
.features-heading,
.category-heading,
.flow-heading,
.search-heading,
.terms-hero-heading,
.feature-title,
.category-title,
.flow-step-title {
  font-family: var(--lb-font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lb-fg);
}

.hero-title { font-weight: 500; }

/* ----- Hero / site header ----- */
.hero-subtitle {
  color: var(--lb-primary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* Hero bg placeholder — shown when no image URL is supplied */
.hero-bg--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 169, 97, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(176, 143, 63, 0.22) 0%, transparent 50%),
    linear-gradient(135deg, var(--lb-bg) 0%, var(--lb-secondary) 60%, var(--lb-muted) 100%);
  z-index: 0;
}
.hero-section .hero-content { position: relative; z-index: 2; }
/* When a real image is provided, apply a full-section brand-tinted overlay */
.hero-section:has(.hero-bg:not(.hero-bg--placeholder))::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 39, 36, 0.68) 0%, rgba(42, 39, 36, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-section:has(.hero-bg:not(.hero-bg--placeholder)) .hero-subtitle { color: #e8d9ac; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero-section:has(.hero-bg:not(.hero-bg--placeholder)) .hero-text { color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
/* When using a real image, keep the hero-title legible on dark overlay */
.hero-section:has(.hero-bg:not(.hero-bg--placeholder)) .hero-title { color: #ffffff; }
.hero-section:has(.hero-bg:not(.hero-bg--placeholder)) .hero-title .font-medium { color: #ffffff; }
/* When using the placeholder, force readable text on the light champagne bg */
.hero-section:has(.hero-bg--placeholder) .hero-title,
.hero-section:has(.hero-bg--placeholder) .hero-title .font-medium { color: var(--lb-fg); }
.hero-section:has(.hero-bg--placeholder) .hero-text { color: var(--lb-muted-fg); }

/* About image placeholder */
.about-image-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--lb-muted) 0%, var(--lb-secondary) 55%, rgba(201, 169, 97, 0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-placeholder__label {
  font-family: var(--lb-font-serif);
  letter-spacing: 0.4em;
  color: var(--lb-primary);
  font-size: 1.25rem;
}

.site-header {
  background: rgba(250, 248, 244, 0.88);
  border-bottom-color: var(--lb-border);
}

.logo-circle {
  background: var(--brand-primary, var(--lb-primary));
}

.site-title {
  font-family: var(--lb-font-serif);
  color: var(--lb-fg);
}

/* ----- New Logo lockup (sparkle + LegalBase / BEAUTY) ----- */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1;
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary, var(--lb-primary));
  flex-shrink: 0;
}
.site-logo__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}
.site-logo__name {
  font-family: var(--lb-font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--lb-fg);
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-logo__tagline {
  font-family: var(--lb-font-sans);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--brand-primary, var(--lb-primary));
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .site-logo__name { font-size: 1.15rem; }
  .site-logo__tagline { font-size: 0.58rem; letter-spacing: 0.36em; }
  .site-logo__mark svg { width: 18px; height: 18px; }
}
.site-logo--footer .site-logo__name { font-size: 1.15rem; color: var(--lb-primary-fg); }
.site-logo--footer .site-logo__tagline { font-size: 0.58rem; color: var(--lb-primary); }

.nav-link { color: var(--lb-muted-fg); }
.nav-link:hover { color: var(--lb-primary); }

/* ----- Section labels (ABOUT / FEATURES / CATEGORY / FLOW / SEARCH) ----- */
.about-label-text,
.features-label-text,
.category-label-text,
.flow-label-text,
.search-label-text,
.terms-hero-label {
  color: var(--lb-muted-fg);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.about-label-line,
.features-label-line,
.category-label-line,
.search-label-line {
  background-color: var(--lb-border);
}

/* ----- About ----- */
.about-section { background-color: var(--lb-bg); }
.about-text { color: var(--lb-muted-fg); line-height: 1.9; }
.about-image { background-color: var(--lb-muted); }
.about-image-decoration { background-color: var(--lb-secondary); }

/* ----- Features ----- */
.features-section { background-color: var(--lb-secondary); }
.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--lb-border);
  box-shadow: none;
}
.feature-card:hover {
  box-shadow: 0 10px 30px -12px rgba(42, 39, 36, 0.18);
  border-color: var(--lb-primary);
}
.feature-number { color: var(--lb-border); font-family: var(--lb-font-serif); font-weight: 500; }
.feature-card:hover .feature-number { color: var(--lb-primary); }
.feature-icon { color: var(--lb-primary); }
.feature-description { color: var(--lb-muted-fg); }

/* ----- Categories ----- */
.category-section { background-color: var(--lb-bg); }
.category-card {
  background-color: var(--lb-muted);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.category-card:hover {
  background-color: var(--lb-dark);
  border-color: var(--lb-dark);
}
.category-icon { color: var(--lb-primary); }
.category-card:hover .category-icon { color: var(--lb-primary); }
.category-card:hover .category-title { color: #ffffff; }
.category-card:hover .category-description { color: rgba(255, 255, 255, 0.72); }
.category-description { color: var(--lb-muted-fg); }

/* ----- Flow ----- */
.flow-section { background-color: var(--lb-dark); color: var(--lb-primary-fg); }
.flow-label-text { color: rgba(250, 248, 244, 0.55); }
.flow-label-line { background-color: rgba(250, 248, 244, 0.2); }
.flow-heading { color: var(--lb-primary-fg); }
.flow-step-number { color: rgba(201, 169, 97, 0.35); font-family: var(--lb-font-serif); font-weight: 500; }
.flow-step-title { color: var(--lb-primary-fg); }
.flow-step-description { color: rgba(250, 248, 244, 0.72); }
.flow-step-connector { background-color: rgba(250, 248, 244, 0.18); }

/* ----- Search (stepper) ----- */
.search-section { background-color: var(--lb-secondary); }
.search-form {
  background-color: #ffffff;
  border: 1px solid var(--lb-border);
  box-shadow: 0 1px 3px rgba(42, 39, 36, 0.04);
}
.search-description { color: var(--lb-muted-fg); }
.search-step-number { background-color: var(--lb-primary); color: var(--lb-primary-fg); }
.search-step-title { color: var(--lb-fg); }
.search-option-label { background-color: var(--lb-secondary); color: var(--lb-fg); }
.search-option-input:checked + .search-option-label { background-color: var(--lb-primary); color: var(--lb-primary-fg); }
.search-option-label:hover { background-color: var(--lb-muted); }
.search-option-input:checked + .search-option-label:hover { background-color: var(--lb-accent); }
.search-submit { background-color: var(--lb-primary); color: var(--lb-primary-fg); }
.search-submit:hover { background-color: var(--lb-accent); }

/* ----- Filter card / stepper (front-page search-form) ----- */
.step-circle.active { background: var(--lb-primary); color: var(--lb-primary-fg); }
.step-text.active   { color: var(--lb-primary); }
.progress-line.active { background: var(--lb-primary); }
.filter-option:hover {
  background: var(--lb-muted);
  color: var(--lb-fg);
  border-color: var(--lb-primary);
}
.filter-option.selected,
.filter-option:has(input:checked) {
  background-color: var(--lb-primary) !important;
  color: var(--lb-primary-fg) !important;
  border-color: var(--lb-primary) !important;
}
.filter-option:has(input:checked) span,
.filter-option.selected span { color: var(--lb-primary-fg); }
.advisor-icon { background: var(--lb-primary); }
.advisor-name { color: var(--lb-primary); }

/* ----- Buttons ----- */
.btn { font-family: var(--lb-font-sans); }
.btn-primary { background: var(--lb-primary); color: var(--lb-primary-fg); }
.btn-primary:hover {
  background: var(--lb-accent);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
}
.btn-arrow-box { background: var(--lb-primary); color: var(--lb-primary-fg); }
.btn-arrow-box:hover { background: var(--lb-accent); box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--lb-primary);
  color: var(--lb-primary);
}
.btn-outline:hover {
  border-color: var(--lb-accent);
  background: rgba(201, 169, 97, 0.08);
  color: var(--lb-accent);
}
.btn-ghost { color: var(--lb-primary); }
.btn-ghost:hover { background: rgba(201, 169, 97, 0.08); }
/* LINE button — near-black per DESIGN.md §2.3 (overrides legacy green) */
.btn-line { background: var(--lb-dark); color: #ffffff; }
.btn-line:hover { background: var(--lb-accent); box-shadow: 0 4px 12px rgba(42, 39, 36, 0.25); }

/* ----- Lawyer card ----- */
.lawyer-card {
  background: #ffffff;
  border-color: var(--lb-border);
}
.lawyer-card:hover {
  box-shadow: 0 10px 30px -12px rgba(42, 39, 36, 0.18);
  border-color: var(--lb-primary);
}
.badge {
  background: var(--lb-muted);
  color: var(--lb-muted-fg);
}
.badge-condition {
  background: rgba(201, 169, 97, 0.12);
  color: var(--lb-accent);
}

/* ----- Footer ----- */
.site-footer { background: var(--lb-dark); color: #ffffff; }
.footer-links a { color: rgba(250, 248, 244, 0.65); }
.footer-links a:hover { color: var(--lb-primary); }

/* ----- cstm-box-pin accent ----- */
.cstm-box-pin { border-color: var(--lb-muted); }
.cstm-box-pin::before { background-color: var(--lb-primary); }

/* ----- Form (CF7) submit ----- */
.cf7-submit input[type="submit"] { background: var(--lb-dark); }
.cf7-submit input[type="submit"]:hover { background: var(--lb-accent); opacity: 1; }
.tag.required { background: var(--lb-dark); }

/* ----- Utility: brighten muted text ----- */
.text-muted { color: var(--lb-muted-fg); }
.text-primary { color: var(--lb-primary); }
.text-main { color: var(--lb-fg); }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--lb-secondary); }
.border-primary { border-color: var(--lb-primary); }

/* ----- Terms page overrides ----- */
.terms-hero-section { border-bottom-color: var(--lb-border); }
.terms-contact-box { background-color: var(--lb-secondary); }
.terms-article-title,
.terms-contact-title { color: var(--lb-fg); }
.terms-intro,
.terms-article-content,
.terms-contact-box p,
.terms-date { color: var(--lb-muted-fg); }
.terms-article-number { color: rgba(201, 169, 97, 0.45); font-family: var(--lb-font-serif); }
.terms-contact { border-top-color: var(--lb-border); }

/* ----- Single lawyer page: neutralise Tailwind-ish blue/green utilities ----- */
.text-blue-600,
.text-blue-700,
.text-blue-800 { color: var(--lb-primary); }
.text-green-600 { color: var(--lb-primary); }
.bg-blue-50 { background-color: rgba(201, 169, 97, 0.08); }
.bg-green-100 { background-color: rgba(201, 169, 97, 0.15); }
/* Sticky contact card on single-lawyer page */
.sticky .shadow-blue-50,
.sticky [class*="shadow-blue"] { box-shadow: 0 12px 32px rgba(201, 169, 97, 0.18); }
.sticky .border-2 { border-color: var(--lb-border); }
/* Header decoration bar (from-blue-400 to-blue-600) */
.sticky .bg-gradient-to-r.from-blue-400,
.sticky [class*="from-blue"] {
  background: linear-gradient(to right, var(--lb-primary), #b08f3f) !important;
}
/* "Flow" info box bg-blue-50/50 inside sticky card */
.sticky .bg-blue-50\/50 { background-color: rgba(201, 169, 97, 0.1); }
.sticky .text-blue-800 { color: var(--lb-fg); }
/* Primary specialty pills on single-lawyer info table */
.lawyer-info-table .text-blue-700 {
  color: var(--lb-primary);
  background-color: rgba(201, 169, 97, 0.1);
}
/* ============================================
   CTA Banner (Hero下)
   ============================================ */
.noshow-banner {
    background: linear-gradient(135deg, #2a2a2a 0%, #0f0f0f 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.noshow-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(196, 165, 100, 0.22) 0%, transparent 65%);
    pointer-events: none;
}
.noshow-banner::after {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(196, 165, 100, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.noshow-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.noshow-banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: #c4a564;
    margin: 0;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(196, 165, 100, 0.45);
    border-radius: 999px;
    background: rgba(196, 165, 100, 0.06);
}
.noshow-banner-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #c4a564;
    border-radius: 50%;
}
.noshow-banner-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    letter-spacing: 0.02em;
    color: #fff;
}
.noshow-banner-title em {
    color: #c4a564;
    font-style: normal;
    font-weight: 800;
}
.noshow-banner-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.8;
}
.noshow-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    background: #c4a564;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 20px rgba(196, 165, 100, 0.28);
}
.noshow-banner-cta:hover {
    transform: translateY(-2px);
    background: #d4b574;
    box-shadow: 0 10px 28px rgba(196, 165, 100, 0.36);
    color: #1a1a1a;
}
.noshow-banner-cta svg { transition: transform 0.2s ease; }
.noshow-banner-cta:hover svg { transform: translateX(4px); }
.sp-only { display: inline; }
@media (min-width: 768px) {
    .noshow-banner { padding: 5rem 2rem; min-height: 380px; }
    .noshow-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
    .noshow-banner-text { flex: 1; }
    .noshow-banner-title { font-size: 2.2rem; line-height: 1.4; }
    .noshow-banner-sub { font-size: 1.05rem; }
    .noshow-banner-cta { padding: 1.15rem 2.2rem; font-size: 1rem; white-space: nowrap; }
    .sp-only { display: none; }
}

/* ============================================
   Bottom Sticky Bar
   ============================================ */
body.has-bottom-bar { padding-bottom: 90px; }
.bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: linear-gradient(180deg, #1f1f1f 0%, #0f0f0f 100%);
    border-top: 1px solid rgba(196, 165, 100, 0.3);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    animation: bottom-bar-slide-up 0.5s ease-out;
}
@keyframes bottom-bar-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.bottom-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 3rem 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.bottom-bar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
}
.bottom-bar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}
.bottom-bar-title em {
    color: #c4a564;
    font-style: normal;
    font-weight: 800;
}
.bottom-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.3rem;
    background: linear-gradient(135deg, #d4b574 0%, #c4a564 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(196, 165, 100, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.bottom-bar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(196, 165, 100, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
}
.bottom-bar-cta svg { transition: transform 0.2s ease; }
.bottom-bar-cta:hover svg { transform: translateX(3px); }
.bottom-bar-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}
.bottom-bar-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
@media (max-width: 767px) {
    body.has-bottom-bar { padding-bottom: 130px; }
    .bottom-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.85rem 2.5rem 0.85rem 0.85rem;
    }
    .bottom-bar-text { align-items: center; text-align: center; gap: 0.25rem; }
    .bottom-bar-title { font-size: 0.82rem; }
    .bottom-bar-cta { justify-content: center; padding: 0.85rem 1rem; font-size: 0.88rem; }
}
@media (min-width: 768px) {
    body.has-bottom-bar { padding-bottom: 88px; }
    .bottom-bar-inner { padding: 1rem 3.5rem 1rem 1.5rem; gap: 1.5rem; }
    .bottom-bar-text { flex-direction: row; align-items: center; gap: 1rem; }
    .bottom-bar-title { font-size: 1rem; }
    .bottom-bar-cta { padding: 0.95rem 1.6rem; font-size: 0.95rem; }
    .bottom-bar-close { top: 50%; right: 0.8rem; transform: translateY(-50%); }
}
