/* ==========================================================================
   eyeon 無料Webサイト安全診断 LP
   Tokens and components copied from the eyeon site (css/style.css, B案:
   navy × logo orange) and trimmed to what this page uses.
   Spec: docs/superpowers/specs/2026-10-29-free-check-lp-design.md §4
   ========================================================================== */

:root {
  --color-navy: #14213d;
  --color-primary: #1f3a5f;
  --color-primary-pale: #eef2f7;
  --color-accent-orange: #f29600;
  --color-accent-orange-hover: #d98600;
  --color-orange-marker: #fbdba0;
  --color-orange-tint: #fff7e8;
  --color-orange-deep: #b86400;
  --color-text-main: #1e293b;
  --color-text-muted: #5b6472;
  --color-bg: #ffffff;
  --color-surface: #f5f6f8;
  --color-border: #dfe3ea;
  --color-danger: #b42318;

  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Meiryo', sans-serif;
  --font-num: 'Inter', 'Noto Sans JP', sans-serif;

  --container-max: 1200px;
  --container-padding: 1.5rem;
  --radius-sm: 4px;
  --radius-lg: 6px;
  --header-h: 77px; /* height of the HP's shared header */
  --shadow-md: 0 2px 8px rgba(20, 33, 61, 0.06);
  --transition-fast: 0.15s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text-main);
  background: var(--color-bg);
}

