/*
Theme Name: tasaki-db
Theme URI: https://db.tasakipharma.com/
Author: Tasaki Pharma
Version: 0.1.0
Description: Minimal parent theme for Tasaki Pharma DB (classic PHP templates).
*/

/* ===============================
   Theme tokens & global blocks
================================ */
:root {
  --tpdb-teal: #0AA9C5;
  --tpdb-teal-dark: #005C73;
  --tpdb-bg: #F7FAFB;
  --tpdb-card: #FFF;
  --tpdb-border: #E6EEF0;
  --tpdb-radius-sm: 6px;
  --tpdb-radius-md: 12px;
  --tpdb-radius-lg: 16px;
  --tpdb-radius-xl: 20px;
  --tpdb-space-xs: 4px;
  --tpdb-space-sm: 6px;
  --tpdb-space-md: 12px;
  --tpdb-space-lg: 24px;
  --tpdb-space-xl: 28px;
  --tpdb-space-xxl: 36px;
}

.tpdb-section {
  padding: var(--tpdb-space-xl) 0;
}

.tpdb-section-alt {
  background: var(--tpdb-bg);
  border-radius: var(--tpdb-radius-lg);
  padding: var(--tpdb-space-xl);
}

.tpdb-sec-title {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--tpdb-teal-dark);
}

.tpdb-subhead {
  font-size: 16px;
  margin: 16px 0 8px;
  color: #254E59;
}

.tpdb-card {
  background: #fff;
  border: 1px solid var(--tpdb-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(16, 78, 91, .06);
}

.tpdb-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpdb-news-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--tpdb-border);
}

.tpdb-news-item time {
  color: #5a7680;
  margin-right: 8px;
}

.tpdb-steps4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--tpdb-space-md);
}

.tpdb-steps3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tpdb-step {
  background: #fff;
  border: 1px solid var(--tpdb-border);
  border-radius: var(--tpdb-radius-lg);
  padding: 18px;
}

.tpdb-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tpdb-teal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

.tpdb-icn {
  font-size: 26px;
}

/* ===============================
   Hero & quick navigation
================================ */
.tpdb-hero {
  background: linear-gradient(135deg, #12A8C7 0%, #3DBED3 100%);
  color: #fff;
  border-radius: var(--tpdb-radius-xl);
  margin: var(--tpdb-space-lg) 0 16px;
  padding: var(--tpdb-space-xxl) 18px;
}

.tpdb-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.tpdb-hero-title {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .tpdb-hero-title {
    font-size: 26px;
  }
}

.tpdb-hero-sub {
  opacity: .95;
  margin: 0 0 18px;
}

.tpdb-searchbar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 16px;
}

.tpdb-searchbar input {
  width: min(640px, 100%);
  padding: var(--tpdb-space-md) 14px;
  border-radius: var(--tpdb-radius-md);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.tpdb-searchbar button {
  padding: var(--tpdb-space-md) 16px;
  border: none;
  border-radius: var(--tpdb-radius-md);
  background: #fff;
  cursor: pointer;
}

.tpdb-nav-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tpdb-nav-btn {
  background: #fff;
  color: var(--tpdb-teal-dark);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .35);
}

.tpdb-nav-btn:hover {
  background: rgba(255, 255, 255, .9);
}

/* ===============================
   Chips & tags
================================ */
.tpdb-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tpdb-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--tpdb-space-sm);
  background: var(--tpdb-card);
  border: 1px solid var(--tpdb-border);
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #0b4250;
}

.tpdb-chip em {
  font-style: normal;
  background: var(--tpdb-bg);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
}

/* ===============================
   Listing grid & cards
================================ */
#tpdb-results {
  width: 100%;
}

.tpdb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.tpdb-grid > .tpdb-card {
  flex: 1 1 100%;
  max-width: 100%;
  float: none !important;
}

@media (min-width: 640px) {
  .tpdb-grid > .tpdb-card {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

@media (min-width: 900px) {
  .tpdb-grid > .tpdb-card {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

#tpdb-results::after {
  content: "";
  display: block;
  clear: both;
}

.tpdb-card-drug,
.tpdb-card-drug * {
  box-sizing: border-box;
}

.tpdb-card-drug {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--tpdb-border);
  border-radius: 14px;
  padding: var(--tpdb-space-md);
  box-shadow: 0 8px 18px rgba(16, 78, 91, .06);
  height: auto !important;
}

.tpdb-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.tpdb-thumb {
  position: relative;
  width: 100%;
  border-radius: var(--tpdb-radius-md);
  background: #F0F6F7;
  overflow: hidden;
}

.tpdb-thumb::before {
  content: "";
  display: block;
  padding-top: 75%;
}

.tpdb-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpdb-card-title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.tpdb-card-title a {
  text-decoration: none;
  color: var(--tpdb-teal-dark);
  font-weight: 700;
}

.tpdb-card-title a:hover {
  color: var(--tpdb-teal);
}

.tpdb-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tpdb-space-sm);
}

