:root {
  --vsta-bg: #fff;
  --vsta-sub: #f5f6f6;
  --vsta-dark: #242827;
  --vsta-muted: #626a67;
  --vsta-line: #dfe3e1;
  --vsta-green: #65d6b1;
  --vsta-blue: #8eb5ff;
  --vsta-yellow: #ffe9a3;
  --vsta-pink: #f5a5ea;
  --vsta-spectrum: linear-gradient(90deg, var(--vsta-green), var(--vsta-blue), var(--vsta-yellow), var(--vsta-pink));
  --vsta-shell: 1080px;
}

* { box-sizing: border-box; }
body {
  color: var(--vsta-dark);
  background: var(--vsta-bg);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(142,181,255,.55);
  outline-offset: 4px;
}
.vsta-shell { width: min(var(--vsta-shell), calc(100% - 64px)); margin-inline: auto; }
@keyframes vsta-spectrum { to { background-position: 200% 0; } }
.site-header {
  align-items: center;
  backdrop-filter: blur(18px) saturate(150%);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--vsta-line);
  display: flex;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header::after {
  background: var(--vsta-spectrum);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 0;
  opacity: .35;
  position: absolute;
  right: 0;
}
.admin-bar .site-header { top: 32px; }
.header-inner { align-items: center; display: flex; gap: 32px; justify-content: space-between; }
.wordmark { align-items: center; display: inline-flex; }
.brand-mark-frame {
  background: transparent;
  display: grid;
  height: 42px;
  overflow: hidden;
  place-items: center;
  width: 138px;
}
.brand-mark {
  background: url("../images/vsta-wordmark.webp") center / cover no-repeat;
  display: block;
  height: 38px;
  width: 132px;
}
.desktop-nav { align-items: center; color: #344742; display: flex; font-size: 13px; font-weight: 500; gap: 28px; }
.desktop-nav a { transition: color 180ms ease; }
.desktop-nav a:hover { color: var(--vsta-green); }
.header-contact {
  align-items: center;
  background: var(--vsta-dark);
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  isolation: isolate;
  justify-content: center;
  line-height: 1.3;
  min-height: 40px;
  overflow: hidden;
  padding: 0 18px;
  position: relative;
  transition: color 260ms ease, transform 260ms cubic-bezier(.22,1,.36,1), box-shadow 260ms ease;
}
.header-contact::after {
  background: var(--vsta-spectrum);
  content: "";
  inset: -2px;
  position: absolute;
  transform: translateX(-105%);
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  z-index: -1;
}
.header-contact:hover { box-shadow: 0 14px 32px rgba(38,42,41,.15); color: #fff !important; transform: translateY(-2px); }
.header-contact:hover::after { transform: translateX(0); }
.header-contact:active,
.header-contact:focus-visible,
.header-contact:visited { color: #fff !important; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  border: 1px solid var(--vsta-line);
  border-radius: 6px;
  color: transparent;
  display: grid;
  height: 40px;
  list-style: none;
  place-items: center;
  width: 40px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before,
.mobile-nav summary::after { background: var(--vsta-dark); content: ""; height: 1px; position: absolute; width: 18px; }
.mobile-nav summary::before { transform: translateY(-4px); }
.mobile-nav summary::after { transform: translateY(4px); }
.mobile-menu {
  background: #fff;
  border: 1px solid var(--vsta-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(38,42,41,.08);
  color: var(--vsta-dark);
  display: grid;
  gap: 6px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: 48px;
  width: 250px;
  z-index: 10;
}
.mobile-menu a { border-radius: 5px; font-size: 13px; padding: 10px 12px; }
.mobile-menu a:hover { background: var(--vsta-sub); }

.vsta-footer-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 700; }
.vsta-footer-nav a { position: relative; }
.vsta-footer-nav a::after {
  background: var(--vsta-spectrum); bottom: -7px; content: ""; height: 2px; left: 0;
  position: absolute; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; width: 100%;
}
.vsta-footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.vsta-button {
  align-items: center; background: var(--vsta-dark); border: 1px solid var(--vsta-dark); border-radius: 7px;
  color: #fff; display: inline-flex; font-weight: 700; justify-content: center; min-height: 50px;
  padding: 0 24px; position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.vsta-button:hover { box-shadow: 0 12px 28px rgba(38,42,41,.18); transform: translateY(-2px); }

.vsta-main { min-height: 55vh; }
.vsta-page-hero { padding: clamp(80px, 10vw, 140px) 0 72px; position: relative; overflow: hidden; }
.vsta-page-hero::before {
  background: radial-gradient(circle at 25% 20%, rgba(142,181,255,.2), transparent 34%), radial-gradient(circle at 80% 58%, rgba(245,165,234,.16), transparent 30%);
  content: ""; inset: 0; pointer-events: none; position: absolute;
}
.vsta-page-hero::after {
  background-image: linear-gradient(rgba(38,42,41,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(38,42,41,.055) 1px, transparent 1px);
  background-size: 72px 72px; content: ""; inset: 0; mask-image: linear-gradient(to bottom, black, transparent); pointer-events: none; position: absolute;
}
.vsta-page-hero .vsta-shell { position: relative; z-index: 1; }
.vsta-kicker { color: var(--vsta-muted); display: block; font-size: 13px; font-weight: 800; letter-spacing: .16em; margin-bottom: 24px; }
.vsta-kicker::before { background: var(--vsta-green); content: ""; display: inline-block; height: 1px; margin-right: 14px; vertical-align: middle; width: 30px; }
.vsta-page-hero h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.04em; line-height: 1.25; margin: 0; }
.vsta-page-hero p { color: var(--vsta-muted); font-size: clamp(16px, 2vw, 19px); margin: 28px 0 0; max-width: 740px; }
.vsta-gradient-text { background: var(--vsta-spectrum); background-size: 180% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: vsta-spectrum 6s linear infinite; }

.vsta-section { padding: clamp(72px, 9vw, 120px) 0; }
.vsta-section-alt { background: var(--vsta-sub); }
.vsta-section-dark { background: var(--vsta-dark); color: #fff; }
.vsta-section h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.4; margin: 0 0 32px; }
.vsta-lead { color: var(--vsta-muted); font-size: 18px; margin: 0; max-width: 760px; }
.vsta-section-dark .vsta-lead { color: rgba(255,255,255,.7); }
.vsta-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.vsta-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.vsta-card { background: #fff; border: 1px solid var(--vsta-line); border-radius: 12px; padding: 32px; }
.vsta-card h3 { font-size: 21px; margin: 0 0 14px; }
.vsta-card p { color: var(--vsta-muted); margin: 0; }
.vsta-card-accent { overflow: hidden; position: relative; }
.vsta-card-accent::before { background: var(--vsta-spectrum); content: ""; height: 4px; inset: 0 0 auto; position: absolute; }
.vsta-definition { border-top: 1px solid var(--vsta-line); margin: 0; }
.vsta-definition div { border-bottom: 1px solid var(--vsta-line); display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 22px 0; }
.vsta-definition dt { color: var(--vsta-muted); font-weight: 700; }
.vsta-definition dd { margin: 0; }
.vsta-philosophy { position: relative; }
.vsta-philosophy::after { background: var(--vsta-spectrum); border-radius: 50%; content: ""; filter: blur(80px); height: 280px; opacity: .18; position: absolute; right: 4%; top: 8%; width: 280px; }
.vsta-philosophy .vsta-shell { position: relative; z-index: 1; }
.vsta-philosophy h2 { color: #fff; font-size: clamp(42px, 7vw, 82px); line-height: 1.2; }
.vsta-business-card { align-items: center; display: grid; grid-template-columns: 1fr .75fr; gap: 48px; }
.vsta-business-card > * { min-width: 0; }
.vsta-business-logo { align-items: center; background: #fff; border: 1px solid var(--vsta-line); border-radius: 18px; display: flex; justify-content: center; min-height: 260px; padding: 40px; }
.vsta-business-logo img { max-width: 270px; width: 100%; }
.vsta-section-intro { margin-bottom: 42px; }
.vsta-card-action { margin-top: 24px !important; }
.vsta-breadcrumb { align-items: center; color: var(--vsta-muted); display: flex; font-size: 13px; gap: 10px; margin-bottom: 46px; }
.vsta-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.vsta-company-layout { align-items: stretch; display: grid; gap: 48px; grid-template-columns: 1.15fr .85fr; }
.vsta-company-layout > * { min-width: 0; }
.vsta-map { border: 1px solid var(--vsta-line); border-radius: 12px; min-height: 460px; overflow: hidden; }
.vsta-map iframe { border: 0; display: block; height: 100%; min-height: 460px; width: 100%; }
.vsta-contact-cta .vsta-button { margin-top: 26px; }

.vsta-form { display: grid; gap: 24px; max-width: 820px; }
.vsta-field { display: grid; gap: 8px; }
.vsta-field label, .vsta-field legend { font-weight: 700; }
.vsta-required { color: #c24376; font-size: 12px; margin-left: 8px; }
.vsta-optional { color: var(--vsta-muted); font-size: 12px; font-weight: 500; margin-left: 8px; }
.vsta-field-help { color: var(--vsta-muted); font-size: 13px; }
.vsta-field input, .vsta-field select, .vsta-field textarea {
  appearance: none; background: #fff; border: 1px solid #cfd4d2; border-radius: 7px; color: var(--vsta-dark);
  font: inherit; min-height: 54px; padding: 12px 15px; width: 100%;
}
.vsta-field textarea { min-height: 190px; resize: vertical; }
.vsta-field input:focus, .vsta-field select:focus, .vsta-field textarea:focus { border-color: var(--vsta-green); box-shadow: 0 0 0 4px rgba(101,214,177,.16); outline: 0; }
.vsta-check { align-items: flex-start; display: flex; gap: 10px; }
.vsta-check input { height: 20px; margin-top: 4px; width: 20px; }
.vsta-check a { text-decoration: underline; text-underline-offset: 3px; }
.vsta-honeypot { left: -9999px !important; position: absolute !important; }
.vsta-form-error { background: #fff0f2; border-left: 4px solid #c24376; margin-bottom: 28px; padding: 16px 18px; }
.vsta-form-note { color: var(--vsta-muted); font-size: 14px; }

.vsta-policy { max-width: 860px; }
.vsta-policy > p { color: var(--vsta-muted); }
.vsta-policy h2 { border-top: 1px solid var(--vsta-line); font-size: 24px; margin: 52px 0 18px; padding-top: 36px; }
.vsta-policy ul { padding-left: 1.4em; }
.vsta-policy li + li { margin-top: 10px; }
.vsta-policy a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.vsta-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.vsta-post-card { background: #fff; border: 1px solid var(--vsta-line); border-radius: 10px; overflow: hidden; }
.vsta-post-card a { display: block; height: 100%; padding: 28px; }
.vsta-post-card time { color: var(--vsta-muted); font-size: 13px; }
.vsta-post-card h2 { font-size: 20px; line-height: 1.55; margin: 12px 0; }
.vsta-post-card p { color: var(--vsta-muted); margin: 0; }
.vsta-empty { border: 1px dashed #bfc6c3; color: var(--vsta-muted); padding: 42px; text-align: center; }
.vsta-article { max-width: 820px; }
.vsta-article-header { margin-bottom: 48px; }
.vsta-article-header h1 { font-size: clamp(34px,5vw,58px); line-height: 1.35; margin: 12px 0 18px; }
.vsta-article-body { font-size: 17px; }
.vsta-article-body h2 { margin-top: 2.2em; }
.vsta-pagination { margin-top: 50px; }
.vsta-pagination .nav-links { display: flex; gap: 8px; }
.vsta-pagination a, .vsta-pagination span { border: 1px solid var(--vsta-line); display: inline-flex; min-height: 42px; min-width: 42px; align-items: center; justify-content: center; padding: 0 12px; }
.vsta-pagination .current { background: var(--vsta-dark); color: #fff; }

.vsta-footer { background: #202422; color: #fff; padding: 62px 0 34px; }
.vsta-footer-top { align-items: flex-start; display: flex; justify-content: space-between; gap: 50px; }
.vsta-footer .brand-mark { filter: grayscale(1) brightness(0) invert(1); opacity: .9; }
.vsta-footer-nav { flex-wrap: wrap; justify-content: flex-end; max-width: 680px; }
.vsta-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.58); display: flex; font-size: 12px; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; }
.vsta-footer-bottom p { margin: 0; }

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 760px) {
  .vsta-shell { width: min(100% - 36px, var(--vsta-shell)); }
  .site-header { backdrop-filter: none; background: rgba(255,255,255,.96); height: 60px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .brand-mark-frame { height: 34px; width: 112px; }
  .brand-mark { height: 32px; width: 108px; }
  .vsta-page-hero { padding: 70px 0 54px; }
  .vsta-page-hero::after { background-size: 48px 48px; }
  .vsta-grid-2, .vsta-grid-3, .vsta-post-grid, .vsta-business-card, .vsta-company-layout { grid-template-columns: 1fr; }
  .vsta-card { padding: 25px; }
  .vsta-definition div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .vsta-business-logo { min-height: 200px; min-width: 0; width: 100%; }
  .vsta-map, .vsta-map iframe { min-height: 320px; }
  .vsta-footer-top, .vsta-footer-bottom { align-items: flex-start; flex-direction: column; }
  .vsta-footer-nav { align-items: flex-start; display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
}

@media (max-width: 380px) {
  .vsta-shell { width: min(100% - 28px, var(--vsta-shell)); }
  .vsta-page-hero h1 { font-size: 37px; }
  .vsta-section h2 { font-size: 29px; }
  .vsta-footer-nav { grid-template-columns: 1fr; }
}
