/* IAMI LP styles (refactored) */
:root{
  --lp-primary:#1b4de4;
  --lp-accent:#6de7f5;
  --lp-accent-2:#a78bfa;
  --tone-1:#f6f9ff;
  --tone-2:#f9fbfd;
  --tone-3:#fffaf5;
  --glass: rgba(255,255,255,0.88);
}

html{ font-size:18px; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans JP",Arial,sans-serif;
  color:#0f172a;
  line-height:1.85;
  background:#fff;
}
.container{ position:relative; max-width:1080px; margin:0 auto; padding:0 20px; }

/* Accessibility */
:focus-visible{ outline:3px solid rgba(27,77,228,0.35); outline-offset:3px; border-radius:12px; }

/* Header */
.lp-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(226,232,240,0.8);
}
.lp-header{ --header-h: 64px; }
@media (max-width:900px){ .lp-header{ --header-h: 56px; } }
.lp-header .container{ display:flex; align-items:center; justify-content:space-between; height:var(--header-h); gap:14px; }
.brand{ display:inline-flex; align-items:center; text-decoration:none; line-height:0; max-width:min(520px, 64vw); }
.lp-header .brand > img.logo{
  height: calc(var(--header-h) - 16px) !important;
  max-height:44px;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain;
  display:block;
}
.lp-nav{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content:flex-end; }
.lp-nav a{ position:relative; text-decoration:none; color:#0f172a; font-weight:700; letter-spacing:0.01em; padding-bottom:6px; }
.lp-nav a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:100%; height:2px;
  background:linear-gradient(90deg, var(--lp-primary), var(--lp-accent));
  transform:scaleX(0); transform-origin:left;
  transition:transform .18s ease;
}
.lp-nav a:hover::after, .lp-nav a.active::after{ transform:scaleX(1); }
.lp-nav a.active{ color:var(--lp-primary); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 20px;
  border-radius:12px;
  text-decoration:none;
  cursor:pointer;
  font-weight:900;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  border:1px solid transparent;
  white-space:nowrap;
}
.btn:hover{ filter:brightness(0.99); transform:translateY(-2px); box-shadow:0 16px 36px rgba(15,23,42,0.14); }
.btn:active{ transform:translateY(0); box-shadow:0 10px 22px rgba(15,23,42,0.12); }
.btn-outline{ background:#fff; color:#0f172a; border-color:rgba(15,23,42,0.12); box-shadow:0 8px 18px rgba(15,23,42,0.06); }
.btn-outline:hover{ border-color:rgba(27,77,228,0.25); }
.btn-line{
  background-image: linear-gradient(135deg, #06c755, #12d97a);
  color:#fff;
  border-color:rgba(6,199,85,0.35);
  box-shadow:0 10px 22px rgba(6,199,85,0.22);
}
.lp-nav .nav-cta{ padding:10px 14px; border-radius:999px; }
.lp-nav .nav-cta::after{ display:none; }

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1000px 600px at 18% 10%, rgba(109,231,245,0.20), transparent 55%),
    radial-gradient(900px 520px at 70% 0%, rgba(167,139,250,0.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.98)),
    url('https://images.unsplash.com/photo-1696229390299-bb0d8438a2e1?q=80&w=1800&auto=format&fit=crop&ixlib=rb-4.0.3') 70% 45%/cover no-repeat;
  padding:84px 0 56px;
  min-height: clamp(340px, 55vh, 560px);
}
.hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.86));
}
.hero-orbs{ position:absolute; inset:-40px -20px; pointer-events:none; z-index:0; }
.orb{
  position:absolute; border-radius:999px;
  filter: blur(16px);
  opacity:0.48;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1{ left:-50px; top:70px; width:260px; height:260px; background:radial-gradient(circle at 30% 30%, rgba(109,231,245,0.85), transparent 65%); }
.orb-2{ right:40px; top:-10px; width:320px; height:320px; background:radial-gradient(circle at 30% 30%, rgba(167,139,250,0.78), transparent 62%); animation-duration:14s; animation-direction:reverse; }
.orb-3{ left:55%; bottom:-140px; width:360px; height:360px; background:radial-gradient(circle at 30% 30%, rgba(27,77,228,0.50), transparent 62%); animation-duration:16s; }
@keyframes orbFloat{ 0%,100%{ transform:translate3d(0,0,0) scale(1); } 50%{ transform:translate3d(10px,-12px,0) scale(1.03);} }

.hero .glass{
  position:relative; z-index:1;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.86);
  border-radius:18px;
  padding:24px;
  box-shadow:0 22px 60px rgba(15,23,42,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 760px;
}
.hero .glass::before{
  content:""; position:absolute; inset:-2px; border-radius:18px; z-index:0; pointer-events:none;
  background:linear-gradient(135deg, rgba(27,77,228,0.20), rgba(109,231,245,0.14), rgba(167,139,250,0.14));
  filter: blur(12px);
  opacity:0.55;
}
.hero .glass > *{ position:relative; z-index:1; }
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  margin:0 0 12px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(27,77,228,0.10), rgba(109,231,245,0.12), rgba(167,139,250,0.10));
  border:1px solid rgba(27,77,228,0.14);
  font-weight:900;
  font-size:13px;
}
.kicker .dot{ width:10px; height:10px; border-radius:999px; background:linear-gradient(135deg, var(--lp-primary), var(--lp-accent), var(--lp-accent-2)); box-shadow:0 0 0 5px rgba(109,231,245,0.16); }
.hero h1{
  font-size:clamp(34px, 4.5vw, 52px);
  line-height:1.18;
  margin:0 0 14px;
  letter-spacing:-0.01em;
  /* Prevent horizontal overflow on narrow screens (esp. when part of the text is nowrap) */
  overflow-wrap:anywhere;
}
.hero .sub{ font-size:20px; color:#334155; margin:0 0 22px; max-width:72ch; }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }
.badges{ display:flex; gap:10px; list-style:none; padding:0; margin:18px 0 0; color:var(--lp-primary); }
.badges li{
  background:rgba(27,77,228,0.08);
  border:1px solid rgba(27,77,228,0.18);
  padding:7px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
}
.scroll-hint{ margin-top:18px; display:inline-flex; align-items:center; gap:10px; color:#0f172a; text-decoration:none; font-weight:900; opacity:0.9; }
.scroll-hint__label{ font-size:13px; }
.scroll-hint__chev{
  width:26px; height:26px; border-radius:999px;
  border:1px solid rgba(27,77,228,0.18);
  background:rgba(255,255,255,0.75);
  position:relative;
}
.scroll-hint__chev::before{
  content:""; position:absolute; left:50%; top:46%;
  width:8px; height:8px;
  border-right:2px solid var(--lp-primary);
  border-bottom:2px solid var(--lp-primary);
  transform: translate(-50%,-50%) rotate(45deg);
}

/* Trust cards (dark blue, no dots) */
.trust-strip{ background:transparent; padding:18px 0; }
.trust-items{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; }
.trust-item{
  background: linear-gradient(180deg, #0b1531, #0f1f4b);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:14px;
  padding:18px 18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.trust-item:hover{ transform: translateY(-3px); box-shadow: 0 22px 54px rgba(15,23,42,0.22); border-color: rgba(109,231,245,0.22); }
.trust-item .t-ttl{
  font-weight: 900;
  color:#fff;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trust-item .t-txt{
  font-size: 15px;
  color: rgba(231,240,255,0.92);
  line-height: 1.65;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections / typography (note-like) */
.section{ padding:72px 0; scroll-margin-top:92px; }
.section.tone-1{ background:var(--tone-1); }
.section.tone-2{ background:var(--tone-2); }
.section.tone-3{ background:var(--tone-3); }
.section h2{ font-size:clamp(28px, 3.2vw, 34px); margin:0 0 18px; letter-spacing:0.01em; color:#0b1531; }
.section h2::after{ content:""; display:block; width:72px; height:3px; background:linear-gradient(90deg, var(--lp-primary), var(--lp-accent)); margin-top:10px; border-radius:2px; }
.section p, .section ul, .section ol{ max-width:72ch; }
.lead{ font-weight:800; }
.cols{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:32px; }
.card{
  background: rgba(255,255,255,0.92);
  border:1px solid rgba(15,23,42,0.10);
  border-radius:14px;
  padding:24px;
  box-shadow:0 10px 28px rgba(15,23,42,0.08);
}
.card h3{ margin:0 0 10px; font-size:1.1rem; }
.chips{ display:flex; gap:10px; list-style:none; padding:0; flex-wrap:wrap; }
.chips li{ background:#f1f5f9; border:1px solid rgba(27,77,228,0.10); padding:7px 12px; border-radius:999px; font-size:13px; font-weight:800; }
.steps{ counter-reset: st; list-style:none; padding:0; }
.steps li{ counter-increment: st; margin:12px 0; padding-left:34px; position:relative; }
.steps li::before{
  content: counter(st);
  position:absolute; left:0; top:0;
  width:24px; height:24px;
  border-radius:999px;
  background:var(--lp-primary);
  color:#fff; font-size:12px;
  display:inline-grid; place-items:center;
  font-weight:900;
}

/* Services cards */
.grid-3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.svc-cards .card{ display:flex; flex-direction:column; gap:10px; }
.svc-cards .card .btn{ margin-top:auto; align-self:flex-start; }

/* Pricing table */
.pricing-table{ border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; box-shadow:0 10px 28px rgba(15,23,42,0.08); }
.pricing-header, .pricing-row{ display:grid; grid-template-columns: 2fr 1fr 2fr 1fr; }
.pricing-header{ background:linear-gradient(90deg, var(--lp-primary), var(--lp-accent)); color:#fff; font-weight:900; }
.pricing-col{ padding:14px 12px; border-bottom:1px solid #eef2f7; }
.pricing-row:last-child .pricing-col{ border-bottom:none; }
.price{ font-weight:900; color:var(--lp-primary); }
.small{ font-size:0.9rem; color:#4b5563; }

/* FAQ */
details{ border:1px solid rgba(15,23,42,0.10); border-radius:12px; padding:14px 16px; background:#fff; box-shadow:0 8px 18px rgba(15,23,42,0.06); }
details + details{ margin-top:12px; }
details summary{ cursor:pointer; list-style:none; position:relative; padding-right:28px; font-weight:900; color:#0b1531; }
details summary::-webkit-details-marker{ display:none; }
details summary::after{ content:"\25BC"; position:absolute; right:2px; top:2px; font-size:12px; transition: transform .2s ease; color:var(--lp-primary); }
details[open] summary::after{ transform:rotate(180deg); }
details p{ margin:10px 0 0; color:#334155; }

/* Footer / banner */
.lp-footer{ border-top:1px solid rgba(226,232,240,0.8); padding:20px 0; }
.cta-banner{ background:#f4f7ff; border-top:1px solid #e6eefb; border-bottom:1px solid #e6eefb; }
.cta-banner__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; }

/* Scroll reveal (JS adds classes) */
.js .reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.js .reveal.in-view{ opacity:1; transform: translateY(0); }

/* Modal (LINE QR) */
.modal{ position:fixed; inset:0; display:none; z-index:2000; }
.modal.is-open{ display:block; }
.modal__overlay{
  position:absolute; inset:0; z-index:0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel{
  position:relative; z-index:1;
  width: min(520px, calc(100vw - 32px));
  margin: 12vh auto 0;
  background: rgba(255,255,255,0.92);
  border:1px solid rgba(255,255,255,0.9);
  border-radius:16px;
  box-shadow: 0 28px 80px rgba(15,23,42,0.35);
  padding:18px 18px 16px;
}
.modal__close{
  position:absolute; top:10px; right:10px; z-index:2;
  width:40px; height:40px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.modal__title{ margin:4px 0 6px; font-size:1.2rem; }
.modal__text{ margin:0 0 14px; color:#334155; }
.modal__qr{
  display:grid; place-items:center;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(27,77,228,0.12);
  background: rgba(246,248,255,0.9);
  margin-bottom:14px;
}
.modal__qr img{ width:min(320px, 70vw); height:auto; border-radius:10px; background:#fff; }

.line-id{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(6,199,85,0.28);
  background: rgba(6,199,85,0.10);
  color:#0b1531;
  font-weight:900;
}
.line-id__label{ opacity:0.8; }
.line-id__value{
  user-select: all; -webkit-user-select: all;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(255,255,255,0.75);
  border:1px solid rgba(15,23,42,0.10);
}
.line-id__value:focus-visible{ outline:3px solid rgba(6,199,85,0.28); outline-offset:3px; }

@keyframes modalIn { from { opacity:0; transform: translateY(10px) scale(0.98); } to { opacity:1; transform: translateY(0) scale(1); } }
.modal.is-open .modal__panel{ animation: modalIn .22s ease-out both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

@media (max-width: 900px){
  /* Fix top UI on mobile: keep header in one row */
  .lp-header .container{ gap:10px; }
  .brand{ max-width: 62vw; }
  .lp-header .brand > img.logo{
    height: calc(var(--header-h) - 18px) !important;
    max-height: 38px;
  }
  .lp-nav{ flex-wrap: nowrap; gap:10px; }
  .lp-nav a{ padding-bottom: 0; }
  .lp-nav a:not(.nav-cta){ display:none; }
  .lp-nav .nav-cta{ padding:10px 12px; font-size:14px; }

  .cols{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .trust-items{ grid-template-columns: 1fr 1fr; }
  .cta-banner__inner{ flex-direction:column; align-items:flex-start; }
  .hero{ padding:72px 0 44px; background-position:55% 20%; }
  .hero-orbs{ opacity:0.35; }

  /* Allow hero headline to wrap on mobile */
  .hero h1 .nowrap{ white-space:normal; }
}

.nowrap{ white-space:nowrap; }

