:root {
  --primary: #A6D8A8;
  --accent: #2E7D32;
  --bg: #fafafa;
  --text: #222;
  --border: #e0e0e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header .container.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.site-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header img {
  height: 48px;
  transition: transform 0.3s;
}

.site-header img:hover {
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--primary);
  color: var(--accent);
}

/* Navigation Category Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle {
  background: var(--primary);
  color: var(--accent);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 12px;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-group {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.nav-dropdown-parent {
  font-weight: bold;
  color: var(--accent) !important;
  font-size: 14px;
  display: block;
  padding: 4px 8px !important;
}

.nav-dropdown-children {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}

.nav-dropdown-child {
  font-size: 13px;
  color: #555 !important;
  padding: 3px 8px !important;
  font-weight: normal !important;
}

.nav-dropdown-child:hover {
  background: #f5f9f5 !important;
  color: var(--accent) !important;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-link svg {
  width: 22px;
  height: 22px;
}

.icon-link:hover {
  background: var(--primary);
  color: var(--accent);
}

/* Cart badge style */
.cart-link {
  position: relative;
}

#nav-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Main content */
main.container {
  padding-bottom: 60px;
  min-height: calc(100vh - 200px);
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: #fff;
  text-align: center;
}

.site-footer a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Typography */
h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 24px;
}

h2 {
  font-size: 2em;
  font-weight: 700;
  margin: 32px 0 24px;
}

h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin: 20px 0 12px;
}

p {
  margin-bottom: 16px;
}

/* Cards */
.cards, .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 16px;
  margin: 0;
  font-size: 1.1em;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

td,
th {
  border: 1px solid var(--border);
  padding: 12px;
}

table th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
}

table tr:hover td {
  background: #fafafa;
}

/* Product detail */
.product-detail {
  margin-top: 32px;
}

.product-detail .info {
  max-width: 800px;
  margin: 0 auto;
}

.product-detail h1 {
  font-size: 2em;
  margin-bottom: 24px;
  color: var(--text);
}

.product-description {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  margin-bottom: 32px;
}

