/* ================================================================
   ITX Corporate Site — style.css
   ================================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: #6366f1;
  color: #fff;
}

/* ── Utility ── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: #fff;
  box-shadow: 0 1px 32px rgba(0, 0, 0, 0.06);
}
nav .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}
nav ul a {
  text-decoration: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
nav ul a:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: #f1f5f9; }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 32px 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
#hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
#hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ── Section common ── */
section {
  padding: 120px 0;
  position: relative;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  color: #64748b;
  max-width: 560px;
  margin-bottom: 56px;
  font-size: 0.95rem;
}

/* ── Video background (shared) ── */
.has-video-bg {
  overflow: hidden;
}
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.has-video-bg .section-inner {
  position: relative;
  z-index: 1;
}

/* ── Video bg: override colors to white ── */
.has-video-bg .section-label {
  color: #c4b5fd;
  background: rgba(255, 255, 255, 0.1);
}
.has-video-bg h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.has-video-bg .section-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* service cards on video bg */
.has-video-bg .service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.15);
}
.has-video-bg .service-card h3 { color: #fff; }
.has-video-bg .service-card p { color: rgba(255, 255, 255, 0.8); }
.has-video-bg .service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.has-video-bg .service-icon.dev {
  background: rgba(99, 102, 241, 0.2);
}
.has-video-bg .service-icon.ses {
  background: rgba(34, 197, 94, 0.2);
}
.has-video-bg .service-card .tag {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.2);
}

/* strength items on video bg */
.has-video-bg .strength-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.12);
}
.has-video-bg .strength-item:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.has-video-bg .strength-num span {
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
  -webkit-background-clip: text;
  background-clip: text;
}
.has-video-bg .strength-body h3 { color: #fff; }
.has-video-bg .strength-body p { color: rgba(255, 255, 255, 0.8); }

/* about on video bg */
.has-video-bg .info-message h3 { color: #fff; }
.has-video-bg .info-message p { color: rgba(255, 255, 255, 0.8); }
.has-video-bg .info-grid {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 48px;
}
.has-video-bg .info-table th { color: rgba(255, 255, 255, 0.5); }
.has-video-bg .info-table td { color: #fff; }
.has-video-bg .info-table tr { border-color: rgba(255, 255, 255, 0.1); }
.has-video-bg .info-table a { color: #a5b4fc; }

/* clients on video bg */
.has-video-bg .client-list {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}
.has-video-bg .client-list li {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}
.has-video-bg .client-list li:nth-child(odd) {
  border-right-color: rgba(255, 255, 255, 0.08);
}
.has-video-bg .client-list li:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* contact on video bg */
.has-video-bg .contact-info p { color: rgba(255, 255, 255, 0.8); }
.has-video-bg .contact-link-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.has-video-bg .contact-link-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.has-video-bg .contact-link-item .icon {
  background: rgba(99, 102, 241, 0.2);
}
.has-video-bg .contact-link-item .icon svg {
  stroke: #a5b4fc;
}
.has-video-bg .contact-link-item .label { color: rgba(255,255,255,0.5); }
.has-video-bg .contact-link-item .value { color: #fff; }
.has-video-bg .contact-form-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.12);
}
.has-video-bg .form-group label { color: rgba(255, 255, 255, 0.7); }
.has-video-bg .form-group input,
.has-video-bg .form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.has-video-bg .form-group input::placeholder,
.has-video-bg .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.has-video-bg .form-group input:focus,
.has-video-bg .form-group textarea:focus {
  border-color: #6366f1;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ── Service cards ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 44px 36px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-icon.dev {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.service-icon.ses {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}
.service-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.8;
}
.service-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-card .tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6366f1;
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 6px;
}

/* ── Section bg alternating ── */

/* ── Strength items ── */
.strength-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.strength-item {
  display: flex;
  align-items: stretch;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  padding: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.strength-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
}
.strength-num {
  flex: 0 0 64px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}
.strength-num span {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.strength-body { flex: 1; }
.strength-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.strength-body p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ── About / Company Info ── */
/* #about bg handled by video */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.info-message h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.info-message p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.9;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table tr {
  border-bottom: 1px solid #f1f5f9;
}
.info-table tr:last-child { border-bottom: none; }
.info-table th,
.info-table td {
  text-align: left;
  padding: 18px 4px;
  font-size: 0.9rem;
  vertical-align: top;
}
.info-table th {
  width: 120px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.info-table td {
  color: #1a1a2e;
}

/* ── Clients ── */
/* #clients bg handled by video */
.client-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.client-list li {
  padding: 18px 24px;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}
.client-list li:hover {
  background: #fafbfe;
}
.client-list li:nth-child(odd) {
  border-right: 1px solid #f1f5f9;
}

/* ── Info table link ── */
.info-table a {
  color: #6366f1;
  text-decoration: none;
  transition: opacity 0.2s;
}
.info-table a:hover { opacity: 0.7; }

/* ── Contact ── */
/* #contact bg handled by video */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #1a1a2e;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-link-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}
.contact-link-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-link-item .label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}
.contact-link-item .value {
  font-size: 0.95rem;
  font-weight: 600;
}
.contact-form-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  padding: 40px;
  width: 100%;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fafbfe;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  color: #1a1a2e;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-primary {
  align-self: flex-start;
  padding: 14px 40px;
  border-radius: 10px;
  font-family: inherit;
}

/* ── Footer ── */
footer {
  padding: 40px 32px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer p {
  font-size: 0.8rem;
  color: #94a3b8;
}
footer .footer-links {
  display: flex;
  gap: 20px;
}
footer .footer-links a {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: #6366f1; }

/* ── Scroll animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  nav ul.open {
    max-height: 320px;
    padding: 12px;
  }
  nav ul a {
    display: block;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  nav ul a:hover { background: #f1f5f9; }
  .hamburger { display: flex; }

  section { padding: 80px 0; }
  .section-inner { padding: 0 20px; }
  nav .inner { padding: 0 20px; }

  #hero { padding: 72px 20px 0; }
  #hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .strength-item {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }
  .strength-num { flex: none; }

  .contact-form-card { padding: 28px 24px; }

  .client-list { grid-template-columns: 1fr; }
  .client-list li:nth-child(odd) { border-right: none; }

  .hero-bg video,
  .video-bg video {
    left: 0;
    top: 0;
    transform: scale(0.75);
    transform-origin: left top;
    min-width: 134%;
    min-height: 134%;
  }
}
