/*
Theme Name: Lightning Child Azalea
Theme URI: https://azalea-v.net
Description: 埼玉アザレア応援メディア「アザレア通信」専用プレミアム子テーマ。スポーティでモダンなデザイン、選手名鑑、試合情報、ファン参加型応援機能を搭載。スマホ完全最適化。
Author: Azalea Media Project
Template: lightning
Version: 1.5.0
*/

:root {
  --azalea-primary: #122244;      /* アザレアディープネイビー */
  --azalea-primary-light: #1e3a78;
  --azalea-secondary: #e6006e;    /* アザレアツツジピンク */
  --azalea-secondary-glow: #ff2d8d;
  --azalea-accent: #f7b731;       /* ゴールドアクセント */
  --azalea-bg-dark: #0b1528;
  --azalea-surface: #ffffff;
  --azalea-surface-sub: #f6f8fc;
  --azalea-text-main: #1e293b;
  --azalea-text-muted: #64748b;
  --azalea-border: #e2e8f0;
  --azalea-card-shadow: 0 10px 25px -5px rgba(18, 34, 68, 0.08), 0 8px 10px -6px rgba(18, 34, 68, 0.04);
  --azalea-glow-shadow: 0 0 20px rgba(230, 0, 110, 0.35);
  --azalea-radius: 12px;
}

/* 全体ベース改善 */
body {
  background-color: #f8fafd;
  color: var(--azalea-text-main);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 85px !important; /* モバイル固定バー用スペース */
  }
}

/* ヘッダーデザイン強化 */
.site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #eef2f8;
  box-shadow: 0 4px 20px rgba(18, 34, 68, 0.06);
}

.header-top {
  background: linear-gradient(90deg, var(--azalea-primary) 0%, var(--azalea-primary-light) 60%, var(--azalea-secondary) 100%) !important;
  color: #ffffff;
  font-size: 0.82rem;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.header-top .header-top-description {
  color: #ffffff !important;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .header-top {
    font-size: 0.75rem;
    padding: 4px 10px;
    text-align: center;
  }
  .site-header-logo img {
    max-height: 44px;
    width: auto;
  }
}

/* グローバルナビゲーション */
.global-nav-list > li > a {
  font-weight: 700;
  color: var(--azalea-primary) !important;
  transition: all 0.25s ease;
  position: relative;
  padding: 12px 16px;
  border-radius: 8px;
}
.global-nav-list > li > a:hover {
  color: var(--azalea-secondary) !important;
  background: rgba(230, 0, 110, 0.06);
}

/* 記事カード・リストデザインの近代化 */
.vk_post.card {
  border: 1px solid var(--azalea-border) !important;
  border-radius: var(--azalea-radius) !important;
  overflow: hidden;
  background: var(--azalea-surface);
  box-shadow: var(--azalea-card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.vk_post.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(18, 34, 68, 0.15);
  border-color: rgba(230, 0, 110, 0.4) !important;
}

.vk_post_imgOuter {
  overflow: hidden;
  position: relative;
}
.vk_post_imgOuter img {
  transition: transform 0.4s ease;
}
.vk_post.card:hover .vk_post_imgOuter img {
  transform: scale(1.05);
}

/* 記事本文・タイポグラフィ最適化 */
.entry-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2d3748;
}

@media (max-width: 768px) {
  .entry-body {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}

.entry-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--azalea-primary);
  border-left: 5px solid var(--azalea-secondary);
  padding: 8px 0 8px 16px;
  margin: 40px 0 20px 0;
  background: linear-gradient(90deg, rgba(230, 0, 110, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
  .entry-body h2 {
    font-size: 1.25rem;
    padding: 6px 0 6px 12px;
    margin: 30px 0 16px 0;
  }
}

.entry-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azalea-primary);
  border-bottom: 2px solid #eef2f8;
  padding-bottom: 8px;
  margin: 30px 0 16px 0;
  position: relative;
}
.entry-body h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--azalea-secondary);
}

/* テーブル（表）のスマホはみ出し防止＆横スクロール対応 */
.wp-block-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 !important;
  border-radius: 8px;
}
.wp-block-table table {
  width: 100% !important;
  border-collapse: collapse;
  min-width: 320px;
}

/* CTA（ファンクラブ案内）の高級化 */
.veu_cta {
  background: linear-gradient(135deg, #0f1c38 0%, #1e3a78 100%) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  padding: 30px 24px !important;
  box-shadow: 0 15px 35px rgba(15, 28, 56, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin: 35px 0 !important;
}
.veu_cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 0, 110, 0.3) 0%, rgba(230, 0, 110, 0) 70%);
}
.veu_cta .cta_title {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
}
.veu_cta .btn-primary {
  background: linear-gradient(135deg, var(--azalea-secondary) 0%, #ff4d97 100%) !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  box-shadow: var(--azalea-glow-shadow) !important;
  transition: all 0.3s ease !important;
}

/* スマホ用固定フッターバー（回遊率・PV向上） */
.azalea-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 62px;
  background: rgba(18, 34, 68, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.25);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 768px) {
  .azalea-mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}
.azalea-mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s ease;
  height: 100%;
}
.azalea-mobile-nav-item i {
  font-size: 1.15rem;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}
.azalea-mobile-nav-item:hover,
.azalea-mobile-nav-item.active {
  color: #ff4d97;
}
.azalea-mobile-nav-item.highlight .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azalea-secondary) 0%, #ff4d97 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-top: -16px;
  box-shadow: 0 4px 15px rgba(230, 0, 110, 0.5);
  border: 3px solid #122244;
}
