/*
  AllRev のサービス紹介ページ（all-rev.com）のスタイル。

  **色はダッシュボード（`web/src/index.css`）と同じ値を使う。** 同じ製品なので、
  LP から入った人が `dashboard.all-rev.com` へ移ったときに別サービスに見えないようにする。
  片方だけ変えないこと。

  **ビルドしない**（Tailwind も PostCSS も通さない）。ここに書いたものがそのまま配信される。
*/

:root {
  --bg: #090b10;
  --surface: #11141b;
  --surface-2: #161a23;
  --border: #232936;
  --border-strong: #313848;

  --text: #e9ecf3;
  --muted: #8892a4;
  --faint: #626b7d;

  --accent: #6c9cff;
  --accent-hover: #85aeff;
  --accent-soft: #1a2440;
  /* 送信結果の色。定義を忘れると color の指定ごと無視され、
     エラーが本文と同じ色で出る（実際に踏んだ） */
  --ok: #4ade80;
  --danger: #f87171;

  --r: 10px;
  --r-lg: 14px;

  --wrap: 1060px;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic",
    "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  /* ヘッダーが固定なので、アンカーで飛んだ先が隠れないように余白を取る */
  scroll-padding-top: 84px;
}

/* 動きを減らす設定の人には、スクロールを飛ばさない */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 760px;
}

.tiny {
  font-size: 13px;
  line-height: 1.7;
}
.faint {
  color: var(--faint);
}

/* キーボードで辿る人が、ナビを 5 回踏まずに本文へ行けるようにする。
   見えていると邪魔なので、フォーカスが当たったときだけ出す。 */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06080d;
  padding: 10px 16px;
  border-radius: 0 0 var(--r) 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

/* --- ヘッダー ------------------------------------------------------------ */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.bar-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.bar-nav a {
  color: var(--muted);
}
.bar-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.bar-cta {
  display: flex;
  gap: 10px;
}

/* --- ボタン -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #06080d;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #06080d;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* --- ヒーロー ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 108px 0 92px;
  overflow: hidden;
}

/* 背景の光。装飾なので、読み上げにも印刷にも関与しない疑似要素で置く */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(108, 156, 255, 0.14), transparent 62%);
  pointer-events: none;
}
.hero > .wrap {
  position: relative;
}

/* **大文字化しない。** SaaS が SAAS になるうえ、日本語には効かないので
   同じ行の中で字面が揃わなくなる。 */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.eyebrow .dot {
  margin: 0 8px;
  color: var(--faint);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 16px;
}
.lead strong {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
}

/* --- セクション ---------------------------------------------------------- */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
.section-alt {
  background: var(--surface);
}

.section h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-lead {
  max-width: 68ch;
  color: var(--muted);
  margin: 0 0 36px;
}

/* --- タイル -------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.section-alt .tile {
  background: var(--bg);
}
.tile h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* --- ステップ ------------------------------------------------------------ */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 24px 20px 68px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}
.steps strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.steps span {
  color: var(--muted);
  font-size: 14.5px;
}

/* --- 箇条書き ------------------------------------------------------------ */

.list {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- 表 ------------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 620px;
}
th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
tbody td {
  color: var(--muted);
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
}
.faq details[open] summary::before {
  content: "−";
}
.faq p {
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14.5px;
}

/* --- CTA ----------------------------------------------------------------- */

.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.cta .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.cta .cta-row {
  justify-content: center;
}

.cta-sub {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* --- 問い合わせフォーム --------------------------------------------------- */

/* 見出しは中央、入力欄は左。入力欄まで中央に寄せるとラベルと枠の関係が読めなくなる */
.contact-form {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

/* 必須の印は色だけに頼らない（色が見えない人にも「必須」と読める） */
.req {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 送信結果。**成功と失敗を同じ大きさで出す**（送れていないのに
   送れたように見えるのが一番まずい）。空のときは行ごと消す */
.form-note {
  margin: 0;
  font-size: 14.5px;
}
.form-note:empty {
  display: none;
}
.form-note--ok {
  color: var(--ok);
}
.form-note--error {
  color: var(--danger);
}

/* --- フッター ------------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  background: var(--surface);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-inner .tiny {
  margin: 8px 0 0;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.foot-nav a {
  color: var(--muted);
}
.foot-nav a:hover {
  color: var(--accent-hover);
}
.foot-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.foot-legal .sep {
  margin: 0 10px;
  color: var(--border-strong);
}

/* --- 狭い画面 ------------------------------------------------------------ */

@media (max-width: 860px) {
  /* ナビは畳む。ハンバーガーを足すほど項目が無く、CTA だけ残せば用は足りる */
  .bar-nav {
    display: none;
  }
  .bar-cta {
    margin-left: auto;
  }
  .hero {
    padding: 72px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
  .foot-legal .sep {
    display: block;
    height: 0;
    margin: 0;
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  /* 見出しの手動改行を止める。この幅では自然な折り返しと二重になり、
     「活動を」だけの行ができる */
  .br-wide {
    display: none;
  }
}

@media (max-width: 520px) {
  /* 1 行に 2 つ並べると、どちらも読めない幅になる */
  .cta-row .btn {
    width: 100%;
  }
  .bar-cta .btn-ghost {
    display: none;
  }
}
