/* HITスクール 共通スタイル */

/* ベーススタイル */
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダースタイル */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-logo img {
  height: 32px;
  width: auto;
  margin-right: 0.75rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.site-logo h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #1f2937 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #3b82f6;
  transform: translateY(-1px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.header-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* フッタースタイル */
.site-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  margin-top: auto;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #3b82f6;
}

.footer-contact {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-contact i {
  margin-right: 0.75rem;
  color: #3b82f6;
  width: 16px;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #9ca3af;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: #9ca3af;
  font-size: 1.25rem;
  transition: color 0.2s ease;
  padding: 0.5rem;
}

.footer-social a:hover {
  color: #3b82f6;
}

/* メインコンテンツエリア */
.main-content {
  flex: 1;
  position: relative;
}

/* ヒーローセクション */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

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

.hero-content h1 {
  line-height: 1.1;
}

.hero-content p {
  line-height: 1.6;
}

/* ヒーローコンテンツカード */
.hero-content.bg-white\/70 {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1px);
}

/* ナビゲーションセクション */
.navigation-section {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .hero-container {
    padding: 2rem 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h1 span {
    font-size: 2.5rem;
  }
  
  .hero-background img {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h1 span {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  .hero-background img {
    opacity: 1;
  }
}

/* 個別ページ用スライドレイアウト */
.slide {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

/* 技術パターン背景 */
.tech-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  background-image: 
    linear-gradient(45deg, #f3f4f6 25%, transparent 25%),
    linear-gradient(-45deg, #f3f4f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f4f6 75%),
    linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
  z-index: 1;
}

/* 個別ページ用コンテンツ */
.slide .content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* ヘッダーグラデーション */
.header-gradient {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.header-gradient h1 {
  color: #1f2937 !important;
}

.header-gradient p {
  color: #4b5563 !important;
}

/* グラデーション背景 */
.gradient-bg {
  background: #3b82f6;
}

/* ロゴコンテナ */
.logo-container {
  margin-bottom: 2rem;
}

.logo-img {
  max-width: 200px;
  height: auto;
}

/* カードのホバーエフェクト */
.trend-card,
.feature-card,
.course-card,
.effect-card,
.module-card,
.contact-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.trend-card:hover,
.feature-card:hover,
.course-card:hover,
.effect-card:hover,
.module-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

/* アイコンサークル */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: white;
  margin-bottom: 0.75rem;
}

/* CTAボタン */
.cta-button {
  transition: all 0.2s ease;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* フォームスタイル */
.form-error-message,
.form-success-message {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フォーカス時のスタイル強化 */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* バリデーションエラー時のスタイル */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

/* 会社概要テーブル */
.company-overview table {
  border-spacing: 0;
}

.company-overview th {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
}

.company-overview td {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.company-overview tr:first-child th,
.company-overview tr:first-child td {
  border-top: none;
}

.company-overview tr:last-child th,
.company-overview tr:last-child td {
  border-bottom: none;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* アニメーション */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* ナビゲーション */
.navigation-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navigation-back:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

/* AI関連のアイコン */
.ai-icon {
  filter: drop-shadow(0 0 3px rgba(74,144,226,0.5));
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-container {
    height: 56px;
    padding: 0 1rem;
    position: relative;
  }
  
  .site-logo h1 {
    font-size: 1.125rem;
  }
  
  .site-logo img {
    height: 28px;
  }
  
  .header-nav {
    position: static;
    gap: 0;
  }
  
  .header-cta {
    display: none; /* スマホでは非表示 */
  }
  
  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #374151;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .mobile-menu-button:hover {
    background: #f3f4f6;
    color: #3b82f6;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 0;
    list-style: none;
  }
  
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
  }
  
  .nav-links a:hover {
    background: #f9fafb;
    color: #3b82f6;
    padding-left: 1.25rem;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  .mobile-cta-item {
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  
  .mobile-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-radius: 6px;
    margin: 0 1rem 0.5rem 1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    border-bottom: none !important;
  }
  
  .mobile-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    padding-left: 1rem !important;
  }
  
  .main-content {
    padding-top: 0;
  }
  
  .slide {
    min-height: calc(100vh - 56px);
    padding: 1rem 0;
  }
  
  .content {
    padding: 1rem !important;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1rem;
  }
  
  /* 問い合わせページ特有のスタイル */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px; /* iOS Safari のズーム防止 */
  }
  
  .contact-form .grid {
    gap: 1rem;
  }
  
  /* フォームボタンをより指で押しやすく */
  .cta-button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-height: 44px; /* タッチ操作に最適なサイズ */
  }
  
  /* 連絡先情報のアイコンとテキストを調整 */
  .contact-info-item {
    padding: 1rem;
  }
  
  .contact-info-item .w-10 {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
  }
}

@media (max-width: 640px) {
  .footer-social {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* 問い合わせページ - スマホ特化 */
  .content {
    padding: 0.5rem !important;
  }
  
  .contact-form {
    padding: 1rem !important;
  }
  
  .contact-form .grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  
  /* ヘッダーテキストを小さく */
  .header-gradient h1 {
    font-size: 1.5rem;
  }
  
  .header-gradient p {
    font-size: 0.875rem;
  }
  
  /* カードの余白を詰める */
  .bg-white.rounded-xl {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* 助成金セクションの調整 */
  .bg-amber-50 .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* 受講形態セクション */
  .flex.space-x-3 {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .flex.space-x-3 > div {
    margin-right: 0;
  }
}

/* ユーティリティクラス */

/* セーフガード: デスクトップ幅では nav-links を確実に表示する（本番で何かに上書きされた場合の保険） */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
  }
}