html {
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', '游ゴシック体', 'Yu Gothic', 'YuGothic', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', 'Meiryo', sans-serif;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(130deg, #1bf1b6 0%, #1177cb 35%, #7588b9 65%, #4a2393 100%);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: gradientMove 12s ease-in-out infinite;
  color: #222;
  line-height: 1;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
header {
  color: #fff;
  height: 588px;
  background-size: 1600px auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  top: 0;
  padding-top: 80px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.header-line-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.animated-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 3s ease-out forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/bg.png');
  background-size: 1600px auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: slideInFromLeft 4s ease-out forwards;
  z-index: -1;
}

/* 1600px以下でモバイル用背景画像に切り替え、白線を非表示 */
@media (max-width: 1600px) {
  header::before {
    background-image: url('../images/bg_mb.png');
    background-size: cover;
  }
  
  .header-line-animation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  .animated-line {
    display: none !important;
  }
}

@keyframes slideInFromLeft {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translateY(-50px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
  }
}





/* コーポレートロゴ */
.corporate-logo {
  position: relative;
  background: #000;
  padding: 1em 2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.corporate-logo-image {
  height: 20px;
  width: auto;
  object-fit: contain;
}

/* メインナビゲーション */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* モバイルではロゴとハンバーガーメニューの順序を調整 */
@media (max-width: 900px) {
  .nav-inner {
    justify-content: space-between;
  }
  
  .logo {
    order: 1;
  }
  
  .menu-toggle {
    order: 2;
  }
  
  .nav-menu {
    order: 3;
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.main-nav ul.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
  /* デバッグ用: 一時的に常に表示 */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  order: 2;
  position: relative;
  visibility: visible;
  opacity: 1;
}

/* デスクトップでは非表示 */
@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
}


.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 2px 0;
  opacity: 1;
  visibility: visible;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a.btn {
  background: #fff;
  color: #005bac;
  padding: 0.5em 1.2em;
  border-radius: 2em;
  font-weight: bold;
  transition: background 0.2s;
  box-shadow: 0 0 15px rgba(0, 91, 172, 0.6), 0 0 30px rgba(0, 91, 172, 0.4);
}

.main-nav a.btn:hover {
  background: #e3f0ff;
  box-shadow: 0 0 20px rgba(0, 91, 172, 0.8), 0 0 40px rgba(0, 91, 172, 0.6);
}
.main-visual {
  text-align: center;
  padding: 0 1em 2em 1em;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.main-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 1.5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.main-visual h1 {
  font-size: 2.2em;
  line-height: 44px;
  margin-bottom: 0.5em;
  text-shadow: 0 0 10px rgba(0, 91, 172, 0.8), 0 0 20px rgba(0, 91, 172, 0.6), 0 0 30px rgba(0, 91, 172, 0.4);
  word-break: keep-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}
.main-visual p {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 1.5em;
  text-shadow: 0 0 8px rgba(0, 91, 172, 0.7), 0 0 16px rgba(0, 91, 172, 0.5), 0 0 24px rgba(0, 91, 172, 0.3);
  word-break: keep-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}
.main-visual .btn {
  background: #fff;
  color: #005bac;
  padding: 0.8em 2em;
  border-radius: 2em;
  border: 2px solid #005bac;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.main-visual .btn:hover {
  background: #e3f0ff;
  border-color: #004080;
}
section {
  max-width: 900px;
  margin: 2em auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2em 1.5em;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 機能紹介セクションの背景設定 */
#features {
  background: transparent !important;
  box-shadow: none !important;
  max-width: 1650px !important;
  color: #fff;
}

#features h2 {
  color: #fff !important;
}

/* 機能紹介リストの背景設定 */
.feature-list {
  background-image: url('../images/footer.png') !important;
  background-size: 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  padding: 2em;
  border-radius: 10px;
}

/* iOS Safariではbackground-attachment: fixedが正しく動作しないため、モバイルではscrollに変更 */
@media (max-width: 900px) {
  .feature-list {
    background-attachment: scroll !important;
  }
}

/* 導入の流れ部分の背景をなしに */
#flow {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  max-width: 1400px !important;
}

#flow h2 {
  color: #fff !important;
}

/* 導入の流れのスタイル */
.flow-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  align-items: stretch;
}

