/* ==========================================================
   GAS業務自動化 | 鎭西 健吉
   トンマナ: テック・クール / 黒に近い紺 × ミントグリーン × 青
   ========================================================== */

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c232d;
  --ink: #e6edf3;
  --ink-soft: #b1bac4;
  --muted: #7d8590;
  --accent: #3ddc97;
  --accent-2: #58a6ff;
  --warn: #f0883e;
  --line: #2a313c;

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.wrap {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
}

.pc {
  display: inline;
}

/* 方眼の背景（ゆっくり動く） */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.2), 0 8px 32px rgba(61, 220, 151, 0.35);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.btn--line {
  color: #fff;
  background: #06c755;
  border-color: #06c755;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--lg {
  min-height: 58px;
  padding: 0 32px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  margin-right: auto;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.logo__prompt {
  color: var(--accent);
}

.logo__dim {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--accent);
}

/* ---------- 共通 ---------- */
.section {
  padding: clamp(80px, 11vw, 140px) 0;
}

.label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.title {
  margin: 0 0 48px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.4;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 9vw, 112px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.hero__title {
  margin: 0 0 28px;
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 900;
  line-height: 1.3;
}

.hero__accent {
  /* 「明日から」「自動で。」の途中では改行しない */
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 36px;
  color: var(--ink-soft);
}

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

.hero__note {
  margin: 16px auto 0;
  max-width: 1160px;
  padding: 0 clamp(20px, 5vw, 48px);
  font-size: 12px;
  text-align: right;
  color: var(--muted);
}

/* ---------- ターミナル ---------- */
.terminal {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(61, 220, 151, 0.08);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.terminal__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f56;
}

.terminal__bar i:nth-child(2) {
  background: #ffbd2e;
}

.terminal__bar i:nth-child(3) {
  background: #27c93f;
}

.terminal__bar span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.terminal__body {
  min-height: 300px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.9;
}

.t-line {
  min-height: 1.9em;
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
}

.t-out {
  color: var(--accent);
}

.t-done {
  margin-top: 8px;
  color: var(--accent-2);
}

.t-cursor {
  margin: 0;
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

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

/* 動きがないときは、最初から全文を表示する */
html:not(.motion) .t-line::before {
  content: attr(data-type);
}

/* ---------- Before / After ---------- */
.ba__switch {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ba__btn {
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.ba__btn.is-active {
  color: var(--bg);
  background: var(--warn);
}

.ba__btn[data-mode="after"].is-active {
  background: var(--accent);
}

.ba__board {
  padding: clamp(16px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.4s;
}

.ba__board[data-mode="before"] {
  border-color: rgba(240, 136, 62, 0.4);
}

.ba__board[data-mode="after"] {
  border-color: rgba(61, 220, 151, 0.5);
}

.ba__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ba__list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px dashed var(--line);
}

.ba__list li:last-child {
  border-bottom: 0;
}

.ba__task {
  font-weight: 700;
}

.ba__before,
.ba__after {
  font-family: var(--mono);
  font-size: 14px;
}

.ba__before {
  color: var(--warn);
}

.ba__before::before {
  content: "✕ ";
}

.ba__after {
  color: var(--accent);
}

.ba__after::before {
  content: "✓ ";
}

.ba__board[data-mode="before"] .ba__after,
.ba__board[data-mode="after"] .ba__before {
  display: none;
}

.ba__note,
.examples__note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- できること ---------- */
.examples__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ex-card {
  position: relative;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

/* マウスの位置に光が追いかける */
.ex-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 220, 151, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.ex-card:hover {
  border-color: rgba(61, 220, 151, 0.5);
  transform: translateY(-4px);
}

.ex-card:hover::before {
  opacity: 1;
}

.ex-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent);
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: 10px;
}

.ex-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.ex-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 料金 ---------- */
.price__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.price-card--main {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.3), 0 16px 48px rgba(61, 220, 151, 0.12);
}

.price-card .price-card__plan {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.price-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.price-card .price-card__num {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.price-card__num small {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}

.price-card .price-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.price-card__desc span {
  font-size: 13px;
  color: var(--muted);
}

.price__support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 20px;
  padding: 22px 28px;
  background: var(--panel-2);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.price__support p {
  margin: 0;
}

.price__support-name {
  font-weight: 700;
}

.price__support-name span {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.price__support-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.price__notes {
  margin: 20px 0 0;
  padding: 0 0 0 1.2em;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .price__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .price__support-name span {
    display: block;
    margin-left: 0;
  }
}

/* ---------- 流れ ---------- */
.flow__list {
  position: relative;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.flow__list li {
  position: relative;
  padding: 0 0 40px 24px;
}

.flow__list li:last-child {
  padding-bottom: 0;
}

.flow__list li::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.flow__list code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.flow__list h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.flow__list p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- 作り手 ---------- */
.maker__inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.maker__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 48% 25%;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.maker__role {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border-radius: 6px;
}

.maker__name {
  margin: 0 0 12px;
  font-size: 26px;
}

.maker__name span {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.maker__inner p:not(.label) {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.text-link {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

/* ---------- 相談 ---------- */
.contact {
  padding: clamp(96px, 12vw, 150px) 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(61, 220, 151, 0.18), transparent 60%);
  border-top: 1px solid var(--line);
}

.contact__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 900;
  line-height: 1.4;
}

.contact__text {
  margin: 0 0 40px;
  color: var(--ink-soft);
}

/* ---------- フッター ---------- */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer__logo {
  margin: 0 auto 0 0;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}

.footer__by {
  margin: 0;
  font-family: var(--mono);
}

/* ---------- 動き ---------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
  .dot,
  .t-cursor {
    animation: none;
  }
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .examples__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .pc {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .examples__grid {
    grid-template-columns: 1fr;
  }

  .ba__list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ba__switch {
    display: flex;
  }

  .ba__btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
  }

  .maker__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .maker__photo {
    width: 140px;
    margin: 0 auto;
  }

  .maker__name span {
    display: block;
    margin-left: 0;
  }
}
