/* 株式会社ネクストクールテック - クリーン・プロフェッショナルデザイン */

/* カラーパレット - 明るくクリーンなスタイル */
:root {
  --primary-blue: #0066CC;
  --primary-navy: #1B4B7E;
  --accent-teal: #00A8CC;
  --accent-light: #E3F2FD;
  --bg-white: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-card: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --text-muted: #999999;
  --border-light: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00A8CC 100%);
  --gradient-light: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* リセット・基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* タイポグラフィ - モダン */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  line-height: 1.8;
  color: var(--text-gray);
}

/* ヘッダー - モダン・スタイリッシュ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  filter: brightness(1.1);
}

.logo:hover {
  filter: brightness(1.3);
  transform: scale(1.02);
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s var(--transition-smooth);
}

.nav-links a:not(.btn-primary):hover {
  color: var(--primary-blue);
}

.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

.nav-links .btn-primary {
  margin-left: 1rem;
}

/* ハンバーガーメニュー（モバイル） */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* メインコンテンツ */
main {
  padding-top: 80px;
}

/* ヒーローセクション - クリーン＆プロフェッショナル */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #E3F2FD 0%, #F5F7FA 100%);
  padding: 8rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/tech-abstract.jpg') center center / cover no-repeat;
  opacity: 0.03;
  z-index: 0;
}



.hero-content {
  max-width: 1000px;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
  animation: fadeInUp 1s var(--transition-smooth);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeInUp 1s 0.2s var(--transition-smooth) backwards;
}

/* ボタン - シンプル＆クリーン */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* セクション - クリーンレイアウト */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-bg-light {
  background: var(--bg-light);
}

.section-bg-pattern {
  background: var(--bg-white);
  position: relative;
}

.section-bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/tech-abstract.jpg') center center / cover no-repeat;
  opacity: 0.02;
  z-index: 0;
}

.section-bg-pattern > * {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* カードグリッド - クリーン＆シンプル */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-teal);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: grayscale(0);
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.card p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* テーブル - クリーンスタイル */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin: 2rem 0;
}

thead {
  background: var(--bg-light);
}

thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

tbody tr {
  transition: all 0.3s var(--transition-smooth);
  border-bottom: 1px solid var(--border-light);
}

tbody tr:hover {
  background: var(--accent-light);
}

tbody td {
  padding: 1rem 1.5rem;
  color: var(--text-gray);
  font-size: 0.95rem;
}

tbody tr:last-child {
  border-bottom: none;
}

/* FAQ - シンプル */
.faq-item {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* フッター - クリーン */
footer {
  background: #F5F7FA;
  color: var(--text-gray);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3.5rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

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

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

.footer-section a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  font-size: 0.95rem;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--primary-blue);
  transform: translateX(3px);
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* フォーム - クリーン */
.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--transition-smooth);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

/* スクロールアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--transition-smooth), 
              transform 1s var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* セレクション */
::selection {
  background: var(--accent-teal);
  color: white;
}

::-moz-selection {
  background: var(--accent-teal);
  color: white;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .section-with-image {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .logo img {
    height: 44px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    transition: left 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
    border-right: 1px solid var(--border-light);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links .btn-primary {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding: 5rem 1.5rem 3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
}

/* スクロールアニメーション - プレミアム */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth), 
              transform 0.8s var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* セレクション */
::selection {
  background: var(--accent-teal);
  color: white;
}

::-moz-selection {
  background: var(--accent-teal);
  color: white;
}
