/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #0f172a;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --text:         #1e293b;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --radius:       8px;
  --max-w:        1100px;
  --header-h:     68px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section        { padding: 88px 0; }
.section-alt    { background: var(--bg-alt); }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: 56px;
}
.section-title .en {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: 10px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.site-logo { display: flex; align-items: center; }
.site-logo:hover { text-decoration: none; opacity: .85; }
.site-logo-img { height: 38px; width: auto; display: block; }
.site-logo-img--inv { filter: brightness(0) invert(1); }

.site-nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.site-nav a {
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.site-nav .nav-cta a {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  border-bottom: none;
  transition: background .18s;
}
.site-nav .nav-cta a:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); transition: .3s; }

/* ===== Page Header ===== */
.page-header { background: var(--primary); color: #fff; padding: 60px 0; text-align: center; }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 8px; }
.page-header .en { font-size: .8rem; color: rgba(255,255,255,.5); letter-spacing: .15em; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }

/* ===== Hero ===== */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge { font-size: .75rem; letter-spacing: .15em; color: var(--accent); text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.875rem); line-height: 1.25; margin-bottom: 24px; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.72); line-height: 1.85; margin-bottom: 40px; max-width: 520px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); margin-left: 12px; }
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  text-decoration: none; color: #fff;
}
.btn-white { background: #fff; color: var(--accent); border-color: #fff; }
.btn-white:hover {
  background: #f0f4ff; border-color: #f0f4ff;
  text-decoration: none; color: var(--accent);
  transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 10px; }
.card p { font-size: .875rem; color: var(--muted); line-height: 1.75; }

/* ===== Service Detail ===== */
.service-list { display: flex; flex-direction: column; gap: 56px; }

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-item.reverse .service-detail { order: -1; }

.service-body .card-icon { margin-bottom: 16px; }
.service-body h2 { font-size: 1.375rem; color: var(--primary); margin-bottom: 14px; }
.service-body p { color: var(--muted); line-height: 1.85; font-size: .925rem; }

.service-detail {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.service-detail h4 { font-size: .75rem; color: var(--muted); letter-spacing: .08em; margin-bottom: 14px; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-features li { font-size: .875rem; color: var(--text); }
.service-features li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ===== Company Table ===== */
.company-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.company-table th, .company-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.company-table th { width: 180px; background: var(--bg-alt); color: var(--primary); font-weight: 600; white-space: nowrap; }
.company-table a { color: var(--text); }
.company-table a:hover { color: var(--accent); }

/* ===== Timeline ===== */
.timeline { max-width: 600px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }

.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -23px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date { font-size: .8rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.timeline-content { font-size: .9rem; color: var(--text); }

/* ===== Contact Form ===== */
.contact-form { max-width: 700px; margin: 0 auto; }

.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.form-label .req { color: #ef4444; margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  -webkit-appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-honeypot { display: none !important; }
.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { padding: 14px 44px; font-size: .95rem; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: .9rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== CTA Section ===== */
.cta-section { background: var(--accent); color: #fff; padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.82); font-size: 1rem; margin-bottom: 32px; }

/* ===== Footer ===== */
.site-footer { background: var(--primary); color: rgba(255,255,255,.65); padding: 56px 0 28px; }

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

.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand p { font-size: .8rem; line-height: 1.75; }

.footer-nav h4 { color: rgba(255,255,255,.9); font-size: .75rem; letter-spacing: .1em; margin-bottom: 14px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 9px; }
.footer-nav a { color: rgba(255,255,255,.55); font-size: .8rem; transition: color .18s; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; text-align: center; font-size: .75rem; color: rgba(255,255,255,.35); }

/* ===== Works placeholder ===== */
.coming-soon { text-align: center; padding: 80px 24px; }
.coming-soon .icon { font-size: 3rem; margin-bottom: 16px; }
.coming-soon h2 { font-size: 1.25rem; color: var(--primary); margin-bottom: 10px; }
.coming-soon p { color: var(--muted); font-size: .9rem; }

/* ===== Divider ===== */
.service-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 12px 24px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav a:hover, .site-nav a.active { border-bottom-color: var(--border); }
  .site-nav .nav-cta a { background: none; color: var(--accent); padding: 12px 24px; border-radius: 0; }

  .section { padding: 56px 0; }

  .service-item { grid-template-columns: 1fr; gap: 24px; }
  .service-item.reverse .service-detail { order: 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .company-table th { width: 100px; font-size: .825rem; }
  .company-table td { font-size: .825rem; }
}
