/* Base */
:root{
  --brand:#0c3c78;
  --brand-2:#11529f;
  --ink:#1b1b1f;
  --bg:#ffffff;
  --muted:#6b7280;
  --ring:#dbeafe;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height:1.7;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-feature-settings:"palt" 1;
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px; background:#ffffffcc; backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid #eef2f7;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); font-weight:700; letter-spacing:.02em}
.logo{height:150px; width:auto}
.logo.small{height:60px}
.nav{display:flex; align-items:center; gap:18px}
.nav a{color:var(--ink); text-decoration:none}
.nav a.active{color:var(--brand)}
.btn{
  display:inline-block; padding:10px 16px; border-radius:999px;
  background:var(--brand); color:#fff; text-decoration:none; border:1px solid var(--brand);
  transition:.2s;
}
.btn:hover{background:var(--brand-2); border-color:var(--brand-2)}
.btn.ghost{background:#fff; color:var(--brand); border-color:var(--brand)}
.btn.small{padding:8px 12px; font-size:.95rem; background:#2f82e9;}
.btn.small:hover{background:#256fc7}

/* Hero */
.hero{
  background: radial-gradient(1200px 600px at 20% -20%, #e8f0ff, transparent), linear-gradient(135deg, #ffffff 0%, #eaf2ff 100%);
  border-bottom:1px solid #eef2f7;
}
.hero-inner{max-width:1080px; margin:0 auto; padding:72px 20px; text-align:left}
.hero h1{
  font-size:clamp(28px, 4vw, 40px);
  margin:0 0 10px;
  letter-spacing:0.06em;
}
.lead{font-size:1.05rem; color:var(--muted); margin:0 0 22px}
.hero-ctas{display:flex; gap:12px}

/* Sections */
.section{max-width:1080px; margin:0 auto; padding:48px 20px}
.section h2{font-size:clamp(22px, 3vw, 28px); margin:0 0 18px}
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.grid3.compact{gap:12px}
.card{background:#fff; border:1px solid #eef2f7; border-radius:16px; padding:18px; box-shadow:0 4px 16px rgba(16,24,40,.04)}
.card h3{margin:0 0 6px; font-size:1.05rem}
.values{margin:0; padding-left:18px}
.values li{margin:.25rem 0}

/* Services list（統合版） */
.service-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
  list-style:none;
  padding:0;
  margin-top:24px;
}
.service-list li{
  padding:12px 14px;
  border:1px dashed #dbe3ef;
  border-radius:12px;
  background:#f8fbff;
}
.service-list span{letter-spacing:.02em}

/* CTA */
.cta{ text-align:center; border-top:1px solid #eef2f7; }
.cta p{ color:var(--muted) }

/* Table */
.company-table{width:100%; border-collapse:collapse; background:#fff; overflow:hidden; border-radius:12px; border:1px solid #eef2f7}
.company-table th, .company-table td{padding:12px 14px; border-bottom:1px solid #eef2f7; text-align:left; vertical-align:top}
.company-table th{width:160px; color:#46515f; background:#fbfdff}

/* Contact */
.contact-box{border:1px solid #eef2f7; padding:16px; border-radius:12px; background:#fbfdff;}

/* Services（カード） */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fbff;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

/* 見出しリンクの見え方（下線消す・色統一） */
.service-card a {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

/* visited でも色を変えない */
.service-card a:visited {
  color: var(--ink);
}

/* 説明文 */
.service-card p {
  margin-top: 8px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ホバー時、少し強調 */
.service-card:hover {
  background: #f0f6ff;
  border-color: #d7e4ff;
  transform: translateY(-2px);
}

/* Service pages navigation */
.service-nav {
  max-width: 1080px;
  margin: 40px auto 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-nav a {
  flex: 1 1 220px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e1e8f5;
  background: #f7faff;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.service-nav a:hover {
  background: #e9f3ff;
  border-color: #c7dcff;
}

.service-nav a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

/* Footer */
.site-footer{margin-top:40px; border-top:1px solid #eef2f7; background:#ffffff}
.footer-inner{max-width:1080px; margin:0 auto; padding:20px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.foot-links{display:flex; gap:16px}
.copy{margin:0; padding:8px 20px 24px; color:#6b7280; font-size:.9rem; text-align: center; letter-spacing: 0em;}

/* Responsive 基本 */
@media (max-width:760px){
  .nav{gap:12px}
  .grid3{grid-template-columns:1fr}
  .service-list{grid-template-columns:1fr}
  .hero-inner{padding:56px 16px}
}

/* strengths */
.strengths {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.strengths h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.strength-box {
  border: 1px solid #e6f0ff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.strength-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #003366;
}

.strength-message {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
}

/* =========================
   Before / After 比較ブロック
   ========================= */
.compare {
  padding: 40px 0;
  background: #f7f9fc;
}

.compare h2 {
  text-align: center;
  margin-bottom: 24px;
}

.compare-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.compare-block {
  flex: 1 1 320px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 10px rgba(15, 35, 95, 0.04);
  box-sizing: border-box;
}

.compare-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  margin-bottom: 10px;
}

.compare-label.after {
  background: #2f82e9;
  color: #ffffff;
}

.compare-block ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.compare-block li {
  margin-bottom: 12px;
}

.compare-block li strong {
  display: block;
  margin-bottom: 2px;
}

.compare-before {
  border: 1px solid #e5e7eb;
}

.compare-after {
  border: 1px solid #c7dcff;
  background: #f5f9ff;
}

/* スマホ向け */
@media (max-width: 767px) {
  .compare {
    padding: 28px 0;
  }
  .compare-inner {
    flex-direction: column;
  }
  .compare-block {
    padding: 16px 16px;
  }
}

/* =========================
   ご支援の流れ（ステップ図）
   ========================= */
.process-flow {
  padding: 40px 0;
}

.process-flow h2 {
  text-align: center;
  margin-bottom: 24px;
}

.process-steps {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.process-step {
  flex: 1 1 260px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px 18px;
  box-sizing: border-box;
}

.step-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f82e9;
  margin-bottom: 6px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

/* スマホ向け */
@media (max-width: 767px) {
  .process-steps {
    flex-direction: column;
  }
}

/* =========================
   CRM導入後のイメージ図
   ========================= */
.crm-layout {
  padding: 40px 0;
  background: #f7f9fc;
}

.crm-layout h2 {
  text-align: center;
  margin-bottom: 24px;
}

.crm-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.crm-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px 18px;
  box-sizing: border-box;
}

.crm-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.crm-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

/* 疑似UI部分（バーやカラム） */
.crm-ui {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.crm-ui .bar {
  height: 8px;
  border-radius: 4px;
  background: #e5edff;
  margin-bottom: 6px;
}

.crm-ui .bar.short {
  width: 60%;
}

.crm-ui.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.crm-ui.columns li {
  height: 22px;
  border-radius: 4px;
  background: #e5edff;
}

.crm-ui .line {
  height: 6px;
  border-radius: 3px;
  background: #e5edff;
  margin-bottom: 4px;
}

.crm-note {
  max-width: 1080px;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* スマホ向け */
@media (max-width: 960px) {
  .crm-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 共通 ---- */
.section-title {
  font-size: 26px;
  margin-bottom: 24px;
  font-weight: 700;
}

.problem-list li {
  margin-bottom: 8px;
}

/* ---- Before / After 図解 ---- */
.diagram-cols {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.diagram-col {
  flex: 1;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

.diagram-arrow {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- STEPS ---- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step-card {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

/* ---- SERVICE CARDS（grid-cards 内だけに適用） ---- */
.grid-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-cards .service-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
}

/* ---- CTA ---- */
.cta-section {
  padding: 40px 0;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #007acc;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
}

.service-nav-list {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
}

.service-nav-list .active a {
  font-weight: bold;
  color: #007acc;
}

/* ---- SP ---- */
@media screen and (max-width: 768px) {
  .diagram-cols {
    flex-direction: column;
  }
}
