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

:root {
  --primary:   #0057b8;
  --primary-d: #0042a0;
  --accent:    #ff6b35;
  --dark:      #1a1e2e;
  --text:      #333;
  --muted:     #666;
  --bg-light:  #f5f7fa;
  --border:    #e0e4ee;
  --radius:    8px;
  --max-w:     1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-d); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 3rem; font-size: 1.05rem; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--primary); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #eef3fb 0%, #f7f9ff 100%);
  padding: 5rem 1.5rem;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.hero-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img-placeholder {
  background: var(--border);
  border-radius: 12px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== CLIENTS ===== */
.clients {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.clients-track-wrapper { overflow: hidden; }
.clients-track {
  display: flex;
  gap: 3rem;
  list-style: none;
  width: max-content;
  animation: scroll-clients 20s linear infinite;
}
.clients-track li {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  color: #aaa;
  padding: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 100px;
  text-align: center;
}
@keyframes scroll-clients {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== PAIN POINTS ===== */
.pain {
  background: var(--bg-light);
  padding: 5rem 1.5rem;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.pain-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pain-icon { font-size: 2.2rem; display: block; margin-bottom: 1rem; }
.pain-card p { font-size: 0.9rem; color: var(--muted); }
.pain-resolve {
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark);
}
.pain-resolve strong { color: var(--primary); }

/* ===== FEATURES ===== */
.features {
  padding: 5rem 1.5rem;
  background: #fff;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.img-placeholder {
  background: var(--bg-light);
  border-radius: 12px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}
.feature-num {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.feature-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.feature-body p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-list li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.9rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== CASES ===== */
.cases {
  background: var(--dark);
  padding: 5rem 1.5rem;
}
.cases .section-title { color: #fff; }
.cases .section-title::after { background: var(--accent); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.case-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
}
.case-industry {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.case-result {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.case-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
}
.case-company {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-light);
  padding: 5rem 1.5rem;
}
.contact-inner { max-width: 720px; }
.contact-sub {
  text-align: center;
  color: var(--muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}
.form-full { flex: 1; }
.required {
  display: inline-block;
  background: #e8001c;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fafafa;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.form-check input { width: auto; }
.form-check a { color: var(--primary); text-decoration: underline; }
.contact-form .btn-lg { align-self: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo { font-weight: 800; font-size: 1rem; color: #fff; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-img { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
