/*
 Theme Name: Funnel AI Corporate
 Theme URI: https://crm.logo-labo.com/
 Author: Tomohiro Nozaki
 Description: Google統合型 AIネイティブCRM/MA のコーポレート＆サービスサイト用テーマ
 Version: 1.0
*/

:root {
  --primary: #225BE4;
  --primary-hover: #1A47B8;
  --primary-light: #F3F4FF;
  --text: #1A1A2E;
  --muted: #6B6B85;
  --border: #E5E7EB;
  --bg: #fff;
  --bgl: #F8F9FB;
  --success: #4CAE50;
  --warning: #FF9D00;
  --error: #C82828;
  --sale-red: #D32F2F; /* セール強調用の赤 */
  --nav-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  padding-top: var(--nav-height);
}

.container, .site-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    
/* --- Header & Nav --- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; box-sizing: border-box; min-height: var(--nav-height); }
    
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.brand-name { font-size: 16px; font-weight: 700; }
    
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: #4A4A68; text-decoration: none; transition: color .2s; font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger { width: 24px; height: 2px; background: var(--text); position: relative; transition: all .3s; }
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; left: 0; width: 24px; height: 2px; background: var(--text); transition: all .3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile Menu Overlay Background */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh;
  background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15); z-index: 1001;
  display: flex; flex-direction: column; padding: 100px 32px 40px; gap: 20px;
  transition: right .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu .mobile-link { font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Mobile Menu Buttons */
.mobile-menu-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}
.mobile-menu-buttons .btn-dark,
.mobile-menu-buttons .btn-light {
  width: 100% !important;
  padding: 16px 24px !important;
  font-size: 15px !important;
  text-align: center;
  justify-content: center;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 32px; line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  transition: color .2s;
}
.mobile-menu-close:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 9999px; padding: 12px 24px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all .3s;
  text-decoration: none;
}
.btn.primary { color: #fff; background: var(--primary); box-shadow: 0 4px 14px rgba(34, 91, 228, .3); }
.btn.primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 91, 228, .4); }
.btn.outline { background: #fff; border: 2px solid var(--primary); color: var(--primary); }
.btn.outline:hover { background: var(--primary-light); border-color: var(--primary-hover); }

/* MV Style Buttons (Black & White) */
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #000 !important; color: #fff !important;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 14px !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: all .3s;
}
.btn-dark:hover {
  background: #1f2937 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff !important; color: #000 !important;
  border: 1px solid #e5e7eb;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 14px !important;
  text-decoration: none;
  transition: all .3s;
}
.btn-light:hover {
  background: #f9fafb !important;
  color: #000 !important;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero { padding: 80px 0 80px; background: linear-gradient(180deg, var(--primary-light), #fff); text-align: center; }
.early-access-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(34, 91, 228, .1), rgba(26, 71, 184, .08));
  border: 1px solid rgba(34, 91, 228, .3);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin: 0 0 16px; }
h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sub-hero { font-size: clamp(16px, 3vw, 24px); color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.lead { color: #4A4A68; font-size: 18px; max-width: 780px; margin: 0 auto 28px; line-height: 1.8; }
    
.hero-image { margin: 50px auto 0; max-width: 1000px; }
.mock {
  aspect-ratio: 1063 / 709; border: 1px solid var(--border); border-radius: 24px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(34, 91, 228, .12); position: relative; background: #fff;
}
.mock img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Sections Common --- */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bgl); }
h2 { text-align: center; font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 0 0 12px; }
.section-sub { color: #4A4A68; text-align: center; margin-bottom: 36px; }

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.badge.success { background: #E8F5E9; color: var(--success); }
.badge.warning { background: #FFF3E0; color: var(--warning); }
.badge.error { background: #FFEBEE; color: var(--error); }

/* CTA Section */
#cta {
  background: var(--primary-light);
  border-top: 1px solid rgba(34, 91, 228, .12);
  border-bottom: 1px solid rgba(34, 91, 228, .08);
  padding: 80px 0;
  text-align: center;
}
#cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
#cta .lead { color: #4A4A68; margin-bottom: 24px; }
#cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#cta .ghost { background: transparent; border: 1px solid var(--border); color: #4A4A68; }
#cta .ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(34, 91, 228, .04); }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.feature-card {
  background: #fff; border-radius: 12px; padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); border: 1px solid var(--border);
  position: relative; transition: all .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34, 91, 228, .12);
  border-color: var(--primary);
}
.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.feature-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--bgl); border-radius: 12px;
}
.feature-number {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(34, 91, 228, .3);
}
.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.feature-description {
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}

