/* レシピ詳細ページのスタイル */
.recipe-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  
  /* ヘッダー部分 */
  .recipe-detail-header {
    margin-bottom: 30px;
  }
  
  .recipe-detail-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .recipe-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .recipe-detail-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
  }
  
  .recipe-detail-title-overlay {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* コンテンツコンテナ */
  .recipe-detail-content-container {
    display: flex;
    gap: 30px;
  }
  
  /* サイドバー */
  .recipe-detail-sidebar {
    flex: 0 0 300px;
  }
  
  .recipe-detail-info-card,
  .recipe-detail-features-card,
  .recipe-detail-hours-card,
  .recipe-detail-toc-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .recipe-detail-info-card h3,
  .recipe-detail-features-card h3,
  .recipe-detail-hours-card h3,
  .recipe-detail-toc-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }
  
  .recipe-detail-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .recipe-detail-info-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .info-label {
    color: #666;
    font-weight: 500;
  }
  
  .info-value {
    color: #333;
    font-weight: 600;
    text-align: right;
  }
  
  .recipe-detail-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .recipe-detail-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .recipe-detail-features-list li svg {
    color: #4CAF50;
    margin-right: 10px;
    flex-shrink: 0;
  }
  
  .recipe-detail-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .recipe-detail-hours-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
  }
  
  .recipe-detail-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .recipe-detail-toc-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #0066cc;
    cursor: pointer;
  }
  
  .recipe-detail-toc-list li:hover {
    text-decoration: underline;
  }
  
  .toc-level-1 {
    font-weight: 600;
  }
  
  .toc-level-2 {
    padding-left: 15px;
    font-weight: 500;
  }
  
  .toc-level-3 {
    padding-left: 30px;
    font-weight: 400;
  }
  
  /* メインコンテンツ */
  .recipe-detail-main-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }
  
  /* プレミアムセクション */
  .recipe-premium-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .premium-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
  }
  
  .premium-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
    margin: 0;
  }
  
  .premium-button {
    display: inline-block;
    background-color: #e91e63;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  .premium-button:hover {
    background-color: #d81b60;
  }
  
  /* ローディング表示 */
  .recipe-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
  }
  
  .loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* エラー表示 */
  .recipe-detail-error {
    text-align: center;
    padding: 50px 20px;
  }
  
  .recipe-detail-error h2 {
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 15px;
  }
  
  .recipe-detail-error p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
  }
  
  .back-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  .back-button:hover {
    background-color: #2980b9;
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .recipe-detail-content-container {
      flex-direction: column;
    }
    
    .recipe-detail-sidebar {
      flex: none;
      width: 100%;
      order: 2;
    }
    
    .recipe-detail-main-content {
      order: 1;
      margin-bottom: 20px;
    }
    
    .recipe-detail-image-container {
      height: 300px;
    }
    
    .recipe-detail-title-overlay {
      font-size: 1.8rem;
    }
    
    .premium-section {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .premium-button {
      margin-top: 15px;
      width: 100%;
      text-align: center;
    }
  }
  
  /* カテゴリーと特徴のタグスタイル */
  .category-tags, .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .category-tag, .feature-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .category-tag {
    background-color: #e3f2fd;
    color: #1976d2;
  }
  
  .feature-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
  }
  
  .business-hour-item {
    margin-bottom: 4px;
  }
  
  /* レスポンシブ対応の修正 */
  @media (max-width: 768px) {
    .recipe-detail-content-container {
      flex-direction: column;
    }
    
    .recipe-detail-sidebar {
      flex: none;
      width: 100%;
      order: 1; /* モバイルでは上に表示 */
      margin-bottom: 20px;
    }
    
    .recipe-detail-main-content {
      order: 2;
    }
    
    .recipe-detail-image-container {
      height: 250px;
      margin-bottom: 20px;
    }
    
    .recipe-detail-title-overlay {
      font-size: 1.8rem;
    }
    
    .info-label, .info-value {
      font-size: 0.9rem;
    }
  }
  
  /* 購入ボタンのスタイル修正 */
  .recipe-purchase-sticky {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-top: 1px solid #eee;
  }
  
  .purchase-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
  }
  
  .purchase-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
  }
  
  .purchase-button {
    display: inline-block;
    background-color: #4a6da7; /* より控えめな青色 */
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  .purchase-button:hover {
    background-color: #3a5a8f;
  }
  
  
  /* 基本情報カードのスタイル調整 */
  .recipe-detail-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .info-item {
    margin-bottom: 15px;
  }
  
  .info-item:last-child {
    margin-bottom: 0;
  }
  
  /* 単一値の項目 */
  .info-item {
    display: flex;
    flex-direction: column;
  }
  
  .info-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
  }
  
  .single-value {
    color: #333;
    font-weight: 600;
  }
  
  /* 複数値の項目 */
  .multi-value {
    display: flex;
    flex-direction: column;
  }
  
  .info-value-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
  }
  
  /* カテゴリーと特徴のタグスタイル */
  .category-tag, .feature-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .category-tag {
    background-color: #e3f2fd;
    color: #1976d2;
  }
  
  .feature-tag {
    background-color: #e8f5e9;
    color: #2e7d32;
  }
  
  .business-hour-item {
    margin-bottom: 4px;
    color: #333;
  }
  
  
  /* 基本情報カードのスタイル調整 */
  .recipe-detail-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .info-item {
    margin-bottom: 15px;
  }
  
  .info-item:last-child {
    margin-bottom: 0;
  }
  
  /* 単一値の項目 */
  .info-item {
    display: flex;
    flex-direction: column;
  }
  
  .info-label {
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
  }
  
  .inline-value {
    display: inline;
    color: #333;
    font-weight: 600;
  }
  
  .single-value {
    color: #333;
    font-weight: 600;
  }
  
  /* 複数値の項目 */
  .multi-value {
    display: flex;
    flex-direction: column;
  }
  
  .info-value-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
  }
  
  /* カテゴリーと特徴のタグスタイル */
  .category-tag, .feature-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .category-tag:hover, .feature-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }
  
  .category-tag {
    background-color: #f0f7ff;
    color: #4a6da7;
    border: 1px solid #d0e3ff;
  }
  
  .feature-tag {
    background-color: #f5f9f5;
    color: #4a7d4a;
    border: 1px solid #d8e6d8;
  }
  
  .business-hour-item {
    margin-bottom: 4px;
    color: #333;
  }
  