[id] { scroll-margin-top: 80px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--color-navy); line-height: 1.4; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--color-navy); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.nowrap { display: inline-block; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* --------------------------------------------------------------------------
   Next to the HP's stylesheet (2026-11-12)
   ../css/style.css is loaded before this file for the shared header and footer. It also resets every
   margin and padding, removes list markers, and styles a few classes this page uses for something else.
   The rules below undo that inside this page's own content, so the page looks as it did on its own.
   When the HP's stylesheet changes a class named here (or gains one this page also uses), look at this page.
   -------------------------------------------------------------------------- */
/* Links inside the shared header and footer follow the HP (no colour of their own, no underline).
   :where() keeps the weight of a bare `a`, so the HP's own class rules still win. */
:where(.site-header, .site-footer) a { color: inherit; text-decoration: none; }
:where(.site-header, .site-footer) ul,
:where(.site-header, .site-footer) ol { padding-left: 0; }
:where(.site-header, .site-footer) p { margin-bottom: 0; }
:where(.site-header, .site-footer) h4 { color: inherit; line-height: inherit; }
/* The footer's small button: this page's .btn would otherwise make it as large as its own buttons. */
.btn.btn-sm { height: 40px; font-size: 0.875rem; padding: 0 1.25rem; }
main ul { list-style: disc; }
main ol { list-style: decimal; }
.hero-badge-group { display: block; padding: 0; gap: normal; background: none; border: 0; border-radius: 0; }
.hero-badge-tag { display: inline-block; }
.hero-content { text-align: start; max-width: none; }
/* Breadcrumb at the top of the hero: this page's hero has more room above it than the HP's, so pull it up
   to sit as close to the header as on the other pages. */
.hero-breadcrumb { margin: -1.5rem 0 1.5rem; }
@media (max-width: 768px) { .hero-breadcrumb { margin-top: -0.5rem; } }
.step-card { display: block; position: static; text-align: start; }
.step-number { display: inline-block; padding: 0; background: none; border-radius: 0; }
.faq-list { max-width: none; margin-left: 0; margin-right: 0; }
.faq-item.active { box-shadow: none; }
.form-checkbox-label input { margin: 0 3px 3px 4px; font-size: 13.3333px; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.container-narrow { max-width: 960px; }

/* --------------------------------------------------------------------------
   Sections and headings
   -------------------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-tint { background: var(--color-surface); }

.section-header { text-align: left; margin: 0 0 3rem 0; }
.section-header::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent-orange);
  margin-bottom: 1.1rem;
}
.section-header.is-center { text-align: center; max-width: 820px; margin: 0 auto 3.5rem auto; }
.section-header.is-center::before { margin-left: auto; margin-right: auto; }

.section-title {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 46em;
  text-wrap: pretty;
}
.section-header.is-center .section-lead { max-width: none; margin-left: auto; margin-right: auto; }
/* Leads that should break between sentences (2026-11-30): each sentence is one block, so the
   line breaks after a full stop when the row is too short, and inside a sentence only when
   the sentence alone does not fit (narrow screens). */
.section-header .section-lead--wide { max-width: none; } /* over the HP sheet's .section-header .section-lead */
.lead-line { display: inline-block; }
.lead-line--note { display: block; margin-top: 0.4rem; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Buttons (3 kinds only: orange fill, navy outline, text link)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9375rem;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-shadow: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.btn-lg { font-size: 1.0625rem; height: 54px; padding: 0 2.25rem; }
.btn-block { width: 100%; }
.btn-header { height: 38px; font-size: 0.875rem; padding: 0 1.15rem; }

.btn-orange { background: var(--color-accent-orange); color: var(--color-navy); }
.btn-orange:hover { background: var(--color-accent-orange-hover); color: var(--color-navy); }
.btn-orange:disabled { opacity: 0.6; cursor: default; }

.btn-outline-blue { background: #ffffff; color: var(--color-navy); border: 1.5px solid var(--color-primary); }
.btn-outline-blue:hover { background: var(--color-primary-pale); color: var(--color-navy); }

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.micro-copy {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
  text-align: center;
}

/* Header and footer: drawn by the HP's ../js/components.js and styled by ../css/style.css,
   which is loaded before this file (2026-11-12). */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section { background: #ffffff; padding: 3.5rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-badge-group { margin-bottom: 1.25rem; }
.hero-badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero-title-line { display: block; }
.hero-title .text-blue { color: var(--color-navy); box-shadow: inset 0 -0.38em 0 var(--color-orange-marker); }
.hero-subtitle { font-size: 1.0625rem; color: var(--color-text-muted); line-height: 1.9; margin-bottom: 1.75rem; }
/* Hero start (2026-11-27): the domain field and the button joined in one row */
.hero-start__row {
  display: flex;
  background: #ffffff;
  border: 2px solid var(--color-navy);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 33, 61, 0.12);
}
.hero-start__row:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.hero-start__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 1.25rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--color-text-main);
}
.hero-start__input::placeholder { color: #9aa3b0; }
.hero-start__input:focus-visible { outline: none; }
.hero-start__input.input-error { background: #fef2f2; }
.hero-start__button { flex: none; height: 60px; border-radius: 0; }
.hero-content .micro-copy { text-align: left; }
.hero-start__more { display: inline-block; margin-top: 0.9rem; font-size: 0.9375rem; font-weight: 700; }

/* Report mock (drawn in HTML/CSS; never an image) */
.report-mock {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  max-width: 460px;
  margin-left: auto;
  font-size: 0.8125rem;
}
.report-mock__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-primary);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.report-mock__grade { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.report-mock__letter {
  font-family: var(--font-num);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-navy);
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-sm);
}
.report-mock__summary { font-weight: 700; color: var(--color-navy); line-height: 1.5; }
.report-mock__summary small { display: block; font-weight: 400; color: var(--color-text-muted); font-size: 0.75rem; }
.report-mock__scores { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; margin: 0 0 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.report-mock__radar { max-width: 100%; height: auto; }
.report-mock__radar .radar-ring { fill: none; stroke: var(--color-border); stroke-width: 1; }
.report-mock__radar .radar-spoke { stroke: var(--color-border); stroke-width: 1; }
.report-mock__radar .radar-area { fill: var(--color-primary); fill-opacity: 0.16; stroke: var(--color-primary); stroke-width: 2; stroke-linejoin: round; }
.report-mock__radar .radar-point { fill: var(--color-primary); }
.report-mock__radar .radar-label { font-size: 10px; fill: var(--color-navy); }
.report-mock__scores-note { font-size: 0.6875rem; color: var(--color-text-muted); }
.report-mock__table { width: 100%; border-collapse: collapse; }
.report-mock__table td { padding: 0.45rem 0.25rem; border-top: 1px solid var(--color-border); vertical-align: middle; line-height: 1.5; }
.report-mock__table td:last-child { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 3px; font-size: 0.6875rem; font-weight: 700; }
.pill-ng { background: #fde8e8; color: #b42318; }
.pill-ok { background: #e6f4ea; color: #1e7b3a; }
.pill-rv { background: var(--color-orange-tint); color: var(--color-orange-deep); }

/* --------------------------------------------------------------------------
   Cards, steps, callouts
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 1.25rem; }
.feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.125rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; line-height: 1.5; }
.feature-card p { font-size: 0.9375rem; color: var(--color-text-muted); }

.callout {
  background: var(--color-orange-tint);
  border-left: 3px solid var(--color-accent-orange);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.step-number {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-orange-deep);
  margin-bottom: 0.75rem;
}
.step-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9375rem; color: var(--color-text-muted); }

.section-note { font-size: 0.9375rem; color: var(--color-text-muted); margin-top: 1.5rem; }
.section-actions { margin-top: 2rem; }

/* Mid CTA */
.mid-cta { background: var(--color-orange-tint); padding: 3rem 0; text-align: center; }
.mid-cta p { font-size: 1.125rem; font-weight: 700; color: var(--color-navy); margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
/* Hidden-until-revealed only when lp.js has run (it adds .js to <html>);
   without JS, or if the script fails to load, everything stays visible. */
.js .animate-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .report-mock { margin-left: 0; max-width: 520px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --container-padding: 1rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.6rem; text-wrap: pretty; }
  .section-header { margin-bottom: 2.25rem; }
  .hero-section { padding: 2.25rem 0 2.5rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-start__row { flex-direction: column; }
  .hero-start__input { height: 54px; flex: none; }
  .hero-start__button { width: 100%; height: 54px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.card-grid--compact { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .card-grid.card-grid--compact .feature-card { padding: 1.1rem 0.9rem; }
  .card-grid.card-grid--compact .feature-card h3 { font-size: 0.9375rem; }
  .card-grid.card-grid--compact .feature-card p { font-size: 0.8125rem; }
  .step-grid { grid-template-columns: 1fr; }
  .mid-cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item.active { border-color: var(--color-primary); }
.faq-question {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.5;
}
.faq-icon-arrow { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.active .faq-icon-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 1rem 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.8; border-top: 1px solid var(--color-border); }

/* --------------------------------------------------------------------------
   Application form
   -------------------------------------------------------------------------- */
.apply-box { max-width: 640px; margin: 0 auto; }
.form-noscript { background: var(--color-orange-tint); border-left: 3px solid var(--color-accent-orange); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.5rem; }
.badge-required { font-size: 0.6875rem; font-weight: 700; background: var(--color-orange-deep); color: #ffffff; padding: 0.1rem 0.45rem; border-radius: 3px; line-height: 1.5; }
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.15); }
.form-input.input-error { border-color: var(--color-danger); background: #fef2f2; }
.error-text { display: block; font-size: 0.8125rem; color: var(--color-danger); margin-top: 0.35rem; min-height: 1.2em; }
.form-hint { font-size: 0.8125rem; color: var(--color-text-muted); margin: 0.25rem 0 0; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-checkbox-label { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; color: var(--color-text-main); cursor: pointer; line-height: 1.6; }
.form-checkbox-label input { margin-top: 0.35em; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--color-primary); }
.form-submit { margin-top: 2rem; }
.form-note { font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; margin-top: 0.75rem; }
.btn-busy[hidden], .btn-text[hidden] { display: none; }

.apply-waiting { text-align: center; padding: 2.5rem 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #ffffff; }
.apply-waiting h3 { font-size: 1.375rem; margin-bottom: 1rem; }
.apply-waiting__target { font-weight: 700; color: var(--color-navy); margin-bottom: 0.75rem; word-break: break-all; }
.apply-waiting__message { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.apply-waiting__elapsed { font-family: var(--font-num); font-size: 1.75rem; font-weight: 700; color: var(--color-navy); margin-bottom: 1rem; }
.apply-waiting__note { font-size: 0.875rem; color: var(--color-text-muted); }

.form-result-box { text-align: center; padding: 2rem 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-orange-tint); }
.form-result-box p { white-space: pre-line; margin-bottom: 1.25rem; font-weight: 500; color: var(--color-navy); }
.form-result-box .btn[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Terms (details/summary)
   -------------------------------------------------------------------------- */
.terms-note { font-size: 0.875rem; color: var(--color-orange-deep); font-weight: 700; }
.terms-list { display: flex; flex-direction: column; gap: 0.75rem; }
.terms-list details { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 1.5rem; }
.terms-list summary { font-weight: 700; color: var(--color-navy); font-size: 1.0625rem; padding: 1rem 0; cursor: pointer; }
.terms-list details[open] summary { border-bottom: 1px solid var(--color-border); }
.terms-list details > :not(summary) { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.8; }
.terms-list details > ol, .terms-list details > ul, .terms-list details > p { margin: 1rem 0; }
.terms-list details h4 { font-size: 0.9375rem; margin: 1.25rem 0 0.4rem; }
.terms-list code { font-family: var(--font-num); font-size: 0.85em; background: var(--color-surface); padding: 0.05rem 0.35rem; border-radius: 3px; }

/* --------------------------------------------------------------------------
   Mobile fixed CTA bar
   -------------------------------------------------------------------------- */
.sp-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .sp-cta-bar { display: block; }
  .sp-cta-bar.is-hidden { display: none; }
  body { padding-bottom: 72px; }
  .faq-question { font-size: 0.9375rem; padding: 1rem 1.1rem; }
  .faq-answer-inner { padding-left: 1.1rem; padding-right: 1.1rem; }
  .terms-list details { padding: 0 1rem; }
}