/* --- Effects Grid --- */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.effect-card {
  background: #fff; border: 2px solid var(--border); border-radius: 20px;
  padding: 36px 24px; text-align: center; transition: all .3s;
  position: relative; overflow: hidden;
}
.effect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  transform: scaleX(0);
  transition: transform .3s;
}
.effect-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(34, 91, 228, .15);
  border-color: var(--primary);
}
.effect-card:hover::before {
  transform: scaleX(1);
}
.effect-card .category {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.effect-card .big-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 16px;
}
.effect-card .desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.effect-card .detail {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

/* --- Pricing Section --- */
.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.plan {
  background: #fff; border: 2px solid var(--border); border-radius: 24px;
  padding: 40px; box-shadow: 0 8px 30px rgba(34, 91, 228, .06);
  position: relative; transition: all .3s;
}
.plan:hover { box-shadow: 0 12px 40px rgba(34, 91, 228, .12); }
.plan h3 { font-size: 24px; margin: 0 0 16px; }
.plan .price-amount { font-size: 48px; font-weight: 800; color: var(--primary); margin: 6px 0 4px; }
.plan .per { font-size: 16px; color: #4A4A68; }
.plan .feat {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-top: 14px;
}
.plan .cta { margin-top: 22px; width: 100%; }
.plan ul { list-style: none; margin: 20px 0; }
.plan ul li {
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.plan ul li:last-child { border-bottom: none; }
.plan ul li::before { content: '✓'; color: var(--success); font-weight: 900; margin-right: 10px; }

.plan .price-container { margin-bottom: 24px; }
.plan .price-old-row {
  display: flex; align-items: baseline; gap: 6px;
  color: var(--sale-red);
  margin-bottom: 2px;
  min-height: 28px;
}
.plan .price-old-row .strike { 
  text-decoration: line-through; 
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 22px;
  opacity: 0.9;
}
.plan .price-old-row .note { 
  font-size: 12px; 
  color: #6B6B85;
  font-weight: 600;
  transform: translateY(-2px);
}
.plan .price-amount {
  font-family: "Roboto", sans-serif; 
  font-size: 42px;
  font-weight: 900;
  color: var(--primary); 
  line-height: 1;
  display: flex; align-items: flex-start; gap: 4px;
}
.plan .price-amount small { 
  font-size: 24px;
  font-weight: 700; margin-top: 4px; line-height: 1; 
}
.plan .limit-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(34, 91, 228, .1), rgba(34, 91, 228, .05));
  border: 1px solid rgba(34, 91, 228, .2);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  margin-bottom: 8px;
}
.plan .per .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan .per .min { color: #1A1A2E; font-weight: 700; font-size: 14px; }
.plan.enterprise .price-amount { font-size: 40px; margin-top: 10px; line-height: 1.2; }

/* Contact & Footer */
footer { padding: 40px 0; text-align: center; color: var(--muted); background: #FAFBFC; font-size: 13px; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .effects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .price { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 24px;
  }
  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 32px;
  }
  .feature-number {
    width: 32px;
    height: 32px;
    font-size: .9rem;
  }
  #effects .effects-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .effects-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero { padding-top: 40px; }
}
@media (max-width: 1100px) {
  .price { grid-template-columns: repeat(2, 1fr); }
}

/* --- Fixed Page Custom HTML Block --- */
/* 固定ページでカスタムHTMLブロックを使用する際の隙間を解消 */

/* カスタムHTML中心のページ：sectionのパディングを削除 */
.page-section.custom-html-page {
  padding: 0 !important;
}

