/* picoone LP。ブランド色: Blue #5D87FF / Cyan #20B8F5 / Teal #00D1C1 / Navy #1E293B */
:root {
  --blue: #5d87ff;
  --cyan: #20b8f5;
  --teal: #00d1c1;
  --navy: #1e293b;

  --bg: #ffffff;
  --bg-soft: #f4f7ff;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
  /* 白背景で 4.5:1 を満たす濃いブルー (ボタン・リンク) */
  --primary: #3b63e0;
  --primary-hover: #2f52c4;
  --on-primary: #ffffff;
  --focus: #20b8f5;
  --error: #c62828;
  --success-bg: #e6faf8;
  --success-text: #00695f;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.06);
  --radius: 12px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-soft: #131d33;
    --surface: #1e293b;
    --text: #e2e8f0;
    --text-muted: #a3b1c6;
    --border: #334155;
    --primary: #7c9dff;
    --primary-hover: #9bb4ff;
    --on-primary: #0f172a;
    --error: #ff8a80;
    --success-bg: #0d3b38;
    --success-text: #7ff3e8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

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

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの下に隠れないように (ページ内リンク・エラー時のフォーカス移動) */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Hiragino Sans',
    'Hiragino Kaku Gothic ProN',
    'Noto Sans JP',
    'Yu Gothic UI',
    Meiryo,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: 'palt';
}

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

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

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

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--text);
  z-index: 100;
  border-radius: 8px;
}

.skip-link:focus {
  top: 8px;
}

/* ---- ボタン ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-primary);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button-ghost {
  background: transparent;
  color: var(--primary);
}

.button-ghost:hover {
  background: var(--bg-soft);
  color: var(--primary-hover);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.button-block {
  width: 100%;
}

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  margin-right: auto;
}

.brand img {
  display: block;
  width: 150px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

@media (max-width: 720px) {
  .site-header nav {
    display: none;
  }

  .brand img {
    width: 120px;
    height: 32px;
  }
}

/* ---- ヒーロー ---- */
.hero {
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(32 184 245 / 0.14), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(93 135 255 / 0.12), transparent 70%), var(--bg);
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -0.01em;
}

/* 見出しを語のまとまりで折り返す (「デ / ータ」のような泣き別れを防ぐ) */
.phrase {
  display: inline-block;
}

.accent {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .accent {
    background: linear-gradient(90deg, #8aa8ff, #5fd0ff);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.lead {
  margin: 20px 0 32px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mock {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mock-mail {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--text-muted);
}

.mock-mail p {
  margin: 4px 0 0;
}

.mock-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.mock-arrow {
  display: flex;
  justify-content: center;
}

.mock-arrow img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mock-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.mock-card div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
}

.mock-card dt {
  font-size: 12px;
  color: var(--text-muted);
}

.mock-card dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 880px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .br-wide {
    display: none;
  }
}

/* ---- セクション共通 ---- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 32px;
}

.section h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.section p {
  margin: 0;
}

@media (max-width: 720px) {
  .section {
    padding: 56px 0;
  }
}

/* ---- 課題 ---- */
.pain {
  background: var(--bg-soft);
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pain-list li {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pain-list p {
  color: var(--text-muted);
}

/* ---- 機能 ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .pain-list {
    grid-template-columns: 1fr;
  }
}

/* ---- 使い方 ---- */
.how {
  background: var(--bg-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-weight: 800;
}

.steps p {
  color: var(--text-muted);
}

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

/* ---- セキュリティ ---- */
.security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.security-list li {
  padding-left: 20px;
  border-left: 4px solid var(--blue);
}

.security-list p {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .security-list {
    grid-template-columns: 1fr;
  }
}

/* ---- お問い合わせ ---- */
.contact {
  background: var(--bg-soft);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-copy p {
  color: var(--text-muted);
}

.contact-copy .note {
  margin-top: 16px;
  font-size: 14px;
}

.req {
  color: var(--error);
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  font-weight: 700;
  font-size: 15px;
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  border-color: var(--primary);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.field-error {
  margin: 0;
  min-height: 0;
  color: var(--error);
  font-size: 14px;
}

.field-error:empty {
  display: none;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  accent-color: var(--primary);
}

.help {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* 隠し項目 (bot 対策)。display:none だと埋めない bot がいるため画面外に置く */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:empty {
  display: none;
}

.form-alert {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
}

.form-alert-error {
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--error);
}

.form-alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 700;
}

@media (max-width: 880px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .form {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---- フッター ---- */
.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.company {
  margin: 12px 0 0;
}

.company div {
  display: flex;
  gap: 12px;
}

.company dt {
  min-width: 4.5em;
  font-weight: 700;
}

.company dd {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.copyright {
  margin-top: 24px;
}
