/* ===== Axis Works — shared styles ===== */
:root {
  --paper: #FFFFFF;
  --paper-soft: #F4F8FC;
  --ink: #0F1B2D;
  --ink-mute: #4D5963;
  --ink-soft: #8A93A0;
  --line: #DDE5EE;
  --accent: #1D7DC9;
  --accent-soft: #E7F2FA;
  --accent-deep: #155E97;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

.container { width: min(var(--container), calc(100% - var(--gutter)*2)); margin: 0 auto; }

.eyebrow {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand small {
  display: block;
  font-family: var(--en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-top: 2px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links > a,
.nav-links .nav-item {
  font-family: var(--en);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  transition: color .2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 76px;
}
.nav-links > a:hover,
.nav-links .nav-item:hover { color: var(--accent); }
.nav-links > a.is-active { color: var(--accent); }
.nav-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.has-dropdown:hover .nav-caret { transform: translateY(0) rotate(225deg); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 320px;
  box-shadow: 0 18px 40px rgba(15, 27, 45, 0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.dropdown a .ext {
  font-family: var(--en);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29, 125, 201, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--en); font-size: 14px; font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap .2s ease;
}
.btn-link:hover { gap: 10px; }

/* ===== Section base ===== */
section { padding: clamp(80px, 12vw, 140px) 0; }
section.tight { padding: clamp(60px, 9vw, 100px) 0; }
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 800px;
  letter-spacing: 0.02em;
}
.section-lede {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-mute);
  max-width: 640px;
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer-col h4 {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-family: var(--en); font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
