:root {
  --bg: #05070f;
  --panel: rgba(12, 18, 34, .72);
  --line: rgba(61, 242, 255, .2);
  --cyan: #3df2ff;
  --violet: #9b6bff;
  --pink: #ff5fd2;
  --text: #e6f0ff;
  --muted: #93a4c6;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
  --font-display: "Orbitron", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ---------- 背景 ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 242, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 242, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 5%, transparent 72%);
  animation: gridMove 14s linear infinite;
}

@keyframes gridMove { to { background-position: 0 48px, 48px 0; } }

.scanline {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
}

main, .footer { position: relative; z-index: 1; }

/* ---------- ローディング画面 ---------- */
/* html に loading クラスが付いたときだけ表示する(JSが無効なら出ない) */
.loader { display: none; }

.loading .loader {
  --p: 0;
  position: fixed;
  inset: 0;
  z-index: 58; /* ヘッダー(50)より上、走査線(60)より下 */
  display: grid;
  place-items: center;
  /* script.js が読み込めなかった場合でも、8秒後には必ず消す */
  animation: loaderFailsafe 0s linear 8s forwards;
}

@keyframes loaderFailsafe { to { visibility: hidden; } }

/* 上下2枚の幕。読み込みが終わると上下に開く */
.loader::before,
.loader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--bg);
  transition: transform .85s cubic-bezier(.7, 0, .2, 1) .3s;
}

.loader::before { top: 0; border-bottom: 1px solid transparent; }
.loader::after { bottom: 0; }

.loaded .loader::before { transform: translateY(-101%); border-bottom-color: var(--cyan); box-shadow: 0 0 24px var(--cyan); }
.loaded .loader::after { transform: translateY(101%); }

.loader-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(280px, 72vw);
  transition: opacity .3s, transform .3s;
}

.loaded .loader-inner { opacity: 0; transform: scale(1.08); }

.loader-visual { position: relative; width: 132px; height: 132px; }
.loader-visual svg { display: block; width: 100%; height: 100%; overflow: visible; }

.loader-track { fill: none; stroke: rgba(61, 242, 255, .14); stroke-width: 1; }

/* 進み具合を示す円弧 */
.loader-arc {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: calc(339.3 * (1 - var(--p)));
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  filter: drop-shadow(0 0 6px var(--cyan));
}

/* 三日月を線でなぞってから塗る */
.loader-moon {
  fill: var(--cyan);
  fill-opacity: 0;
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 10px rgba(61, 242, 255, .8));
  animation: moonDraw 1s ease forwards .1s, moonFill .6s ease forwards 1s;
}

@keyframes moonDraw { to { stroke-dashoffset: 0; } }
@keyframes moonFill { to { fill-opacity: 1; } }

/* 円周を回る衛星 */
.loader-sat { position: absolute; inset: 6px; animation: spin 2.4s linear infinite; }

.loader-sat::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.loader-name {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .34em;
  text-indent: .34em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: loaderName .8s ease both .3s;
}

@keyframes loaderName { from { opacity: 0; letter-spacing: .7em; } }

.loader-bar { width: 100%; height: 2px; margin-top: 20px; background: rgba(61, 242, 255, .14); overflow: hidden; }

.loader-bar span {
  display: block;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 10px var(--cyan);
  transform: scaleX(var(--p));
  transform-origin: left;
}

.loader-status {
  display: flex;
  width: 100%;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--muted);
}

.loader-status span { margin-right: auto; color: var(--cyan); }
.loader-status b { font-weight: 400; color: var(--text); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 7, 15, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .08em;
}

.logo-mark {
  width: 26px;
  height: 26px;
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(61, 242, 255, .8));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: .88rem;
}

.nav a { position: relative; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav .nav-cta {
  padding: 8px 18px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: inset 0 0 12px rgba(61, 242, 255, .2);
  transition: background .2s, color .2s;
}

.nav .nav-cta:hover { background: var(--cyan); color: var(--bg); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  transition: transform .25s, opacity .25s;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px clamp(16px, 4vw, 40px) 90px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 24px;
}

.hero-label {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: .14em;
  font-size: .9rem;
  min-height: 1.85em;
}

.prompt { color: var(--pink); }

.caret {
  display: inline-block;
  width: .6em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 11vw, 7rem);
  line-height: 1.05;
  letter-spacing: .02em;
  margin: 6px 0 18px;
}

