/*
 Theme Name: Deeps Child - 夢占いラボ 2026
 Theme URI: https://yumeuranailab.jp/
 Description: 夢占いラボ専用の子テーマ。2026年最新Webデザイントレンド（Bento Grid、グラスモーフィズム、マイクロインタラクション、大胆タイポグラフィ）を導入。
 Author: ウェブアーチ
 Author URI: https://yumeuranailab.jp/
 Template: deeps
 Version: 1.0.0
 Text Domain: deeps-child
*/

/* ==========================================================================
   0. Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ==========================================================================
   1. CSS Custom Properties（サイト全体のデザイントークン）
   ========================================================================== */
:root {
  /* ── Primary: 深い夜空〜インディゴ ── */
  --yume-bg-dark: #0f0a2e;
  --yume-bg-mid: #1a1145;
  --yume-bg-deep: #2d1b69;
  --yume-primary: #7c3aed;
  --yume-primary-light: #a78bfa;
  --yume-primary-pale: #ede9fe;
  --yume-accent: #6366f1;

  /* ── Text ── */
  --yume-text-light: #f5f3ff;
  --yume-text-muted: rgba(221,214,254,0.75);
  --yume-text-body: #1e1b4b;
  --yume-text-secondary: #6b7280;

  /* ── Gold accent（月・星） ── */
  --yume-gold: #fcd34d;
  --yume-gold-soft: rgba(252,211,77,0.25);

  /* ── Surface ── */
  --yume-surface: #ffffff;
  --yume-surface-alt: #f8f7ff;
  --yume-border: rgba(124,58,237,0.12);
  --yume-border-hover: rgba(124,58,237,0.25);

  /* ── Radius ── */
  --yume-radius-sm: 8px;
  --yume-radius-md: 14px;
  --yume-radius-lg: 20px;
  --yume-radius-xl: 28px;

  /* ── Shadow ── */
  --yume-shadow-sm: 0 2px 8px rgba(15,10,46,0.06);
  --yume-shadow-md: 0 4px 20px rgba(15,10,46,0.08);
  --yume-shadow-lg: 0 8px 40px rgba(15,10,46,0.12);

  /* ── Transition ── */
  --yume-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --yume-duration: 0.3s;
}

/* ==========================================================================
   2. Base Reset & Typography
   ========================================================================== */
body {
  font-family: 'Noto Sans JP', 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--yume-text-body);
  background: var(--yume-surface-alt);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.4;
}

a {
  color: var(--yume-primary);
  text-decoration: none;
  transition: color var(--yume-duration) var(--yume-ease);
}
a:hover {
  color: var(--yume-accent);
}

/* ==========================================================================
   3. Header Override（ヘッダーの改修）
   ========================================================================== */
#header,
#nav_wrap,
.header_inner {
  background: var(--yume-bg-dark) !important;
  border-bottom: 1px solid rgba(139,92,246,0.15);
}

/* サイトタイトル */
#header h1 a,
#header .site_title a,
#header p.site_title a {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
  font-weight: 700;
  color: var(--yume-text-light) !important;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
}

/* ナビメニュー */
#header nav a,
#nav_wrap nav a,
.global_nav a,
#header .menu a {
  color: rgba(221,214,254,0.85) !important;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color var(--yume-duration) var(--yume-ease);
}
#header nav a:hover,
#nav_wrap nav a:hover,
.global_nav a:hover,
#header .menu a:hover {
  color: var(--yume-gold) !important;
}

/* ==========================================================================
   4. Hero Section（トップページ ヒーロー）
   ========================================================================== */
.yume-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--yume-bg-dark) 0%, var(--yume-bg-mid) 35%, var(--yume-bg-deep) 65%, var(--yume-bg-mid) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-radius: 0 0 var(--yume-radius-xl) var(--yume-radius-xl);
  margin-bottom: 2.5rem;
}

