/* ============================================================
   IE Migration LP — Dark Tech Design
   Design spec: docs/superpowers/specs/2026-05-26-lp-ie-end-design.md
   ============================================================ */

/* ------------------------------------------------------------
   1. Custom Properties
   ------------------------------------------------------------ */
:root {
  --color-bg: #f8fafc;
  --color-surface: #eef2f7;
  --color-accent: #2563eb;
  --color-text: #334155;
  --color-heading: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;

  --header-height: 64px;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 32px rgba(37, 99, 235, 0.12);

  --transition-base: 0.25s ease;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  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;
}

/* ------------------------------------------------------------
   3. Utility
   ------------------------------------------------------------ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.3;
}

/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}

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

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------
   5. Header & Navigation
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: none;
  transition: opacity var(--transition-base);
}

.logo:hover img {
  opacity: 0.75;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list a {
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------
   6. Hero Section
   ------------------------------------------------------------ */
.section-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(to right, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.7) 45%, rgba(248, 250, 252, 0.15) 100%),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-announce {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: rgba(37, 99, 235, 0.07);
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.ha-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
  line-height: 1;
  padding-top: 3px;
}

.ha-timer {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
}

.ha-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  vertical-align: baseline;
}

.ha-num--sec {
  color: #dc2626;
}

.ha-unit {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-right: 0.375rem;
  margin-bottom: 0.1em;
}

.ha-sep {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-muted);
  margin: 0 0.2rem;
  align-self: center;
}

.hero-inner {
  padding-top: 6rem;
  padding-bottom: 1rem;
  max-width: 700px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
}

.hero-lead strong {
  color: var(--color-accent);
}

.hero-ie-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: -1.25rem;
  margin-bottom: 1.75rem;
  padding-left: 0.25rem;
}

.hero-checks {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
}

.hero-checks li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-micro-copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* ------------------------------------------------------------
   7. Section Shared
   ------------------------------------------------------------ */
section {
  padding: 5rem 0;
}

/* ------------------------------------------------------------
   8. Problem Section
   ------------------------------------------------------------ */
.section-problem {
  background: var(--color-bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.problem-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-glow);
}

.problem-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
  line-height: 1;
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.problem-card p strong {
  color: var(--color-heading);
  font-weight: 600;
}

/* ------------------------------------------------------------
   9. Solution Section
   ------------------------------------------------------------ */
.section-solution {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
}

.section-lead {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.subsection-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.plan-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.plan-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}


.plan-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.plan-description {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.plan-features {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.plan-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   10. Strengths Section
   ------------------------------------------------------------ */
.section-strengths {
  background: var(--color-bg);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.strength-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.strength-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.strength-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.strength-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.875rem;
  line-height: 1.4;
}

.strength-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   11. Case Studies Section
   ------------------------------------------------------------ */
.section-cases {
  background: var(--color-surface);
}

.section-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.case-card:hover {
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: translateY(-2px);
}

.case-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  padding: 1.25rem 1.5rem;
}

.case-industry {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.case-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.case-body {
  padding: 1.5rem;
}

.case-item {
  margin-bottom: 1.25rem;
}

.case-item:last-child {
  margin-bottom: 0;
}

.case-label {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.case-label--problem {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.case-label--result {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.case-item p {
  font-size: 0.9rem;
  line-height: 1.75;
}

.case-item p strong {
  color: var(--color-heading);
}

/* ------------------------------------------------------------
   12. Service Flow Section
   ------------------------------------------------------------ */
.section-flow {
  background: var(--color-bg);
}

.flow-list {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
}

.flow-list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-border) 100%);
}

.flow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px rgba(37, 99, 235, 0.25);
}

.flow-content {
  padding-top: 0.625rem;
  flex: 1;
}

.flow-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.flow-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   13. FAQ Section
   ------------------------------------------------------------ */
.section-faq {
  background: var(--color-surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-heading);
  padding: 1.375rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  gap: 1rem;
  transition: color var(--transition-base);
  font-family: inherit;
  line-height: 1.5;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  font-size: 1.375rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
  font-weight: 300;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: 1.375rem;
}

.faq-answer-inner p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   14. Footer CTA Section
   ------------------------------------------------------------ */
.section-footer-cta {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 60%, var(--color-bg) 100%);
  text-align: center;
  padding: 6rem 0;
}

.closing-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-heading);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  border: none;
  padding: 0;
}

.closing-quote strong {
  color: var(--color-accent);
  font-style: normal;
}

/* ------------------------------------------------------------
   15. Site Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ------------------------------------------------------------
   16. Scroll Animations
   ------------------------------------------------------------ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-card:nth-child(2),
.strength-card:nth-child(2),
.case-card:nth-child(2),
.plan-card:nth-child(2) {
  transition-delay: 0.1s;
}

.problem-card:nth-child(3),
.strength-card:nth-child(3) {
  transition-delay: 0.2s;
}

.problem-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* ------------------------------------------------------------
   17. Mobile (≤767px)
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--color-border);
  }

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

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  /* Hide forced line breaks — let text wrap naturally on mobile */
  .hero-subtitle br,


  /* Slightly smaller font so title wraps at natural Japanese word boundaries */
  .hero-title {
    font-size: 1.75rem;
  }

  .problem-grid,
  .plan-grid,
  .cases-grid,
  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .flow-list::before {
    left: 19px;
  }

  .flow-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-inner {
    padding-top: 4rem;
    padding-bottom: 1rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-footer-cta {
    padding: 4rem 0;
  }

  .problem-card:nth-child(2),
  .strength-card:nth-child(2),
  .case-card:nth-child(2),
  .plan-card:nth-child(2),
  .problem-card:nth-child(3),
  .strength-card:nth-child(3),
  .problem-card:nth-child(4) {
    transition-delay: 0s;
  }
}

/* ------------------------------------------------------------
   18. Tablet (768px–1023px)
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .hamburger {
    display: none;
  }

  .nav-list {
    display: flex;
  }

  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   19. Desktop (≥1024px)
   ------------------------------------------------------------ */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-list {
    display: flex;
  }
}

/* ------------------------------------------------------------
   20. Reduced Motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
