:root {
  --color-primary: #0b2545;
  --color-primary-dark: #061533;
  --color-accent: #d97706;
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-section: #fafbfd;
  --max-width: 1100px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(11,37,69,0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--color-text-muted); transition: color .2s; }
.nav a:hover { color: var(--color-primary); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--color-primary-dark); color: #fff !important; }

@media (max-width: 768px) {
  .nav { gap: 14px; font-size: 13px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { display: inline-block; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0b2545 0%, #1a3a6c 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { min-width: 0; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.25));
}
.float-bubble { animation: floatY 4s ease-in-out infinite; transform-origin: center; }
.float-bubble-2 { animation-delay: 1s; }
.float-bubble-3 { animation-delay: 2s; }
.float-bubble-4 { animation-delay: 1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin: 0 0 20px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
}
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
  margin: 0 0 40px;
  max-width: 640px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 0 44px;
  padding: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.stat-unit { font-size: 13px; font-weight: 500; opacity: 0.8; margin-left: 2px; }
.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-illustration { max-width: 360px; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 56px; }
  .hero-title { font-size: 32px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .stat { text-align: left; display: flex; justify-content: space-between; align-items: baseline; }
  .stat-num { font-size: 20px; }
  .hero-illustration { max-width: 280px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}
.btn-primary:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.45);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-large { padding: 18px 48px; font-size: 16px; }

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}
.section-alt { background: var(--color-bg-alt); }
.section-flow { background: var(--color-bg-section); }
.section-cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.section-cta .section-title::after { background: rgba(255,255,255,0.4); }
.section-cta .section-lead { color: rgba(255,255,255,0.85); }

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section-lead {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 60px;
  line-height: 1.9;
}
.section-cta .section-lead { color: rgba(255,255,255,0.85); }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .section-lead { font-size: 15px; margin-bottom: 40px; }
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .2s;
}
.feature:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3e2 0%, #fde7c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  transition: all .25s;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature:hover .feature-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #b45309 100%);
  color: #fff;
  transform: scale(1.05);
}
.feature-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-primary);
  line-height: 1.5;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ===== Flow ===== */
.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: flow;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.flow-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.flow-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-primary);
}
.flow-step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* ===== Tables (Requirements / Company) ===== */
.reqs-table, .company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.reqs-table th, .company-table th {
  width: 200px;
  background: var(--color-bg-alt);
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
  vertical-align: top;
}
.reqs-table td, .company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14.5px;
  line-height: 1.8;
}
.reqs-table tr:last-child th,
.reqs-table tr:last-child td,
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.req-list { margin: 0; padding-left: 20px; }
.req-list li { margin-bottom: 6px; }
.req-list li:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .reqs-table, .company-table {
    display: block;
  }
  .reqs-table tbody, .company-table tbody { display: block; }
  .reqs-table tr, .company-table tr { display: block; border-bottom: 1px solid var(--color-border); }
  .reqs-table tr:last-child, .company-table tr:last-child { border-bottom: none; }
  .reqs-table th, .company-table th,
  .reqs-table td, .company-table td {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-bottom: none;
  }
  .reqs-table th, .company-table th { padding-bottom: 4px; font-size: 13px; }
  .reqs-table td, .company-table td { padding-top: 4px; padding-bottom: 16px; }
}

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  padding: 20px 56px 20px 24px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  list-style: none;
  font-size: 15.5px;
  color: var(--color-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-accent);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ===== CTA section ===== */
.cta-box {
  text-align: center;
  margin-top: 24px;
}
.cta-mail {
  margin: 24px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  font-size: 15px;
}
.footer-copy { margin: 0; font-size: 12.5px; }
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 18px; flex-wrap: wrap; }
}

/* ===== Privacy Policy page ===== */
.policy-page {
  padding: 60px 0 96px;
  background: var(--color-bg-alt);
  min-height: calc(100vh - 64px);
}
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 56px 56px 48px;
  box-shadow: var(--shadow-sm);
}
.policy-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}
.policy-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.policy-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}
.policy-content p, .policy-content li {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--color-text);
}
.policy-content ul, .policy-content ol { padding-left: 24px; }
.policy-content li { margin-bottom: 6px; }

@media (max-width: 600px) {
  .policy-content { padding: 32px 24px; }
  .policy-content h1 { font-size: 22px; }
}