.tpdb-meta li {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--tpdb-space-sm);
  min-width: 0;
}

.tpdb-k {
  flex: 0 0 auto;
  color: #497077;
  font-size: 11px;
  background: var(--tpdb-bg);
  border: 1px solid var(--tpdb-border);
  border-radius: var(--tpdb-radius-sm);
  padding: 2px var(--tpdb-space-sm);
  font-weight: 500;
}

.tpdb-v {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #0b4250;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.tpdb-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tpdb-space-sm);
  margin-top: var(--tpdb-space-sm);
}

.tpdb-chip-sm {
  display: inline-flex;
  align-items: center;
  gap: var(--tpdb-space-sm);
  padding: var(--tpdb-space-xs) 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  white-space: normal;
  line-height: 1.3;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  background: #e6f9fb;
  border: 1px solid #bce3ea;
  color: var(--tpdb-teal-dark);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpdb-chip-sm:hover {
  background: var(--tpdb-teal-dark);
  color: #fff;
  border-color: var(--tpdb-teal-dark);
}

.tpdb-cta {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.tpdb-cta a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tpdb-teal-dark);
  text-decoration: underline;
}

.tpdb-cta a:hover {
  color: var(--tpdb-teal);
}

/* ===============================
   Empty / loading states
================================ */
.tpdb-empty {
  padding: 18px;
  border: 1px dashed var(--tpdb-border);
  border-radius: var(--tpdb-radius-md);
  background: #fff;
  color: #5a7680;
}

.tpdb-skeleton {
  height: 180px;
  border-radius: var(--tpdb-radius-md);
  background: linear-gradient(90deg, #EFF5F6, #F7FAFB, #EFF5F6);
  background-size: 200% 100%;
  animation: tpdb-shimmer 1.2s infinite;
}

@keyframes tpdb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===============================
   Archive list header / filters
================================ */
.tpdb-archive-hero {
  background: var(--tpdb-bg);
  border: 1px solid var(--tpdb-border);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}

.tpdb-archive-title {
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--tpdb-teal-dark);
}

.tpdb-archive-desc {
  color: #305a64;
  font-size: 14px;
  line-height: 1.6;
}

.tpdb-filterbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tpdb-filter-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tpdb-count {
  color: #5a7680;
  font-size: 13px;
}

.tpdb-filter-right select {
  padding: 6px 8px;
  border: 1px solid var(--tpdb-border);
  border-radius: 8px;
  background: #fff;
}

.tpdb-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.tpdb-pagination .page-numbers {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 4px;
  border: 1px solid var(--tpdb-border);
  border-radius: 8px;
  text-decoration: none;
  color: #0b4250;
}

.tpdb-pagination .page-numbers.current {
  background: var(--tpdb-teal);
  color: #fff;
  border-color: var(--tpdb-teal);
}

/* ===============================
   Facets & filters
================================ */
.tpdb-results-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

@media (max-width: 980px) {
  .tpdb-results-wrap {
    grid-template-columns: 1fr;
  }
}

.tpdb-facet {
  border: 1px solid var(--tpdb-border);
  background: #fff;
  border-radius: var(--tpdb-radius-md);
  padding: var(--tpdb-space-md);
  position: sticky;
  top: var(--tpdb-space-md);
  height: fit-content;
}

.tpdb-facet details {
  margin-bottom: 10px;
}

.tpdb-facet summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--tpdb-teal-dark);
  margin-bottom: var(--tpdb-space-sm);
}

.tpdb-facet-box {
  display: flex;
  flex-direction: column;
  gap: var(--tpdb-space-sm);
  max-height: 320px;
  overflow: auto;
}

.tpdb-facet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  border: 1px solid var(--tpdb-border);
  padding: var(--tpdb-space-sm) 8px;
  border-radius: 8px;
}

.tpdb-facet-item input {
  transform: translateY(1px);
}

.tpdb-facet-item span {
  flex: 1 1 auto;
  min-width: 0;
}

.tpdb-facet-item em {
  font-style: normal;
  font-size: 12px;
  color: #567;
  opacity: .8;
}

.tpdb-facet-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.tpdb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tpdb-teal);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}

.tpdb-btn-primary:hover {
  background: var(--tpdb-teal-dark);
}

.tpdb-btn-link {
  text-decoration: underline;
  color: var(--tpdb-teal-dark);
}

