/* =========================
  English text style
========================= */
.en {
  font-family: "Noto Serif JP", "游明朝", "Yu Mincho", "YuMincho", serif;
  font-weight: bold;
}

/* =========================================
   食材一覧ページ - Ingredients List
   ========================================= */
.ingredients-list_box{
  background-color: var(--color-bg-lightblue);
}
.ingredientsList_page {
  min-height: 100vh;
}

.ingredientsList_page .l_container_md {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* ヘッダーセクション */
.ingredientsList_header {
  text-align: center;
  margin-bottom: 60px;
}

.ingredientsList_header_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  max-width: 150px;
}

.ingredientsList_header_icon svg {
  width: 40px;
  height: 40px;
}

.ingredientsList_header_title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.ingredientsList_header_subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-main);
  letter-spacing: 0.1em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.ingredientsList_header_lead {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 auto;
  text-align: left;
}

/* グリッドレイアウト */
.ingredientsList_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* カード */
/* .ingredientsList_card {
  overflow: hidden;
} */

.ingredientsList_card_link:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredientsList_card_link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* カード画像 */
.ingredientsList_card_image {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.ingredientsList_card_image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.ingredientsList_card_image_placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d0d0d0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingredientsList_card_image_placeholder::before {
  content: "";
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* カードボディ */
.ingredientsList_card_body {
  padding: 24px 20px 20px;
}

.ingredientsList_card_title {
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  color: var(--color-main);
  margin: 0 0 12px;
  line-height: 1.4;
}

.ingredientsList_card_desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-main);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* カードボタン */
.ingredientsList_card_button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 24px;
  margin-top: 16px;
  background: #ffffff;
  color: var(--color-main);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ingredientsList_card_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ingredientsList_card_button_text {
  flex: 1;
  text-align: center;
  color: var(--color-main);
}

.ingredientsList_card_button_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-main);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.3s ease;
}

.ingredientsList_card_button_icon svg {
  width: 20px;
  height: 20px;
}

.ingredientsList_card_button:hover .ingredientsList_card_button_icon {
  transform: translateX(4px);
}

/* 空メッセージ */
.ingredientsList_empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #666;
}

/* タブレット */
@media (max-width: 1024px) {
  .ingredientsList_page .l_container_md {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .ingredientsList_header_title {
    font-size: 28px;
  }

  .ingredientsList_header_lead {
    font-size: 14px;
  }

  .ingredientsList_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* モバイル */
@media (max-width: 640px) {
  .ingredientsList_page .l_container_md {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .ingredientsList_header {
    margin-bottom: 40px;
  }

  .ingredientsList_header_icon {

    margin-bottom: 12px;
  }

  .ingredientsList_header_icon svg {
    width: 32px;
    height: 32px;
  }

  .ingredientsList_header_title {
    font-size: 24px;
  }

  .ingredientsList_header_subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .ingredientsList_header_lead {
    font-size: 14px;
    line-height: 1.7;
  }

  .ingredientsList_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ingredientsList_card_body {
    padding: 20px 16px 16px;
  }

  .ingredientsList_card_title {
    font-size: 16px;
  }

  .ingredientsList_card_desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .ingredientsList_card_button {
    padding: 10px 12px 10px 20px;
    font-size: 13px;
    margin-top: 12px;
  }

  .ingredientsList_card_button_icon {
    width: 32px;
    height: 32px;
  }

  .ingredientsList_card_button_icon svg {
    width: 18px;
    height: 18px;
  }
}