.glitch {
  position: relative;
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(61, 242, 255, .35));
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 100% 0);
}

.glitch::before { -webkit-text-fill-color: var(--cyan); animation: glitchA 5s steps(1) infinite; }
.glitch::after { -webkit-text-fill-color: var(--pink); animation: glitchB 5s steps(1) infinite; }

@keyframes glitchA {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  91% { clip-path: inset(8% 0 62% 0); transform: translate(-5px, 0); }
  93% { clip-path: inset(58% 0 18% 0); transform: translate(5px, 0); }
  95% { clip-path: inset(32% 0 44% 0); transform: translate(-3px, 0); }
  97% { clip-path: inset(74% 0 6% 0); transform: translate(3px, 0); }
}

@keyframes glitchB {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  91% { clip-path: inset(48% 0 30% 0); transform: translate(5px, 0); }
  93% { clip-path: inset(12% 0 70% 0); transform: translate(-5px, 0); }
  95% { clip-path: inset(66% 0 12% 0); transform: translate(4px, 0); }
  97% { clip-path: inset(22% 0 58% 0); transform: translate(-3px, 0); }
}

.hero-copy {
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
}

.hero-copy em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(61, 242, 255, .7);
}

.hero-sub { margin-top: 18px; color: var(--muted); font-size: .98rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--cyan);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .5s;
}

.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--grad); color: #04060d; border-color: transparent; }
.btn-primary:hover { box-shadow: 0 0 28px rgba(61, 242, 255, .5); }
.btn-ghost { background: rgba(61, 242, 255, .06); color: var(--cyan); }
.btn-ghost:hover { background: rgba(61, 242, 255, .16); }

/* 月のビジュアル */
.hero-visual { position: relative; }

.moon { width: 100%; max-width: 480px; display: block; margin: 0 auto; overflow: visible; animation: float 7s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-14px); } }

.moon-halo { animation: pulse 5s ease-in-out infinite; transform-origin: 200px 200px; }

@keyframes pulse { 50% { transform: scale(1.07); opacity: .75; } }

.wire ellipse, .wire line { fill: none; stroke: rgba(61, 242, 255, .32); stroke-width: 1; }
.wire-fill { fill: rgba(10, 18, 40, .85); stroke: none; }
.wire-spin { transform-origin: 200px 200px; animation: wireSpin 12s ease-in-out infinite alternate; }

@keyframes wireSpin { from { transform: scaleX(1); } to { transform: scaleX(.25); } }

.moon-edge { fill: none; stroke: rgba(61, 242, 255, .6); stroke-width: 1.5; }
.crescent { filter: drop-shadow(0 0 16px rgba(61, 242, 255, .7)); }

.ring { transform-origin: 200px 200px; transform: rotate(-22deg); }
.ring ellipse { fill: none; stroke: rgba(155, 107, 255, .55); stroke-width: 1.2; }
.ring-back ellipse { stroke: rgba(155, 107, 255, .22); }
.ring-dash { stroke-dasharray: 3 9; stroke: rgba(61, 242, 255, .8) !important; animation: dash 20s linear infinite; }

@keyframes dash { to { stroke-dashoffset: -240; } }

.ring-outer { transform: none; animation: spin 40s linear infinite; }
.ring-outer ellipse { stroke: rgba(61, 242, 255, .16); stroke-dasharray: 1 14; stroke-width: 2; }

@keyframes spin { to { transform: rotate(360deg); } }

.sat { fill: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); }
.sat-b { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }

.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  padding: 8px 12px;
  border-left: 2px solid var(--cyan);
  background: rgba(8, 14, 28, .7);
  color: var(--muted);
}

.hud b { display: block; color: var(--cyan); font-weight: 400; font-size: .86rem; }
.hud-a { top: 10%; left: 0; animation: hud 4s ease-in-out infinite; }
.hud-b { bottom: 12%; right: 0; border-left-color: var(--pink); animation: hud 4s ease-in-out -2s infinite; }
.hud-b b { color: var(--pink); }