.tpdb-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.tpdb-chip-active {
  background: #e6f9fb;
  border: 1px solid #bce3ea;
  color: var(--tpdb-teal-dark);
  padding: var(--tpdb-space-xs) 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.tpdb-chip-clear {
  background: #fff3f3;
  border: 1px solid #ffd7d7;
  color: #a23838;
  padding: var(--tpdb-space-xs) 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.tpdb-facet-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tpdb-space-md);
  background: var(--tpdb-bg);
  border: 1px solid var(--tpdb-border);
  border-radius: var(--tpdb-radius-md);
  padding: var(--tpdb-space-md);
  margin: 10px 0 18px;
}

.tpdb-facet-group {
  display: flex;
  flex-direction: column;
  gap: var(--tpdb-space-xs);
  min-width: 180px;
}

.tpdb-facet-group label {
  font-size: 13px;
  color: var(--tpdb-teal-dark);
  font-weight: 600;
}

.tpdb-facet-group select {
  padding: 6px 8px;
  border: 1px solid var(--tpdb-border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

@media (max-width: 768px) {
  .tpdb-facet-group {
    min-width: 100%;
  }
}

/* ===============================
   Search hub & utilities
================================ */
.tpdb-search-hero {
  background: #fff;
  border: 1px solid var(--tpdb-border);
  border-radius: 16px;
  margin: 32px auto 16px;
  padding: 36px 20px;
  max-width: 900px;
  text-align: center;
}

.tpdb-search-hero .tpdb-hero-title {
  font-size: 30px;
  color: var(--tpdb-teal-dark);
}

.tpdb-search-hero .tpdb-hero-sub {
  margin-bottom: 20px;
}

.tpdb-popular {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tpdb-popular-label {
  font-size: 13px;
  color: #567;
}

.tpdb-hints ul {
  margin-left: 18px;
  line-height: 1.7;
}

.tpdb-privacy h1,
.tpdb-privacy h2 {
  color: var(--tpdb-teal-dark);
}

.tpdb-privacy h2 {
  margin-top: var(--tpdb-space-lg);
  font-size: 18px;
}

.tpdb-privacy ul {
  margin-left: 20px;
  line-height: 1.7;
}

.tpdb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.tpdb-table th,
.tpdb-table td {
  border: 1px solid var(--tpdb-border);
  padding: 8px;
  vertical-align: top;
}

.tpdb-table th {
  background: var(--tpdb-bg);
  font-weight: 700;
}

/* ===============================
   Single drug layout
================================ */
.tpdb-single {
  padding: var(--tpdb-space-lg) 0;
}

.tpdb-single-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--tpdb-teal-dark);
  margin-bottom: 20px;
}

.tpdb-single-flex {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .tpdb-single-flex {
    grid-template-columns: 1fr;
  }
}

.tpdb-single-info {
  max-width: 740px;
}

.tpdb-single-info a:not(.tpdb-back-btn) {
  color: var(--tpdb-teal-dark);
  text-decoration: underline;
}

.tpdb-single-info a:not(.tpdb-back-btn):hover {
  color: var(--tpdb-teal);
}

.tpdb-single-image {
  max-width: 480px;
  margin: 6px 0 18px;
}

@media (min-width: 900px) {
  .tpdb-single-image {
    max-width: 520px;
  }
}

.tpdb-drug-img {
  width: 100%;
  height: auto;
  border-radius: var(--tpdb-radius-md);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.tpdb-back-btn {
  display: inline-block;
  background: var(--tpdb-teal);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

.tpdb-back-btn:hover {
  background: var(--tpdb-teal-dark);
}

.tpdb-sources li {
  margin-bottom: 6px;
  font-size: 13px;
  word-break: break-all;
}

.single-drug .tpdb-sec-title {
  margin-top: 16px;
}

.tpdb-cta-contact {
  margin-top: var(--tpdb-space-lg);
  padding: 18px;
  border: 1px solid var(--tpdb-border);
  background: #F7FAFB;
  border-radius: var(--tpdb-radius-md);
}

.tpdb-cta-contact h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--tpdb-teal-dark);
}

.tpdb-cta-contact p {
  margin: 0 0 10px;
  color: #305a64;
}

.tpdb-404 {
  text-align: center;
}

.tpdb-404-suggest {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.tpdb-sitemap-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  columns: 2;
  gap: 20px;
}

.tpdb-sitemap-list li {
  margin-bottom: 4px;
}

.tpdb-sitemap-list a {
  text-decoration: none;
  color: #0b4250;
}

.tpdb-sitemap-list a:hover {
  color: var(--tpdb-teal);
}

/* ===============================
   Usage / FAQ
================================ */
.tpdb-usage .tpdb-how {
  text-align: center;
}

.tpdb-usage .tpdb-how .tpdb-icn {
  font-size: 28px;
  margin-bottom: 6px;
}

.tpdb-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tpdb-faq-item {
  border: 1px solid var(--tpdb-border);
  background: #fff;
  border-radius: var(--tpdb-radius-md);
  overflow: hidden;
}

.tpdb-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
  list-style: none;
  font-weight: 600;
  color: #0b4250;
}

