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

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

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #1a2b4a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   Utilities
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-lead {
  text-align: center;
  color: #5a6a7a;
  margin-bottom: 56px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

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

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

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 43, 74, 0.08);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 2px 16px rgba(26, 43, 74, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2b4a;
  letter-spacing: 0.04em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a2b4a;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: #3b82f6;
}

.nav-cta {
  background: #1a2b4a;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: #243a5e !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a2b4a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 180px 0 120px;
  background: linear-gradient(135deg, #1a2b4a 0%, #243a5e 50%, #1e3a5f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===========================
   課題提起
   =========================== */
.section-problems {
  background: #f8fafc;
}

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

.problem-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.problem-card:hover {
  box-shadow: 0 8px 32px rgba(26, 43, 74, 0.08);
}

.problem-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.problem-icon svg {
  width: 100%;
  height: 100%;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.problem-card p {
  font-size: 0.9rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ===========================
   サービス一覧
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: #fff;
  padding: 40px 36px;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(26, 43, 74, 0.1);
  transform: translateY(-4px);
}

.service-num {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card p {
  font-size: 0.9rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ===========================
   強み・特徴
   =========================== */
.section-strengths {
  background: #f8fafc;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.strength-item {
  text-align: center;
}

.strength-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a2b4a;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.strength-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.strength-item p {
  font-size: 0.9rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ===========================
   導入フロー
   =========================== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.flow-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: #d0d8e0;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.flow-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.85rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ===========================
   お問い合わせ
   =========================== */
.section-contact {
  background: #f8fafc;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 40px;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1a2b4a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  color: #1a2b4a;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
  border: none;
  font-family: "Noto Sans JP", sans-serif;
}

/* ===========================
   会社概要
   =========================== */
.company-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  overflow: hidden;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  font-size: 0.95rem;
  text-align: left;
  border-bottom: 1px solid #e8ecf0;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 160px;
  background: #f8fafc;
  font-weight: 500;
  color: #1a2b4a;
  white-space: nowrap;
}

.company-table td {
  color: #3a4a5a;
}

/* ===========================
   フッター
   =========================== */
.footer {
  background: #1a2b4a;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 40px;
}

.footer-inner {
  text-align: center;
}

.footer .logo {
  color: #fff;
  margin-bottom: 8px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .problems-grid,
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .flow-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero {
    padding: 140px 0 80px;
  }

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

  .hero-sub {
    font-size: 0.95rem;
  }

  .sp-hide {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid #e8ecf0;
    box-shadow: 0 8px 24px rgba(26, 43, 74, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    padding: 12px 24px;
  }

  .nav-cta {
    margin: 8px 24px 0;
    display: block !important;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 20px;
  }

  .company-table th {
    padding-bottom: 0;
    background: transparent;
    font-weight: 700;
    font-size: 0.8rem;
    color: #5a6a7a;
    border-bottom: none;
  }

  .company-table td {
    padding-top: 4px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  /* Mobile hamburger animation */
  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
