/* ============================================================
   lp.css — 工事写真台帳つくるくん LP v2
   Mobile-first / Teal Green + Orange accent
   Main:   #2a9d8f (teal-600)
   Accent: #f97316 (orange-500) — CTAボタンのみ
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.8; color: #333; background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #2a9d8f; text-decoration: none; transition: color .2s; }
a:hover { color: #21867a; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Body content zoom (header excluded) ---- */
.lp-body-content { zoom: 1.5; font-size: 83%; }

/* ---- Header (transparent → white on scroll) ---- */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow .3s;
}
.lp-header.is-scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.lp-header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-header-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #111;
}
.lp-header-logo img { height: 32px; width: auto; }
.lp-header-badges {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.lp-header-badges img { height: 32px; width: auto; }
@media (max-width: 767px) {
  .lp-header { display: none; }
}

/* ---- FV (First View) ---- */
.lp-fv {
  background: linear-gradient(160deg, #e6f7f5 0%, #f0fdfa 40%, #f9fafb 100%);
  padding: 104px 16px 32px; /* top padding for fixed header */
  text-align: center;
}
@media (max-width: 767px) {
  .lp-fv {
    min-height: calc(100vh / 1.5); /* zoom: 1.5 補正 */
    padding: 24px 16px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
}
.lp-fv-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lp-fv-text h1 {
  font-size: clamp(2.4rem, 10vw, 3.6rem); font-weight: 700; line-height: 1.35; color: #1a1a1a;
}
.lp-accent { color: #2a9d8f; }
.lp-fv-sub { font-size: 1.08rem; color: #555; margin-top: 4px; }
.lp-fv-mascot img {
  max-width: 150px; margin: 0 auto;
}

/* ---- Speech Bubble ---- */
.lp-speech-bubble {
  background: #fff; border: 2px solid #2a9d8f;
  border-radius: 16px; padding: 12px 20px;
  font-size: .95rem; font-weight: 600; color: #333;
  position: relative;
  max-width: 400px; margin: 0 auto 16px;
}
.lp-speech-bubble::after {
  content: ''; position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}
.lp-speech-bubble::before {
  content: ''; position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-bottom: 11px solid #2a9d8f;
}

/* ---- CTA Button (orange accent) ---- */
.lp-fv-cta { max-width: 480px; margin: 16px auto 0; }
.lp-try-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #f97316; color: #fff;
  font-size: 1.15rem; font-weight: 700;
  padding: 16px 20px; border-radius: 60px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  box-shadow: none;
}
.lp-try-btn:hover {
  background: #ea580c; transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249,115,22,.3);
}
.lp-try-btn:active { transform: translateY(0); }
.lp-try-btn-icon { font-size: 1.4rem; }


.lp-try-note { font-size: .75rem; color: #999; margin-top: 12px; }
.lp-sub-link { display: inline-block; font-size: .85rem; color: #2a9d8f; margin-top: 12px; }
.lp-sub-link:hover { text-decoration: underline; }

/* ---- Sections (common) ---- */
.lp-section { padding: 72px 16px; }
.lp-section-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.lp-section h2 {
  font-size: 1.5rem; font-weight: 700; line-height: 1.5;
  margin-bottom: 32px; color: #1a1a1a;
}

/* ---- Scroll fade-in animation (CSS only) ---- */
.lp-fade {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.lp-fade.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ---- Pain Section ---- */
.lp-pain { background: #f8fafa; font-size: initial; }
.lp-pain-img {
  max-width: 180px; margin: 0 auto 24px;
}
.lp-pain-text { font-size: .95rem; color: #555; line-height: 2; }

/* ---- Flow Section ---- */
.lp-flow { background: #fff; }
.lp-steps {
  display: flex; flex-direction: column; gap: 40px;
}
.lp-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.lp-step-num {
  width: 40px; height: 40px;
  background: #2a9d8f; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 12px;
}
.lp-step img {
  max-width: 120px; margin-bottom: 12px;
}
.lp-step h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.lp-step p { font-size: .9rem; color: #555; }

/* ---- Trust Section ---- */
.lp-trust { background: #f0faf8; }
.lp-trust-cards {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-bottom: 16px;
}
.lp-trust-card {
  background: #fff; border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 2px 12px rgba(42,157,143,.08);
  border: 1px solid #e0f2f0;
}
.lp-trust-card img {
  max-width: 100px; margin: 0 auto 12px;
}
.lp-trust-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.lp-trust-card p { font-size: .88rem; color: #555; }
.lp-trust-note { font-size: .8rem; color: #999; }

/* ---- Pricing Section ---- */
.lp-pricing { background: #fefcf3; }
.lp-pricing-img {
  max-width: 500px; margin: 0 auto 20px;
}
.lp-price { font-size: 3rem; font-weight: 900; color: #f97316; letter-spacing: -.02em; }
.lp-price small { font-size: 1.2rem; font-weight: 700; }
.lp-pricing-desc { font-size: .95rem; color: #555; margin-top: 12px; }
.lp-pricing-free {
  font-size: .85rem; color: #888; margin-top: 20px;
  background: #fff; border-radius: 12px; padding: 14px 20px;
  display: inline-block; border: 1px solid #f0f0f0;
}

/* ---- Closing Section ---- */
.lp-closing { background: linear-gradient(160deg, #e6f7f5 0%, #f0fdfa 50%, #fefcf3 100%); }
.lp-closing h2 { margin-bottom: 32px; }
.lp-try-btn-bottom {
  margin-bottom: 28px;
  font-size: 1.15rem; padding: 16px 20px; gap: 6px;
  max-width: 420px; margin-left: auto; margin-right: auto;
}

.lp-channels-label {
  font-size: .85rem; color: #888; margin-bottom: 20px;
}
.lp-channels {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 400px; margin: 0 auto;
}
.lp-channel {
  text-align: center;
}
.lp-channel-badges {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 4px;
}
.lp-channel-badges img { height: 40px; width: auto; }
.lp-channel img { height: 40px; width: auto; }
.lp-channel-web {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1a1a1a; color: #fff !important;
  font-size: .85rem; font-weight: 600;
  padding: 8px 24px; border-radius: 6px;
  transition: background .2s;
  text-decoration: none;
}
.lp-channel-web img { height: 24px; width: auto; }
.lp-channel-web:hover { background: #333; text-decoration: none; }
.lp-channel-line { display: inline-block; }
.lp-channel-desc {
  font-size: .75rem; color: #999; margin-top: 6px;
}

@media (min-width: 768px) {
  .lp-channels { flex-direction: row; gap: 24px; max-width: 680px; }
  .lp-channel { flex: 1; }
}

/* ---- Sticky CTA (mobile) ---- */
.lp-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.lp-sticky-cta.is-visible { transform: translateY(0); }
.lp-sticky-cta label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #f97316; color: #fff;
  font-size: 1.15rem; font-weight: 700;
  padding: 16px 20px; border-radius: 60px;
  cursor: pointer; max-width: 420px; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(249,115,22,.3);
}

/* ---- Footer ---- */
.lp-footer {
  background: #1a1a1a; color: #aaa;
  padding: 32px 16px 100px; /* extra bottom for sticky CTA */
  text-align: center;
}
.lp-footer-inner { max-width: 720px; margin: 0 auto; }
.lp-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-bottom: 12px;
}
.lp-footer-links a { color: #ccc; font-size: .8rem; }
.lp-footer-links a:hover { color: #fff; }
.lp-footer-copyright { font-size: .75rem; color: #666; }

/* ---- Modal ---- */
.lp-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.lp-modal[hidden] { display: none; }
.lp-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.lp-modal-content {
  position: relative; background: #fff;
  border-radius: 20px; padding: 32px 24px;
  max-width: 480px; width: calc(100% - 32px);
  max-height: 90vh; overflow-y: auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.lp-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(107,114,128,.6); border: none;
  width: 36px; height: 36px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.lp-modal-close:hover, .lp-modal-close:active { background: rgba(75,85,99,.6); }
.lp-modal-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.lp-pdf-status { padding: 24px 0; }
.lp-pdf-status img {
  max-width: 80px; margin: 0 auto 16px;
  animation: lp-bounce .6s infinite alternate;
}
@keyframes lp-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.lp-pdf-status p { font-size: .95rem; color: #555; }
.lp-pdf-result h3 { font-size: 1.2rem; color: #1a1a1a; margin-bottom: 16px; }
#lp-pdf-preview {
  width: 100%; max-width: 360px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  margin: 0 auto 12px;
}
.lp-pdf-result-note { font-size: .75rem; color: #333; margin-bottom: 16px; }
.lp-pdf-actions { display: flex; flex-direction: column; gap: 10px; }
.lp-btn-primary {
  display: block;
  background: #f97316; color: #fff !important;
  font-size: 1rem; font-weight: 700;
  padding: 14px 20px; border-radius: 60px;
  text-align: center; transition: background .2s;
}
.lp-btn-primary:hover { background: #ea580c; text-decoration: none; }
.lp-btn-share {
  display: block; width: 100%;
  background: #06C755; color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: 14px 20px; border-radius: 60px;
  border: none; cursor: pointer;
  text-align: center; transition: background .2s;
}
.lp-btn-share:hover { background: #05b04c; }
.lp-btn-share:active { transform: translateY(1px); }
.lp-btn-secondary {
  display: block;
  background: #2a9d8f; color: #fff !important;
  font-size: .95rem; font-weight: 600;
  padding: 12px 20px; border-radius: 60px;
  text-align: center; transition: background .2s;
}
.lp-btn-secondary:hover { background: #21867a; text-decoration: none; }

/* ---- Result actions: responsive show/hide ---- */
/* Share/Download: JS controls via hidden attribute */
.lp-result-download[hidden],
.lp-result-share[hidden] { display: none !important; }

/* Badges row (horizontal, unified size) */
.lp-result-badges {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 4px;
}
.lp-result-badges a { display: flex; align-items: center; }
.lp-result-badges img { height: 44px; width: auto; }

/* Mobile (default): web link hidden — JS overrides based on Web Share API */
.lp-result-web { display: none; }

/* ---- Tablet ---- */
@media (min-width: 768px) {
  .lp-fv { padding: 120px 24px 64px; }
  .lp-fv-inner { flex-direction: row; text-align: left; gap: 40px; }
  .lp-fv-text { flex: 1; }
  /* h1 size handled by clamp */
  .lp-fv-mascot img { max-width: 280px; }

  .lp-section { padding: 88px 24px; }
  .lp-section h2 { font-size: 1.8rem; }

  .lp-trust-cards { grid-template-columns: 1fr 1fr; }

  .lp-steps { flex-direction: row; gap: 32px; }
  .lp-step { flex: 1; }
  .lp-step img { max-width: 140px; }

  .lp-sticky-cta { display: none; } /* PC: hide sticky CTA */
  .lp-footer { padding-bottom: 32px; }

  /* Tablet: JS handles badges/web link visibility */
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  /* h1 size handled by clamp */
  .lp-section h2 { font-size: 2rem; }
  .lp-price { font-size: 3.6rem; }

  /* PC: JS handles badges/web link visibility */
}
