/* ===================================================
   からごちレシピ — メインスタイルシート
   =================================================== */

/* ── CSS変数（共通headerの定義を取り込み） ── */
:root {
  --green-dark:  #1a3d2b;
  --green-mid:   #2e7d52;
  --green-light: #e6f4ec;
  --accent:      #27ae60;
  --border:      #e8eeeb;
  --cream:       #fafbfa;
  --text:        #1a2e22;
  --text-mid:    #4a6655;
  --text-light:  #8aaa95;
  --shadow-sm:   0 1px 8px rgba(26,61,43,.07);
  --shadow-md:   0 4px 24px rgba(26,61,43,.10);
  /* karada追加 */
  --warm-white:  #ffffff;
  --shadow:      0 1px 8px rgba(26,61,43,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── HEADER（白背景） ───────────────────────────────── */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; height: 40px; }
.site-logo img { height: 32px; width: auto; display: block; }

/* デスクトップナビピル */
.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 24px;
  font-size: .82rem; font-weight: 500;
  color: var(--text-mid); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-pill:hover { background: var(--green-light); color: var(--green-dark); }
.nav-pill.active { background: var(--green-dark); color: #fff; }
.nav-pill.active:hover { background: var(--green-mid); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: 8px; transition: background .15s;
}
.hamburger:hover { background: var(--green-light); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--green-dark); border-radius: 2px;
  transition: transform .3s, opacity .3s; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルドロワー */
.nav-drawer {
  display: none;
  position: fixed; inset: 64px 0 0 0;
  background: rgba(26,61,43,.45); backdrop-filter: blur(2px);
  z-index: 190; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer-inner {
  position: absolute; top: 0; right: 0;
  width: min(280px, 80vw); height: 100%;
  background: #fff; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(26,61,43,.12);
  overflow-y: auto;
}
.nav-drawer.open .nav-drawer-inner { transform: translateX(0); }
.drawer-label {
  font-size: .7rem; letter-spacing: .1em; color: var(--text-light);
  text-transform: uppercase; margin: 8px 0 4px; padding: 0 4px;
}
.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: .88rem; font-weight: 500; color: var(--text);
  transition: background .15s;
}
.drawer-link:hover { background: var(--green-light); color: var(--green-dark); }
.drawer-link.primary { background: var(--green-dark); color: #fff; }
.drawer-link.primary:hover { background: var(--green-mid); }

/* ─── FOOTER（白背景） ──────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-logo-link { display: inline-flex; align-items: center; }
.footer-logo { height: 28px; width: auto; }
.footer-copy {
  font-size: .75rem; color: var(--text-light); line-height: 1.6;
}
.footer-copy a { color: var(--text-mid); text-decoration: underline; }

@media (max-width: 640px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .nav-drawer { display: block; }
  .header-inner { padding: 0 16px; }
}

/* ─── BREADCRUMB ─────────────────────────────────── */
.karada-breadcrumb {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px;
  font-size: .77rem;
  color: var(--text-light);
}
.karada-breadcrumb a { color: var(--green-mid); text-decoration: none; }
.karada-breadcrumb a:hover { text-decoration: underline; }
.karada-breadcrumb .sep { margin: 0 6px; }

/* ─── PAGE WRAPPER ───────────────────────────────── */
.page-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ─── CARDS / SECTIONS ───────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── RECIPE TITLE BLOCK ─────────────────────────── */
.recipe-title-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.recipe-title-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--accent), #6dbf8a);
}

.recipe-category-badge {
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.recipe-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.4;
  margin-bottom: 6px;
}

.recipe-subtitle {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.recipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  min-width: 84px;
}
.stat-label { font-size: .65rem; color: var(--text-light); margin-bottom: 3px; }
.stat-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}
.stat-unit { font-size: .65rem; color: var(--text-light); }

/* ─── PHOTO ──────────────────────────────────────── */
.recipe-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ede3d9, #d6c5b4);
  border-radius: 12px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .83rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ─── INGREDIENTS ────────────────────────────────── */
.servings-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .82rem;
  color: var(--text-light);
}
.servings-control button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #6dbf8a;
  background: #fff;
  color: var(--green-mid);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
}
.servings-control button:hover { background: var(--green-mid); color: #fff; }
#servings-num { font-weight: 500; color: var(--text); min-width: 22px; text-align: center; }

.ingredient-group { margin-bottom: 14px; }
.ingredient-group-name {
  font-size: .73rem;
  font-weight: 500;
  color: var(--green-mid);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 4px;
  margin-bottom: 8px;
  letter-spacing: .05em;
}

.ingredient-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .87rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
  align-items: baseline;
  gap: 8px;
}
.ingredient-name { color: var(--text); }
.ingredient-amount {
  color: var(--green-mid);
  font-weight: 500;
  white-space: nowrap;
}

