﻿:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --success: #10b981;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.7;
}

body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: #0369a1;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hero-img-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Sections General */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Value Proposition Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* How It Works */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-item {
  background: var(--bg-light);
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
}

.step-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Services */
.bg-light-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.service-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-meta h5 {
  font-size: 15px;
  margin-bottom: 2px;
}

.user-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

/* Lead Form Section */
.form-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: var(--white);
  padding: 90px 0;
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  color: var(--text-main);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.checkbox-group input {
  margin-top: 3px;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #0284c7;
}

.form-notice {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

#form-response {
  display: none;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

#form-response.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

#form-response.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 14px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-links h5 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  font-size: 12px;
  color: #64748b;
}

/* Legal Pages Styling */
.legal-page {
  padding: 60px 0 100px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.legal-content h2 {
  font-size: 20px;
  margin: 28px 0 14px;
  color: var(--text-main);
}

.legal-content p, .legal-content li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: #0f172a;
  color: var(--white);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  font-size: 13px;
  border: 1px solid #334155;
}

.cookie-btns {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.btn-cookie-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cookie-decline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps-wrapper { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .steps-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