.yume-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(138,92,246,0.15) 0%, transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(99,102,241,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.yume-hero__subtitle {
  font-size: 0.75rem;
  color: var(--yume-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.yume-hero__title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--yume-text-light) !important;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.yume-hero__desc {
  font-size: 0.9rem;
  color: var(--yume-text-muted);
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

/* ── ヒーロー内 検索バー ── */
.yume-hero__search {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 460px;
  margin: 0 auto;
}

.yume-hero__search input[type="text"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(139,92,246,0.3);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--yume-radius-md) 0 0 var(--yume-radius-md);
  color: var(--yume-text-light);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--yume-duration) var(--yume-ease);
}
.yume-hero__search input[type="text"]::placeholder {
  color: rgba(196,181,253,0.45);
}
.yume-hero__search input[type="text"]:focus {
  border-color: var(--yume-primary-light);
}

.yume-hero__search button {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--yume-primary), var(--yume-accent));
  border: none;
  border-radius: 0 var(--yume-radius-md) var(--yume-radius-md) 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s var(--yume-ease), box-shadow 0.2s;
}
.yume-hero__search button:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

/* ── 星アニメーション ── */
.yume-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #e0d4ff;
  border-radius: 50%;
  animation: yumeShimmer 3s ease-in-out infinite;
}
@keyframes yumeShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── 月アニメーション ── */
.yume-moon {
  position: absolute;
  top: 2rem;
  right: 3rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef3c7, var(--yume-gold));
  box-shadow: 0 0 30px var(--yume-gold-soft);
  animation: yumeFloat 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes yumeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   5. Section Titles（セクション見出し）
   ========================================================================== */
.yume-section-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yume-text-body);
  margin: 2.5rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 1rem;
}
.yume-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--yume-primary), var(--yume-accent));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   6. Bento Grid Categories（カテゴリーカード）
   ========================================================================== */
.yume-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 1rem;
}

.yume-bento__card {
  background: var(--yume-surface);
  border: 1px solid var(--yume-border);
  border-radius: var(--yume-radius-lg);
  padding: 1.4rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--yume-duration) var(--yume-ease),
    box-shadow var(--yume-duration) var(--yume-ease),
    border-color var(--yume-duration) var(--yume-ease);
}
.yume-bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yume-shadow-md);
  border-color: var(--yume-border-hover);
}

/* Featured（大カード） */
.yume-bento__card--featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: none;
  color: #e0e7ff;
}
.yume-bento__card--featured .yume-bento__title {
  color: #e0e7ff;
  font-size: 1.15rem;
}
.yume-bento__card--featured .yume-bento__desc {
  color: rgba(199,210,254,0.7);
  font-size: 0.82rem;
  line-height: 1.7;
}
.yume-bento__card--featured .yume-bento__icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
}

.yume-bento__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.yume-bento__title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 4px;
}
.yume-bento__desc {
  font-size: 0.78rem;
  color: var(--yume-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── Badge ── */
.yume-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.yume-badge--popular {
  background: #fef3c7;
  color: #92400e;
}
.yume-badge--new {
  background: var(--yume-primary-pale);
  color: #6d28d9;
}

/* ── レスポンシブ ── */
@media (max-width: 640px) {
  .yume-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .yume-bento__card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ==========================================================================
   7. Article List（記事一覧リスト）
   ========================================================================== */
.yume-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 1rem;
}

.yume-article-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--yume-radius-md);
  border: 1px solid var(--yume-border);
  background: var(--yume-surface);
  transition:
    transform var(--yume-duration) var(--yume-ease),
    box-shadow var(--yume-duration) var(--yume-ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.yume-article-item:hover {
  transform: translateX(5px);
  box-shadow: var(--yume-shadow-sm);
}

.yume-article-item__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--yume-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.yume-article-item__info {
  flex: 1;
  min-width: 0;
}
.yume-article-item__info h4 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.5;
}
.yume-article-item__info p {
  font-size: 0.75rem;
  color: var(--yume-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yume-article-item__date {
  font-size: 0.7rem;
  color: var(--yume-text-secondary);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   8. CTA Block（AI夢診断への誘導）
   ========================================================================== */
.yume-cta {
  border-radius: var(--yume-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(99,102,241,0.04));
  border: 1px solid rgba(124,58,237,0.12);
  margin: 2.5rem 1rem 0;
}
.yume-cta h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.yume-cta p {
  font-size: 0.82rem;
  color: var(--yume-text-secondary);
  margin: 0 0 1.2rem;
  line-height: 1.7;
}
.yume-cta__btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--yume-primary), var(--yume-accent));
  color: #fff !important;
  border-radius: var(--yume-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--yume-ease), box-shadow 0.2s;
  text-decoration: none;
}
.yume-cta__btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(124,58,237,0.25);
  color: #fff !important;
}