/* ─── STEPS ──────────────────────────────────────── */
.step-list { list-style: none; }
.step-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: start;
}
.step-number {
  width: 38px; height: 38px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.step-text { font-size: .9rem; line-height: 1.85; padding-top: 5px; }

/* ─── NUTRITION ──────────────────────────────────── */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.nutrition-item {
  background: var(--green-light);
  border-radius: 8px;
  padding: 10px 10px;
  text-align: center;
}
.n-label { font-size: .65rem; color: var(--accent); margin-bottom: 3px; font-weight: 500; }
.n-val {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--green-dark);
}
.n-unit { font-size: .63rem; color: var(--text-light); }

/* ─── SOURCE CARD ─────────────────────────────────── */
.source-card {
  padding: 14px 20px !important;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--green-light) !important;
  border-left: 3px solid var(--accent) !important;
  box-shadow: none !important;
}
.source-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: .05em;
}
.source-body {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.6;
}
.source-body a { color: var(--accent); text-decoration: underline; }

.source-line {
  font-size: .73rem;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── SIDEBAR ────────────────────────────────────── */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-family: 'Noto Serif JP', serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.related-list { list-style: none; }
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: block;
  padding: 8px 0;
  font-size: .82rem;
  color: var(--green-mid);
  text-decoration: none;
  transition: color .15s;
}
.related-list a:hover { color: var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .73rem;
  color: var(--text-light);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.tag:hover { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }

/* ─── RECIPE INDEX (一覧) ────────────────────────── */
.index-header {
  padding: 32px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.index-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 6px;
}
.index-header p { font-size: .88rem; color: var(--text-light); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.recipe-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(44,24,16,.15);
}

.recipe-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ede3d9, #d6c5b4);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: .78rem;
  overflow: hidden;
}
.recipe-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recipe-card-body { padding: 14px 16px; }
.recipe-card-cat {
  font-size: .68rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.recipe-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.45;
  margin-bottom: 8px;
}
.recipe-card-meta {
  display: flex;
  gap: 10px;
  font-size: .72rem;
  color: var(--text-light);
}
.recipe-card-meta span::before { margin-right: 3px; }

/* filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-bar--parts {
  background: #faf7f4;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: -10px;
}
.filter-bar--parts .filter-btn {
  font-size: .74rem;
  padding: 4px 12px;
  background: #fff;
}
.filter-bar--parts .filter-btn small {
  opacity: .65;
  font-size: .72rem;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: .78rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.filter-btn:hover,
.filter-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ─── ALERT / ERROR ──────────────────────────────── */
.alert {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: .88rem;
}
.alert-error { background: #fdecea; border: 1px solid #f5c6c3; color: #a32b24; }
.alert-info  { background: #e8f4fd; border: 1px solid #b9d9f4; color: #1a5c8a; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 860px) {
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
    gap: 0;
  }

  .recipe-sidebar { order: 99; margin-top: 16px; }


  .recipe-title-block { padding: 20px 22px; }
  .card { padding: 18px 20px; }

  .recipe-stats { gap: 8px; }
  .stat-item { padding: 8px 12px; min-width: 76px; }

  .nutrition-grid { grid-template-columns: repeat(3, 1fr); }

  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a5c35 60%, var(--green-mid) 100%);
  color: #fff;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(196,132,90,.18) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-sub {
  font-size: .8rem;
  letter-spacing: .18em;
  color: #6dbf8a;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #fff;
}
.hero-title em {
  color: #6dbf8a;
  font-style: normal;
}
.hero-desc {
  font-size: .93rem;
  color: rgba(255,255,255,.75);
  line-height: 1.9;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hs-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #6dbf8a;
  line-height: 1;
}
.hs-label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
  letter-spacing: .08em;
}
.hero-deco {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: .13;
  font-size: 2.8rem;
  pointer-events: none;
}
@media (max-width: 640px) {
  .hero { padding: 44px 20px 40px; }
  .hero-deco { display: none; }
}

/* ─── TOP WRAP ───────────────────────────────────── */
.top-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ─── SECTION ────────────────────────────────────── */
.top-section {
  margin-top: 52px;
}
.top-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.ts-icon { font-size: 1.2rem; }
.ts-count {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-light);
  font-family: 'Noto Sans JP', sans-serif;
}