/* カスタムHTML中心のページ：コンテナのパディングとmax-widthをリセット */
.page-section.custom-html-page .container.no-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* カスタムHTML中心のページ：page-bodyのスタイルをリセット */
.page-section.custom-html-page .page-body.custom-html-content {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* カスタムHTMLブロック内の要素のマージンリセット */
.page-section.custom-html-page .page-body .wp-block-html,
.page-section.custom-html-page .page-body > .wp-block-html {
  margin: 0 !important;
  padding: 0 !important;
}

.page-section.custom-html-page .page-body .wp-block-html > *:first-child {
  margin-top: 0 !important;
}

.page-section.custom-html-page .page-body .wp-block-html > *:last-child {
  margin-bottom: 0 !important;
}

/* レスポンシブ対応：モバイルでも隙間を解消 */
@media (max-width: 768px) {
  .page-section.custom-html-page .container.no-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
}

/* --- Blog Archive Styles --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34, 91, 228, .12);
  border-color: var(--primary);
}
.blog-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}
.blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.4;
}
.blog-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Blog Pagination */
.blog-pagination .page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers li {
  margin: 0;
}
.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all .3s;
  background: #fff;
}
.blog-pagination .page-numbers a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-pagination .page-numbers .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-pagination .page-numbers .dots {
  border: none;
  background: transparent;
}

/* Blog Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-card {
    margin-bottom: 0;
  }
}

/* ============================================
   Event LP Styles
   イベントLP専用スタイル
   ============================================ */

/* Event LP Reset */
.event-lp {
  --event-primary: #a4c520; /* デフォルト（テンプレートで上書き） */
  --event-primary-light: #a4c52015;
}

.event-lp section {
  padding: 0;
  background: none;
}

/* --- Event Hero Section --- */
.event-hero {
  position: relative;
  padding: 60px 0 40px;
  background-color: #f0f8e0;
  text-align: center;
}

.event-hero-overlay {
  display: none; /* オーバーレイ無効化 */
}

.event-hero .container {
  position: relative;
  z-index: 1;
}

.event-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.event-hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.event-hero-title {
  font-size: clamp(28px, 5vw, 48px) !important;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px !important;
  color: var(--text);
}

.event-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #000;
  color: #fff;
  padding: 12px 28px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.event-hero-venue {
  opacity: 0.9;
  font-weight: 500;
}

.event-hero-venue::before {
  content: '｜';
  margin-right: 8px;
  opacity: 0.5;
}

/* バナーのみ表示モード */
.event-hero-banner-only {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-hero-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.event-hero-banner-img {
  width: 100%; /* 横幅いっぱいに */
  height: auto; /* 縦は縦横比で自動 */
  display: block;
  margin: 0 auto;
}

/* 旧スタイル（互換性） */
.event-hero-image {
  margin: 32px auto;
  max-width: 900px;
}

.event-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* フローティングCTAボタン */
.event-cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4361ee;
  color: #fff;
  padding: 16px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.3s;
}

.event-cta-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  color: #fff;
}

.event-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.event-cta-arrow {
  font-size: 18px;
  transition: transform 0.3s;
}

.event-cta-button:hover .event-cta-arrow {
  transform: translateX(4px);
}

.event-btn-primary {
  background: var(--event-primary) !important;
  color: #fff !important;
  padding: 16px 40px !important;
  font-size: 18px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.event-btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* --- Event Partners Section --- */
.event-partners {
  background: #fff;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.event-partner-list {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap;
}

.event-partner-list li {
  list-style: none !important;
  list-style-type: none !important;
}

.event-partner-list li::before {
  content: none !important;
  display: none !important;
}

.event-partner-item {
  display: flex;
  align-items: center;
}

.event-partner-logo {
  max-height: 80px;
  width: auto;
}

.event-partner-name {
  color: #888;
  font-size: 14px;
  font-weight: 600;
}

/* --- Event Section Common --- */
.event-section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--event-primary);
}

/* タイトルを中央揃えにするためのラッパー */
.event-section-title-wrapper {
  text-align: center;
  margin-bottom: 0;
}

.event-section-title-light {
  color: #fff;
  border-color: #fff;
}

.event-section-title-dark {
  color: #333;
  border-color: var(--event-primary);
}

.event-section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

/* --- Event Lead Section --- */
.event-lead-section {
  margin-top: 42px;
  padding: 40px 0 60px;
  background: #fff;
}

.event-lead-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: #333;
  text-align: center;
}

.event-lead-content p {
  margin-bottom: 1.5em;
}

.event-lead-content a {
  color: var(--event-primary);
  text-decoration: underline;
}

.event-lead-content a:hover {
  text-decoration: none;
}

/* --- Event Form Section --- */
.event-form-section {
  margin-top: 42px;
  padding: 40px 0 60px;
  background: #fff;
  text-align: center;
}

.event-form-section .container {
  max-width: 600px !important;
}

