 @charset "UTF-8";
/* CSS Document */

  /* =========================================
     リセットとベーススタイル
  ========================================= */
  /*body {
    margin: 0; padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff; color: #333;
  }*/
  img { max-width: 100%; height: auto; display: block; }
  .recipe__container { max-width: 800px; margin: 0 auto; padding: 0px;}
	a {
    text-decoration: none!important;
    color: inherit; /* 親要素の文字色を引き継ぐ（青色になるのを防ぐ場合） */
  }

  /* メインビジュアル */
  .hero-image { width: 100%; margin:0 auto 40px; max-width: 900px; }

  /* =========================================
     検索・絞り込みエリア
  ========================================= */
  .filter-container { 
    max-width: 800px; 
    margin: 0 auto 50px auto; 
  }
  
  /* 条件表示エリア */
  .filter-info-box {
    background-color: #f4f4f4; padding: 20px 30px;
    display: flex; justify-content: space-between; 
    align-items: center;
    font-size: 14px; margin-bottom: 20px;
    gap: 15px; 
  }
  .filter-info-box .condition { 
    line-height: 1.5;
  }
  
  #js-active-tags-text {
    display: inline-block; 
  }

  .filter-info-box .count { 
    color: #666; font-weight: bold; 
    white-space: nowrap; flex-shrink: 0; 
  }

  .controls-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

  /* インラインタグ */
  .tags-area { 
    display: flex; align-items: center; gap: 10px; font-size: 14px; 
    max-width: 70%; /* 横スクロール制御用 */
  }
  .tags-label { flex-shrink: 0; }
  .tag-list { 
    list-style: none; padding: 0; margin: 0; 
    display: flex; gap: 10px; flex-wrap: wrap; 
  }
  .tag-btn {
    background-color: #eef2eb; color: #5c7244;
    border: 1px solid transparent; padding: 6px 16px; border-radius: 20px;
    font-size: 13px; cursor: pointer; transition: all 0.2s ease;
    white-space: nowrap; /* ボタン内のテキスト改行防止 */
  }

  /* ▼修正：タグボタンの選択時とホバー時を分離 */
  .tag-btn.active { 
    background-color: #dbe4d2; 
    border-color: #c0d1b1; 
    font-weight: bold; 
  }
  @media (hover: hover) {
    .tag-btn:hover { 
      background-color: #dbe4d2; 
      border-color: #c0d1b1; 
    }
  }
  
.p__aojiru{
  background: #EEF2E6!important;
  color: #798D44!important;
  border: none!important;
  }
.p__CURRY{
  background: #F3EBCA!important;
  color: #D8BD50!important;
  border: none!important;
  }
  .p__VEGETABLE{
      background: #EBD7D5!important;
  color: #BC7972!important;
    border: none!important;
  }
  .p__WHITE{
      background: #F7E5D8!important;
  color: #E4AA7E!important;
    border: none!important;
  }

  /* =========================================
     右側のアクションエリア（絞り込みボタン ＆ 並び替え）
  ========================================= */