/* ─── RELOAD BUTTON ──────────────────────────────── */
.reload-wrap {
  text-align: center;
  margin-top: 32px;
}
.btn-reload {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 28px;
  font-size: .88rem;
  letter-spacing: .06em;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(44,24,16,.22);
}
.btn-reload:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

/* ─── NO PHOTO EMOJI ─────────────────────────────── */
.no-photo {
  font-size: 2.6rem;
  opacity: .45;
}

/* ─── PAGE SECTION HEADER ────────────────────────── */
.page-section-header {
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page-section-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 6px;
}
.page-section-header p {
  font-size: .88rem;
  color: var(--text-light);
}
.page-section-header a {
  color: var(--green-mid);
}

/* ─── GENRE LIST ─────────────────────────────────── */
.genre-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.genre-list-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s, padding-left .15s;
}
.genre-list-item:nth-child(odd) a  { border-right: 1px solid var(--border); }
.genre-list-item:nth-last-child(-n+2) a { border-bottom: none; }
.genre-list-item a:hover { background: var(--cream); padding-left: 26px; }
.genre-list-item--active a {
  background: var(--green-dark);
  color: #fff;
}
.genre-list-item--active a:hover { background: var(--green-mid); padding-left: 20px; }
.gli-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.gli-name {
  flex: 1;
  font-family: 'Noto Serif JP', serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-dark);
}
.genre-list-item--active .gli-name { color: #fff; }
.gli-count {
  font-size: .75rem;
  color: var(--text-light);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}
.genre-list-item--active .gli-count {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}
.gli-arrow {
  color: #6dbf8a;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.genre-list-item--active .gli-arrow { color: rgba(255,255,255,.5); }

@media (max-width: 640px) {
  .genre-list { grid-template-columns: 1fr; }
  .genre-list-item:nth-child(odd) a { border-right: none; }
  .genre-list-item:nth-last-child(-n+2) a { border-bottom: 1px solid var(--border); }
  .genre-list-item:last-child a { border-bottom: none; }
}

/* ─── SLIDER ─────────────────────────────────────────── */
.slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--green-dark);
  max-height: 480px;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 420px;
}
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  overflow: hidden;
}
.slider-slide.active { opacity: 1; z-index: 2; }

.slider-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.65);
}

