/* ============================================
   FP CAPITAL DENTAL M&A — Components
   ============================================ */

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-200);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.brand-mark {
  width: 56px; height: 36px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--navy-700);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand-mark img, .brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text { line-height: 1.2; }
.brand-text .en {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold-600);
  font-weight: 600;
}
.brand-text .jp {
  font-size: 15px;
  color: var(--navy-700);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--fs-13);
  color: var(--ink-700);
  letter-spacing: 0.12em;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--navy-700); }
.nav a.active { color: var(--navy-700); }
.nav a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold-600);
}
.nav a .en-mini {
  display: block;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold-600);
  font-weight: 500;
  margin-bottom: 2px;
}

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0;
  align-items: center; justify-content: center;
}
.menu-btn span {
  display: block; width: 22px; height: 1px;
  background: var(--navy-700);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 1px; background: var(--navy-700);
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after  { top:  7px; }

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .btn { display: none; }
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff; z-index: 49;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: var(--space-7) var(--space-5);
}
.mobile-sheet.open { transform: translateX(0); }
.mobile-sheet a {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--ink-200);
  font-size: var(--fs-16);
  color: var(--navy-700);
  letter-spacing: 0.08em;
}
.mobile-sheet a .en-mini {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold-600);
  margin-bottom: 2px;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-jp);
}
.badge.new    { background: var(--navy-700); }
.badge.nego   { background: var(--gold-600); }
.badge.closed { background: var(--ink-400); }
.badge.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .9;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  border-radius: 100px;
}
.chip.dark { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* ============================================
   Listing card
   ============================================ */
.listing-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  cursor: pointer;
  position: relative;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-700);
}

.listing-card .visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F7F5F2 0%, #EDEAE3 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-200);
}

/* Subtle pattern overlay */
.listing-card .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(27,42,74,.06) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: .8;
}

/* Accent corner */
.listing-card .visual::after {
  content: "";
  position: absolute;
  right: 0; top: 0;
  width: 72px; height: 72px;
  background:
    linear-gradient(225deg, var(--gold-600) 50%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.listing-card:hover .visual::after { opacity: 1; }

.visual-inner {
  position: relative;
  text-align: center;
  z-index: 1;
}
.visual-inner .icon-wrap {
  width: 88px; height: 88px;
  border: 1px solid var(--navy-700);
  background: #fff;
  display: grid; place-items: center;
  margin: 0 auto var(--space-4);
  position: relative;
}
.visual-inner .icon-wrap::before,
.visual-inner .icon-wrap::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold-600);
}
.visual-inner .icon-wrap::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.visual-inner .icon-wrap::after  { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }

.visual-inner .pref {
  font-size: var(--fs-18);
  color: var(--navy-700);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.visual-inner .entity-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-family: var(--font-en);
  letter-spacing: 0.24em;
  color: var(--gold-600);
  font-weight: 600;
  text-transform: uppercase;
}

.listing-card .top-row {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.listing-card .listing-no {
  font-family: var(--font-en);
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.16em;
  background: rgba(255,255,255,.9);
  padding: 4px 10px;
}

.listing-card .body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.listing-card dl {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.listing-card dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: var(--space-3);
  border-bottom: 1px dashed var(--ink-200);
  padding-bottom: var(--space-3);
}
.listing-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.listing-card dl dt {
  font-size: var(--fs-12);
  color: var(--ink-500);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.listing-card dl dd {
  margin: 0;
  font-family: var(--font-en);
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.01em;
}
.listing-card dl dd .unit {
  font-family: var(--font-jp);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--ink-500);
  margin-left: 4px;
}

.listing-card .cta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-13);
  letter-spacing: 0.12em;
  color: var(--navy-700);
  font-weight: 600;
}
.listing-card .cta .arr { transition: transform .3s ease; }
.listing-card:hover .cta .arr { transform: translateX(6px); }
.listing-card.closed { opacity: 0.72; }
.listing-card.closed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  pointer-events: none;
  z-index: 1;
}
