@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --blue: #3b82f6;
  --blue-vivid: #2563eb;
  --blue-light: #dbeafe;
  --blue-50: #eff6ff;
  --cyan: #06b6d4;
  --indigo: #6366f1;
  --green: #10b981;
  --green-light: #d1fae5;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --white: #FFFFFF;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --body: #334155;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
  color: var(--body); line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  color: var(--navy); line-height: 1.35;
  font-weight: 700; letter-spacing: -0.01em;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-vivid); }
img { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: all var(--transition);
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); background: rgba(255,255,255,0.92); }

.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 800;
  font-size: 19px; color: var(--navy); text-decoration: none;
}
.nav-logo .star { color: var(--blue); font-size: 22px; }
.nav-logo .dx-badge {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: var(--white); font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px; letter-spacing: 1px;
}

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--gray-600);
  text-decoration: none; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--indigo));
  border-radius: 2px; transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-vivid));
  color: var(--white) !important;
  padding: 9px 22px; border-radius: 8px; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
  transition: all var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.35); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--navy);
  position: absolute; left: 0; transition: all var(--transition); border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* ===== HERO ===== */
.hero {
  padding: 150px 0 90px;
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(59,130,246,0.15), transparent),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(99,102,241,0.12), transparent),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(6,182,212,0.08), transparent);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner { display: flex; align-items: center; gap: 64px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero-text .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25);
  padding: 7px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px; color: #93c5fd;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800;
  line-height: 1.3; margin-bottom: 22px; color: var(--white);
}
.hero h1 .accent {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,0.7); margin-bottom: 36px; }

.hero-visual { flex: 0 0 360px; }
.hero-visual .icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-visual .icon-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 22px 12px; text-align: center;
  transition: all var(--transition); backdrop-filter: blur(4px);
}
.hero-visual .icon-card:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(59,130,246,0.3);
  transform: translateY(-6px); box-shadow: 0 8px 30px rgba(59,130,246,0.15);
}
.hero-visual .icon-card .emoji { font-size: 28px; margin-bottom: 8px; display: block; }
.hero-visual .icon-card .label { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-vivid));
  color: var(--white); box-shadow: 0 2px 10px rgba(59,130,246,0.3);
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59,130,246,0.4); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: var(--shadow-md); }
.btn-white:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid rgba(59,130,246,0.3); }
.btn-outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
.btn-ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); color: var(--white); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-blue { background: linear-gradient(180deg, var(--blue-50), var(--white)); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 12px; }
.section-header .subtitle { font-size: 15px; color: var(--gray-500); max-width: 500px; margin: 0 auto; }
.section-header .line {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  margin: 20px auto 0; border-radius: 2px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 36px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.card-icon.blue { background: linear-gradient(135deg, var(--blue-50), var(--blue-light)); }
.card-icon.green { background: var(--green-light); }
.card h3 { font-size: 17px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--gray-600); line-height: 1.75; }

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

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 32px;
  position: relative; overflow: hidden; transition: all var(--transition);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--indigo));
  transform: scaleY(0); transition: transform var(--transition); transform-origin: top;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(59,130,246,0.2); transform: translateX(4px); }
.service-card .num {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 800;
  color: var(--blue); margin-bottom: 8px; letter-spacing: 1.5px;
}
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--gray-600); line-height: 1.75; }
.service-card .price {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100);
  font-size: 14px; color: var(--blue); font-weight: 700;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--navy); color: var(--white);
  padding: 64px; border-radius: 20px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(59,130,246,0.2), transparent),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(99,102,241,0.15), transparent);
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 28px); color: var(--white); margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 15px; position: relative; }
.cta-banner .btn { position: relative; }

/* ===== FLOW ===== */
.flow { display: flex; gap: 16px; counter-reset: step; }
.flow-step {
  flex: 1; text-align: center; position: relative; padding: 32px 16px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); transition: all var(--transition);
}
.flow-step:hover { box-shadow: var(--shadow-md); border-color: rgba(59,130,246,0.2); }
.flow-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: var(--white); font-family: 'DM Sans', sans-serif;
  font-weight: 800; font-size: 16px; margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}
