/* =========================================================
   Uzulla Racing Support — style.css
   ========================================================= */

:root {
  --bg: #0d0f12;
  --bg-alt: #13161b;
  --bg-card: #1a1e25;
  --line: #2a303a;
  --text: #e8eaed;
  --text-muted: #9aa3af;
  /* main: neon green / sub accent: yellow */
  --accent: #45ff00;
  --accent-dark: #36cc00;
  --accent-soft: rgba(69, 255, 0, 0.12);
  --accent-rgb: 69, 255, 0;
  --yellow: #ffd60a;
  --yellow-soft: rgba(255, 214, 10, 0.14);
  --on-accent: #0b0f0a;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --container: 1120px;
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  clip-path: none;
}
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  height: 26px;
  width: auto;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.brand .brand-text {
  font-size: 17px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 26px;
}
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 14px;
}
@media (max-width: 400px) {
  .brand .brand-text { display: none; }
}
.brand-accent { color: var(--accent); margin: 0 4px; }

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.global-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text-muted);
  transition: color .15s;
}
.global-nav a:hover,
.global-nav a.is-active { color: var(--text); }
.global-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.global-nav a:hover::after,
.global-nav a.is-active::after { transform: scaleX(1); }
.nav-cta {
  padding: 8px 18px !important;
  background: var(--accent);
  color: var(--on-accent) !important;
  border-radius: 3px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero-stripe {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: linear-gradient(115deg, transparent 0 45%, var(--accent) 45% 48%, transparent 48% 52%, var(--yellow) 52% 53.2%, transparent 53.2%);
  transform: skewX(-12deg);
  opacity: 0.9;
}
.hero-inner { position: relative; max-width: 820px; margin-left: calc((100% - var(--container)) / 2); }
@media (max-width: 1160px) { .hero-inner { margin-left: auto; } }

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--yellow);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-title .accent {
  color: var(--accent);
  background: linear-gradient(transparent 60%, var(--accent-soft) 60%);
}
.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--yellow);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}
.section-lead {
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 15px; flex: 1; }
.card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.card-link:hover { text-decoration: underline; }

/* ---------- Rental ---------- */
.gear-list {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
.gear {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gear-visual {
  position: relative;
  background:
    radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.18), transparent 60%),
    linear-gradient(160deg, #22272f, #15181d);
  display: grid;
  place-items: center;
  padding: 36px;
  border-right: 1px solid var(--line);
}
.gear-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 3px 8px;
}
.gear-illust {
  width: 100%;
  max-width: 200px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.gear-body { padding: 32px 36px; }
.gear-body h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.gear-sub {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin: 6px 0 16px;
}
.gear-body > p:not(.gear-sub) {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}
.gear-body > p.gear-note {
  margin: 16px 0 0;
  font-size: 12px;
}
.text-link { color: var(--text); border-bottom: 1px solid var(--accent); }
.gear-spec {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  font-size: 14px;
}
.gear-spec li {
  position: relative;
  padding-left: 18px;
}
.gear-spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  transform: skewX(-18deg);
}

.note {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ---------- Development ---------- */
.dev-layout {
  margin-top: 56px;
}
.dev-feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
}
.dev-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--yellow);
  margin-bottom: 8px;
}
.dev-feature h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}
.dev-feature > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.product-media { margin: 0; min-width: 0; }
.product-body { min-width: 0; }
.product-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.product-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.signal-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  margin: 0 auto;
}
.signal-node {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-weight: 700;
  text-align: center;
}
.signal-node small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.signal-node-main { border-color: var(--accent); }
.signal-edge {
  position: relative;
  width: 100%;
  padding: 14px 0 20px calc(50% + 16px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
}
.signal-edge::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 8px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.signal-edge::after {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  bottom: 8px;
  width: 8px;
  height: 8px;
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.product-media figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.product-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: lighten; /* ロゴ画像の黒背景をカード色になじませる */
}
.product-sub {
  font-weight: 700;
  margin-bottom: 12px;
}
.product-body > p:not([class]) {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.product-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 13px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dev-areas-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.area-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.area-list strong { font-weight: 700; }
.area-list span { color: var(--text-muted); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    var(--bg-alt);
}
.contact-note { font-size: 14px; color: var(--text-muted); }
.contact-note a { color: var(--text); border-bottom: 1px solid var(--line); }
.contact-note a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, border-color .2s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
  .gear { grid-template-columns: 1fr; }
  .gear-visual { border-right: 0; border-bottom: 1px solid var(--line); padding: 48px 36px; }
  .product { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 72px 0 64px; min-height: auto; }
  .hero-stripe { display: none; }

  .nav-toggle { display: flex; }
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .global-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .global-nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .global-nav a::after { display: none; }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    border: 0;
  }

  .gear-body { padding: 24px 20px; }
  .gear-spec { grid-template-columns: 1fr; }
  .dev-feature { padding: 28px 22px; }
  .area-list li { grid-template-columns: 1fr; gap: 2px; }
}