@keyframes hud { 50% { transform: translateY(-6px); opacity: .8; } }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--muted);
}

.scroll-hint span {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- セクション共通 ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 40px);
}

.section-head { margin-bottom: 44px; }

.section-label {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: .22em;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: "";
  flex: 0 0 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
}

.section-lead { color: var(--muted); margin-top: 14px; }

/* ---------- カード ---------- */
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: block;
  padding: 30px 26px;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(61, 242, 255, .12), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan);
  transition: width .25s, height .25s;
}

.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.card:hover { border-color: rgba(61, 242, 255, .55); box-shadow: 0 0 34px rgba(61, 242, 255, .12); }
.card:hover::before, .card:hover::after { width: 30px; height: 30px; }

.card h3 { font-size: 1.2rem; line-height: 1.5; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

.card-no {
  font-family: var(--font-mono);
  color: var(--cyan) !important;
  letter-spacing: .16em;
  font-size: .8rem !important;
  margin-bottom: 8px;
}

.card.accent::before, .card.accent::after { border-color: var(--pink); }
.card.accent .card-no { color: var(--pink) !important; }
.card.accent:hover { border-color: rgba(255, 95, 210, .55); box-shadow: 0 0 34px rgba(255, 95, 210, .12); }

.note {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 12px;
  font-size: .82rem !important;
  color: var(--cyan) !important;
  border: 1px solid var(--line);
}

.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }

/* 2本柱 */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.pillar { padding: 40px 32px; }
.pillar:hover { transform: translateY(-6px); }

.pillar-tag {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61, 242, 255, .3);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(61, 242, 255, .6));
  margin-bottom: 18px;
}

.pillar h3 { font-size: 1.55rem; margin-bottom: 2px; }

.pillar-sub {
  color: var(--pink) !important;
  font-size: .88rem !important;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--cyan);
  font-size: .9rem;
  letter-spacing: .08em;
}

.more i { width: 34px; height: 1px; background: var(--cyan); position: relative; transition: width .25s; }
.more i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); transform: rotate(45deg); }
.pillar:hover .more i { width: 56px; }

/* 集客支援の区切り */
.plus { display: flex; align-items: center; gap: 18px; margin: 40px 0 26px; color: var(--pink); font-weight: 700; letter-spacing: .06em; }
.plus::before, .plus::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 95, 210, .6)); }
.plus::after { transform: scaleX(-1); }

/* Web制作の流れ */
.pipeline {
  display: flex;
  margin-top: 46px;
  font-family: var(--font-mono);
  font-size: .92rem;
  letter-spacing: .08em;
}

.pipeline li {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 16px 6px;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--panel);
  overflow: hidden;
}

.pipeline li:last-child { border-right: 1px solid var(--line); color: var(--pink); }

.pipeline li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  animation: run 5s linear infinite;
}

.pipeline li:nth-child(2)::after { animation-delay: 1s; }
.pipeline li:nth-child(3)::after { animation-delay: 2s; }
.pipeline li:nth-child(4)::after { animation-delay: 3s; }
.pipeline li:nth-child(5)::after { animation-delay: 4s; }

@keyframes run { 0% { transform: translateX(-100%); } 20%, 100% { transform: translateX(100%); } }

/* 業務改善のタイムライン */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 78px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 12px rgba(61, 242, 255, .6);
}

.timeline li { position: relative; }

.step-no {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .06em;
}

.timeline .step-no {
  position: absolute;
  left: -78px;
  top: 18px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(61, 242, 255, .45), inset 0 0 12px rgba(61, 242, 255, .25);
}

/* 制作サンプル */
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.sample { padding: 14px 14px 28px; }
.sample:hover { transform: translateY(-6px); }

.sample-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: #0b1222;
}

.sample-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sample-body { padding: 0 12px; }
.sample h3 a::after, .sample-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.section .sample-title { font-size: 1.2rem; line-height: 1.5; margin: 0 0 10px; }
.sample:hover .more i { width: 56px; }

