/* KANDO ONE — サブページ共通スタイル（無料相談・資料請求・資料DL） */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --green: #3EA8FF;
  --green-deep: #0f172a;
  --green-dark: #0F83FD;
  --green-soft: #F0F7FF;
  --ink: rgba(0, 0, 0, 0.82);
  --muted: #65717B;
  --line: #D6E3ED;
  --paper: #ffffff;
  --surface: #F5F9FC;
  --warm-soft: #E0EFFF;
  --max: 1180px;
  --header: 74px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(62, 168, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(62, 168, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 58%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(150, 163, 179, 0.1);
}

.header-inner {
  width: min(100% - 40px, var(--max));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--green-deep);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

/* ===== ボタン ===== */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(150, 163, 179, 0.08), 0 8px 28px -12px rgba(150, 163, 179, 0.34);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.btn-wide { min-width: 230px; }
.arrow { font-size: 19px; line-height: 1; }

/* ===== ページヘッダー ===== */
.page-hero {
  padding: 74px 0 42px;
}

.page-hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover { color: var(--green-dark); }

.kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.24;
}

.page-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

/* ===== レイアウト ===== */
.page-main {
  padding: 20px 0 110px;
}

.page-grid {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.page-single {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* ===== 情報パネル ===== */
.info-panel { display: grid; gap: 26px; }

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(150, 163, 179, 0.1), 0 8px 28px -4px rgba(150, 163, 179, 0.3);
}

.info-card h2 {
  margin: 0 0 16px;
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 900;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.check-list .check {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid #B9DCFF;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding: 14px 0 14px 52px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step-list li:first-child { border-top: 0; }

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.step-list strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.step-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* ===== フォーム ===== */
.lead-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(150, 163, 179, 0.1), 0 8px 28px -4px rgba(150, 163, 179, 0.3);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-bottom: 24px;
}

.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }

.field label,
.field-title {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.required {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #FFE9E3;
  color: #C2410C;
  font-size: 11px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green), 0 0 0 3px rgba(62, 168, 255, 0.14);
}

.field [aria-invalid="true"] { border-color: #E11D48; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.check-option input { accent-color: var(--green); }

.privacy-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.form-message {
  display: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 800;
}

.form-message.is-visible { display: block; }

.form-message.is-error {
  background: #FFE9E3;
  color: #C2410C;
}

/* ===== 資料DLカード ===== */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.doc-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(150, 163, 179, 0.1), 0 8px 28px -4px rgba(150, 163, 179, 0.3);
}

.doc-type {
  width: fit-content;
  margin: 0 0 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.doc-card h2 {
  margin: 0 0 10px;
  color: var(--green-deep);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.doc-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}

/* ===== CTAパネル ===== */
.cta-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 56px;
  padding: 44px 32px;
  border: 1px solid #B9DCFF;
  border-radius: 12px;
  background: var(--warm-soft);
  text-align: center;
}

.cta-panel h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cta-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* ===== フッター ===== */
.site-footer {
  padding: 44px 0 28px;
  background:
    linear-gradient(145deg, rgba(62, 168, 255, 0.95), rgba(15, 131, 253, 0.92)),
    var(--green);
  color: #ffffff;
}

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer .brand { color: #ffffff; }
.site-footer .brand-mark { background: rgba(255, 255, 255, 0.2); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  font-weight: 800;
}

.footer-nav a:hover { text-decoration: underline; }

.copyright {
  width: min(100% - 40px, var(--max));
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

/* ===== リビール（サブページ用・軽量） ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 1120px) {
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header: 68px; }

  .header-inner,
  .page-hero-inner,
  .page-grid,
  .page-single,
  .footer-inner,
  .copyright {
    width: min(100% - 28px, var(--max));
  }

  .brand { font-size: 19px; }
  .page-hero { padding: 54px 0 30px; }
  .page-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-main { padding-bottom: 84px; }
}

@media (max-width: 640px) {
  .header-actions .btn { padding: 0 12px; }
  .btn-wide { width: 100%; min-width: 0; }
  .field-grid, .check-grid, .doc-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 22px; }
}