.product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-description h2,
.product-description h3,
.product-description h4 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.product-purchase {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-purchase .price {
  font-size: 1.5em;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-purchase .stock {
  color: #666;
  margin-bottom: 20px;
}

.product-purchase form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-purchase label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-purchase input[type=number] {
  width: 80px;
}

/* Seller information section */
.seller-info {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seller-info h3 {
  margin: 0 0 24px;
  font-size: 1.3em;
  color: var(--text);
}

.seller-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.seller-avatar,
.seller-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.seller-avatar-placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.seller-details {
  flex: 1;
}

.seller-details h4 {
  margin: 0 0 8px;
  font-size: 1.2em;
}

.seller-details h4 a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.seller-details h4 a:hover {
  color: #1b5e20;
  text-decoration: underline;
}

.seller-details p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Product list filtering */
.product-list-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  margin-top: 32px;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-sidebar h2 {
  margin: 0 0 24px;
  font-size: 1.3em;
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-section h3 {
  margin: 0 0 12px;
  font-size: 1em;
  font-weight: 600;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
}

.filter-option input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.price-select {
  width: 100%;
}

.sort-select {
  width: 100%;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.filter-actions button,
.filter-actions a {
  width: 100%;
  text-align: center;
}

.product-grid-container {
  min-width: 0;
}

.product-count {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.card-no-image {
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.card-content {
  padding: 12px;
}

.card-price {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--accent);
  margin: 8px 0 0;
}

/* Buttons */
button,
.btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover,
.btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary,
#to-payment {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
#to-payment:hover {
  background: #1b5e20;
  border-color: #1b5e20;
}

/* Forms */
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 16px 0 6px;
  color: #333;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=password],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Utility */
.error {
  color: #d32f2f;
  margin: 12px 0;
}

.note {
  color: #666;
  font-size: 14px;
  margin: 8px 0;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Checkout */
.checkout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.checkout .buyer,
.checkout .summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout h3 {
  margin-top: 0;
}

/* Cart */
.cart-table input[type=number] {
  width: 80px;
}

/* Auth */
.auth {
  max-width: 440px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.auth h2 {
  margin-top: 0;
}

.auth .actions {
  margin-top: 24px;
}

/* Event Content (CKEditor output) */
.event-content {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.event-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.8em;
  color: #222;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.event-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.4em;
  color: #333;
}

.event-content ul,
.event-content ol {
  margin: 16px 0;
  padding-left: 28px;
}

.event-content li {
  margin-bottom: 8px;
}

.event-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  color: #555;
  font-style: italic;
  background: #f9f9f9;
  padding: 16px 20px;
  border-radius: 4px;
}

.event-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-content table th,
.event-content table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.event-content table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.event-content table tr:hover {
  background: #fafafa;
}

.event-content a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s;
}

.event-content a:hover {
  color: #1b5e20;
}

.event-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.event-content figure {
  margin: 24px 0;
}

.event-content figure img {
  margin: 0;
}

.event-content figcaption {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}

/* Responsive */
@media (max-width:900px) {
  .checkout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-list-container {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    padding: 16px;
  }

  .filter-sidebar h2 {
    font-size: 1.1em;
    margin-bottom: 16px;
  }

  /* モバイルでフィルターを横並びに */
  .filter-sidebar form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  .filter-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .filter-section h3 {
    font-size: 0.9em;
    margin-bottom: 8px;
  }

  .filter-option {
    padding: 4px 0;
    font-size: 13px;
  }

  .filter-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    margin-top: 8px;
  }

  .cards, .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 73px; /* Header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 18px;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .site-header nav {
    gap: 12px;
  }

  .site-header nav a {
    padding: 6px 12px;
    font-size: 14px;
  }
  h1 {
    font-size: 2.5em; /* Restore desktop size or keep mobile? Let's use 2em for mobile as before */
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .cards, .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card img, .card-no-image {
    height: 150px;
  }

  .card h3 {
    padding: 10px;
    font-size: 0.95em;
  }

  .card-content {
    padding: 10px;
  }

  .event-content h2 {
    font-size: 1.5em;
  }

  .event-content h3 {
    font-size: 1.2em;
  }
}

/* ============================================================
   Product List & Sidebar Category Tree Refinements (Points 1-8)
   ============================================================ */

.sidebar-category-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-tree .cat-item {
  margin-bottom: 6px;
}

.sidebar-category-tree .cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-category-tree .cat-link:hover {
  background: #f5f9f5;
  color: var(--accent);
}

.sidebar-category-tree .cat-group {
  margin-top: 20px;
}

.sidebar-category-tree .cat-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* 1. 大分類: アイコン表示＋フォント調整 */
.sidebar-category-tree .cat-parent-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.cat-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-dropdown-parent .header-cat-icon {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

.sidebar-category-tree .cat-parent-row:hover .cat-parent-link {
  color: var(--accent);
}

.sidebar-category-tree .cat-children-list {
  list-style: none;
  padding-left: 14px;
  margin-top: 4px;
  margin-bottom: 0;
}

/* 1, 2, 8. 中分類: 通常文字色(#333)、インデント、中黒なし、引き締まった行間＋アイコン表示 */
.sidebar-category-tree .cat-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sidebar-category-tree .cat-child-link, .nav-dropdown-child {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.2s;
}

.sub-cat-icon {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

.header-sub-cat-icon {
  width: 22px;
  height: 22px;
  margin-right: 7px;
}

.sidebar-category-tree .cat-child-row:hover .cat-child-link {
  color: var(--accent);
}

/* 6. 件数表示 */
.sidebar-category-tree .cat-count {
  font-size: 12px;
  color: #888;
  font-weight: normal;
  margin-left: 6px;
}

/* 4. 選択中カテゴリデザイン（薄い緑背景＋左端の太いアクセントバー） */
.sidebar-category-tree .active-cat {
  background: #e8f5e9 !important;
  border-left: 4px solid var(--accent) !important;
  border-radius: 0 6px 6px 0 !important;
  padding-left: 8px !important;
}

.sidebar-category-tree .active-cat .cat-parent-link,
.sidebar-category-tree .active-cat .cat-child-link,
.sidebar-category-tree .active-cat .all-cat-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.sidebar-category-tree .active-cat .cat-count {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* 7. 統合ヘッダーバー: 件数＋フィルターチップ（左） と 並び替え（右） */
.product-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
}

.grid-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-grid-header .product-count {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.active-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #e8f5e9;
  color: var(--accent);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
}

.chip-remove {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  transition: opacity 0.2s;
}

.chip-remove:hover {
  opacity: 0.7;
}

.grid-header-right .sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 13px;
  color: #666;
  margin: 0;
  white-space: nowrap;
}

.sort-select-top {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

/* 5. 4列グリッド & バランス調整 */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .product-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============================================================
   Header Category Dropdown Menu (Compact Vertical Spacing)
   ============================================================ */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  display: none;
  z-index: 1000;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}

.nav-dropdown-group {
  padding: 2px 0;
  border-bottom: 1px dashed #eee;
}

.nav-dropdown-group:last-child {
  border-bottom: none;
}

/* 大分類: コンパクトなパディングと見やすいスタイル */
.nav-dropdown-parent {
  display: flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  text-decoration: none !important;
  background: transparent !important;
  border-bottom: none !important;
  transition: background 0.15s;
}

.nav-dropdown-parent:hover {
  background: #f4fbf5 !important;
}

.nav-dropdown-children {
  display: flex;
  flex-direction: column;
  padding: 1px 0 3px 6px;
}

/* 中分類: 縦の上下パディングを極力詰めた引き締まった表示 */
.nav-dropdown-child {
  display: flex !important;
  align-items: center !important;
  padding: 3px 12px 3px 10px !important;
  font-size: 13px !important;
  color: #444 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.nav-dropdown-child:hover {
  background: #e8f5e9 !important;
  color: var(--accent) !important;
}

/* ヘッダーアイコンのサイズ最適化 */
.nav-dropdown-parent .header-cat-icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 6px !important;
  flex-shrink: 0;
}

.nav-dropdown-child .header-sub-cat-icon {
  width: 17px !important;
  height: 17px !important;
  margin-right: 6px !important;
  flex-shrink: 0;
}

/* 特定商取引法など、見出し＋内容の情報テーブル */
.info-table th {
  width: 32%;
}

@media (max-width: 600px) {
  /* 狭い画面では見出しと内容を縦に積む（列が潰れて縦長になるのを防ぐ） */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: auto;
  }

  .info-table tr {
    border-bottom: 1px solid var(--border);
  }

  .info-table th,
  .info-table td {
    border: none;
  }

  .info-table th {
    padding: 12px 12px 4px;
  }

  .info-table td {
    padding: 0 12px 12px;
  }
}
