/*
Theme Name: 海産物いのうえ
*/

header .header .cart-icon,
.global-menu .member {
  display: none;
}

/* 投稿本文内のPC/SP出し分け（.pc_only / .sp_only） */
.pc_only {
  display: block;
}
.sp_only {
  display: none;
}
@media screen and (max-width: 767px) {
  .pc_only {
    display: none;
  }
  .sp_only {
    display: block;
  }
}

h1 {
  margin-bottom: 40px !important;
}

h2 {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

h3 {
  margin-top: 30px !important;
  margin-bottom: 30px !important;
}

h4 {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* ページネーション */
.navigation.pagination {
  margin: 40px 0;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #212529;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}

.navigation.pagination a.page-numbers {
  background-color: #f1f1f1;
  border-color: #212529;
  color: #212529;
}

.navigation.pagination .page-numbers.current {
  background-color: #fff;
  border-color: #ddd;
  color: #212529;
  font-weight: bold;
}

.navigation.pagination .page-numbers.dots {
  background-color: #fff;
  border-color: #ddd;
  color: #212529;
}

.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
  width: auto;
  min-width: auto;
  height: 38px;
  padding: 0 4px;
  border: none;
  background: none;
  color: #212529;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navigation.pagination a.page-numbers:hover {
  opacity: 0.75;
}

/* ============================================
   Recipe Content Styles
   ============================================ */

.entry-content h2,
.post-content h2 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background-color: #2a7a6f;
  padding: 0.5em 1em;
  margin: 2em 0 0.8em;
  border-radius: 4px;
}

.recipe-info {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
}

.recipe-info tr {
  border-bottom: 1px solid #e0eeec;
}

.recipe-info th {
  width: 8em;
  padding: 0.6em 1em;
  background-color: #eaf5f3;
  color: #2a7a6f;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

.recipe-info td {
  padding: 0.6em 1em;
  color: #333;
  vertical-align: top;
}

.recipe-ingredients {
  width: 100%;
  max-width: 50%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
}

.recipe-ingredients tr {
  border-bottom: 1px solid #e0eeec;
}

.recipe-ingredients tr:last-child {
  border-bottom: none;
}

.recipe-ingredients td {
  padding: 0.5em 1em;
  color: #333;
  vertical-align: top;
}

.recipe-ingredients td:first-child {
  font-weight: bold;
  width: 55%;
}

.recipe-ingredients td:last-child {
  color: #555;
  text-align: right;
}

.recipe-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
  counter-reset: step-counter;
}

.recipe-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding: 1em 1em 1em 1.2em;
  margin-bottom: 0.8em;
  background-color: #f9fdfc;
  border-left: 4px solid #2a7a6f;
  border-radius: 0 4px 4px 0;
}

.recipe-steps li > p:empty {
  display: none;
}

.recipe-step-title {
  font-weight: bold;
  font-size: 0.95rem;
  color: #2a7a6f;
}

.recipe-step-body {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .recipe-info th {
    width: 6em;
    font-size: 0.85rem;
    padding: 0.5em 0.6em;
  }

  .recipe-info td {
    font-size: 0.85rem;
    padding: 0.5em 0.6em;
  }

  .recipe-ingredients td {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
  }

  .recipe-steps li {
    padding: 0.8em 0.8em 0.8em 0.9em;
  }
}