@charset "UTF-8";

/*
Skin Name: AI Recipe Developer
Description: 料理とテクノロジーを融合させた、モダンで清潔感のあるCocoon用スキンです。角丸とソフトな影、食欲をそそる配色が特徴です。
Skin URI: https://example.com/ai-recipe-developer
Author: AI Developer
Version: 1.1.0
Priority: 999999
*/

/* ==================================================================
   1. フォント読み込み & 変数定義
   ================================================================== */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Noto+Sans+JP:wght@400;500;700&family=Quicksand:wght@500;700&display=swap');

:root {
  /* メインカラーパレット */
  --primary-color: #FF6B6B;       /* メイン：温かみのあるコーラルレッド */
  --primary-light: #ff8e8e;
  --secondary-color: #4ECDC4;     /* サブ：清潔感のあるミントグリーン */
  --accent-color: #FFE66D;        /* アクセント：元気なイエロー */
  
  /* テキスト・背景 */
  --text-main: #2D3436;
  --text-sub: #636e72;
  --bg-body: #f7f9fc;             /* 全体の背景：ごく薄い青グレー */
  --bg-card: #ffffff;
  
  /* UI要素 */
  --border-radius-L: 16px;
  --border-radius-M: 10px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* グラデーション */
  --gradient-main: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  --gradient-tech: linear-gradient(135deg, #4ECDC4 0%, #556270 100%);
}

/* ==================================================================
   2. ベーススタイル & リセット
   ================================================================== */
body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

/* 欧文フォントの適用 */
.site-name-text, .entry-card-title, h1, h2, h3, .date-tags {
  font-family: "M PLUS Rounded 1c", sans-serif; /* 丸ゴシックで親しみやすく */
}

/* リンク */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-light);
  opacity: 1; /* Cocoonデフォルトの透過を無効化 */
}

/* 全体のコンテナ（Cocoonの枠組み） */
.wrap {
  background-color: transparent !important; /* デフォルトの白背景を消す */
  margin-top: 20px;
}

/* ==================================================================
   3. ヘッダーエリア
   ================================================================== */
#header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 1rem 0;
  position: relative;
  z-index: 100;
}

/* サイトタイトル */
.logo-header {
  margin: 0;
  padding: 0;
}
.site-name-text {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
}
.site-name-text::before {
  content: '🍳'; /* 簡易アイコン（画像に変更可能） */
  margin-right: 8px;
  font-size: 1.4rem;
}

/* キャッチフレーズ */
.tagline {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* グローバルナビゲーション */
#navi {
  background: #fff; /* 背景色統一 */
  box-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
#navi .navi-in > ul > li > a {
  font-family: "Quicksand", "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 14px 20px;
  position: relative;
}
/* ナビのホバーエフェクト */
#navi .navi-in > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s ease;
}
#navi .navi-in > ul > li > a:hover {
  background-color: transparent;
  color: var(--primary-color);
}
#navi .navi-in > ul > li > a:hover::after {
  width: 80%;
}

/* モバイルメニューボタン */
.mobile-menu-buttons {
  color: var(--text-main);
}
.mobile-menu-buttons .menu-button:hover {
  background-color: var(--bg-body);
  color: var(--primary-color);
}

/* ==================================================================
   4. メインコンテンツ（記事一覧カード）
   ================================================================== */
/* メインカラムの背景を透明に */
.main {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* カード型レイアウト（エントリーカード） */
.entry-card-wrap {
  margin-top: 0;
}

.a-wrap {
  transition: var(--transition);
}
.a-wrap:hover {
  background-color: transparent !important; /* デフォルト背景色無効化 */
  transform: translateY(-5px);
}

/* カード本体 */
.entry-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-L);
  box-shadow: var(--box-shadow);
  padding: 0; /* Cocoonデフォルトのパディングをリセット */
  margin-bottom: 24px;
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* ホバー時のカードスタイル */
.a-wrap:hover .entry-card {
  box-shadow: var(--box-shadow-hover);
}

/* サムネイル */
.entry-card-thumb {
  margin: 0;
  width: 100%;
  padding-top: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* アスペクト比固定 */
}
.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* 角丸は親要素で切る */
  transition: transform 0.5s ease;
}
.a-wrap:hover .entry-card-thumb img {
  transform: scale(1.08);
}

/* カード内コンテンツ */
.entry-card-content {
  padding: 1.2rem 1.5rem;
}

/* タイトル */
.entry-card-title {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* スニペット（抜粋） */
.entry-card-snippet {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* メタ情報（日付・カテゴリ） */
.entry-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}
.date-tags {
  color: var(--text-sub);
}

/* カテゴリラベル */
.cat-label {
  background-color: var(--bg-body);
  color: var(--text-sub);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  top: auto; /* 位置リセット */
  left: auto;
  position: relative;
}
/* 特定カテゴリの色変更（例） */
.cat-label:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ==================================================================
   5. 記事詳細ページ（シングル）
   ================================================================== */
/* 記事本文ラッパー */
.article {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius-L);
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
}

/* 記事タイトル */
.entry-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  position: relative;
  padding-bottom: 1rem;
}
.entry-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* アイキャッチ画像 */
.eye-catch {
  margin-bottom: 3rem;
  border-radius: var(--border-radius-M);
  overflow: hidden;
}
.eye-catch img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 見出しデザイン --- */

