/* ========================================
   テックインフォ株式会社 - Style
   design-style.md 準拠
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a2e;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a2e;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #4361ee;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  margin-top: 64px;
  background: #1a1a2e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 120px;
}

.hero-inner {
  max-width: 700px;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #4361ee;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 2;
  color: #c8c8d4;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 48px;
  border: 2px solid #4361ee;
  color: #4361ee;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: #4361ee;
  color: #ffffff;
}

/* --- Numbers --- */
.numbers-section {
  padding: 56px 0;
  border-bottom: 1px solid #e9ecef;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.number-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.number-unit {
  font-size: 1rem;
  font-weight: 500;
}

.number-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6c757d;
  letter-spacing: 0.04em;
}

/* --- Section --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f8f9fa;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #4361ee;
  margin: 12px auto 0;
}

.section-lead {
  font-size: 0.9375rem;
  text-align: center;
  color: #6c757d;
  margin-bottom: 40px;
  margin-top: -16px;
}

.section-text {
  font-size: 0.9375rem;
  line-height: 2;
  color: #1a1a2e;
  max-width: 720px;
  margin: 0 auto;
}

.section-text + .section-text {
  margin-top: 16px;
}

/* --- Cards (Services) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #4361ee;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #4361ee;
  border-radius: 50%;
  color: #4361ee;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #6c757d;
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
  padding: 0;
}

.card-list li {
  font-size: 0.8125rem;
  color: #1a1a2e;
  padding: 4px 0 4px 16px;
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 1px;
  background: #4361ee;
}

/* --- Strengths --- */
.strengths {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.strength-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.strength-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4361ee;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1.4;
}

.strength-body {
  flex: 1;
}

.strength-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.strength-text {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #6c757d;
}

/* --- About --- */
.about-message {
  margin-bottom: 24px;
}

.about-sign {
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.info-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9375rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 120px;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}

.info-table td a {
  color: #4361ee;
}

.info-table td a:hover {
  text-decoration: underline;
}

/* --- Contact --- */
.contact-text {
  text-align: center;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 40px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.contact-item:hover {
  border-color: #4361ee;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6c757d;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: #4361ee;
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: #c8c8d4;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8125rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: #c8c8d4;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
}

/* --- Privacy Policy --- */
.privacy-section {
  margin-top: 64px;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-content p {
  font-size: 0.9375rem;
  line-height: 2;
  margin-bottom: 16px;
}

.privacy-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.privacy-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.privacy-content li {
  font-size: 0.9375rem;
  line-height: 2;
}

.privacy-content a {
  color: #4361ee;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.privacy-date {
  margin-top: 40px;
  color: #6c757d;
  font-size: 0.875rem;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  /* Header */
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 100px 24px 80px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .hero-cta {
    padding: 12px 36px;
    font-size: 0.875rem;
  }

  /* Numbers */
  .numbers {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .numbers-section {
    padding: 40px 0;
  }

  .number-value {
    font-size: 2rem;
  }

  /* Section */
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 32px;
  }

  .section-lead {
    margin-bottom: 32px;
    margin-top: -8px;
  }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Strengths */
  .strength-item {
    flex-direction: column;
    gap: 12px;
  }

  /* About */
  .info-table th {
    display: block;
    padding-bottom: 4px;
    border-bottom: none;
  }

  .info-table td {
    display: block;
    padding-top: 0;
  }

  /* Contact */
  .contact-methods {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 320px;
    padding: 24px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

  .hero-label {
    font-size: 0.75rem;
  }

  .section-text {
    font-size: 0.875rem;
  }
}