.flow-step {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  transition: all 0.8s ease-out;
  opacity: 0;
  transform: translateX(-100px);
  flex: 1 1 calc(20% - 1.2em);
  min-width: 130px;
}

/* ステップ間の矢印（PC: 右向き三角） */
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -0.9em; /* gapに合わせて調整 */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--step-color, #bbb);
  pointer-events: none;
}

.flow-step.animate {
  opacity: 1;
  transform: translateX(0);
}



.step-number {
  font-size: 2.2em;
  font-weight: 900;
  color: #666;
  margin-right: 0;
  margin-bottom: 0.5em;
  min-width: 60px;
  text-align: center;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 15px;
  padding: 1.5em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-image: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: auto;
  height: 100%;
}

.step-icon {
  margin-right: 0;
  margin-bottom: 0.8em;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-text {
  font-size: 1em;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 0.5em;
}

.step-description {
  font-size: 0.85em;
  color: #666;
  text-align: center;
  line-height: 1.5;
  margin-top: 0.5em;
}

/* 各ステップのカラー設定 */
.step-1 .step-content {
  --step-color: #00d4aa;
  --step-color-light: #7fffd4;
}

.step-2 .step-content {
  --step-color: #4a90e2;
  --step-color-light: #87ceeb;
}

.step-3 .step-content {
  --step-color: #6a5acd;
  --step-color-light: #b0c4de;
}

.step-4 .step-content {
  --step-color: #9370db;
  --step-color-light: #dda0dd;
}

.step-5 .step-content {
  --step-color: #8a2be2;
  --step-color-light: #d8bfd8;
}

/* すべてのステップの左側を揃える */
.step-1, .step-2, .step-3, .step-4, .step-5 {
  margin-left: 0;
}

/* 各ステップのアニメーション遅延 */
.step-1 { transition-delay: 0.2s; }
.step-2 { transition-delay: 0.4s; }
.step-3 { transition-delay: 0.6s; }
.step-4 { transition-delay: 0.8s; }
.step-5 { transition-delay: 1.0s; }

/* 導入の流れの注意書き */
.flow-note {
  color: #fff;
  text-align: left;
  margin-top: 2em;
  font-size: 0.95em;
  line-height: 1.6;
}

h2 {
  color: #005bac;
  margin-top: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}
.comparison-table {
  overflow-x: auto;
  margin-top: 1em;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: #f4f8fb;
}
.comparison-table th, .comparison-table td {
  border: 1px solid #cce0f7;
  padding: 0.7em 1em;
  text-align: center;
}
.comparison-table th {
  background: #e3f0ff;
}
.comparison-table .note {
  font-size: 0.9em;
  color: #888;
  margin-top: 0.5em;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin: 2em 0 1em 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

/* 機能紹介のアニメーション */
.feature-list li {
  opacity: 1;
  transform: translateX(0);
}

/* 画像のアニメーション */
.feature-image {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.8s ease-out;
}

.feature-image.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 各画像に遅延を設定 */
.feature-list li:nth-child(1) .feature-image { transition-delay: 0.1s; }
.feature-list li:nth-child(2) .feature-image { transition-delay: 0.3s; }
.feature-list li:nth-child(3) .feature-image { transition-delay: 0.5s; }
.feature-list li:nth-child(4) .feature-image { transition-delay: 0.7s; }
.feature-list li {
  flex: 1 1 200px;
  background: transparent;
  border-radius: 8px;
  padding: 1em;
  min-width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.feature-list li h3 {
  background: rgba(0, 91, 172, 0.9);
  color: #fff;
  padding: 0.8em;
  border-radius: 8px;
  margin: 0.5em 0 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.feature-list li p {
  background: rgba(0, 91, 172, 0.9);
  color: #fff;
  padding: 0.8em;
  border-radius: 8px;
  margin: 0.5em 0 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  flex: 1;
  text-align: left;
}

.feature-image {
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.logo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1.5em;
}
.logo-list img {
  height: 40px;
  background: #fff;
  border-radius: 6px;
  padding: 0.3em 0.8em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#cases p {
  line-height: 1.8;
  margin-bottom: 1.5em;
  word-break: keep-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

#about p {
  line-height: 1.8;
  margin-bottom: 1.5em;
  word-break: keep-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  text-align: left;
}

.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.usecase-list > div {
  width: 100%;
  background: transparent;
  border: 2px solid #e0e8f0;
  border-radius: 8px;
  padding: 1.5em;
  line-height: 1.6;
  box-sizing: border-box;
}

.usecase-list > div:first-child {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/usecase5.png');
  background-size: 20% auto;
  background-position: right center;
  background-repeat: no-repeat;
  color: #333;
}

.usecase-list > div:nth-child(2) {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/usecase1.png');
  background-size: 20% auto;
  background-position: right center;
  background-repeat: no-repeat;
  color: #333;
}

.usecase-list > div:nth-child(3) {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/usecase2.png');
  background-size: 20% auto;
  background-position: right center;
  background-repeat: no-repeat;
  color: #333;
}

.usecase-list > div:nth-child(4) {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/usecase3.png');
  background-size: 20% auto;
  background-position: right center;
  background-repeat: no-repeat;
  color: #333;
}

.usecase-list > div:nth-child(5) {
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/usecase4.png');
  background-size: 20% auto;
  background-position: right center;
  background-repeat: no-repeat;
  color: #333;
}

.usecase-list h3 {
  margin: 0 0 0.8em 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #2c3e50;
  position: relative;
  padding: 0.5em 0 0.5em 1.2em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.usecase-list h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.usecase-list h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.usecase-list > div:hover h3::after {
  width: 100%;
}

.usecase-list p {
  margin: 0;
  font-size: 0.95em;
}
ol {
  padding-left: 1.2em;
}
article {
  background: #f4f8fb;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1em;
}

article h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

article h3 a:hover {
  color: #005bac;
  text-decoration: underline;
}

.case-article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 活用事例セクション内でcase-article-linkを中央寄せ */
#usecases {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em 0 !important;
}

/* h2は左寄せのまま */
#usecases h2 {
  align-self: flex-start;
  width: 100%;
  padding-left: 1.5em;
  padding-right: 1.5em;
  box-sizing: border-box;
  margin-top: 0;
}

/* case-article-linkを中央寄せに */
#usecases .case-article-link {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5em;
  box-sizing: border-box;
}

.case-article-link:hover {
  transform: translateY(-5px);
}

.case-article {
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  flex-direction: row;
  transition: background 0.3s ease;
  padding: 1em;
  margin: 0;
  border-radius: 8px;
}

.case-article-link:hover .case-article {
  background: rgba(255, 255, 255, 0.1);
}

.case-link {
  flex: 0 0 35%;
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-image {
  flex: 0 0 35%;
  width: 100%;
  max-width: 100%;
  max-height: 300px;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-article-link:hover .case-image {
  opacity: 0.9;
  transform: scale(1.02);
}

.case-content {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transition: color 0.3s ease;
}

.case-article-link:hover .case-content {
  color: #003366;
}

.case-content h3 {
  margin: 0 0 0.8em 0;
  color: #005bac;
  word-wrap: break-word;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transition: color 0.3s ease;
}

#usecases .case-content h3 {
  color: #003366;
}

.case-article-link:hover .case-content h3 {
  color: #003366;
}

.case-title-link {
  color: #005bac;
  text-decoration: none;
  transition: color 0.3s ease;
}

#usecases .case-title-link {
  color: #003366;
}

.case-title-link:hover {
  color: #004080;
  text-decoration: underline;
}

#usecases .case-title-link:hover {
  color: #002244;
}

.case-content p {
  margin: 0;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transition: color 0.3s ease;
}

#usecases .case-content p {
  color: #003366;
}

