/* =============================================================
   Axton Group LTD Japan — site.css (design system v12)
   Loads AFTER tw.css and any inline page styles.
   Owns: tokens, typography, header/nav/footer, buttons, cards,
   FAQ, team photos, reveal motion. Page-specific markup
   (hero slider, media panels) stays in each page.
   ============================================================= */

:root{
  --bg:#0A1220;
  --bg-deep:#070D18;
  --surface:rgba(16,27,46,.62);
  --surface-2:rgba(19,32,58,.5);
  --line:rgba(148,178,222,.14);
  --line-strong:rgba(148,178,222,.30);
  --aqua:#2DB7D8;
  --aqua-strong:#5BD2EC;
  --eco:#69BE6B;
  --text:#E9EFF6;
  --muted:#A9B6C9;
  --faint:#7C8BA3;
  --font-display:'Space Grotesk','Outfit','Noto Sans JP',ui-sans-serif,system-ui,sans-serif;
  --font-body:'Outfit','Noto Sans JP',ui-sans-serif,system-ui,sans-serif;
  --r-md:12px;
  --r-lg:18px;
  --wrap:72rem;
  color-scheme:dark;
}

/* ---------- base ---------- */
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:rgba(45,183,216,.32);color:#fff}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:2px solid var(--aqua);outline-offset:3px;border-radius:4px;
}
img{max-width:100%}

h1,h2,h3,h4,.section-title{
  font-family:var(--font-display);
  font-weight:600;
  letter-spacing:-.015em;
  color:#fff;
}
.section-title{font-size:clamp(1.85rem,3.2vw,2.7rem);line-height:1.12}
.section-lead{color:var(--muted);font-size:1.05rem;line-height:1.75}
.eyebrow{
  color:var(--aqua);
  font-family:var(--font-display);
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.18em;
}

/* ---------- buttons ---------- */
.btn-primary,.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  border-radius:10px;
  padding:.85rem 1.4rem;
  font-weight:600;font-size:.97rem;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
  min-height:44px;
}
.btn-primary{
  border:1px solid transparent;
  color:#04121C;
  background:var(--aqua);
}
.btn-primary:hover{
  background:var(--aqua-strong);
  color:#04121C;
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(45,183,216,.18);
}
.btn-ghost{
  border:1px solid var(--line-strong);
  color:var(--text);
  background:transparent;
}
.btn-ghost:hover{
  border-color:rgba(45,183,216,.6);
  color:#fff;
  background:rgba(45,183,216,.07);
}

/* ---------- cards ---------- */
.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
  border-radius:var(--r-lg);
  box-shadow:none;
}
.card-flat{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--r-lg);
}
.hover-lift{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.hover-lift:hover{
  transform:translateY(-3px);
  border-color:rgba(45,183,216,.45);
  box-shadow:0 18px 44px rgba(2,8,18,.5);
}

/* ---------- header ---------- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(8,14,25,.82);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.site-header__inner{
  max-width:var(--wrap);margin:0 auto;
  display:flex;align-items:center;gap:1.5rem;
  padding:.65rem 1.25rem;
  min-height:60px;
}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:#fff;min-width:0}
.brand img{width:38px;height:38px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.14);flex:0 0 auto}
.brand__name{
  font-family:var(--font-display);
  font-weight:600;font-size:1.02rem;line-height:1.2;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.site-nav{display:flex;align-items:center;gap:1.35rem;margin-left:auto}
.site-nav a{
  color:rgba(233,239,246,.72);text-decoration:none;
  font-size:.92rem;font-weight:500;
  padding:.3rem 0;position:relative;white-space:nowrap;
  transition:color .15s ease;
}
.site-nav a:hover{color:#fff}
.site-nav a[aria-current="page"]{color:var(--aqua-strong)}
.site-nav a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:var(--aqua);border-radius:2px;
}
.lang-switch{
  font-size:.78rem !important;
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:.28rem .75rem !important;
  color:rgba(233,239,246,.82) !important;
}
.lang-switch:hover{border-color:rgba(45,183,216,.6);color:#fff !important;background:rgba(45,183,216,.07)}
.header-cta{margin-left:.25rem}
.header-cta .btn-primary{padding:.55rem 1.1rem;min-height:38px;font-size:.88rem;border-radius:999px}

.menu-toggle{
  display:none;
  margin-left:auto;
  align-items:center;justify-content:center;
  width:42px;height:42px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:transparent;color:var(--text);
  cursor:pointer;
}
.menu-toggle svg{width:20px;height:20px}
.menu-toggle .icon-close{display:none}
.menu-toggle[aria-expanded="true"] .icon-open{display:none}
.menu-toggle[aria-expanded="true"] .icon-close{display:block}

.mobile-menu{
  border-top:1px solid var(--line);
  background:rgba(7,12,22,.98);
  box-shadow:0 24px 48px rgba(2,8,18,.45);
}
.mobile-menu__inner{
  max-width:var(--wrap);margin:0 auto;
  padding:.9rem 1.25rem 1.4rem;
  display:flex;flex-direction:column;
}
.mobile-menu a{
  color:rgba(233,239,246,.85);text-decoration:none;
  font-size:1rem;font-weight:500;
  padding:.8rem .1rem;
  border-bottom:1px solid rgba(148,178,222,.09);
}
.mobile-menu a:last-of-type{border-bottom:0}
.mobile-menu .mobile-cta{margin-top:.9rem}
.mobile-menu .mobile-cta .btn-primary{width:100%}
.mobile-menu.mobile-menu[hidden]{display:none}

@media (max-width:1023px){
  .site-nav,.header-cta{display:none}
  .menu-toggle{display:inline-flex}
}
@media (min-width:1024px){
  .mobile-menu{display:none !important}
}

/* ---------- FAQ ---------- */
.faq details{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--r-md);
  overflow:hidden;
  transition:border-color .18s ease,background .18s ease;
}
.faq details[open],.faq details:hover{border-color:rgba(45,183,216,.38)}
.faq summary{
  cursor:pointer;list-style:none;
  padding:1.05rem 1.2rem;
  font-weight:600;color:#fff;
  font-family:var(--font-display);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";width:.5rem;height:.5rem;flex:0 0 auto;
  border-right:2px solid var(--aqua);border-bottom:2px solid var(--aqua);
  transform:rotate(45deg);transition:transform .18s ease;
}
.faq details[open] summary::after{transform:rotate(225deg)}
.faq details p{padding:0 1.2rem 1.15rem;margin:0;color:var(--muted);line-height:1.7}

