:root {
  --ink: #0b1324;
  --ink-2: #16223b;
  --text: #1d2433;
  --muted: #5d677a;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --accent: #2f6bff;
  --accent-2: #12c2c2;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(11, 19, 36, 0.35);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--header-h);
  background: rgba(11, 19, 36, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { background: rgba(11, 19, 36, 0.85); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.5); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad); font-size: 15px;
}
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-header nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-header nav a:hover { color: #fff; }
.site-header .nav-cta { padding: 7px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
.site-header .nav-cta:hover { color: var(--ink); opacity: 0.9; }
@media (max-width: 760px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 13px; }
  .site-header .nav-cta { padding: 6px 12px; font-size: 13px; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  min-height: min(92vh, 820px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 19, 36, 0.35), rgba(11, 19, 36, 0.88)),
    url(img/hero.jpg) center / cover no-repeat,
    radial-gradient(60% 70% at 85% 15%, rgba(47, 107, 255, 0.55), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(18, 194, 194, 0.35), transparent 70%),
    var(--ink);
}
.hero-bg::after {
  /* 細いグリッドで「インフラ」らしさを出す */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-inner { position: relative; }
.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .eyebrow { background: none; color: var(--accent-2); }
h1 {
  margin: 0 0 20px; font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1.2; letter-spacing: 0.01em; font-weight: 800;
}
.lead { margin: 0; max-width: 34em; font-size: clamp(1rem, 2.2vw, 1.2rem); color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.notice {
  margin: 36px 0 0; display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08);
  font-size: 13px; color: rgba(255, 255, 255, 0.85);
}

.button {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.7); transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(47, 107, 255, 0.8); }
.button-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: none; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

/* ---------- セクション共通 ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.3; color: var(--ink); }
h3 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
@media (max-width: 760px) { .section { padding: 80px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- 事業 ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px;
}
.feature-reverse .feature-photo { order: 2; }
.feature-photo, .bar-photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); background-color: var(--ink-2);
}
.photo-it {
  background:
    url(img/it.jpg) center / cover no-repeat,
    radial-gradient(80% 80% at 20% 20%, rgba(47, 107, 255, 0.9), transparent 70%),
    radial-gradient(70% 70% at 90% 90%, rgba(18, 194, 194, 0.8), transparent 70%),
    var(--ink-2);
}
.photo-dev {
  background:
    url(img/dev.jpg) center / cover no-repeat,
    radial-gradient(80% 80% at 80% 20%, rgba(124, 92, 255, 0.85), transparent 70%),
    radial-gradient(70% 70% at 10% 90%, rgba(47, 107, 255, 0.8), transparent 70%),
    var(--ink-2);
}
.feature-no { margin: 0 0 4px; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }
.feature-body > p { margin: 0 0 12px; }
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.points li {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.point-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.product-name { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin 0.2s; }
.link-arrow:hover::after { margin-left: 4px; }

.bar {
  display: grid; grid-template-columns: 300px 1fr 1.2fr; gap: 32px; align-items: center;
  padding: 28px; border-radius: var(--radius); background: var(--bg-alt);
}
.bar .bar-photo { aspect-ratio: 1; box-shadow: none; }
.bar h3 { font-size: 1.25rem; }
.bar-body p { margin: 0 0 8px; color: var(--muted); }
.map { width: 100%; height: 220px; border: 0; border-radius: 12px; display: block; background: #e8ebf1; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .feature-reverse .feature-photo { order: 0; }
  .bar { grid-template-columns: 1fr; padding: 20px; }
  .bar .bar-photo { aspect-ratio: 4 / 3; }
}

/* ---------- 会社概要 ---------- */
.facts { margin: 0; background: #fff; border-radius: var(--radius); padding: 8px 32px; box-shadow: 0 1px 0 var(--line); }
.facts > div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts rt { font-size: 10px; color: var(--muted); }
@media (max-width: 560px) {
  .facts { padding: 4px 20px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
}

/* ---------- 採用 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }
.card p:last-child { margin: 0; color: var(--muted); }
.card-label {
  display: inline-block; margin: 0 0 12px; padding: 2px 12px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
}
.recruit-to { margin-top: 24px; font-weight: 600; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* ---------- お問い合わせ ---------- */
.contact {
  position: relative; overflow: hidden; padding: 112px 0; text-align: center; color: #fff;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(47, 107, 255, 0.45), transparent 70%),
    radial-gradient(50% 70% at 90% 100%, rgba(18, 194, 194, 0.35), transparent 70%),
    var(--ink);
}
.contact .eyebrow { background: none; color: var(--accent-2); }
.contact h2 { color: #fff; margin-bottom: 16px; }
.contact p { color: rgba(255, 255, 255, 0.85); }
.contact-mail { margin-top: 28px; font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-mail a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--accent-2); }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.55); font-size: 13px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer p { margin: 0; }

/* ---------- 表示アニメーション(JS が有効なときだけ) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* 未確定項目の印。本番ビルドでは出ない(残っていればビルドが失敗する)。 */
.todo { background: #ffe3e3; color: #a30000; padding: 1px 6px; border-radius: 4px; font-size: 0.9em; font-weight: 600; }
.map-link { display: inline-block; margin-top: 8px; font-size: 14px; }

/* ---------- お問い合わせフォーム ---------- */
.contact { text-align: left; }
.contact-inner { max-width: 760px; }
.contact-head { text-align: center; margin-bottom: 40px; }
.form {
  padding: 36px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #fff; }
.req { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 16px;
  color: #fff; background: rgba(11, 19, 36, 0.6); border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--text); background: #fff; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(18, 194, 194, 0.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 8px 0 16px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.privacy summary { cursor: pointer; color: #fff; }
.privacy p { margin: 8px 0 0; }
.form .agree { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 20px; }
.agree input { width: 18px; height: 18px; accent-color: var(--accent); }
.cf-turnstile { margin-bottom: 20px; min-height: 65px; }
.form .button { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.form .button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 16px 0 0; min-height: 1.5em; text-align: center; color: var(--accent-2); font-weight: 600; }
.form-status.is-error { color: #ff9b9b; }
@media (max-width: 560px) { .form { padding: 22px; } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- バーの写真スライド ---------- */
.slideshow { position: relative; overflow: hidden; background: #1e1410; }
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 6s ease;
}
.slideshow img.is-active { opacity: 1; transform: scale(1); }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.slide-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.5); transition: width 0.3s, background 0.3s;
}
.slide-dots button[aria-current="true"] { width: 20px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .slideshow img { transition: none; transform: none; }
}
.name-svg { display: inline-block; vertical-align: -0.18em; }

/* ---------- 事業の詳細 ---------- */
.feature + .points-grid { margin-top: -48px; }
.points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.points-grid li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.flow { margin-bottom: 96px; padding: 28px; border-radius: var(--radius); background: var(--bg-alt); }
.flow-title { margin: 0 0 16px; font-weight: 700; color: var(--ink); }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: none; }
.flow li { position: relative; padding: 16px; border-radius: 12px; background: #fff; font-size: 14px; color: var(--muted); }
.flow li span { display: block; font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.flow li strong { display: block; margin: 2px 0 6px; font-size: 15px; color: var(--ink); }
.feature-body .points li strong { color: var(--ink); }
@media (max-width: 860px) {
  .feature + .points-grid { margin-top: -40px; }
  .flow { margin-bottom: 72px; padding: 20px; }
  .flow ol { grid-template-columns: 1fr; }
  .points-grid { grid-template-columns: 1fr; }
}
