/* ---- craftclay K.K. — Dark‑only corporate site (Responsive, standalone Starlight) ---- */
:root {
  --bg: #0b0f17;
  --bg-2: #0f1724;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e9ef;
  --muted: #a0aec0;
  --accent-1: #8b5cf6;
  --accent-2: #22d3ee;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  --wrap-pad: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(
      1200px 800px at 20% -10%,
      rgba(139, 92, 246, 0.12),
      transparent 55%
    ),
    radial-gradient(
      1000px 700px at 90% 10%,
      rgba(34, 211, 238, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px var(--wrap-pad);
  backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(11, 15, 23, 0.8),
    rgba(11, 15, 23, 0.4)
  );
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.brand-text {
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  justify-self: end;
}
.menu-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
}
.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: center;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--text);
  background: var(--surface);
  outline: none;
}
.pill {
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.12),
    rgba(34, 211, 238, 0.12)
  );
  border-radius: 999px;
  color: var(--text) !important;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.lang-btn {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: transparent;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.18),
    rgba(34, 211, 238, 0.18)
  );
}
.sep {
  color: var(--muted);
}

.hero {
  padding: clamp(46px, 10vw, 120px) 0;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
.display {
  font-size: clamp(26px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin: 0 0 10px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(15px, 2.6vw, 20px);
  color: var(--text);
  opacity: 0.9;
  margin: 0 0 18px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  --pad: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.15px;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: transparent;
  background: var(--surface);
}
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.35),
    rgba(34, 211, 238, 0.35)
  );
  border-color: transparent;
}
.btn.ghost {
  background: transparent;
}

.hero-marks {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 10px 0 0;
  margin: 16px 0 0;
  flex-wrap: wrap;
}
.hero-marks li {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.section {
  padding: clamp(44px, 8vw, 96px) 0;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

.panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.rep-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 10px;
}
.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
}
.rep-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rep-name {
  font-weight: 600;
}
.rep-role {
  color: var(--muted);
  font-size: 0.95rem;
}
.rep-bio {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0.2rem 0 0.6rem;
}
.card p {
  margin: 0;
  color: var(--text);
}

.work-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.12),
    rgba(34, 211, 238, 0.12)
  );
}
.work-meta {
  display: flex;
  gap: 8px;
  align-items: start;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
}

.feature {
  position: relative;
}
.feature-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.feature-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}
.bullets {
  margin: 0.6rem 0 1rem 1.2rem;
}
.bullets li {
  margin: 0.4rem 0;
}
.tiny {
  font-size: 0.85rem;
}
.muted {
  color: var(--muted);
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.gform-embed {
  margin-top: 14px;
  width: 100%;
}
.gform-embed iframe {
  width: 100%;
  height: clamp(560px, 78vh, 980px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.3);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.toplink {
  color: var(--muted);
  text-decoration: none;
}
.toplink:hover {
  color: var(--text);
}

/* Mobile navigation (<= 920px) */
@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }
  .site-nav {
    position: fixed;
    z-index: 30;
    top: 64px;
    right: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.12),
      rgba(34, 211, 238, 0.12)
    );
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }
  .site-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .lang-switch {
    justify-self: end;
  }
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.menu-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Feature & work responsiveness */
@media (max-width: 840px) {
  .feature-card {
    grid-template-columns: 1fr;
  }
  .work-card {
    flex-direction: column;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
  }
  .btn {
    transition: none;
  }
}