.event-form-wrapper {
  max-width: 500px !important;
  margin: 40px auto 0;
  width: 100%;
}

.event-form-embed {
  text-align: left;
  max-width: 500px !important;
}

.event-form-embed iframe {
  width: 100% !important;
  max-width: 500px !important;
  min-height: 400px;
  border: none;
}

/* HubSpotフォームのスタイル調整 */
.event-form-embed .hs-form,
.event-form-embed > div,
.event-form-embed form {
  max-width: 500px !important;
  width: 100% !important;
}

.event-form-embed .hs-form input[type="text"],
.event-form-embed .hs-form input[type="email"],
.event-form-embed .hs-form input[type="tel"],
.event-form-embed .hs-form select,
.event-form-embed .hs-form textarea,
.event-form-embed input[type="text"],
.event-form-embed input[type="email"],
.event-form-embed input[type="tel"],
.event-form-embed select,
.event-form-embed textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.event-form-placeholder {
  padding: 60px;
  background: var(--bgl);
  border-radius: 12px;
  color: var(--muted);
}

/* --- Event Outline Section --- */
.event-outline-section {
  margin-top: 42px;
  padding: 40px 0 60px;
  background: #fff;
  text-align: center;
}

.event-outline-table {
  max-width: 800px;
  margin: 40px auto 0;
  background: #fff;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-outline-table th,
.event-outline-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}

.event-outline-table tr:last-child th,
.event-outline-table tr:last-child td {
  border-bottom: none;
}

.event-outline-table th {
  width: 25%;
  background: #f9f9f9;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.event-outline-table td {
  font-size: 15px;
}

/* --- Event Sessions Section --- */
.event-sessions-section {
  margin-top: 42px;
  padding: 40px 0 60px;
  background: #fff;
}

.event-sessions-list {
  max-width: 800px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 0;
}

.event-session-item {
  display: flex;
  align-items: flex-start;
  padding: 28px 32px;
  gap: 24px;
  border-bottom: 1px solid #eee;
}

.event-session-item:last-child {
  border-bottom: none;
}

.event-session-photo {
  flex-shrink: 0;
}

.event-speaker-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.event-speaker-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
  border: 1px solid #ddd;
}

.event-session-content {
  flex: 1;
  text-align: left;
}

.event-session-header {
  margin-bottom: 4px;
}