/* ダミースライド（写真なし時） */
.slider-slide--dummy {
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-dummy-inner { text-align: center; color: #fff; padding: 24px; }
.slider-dummy-icon  { font-size: 4rem; margin-bottom: 16px; opacity: .7; }
.slider-dummy-label {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.slider-dummy-sub { font-size: .95rem; opacity: .75; }

/* キャプション */
.slider-caption {
  position: absolute;
  bottom: 48px; left: 0; right: 0;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  z-index: 3;
}
.slider-cat {
  font-size: .78rem;
  letter-spacing: .18em;
  color: #6dbf8a;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.slider-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.slider-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 28px;
  font-size: .88rem;
  letter-spacing: .05em;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.slider-btn:hover { background: var(--green-mid); transform: translateY(-2px); color: #fff; }

/* ドット */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.sdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}
.sdot.active { background: #fff; border-color: #fff; }

/* 矢印 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.3);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(0,0,0,.55); }
.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }

@media (max-width: 640px) {
  .slider-track { height: 260px; }
  .slider-caption { bottom: 32px; }
  .slider-title { font-size: 1.25rem; }
  .slider-btn { padding: 8px 20px; font-size: .82rem; }
  .slider-arrow { display: none; }
}

/* ─── TOP BREADCRUMB ────────────────────────────────── */
.top-breadcrumb {
  font-size: .77rem;
  color: var(--text-light);
  padding: 12px 0 0;
  margin-bottom: 0;
}
.top-breadcrumb a { color: var(--green-mid); text-decoration: none; }
.top-breadcrumb a:hover { text-decoration: underline; }
.top-breadcrumb span { margin: 0 6px; }

/* ─── FOOTER GENRE ──────────────────────────────────── */
.footer-genre-wrap {
  background: var(--green-dark);
  padding: 48px 24px;
}
.footer-genre-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.footer-genre-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  letter-spacing: .06em;
}
.footer-genre-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.footer-genre-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .18s, color .18s;
  font-size: .88rem;
}
.footer-genre-list a:hover {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}
.footer-genre-list a.footer-genre-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.fgl-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.fgl-name { flex: 1; }
.fgl-count {
  font-size: .72rem;
  opacity: .65;
  background: rgba(0,0,0,.25);
  border-radius: 20px;
  padding: 1px 8px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .footer-genre-list { grid-template-columns: repeat(2, 1fr); }
  .footer-genre-wrap { padding: 32px 16px; }
}


/* ══ 健康・安全情報バナー ══ */
.atama-banner-wrap {
  background: #f5f0e8;
  border-top: 1px solid #e0d5c0;
  padding: 28px 24px;
}
.atama-banner-inner { max-width: 900px; margin: 0 auto; }
.atama-banner-label {
  font-size: .72rem; color: #888;
  letter-spacing: .06em; margin-bottom: 10px;
}
.atama-banner {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid #d4c8a8;
  border-radius: 12px; padding: 18px 22px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.atama-banner:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #b8a060; }
.atama-banner-icon { font-size: 2rem; flex-shrink: 0; }
.atama-banner-body { flex: 1; }
.atama-banner-title { font-weight: bold; font-size: 1rem; color: #3a2a0a; margin-bottom: 4px; }
.atama-banner-sub { font-size: .82rem; color: #666; line-height: 1.5; }
.atama-banner-arrow { font-size: 1.6rem; color: #b8a060; flex-shrink: 0; }
@media (max-width: 640px) {
  .atama-banner { padding: 14px 16px; gap: 12px; }
  .atama-banner-icon { font-size: 1.5rem; }
  .atama-banner-sub { display: none; }
}

/* ══ フィルターバー：ラベル ══════════════════════════════════ */
.filter-bar-label {
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .06em;
  white-space: nowrap;
  align-self: center;
  padding-right: 4px;
  flex-shrink: 0;
}
.filter-bar--method { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.filter-bar--genre  { border-top: 1px solid var(--border); padding-top: 10px; }
.filter-bar--attr   { border-top: 1px solid var(--border); padding-top: 10px; }

/* 調理法・ジャンル・区分は色を変えて区別 */
.filter-bar--method .filter-btn.active { background: #4a7c59; border-color: #4a7c59; }
.filter-bar--genre  .filter-btn.active { background: #7c5a4a; border-color: #7c5a4a; }
.filter-bar--attr   .filter-btn.active { background: #4a5a7c; border-color: #4a5a7c; }

/* ══ レシピ詳細：バッジ行 ════════════════════════════════════ */
.recipe-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.recipe-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity .15s;
}
.recipe-badge:hover { opacity: .8; }
.badge-cat   { background: var(--green-mid);  color: #fff; }
.badge-attr  { background: #4a5a7c;           color: #fff; }
.badge-cook  { background: #4a7c59;           color: #fff; }
.badge-genre { background: #7c5a4a;           color: #fff; }

/* ══ タグ：調理法・ジャンル・区分の色分け ════════════════════ */
.tag-cook  { background: #e8f0eb; color: #2d5a3d; border-color: #b0d4bb; }
.tag-genre { background: #f0ebe8; color: #5a3d2d; border-color: #d4c0b0; }
.tag-attr  { background: #e8ebf0; color: #2d3d5a; border-color: #b0bbd4; }


/* ══ レイジーローディング ══ */
.lazy-load-status {
  text-align: center;
  font-size: .8rem;
  color: var(--text-light);
  padding: 16px;
  letter-spacing: .04em;
}

/* ══ SP絞り込みアコーディオン ══════════════════════════════════ */
.sp-filter-toggle {
  display: none; /* PCでは非表示 */
}

@media (max-width: 768px) {
  /* アコーディオンのトグルボタン */
  .sp-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--green-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .sp-filter-toggle:active { background: var(--border); }

  .sp-filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* 有効な絞り込みタグを横並びで表示 */
  .sp-filter-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
  }
  .sp-filter-active-tag {
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: .72rem;
    font-weight: 500;
  }

  /* 矢印（開閉状態を示す） */
  .sp-filter-caret {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform .2s;
    color: var(--text-light);
  }

  /* フィルター本体の折りたたみ */
  .sp-filter-body {
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s;
    max-height: 2000px;
    opacity: 1;
  }
  .sp-filter-body.sp-filter-collapsed {
    max-height: 0;
    opacity: 0;
  }
}

/* ══ テーマgreen対応 ══════════════════════════════════════════ */
  background: var(--green-light);
  border-color: var(--border);
}

/* ══ karada サブナビ（カテゴリ） ══════════════════════════════ */
.karada-subnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.karada-subnav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.karada-subnav-inner::-webkit-scrollbar { display: none; }
.karada-subnav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.karada-subnav-item:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-mid);
}
.karada-subnav-item.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
  font-weight: 700;
}
.karada-subnav-icon { font-size: .9rem; }

@media (max-width: 640px) {
  .karada-subnav-inner { padding: 0 12px; }
  .karada-subnav-item  { padding: 9px 10px; font-size: .75rem; }
}