/* ==========================================================================
   9. Single Post Styling（個別記事ページ）
   ========================================================================== */
.single .entry-content,
.single .post_content,
.single #content .post {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--yume-surface);
  border-radius: var(--yume-radius-lg);
  box-shadow: var(--yume-shadow-sm);
}

.single .entry-title,
.single .post_title,
.single h1.entry-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--yume-text-body);
}

.single .entry-content h2,
.single .post_content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--yume-primary-pale);
  color: var(--yume-text-body);
}

.single .entry-content h3,
.single .post_content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  padding-left: 12px;
  border-left: 4px solid var(--yume-primary);
  color: var(--yume-text-body);
}

/* ==========================================================================
   10. Sidebar Override（サイドバー）
   ========================================================================== */
#sidebar .widget,
.sidebar .widget {
  background: var(--yume-surface);
  border-radius: var(--yume-radius-md);
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--yume-border);
}

#sidebar .widget h2,
#sidebar .widget h3,
.sidebar .widget_title,
#sidebar .widgettitle {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--yume-primary-pale);
  color: var(--yume-text-body);
}

/* ==========================================================================
   11. Footer Override（フッター）
   ========================================================================== */
#footer,
.footer_wrap,
footer {
  background: var(--yume-bg-dark) !important;
  color: rgba(221,214,254,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
#footer a,
footer a {
  color: rgba(221,214,254,0.75) !important;
  transition: color var(--yume-duration) var(--yume-ease);
}
#footer a:hover,
footer a:hover {
  color: var(--yume-gold) !important;
}

/* ==========================================================================
   12. Global Overrides for Deeps Theme Elements
   ========================================================================== */

/* ── ブログカード（トップ一覧のデフォルト表示） ── */
.blog_list li,
.post_list li,
#main_col .post {
  background: var(--yume-surface);
  border-radius: var(--yume-radius-md);
  border: 1px solid var(--yume-border);
  margin-bottom: 1rem;
  transition: transform var(--yume-duration) var(--yume-ease), box-shadow var(--yume-duration) var(--yume-ease);
  overflow: hidden;
}
.blog_list li:hover,
.post_list li:hover,
#main_col .post:hover {
  transform: translateY(-3px);
  box-shadow: var(--yume-shadow-md);
}

/* ── ページネーション ── */
.pagination a,
.page-numbers a,
.wp-pagenavi a {
  border-radius: var(--yume-radius-sm);
  border: 1px solid var(--yume-border);
  padding: 8px 14px;
  transition: all var(--yume-duration) var(--yume-ease);
}
.pagination .current,
.page-numbers .current,
.wp-pagenavi .current {
  background: var(--yume-primary);
  color: #fff;
  border-color: var(--yume-primary);
  border-radius: var(--yume-radius-sm);
}

/* ── パンくずリスト ── */
.breadcrumb,
#breadcrumb {
  font-size: 0.75rem;
  color: var(--yume-text-secondary);
  padding: 1rem;
}

/* ── 「トップに戻る」ボタン ── */
#page_top a,
.return_top a {
  background: var(--yume-primary) !important;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--yume-shadow-md);
  transition: transform 0.2s var(--yume-ease);
}
#page_top a:hover,
.return_top a:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   13. Utility Classes
   ========================================================================== */
.yume-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.yume-fade-up {
  animation: yumeFadeUp 0.6s var(--yume-ease) both;
}
@keyframes yumeFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   14. Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .yume-hero {
    padding: 3.5rem 1.2rem 3rem;
    border-radius: 0 0 var(--yume-radius-lg) var(--yume-radius-lg);
  }
  .yume-hero__title {
    font-size: 1.8rem;
  }
  .yume-hero__search {
    flex-direction: column;
    gap: 8px;
  }
  .yume-hero__search input[type="text"] {
    border-radius: var(--yume-radius-md);
  }
  .yume-hero__search button {
    border-radius: var(--yume-radius-md);
  }
  .yume-moon {
    width: 36px;
    height: 36px;
    top: 1.2rem;
    right: 1.5rem;
  }
  .yume-article-item {
    padding: 12px 14px;
    gap: 12px;
  }
  .yume-article-item__thumb {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .yume-cta {
    margin: 2rem 0.5rem 0;
    padding: 2rem 1.2rem;
  }
}
