/* ============================================================
   IP Valuation — Stylesheet v2  (Clean-Minimal + Modern-Tech)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img  { max-width: 100%; height: auto; display: block; }

/* ---------- Variables ---------- */
:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --sky-500:   #0ea5e9;
  --sky-400:   #38bdf8;
  --sky-100:   #e0f2fe;

  --teal-500:  #14b8a6;
  --teal-400:  #2dd4bf;
  --teal-100:  #ccfbf1;

  --white:     #ffffff;
  --border:    #e2e8f0;

  --gradient-hero:   linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #164e63 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9, #14b8a6);
  --gradient-card:   linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);

  --max-w: 1100px;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base ---------- */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.3;
  color: var(--slate-900);
  letter-spacing: -.01em;
}

/* ---------- Utility ---------- */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section    { padding: 80px 0; }
.section-alt{ background: var(--slate-50); }
.text-center{ text-align: center; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- Section Title ---------- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

.lead { font-size: 1.05rem; color: var(--slate-500); line-height: 2; max-width: 680px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,165,233,.1);
  color: var(--sky-500);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(14,165,233,.2);
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
}
.btn-primary:hover { color: var(--white); box-shadow: 0 6px 20px rgba(14,165,233,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover { color: var(--white); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* ---------- Navigation ---------- */
header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(15,23,42,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

nav.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links a {
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--gradient-accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  border-radius: 100px !important;
  font-size: .8rem !important;
  box-shadow: 0 2px 10px rgba(14,165,233,.25);
}
.nav-cta:hover { box-shadow: 0 4px 16px rgba(14,165,233,.4) !important; background: var(--gradient-accent) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #94a3b8; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 100px 28px 112px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.hero-sub { margin-top: 20px; font-size: 1.05rem; color: #94a3b8; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .78rem; color: #64748b; margin-top: 4px; letter-spacing: .04em; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--sky-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.card p  { font-size: .9rem; color: var(--slate-500); line-height: 1.75; }

.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--sky-500);
}
.card-link::after { content: '→'; transition: transform var(--transition); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Info Box ---------- */
.info-box {
  background: var(--gradient-card);
  border: 1px solid var(--sky-100);
  border-radius: var(--radius-md);
  padding: 20px 24px; margin: 20px 0;
}

/* ---------- Two-col ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Lists ---------- */
.styled-list { list-style: none; margin-top: 16px; }
.styled-list li {
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--border);
  position: relative; font-size: .93rem;
}
.styled-list li::before {
  content: '';
  position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient-accent);
}

.achievement-list li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem; position: relative; color: var(--slate-700);
}
.achievement-list li::before {
  content: '';
  position: absolute; left: 0; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient-accent);
}

/* ---------- Table ---------- */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; margin-top: 24px;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th {
  background: var(--slate-900); color: var(--white);
  padding: 12px 18px; text-align: left; font-weight: 600;
}
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--slate-50); }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  background: var(--sky-100); color: var(--sky-500);
  font-size: .78rem; font-weight: 600;
  padding: 4px 12px; border-radius: 100px; margin: 3px 3px;
  border: 1px solid rgba(14,165,233,.15);
}

/* ---------- Profile ---------- */
.profile {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--slate-50); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-top: 32px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient-accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
@media (max-width: 560px) { .profile { flex-direction: column; } }

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--slate-700); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; color: var(--slate-700); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.btn-submit {
  background: var(--gradient-accent); color: var(--white); border: none;
  padding: 13px 36px; font-size: .95rem; font-weight: 600; font-family: inherit;
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,.4); }

.form-success {
  display: none; background: var(--teal-100); border: 1px solid var(--teal-400);
  border-radius: var(--radius-sm); padding: 16px 20px;
  color: #0f766e; margin-top: 16px; font-weight: 600;
}
.form-error {
  display: none; background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 16px 20px; color: #dc2626; margin-top: 16px;
}

/* ---------- Contact Info ---------- */
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--sky-100); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item strong { display: block; font-size: .82rem; color: var(--slate-500); margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { font-size: .95rem; }

/* ---------- Page Hero ---------- */
.page-hero {
  background: var(--gradient-hero); color: var(--white);
  padding: 60px 28px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: 1.9rem; color: var(--white); }
.page-hero p  { color: #94a3b8; margin-top: 8px; font-size: .95rem; }

.breadcrumb { font-size: .78rem; color: #64748b; margin-bottom: 10px; }
.breadcrumb a { color: var(--sky-400); }
.breadcrumb span { margin: 0 6px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--gradient-hero); border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center; position: relative; overflow: hidden; margin-top: 48px;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.cta-banner p  { color: #94a3b8; margin-bottom: 24px; }

/* ---------- Project Card ---------- */
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px; margin-bottom: 20px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gradient-accent);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.project-card h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.project-num {
  background: var(--gradient-accent); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; flex-shrink: 0;
}
.project-card p { font-size: .9rem; line-height: 1.85; color: var(--slate-500); }

/* ---------- Policy ---------- */
.policy-section { margin-bottom: 40px; }
.policy-section h3 { font-size: 1.05rem; margin-bottom: 12px; }
.policy-section p  { font-size: .95rem; line-height: 1.9; }

/* ---------- Services block ---------- */
.service-block { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block h3 { font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 72px 20px 80px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.4rem; }
  .contact-form { padding: 24px; }
  .cta-banner { padding: 32px 24px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; width: 100%;
    background: rgba(15,23,42,.97); backdrop-filter: blur(12px);
    padding: 12px 0; gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 28px; border-radius: 0; font-size: .9rem; }
  .nav-cta { margin: 8px 28px !important; border-radius: var(--radius-sm) !important; }
  .nav-toggle { display: flex; }
  header { position: relative; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