/* ---------- team photos ---------- */
.team-photo{
  width:150px;height:150px;
  border-radius:999px;object-fit:cover;object-position:center;
  box-shadow:0 0 0 1px rgba(255,255,255,.16),0 14px 40px rgba(2,8,18,.4);
}
.profile-photo{
  border-radius:var(--r-lg);
  box-shadow:0 0 0 1px rgba(255,255,255,.12),0 24px 70px rgba(2,8,18,.45);
}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-deep)}
.site-footer__grid{
  max-width:var(--wrap);margin:0 auto;
  display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:2.5rem;
  padding:3.25rem 1.25rem 2.75rem;
}
.site-footer h2{
  font-family:var(--font-display);
  font-size:.74rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--faint);margin:0 0 1rem;
}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.site-footer a{color:rgba(233,239,246,.72);text-decoration:none;font-size:.92rem;transition:color .15s ease}
.site-footer a:hover{color:var(--aqua-strong)}
.site-footer p{color:var(--muted);font-size:.92rem;line-height:1.7}
.site-footer__brand{display:flex;align-items:center;gap:.65rem;margin-bottom:1rem;text-decoration:none}
.site-footer__brand img{width:38px;height:38px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.site-footer__brand span{font-family:var(--font-display);font-weight:600;color:#fff;font-size:1.02rem}
.site-footer__contact li{color:var(--muted);font-size:.92rem}
.site-footer__legal{
  border-top:1px solid var(--line);
}
.site-footer__legal-inner{
  max-width:var(--wrap);margin:0 auto;
  padding:1.15rem 1.25rem;
  display:flex;flex-wrap:wrap;gap:.75rem 1.75rem;align-items:center;justify-content:space-between;
  color:var(--faint);font-size:.85rem;
}
.site-footer__legal a{color:var(--faint);font-size:.85rem}
.site-footer__legal a:hover{color:var(--aqua-strong)}
@media (max-width:980px){.site-footer__grid{grid-template-columns:1fr 1fr;gap:2rem}}
@media (max-width:560px){.site-footer__grid{grid-template-columns:1fr;gap:2rem}}

/* ---------- motion ---------- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal,.hover-lift,.btn-primary,.btn-ghost{transition:none !important;transform:none !important;animation:none !important}
  .reveal{opacity:1}
}

/* misc resets for legacy bits */
.placeholder-card{
  border:1px dashed rgba(45,183,216,.4);
  background:rgba(45,183,216,.05);
  border-radius:var(--r-lg);
}
.nav-shell{background:rgba(8,14,25,.82)}