/* ============================================
   Nexus Bridge — IT企業コーポレートサイト
   カラー: #0EA5E9(スカイブルー) #0F172A(ミッドナイト)
          #F1F5F9(スノーホワイト) #F8FAFC(アイスホワイト)
          #2563EB(コバルト) #64748B(スレートグレー)
   ============================================ */

/* リセット */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "Noto Sans JP", sans-serif; font-weight: 400; color: #0F172A; line-height: 1.8; background: #F1F5F9; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   共通: セクション
   ============================================ */
.section { padding: 110px 0; }
.section-white { background: #FFFFFF; }
.section-ice { background: #F8FAFC; }
.section-dark { background: #0F172A; }

.section-label {
  display: block; text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase;
  color: #0EA5E9; margin-bottom: 8px;
}
.section-label-light { color: rgba(255,255,255,0.6); }

.section-title {
  text-align: center;
  font-size: 30px; font-weight: 700;
  margin-bottom: 56px; color: #0F172A;
}
.section-title-white { color: #fff; }

.section-subtitle {
  text-align: center; font-size: 16px;
  color: #64748B; margin-top: -40px; margin-bottom: 56px;
}

/* ============================================
   ポートフォリオバナー
   ============================================ */
.portfolio-banner {
  background: #E2E8F0; text-align: center;
  padding: 6px 20px; font-size: 12px; color: #64748B;
}

/* ============================================
   ヘッダー
   ============================================ */
.header {
  background: rgba(241,245,249,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px; font-weight: 700; color: #0F172A;
}
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px; font-weight: 500; color: #0F172A;
  letter-spacing: 1px; transition: color 0.3s;
}
.header-nav a:hover { color: #0EA5E9; }
.header-btn {
  display: inline-block; background: #2563EB; color: #fff;
  font-size: 14px; font-weight: 700; padding: 10px 28px;
  border-radius: 50px; transition: background 0.3s;
}
.header-btn:hover { background: #1D4ED8; }

/* ハンバーガー */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #0F172A; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   ヒーロー
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(14,165,233,0.3)); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 120px 24px 80px; max-width: 780px; }
.hero-title { font-size: 44px; font-weight: 700; line-height: 1.4; margin-bottom: 24px; }
.hero-sub { font-size: 16px; line-height: 1.8; opacity: 0.9; margin-bottom: 40px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.btn-primary { display: inline-block; font-size: 16px; font-weight: 700; padding: 16px 40px; border-radius: 50px; transition: transform 0.3s, box-shadow 0.3s; }
.btn-hero { background: #fff; color: #2563EB; box-shadow: 0 6px 24px rgba(37,99,235,0.3); }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(37,99,235,0.4); }
.hero-link { color: #fff; font-size: 15px; opacity: 0.8; text-decoration: underline; transition: opacity 0.3s; }
.hero-link:hover { opacity: 1; }
.hero .portfolio-notice {
  margin-top: 60px; font-size: 11px; opacity: 0.4;
  padding: 10px 20px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; display: inline-block; color: #fff;
}

/* ============================================
   サービス（SERVICE）
   ============================================ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.card-img-wrap { overflow: hidden; }
.card-img-wrap img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 28px 24px 32px; }
.card-title { font-size: 20px; font-weight: 700; color: #0F172A; margin-bottom: 12px; }
.card-text { font-size: 15px; color: #64748B; line-height: 1.8; }

/* ============================================
   選ばれる理由（STRENGTH）
   ============================================ */
.strength-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.strength-row:last-child { margin-bottom: 0; }
.strength-reverse { flex-direction: row-reverse; }
.strength-text { flex: 1; }
.strength-heading { font-size: 24px; font-weight: 700; color: #0F172A; margin-bottom: 16px; line-height: 1.5; }
.strength-desc { font-size: 15px; color: #64748B; line-height: 1.9; }
.strength-img { flex: 0 0 45%; }
.strength-img img { width: 100%; border-radius: 16px; object-fit: cover; }

/* ============================================
   実績（WORKS）
   ============================================ */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.works-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: transform 0.3s; }
.works-card:hover { transform: translateY(-4px); }
.works-card-img { overflow: hidden; aspect-ratio: 16/9; }
.works-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.works-card:hover .works-card-img img { transform: scale(1.03); }
.works-card-body { padding: 20px 20px 24px; }
.works-tag {
  display: inline-block; background: #0EA5E9; color: #fff;
  font-size: 12px; font-weight: 500; padding: 4px 14px;
  border-radius: 50px; margin-bottom: 10px;
}
.works-card-text { font-size: 14px; font-weight: 700; color: #0F172A; line-height: 1.6; }

/* ============================================
   テクノロジー（TECHNOLOGY）
   ============================================ */
.section-dark .section-label { color: #0EA5E9; }
.section-dark .section-title { color: #fff; }
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.tech-category-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px; font-weight: 500; color: #0EA5E9;
  letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase;
}
.tech-list {
  color: rgba(255,255,255,0.85);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px; line-height: 2;
}

/* ============================================
   ビジョン（ABOUT）
   ============================================ */
.about-row { display: flex; align-items: flex-start; gap: 60px; }
.about-text { flex: 55%; }
.about-text p { font-size: 15px; line-height: 2; color: #64748B; margin-bottom: 16px; }
.about-img { flex: 45%; border-radius: 16px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.about-numbers { display: flex; gap: 48px; margin-top: 40px; }
.about-number-item { text-align: center; }
.about-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 48px; color: #0EA5E9; line-height: 1;
}
.about-number-label { display: block; font-size: 13px; color: #64748B; margin-top: 8px; }

/* ============================================
   CTA（CONTACT）
   ============================================ */
.section-cta {
  background: linear-gradient(135deg, #0F172A, #1E3A5F);
  padding: 100px 0; text-align: center; color: #fff;
}
.section-cta .section-label { color: rgba(255,255,255,0.6); }
.cta-container { max-width: 720px; }
.cta-title { font-size: 34px; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.4; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 40px; line-height: 1.8; }
.btn-cta {
  display: inline-block; background: #fff; color: #0F172A;
  font-size: 17px; font-weight: 700; padding: 20px 56px;
  border-radius: 50px; box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,0.3); }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 16px; }

/* ============================================
   フッター
   ============================================ */
.footer { background: #0F172A; padding: 64px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 32px; }
.footer-logo { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; color: #fff; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 14px; color: #94A3B8; transition: color 0.3s; }
.footer-nav a:hover { color: #fff; }
.footer-company { font-size: 14px; color: #94A3B8; text-align: center; }
.portfolio-notice-footer {
  text-align: center; font-size: 12px; color: #0EA5E9;
  padding: 12px 16px; border: 1px solid rgba(14,165,233,0.2);
  border-radius: 6px; background: rgba(14,165,233,0.05);
  max-width: 600px; margin: 0 auto 20px;
}
.copyright { text-align: center; font-size: 13px; color: #64748B; }

/* ============================================
   レスポンシブ: タブレット (768px以下)
   ============================================ */
@media (max-width: 768px) {
  .header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(241,245,249,0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 0; font-size: 15px; }
  .hamburger { display: flex; }
  .header-btn { display: none; }

  .hero { min-height: 100svh; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-content { padding: 100px 20px 60px; }

  .section { padding: 80px 0; }
  .section-title { font-size: 26px; margin-bottom: 40px; }
  .section-subtitle { margin-top: -28px; margin-bottom: 40px; }

  .service-grid { grid-template-columns: 1fr; gap: 24px; }

  .strength-row, .strength-row.strength-reverse { flex-direction: column; gap: 32px; }
  .strength-img { flex: none; width: 100%; }

  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .about-row { flex-direction: column; gap: 32px; }
  .about-numbers { justify-content: center; }
  .about-number { font-size: 40px; }

  .section-cta { padding: 80px 0; }
  .cta-title { font-size: 28px; }
}

/* ============================================
   レスポンシブ: スマートフォン (480px以下)
   ============================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .btn-hero { font-size: 15px; padding: 16px 40px; width: 90%; text-align: center; }

  .section-title { font-size: 24px; }

  .works-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; gap: 28px; }

  .about-numbers { flex-direction: column; gap: 24px; align-items: center; }
  .about-number { font-size: 36px; }

  .cta-title { font-size: 24px; }
  .btn-cta { font-size: 15px; padding: 18px 40px; width: 90%; text-align: center; }

  .footer-nav { flex-direction: column; align-items: center; gap: 12px; }
}