.case-article-link:hover .case-content p {
  color: #003366;
}
details {
  margin-bottom: 1em;
}
details summary {
  cursor: pointer;
  font-weight: bold;
  color: #005bac;
}

/* フッター画像セクション */
.footer-image-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
}

.footer-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* フッターナビゲーション */
.footer-nav {
  background: #fff;
  color: #000;
  padding: 1.5em 2em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}

.footer-nav-content a {
  color: #000;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.footer-nav-content a:hover {
  color: #005bac;
  text-decoration: underline;
}

footer {
  background: #000;
  color: #fff;
  padding: 2em;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2em;
  box-sizing: border-box;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.footer-logo-image {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 0.95em;
  color: #fff;
}

.footer-copyright {
  font-size: 0.95em;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 91, 172, 0.8), 0 0 40px rgba(0, 91, 172, 0.6), 0 0 60px rgba(0, 91, 172, 0.4);
}

.footer-copyright p {
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 91, 172, 0.8), 0 0 40px rgba(0, 91, 172, 0.6), 0 0 60px rgba(0, 91, 172, 0.4);
}

/* 404エラーページ */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4em 2em;
  margin-top: 80px;
}

.error-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.error-code {
  font-size: 8em;
  font-weight: 900;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 91, 172, 0.8), 0 0 40px rgba(0, 91, 172, 0.6), 0 0 60px rgba(0, 91, 172, 0.4);
  line-height: 1;
}

