/* ============================================================
   探偵ログ 事務所マネージャー フロントCSS
   ============================================================ */

/* --- tantei_office: SWELL要素の非表示 --- */
.post_type-tantei_office .c-prNotation,
.post_type-tantei_office .c-postTitle__date,
.post_type-tantei_office .p-articleMetas {
  display: none !important;
}

/* --- Common --- */
.tl-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 3px;
  line-height: 1.6;
}
.tl-badge-partner {
  background: #e8f5e9;
  color: #27ae60;
}
.tl-badge-auto {
  background: #e3edf7;
  color: #4a6fa5;
}
.tl-badge-takedown {
  background: #fde8e8;
  color: #e74c3c;
}

.tl-stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 1px;
}
.tl-stars-empty {
  color: #ddd;
}
.tl-rating-num {
  font-weight: 700;
  font-size: 18px;
  color: #1a2744;
  margin-right: 4px;
}
.tl-review-count {
  color: #8a9bb5;
  font-size: 13px;
}

/* --- Single Office Detail --- */
.tl-office-detail {
  max-width: 800px;
  margin: 0 auto;
}

.tl-office-header {
  margin-bottom: 24px;
}
.tl-office-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tl-office-header .tl-office-rating-block {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-office-header .tl-office-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tl-office-header .tl-office-tags a {
  display: inline-block;
  background: #f0f3f7;
  color: #4a6fa5;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 3px;
  text-decoration: none;
}
.tl-office-header .tl-office-tags a:hover {
  background: #4a6fa5;
  color: #fff;
}

/* Card */
.tl-office-card-section {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.tl-office-card-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4a6fa5;
}

/* Info Table */
.tl-info-table {
  width: 100%;
  border-collapse: collapse;
}
.tl-info-table th,
.tl-info-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #f0f3f7;
  text-align: left;
  vertical-align: top;
}
.tl-info-table th {
  width: 120px;
  color: #8a9bb5;
  font-weight: 600;
  white-space: nowrap;
}
.tl-info-table td {
  color: #333;
}
.tl-info-table a {
  color: #4a6fa5;
  text-decoration: none;
}
.tl-info-table a:hover {
  text-decoration: underline;
}
.tl-info-table .tl-phone-link {
  font-size: 18px;
  font-weight: 700;
  color: #1a2744;
}
.tl-info-table .tl-hours {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.7;
}

/* CTA Buttons */
.tl-office-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.tl-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
}
.tl-cta-btn:hover {
  opacity: 0.85;
}
.tl-cta-phone {
  background: #1a2744;
  color: #fff;
}
.tl-cta-web {
  background: #fff;
  color: #4a6fa5;
  border: 2px solid #4a6fa5;
}

/* Coming Soon */
.tl-coming-soon {
  text-align: center;
  padding: 32px 16px;
  color: #8a9bb5;
  font-size: 14px;
  background: #f8f9fb;
  border-radius: 6px;
}

/* Auto-collection Notice */
.tl-office-notice {
  background: #f8f9fb;
  border-left: 3px solid #8a9bb5;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}
.tl-office-notice a {
  color: #4a6fa5;
}

/* Map */
.tl-office-map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tl-office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.tl-map-link {
  text-align: right;
  font-size: 13px;
}
.tl-map-link a {
  color: #4a6fa5;
  text-decoration: none;
}

/* Price Table */
.tl-price-table {
  width: 100%;
  border-collapse: collapse;
}
.tl-price-table th,
.tl-price-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #f0f3f7;
  text-align: left;
}
.tl-price-table th {
  color: #8a9bb5;
  font-weight: 600;
  width: 140px;
}
.tl-price-table td {
  color: #333;
  font-weight: 500;
}
.tl-price-note {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* Legal Info */
.tl-legal-info {
  background: #f8f9fb;
  border-radius: 6px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

/* Nearby Offices */
.tl-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tl-nearby-card {
  background: #f8f9fb;
  border: 1px solid #e8edf3;
  border-radius: 6px;
  padding: 14px;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.2s;
}
.tl-nearby-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tl-nearby-card .tl-nearby-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
  margin-bottom: 4px;
}
.tl-nearby-card .tl-nearby-addr {
  font-size: 12px;
  color: #8a9bb5;
}
.tl-nearby-card .tl-nearby-rating {
  font-size: 12px;
  margin-top: 4px;
}

/* --- Search / List --- */
.tl-search-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.tl-search-form {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.tl-search-form .tl-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.tl-search-form label {
  font-size: 12px;
  font-weight: 600;
  color: #8a9bb5;
}
.tl-search-form select,
.tl-search-form input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #dde2ea;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #333;
  appearance: auto;
}
.tl-search-form select:focus,
.tl-search-form input[type="text"]:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.15);
}
.tl-search-btn {
  background: #4a6fa5;
  color: #fff;
  border: none;
  padding: 9px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tl-search-btn:hover {
  background: #3a5f95;
}

.tl-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-results-count {
  font-size: 15px;
  color: #555;
}
.tl-results-count strong {
  color: #1a2744;
  font-size: 20px;
}
.tl-sort-select {
  padding: 6px 12px;
  border: 1px solid #dde2ea;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}

/* Office List Cards */
.tl-office-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-list-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.tl-list-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tl-list-card-body {
  flex: 1;
  min-width: 0;
}
.tl-list-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a2744;
  margin-bottom: 6px;
}
.tl-list-card-addr {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-list-card-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.tl-list-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.tl-list-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tl-list-card-tags span {
  background: #f0f3f7;
  color: #4a6fa5;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 3px;
}
.tl-list-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}
.tl-list-card-phone {
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
  white-space: nowrap;
}
.tl-list-card-arrow {
  color: #ccc;
  font-size: 20px;
}

/* Pagination */
.tl-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.tl-pagination a,
.tl-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #dde2ea;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  color: #4a6fa5;
  background: #fff;
}
.tl-pagination span.current {
  background: #4a6fa5;
  color: #fff;
  border-color: #4a6fa5;
}
.tl-pagination a:hover {
  background: #f0f3f7;
}

/* Takedown notice */
.tl-takedown-notice {
  background: #fde8e8;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: #c0392b;
  font-size: 15px;
}

/* No results */
.tl-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #8a9bb5;
  font-size: 15px;
}

/* --- Archive Header --- */
.tl-archive-header {
  margin-bottom: 24px;
}
.tl-archive-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 8px;
}
.tl-archive-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}
.tl-archive-sub-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tl-archive-sub-links a {
  display: inline-block;
  background: #f0f3f7;
  color: #4a6fa5;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.tl-archive-sub-links a:hover {
  background: #4a6fa5;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .tl-office-card-section {
    padding: 16px;
  }
  .tl-info-table th {
    display: block;
    width: 100%;
    padding-bottom: 2px;
    border-bottom: none;
  }
  .tl-info-table td {
    display: block;
    padding-top: 0;
    padding-left: 12px;
  }
  .tl-search-form {
    flex-direction: column;
  }
  .tl-search-form .tl-form-group {
    min-width: 100%;
  }
  .tl-list-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .tl-list-card-side {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .tl-list-card-addr {
    white-space: normal;
  }
  .tl-office-cta {
    flex-direction: column;
  }
  .tl-nearby-grid {
    grid-template-columns: 1fr;
  }
}