.event-speaker-name-large {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.event-speaker-company {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.event-session-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.event-session-bio p {
  margin: 0;
}

/* 旧スタイル（互換性のため残す） */
.event-session-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 12px;
  gap: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.event-session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.event-session-card:last-child {
  margin-bottom: 0;
}

.event-session-speaker-image {
  flex-shrink: 0;
}

.event-session-info {
  flex: 1;
  text-align: left;
}

.event-speaker-role {
  font-size: 13px;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.event-speaker-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.event-session-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--event-primary);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.event-session-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.event-session-description p {
  margin: 0;
}

/* --- Event Notes Section --- */
.event-notes-section {
  margin-top: 42px;
  padding: 40px 0 60px;
  background: #fff;
}

.event-notes-content {
  max-width: 800px;
  margin: 30px auto 0;
  background: rgba(255,255,255,0.95);
  padding: 30px 40px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
}

.event-notes-content p {
  margin: 0 0 1em;
}

.event-notes-content p:last-child {
  margin-bottom: 0;
}

.event-notes-content a {
  color: var(--event-primary);
  text-decoration: underline;
}

.event-notes-content a:hover {
  opacity: 0.8;
}

.event-notes-content ul,
.event-notes-content ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.event-notes-content li {
  margin-bottom: 0.5em;
}

/* --- Event Archive Card (一覧ページ用) --- */
.event-card {
  position: relative;
}

.event-status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.event-status-badge.success {
  background: #E8F5E9;
  color: var(--success);
}

.event-status-badge.muted {
  background: #F5F5F5;
  color: #888;
}

.event-status-badge.warning {
  background: #FFF3E0;
  color: var(--warning);
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.event-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.event-info-icon {
  font-size: 14px;
}

/* --- Event Responsive --- */
@media (max-width: 768px) {
  .event-hero {
    padding: 40px 0 30px;
  }
  
  .event-hero-banner-only {
    padding: 20px 0;
    min-height: auto;
  }
  
  .event-hero-banner {
    height: auto;
  }
  
  .event-hero-banner-img {
    height: auto;
    max-width: 100%;
    border-radius: 4px;
  }
  
  .event-hero-image {
    margin: 24px auto;
  }
  
  .event-hero-img {
    border-radius: 4px;
  }
  
  .event-cta-floating {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 14px 24px;
    font-size: 15px;
    text-align: center;
  }
  
  .event-hero-date {
    padding: 10px 20px;
    gap: 8px;
  }
  
  .event-hero-venue::before {
    display: none;
  }
  
  .event-hero-venue {
    display: block;
    width: 100%;
  }
  
  .event-partner-list {
    gap: 20px;
  }
  
  .event-partner-logo {
    max-height: 60px;
  }
  
  .event-session-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  
  .event-session-info {
    text-align: center;
  }
  
  .event-session-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  
  .event-session-content {
    text-align: center;
  }
  
  .event-speaker-img,
  .event-speaker-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .event-outline-table th,
  .event-outline-table td {
    padding: 14px 16px;
  }
  
  .event-outline-table th {
    width: 30%;
  }
  
  .event-notes-content {
    padding: 24px;
  }
  
  .event-info-grid {
    grid-template-columns: 1fr;
  }
  
  .event-section-title {
    font-size: 24px;
  }
}

/* ============================================
   Single Article Styles
   ブログ・ニュース記事ページ用スタイル
   ============================================ */

/* パンくずリスト */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb-sep { opacity: 0.5; }
.article-breadcrumb-current {
  color: var(--text);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 記事メタ情報 */
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* カテゴリバッジ改善 */
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.article-category:hover {
  background: var(--primary);
  color: #fff;
}

/* 日付・読了時間 */
.article-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.article-date-icon { font-size: 14px; }

/* タイトル */
.article-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.4;
  color: var(--text);
  text-align: left;
}

/* アイキャッチ */
.article-thumbnail {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}
.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 本文スタイル ===== */
.single-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}

.single-content p {
  margin-bottom: 1.8em;
}


/* 見出し2：左ボーダー + 背景グラデ */
.single-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 3rem 0 1.5rem;
  padding: 0.8rem 0 0.8rem 1rem;
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
  color: var(--text);
  text-align: left;
}

/* 見出し3：下線 */
.single-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  text-align: left;
}

/* 見出し4 */
.single-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  color: var(--primary);
  text-align: left;
}

/* リスト */
.single-content ul,
.single-content ol {
  margin: 1.5rem 0;
  padding-left: 0;
}
.single-content li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
}
.single-content ul li {
  list-style: none;
}
.single-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.single-content ol {
  counter-reset: ol-counter;
}
.single-content ol li {
  list-style: none;
  counter-increment: ol-counter;
}
.single-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 引用 */
.single-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--bgl);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-style: normal;
}
.single-content blockquote p {
  margin: 0;
  color: var(--muted);
}

/* 画像 */
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* テーブル */
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 14px;
}
.single-content th,
.single-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.single-content th {
  background: var(--bgl);
  font-weight: 700;
}
.single-content tr:hover td {
  background: #FAFBFC;
}

/* コード */
.single-content code {
  background: var(--bgl);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary);
  font-family: 'SFMono-Regular', Consolas, monospace;
}
.single-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
}
.single-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* 強調ボックス（WordPressブロック用） */
.single-content .wp-block-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--bgl);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
}

/* ===== タグセクション ===== */
.article-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tags-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 14px;
}
.article-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bgl);
  color: var(--muted);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.article-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ===== 前後リンク ===== */
.article-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article-nav-item {
  padding: 24px;
  background: var(--bgl);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.article-nav-item:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(34, 91, 228, 0.1);
  transform: translateY(-2px);
}
.article-nav-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-nav-title {
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}
.article-nav-item.next {
  text-align: right;
}
.article-nav-item.next .article-nav-label {
  justify-content: flex-end;
}
.article-nav-empty {
  /* 空のプレースホルダー用 */
}

/* ===== 戻るボタン ===== */
.article-back {
  margin-top: 32px;
  text-align: center;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav-item.next {
    text-align: left;
  }
  .article-nav-item.next .article-nav-label {
    justify-content: flex-start;
  }
  .single-content h2 {
    font-size: 1.3rem;
  }
  .single-content h3 {
    font-size: 1.15rem;
  }
  .article-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  .article-breadcrumb-current {
    max-width: 150px;
  }
}