.tpdb-faq-item summary::-webkit-details-marker {
  display: none;
}

.tpdb-faq-toggle {
  color: #567;
  font-size: 12px;
}

.tpdb-faq-item[open] .tpdb-faq-toggle {
  transform: rotate(180deg);
}

.tpdb-faq-a {
  padding: var(--tpdb-space-md);
  color: #305a64;
  line-height: 1.7;
  background: #F7FAFB;
}

.tpdb-faq-contact {
  margin-top: 12px;
  text-align: center;
}

/* ===============================
   Forms & alerts
================================ */
.tpdb-contact .tpdb-form {
  max-width: 720px;
}

.tpdb-form-row {
  display: flex;
  flex-direction: column;
  gap: var(--tpdb-space-sm);
  margin-bottom: var(--tpdb-space-md);
}

.tpdb-form-row label {
  font-weight: 600;
  color: #0b4250;
}

.tpdb-form-row label span {
  color: #cc4050;
  margin-left: 4px;
}

.tpdb-form-row input,
.tpdb-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--tpdb-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.tpdb-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tpdb-alert {
  border-radius: 10px;
  padding: var(--tpdb-space-md);
  margin: 10px 0;
}

.tpdb-alert.success {
  background: #e7fbf1;
  border: 1px solid #b7e7c6;
  color: #196b3b;
}

.tpdb-alert.error {
  background: #fff0f0;
  border: 1px solid #ffd4d4;
  color: #8e2e2e;
}

/* ===============================
   Breadcrumbs
================================ */
.tpdb-breadcrumbs {
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 0 16px;
  color: #497077;
  font-size: 13px;
}

.tpdb-breadcrumbs ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpdb-breadcrumbs a {
  text-decoration: none;
  color: #497077;
}

.tpdb-breadcrumbs li::after {
  content: "›";
  margin: 0 6px;
  color: #7a9aa3;
}

.tpdb-breadcrumbs li.current::after {
  content: "";
  margin: 0;
}

.tpdb-breadcrumbs li.current {
  color: #0b4250;
  font-weight: 600;
}

/* ===============================
   Navigation (header / footer)
================================ */
.tpdb-header-nav {
  margin-top: 10px;
}

.tpdb-header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpdb-header-menu li a {
  color: #0b4250;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.tpdb-header-menu li a:hover {
  color: var(--tpdb-teal);
}

.tpdb-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.tpdb-footer-menu li a {
  font-size: 13px;
  color: #497077;
  text-decoration: none;
}

.tpdb-footer-menu li a:hover {
  color: var(--tpdb-teal);
}

.tpdb-burger {
  display: none;
  width: 42px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.tpdb-burger span {
  display: block;
  height: 2px;
  width: 26px;
  background: #0b4250;
  margin: 6px auto;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.tpdb-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .32);
  z-index: 98;
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.tpdb-nav-overlay[hidden] {
  display: none;
}

.tpdb-nav-overlay:not([hidden]) {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .tpdb-burger {
    display: block;
  }

  .tpdb-header-menu {
    list-style: none;
    margin: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tpdb-header-menu li a {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
    color: #0b4250;
    text-decoration: none;
    font-weight: 600;
  }

  .tpdb-header-menu li a:hover {
    background: #F2F7F8;
    color: var(--tpdb-teal);
  }

  #site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    background: #fff;
    border-left: 1px solid var(--tpdb-border);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 99;
    box-shadow: -8px 0 18px rgba(0, 0, 0, .08);
  }

  #site-nav.is-open {
    transform: translateX(0);
  }

  body.tpdb-nav-open {
    overflow: hidden;
  }
}

/* About page tweaks */
.tpdb-about .tpdb-sec-title { margin-bottom: 10px; }
.tpdb-about p { line-height: 1.8; max-width: 900px; }
.tpdb-about .tpdb-section + .tpdb-section { padding-top: 20px; }

/* ===============================
   Layout Containers
================================ */
.tpdb-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%; /* 安全策として追加 */
}

.single-post .tpdb-single-info {
  line-height: 1.75;
  font-size: 15px;
  color: #305a64;
}
