/* ==================================================================
   REKTO — Shared stylesheet
   Palette
     #FFFFFF base / #FAFAFA section / #EEF2FF subtle indigo wash
     #4F46E5 accent / #4338CA accent-hover
     #111111 heading / #4B5563 body / #E5E7EB border
   Type: Noto Sans JP (ja) + Inter (en)
   ================================================================== */

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

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #fafafa;
  --c-wash: #eef2ff;
  --c-ink: #111111;
  --c-body: #4b5563;
  --c-mute: #6b7280;
  --c-line: #e5e7eb;
  --c-accent: #4f46e5;
  --c-accent-hover: #4338ca;
  --c-success: #047857;
  --c-error: #b91c1c;

  --shadow-soft: 0 2px 8px rgba(79, 70, 229, 0.06);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Inter", "Helvetica Neue", Helvetica, Arial,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-jp);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 15px;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }

::selection { background: var(--c-wash); color: var(--c-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--soft { background: var(--c-bg-soft); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--c-accent);
}

.section-title {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.4;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.section-lead {
  color: var(--c-body);
  font-size: 15px;
  max-width: 620px;
  margin: 0 0 56px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.header.is-scrolled { border-bottom-color: var(--c-line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
}
.logo:hover { color: var(--c-ink); }
.logo__mark {
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  border-radius: 2px;
  display: inline-block;
}
.logo__placeholder {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--c-mute);
  letter-spacing: 0.08em;
  margin-left: 4px;
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--r-md);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav__link:hover { color: var(--c-accent); background: var(--c-wash); }
.nav__link[aria-current="page"] {
  color: var(--c-accent);
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1.5px;
  background: var(--c-accent);
  border-radius: 1px;
}

.nav__cta {
  margin-left: 6px;
  padding: 10px 18px;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav__cta:hover { background: var(--c-accent-hover); color: #fff; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--c-ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform 0.25s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
  background: var(--c-bg);
}
.btn--block { width: 100%; }
.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.linkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}
.linkout svg { transition: transform 0.2s ease; }
.linkout:hover svg { transform: translateX(3px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(120px, 14vw, 180px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17,17,17,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 64px 64px; }
}

.hero__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.hero__net__lines line {
  stroke: #4f46e5;
  stroke-width: 0.6;
  opacity: 0.16;
}
.hero__net__nodes circle {
  fill: #4f46e5;
  opacity: 0.7;
}
.hero__net__nodes circle.is-blink {
  animation: nodeBlink 6s ease-in-out infinite;
}
@keyframes nodeBlink {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.95; }
}

.hero__net__pulse {
  fill: none;
  stroke: #4f46e5;
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  animation: nodePulse 6s ease-out infinite;
}
@keyframes nodePulse {
  0%   { transform: scale(0.4); opacity: 0.0; }
  10%  { opacity: 0.7; }
  100% { transform: scale(8);   opacity: 0;   }
}

.hero__net__rover {
  fill: #4f46e5;
  filter: drop-shadow(0 0 4px rgba(79, 70, 229, 0.55));
}

.hero__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 48%,
    rgba(79, 70, 229, 0.07) 49.5%,
    rgba(79, 70, 229, 0.10) 50%,
    rgba(79, 70, 229, 0.07) 50.5%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  background-position: 0 -110%;
  animation: scanDown 14s linear infinite;
  mix-blend-mode: multiply;
}
@keyframes scanDown {
  0%   { background-position: 0 -110%; }
  100% { background-position: 0 110%; }
}

.hero__shape {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  opacity: 0.55;
  border-radius: 2px;
  animation: shapeDrift 22s ease-in-out infinite;
}
.hero__shape--a { top: 20%; right: 12%; }
.hero__shape--b { bottom: 30%; left: 8%; width: 6px; height: 6px; opacity: 0.38; animation-duration: 30s; animation-delay: -7s; }
.hero__shape--c { top: 38%; left: 22%; width: 4px; height: 4px; opacity: 0.7; animation-duration: 26s; animation-delay: -14s; }
@keyframes shapeDrift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(18px, -10px); }
  50%      { transform: translate(-6px, 14px); }
  75%      { transform: translate(-14px, -6px); }
}

.hero__inner { position: relative; z-index: 1; max-width: 880px; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-body);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  background: #fff;
}
.hero__kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(79, 70, 229, 0.04); }
}

.hero__title {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.32;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero__title .accent { color: var(--c-accent); }

.hero__sub {
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-body);
  max-width: 640px;
  margin: 0 0 44px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
}
.hero__meta__item {
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.hero__meta__num {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-mute);
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}
.hero__meta__label {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--c-ink);
  font-weight: 500;
  margin: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-mute);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  z-index: 1;
}
.scroll-cue__line {
  width: 1px;
  height: 36px;
  background: var(--c-line);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--c-accent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(120px, 14vw, 160px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.page-hero .hero__net {
  /* Network slice fades into the bottom edge so it sits under the title */
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  opacity: 0.7;
}
.page-hero .hero__grid {
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-mute);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.crumb a { color: var(--c-mute); }
.crumb a:hover { color: var(--c-accent); }
.crumb__sep { opacity: 0.6; }
.crumb__current { color: var(--c-accent); }

.page-hero__title {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.35;
  margin: 0 0 18px;
}
.page-hero__lead {
  color: var(--c-body);
  font-size: 15px;
  line-height: 1.9;
  max-width: 720px;
  margin: 0;
}

/* ---------- Summary cards (home) ---------- */
.summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.summary-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}
.summary-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  color: inherit;
}
.summary-card__index {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-mute);
}
.summary-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: var(--c-ink);
}
.summary-card__title {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}
.summary-card__lead {
  color: var(--c-body);
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0 0 24px;
}
.summary-card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.summary-card__tags li {
  font-size: 12px;
  color: var(--c-body);
  padding: 4px 10px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
}
.summary-card__foot { margin-top: auto; }