.error-title {
  font-size: 2em;
  color: #fff;
  margin: 0.5em 0;
  text-shadow: 0 0 15px rgba(0, 91, 172, 0.7), 0 0 30px rgba(0, 91, 172, 0.5);
  font-weight: bold;
}

.error-message {
  font-size: 1.2em;
  color: #fff;
  margin: 1.5em 0 2em 0;
  line-height: 1.8;
  text-shadow: 0 0 10px rgba(0, 91, 172, 0.6), 0 0 20px rgba(0, 91, 172, 0.4);
}

.error-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2em;
}

.error-actions .btn {
  background: #fff;
  color: #005bac;
  padding: 0.8em 2em;
  border-radius: 2em;
  border: 2px solid #005bac;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
}

.error-actions .btn:hover {
  background: #e3f0ff;
  border-color: #004080;
}

.error-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.error-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* 1090px以下で機能紹介を2列に（活用事例には影響しない） */
@media (max-width: 1090px) and (min-width: 901px) {
  #features .feature-list li {
    flex: 0 0 calc((100% - 2em) / 2) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: calc((100% - 2em) / 2) !important;
    min-width: calc((100% - 2em) / 2) !important;
    max-width: calc((100% - 2em) / 2) !important;
    width: calc((100% - 2em) / 2) !important;
    box-sizing: border-box;
  }
}