.sample-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.sample-tags li {
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--cyan);
  border: 1px solid var(--line);
}

.samples-note { margin-top: 26px; color: var(--muted); font-size: .86rem; }
.samples-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* サンプル一覧ページ: 種類ごとのまとまり */
.samples-nav { display: flex; flex-wrap: wrap; gap: 12px; }

.samples-nav a {
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--cyan);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}

.samples-nav a:hover { border-color: var(--cyan); background: rgba(61, 242, 255, .08); }
.samples-nav span { margin-left: 6px; color: var(--muted); }

.samples-group { margin-top: clamp(48px, 7vw, 80px); scroll-margin-top: 90px; }
.samples-group-head { margin-bottom: 28px; padding-left: 18px; border-left: 2px solid var(--cyan); }
.section .samples-group-head h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.samples-group-head p { max-width: 46em; color: var(--muted); font-size: .92rem; }

/* サブページの見出し */
.page-head { padding-top: clamp(120px, 16vw, 170px); padding-bottom: 0; }
.page-head .section-head { margin-bottom: 0; }

.page-head h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
}

.nav a[aria-current="page"] { color: var(--cyan); }

/* ご依頼の流れ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps .card { padding: 24px 18px; }
.steps .step-no { display: block; font-size: 1.7rem; margin-bottom: 8px; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .88rem; }

/* 運営者情報 */
.about dl > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.about dl > div:last-child { border-bottom: 0; }
.about dt { font-family: var(--font-mono); color: var(--cyan); letter-spacing: .08em; }
.about small { color: var(--muted); font-size: .86rem; }

/* フォーム */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; }

.req {
  margin-left: 6px;
  padding: 1px 8px;
  font-size: .7rem;
  color: var(--pink);
  border: 1px solid var(--pink);
  vertical-align: 1px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(5, 9, 20, .8);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}

.field select option { background: #0b1222; }
.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 242, 255, .16), 0 0 18px rgba(61, 242, 255, .2);
}

.field .invalid { border-color: var(--pink); }

/* 自動送信対策の欄。画面の外に出して人には見せない */
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .form-note { display: block; font-size: .86rem; }
.form-note a, .policy a, .footer p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-foot .btn { min-width: 200px; }
.form-status { font-size: .92rem; min-height: 1.85em; }
.form-status.ok { color: var(--cyan); }
.form-status.ng { color: var(--pink); }

/* フッター */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .82rem;
}

.footer-sep { margin: 0 12px; opacity: .5; }

/* プライバシーポリシー */
.policy { padding: clamp(24px, 4vw, 44px); }
.section .policy h2 { font-size: 1.15rem; line-height: 1.5; margin: 34px 0 10px; }
.section .policy h2:first-child { margin-top: 0; }
.policy p + p { margin-top: 10px; }
.policy ul { margin: 10px 0 0 1.3em; color: var(--muted); font-size: .96rem; list-style: disc; }
.policy dl { margin-top: 6px; }
.policy dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.policy dt { font-family: var(--font-mono); color: var(--cyan); letter-spacing: .08em; }
.policy small { color: var(--muted); font-size: .86rem; }
.policy dl + p { margin-top: 14px; }
.policy .policy-date { margin-top: 34px; text-align: right; font-family: var(--font-mono); font-size: .86rem; }

/* ---------- スクロール表示 ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: rgba(5, 7, 15, .96);
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px dashed var(--line); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--cyan); }
}

@media (max-width: 960px) {
  .cards.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .samples { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 0; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto; width: 100%; }
  .hud { display: none; }
  .hero-sub br, .section-lead br { display: none; }
  .scroll-hint { display: none; }

  .pillars, .cards.two, .form { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline li { border-right: 1px solid var(--line); border-bottom: 0; }
  .pipeline li:last-child { border-bottom: 1px solid var(--line); }
  .about dl > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .timeline { padding-left: 62px; }
  .timeline::before { left: 21px; }
  .timeline .step-no { left: -62px; width: 44px; height: 44px; font-size: .85rem; }
  .hero-actions .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .loader-moon { fill-opacity: 1; stroke-dashoffset: 0; }
}