.flow-step h4 { font-size: 14px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--gray-500); }
.flow-step + .flow-step::after {
  content: '→'; position: absolute; top: 50%; left: -14px; transform: translateY(-50%);
  color: var(--gray-400); font-size: 16px; font-weight: 700;
}

/* ===== PROFILE ===== */
.profile-card {
  display: flex; gap: 40px; align-items: flex-start;
  background: var(--white); border-radius: 20px;
  padding: 44px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.profile-photo {
  width: 140px; height: 140px; border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; flex-shrink: 0;
}
.profile-info h3 { font-size: 22px; margin-bottom: 4px; }
.profile-info .title { font-size: 13px; color: var(--gray-500); margin-bottom: 18px; }
.profile-info .bio { font-size: 14px; line-height: 1.85; color: var(--gray-600); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  background: var(--blue-50); color: var(--blue);
  padding: 5px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600; border: 1px solid rgba(59,130,246,0.1);
}

/* ===== CASE STUDY ===== */
.case-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-card .case-header {
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--blue-50), #f0f0ff);
  border-bottom: 1px solid var(--gray-200);
}
.case-card .case-header .industry {
  font-size: 11px; color: var(--blue); font-weight: 700;
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.case-card .case-header h3 { font-size: 16px; line-height: 1.5; }
.case-card .case-body { padding: 28px 32px; }
.case-card .case-body p { font-size: 14px; line-height: 1.75; color: var(--gray-600); }
.case-card .result {
  margin-top: 18px; padding: 14px 18px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: var(--radius-sm);
  font-size: 14px; color: #065f46; font-weight: 600;
  border: 1px solid rgba(16,185,129,0.15);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 18px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif; transition: all var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 36px; }
.footer-brand .footer-logo {
  font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--white); margin-bottom: 10px;
}
.footer-brand .footer-logo .star { color: var(--blue); }
.footer-brand p { font-size: 13px; line-height: 1.75; }
.footer-links h4 { color: var(--white); font-size: 13px; margin-bottom: 14px; font-weight: 700; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35);
}

/* ===== DIAGNOSIS ===== */
.diag-progress { width: 100%; height: 6px; background: var(--gray-200); border-radius: 3px; margin-bottom: 36px; overflow: hidden; }
.diag-progress .bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--indigo)); border-radius: 3px; transition: width 0.5s ease; }
.diag-question { margin-bottom: 28px; }
.diag-question h3 { font-size: 16px; margin-bottom: 12px; line-height: 1.6; }
.diag-options { display: flex; flex-direction: column; gap: 10px; }
.diag-option {
  padding: 15px 22px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; transition: all var(--transition); font-weight: 500;
}
.diag-option:hover { border-color: var(--blue); background: var(--blue-50); transform: translateX(4px); }
.diag-option.selected {
  border-color: var(--blue); background: linear-gradient(135deg, var(--blue-50), #e0e7ff);
  font-weight: 600; color: var(--blue-vivid); box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}

.diag-result {
  text-align: center; padding: 48px;
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
}
.score-circle {
  width: 150px; height: 150px; border-radius: 50%;
  border: 6px solid var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 28px; box-shadow: 0 0 30px rgba(59,130,246,0.12);
}
.score-circle .score { font-family: 'DM Sans', sans-serif; font-size: 46px; font-weight: 800; color: var(--blue); line-height: 1; }
.score-circle .max { font-size: 14px; color: var(--gray-500); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 120px 0 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { flex-direction: column; gap: 12px; }
  .flow-step + .flow-step::after { display: none; }
  .stats { flex-wrap: wrap; gap: 30px; }
  .profile-card { flex-direction: column; padding: 28px; }
  .profile-photo { width: 100px; height: 100px; font-size: 36px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 16px 28px 24px;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
  }
  .nav-links.open li { padding: 8px 0; }
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 22px; }
  .section-header { margin-bottom: 36px; }
  .cta-banner { padding: 40px 24px; border-radius: var(--radius); }
  .case-card .case-header, .case-card .case-body { padding: 20px 24px; }
}