/* H2見出し：吹き出し風+下線 */
.article h2 {
  background: #fff;
  padding: 0.8em 0;
  margin: 3em 0 1.5em;
  border: none; /* デフォルト線消去 */
  border-bottom: 2px solid var(--secondary-color);
  font-size: 1.5rem;
  position: relative;
}
.article h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30%;
  height: 2px;
  background: var(--primary-color);
  z-index: 1;
}

/* H3見出し：左線アクセント */
.article h3 {
  padding: 0.5em 0.8em;
  margin: 2.5em 0 1.2em;
  border: none;
  border-left: 5px solid var(--primary-color);
  background: var(--bg-body);
  border-radius: 0 4px 4px 0;
  font-size: 1.3rem;
}

/* H4見出し */
.article h4 {
  margin: 2em 0 1em;
  border-bottom: 1px dashed var(--text-sub);
  padding-bottom: 0.5em;
}

/* --- 本文・装飾 --- */
.entry-content p {
  margin-bottom: 1.8em;
  font-size: 1rem;
}

/* 引用 */
blockquote {
  background: #fdf6f6; /* 薄い赤系 */
  border: none;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  color: #555;
  box-shadow: none;
  margin: 2em 0;
}

/* リスト */
.entry-content ul li {
  margin-bottom: 0.5em;
}

/* --- 目次 (TOC) --- */
.toc {
  border: 2px solid var(--bg-body);
  border-radius: var(--border-radius-M);
  background: #fff;
  padding: 1.5em;
  box-shadow: none;
  margin: 2em 0;
}
.toc-title {
  background: var(--secondary-color);
  color: #fff;
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: "Quicksand", sans-serif;
  margin-bottom: 10px;
}
.toc-content ol li a {
  color: var(--text-main);
  text-decoration: none;
}
.toc-content ol li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ==================================================================
   6. サイドバー
   ================================================================== */
#sidebar {
  padding: 0 !important; /* 余白調整 */
}

/* ウィジェット共通 */
.widget {
  background: var(--bg-card);
  border-radius: var(--border-radius-M);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 24px;
  border: none;
}

/* ウィジェットタイトル */
.widget-title {
  font-size: 1.1rem;
  color: var(--text-main);
  border-bottom: none;
  margin-bottom: 15px;
  position: relative;
  padding-left: 14px;
}
.widget-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* サイドバー内のリスト */
.widget_recent_entries ul li a,
.widget_categories ul li a,
.widget_archive ul li a {
  color: var(--text-main);
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  display: block;
}
.widget ul li:last-child a {
  border-bottom: none;
}

/* ==================================================================
   7. フッター
   ================================================================== */
#footer {
  background: #2D3436;
  color: #fff;
  padding-top: 40px;
  margin-top: 60px;
  border-top: 4px solid var(--secondary-color);
}

.footer-widgets {
  color: #dfe6e9;
}
.footer-title {
  color: #fff;
  border-left: 3px solid var(--accent-color);
}

.footer-bottom {
  background: #222;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.copyright {
  font-family: "Quicksand", sans-serif;
  letter-spacing: 0.05em;
}

/* ==================================================================
   8. レシピ用カスタムブロック（AI Recipe Developer 特有）
   ================================================================== */
/* 記事内で <div class="recipe-box">...</div> のように使います
   またはCocoonのブロックにCSSクラスを追加して利用
*/

/* 材料・手順の囲み枠 */
.recipe-box {
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius-M);
  padding: 25px;
  margin: 2em 0;
  background: #fafffe;
  position: relative;
}
.recipe-box-title {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--secondary-color);
  color: #fff;
  padding: 0 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 28px;
}

/* AIポイント（アクセント） */
.ai-point {
  background: linear-gradient(135deg, #FFF9C4 0%, #FFF176 100%);
  padding: 20px;
  border-radius: var(--border-radius-M);
  color: #5d4037;
  font-weight: 700;
  margin: 2em 0;
  box-shadow: 0 4px 10px rgba(255, 241, 118, 0.4);
  display: flex;
  align-items: center;
  gap: 15px;
}
.ai-point::before {
  content: '💡';
  font-size: 1.5rem;
}

/* ==================================================================
   9. レスポンシブ調整 (Mobile)
   ================================================================== */
@media screen and (max-width: 834px) {
  /* 全体の余白 */
  .wrap {
    margin-top: 0;
    padding: 0 10px;
  }
  
  /* カードリスト */
  .entry-card-wrap {
    padding: 10px 0;
  }
  .entry-card {
    margin-bottom: 15px;
    flex-direction: row; /* スマホでは横並びカードにする場合 */
  }
  .entry-card-thumb {
    width: 35%; /* 左側に画像 */
    aspect-ratio: 1/1;
    margin: 0;
  }
  .entry-card-content {
    width: 65%;
    padding: 10px 12px;
  }
  .entry-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  .entry-card-snippet {
    display: none; /* スマホでは抜粋を消してスッキリさせる */
  }
  
  /* 記事詳細 */
  .article {
    padding: 20px 15px;
    border-radius: 0; /* 画面端まで広げる */
    box-shadow: none;
  }
  .entry-title {
    font-size: 1.4rem;
  }
  .article h2 {
    font-size: 1.3rem;
  }
  
  /* サイドバーは下に落ちるので余白を開ける */
  #sidebar {
    margin-top: 30px;
  }
}

/* さらに小さい画面 (iPhone SE等) */
@media screen and (max-width: 480px) {
  .entry-card-thumb {
    width: 100px;
  }
  .entry-card-title {
    font-size: 0.9rem;
  }
}