/* ============================================================
   DESIGN SYSTEM — 顔認証・スマートビルソリューション
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --color-primary:       #0B2545;   /* NTTグループ感のあるネイビー */
  --color-primary-dark:  #061830;
  --color-primary-light: #1B4A8A;
  --color-accent:        #06a1ff; /* アクション・CTAブルー */
  --color-accent-hover:  #0058B0;
  --color-accent-2:      #00C2A8;   /* セカンダリアクセント（ティール） */

  /* LP別アクセント */
  --color-lp01: #0071E3;           /* LP01: 入退室 → ブルー */
  --color-lp02: #3c4d8c;        /* LP02: 高セキュリティ → パープル */
  --color-lp03: #1cafc6;           /* LP03: 人流調査 → グリーン */

  /* Neutral */
  --color-bg:            #e3eaf1;
  --color-bg-dark:       #0B2545;
  --color-surface:       #FFFFFF;
  --color-surface-2:     #F1F5F9;
  --color-border:        #E2E8F0;
  --color-border-dark:   #CBD5E1;

  /* Text */
  --color-text-primary:  #28548b;
  --color-text-secondary:#475569;
  --color-text-muted:    #94A3B8;
  --color-text-on-dark:  #FFFFFF;
  --color-text-on-dark-sub: #CBD5E1;

  /* Status */
  --color-success:       #059669;
  --color-warning:       #D97706;
  --color-error:         #DC2626;

  /* Spacing */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    40px;
  --space-2xl:   64px;
  --space-3xl:   96px;

  /* Typography */
  --font-sans: 'Noto Sans JP', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en:   'Poppins', -apple-system, sans-serif;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  60px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.18);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;

  /* Transition */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:     1200px;
  --header-height:     58px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: 120px 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}


.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}



.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.site-logo__tagline {
  font-size: 10px;
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-nav__link {
  padding: 6px var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__link.active {
  color: var(--color-primary);
  background: var(--color-surface-2);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover { background: var(--color-surface-2); }

.hamburger__line {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-xs);
  border-top: 1px solid var(--color-border);
}

.mobile-nav.open { display: flex; }

.mobile-nav__link {
  padding: var(--space-md) var(--space-md);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__link:hover { background: var(--color-surface-2); }

.mobile-nav__cta {
  margin-top: var(--space-lg);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.45);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #000;
  border: 1px solid #ddd;
  font-weight: bold;
}

.btn--outline:hover {
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border-dark);
}

.btn--ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text-primary)!important;
}

.btn--dark {
  background: var(--color-primary);
  color: #fff;
}

.btn--dark:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px var(--space-xl);
  font-size: var(--text-base);
  border-radius:30px;
}

.btn--sm {
  padding: 8px var(--space-md);
  font-size: var(--text-xs);
}

