/* ========== リセット・ベース ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #ffffff;
  background: #0f1f3d;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== ナビゲーション ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(15, 31, 61, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 40px;
  height: 40px;
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* 閉じるボタン（デフォルトで非表示） */
.nav-close {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #60CFFF;
}

.nav-cta {
  background: linear-gradient(135deg, #00D4AA 0%, #00B38A 100%);
  padding: 10px 24px;
  border-radius: 24px;
  color: #ffffff !important;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

/* ========== ヒーローセクション ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f1f3d 0%, #142d54 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(75, 163, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #60CFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 24px;
  color: #60CFFF;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 32px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #00D4AA 0%, #00B38A 100%);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #4BA3FF;
}

.btn-secondary:hover {
  background: rgba(75, 163, 255, 0.1);
  box-shadow: 0 8px 24px rgba(75, 163, 255, 0.3);
}

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
}

/* ダッシュボードモック */
.hero-visual {
  animation: fadeInUp 1s 0.3s ease-out backwards;
}

.dashboard-mock {
  background: rgba(20, 45, 84, 0.6);
  border: 1px solid rgba(75, 163, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(75, 163, 255, 0.2);
}

.mock-logo {
  width: 100px;
  height: 24px;
  background: linear-gradient(90deg, #4BA3FF, #60CFFF);
  border-radius: 4px;
}

.mock-status {
  display: flex;
  gap: 8px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.status-dot.green {
  background: #00D4AA;
}

.status-dot.red {
  background: #F85149;
}

.status-dot.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mock-card {
  background: rgba(15, 31, 61, 0.8);
  border: 1px solid rgba(75, 163, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.card-title {
  height: 16px;
  width: 60%;
  background: linear-gradient(90deg, #4BA3FF, transparent);
  border-radius: 4px;
  margin-bottom: 12px;
}

.card-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-line {
  height: 8px;
  width: 80%;
  background: rgba(75, 163, 255, 0.3);
  border-radius: 4px;
}

.contact-line.alert {
  background: #F85149;
  box-shadow: 0 0 8px #F85149;
  animation: pulse 1.5s infinite;
}

/* ========== セクション共通 ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-light {
  background: #f0f4f8;
  color: #1f2328;
}

.section-dark {
  background: #142d54;
  color: #ffffff;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
}

.section-light .section-subtitle {
  color: rgba(31, 35, 40, 0.7);
}

/* ========== 課題提起セクション ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.card {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(75, 163, 255, 0.2);
}

.card-icon {
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 15px;
  color: #656d76;
  line-height: 1.6;
}

/* ========== 特徴セクション ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: rgba(15, 31, 61, 0.6);
  border: 1px solid rgba(75, 163, 255, 0.3);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(75, 163, 255, 0.3);
  background: rgba(15, 31, 61, 0.8);
}

.feature-icon {
  margin-bottom: 24px;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #60CFFF;
}

.feature-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ========== 機能紹介セクション ========== */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.function-card {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.function-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(75, 163, 255, 0.2);
}

.function-number {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #4BA3FF;
  margin-bottom: 12px;
}

.function-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 12px;
}

.function-desc {
  font-size: 14px;
  color: #656d76;
  line-height: 1.6;
}

/* ========== 導入の流れセクション ========== */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
}

.flow-step {
  background: #ffffff;
  border: 2px solid #4BA3FF;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  flex: 1;
  max-width: 240px;
  transition: transform 0.3s;
}

.flow-step:hover {
  transform: scale(1.05);
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #4BA3FF;
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2328;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 13px;
  color: #656d76;
  line-height: 1.6;
}

.flow-arrow {
  font-size: 32px;
  color: #4BA3FF;
  font-weight: 700;
}

/* ========== システム構成図セクション ========== */
/* ========== システム構成図（シンプル版） ========== */
.system-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.system-node {
  background: rgba(15, 31, 61, 0.6);
  border: 1px solid rgba(75, 163, 255, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.system-highlight {
  border: 2px solid #00D4AA;
  background: rgba(15, 31, 61, 0.8);
}

.system-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.system-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.5;
}

.system-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* 縦線 */
.system-vline {
  width: 2px;
  height: 40px;
  background: #4BA3FF;
}

/* 分岐（上から左右に広がるコの字） */
.branch-top {
  width: 320px;  /* ノード幅280px + gap40px = 中央間距離320px */
  max-width: 80%;
  height: 40px;
  border-left: 2px solid #4BA3FF;
  border-right: 2px solid #4BA3FF;
  border-top: 2px solid #4BA3FF;
  border-bottom: none;
}

/* 合流（左右から下に集まる逆コの字） */
.branch-bottom {
  width: 320px;  /* ノード幅280px + gap40px = 中央間距離320px */
  max-width: 80%;
  height: 40px;
  border-left: 2px solid #4BA3FF;
  border-right: 2px solid #4BA3FF;
  border-bottom: 2px solid #4BA3FF;
  border-top: none;
}

/* 左右ノード */
.branch-nodes {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

/* スマホ用「または」テキスト（PC非表示） */
.branch-or {
  display: none;
  color: #60CFFF;
  font-size: 14px;
  padding: 8px 0;
}

/* ========== FAQセクション ========== */
.faq-list {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1f2328;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  font-family: 'Noto Sans JP', sans-serif;
}

.faq-question:hover {
  background: rgba(75, 163, 255, 0.05);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: #4BA3FF;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 15px;
  color: #656d76;
  line-height: 1.7;
}

/* ========== お問い合わせセクション ========== */
.contact-form {
  max-width: 700px;
  margin: 60px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.required {
  color: #F85149;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(75, 163, 255, 0.3);
  border-radius: 8px;
  background: rgba(15, 31, 61, 0.6);
  color: #ffffff;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4BA3FF;
  background: rgba(15, 31, 61, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-submit button {
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}

.form-message {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  display: none;
}

.form-message.success {
  background: rgba(0, 212, 170, 0.2);
  border: 1px solid #00D4AA;
  color: #00D4AA;
  display: block;
}

.form-message.error {
  background: rgba(248, 81, 73, 0.2);
  border: 1px solid #F85149;
  color: #F85149;
  display: block;
}

/* ========== フッター ========== */
.footer {
  background: #0a1628;
  padding: 60px 0 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #60CFFF;
}

.footer-contact a {
  color: #4BA3FF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #60CFFF;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(75, 163, 255, 0.2);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========== アニメーション ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== レスポンシブ ========== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .functions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    flex-wrap: wrap;
  }

  .flow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 31, 61, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right 0.3s;
    font-size: 20px;
  }

  .nav-links.active {
    right: 0;
  }

  /* 閉じるボタン（スマホで表示） */
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
  }

  .nav-close:hover {
    transform: rotate(90deg);
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .section-title {
    font-size: 36px;
  }

  .cards-grid,
  .functions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pain-cards {
    grid-template-columns: 1fr;
  }
}

/* ========== 課題提起セクション（改善版） ========== */
.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pain-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pain-card svg {
  margin-bottom: 20px;
}

.pain-card h3 {
  color: #1a2a3a;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.pain-problem {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.pain-solution {
  color: #00D4AA;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.7;
}

/* ========== IntersectionObserver アニメーション ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* モバイル対応（スマホでは分岐を表現せず縦並び） */
@media (max-width: 767px) {
  /* 課題提起カードを1カラムに */
  .pain-cards {
    grid-template-columns: 1fr !important;
  }

  /* 特徴カードを1カラムに */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* 機能カードを1カラムに */
  .functions-grid {
    grid-template-columns: 1fr !important;
  }

  /* 導入の流れを縦並びに */
  .flow-steps {
    flex-direction: column !important;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }

  /* 分岐のコの字を非表示 */
  .branch-top,
  .branch-bottom {
    display: none;
  }

  /* 「または」テキストを表示 */
  .branch-or {
    display: block;
    text-align: center;
    margin: 16px 0;
  }

  /* ノードを縦並びにする */
  .branch-nodes {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  /* ノード幅をスマホに最適化 */
  .branch-nodes .system-node {
    width: 85%;
    padding: 16px;
  }

  /* 全体のpadding調整 */
  .system-flow {
    padding: 0 16px;
  }

  .system-node {
    min-width: auto;
    width: 85%;
    padding: 16px;
  }
}
