/* --- Global Resets & Variables --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-green: #0e3d26;
  --cream-bg: #fffcd1;
  --orange-primary: #ff7a00;
  --text-dark: #111111;
  --text-light: #ffffff;
  --text-muted: #706f5b;
  --white-bg: #ffffff;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-dark);
}

/* --- Navigation Header --- */
.header {
  background-color: var(--dark-green);
  color: var(--text-light);
  padding: 24px 80px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.navbar .logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.navbar .logo a {
  color: inherit;
  text-decoration: none;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

/* --- Search & Filter Utility Bar --- */
.utility-bar {
  background-color: var(--white-bg);
  padding: 14px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-container {
  display: flex;
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 30px;
  padding: 8px 18px;
  width: 280px;
}

.search-icon {
  display: flex;
  align-items: center;
  color: #666;
  margin-right: 10px;
}

.search-container input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  color: var(--text-dark);
}

.filter-wrapper {
  position: relative;
  display: inline-block;
}

.filter-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
}

.arrow-icon {
  transition: transform 0.25s ease;
}

.filter-btn.active .arrow-icon {
  transform: rotate(180deg);
}

/* ドロップダウン */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 350px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.filter-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-section + .filter-section {
  margin-top: 20px;
}

.filter-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #222;
}

.chip-group {
  display: flex;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.85rem;
  color: #222;
}

.filter-option:hover {
  background: #f5f5f5;
}

.filter-option input {
  display: none;
}

.filter-option .checkmark {
  opacity: 0;
  font-size: 0.8rem;
  color: #000;
}

.filter-option:has(input:checked) {
  background: #f0f0f0;
  font-weight: 600;
}

.filter-option input:checked + .label-text + .checkmark {
  opacity: 1;
}

/* --- Browse Main Layout --- */
.browse-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 80px;
}

/* ★大枠のカテゴリタブボタンの並びスタイル */
.main-category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(14, 61, 38, 0.1);
  padding-bottom: 16px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid var(--dark-green);
  background-color: transparent;
  color: var(--dark-green);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background-color: rgba(14, 61, 38, 0.05);
}

/* 選択されているタブ */
.tab-btn.active {
  background-color: var(--dark-green);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(14, 61, 38, 0.15);
}

/* パネル表示の切り替え制御 */
.category-content-panel {
  display: none; /* 通常は非表示 */
  animation: fadeIn 0.35s ease;
}

.category-content-panel.active {
  display: block; /* activeクラスがついたものだけ表示 */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark-green);
  letter-spacing: -0.5px;
}

/* カルーセルではなく、パッと見渡せる綺麗なグリッド配置へ変更 */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px 20px;
  margin-bottom: 40px;
}

.food-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.food-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 24px;
  padding: 8px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.food-card-link:hover .food-card {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: var(--orange-primary);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.1);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background-color: #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* --- Map Search Anchor --- */
.map-link-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--text-dark);
  padding-bottom: 4px;
}

/* --- Footer Section --- */
.footer {
  background-color: var(--dark-green);
  color: var(--text-light);
  padding: 80px 80px;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer {
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 80px 80px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand h3 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.footer-brand h3 a {
    color: inherit;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icons a {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-column h4 a {
    color: inherit;
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-light);
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    opacity: 0.9;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .header, .utility-bar, .browse-container, .footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .header, .utility-bar, .browse-container, .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .restaurant-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}