@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #8b5cf6;
  --color-accent: #06b6d4;
  --color-text: #0f172a;
  --color-text-light: #64748b;
}

* {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-weight: 400;
  color: #0f172a;
}

/* コンテンツ幅の制限 */
main .container {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}

/* 文字コンテンツの幅を更に制限 */
main .space-y-8 > div,
main > .container > .bg-white {
  max-width: auto;
  margin-left: auto;
  margin-right: auto;
}

/* ナビゲーションのスムーズなスクロール */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ナビゲーションのスタイル */
.nav-transparent {
  background-color: rgba(255, 255, 255, 0.5);
}

.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* デスクトップメニューのリンクスタイル */
.nav-transparent .hidden.md\\:flex a {
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  font-weight: 600 !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.nav-transparent .text-xl {
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  font-weight: 700;
}


.nav-scrolled .hidden.md\\:flex a {
  color: var(--color-text) !important;
  text-shadow: none !important;
  background-color: rgba(99, 102, 241, 0.1) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
}


/* モバイルメニューボタンのスタイル */
.nav-transparent #mobile-menu-btn {
  color: white !important;
}

.nav-scrolled #mobile-menu-btn {
  color: var(--color-text) !important;
}

/* モバイルメニューのリンクスタイル */
#mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: block;
  transition: all 0.3s ease;
}

.nav-transparent #mobile-menu a {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}


.nav-scrolled #mobile-menu a {
  color: var(--color-text) !important;
  background-color: rgba(99, 102, 241, 0.1) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
}


/* 画像モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}


.modal-zoom-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10000;
}

.modal-zoom-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}


@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

/* サムネイル画像のレスポンシブ対応 */
.slide-image {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
}


/* 全ての画像をレスポンシブに（ヒーローセクション背景を除く） */
img:not(.hero-bg) {
  max-width: 100%;
  height: auto;
}

/* ヒーロー背景画像 */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* セクション間の区切り */
.section-divider {
  border-top: 1px solid #e5e7eb;
}

/* メニュー表示の確実な制御 */
@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
  #mobile-menu-btn {
    display: none !important;
  }
}

/* モダンなセクション見出し */
.section-heading {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* モダンカードデザイン - グラスモーフィズム */
.modern-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
}

/* 特徴カード */
.feature-card {
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
}

.feature-card .icon-wrapper {
  position: relative;
}

/* ヒーローCTAボタン - モダンデザイン */
.hero-cta-button {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
  border: none;
  display: inline-block;
  text-decoration: none;
}

/* モダンな背景グラデーション */
.bg-modern-gradient {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  position: relative;
}

.bg-modern-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
