/*
  FLY株式会社 AI導入支援・RAG/AIエージェント開発 特設ページ
  ai-consulting.html 専用スタイル
  ベース: fly.css のデザインシステムを継承
*/

/* AIページ専用アクセントカラー */
:root {
  --ai-accent:      #7c3aed;
  --ai-accent-dark: #5b21b6;
  --ai-accent-soft: #ede9fe;
  --ai-hero-bg:     #0a1225;
}

/* ================================================
   ヒーローセクション
================================================ */
.ai-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ai-hero-bg) url('../images/ai/hero-bg.svg') center center / cover no-repeat;
}
.ai-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 12, 40, 0.82) 0%,
    rgba(44, 20, 100, 0.60) 50%,
    rgba(8, 12, 40, 0.88) 100%
  );
  z-index: 0;
}
.ai-hero-inner {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
  width: 100%;
}
.ai-hero-eyebrow {
  display: inline-block;
  background: rgba(124, 58, 237, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 0;
  margin-bottom: 24px;
}
.ai-hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.ai-hero h1 em {
  font-style: normal;
  color: var(--ai-accent, #7c3aed);
}
.ai-hero .hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
}
.ai-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ai-hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.ai-hero-stat {
  text-align: center;
}
.ai-hero-stat .val {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ai-hero-stat .val sup {
  font-size: 20px;
  color: var(--ai-accent, #7c3aed);
  font-weight: 700;
}
.ai-hero-stat .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ================================================
   強みセクション
================================================ */
.ai-strengths {
  padding: 80px 0;
  background: var(--white, #fff);
}
.ai-strength-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #dde4ef);
  border-radius: 0;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  height: calc(100% - 28px);
}
.ai-strength-card:hover {
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,.12));
  transform: translateY(-5px);
  border-color: var(--ai-accent, #7c3aed);
}
.ai-strength-card .str-icon {
  width: 72px;
  height: 72px;
  background: var(--ai-accent-soft, #ede9fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--ai-accent, #7c3aed);
  font-size: 28px;
  transition: background 0.25s, color 0.25s;
}
.ai-strength-card:hover .str-icon {
  background: var(--ai-accent, #7c3aed);
  color: #fff;
}
.ai-strength-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #2c2c2c);
  margin-bottom: 14px;
}
.ai-strength-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-light, #555);
  margin: 0;
}
.ai-strength-card .str-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ai-accent, #7c3aed);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.7;
}

/* ================================================
   サービス内容セクション（タブ）
================================================ */
.ai-curriculum {
  padding: 80px 0;
  background: var(--bg-light, #f7f9fc);
}

/* タブナビ */
.ai-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
}
.ai-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 2px solid var(--border, #dde4ef);
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #2c2c2c);
  font-family: inherit;
  transition: all 0.2s;
}
.ai-tabs .tab-btn:hover {
  border-color: var(--ai-accent, #7c3aed);
  color: var(--ai-accent, #7c3aed);
}
.ai-tabs .tab-btn.active {
  background: var(--ai-accent, #7c3aed);
  border-color: var(--ai-accent, #7c3aed);
  color: #fff;
}

/* タブパネル */
.ai-panel {
  display: none;
}
.ai-panel.active {
  display: block;
}

.ai-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #dde4ef);
  border-top: 4px solid var(--ai-accent, #7c3aed);
  border-radius: 0;
  overflow: hidden;
}

.ai-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
}

.ai-card-body {
  padding: 32px 36px;
}
.ai-card-body .cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ai-accent, #7c3aed);
  background: var(--ai-accent-soft, #ede9fe);
  padding: 4px 12px;
  border-radius: 0;
  margin-bottom: 16px;
}
.ai-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #2c2c2c);
  margin-bottom: 14px;
  line-height: 1.35;
}
.ai-card-body .card-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-light, #555);
  margin-bottom: 28px;
}

/* サービスリスト */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #dde4ef);
  font-size: 15px;
  color: var(--text, #2c2c2c);
  line-height: 1.7;
}
.service-list li:last-child {
  border-bottom: none;
}
.service-list li .s-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--ai-accent-soft, #ede9fe);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-accent, #7c3aed);
  font-size: 13px;
  margin-top: 1px;
}
.service-list li .s-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.service-list li .s-text span {
  font-size: 13px;
  color: var(--text-light, #555);
}

/* ノートボックス */
.ai-note-box {
  border-left: 4px solid var(--ai-accent, #7c3aed);
  background: var(--ai-accent-soft, #ede9fe);
  border-radius: 0;
  padding: 18px 22px;
  margin-top: 8px;
}
.ai-note-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ai-accent-dark, #5b21b6);
  line-height: 1.8;
}

/* ================================================
   実績数値バー
================================================ */
.ai-results {
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 50%, #1a1040 100%);
  padding: 60px 0;
}
.ai-results .result-item {
  text-align: center;
  color: #fff;
  padding: 10px 0;
}
.ai-results .r-val {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}
.ai-results .r-val sup {
  font-size: 24px;
  color: var(--ai-accent, #7c3aed);
  font-weight: 700;
}
.ai-results .r-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
  line-height: 1.6;
}

/* ================================================
   導入フロー
================================================ */
.ai-flow {
  padding: 80px 0;
  background: var(--white, #fff);
}
.ai-flow-steps {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.ai-flow-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  width: 2px;
  height: 100%;
  background: var(--ai-accent-soft, #ede9fe);
}
.ai-flow-step {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}
.ai-flow-step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--ai-accent, #7c3aed);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.ai-flow-step-body {
  padding-top: 10px;
}
.ai-flow-step-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #2c2c2c);
  margin-bottom: 8px;
}
.ai-flow-step-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-light, #555);
  margin: 0;
}

/* ================================================
   FAQ
================================================ */
.ai-faq {
  padding: 80px 0;
  background: var(--white, #fff);
}
.faq-item {
  border: 1px solid var(--border, #dde4ef);
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}
.faq-question:hover {
  background: var(--ai-accent-soft, #ede9fe);
}
.faq-q-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--ai-accent, #7c3aed);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.faq-question h4 {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #2c2c2c);
  margin: 0;
}
.faq-toggle {
  flex-shrink: 0;
  color: var(--text-light, #555);
  transition: transform 0.25s;
}
.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}
.faq-item.open .faq-question {
  background: var(--ai-accent-soft, #ede9fe);
}
.faq-answer {
  display: none;
  padding: 0 28px 22px 76px;
  background: #fff;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-light, #555);
}
.faq-item.open .faq-answer {
  display: block;
}

/* ================================================
   CTAセクション
================================================ */
.ai-cta-section {
  background: linear-gradient(135deg, #2d1b69 0%, #7c3aed 50%, #4c1d95 100%);
  padding: 80px 0;
  text-align: center;
}
.ai-cta-inner h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.ai-cta-inner > p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  margin-bottom: 36px;
}
.cta-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-white {
  display: inline-block;
  background: #fff;
  color: var(--ai-accent, #7c3aed);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-cta-white:hover {
  background: var(--ai-accent-soft, #ede9fe);
  color: var(--ai-accent, #7c3aed);
  transform: translateY(-2px);
}
.btn-cta-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-cta-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* ================================================
   レスポンシブ
================================================ */
@media (max-width: 768px) {
  .ai-hero h1 { font-size: 32px; }
  .ai-hero .hero-lead { font-size: 15px; }
  .ai-hero-stats { gap: 24px; }
  .ai-hero-stat .val { font-size: 32px; }
  .ai-results .r-val { font-size: 36px; }
  .ai-cta-inner h2 { font-size: 24px; }
  .ai-flow-steps::before { display: none; }
  .ai-card-body { padding: 24px 20px; }
}