.actions-area { 
    display: flex; 
    flex-direction: row; 
    justify-content: flex-end; 
    width: auto; 
    gap: 10px;
  }

  /* 絞り込みボタン */
  .filter-modal-btn {
    background-color: #ffffff; border: 1px solid #cccccc;
    padding: 8px 16px; display: flex; align-items: center; gap: 8px;
    font-size: 13px; cursor: pointer; transition: background-color 0.2s;
  }
  .filter-modal-btn:hover { background-color: #f9f9f9; }
  .filter-modal-btn svg { color: #999; }

  /* ドロップダウン */
  .sort-dropdown { position: relative; }
  .sort-toggle {
    background-color: #ffffff; border: 1px solid #cccccc;
    padding: 8px 16px 8px 12px; display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #666; cursor: pointer; min-width: 120px;
    justify-content: space-between;
  }
  .sort-icon { display: flex; align-items: center; font-size: 12px; color: #999; }
  .sort-menu {
    position: absolute; top: 100%; left: 0; width: 100%;
    background-color: #ffffff; border: 1px solid #eeeeee; box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    list-style: none; padding: 0; margin: 4px 0 0 0; display: none; z-index: 10;
  }
  .sort-menu.is-open { display: block; }
  .sort-option { padding: 10px 16px; font-size: 13px; color: #888; cursor: pointer; transition: background-color 0.2s; }
  .sort-option:hover { background-color: #f9f9f9; }
  .sort-option.selected {font-weight: bold; background-color: #f4f4f4; }

  /* =========================================
     モーダル（ポップアップ）
  ========================================= */
  .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .modal-overlay.is-open { opacity: 1; visibility: visible; }
  .modal-window { background-color: #ffffff; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
  .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid #eeeeee; }
  .modal-header h2 { margin: 0; font-size: 16px; font-weight: normal;}
  .modal-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; line-height: 1; padding: 0; }
  .modal-body { padding: 30px; }
  .filter-row { display: flex; margin-bottom: 25px; }
  .filter-row:last-child { margin-bottom: 0; }
  .filter-label { width: 100px; flex-shrink: 0; font-size: 14px; font-weight: bold; padding-top: 6px; }
  .filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
  .modal-tag-btn {
    background-color: #f9f9f9; border: 1px solid #dddddd; padding: 6px 16px; font-size: 12px; cursor: pointer; transition: all 0.2s ease;
  }

  /* ▼修正：モーダル内タグボタンも分離 */
  .modal-tag-btn.active { 
    background-color: #eef2eb; 
    border-color: #c0d1b1; 
  }
  @media (hover: hover) {
    .modal-tag-btn:hover { 
      background-color: #eef2eb; 
      border-color: #c0d1b1; 
    }
  }
  
  .modal-footer { 
    background-color: #7b8e4e; padding: 20px 30px; display: flex; 
    align-items: center; justify-content: space-between; gap: 15px; 
  }
  .modal-btn { text-align: center; cursor: pointer; border: none; transition: opacity 0.2s; }
  .modal-btn:hover { opacity: 0.8; }
  .btn-reset { background-color: #ffffff; flex: 0 0 25%; padding: 10px 0; font-size: 13px; }
  .btn-search { background-color: #8b795e; color: #ffffff; flex: 1; padding: 14px 0; font-size: 15px; font-weight: bold; white-space: nowrap; }
  
/* =========================================
     プロダクトタブ ＆ 背景ラッパー
  ========================================= */
  .product-tabs {
    display: flex;
    max-width: 800px;
    margin: 0 auto 10px auto;
    padding: 0;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
  }

  .tab-item {
    border: 1.7px solid transparent;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
	-webkit-text-stroke: 0.3px currentColor;
  }

  /* 最初からそれぞれのカラーを適用 */
  .tab-item[data-tab-target="pickup"] { background-color: #f4f4f4; color: #857554; }
  .tab-item[data-tab-target="HAPPY AOJIRU"] { background-color: #EEF2E6; color: #798D44; }
  .tab-item[data-tab-target="VEGE CURRY FLAKE"] { background-color: #F3EBCA; color: #D8BD50; }
  .tab-item[data-tab-target="VEGETABLE STOCK"] { background-color: #EBD7D5; color: #BC7972; }
  .tab-item[data-tab-target="VEGE WHITE STEW"] { background-color: #F7E5D8; color: #E4AA7E; }

  /* ▼修正：選択中（アクティブ）の時の枠線 */
  .tab-item[data-tab-target="pickup"].active { border-color: #cccccc; }
  .tab-item[data-tab-target="HAPPY AOJIRU"].active { border-color: #c0d1b1; }
  .tab-item[data-tab-target="VEGE CURRY FLAKE"].active { border-color: #e0ca70; }
  .tab-item[data-tab-target="VEGETABLE STOCK"].active { border-color: #d8a09a; }
  .tab-item[data-tab-target="VEGE WHITE STEW"].active { border-color: #eab48b; }

  /* アクティブ（選択中）の時だけ太字にする */
  .tab-item.active { font-weight: bold; }

  /* ▼追加：PCでのホバー時のみ枠線を表示 */
  @media (hover: hover) {
    .tab-item[data-tab-target="pickup"]:hover { border-color: #cccccc; }
    .tab-item[data-tab-target="HAPPY AOJIRU"]:hover { border-color: #c0d1b1; }
    .tab-item[data-tab-target="VEGE CURRY FLAKE"]:hover { border-color: #e0ca70; }
    .tab-item[data-tab-target="VEGETABLE STOCK"]:hover { border-color: #d8a09a; }
    .tab-item[data-tab-target="VEGE WHITE STEW"]:hover { border-color: #eab48b; }
  }

  .recipe-grid-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f4f4f4;
    padding: 30px 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
  }

/* =========================================
     レシピ一覧
  ========================================= */
  .recipe-grid { 
    max-width: 100%; margin: 0 auto; display: grid; 
    grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; padding: 0; 
  }
  .recipe-card { 
    position: relative;
    background-color: #ffffff; 
    padding: 15px; /* 画像とテキストの周りに白い余白を作る */
    box-sizing: border-box;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08); /* 少しだけ影を強調 */
    display: flex;
    flex-direction: column;
  }
  .recipe-card img { 
    width: 100%; 
    aspect-ratio: 1 / 1; /* 画像を綺麗な正方形に揃える */
    object-fit: cover;
    border: none; 
    box-sizing: border-box; 
    display: block; 
    margin-bottom: 12px;
  }
	
.recipe-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
  
.recipe-title {
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 6px 0;
  line-height: 1.4;
  
  /* 追加：2行分の高さを確保 (15px × 1.4 × 2行 = 42px) */
  min-height: 42px;
  
  /* 追加：万が一3行以上になった場合は「...」で省略させる */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.recipe-tags {
  font-size: 12px;
  margin: 0 0 12px 0; /* 下の余白を少しだけ詰めてスッキリさせます */
  /* ▼ 修正：min-heightは削除します */
}
.recipe-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  
  /* ▼ ここがポイント：上の余白を「auto」にすることで、自動的に一番下へ押し下げられます */
  margin: auto 0 0 0; 
}
.recipe-card img.icon-clock {
    width: 20px; /* アイコンの幅 */
    height: 18px; /* アイコンの高さ */
    aspect-ratio: auto;
    margin-bottom: 0;
    display: inline-block;
  }
  /* =========================================
     レスポンシブ対応
  ========================================= */
  @media (max-width: 768px) {
    .filter-info-box { padding: 15px 20px; margin: 0 15px 20px;}
    .filter-row { flex-direction: column; gap: 10px; }
	.recipe__container {padding: 0;}
	.hero-image { margin:0 auto 30px;}
    
    /* コントロール群全体の設定 */
    .controls-row { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
    
    /* ★タグエリアを横スクロールに変更 */
    .tags-area { 
      flex-direction: row; /* 横並びを維持 */
      align-items: center;
      width: 100%;
      max-width: 100%;
	  padding-left: 15px;
    }
    .tag-list {
      flex-wrap: nowrap; /* 改行を禁止 */
      overflow-x: auto;  /* はみ出た分をスクロール */
      -webkit-overflow-scrolling: touch; /* iOSでの滑らかなスクロール */
      padding-bottom: 5px; /* スクロールバー用の微細な余白 */
      
      /* スクロールバーを見えなくする（よりスマホライクに） */
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none;  /* IE, Edge */
    }
    .tag-list::-webkit-scrollbar {
      display: none; /* Chrome, Safari */
    }

    .actions-area { width: 100%; flex-direction: row; gap: 10px; padding: 0 15px;}
    .filter-modal-btn { flex: 1; justify-content: center; }
    .sort-dropdown { flex: 1; }
    .sort-toggle { width: 100%; justify-content: space-between; box-sizing: border-box; }

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

    .product-tabs { 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    padding-bottom: 5px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
    .product-tabs::-webkit-scrollbar { display: none; }
    
    .tab-item { 
      padding: 6px 15px; 
      flex: 0 0 auto; 
    }

    .recipe-grid-wrapper { padding: 20px 13px; }
	  
	.recipe-title {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    /* min-height は削除 */
  }
	 .recipe-tags {
    font-size: 10px!important;
    margin: 0 0 10px 0!important; /* 下の余白を少し確保 */
    line-height: 1.4!important;
    /* min-height は削除 */
  }
	 .recipe-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin: auto 0 0 0; /* ここで一番下に押し下げる */
  }
	 .recipe-card img.icon-clock {
		 width: 19.5px; /* アイコンの幅 */
		 height: 18px; /* アイコンの高さ */
		 aspect-ratio: auto;
		 margin-bottom: 0;
		 display: inline-block;
  }
	  .recipe-card { 
    position: relative;
    background-color: #ffffff; 
    padding: 10px; /* 画像とテキストの周りに白い余白を作る */
    box-sizing: border-box;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08); /* 少しだけ影を強調 */
    display: flex;
    flex-direction: column;
  }
  }
  @media (max-width: 480px) {
    .recipe-grid { gap: 10px; }
    .modal-footer { padding: 15px 20px; gap: 10px; }
    .btn-reset { font-size: 12px; padding: 10px 0; }
    .btn-search { font-size: 13px; padding: 12px 0; }
  }