/* ---------- Service detail (service.html) ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--c-line);
}
.svc-row:first-of-type { border-top: none; padding-top: 0; }
.svc-row__head .svc-row__tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.svc-row__head .svc-row__title {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.svc-row__head .svc-row__lead {
  color: var(--c-body);
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 20px;
}
.svc-row__icon {
  width: 56px;
  height: 56px;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 24px;
}

.svc-row__body .svc-row__sub {
  font-family: var(--font-jp);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.svc-list li {
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-body);
  position: relative;
  line-height: 1.6;
}
.svc-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--c-accent);
}

.svc-note {
  padding: 16px 18px;
  background: var(--c-wash);
  color: var(--c-ink);
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0 0 24px;
}
.svc-target {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin: 0 0 28px;
  font-size: 13.5px;
}
.svc-target dt {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-mute);
  margin: 0;
}
.svc-target dd {
  margin: 0;
  color: var(--c-ink);
  line-height: 1.7;
}

.svc-row__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Price (price.html) ---------- */
.price__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.price-col {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-col__head {
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}
.price-col__tag {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.18em;
  margin: 0 0 6px;
  font-weight: 600;
}
.price-col__title {
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.plan {
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
}
.plan:last-of-type { border-bottom: none; }
.plan__name {
  font-size: 13px;
  color: var(--c-mute);
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.plan__price {
  color: var(--c-ink);
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.plan__price .amount {
  font-family: var(--font-en);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.plan__price .unit {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--c-body);
  font-weight: 500;
}
.plan__price .from {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--c-mute);
  font-weight: 500;
}
.plan__price.is-text .amount {
  font-family: var(--font-jp);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.plan__tax {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--c-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.plan__desc {
  margin: 0;
  color: var(--c-body);
  font-size: 13.5px;
  line-height: 1.75;
}

.price-col__foot {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}

.price__notes {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--c-wash);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--c-ink);
  line-height: 1.8;
}
.price__notes strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Contact (contact.html) ---------- */
.contact__wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact__intro p {
  color: var(--c-body);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0 0 24px;
}
.contact__meta {
  margin-top: 32px;
  border-top: 1px solid var(--c-line);
  padding-top: 20px;
  display: grid;
  gap: 16px;
}
.contact__meta dt {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-mute);
  margin: 0 0 4px;
}
.contact__meta dd {
  margin: 0;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.6;
}

.form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid;
  gap: 20px;
}
.form__row { display: grid; gap: 8px; }
.form__label {
  font-size: 13px;
  color: var(--c-ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form__req {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--c-wash);
  color: var(--c-accent);
  font-weight: 600;
}
.form__opt {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f3f4f6;
  color: var(--c-mute);
  font-weight: 500;
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23111111' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form__error {
  font-size: 12px;
  color: var(--c-error);
  min-height: 16px;
  margin: 0;
}
.form__submit { margin-top: 8px; }
.form__direct {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--c-mute);
  text-align: center;
}
.form__direct a { font-weight: 600; }
.form__status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.6;
}
.form__status.is-visible { display: block; }
.form__status.is-success {
  background: #ecfdf5;
  color: var(--c-success);
  border: 1px solid #a7f3d0;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 40px 0 56px;
  background: #fff;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 13px;
  color: var(--c-body);
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.footer__nav a:hover { color: var(--c-accent); background: var(--c-wash); }
.footer__brand {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-mute);
  letter-spacing: 0.04em;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.18);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.modal__sub {
  font-size: 13.5px;
  color: var(--c-body);
  line-height: 1.7;
  margin: 0 0 20px;
}
.modal__pre {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 16px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--c-ink);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
  margin: 0 0 24px;
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.modal__actions .btn { padding: 12px 22px; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue__line::after,
  .hero__grid,
  .hero__net__nodes circle.is-blink,
  .hero__net__pulse,
  .hero__scan,
  .hero__shape,
  .hero__kicker__dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .summary__grid { grid-template-columns: 1fr; }
  .price__grid { grid-template-columns: 1fr; }
  .contact__wrap { grid-template-columns: 1fr; gap: 40px; }
  .svc-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .svc-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    padding: 16px var(--gutter) 24px;
    gap: 4px;
    align-items: stretch;
  }
  .nav.is-open .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav.is-open .nav__link[aria-current="page"]::after { display: none; }
  .nav.is-open .nav__cta { margin-left: 0; margin-top: 12px; text-align: center; }

  .hero { padding-top: 130px; padding-bottom: 100px; }
  .hero__meta { grid-template-columns: 1fr; gap: 12px; max-width: 320px; }
  .hero__meta__item { padding-top: 12px; }

  .form { padding: 24px; }
  .summary-card { padding: 28px 24px; }
  .price-col { padding: 28px 22px; }

  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  body { font-size: 14.5px; }
  .hero__title { font-size: 30px; }
  .section-title { font-size: 24px; }
  .page-hero__title { font-size: 26px; }
  .plan__price .amount { font-size: 22px; }
}