/* LP accent variants */
.btn--lp01 { background: var(--color-lp01); color: #fff; box-shadow: 0 2px 8px rgba(0,113,227,0.35); }
.btn--lp01:hover { background: #0058B0; transform: translateY(-1px); }
.btn--lp02 { background: var(--color-lp02); color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.35); }
.btn--lp02:hover { background: #765e9c; transform: translateY(-1px); }
.btn--lp03 { background: var(--color-lp03); color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,0.35); }
.btn--lp03:hover { background: #0591a1; transform: translateY(-1px); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge--blue   { background: #EFF6FF; color: var(--color-lp01); }
.badge--purple { background: #F5F3FF; color: var(--color-lp02); }
.badge--green  { background: #ECFDF5; color: var(--color-lp03); }
.badge--dark   { background: rgba(255,255,255,0.15); color: #fff; }

/* ---------- TAGS ---------- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.tag--light {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #1a5f9e 100%);
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 40%, rgba(0,194,168,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,113,227,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,113,227,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content { }

.hero__badge { margin-bottom: var(--space-md); }

.hero__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero__title span {
  color: var(--color-accent-2);
}

.hero__lead {
  font-size: var(--text-md);
  color: var(--color-text-on-dark-sub);
  margin-bottom: var(--space-xl);
  line-height: 1.75;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(142 152 191 / 40%);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.dark-bg.section-header__title,.dark-bg.section-header__lead 
{color: white;}

.section-header__lead {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* LEFT aligned variant */
.section-header--left {
  text-align: left;
}

.section-header--left .section-header__lead {
  margin: 0;
}

/* Dark variant */
.section-header--dark .section-header__title { color: #fff; }
.section-header--dark .section-header__lead { color: var(--color-text-on-dark-sub); }

/* ---------- CARDS ---------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

/* .card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
} */

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 24px;
  flex-shrink: 0;
}

.card__icon--blue   { background: #EFF6FF; }
.card__icon--purple { background: #F5F3FF; }
.card__icon--green  { background: #ECFDF5; }
.card__icon--orange { background: #FFF7ED; }

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ---------- PROBLEM/SOLUTION SECTIONS ---------- */
.problem-grid,
.solution-grid,
.feature-grid {
  display: grid;
  gap: var(--space-lg);
}

.problem-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.solution-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- STEPS / FLOW ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  counter-reset: step;
}

.flow__item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: var(--space-lg) var(--space-md);
}

.flow__item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-text-muted);
  z-index: 1;
}

.flow__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
}

.flow__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}

/* ---------- TABLE ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background: var(--color-surface-2);
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.data-table tr:hover td { background: var(--color-surface-2); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-surface);
  text-align: left;
  transition: background var(--transition-fast);
  gap: var(--space-md);
}

.faq-item__question:hover { background: var(--color-surface-2); }

.faq-item__icon {
  font-size: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-item__icon { transform: rotate(180deg); }

.faq-item__answer {
  display: none;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.faq-item.open .faq-item__answer { display: block; }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: #627290;
  color: #fff;
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}



.cta-section__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta-section__lead {
  font-size: var(--text-md);
  color: var(--color-text-on-dark-sub);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark-sub);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-lg);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.footer__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-mark svg { width: 18px; height: 18px; fill: white; }

.footer__logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.75;
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-sub);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-xs);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

/* ---------- MODAL ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn var(--transition-base);
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition-slow);
}

.modal__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  position: sticky;
  top: 0;
  background: #eff6ff;
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.modal__subtitle {
  font-size: var(--text-sm);
  color: #0071e3;
  margin-top: var(--space-xs);
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
  line-height: 1;
}

.modal__close:hover { background: var(--color-border); }

.modal__body {
  padding: var(--space-xl);
  background-color: #eff6ff;
}

.modal__footer {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- FORM ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-grid--full { grid-column: 1 / -1; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  line-height: 1.5;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}

.form-field.error .form-input,
.form-field.error .form-select,
.form-field.error .form-textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.form-field.error .form-error { display: block; }

/* ---------- PRIVACY NOTICE ---------- */
.privacy-notice {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: var(--space-md);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* ---------- SUCCESS STATE ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.form-success__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.form-success__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.form-success__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ---------- ICON ILLUSTRATIONS (SVG/CSS) ---------- */
.icon-visual {
  position: relative;
  width: 320px;
  height: 320px;
}

/* ---------- LP COLOR THEMING ---------- */
[data-lp="lp01"] {
  --lp-color: var(--color-lp01);
  --lp-bg:    #EFF6FF;
}
[data-lp="lp02"] {
  --lp-color: var(--color-lp02);
  --lp-bg:    #F5F3FF;
}
[data-lp="lp03"] {
  --lp-color: var(--color-lp03);
  --lp-bg:    #ECFDF5;
}

.lp-accent { color: var(--lp-color, var(--color-accent)); }
.lp-badge  { background: var(--lp-bg, #EFF6FF); color: var(--lp-color, var(--color-accent)); }

/* ---------- HIGHLIGHT BOX ---------- */
.highlight-box {
  background: var(--color-surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ---------- DARK SECTION ---------- */
.section--dark {
  background: var(--color-primary);
  color: #fff;
}

.section--dark .section-header__eyebrow { color: var(--color-accent-2); }
.section--dark .card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
/* .section--dark .card:hover {
  background: rgba(255,255,255,0.10);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
} */
.section--dark .card__title { color: #fff; }
.section--dark .card__body  { color: var(--color-text-on-dark-sub); }

/* ---------- STRIPE SECTION ---------- */
.section--stripe { background: var(--color-surface-2); }

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover { transform: translateY(-3px); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb__sep { color: var(--color-border-dark); }
.breadcrumb__current { color: #ecfdf5; font-weight: 500; }

/* ---------- PAGE HERO (LP用、ヘッダー分offsetあり) ---------- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 85% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero[data-lp="lp01"] { background: linear-gradient(135deg, #0B2545 0%, #1B4A8A 60%, #0071E3 100%); }
.page-hero[data-lp="lp02"] { background: linear-gradient(135deg, #0B0B2A 0%,  #4c1c94 60%, #1d8195 100%); }
.page-hero[data-lp="lp03"] { background: linear-gradient(135deg, #052E16 0%, #065F46 60%, #059669 100%); }

.page-hero__breadcrumb { margin-bottom: var(--space-lg); }
.page-hero__badge { margin-bottom: var(--space-md); }

.page-hero__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.page-hero__lead {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- REVIEW NOTE ---------- */
.review-note {
  display: none; /* 開発時のみ表示したい場合は block に */
  background: #FFFBEB;
  border: 1px dashed var(--color-warning);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-warning);
  margin-top: var(--space-md);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .header-nav, .header-cta .btn--outline {
    display: none;
  }

  .hamburger { display: flex; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__visual { display: none; }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .flow { flex-direction: column; }
  .flow__item:not(:last-child)::after {
    content: '↓';
    right: auto;
    top: auto;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
  }

  .data-table { display: block; overflow-x: auto; }

  .section { padding: var(--space-2xl) 0; }
  .section--lg { padding: var(--space-3xl) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .modal { border-radius: var(--radius-lg); }
  .modal__header { padding: var(--space-lg); }
  .modal__body { padding: var(--space-lg); }
  .modal__footer { padding: var(--space-md) var(--space-lg) var(--space-lg); }
  .page-hero { padding-top: calc(var(--header-height) + var(--space-lg)); }
  .btn--lg { padding: 12px var(--space-lg); }
  .site-header{padding:0}
}

/* ============================================================
   DROPDOWN NAVIGATION
   ============================================================ */
.nav-item {
  position: relative;
}

.nav-item__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px var(--space-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
  line-height: 1;
  height: 100%;
}

.nav-item__trigger:hover,
.nav-item:hover .nav-item__trigger,
.nav-item__trigger.active {
  color: var(--color-primary);
  background: var(--color-surface-2);
}

.nav-item__trigger-arrow {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
  margin-top: 1px;
}

.nav-item:hover .nav-item__trigger-arrow,
.nav-item.open  .nav-item__trigger-arrow {
  transform: rotate(180deg);
}

/* ---------- Dropdown Panel ---------- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

/* wide variant: ソリューション一覧 */
.nav-dropdown--wide {
  min-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xs);
  padding: var(--space-md);
 background-color: #e2eaf1;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* サポートドロップダウン（right寄せ）は transform 上書き */
.nav-dropdown[style*="right:0"] {
  left: auto !important;
  right: 0 !important;
  transform: translateY(-8px) !important;
}
.nav-item:hover .nav-dropdown[style*="right:0"],
.nav-item:focus-within .nav-dropdown[style*="right:0"] {
  transform: translateY(0) !important;
}

/* ---------- Dropdown Links ---------- */
.nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.nav-dropdown__item:hover {
  background: var(--color-surface-2);
}

.nav-dropdown__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.nav-dropdown__icon--blue   { background: #EFF6FF; }
.nav-dropdown__icon--purple { background: #F5F3FF; }
.nav-dropdown__icon--green  { background: #ECFDF5; }
.nav-dropdown__icon--gray   { background: var(--color-surface-2); }


.nav-dropdown__label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}
.nav-dropdown__desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* separator */
.nav-dropdown__sep {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xs) 0;
}

/* シンプルリンク（サポート等） */
.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.nav-dropdown__link:hover { background: var(--color-surface-2); }
.nav-dropdown__link i { color: var(--color-text-muted); width: 16px; text-align: center; }

/* ---------- Mobile Dropdown ---------- */
.mobile-nav__group {}
.mobile-nav__group-title {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: var(--space-md);
}
.mobile-nav__sub-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.mobile-nav__sub-link:hover { background: var(--color-surface-2); }
.mobile-nav__sub-link i { color: var(--color-text-muted); width: 18px; text-align: center; }

/* ============================================================
   FIX BANNER
   ============================================================ */
.fix-banner {
  position: fixed;
  bottom: 88px;     /* scroll-top の上 */
  right: 24px;
  z-index: 600;
  width: 220px;
  background: #0b2545;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: visible;
  /* 初期状態 */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fix-banner.visible {
  opacity: 0.9;
  transform: translateY(0);
  pointer-events: auto;
}

.fix-banner.hidden {
  opacity: 0 !important;
  transform: translateY(12px) !important;
  pointer-events: none !important;
}

/* 閉じるボタン */
.fix-banner__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 1;
  line-height: 1;
}
.fix-banner__close:hover {
  background: var(--color-accent);
  transform: scale(1.15);
}

/* バナー本体リンク */
.fix-banner__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}
.fix-banner__link:hover { background: var(--color-surface-2); }

.fix-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.fix-banner__body {
  text-align: center;
  width: 100%;
}

.fix-banner__label {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.fix-banner__title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: white;
  line-height: 1.35;
  margin-bottom: 4px;
}

.fix-banner__sub {
  font-size: 11px;
  color: #b3cbe9;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.fix-banner__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-top: 2px;
  transition: background var(--transition-fast);
}
.fix-banner__btn:hover { background: var(--color-accent-hover); }

@media (max-width: 480px) {
  .fix-banner {
    bottom: 80px;
    right: 12px;
    width: 190px;
  }
}
