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

:root {
  --primary: #0033FF;
  --primary-dark: #0027c4;
  --accent: #4DD9FF;
  --ink: #10131a;
  --ink-soft: #414a5a;
  --gray: #6b7280;
  --line: #e3e7ee;
  --bg-soft: #f4f6fa;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 19, 26, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 51, 255, 0.16);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: -1;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img.brand-mark { height: 40px; width: auto; }
.brand .brand-text { font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
.brand .brand-text small { display: block; font-size: 10px; font-weight: 500; color: var(--gray); letter-spacing: 0.08em; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--primary); background: rgba(0, 51, 255, 0.06); }
.main-nav a.current { color: var(--primary); font-weight: 700; }

.nav-cta {
  margin-left: 10px;
  padding: 11px 22px !important;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(0, 51, 255, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 51, 255, 0.34); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px rgba(0, 51, 255, 0.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 51, 255, 0.34); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-line { border-color: var(--primary); color: var(--primary); }
.btn-line:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ---------- Hero (top page) ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: #060a1f; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(3,8,40,0.92) 8%, rgba(4,12,64,0.72) 42%, rgba(0,51,255,0.28) 78%, rgba(77,217,255,0.18) 100%);
}
.hero-inner { position: relative; padding: 150px 0 130px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.5;
  max-width: 780px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  margin-top: 24px;
  font-size: 16px;
  color: rgba(255,255,255,0.86);
  max-width: 560px;
  line-height: 2;
}
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.hero-badges { position: relative; margin-top: 64px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

/* ---------- Section basics ---------- */
section { padding: 100px 0; }
.section-tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--primary); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; line-height: 1.5; }
.section-desc { margin-top: 18px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.9; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Feature / service cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(0,51,255,0.25); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.85; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 38px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat .num sup { font-size: 18px; margin-left: 2px; }
.stat .label { margin-top: 10px; font-size: 13px; color: var(--gray); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #041154, var(--primary) 55%, #0a63ff);
  color: var(--white);
  border-radius: 20px;
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(77,217,255,0.35), transparent 70%);
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; max-width: 480px; position: relative; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,0.82); font-size: 14.5px; position: relative; }
.cta-band .actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0e21; color: rgba(255,255,255,0.72); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand img { height: 34px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-desc { font-size: 13.5px; line-height: 1.9; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges span { padding: 5px 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 11.5px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, #050b30, #0033FF 65%, #1861ff);
  color: var(--white);
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; right: -8%; top: -30%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(77,217,255,0.28), transparent 70%);
}
.breadcrumb { position: relative; font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 { position: relative; font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.page-header .lead { position: relative; margin-top: 14px; color: rgba(255,255,255,0.82); font-size: 15px; max-width: 620px; }

/* ---------- Table (company profile) ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table th, .info-table td { text-align: left; padding: 20px 18px; font-size: 14.5px; vertical-align: top; }
.info-table th { width: 220px; color: var(--ink-soft); font-weight: 700; background: var(--bg-soft); }
.info-table td { color: var(--ink); line-height: 1.9; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date { font-size: 12.5px; font-weight: 700; color: var(--primary); letter-spacing: 0.04em; }
.timeline-text { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- People ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: var(--white); }
.person-card .role { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 0.06em; }
.person-card h3 { margin-top: 8px; font-size: 19px; font-weight: 700; }
.person-card ul { margin-top: 16px; }
.person-card li { font-size: 13px; color: var(--ink-soft); padding-left: 16px; position: relative; margin-bottom: 8px; }
.person-card li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Qualification chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft);
}

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Works page ---------- */
.works-category { border: 1px solid var(--line); border-radius: 16px; padding: 40px; margin-bottom: 28px; }
.works-category-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.works-category-head .icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.works-category-head .icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; }
.works-category-head h3 { font-size: 20px; font-weight: 800; }
.works-category-head p { font-size: 13.5px; color: var(--gray); margin-top: 4px; }
.client-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.client-tags span { font-size: 12.5px; padding: 7px 13px; background: var(--bg-soft); border-radius: 8px; color: var(--ink-soft); }

.works-hero { position: relative; }
.works-hero img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }

.filter-note { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--bg-soft); border-radius: 10px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 40px; }
.filter-note svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; flex-shrink: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info-card { border: 1px solid var(--line); border-radius: 16px; padding: 34px; background: var(--bg-soft); }
.contact-info-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-row .icon-sm { width: 38px; height: 38px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-row .icon-sm svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; }
.contact-info-row .label { font-size: 12px; color: var(--gray); font-weight: 700; }
.contact-info-row .value { font-size: 14.5px; margin-top: 3px; font-weight: 500; }

.form-group { margin-bottom: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
label .req { color: #e0324c; font-size: 11px; font-weight: 700; margin-left: 6px; }
label .opt { color: var(--gray); font-size: 11px; font-weight: 500; margin-left: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 14px 16px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,51,255,0.12);
}
textarea { resize: vertical; min-height: 150px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.check-row input { margin-top: 4px; }
.check-row a { color: var(--primary); text-decoration: underline; }
.submit-row { margin-top: 32px; }
button.btn-primary { border: none; cursor: pointer; font-family: inherit; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 14px; }

/* ---------- Utility ---------- */
.center-text { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-56 { margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; z-index: 101; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); gap: 4px; transform: translateX(100%); transition: transform .25s ease; will-change: transform; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 16px 14px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-inner { padding: 110px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 26px; flex-direction: column; align-items: flex-start; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .info-table th { width: 130px; padding: 14px 10px; font-size: 13px; }
  .info-table td { padding: 14px 10px; font-size: 13.5px; }
  .works-category { padding: 26px 20px; }
  .works-category-head { flex-wrap: wrap; }
}
