/* =========================================================
   FlashIntel LP（統合修正版）
   ✅ ロゴ下テキスト強制表示・フェードイン正常化
   ✅ アコーディオン動作維持
   ✅ 全体コントラスト・タイポ・ヘッダー・CTA調整済み
   ✅ 青い背景に青い文字のコントラスト問題を完全解決
   ✅ NEWSセクション、PRODUCTセクション、FAQセクションのデザイン改善
   ========================================================= */

/* ---- フォント読み込み ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ---- 基本設定 ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP','Zen Kaku Gothic New','メイリオ',sans-serif !important;
  color:#1a1a1a;
  font-size:16px;
  line-height:1.8;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* =========================================================
   Heroセクション
   ========================================================= */
.flashintel-hero {
  background:linear-gradient(135deg,rgba(0,85,255,0.85),rgba(0,20,60,0.95)),url('../img/flashintel/flashintel-hero-main.jpg') center/cover no-repeat;
  color:#fff;text-align:center;padding:140px 20px 80px;position:relative;overflow:hidden;
}
.flashintel-hero h1{font-size:3.5rem;font-weight:900;text-shadow:0 0 20px rgba(0,0,0,.5);color:#fff !important;}
.flashintel-hero p{max-width:700px;margin:30px auto;background:rgba(0,0,0,.35);border-radius:10px;padding:15px 25px;color:#fff !important;}

/* =========================================================
   Aboutセクション
   ========================================================= */
.flashintel-about-global {
  background:linear-gradient(135deg,#f8fbff 0%,#e8f3ff 100%);
  padding:120px 20px;
  overflow:visible !important;
  position:relative;
  z-index:5;
}
.about_container {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4rem;max-width:1200px;margin:0 auto;
}
.about_visual img{
  width:100%;max-width:460px;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.1);
  opacity:.95;transition:transform .5s ease;
}
.about_visual img:hover{transform:scale(1.03)}

.about_content{
  flex:1 1 50%;max-width:560px;position:relative;z-index:10;color:#111;line-height:2.2;
  opacity:1 !important;visibility:visible !important;
}
.about_content h2{font-size:2.8rem;font-weight:900;color:#0d0d0d !important;margin-bottom:30px;line-height:1.3}
.about_logos{display:flex;justify-content:center;align-items:center;gap:1.5rem;margin:20px 0 40px}
.about_logo{height:60px;opacity:.9;transition:.3s}
.about_logo:hover{opacity:1;transform:scale(1.05)}
.about_logo_x{font-size:2rem;font-weight:700;color:#0055FF}

/* ✅ ロゴ下テキスト常に可視化 + フェードイン対応 */
.flashintel-about-global .about_content p {
  opacity:1 !important;
  transform:none !important;
  display:block !important;
  visibility:visible !important;
  color:#111 !important;
  background:none !important;
  font-size:1.6rem !important;
  line-height:2.3 !important;
  margin-bottom:28px !important;
  text-shadow:none !important;
  text-align:justify;
  transition:opacity 1s ease-out,transform 1s ease-out;
}
.flashintel-about-global .about_content.is-inview p {
  opacity:1 !important;
  transform:translateY(0) !important;
}
.flashintel-about-global .about_content strong{color:#222 !important;font-weight:700}

/* =========================================================
   NEWSセクション（改善版）
   ========================================================= */
.flashintel-news {
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
  padding: 100px 20px;
  overflow: visible;
}

.flashintel-news .section_content_heading {
  text-align: center;
  margin-bottom: 60px;
  color: #0d0d0d !important;
}

.flashintel-news .section_content_heading small {
  display: block;
  color: #0d0d0d !important;
  font-size: 1.2rem;
  margin-top: 10px;
}

.news_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.news_card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 85, 255, 0.15);
}

.news_thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.news_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news_card:hover .news_thumb img {
  transform: scale(1.05);
}

.news_text {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news_meta {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 12px;
}

.news_title {
  margin-bottom: 16px;
  flex: 1;
}

.news_title a {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d0d0d !important;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news_title a:hover {
  color: #0055ff !important;
}

.news_link a {
  font-size: 0.95rem;
  color: #0055ff !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news_link a:hover {
  color: #0044dd !important;
  text-decoration: underline;
}

.news_empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}

/* =========================================================
   Productセクション（改善版）
   ========================================================= */
.flashintel-products {
  background: linear-gradient(180deg, #f7faff 0%, #eef5ff 100%);
  padding: 120px 20px;
}

.flashintel-products .section_content_heading {
  text-align: center;
  margin-bottom: 50px;
  color: #0d0d0d !important;
}

.flashintel-products .section_content_heading small {
  display: block;
  color: #0d0d0d !important;
  font-size: 1.2rem;
  margin-top: 10px;
}

.product_intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.product_intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #0d0d0d !important;
}

.product_list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.product_list > li {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 50px 60px;
  transition: all 0.4s ease;
}

.product_list > li:nth-child(even) {
  flex-direction: row-reverse;
  background: linear-gradient(90deg, #f9fbff, #fff);
}

.product_list > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 85, 255, 0.12);
}

.product_list img {
  width: 52%;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 1s ease;
}

.product_list > li:hover img {
  transform: scale(1.04);
}

.product_list h3 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #0d0d0d !important;
  margin-bottom: 24px;
}

.product_sub {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #0d0d0d !important;
  margin-bottom: 24px;
}

.product_list p {
  font-size: 1.1rem;
  line-height: 2;
  color: #0d0d0d !important;
}

.product_points {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.product_points li {
  background: #f5f9ff;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #0d0d0d !important;
  font-size: 1rem;
  line-height: 1.6;
}

.product_effect {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0055ff !important;
  margin-top: 24px;
}

/* =========================================================
   FAQセクション（改善版）
   ========================================================= */
.flashintel-faq {
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
  padding: 100px 20px;
  overflow: visible;
}

.flashintel-faq .section_content_heading {
  text-align: center;
  margin-bottom: 60px;
  color: #0d0d0d !important;
}

.flashintel-faq .section_content_heading small {
  display: block;
  color: #0d0d0d !important;
  font-size: 1.2rem;
  margin-top: 10px;
}

.faq_inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq_list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  list-style: none;
  padding: 0;
}

.faq_list dt {
  background: #fff;
  border: 2px solid #e0e8ff;
  color: #0d0d0d !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 24px 55px 24px 70px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq_list dt::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: #0055aa !important;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq_list dt::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 1.5rem;
  color: #0078ff;
  transition: transform 0.3s ease;
}

.faq_list dt:hover {
  background: #f9fbff;
  border-color: #0078ff;
  box-shadow: 0 6px 15px rgba(0, 85, 255, 0.1);
}

.faq_list dt.open {
  background: linear-gradient(90deg, #0078ff, #0055ff);
  color: #fff !important;
  border-color: #0055ff;
  box-shadow: 0 6px 18px rgba(0, 85, 255, 0.15);
}

.faq_list dt.open::after {
  content: "−";
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

.faq_list dd {
  background: #f9fbff;
  border-left: 4px solid #0078ff;
  border-radius: 0 0 12px 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s ease;
  padding: 0 20px;
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #111 !important;
}

.faq_list dt.open + dd {
  padding: 24px 20px;
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  background: #f9fbff;
}

/* =========================================================
   CTAセクション
   ========================================================= */
.flashintel-cta {
  background: radial-gradient(circle at center, rgba(0, 40, 120, 1) 0%, rgba(0, 10, 40, 1) 100%);
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.flashintel-cta h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 25px;
  color: #fff !important;
}

.flashintel-cta p {
  font-size: 1.4rem;
  line-height: 2.1;
  max-width: 720px;
  margin: 0 auto 50px;
  color: #dce7ff;
}

.flashintel-cta .c-btn {
  display: inline-block;
  background: linear-gradient(90deg, #0078ff, #00d4ff);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 22px 70px;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 128, 255, 0.4);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.flashintel-cta .c-btn:hover {
  background: linear-gradient(90deg, #00d4ff, #0078ff);
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(0, 200, 255, 0.8);
}

/* =========================================================
   視認性・アクセシビリティ改善
   ========================================================= */
h1, h2, h3 {
  color: #0d0d0d;
  font-weight: 900;
}

a {
  color: #0055ff;
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: #0044dd;
  text-decoration: underline;
}

a:focus, button:focus {
  outline: 3px solid #00d4ff;
  outline-offset: 3px;
}

/* =========================================================
   ヘッダー白背景化（FlashIntelページ専用）
   ========================================================= */
.page-template-page-flashintel #header,
.page-template-page-flashintel .header__inner {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05) !important;
  transition: 0.3s;
}

.page-template-page-flashintel #header a {
  color: #0040aa;
  font-weight: 600;
  text-decoration: none;
}

.page-template-page-flashintel #header a:hover {
  color: #0080ff;
}

.page-template-page-flashintel .header__cv a {
  background: #fff;
  color: #0055ff;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 30px;
  border: 2px solid #0078ff;
  transition: 0.3s;
  box-shadow: 0 0 12px rgba(0, 120, 255, 0.2);
}

.page-template-page-flashintel .header__cv a:hover {
  background: linear-gradient(90deg, #0078ff, #00baff);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
  transform: translateY(-2px);
}

/* =========================================================
   フッター非表示
   ========================================================= */
.page-template-page-flashintel footer,
.page-template-page-flashintel .global_footer_container,
.page-template-page-flashintel #js-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1024px) {
  .product_list > li {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .product_list > li:nth-child(even) {
    flex-direction: column;
  }

  .product_list img {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .about_container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about_content h2 {
    font-size: 2.4rem;
  }

  .about_content p {
    font-size: 1.3rem;
  }

  .news_grid {
    grid-template-columns: 1fr;
  }

  .faq_list dt {
    font-size: 1rem;
    padding: 20px 50px 20px 60px;
  }

  .faq_list dt::before {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .flashintel-hero h1 {
    font-size: 2.6rem;
  }

  .flashintel-hero p {
    font-size: 1.2rem;
  }

  .flashintel-cta h2 {
    font-size: 2.2rem;
  }

  .flashintel-cta p {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }

  .flashintel-cta .c-btn {
    font-size: 1.2rem;
    padding: 18px 50px;
  }

  .product_list > li {
    padding: 30px;
    gap: 1.5rem;
  }

  .product_list h3 {
    font-size: 2rem;
  }

  .faq_list dt {
    font-size: 0.95rem;
    padding: 18px 45px 18px 55px;
  }

  .faq_list dd {
    font-size: 1rem;
  }
}

/* =========================================================
   🔧 FlashIntelページ専用 表示強制上書き（最優先）
   ========================================================= */
.page-template-page-flashintel .flashintel-about-global .about_content,
.page-template-page-flashintel .flashintel-about-global .about_content p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.8s ease, transform 0.8s ease !important;
  height: auto !important;
  overflow: visible !important;
  color: #111 !important;
  background: none !important;
  position: relative !important;
  z-index: 10 !important;
}

/* ✅ ロゴ下テキストを確実に前面に出す */
.page-template-page-flashintel .flashintel-about-global {
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

/* ✅ 背景オーバーレイを透明化（もし上に被っていた場合） */
.page-template-page-flashintel .flashintel-about-global::before {
  background: transparent !important;
  opacity: 0 !important;
}

/* =========================================================
   FlashIntelページ用 - 共通スタイル上書き対策
   ========================================================= */
.page-template-page-flashintel body {
  background: #fff !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #111 !important;
}

/* FlashIntelセクション内の本文を強制上書き */
.page-template-page-flashintel .flashintel-about-global .about_content p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  color: #111 !important;
  background: none !important;
  font-size: 1.6rem !important;
  line-height: 2.3 !important;
  margin-bottom: 28px !important;
  text-shadow: none !important;
  z-index: 10 !important;
  position: relative !important;
}

/* オーバーレイ・背景影響を打ち消す */
.page-template-page-flashintel .flashintel-about-global::before {
  opacity: 0 !important;
  background: transparent !important;
}

/* ページ固有の背景を白に固定 */
.page-template-page-flashintel {
  background: #fff !important;
}