/* localiser の公開サイト。外部フォント・CDN・インライン CSS は使わない。 */

:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-strong: #171a21;
  --border: #d9d5ca;
  --text: #171a21;
  --muted: #6e716f;
  --accent: #e85b3f;
  --accent-dark: #b83b2a;
  --accent-soft: #f8d8ca;
  --blue: #4e6fff;
  --ok: #2d946e;
  --warn: #b87920;
  --error: #b83b2a;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(23, 26, 33, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141a;
    --surface: #1c2028;
    --surface-strong: #f4f1ea;
    --border: #343944;
    --text: #f4f1ea;
    --muted: #a6a9b0;
    --accent: #ff8062;
    --accent-dark: #ffac97;
    --accent-soft: #49302b;
    --blue: #91a4ff;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 7% 0%, rgba(232, 91, 63, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body::selection { background: var(--accent-soft); }

a { color: var(--accent-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(16px);
}

@media (prefers-color-scheme: dark) {
  header.bar { background: rgba(28, 32, 40, 0.86); }
}

header.bar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  content: "L";
  font-size: 0.9rem;
  font-weight: 900;
}

nav.bar-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

nav.bar-nav a {
  padding: 7px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

nav.bar-nav a:hover,
nav.bar-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.bar-nav select {
  margin-left: 8px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
}

main { padding: 80px 0 112px; }

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

h2 {
  margin: 76px 0 18px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

h3 { line-height: 1.25; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.display-heading { max-width: 800px; }

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

.lead {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero-copy { padding: 18px 0 12px; }

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note { margin: 0; color: var(--muted); font-size: 0.84rem; }

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 12% -8% -12% 8%;
  border-radius: 35% 60% 42% 54%;
  background: var(--accent-soft);
  content: "";
  transform: rotate(-7deg);
}

.hero-shot,
.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.shot figcaption { margin-top: 10px; }

.small { font-size: 0.87rem; }
.muted { color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 70px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  list-style: none;
}

.stats li {
  padding: 20px 22px;
  background: var(--surface);
}

.stat-value {
  display: block;
  margin-bottom: 3px;
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-label { color: var(--muted); font-size: 0.85rem; }

.button {
  display: inline-block;
  padding: 12px 19px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--accent-dark); }
.button[disabled], .button.disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }

.purchase-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.purchase-options .button {
  flex: 1 1 120px;
  text-align: center;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 26, 33, 0.035);
}

.card-heading { margin-top: 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.plan:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.price { margin: 9px 0 0; font-size: 2rem; font-weight: 850; letter-spacing: -0.04em; }
.price .per { color: var(--muted); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; }
.plan ul { flex: 1; margin: 18px 0; padding-left: 1.2em; }
.plan li { margin: 6px 0; }

.field { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }

input[type="text"],
#report-form textarea {
  min-width: 240px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

input[type="text"] { flex: 1; font-family: "Cascadia Mono", Consolas, monospace; }

.status {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.status.ok { border-color: var(--ok); }
.status.warn { border-color: var(--warn); }
.status.error { border-color: var(--error); }
.hidden, [hidden] { display: none !important; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.mono { font-family: "Cascadia Mono", Consolas, "Courier New", monospace; word-break: break-all; }

#report-form label { display: block; margin: 18px 0 5px; font-weight: 700; }
#report-form label:first-child { margin-top: 0; }
#report-form input[type="text"], #report-form textarea { width: 100%; }
#report-form textarea { resize: vertical; min-height: 150px; font-family: "Cascadia Mono", Consolas, monospace; line-height: 1.5; }
.required { margin-left: 2px; color: var(--error); }

.diagram { margin: 24px 0 32px; overflow-x: auto; color: var(--text); }
.pipeline { display: block; width: 100%; min-width: 640px; height: auto; }

footer.bar { padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.87rem; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 620px); }
  header.bar .wrap { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  nav.bar-nav { width: 100%; margin-left: 0; overflow-x: auto; }
  nav.bar-nav a { padding: 6px 8px; white-space: nowrap; }
  .bar-nav select { margin-left: auto; }
  main { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 16px 18px; }
  h2 { margin-top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .plan { transition: none; }
}
