/* Header & Footer specific styles */
.topbar {
  background: var(--bg-tint-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar-links { display: flex; gap: 22px; }
.topbar-links a:hover { color: var(--brand); }

/* topbar の吹き出しツールチップ（ホバー表示） */
.tt-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: -8px;
}
.tt-wrap > a { cursor: help; }
.tt-popover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 200;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
  text-align: left;
  font-weight: 400;
}
.tt-wrap:hover .tt-popover,
.tt-wrap:focus-within .tt-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tt-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.tt-popover h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.tt-section { margin-bottom: 14px; }
.tt-section:last-child { margin-bottom: 0; }
.tt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}
.tt-popover p { margin: 0 0 4px; }
.tt-popover ul {
  margin: 4px 0 0; padding: 0; list-style: none;
}
.tt-popover li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 2px;
}
.tt-popover li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.tt-note {
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.6;
  margin-top: 6px !important;
}

/* FAQ風 Q&A レイアウト */
.tt-faq { margin-bottom: 14px; }
.tt-faq:last-child { margin-bottom: 0; }
.tt-q {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 4px;
  position: relative;
  padding-left: 20px;
}
.tt-q::before {
  content: 'Q.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
  font-family: var(--ff-en);
}
.tt-popover p.tt-a {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
  position: relative;
}
.tt-popover p.tt-a::before {
  content: 'A.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-4);
  font-weight: 700;
  font-family: var(--ff-en);
}

/* 連絡先カード */
.tt-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.5;
}
.tt-contact .tt-ico {
  width: 16px;
  flex-shrink: 0;
  color: var(--brand);
  text-align: center;
  font-size: 13px;
}
.tt-contact a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-4);
}
.tt-contact a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.tt-contact.tt-muted .tt-ico { color: var(--ink-4); }
.tt-contact.tt-muted span:last-child {
  color: var(--ink-4);
  font-size: 11.5px;
}
.tt-popover p.tt-hours {
  font-size: 11px;
  color: var(--ink-4);
  margin: 6px 0 0 24px !important;
  line-height: 1.5;
}

/* tooltip 内のCTAボタン */
.tt-popover .tt-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-bottom: 0;
  transition: background 0.15s, transform 0.15s;
}
.tt-popover .tt-cta:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

/* 上向きに開く吹き出し（フッター用） */
.tt-up {
  padding-bottom: 0;
  margin-bottom: 0;
  padding-top: 8px;
  margin-top: -8px;
}
.tt-up .tt-popover {
  top: auto;
  bottom: 100%;
  transform: translateY(4px);
}
.tt-up:hover .tt-popover,
.tt-up:focus-within .tt-popover {
  transform: translateY(0);
}
.tt-up .tt-popover::before {
  top: auto;
  bottom: -6px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.topbar-marks { display: flex; gap: 16px; align-items: center; }
.topbar-marks .mark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 4px;
  background: white; border: 1px solid var(--line);
  font-size: 11px; color: var(--ink-2);
}
.topbar-marks .mark .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.96);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: var(--r-xs);
}
.footer .logo-img { height: 52px; }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--brand);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; color: white; }
.logo-mark::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 6px;
  width: 6px; height: 6px;
  background: var(--ink); border-radius: 50%;
  box-shadow: 12px 0 0 var(--ink), 18px 0 0 var(--ink);
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo-text .name {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-text .name span { color: var(--brand); }
.logo-text .tag {
  font-size: 10.5px; color: var(--ink-3); margin-top: 1px;
  letter-spacing: 0.02em;
}

.search {
  position: relative;
  display: flex;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  overflow: hidden;
}
.search:focus-within {
  background: white;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(42,91,215,0.08);
}
.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 0 18px 0 22px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.search input::placeholder { color: var(--ink-4); }
.search button {
  width: 56px;
  border: none;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
  border-radius: var(--r-pill);
  transition: background 0.15s;
}
.search button:hover { background: var(--brand-600); }
.search-tags {
  position: absolute;
  top: 52px;
  left: 22px;
  display: flex; gap: 8px;
  font-size: 11px;
  color: var(--ink-4);
}
.search-tags span:first-child { color: var(--ink-3); }
.search-tags a:hover { color: var(--brand); }

.header-actions {
  display: flex; gap: 4px;
}
.action {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 11px;
  color: var(--ink-2);
  position: relative;
  transition: background 0.15s;
}
.action:hover { background: var(--bg-tint); color: var(--brand); }
.action svg { width: 24px; height: 24px; margin-bottom: 2px; }
.action .count {
  position: absolute;
  top: 2px; right: 6px;
  background: var(--brand);
  color: white;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-en);
}

/* Category nav */
.catnav {
  border-bottom: 1px solid var(--line);
  background: white;
}
.catnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-item {
  display: flex; align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  transition: color 0.15s;
}
.catnav-item:hover { color: var(--brand); }
.catnav-item.active { color: var(--brand); font-weight: 600; }
.catnav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--brand);
}
.catnav-item.all {
  background: var(--brand);
  color: white;
  border-radius: var(--r-sm);
  height: 36px;
  margin-right: 8px;
}
.catnav-item.all:hover { background: var(--brand-600); color: white; }
.catnav-divider { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }

/* Footer */
.footer {
  background: var(--bg-tint-2);
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 64px 0 0;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 13px; }
.footer li a { color: var(--ink-3); }
.footer li a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-4);
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .links a:hover { color: var(--brand); }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all 0.15s;
}
.social a:hover { color: var(--brand); border-color: var(--brand); }
.social a svg { width: 18px; height: 18px; }