/* タブレット対応 (900px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .nav-inner {
    padding: 1em 1.5em;
  }
  
  .main-nav ul.nav-menu {
    gap: 1em;
  }
  
  .main-nav a {
    font-size: 0.9em;
  }
  
  header {
    height: 500px;
    padding-top: 70px;
  }
  
  .main-visual h1 {
    font-size: 1.8em;
  }
  
  .main-visual p {
    font-size: 1em;
  }
  
  section {
    max-width: 95%;
    padding: 1.5em 1em;
  }
  
  .feature-list {
    gap: 1.5em;
  }
  
  .usecase-list > div {
    background-size: 15% auto;
  }
}

/* モバイル対応 (最大900px) */
@media (max-width: 900px) {
  .corporate-logo {
    padding: 0.8em 1em;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .corporate-logo-image {
    height: 16px;
    max-width: 100%;
    width: auto;
  }
  
  /* ハンバーガーメニュー */
  .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1002 !important;
    width: 30px !important;
    height: 30px !important;
  }
  
  /* span要素が確実に表示されるように */
  .menu-toggle span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* モバイルでは通常のナビゲーションメニューを非表示 */
  .main-nav ul.nav-menu {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 2em 2em 2em;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    display: none !important;
    visibility: hidden;
  }
  
  /* ハンバーガーメニューがアクティブなときのみ表示 */
  .main-nav ul.nav-menu.active {
    right: 0;
    visibility: visible;
    display: flex !important;
  }
  
  .main-nav ul.nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav ul.nav-menu li:last-child {
    border-bottom: none;
    margin-top: 1em;
  }
  
  .main-nav ul.nav-menu a {
    display: block;
    padding: 1em 0;
    font-size: 1.1em;
  }
  
  .main-nav ul.nav-menu a.btn {
    width: 100%;
    text-align: center;
    padding: 0.8em 1.2em;
  }
  
  .logo-image {
    height: 35px;
    max-width: 200px;
    width: auto;
  }
  
  /* ヘッダー */
  header {
    height: 450px;
    padding-top: 60px;
    background-attachment: scroll;
  }
  
  header::before {
    background-attachment: scroll;
    background-size: cover;
  }
  
  .header-line-animation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  .animated-line {
    display: none !important;
  }
  
  .main-visual {
    padding: 0 1em 1.5em 1em;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .main-logo {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1em;
  }
  
  .main-visual h1 {
    font-size: 1.4em;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.5em;
    box-sizing: border-box;
  }
  
  .main-visual p {
    font-size: 0.95em;
    margin-bottom: 1.2em;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.5em;
    box-sizing: border-box;
  }
  
  .main-visual .btn {
    padding: 0.7em 1.5em;
    font-size: 0.9em;
    display: inline-block;
  }
  
  /* セクション */
  section {
    max-width: 100%;
    margin: 1.5em auto;
    padding: 1.2em 1em;
    border-radius: 8px;
    width: calc(100% - 2em);
    box-sizing: border-box;
  }
  
  h2 {
    font-size: 1.3em;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  /* 機能紹介 */
  .feature-list {
    flex-direction: column;
    gap: 1.5em;
    padding: 1.5em;
  }
  
  .feature-list li {
    min-width: 100%;
    padding: 0.8em 0;
  }
  
  .feature-image {
    max-width: 280px;
    width: auto;
    /* モバイルでは初期状態でも表示されるようにフォールバック */
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .feature-list li h3 {
    font-size: 1.1em;
  }
  
  .feature-list li p {
    font-size: 0.9em;
  }
  
  /* ユースケース */
  .usecase-list > div {
    padding: 1.2em;
    background-size: 25% auto;
  }
  
  .usecase-list h3 {
    font-size: 1.1em;
  }
  
  .usecase-list p {
    font-size: 0.9em;
  }
  
  /* 活用事例 */
  #usecases {
    padding-left: 0;
    padding-right: 0;
  }
  
  #usecases h2 {
    padding-left: 1em;
    padding-right: 1em;
  }
  
  #usecases .case-article-link {
    width: 100%;
    max-width: 100%;
  }
  
  .case-article {
    flex-direction: column;
    gap: 1em;
  }
  
  .case-link {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .case-content {
    flex: 1;
  }
  
  /* ロゴリスト */
  .logo-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
  }
  
  .logo-list img {
    height: 35px;
  }
  
  /* フッターナビゲーション */
  .footer-nav {
    padding: 1em;
  }
  
  .footer-nav-content {
    gap: 1em;
    font-size: 0.9em;
  }
  
  /* フッター */
  .footer-content {
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  footer {
    padding: 1.5em 1em;
  }
  
  .footer-copyright {
    font-size: 0.85em;
  }
  
  /* 404エラーページ（モバイル） */
  .error-page {
    padding: 3em 1em;
    margin-top: 60px;
  }
  
  .error-code {
    font-size: 5em;
  }
  
  .error-title {
    font-size: 1.5em;
  }
  
  .error-message {
    font-size: 1em;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* 導入の流れ */
  .flow-container {
    flex-direction: column;
    gap: 1.5em;
  }
  
  .flow-step {
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 0;
  }

  /* モバイルでは下向き三角に変更 */
  .flow-step:not(:last-child)::after {
    content: '';
    left: 50%;
    right: auto;
    top: auto;
    bottom: -0.9em;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--step-color, #bbb);
    pointer-events: none;
  }
  
  .step-number {
    font-size: 2em;
    font-weight: 900;
    color: #666;
    margin-right: 0;
    margin-bottom: 0.5em;
  }
  
  .step-content {
    padding: 1em;
    width: 100%;
    min-width: auto;
  }
  
  .step-icon {
    margin-bottom: 1em;
    width: 50px;
    height: 50px;
  }
  
  .step-text {
    font-size: 1.1em;
  }
  
  /* モバイルでは段階的なずれを無効化 */
  .step-1, .step-2, .step-3, .step-4, .step-5 {
    margin-left: 0;
  }
  
  /* フォーム */
  form {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: 0.8em;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  form textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  form button {
    padding: 0.8em 2em;
    font-size: 1em;
    background: #005bac;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  form button:hover {
    background: #004080;
  }
}

/* 小さなモバイル (最大480px) */
@media (max-width: 480px) {
  header {
    height: 400px;
    padding-top: 50px;
  }
  
  .header-line-animation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  .animated-line {
    display: none !important;
  }
  
  .main-visual {
    padding: 0 0.8em 1em 0.8em;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .main-logo {
    width: 100%;
    max-width: 500px;
    margin-bottom: 0.8em;
  }
  
  .main-visual h1 {
    font-size: 1.2em;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.3em;
    box-sizing: border-box;
  }
  
  .main-visual p {
    font-size: 0.85em;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.3em;
    box-sizing: border-box;
  }
  
  section {
    padding: 1em 0.8em;
    margin: 1em auto;
    width: calc(100% - 1.6em);
    box-sizing: border-box;
  }
  
  h2 {
    font-size: 1.2em;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }
  
  .feature-list {
    padding: 1em;
  }
  
  .feature-image {
    max-width: 240px;
    width: auto;
    /* モバイルでは初期状態でも表示されるようにフォールバック */
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .usecase-list > div {
    padding: 1em;
    background-size: 30% auto;
  }
  
  /* 活用事例 */
  #usecases {
    padding-left: 0;
    padding-right: 0;
  }
  
  #usecases h2 {
    padding-left: 0.8em;
    padding-right: 0.8em;
  }
  
  .step-content {
    padding: 1em 0.8em;
  }
  
  .step-text {
    font-size: 0.95em;
  }
  
  .step-description {
    font-size: 0.8em;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 0% 50%;
  }
} 

/* フォーム部分 */
.cp_iptxt {
	position: relative;
	width: 100%;
	margin: 40px 3%;
}
.cp_iptxt input[type='text'], .cp_iptxt textarea {
	font: 15px/24px sans-serif;
	box-sizing: border-box;
	width: 90%;
	padding: 1em;
	transition: 0.3s;
	letter-spacing: 1px;
	color: #aaaaaa;
	border: 2px solid  #aaa;
	border-radius: 4px;
	margin-bottom: 20px;
}

@media screen and (max-width: 640px) {
	.cp_iptxt input[type='text'], .cp_iptxt textarea {
		width: 90%;
	}
}

.ef input[type='text']:focus, .ef textarea:focus{
	border: 2px solid #5658A1;
	outline: none;
	box-shadow: 0 0 5px 1px rgba(255,255,255, .5);
}

.cp_iptxt a {
	color: #222;		
	transition: 0.5s;
}
.cp_iptxt a:hover {
	color: #5658A1;	
	text-decoration: none;
}

.cp_iptxt .privacypolicy {
  text-align: center;
}

.cp_ipcheck {
	position: relative;
	width: 100%;
}

.cp_ipcheck .box {
	margin: 0 auto;
	text-align: center;
}

.cp_ipcheck .box .agreement{
  display:flex;
  justify-content: center;
  align-items: center;
}

.cp_ipcheck input[type='checkbox'] {
	padding: 1em;	
}

.cp_ipcheck label {
	color: #222;
	padding: 1em;
	cursor: pointer;
}

.cp_submit {
  margin: 2em auto;
  width: 100%;
  text-align:center;
}

.cp_submit input[type=submit] {
	display: inline-block;
	margin-bottom: 1px;
	padding: 15px 100px;
	cursor: pointer;
	-webkit-transition: border-color 0.6s;
	transition: border-color 0.6s;
	border: none;
	text-align: center;
	vertical-align: middle;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	font-family: 'Arial',sans-serif;
	border-radius: 30px;
	background: #5658A1;
	-webkit-appearance: none;
	appearance: none;
}

.cp_submit input[type=submit]:focus {
	background-color: #5658A1;
	filter: brightness(150%);
	opacity: 0.5;
	color: #222;	
}

.cp_ipcheck_warning {
  padding-top: 0em;
  margin-block-start: 0;
  margin-block-end: 0;
}
