/* ベース設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Noto Sans JP", sans-serif;
  color: #0f172a;
  background-color: #f3f4f6;
  line-height: 1.6;
}

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

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

/* コンテナ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background-color: rgba(148, 163, 184, 0.25);
}

.nav-cta {
  background-color: #22c55e;
  color: #022c22;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: #16a34a;
}

/* ヒーロー */
.hero {
  background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 35%, #f9fafb 100%);
  padding: 48px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-tagline {
  font-size: 0.9rem;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-visual img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  background-color: #0f172a;
  object-fit: cover;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background-color: #2563eb;
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: #f9fafb;
}

.btn-block {
  width: 100%;
}

/* セクション共通 */
.section {
  padding: 56px 0;
  background-color: #f9fafb;
}

.section-light {
  padding: 56px 0;
  background-color: #ffffff;
}

.section-accent {
  padding: 56px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}

.section-title-invert {
  color: #f9fafb;
}

.section-intro {
  text-align: center;
  color: #6b7280;
  font-size: 0.98rem;
  margin-bottom: 24px;
}

/* カードグリッド（サービス） */
.card-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.card p {
  font-size: 0.92rem;
  color: #4b5563;
  margin: 0 0 10px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #374151;
}

.card-list li::before {
  content: "・";
  margin-right: 4px;
}

.card-foot {
  font-size: 0.85rem;
  color: #6b7280;
}

/* 特長グリッド */
.feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.feature-item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  border: 1px solid #e5e7eb;
}

.feature-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  background-color: #eff6ff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.feature-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.feature-item p {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
}

/* 導入の流れ */
.flow-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 720px;
}

.flow-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
}

.flow-list h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
}

.flow-list p {
  font-size: 0.9rem;
  margin: 0;
  color: #4b5563;
}

.flow-list li::before {
  content: counter(step);
  counter-increment: step;
}

.flow-list {
  counter-reset: step;
}

.flow-list li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: #2563eb;
  color: #f9fafb;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* お問い合わせ */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
}

.contact-text p {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin: 0 0 8px;
}

.contact-form {
  background-color: #0b1220;
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #4b5563;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #f9fafb;
  background-color: #020617;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa;
}

.form-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* フッター */
.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
}

.footer-text {
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #e5e7eb;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  border-top: 1px solid #111827;
  text-align: center;
  padding: 10px 0 14px;
  font-size: 0.78rem;
  color: #6b7280;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 32px;
  }

  .header-inner {
    flex-direction: row;
  }

  .nav {
    display: none; /* 必要ならハンバーガーに差し替え */
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 40px 0;
  }

  .section-light,
  .section-accent {
    padding: 40px 0;
  }

  .logo-img {
    height: 40px;
  }
}
