/* ============================================
   dm-lp.css — EC DMアシスト 通常版LP
   独立CSS（共通CSS非依存）
   ============================================ */

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

:root{
  /* 背景レイヤー */
  --ivory:    #F7F8F6;
  --ivory-2:  #F0F2EE;
  --ivory-3:  #E8EBE5;
  --white:    #FFFFFF;

  /* アクセントカラー */
  --green:       #3D8B5E;
  --green-light: #5CAF7E;
  --green-dim:   #2E6B48;
  --green-bg:    rgba(61,139,94,0.08);
  --green-border:rgba(61,139,94,0.20);

  /* テキスト */
  --text:   #1A1F18;
  --text-2: #3D4439;
  --text-3: #6B7566;
  --text-4: #9CA897;

  /* ボーダー・シャドウ */
  --border:   rgba(0,0,0,0.08);
  --border-2: rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);

  /* 角丸 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* フォント */
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

html{scroll-behavior:smooth}

body{
  font-family:var(--font-sans);
  background:var(--ivory);
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ── NAV ── */
.nav{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 48px;height:64px;
  background:rgba(247,248,246,0.90);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.nav-logo-mark{
  width:28px;height:28px;
  background:var(--green);border-radius:6px;
  display:flex;align-items:center;justify-content:center;
}
.nav-logo-mark svg{width:16px;height:16px;stroke:white;fill:none}
.nav-logo-text{font-size:13px;font-weight:700;color:var(--text);letter-spacing:0.06em}
.nav-links{display:flex;align-items:center;gap:32px}
.nav-links a{font-size:13px;color:var(--text-3);text-decoration:none;transition:color .2s}
.nav-links a:hover{color:var(--text)}
.nav-cta{
  background:var(--green)!important;color:white!important;
  padding:9px 22px!important;border-radius:var(--radius-sm)!important;
  font-weight:500!important;transition:background .2s!important;
}
.nav-cta:hover{background:var(--green-dim)!important}

/* ── HERO ── */
.hero{
  position:relative;overflow:hidden;
  padding:0 48px;min-height:auto;
  display:grid;grid-template-columns:1fr 500px;gap:48px;
  align-items:center;background:var(--white);
}
.hero-bg{
  position:absolute;inset:0;
  background:radial-gradient(ellipse 60% 80% at 100% 50%,rgba(61,139,94,0.06) 0%,transparent 70%);
  pointer-events:none;
}
.hero-left{position:relative;z-index:1;padding:48px 0}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--green-bg);border:1px solid var(--green-border);
  border-radius:20px;padding:6px 16px;
  font-size:11px;font-weight:500;color:var(--green);
  letter-spacing:.07em;margin-bottom:28px;
}
.hero-eyebrow-dot{width:5px;height:5px;border-radius:50%;background:var(--green);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-h1{font-family:var(--font-serif);font-size:13px;font-weight:600;color:var(--text-3);letter-spacing:.06em;margin-bottom:12px}
.hero-h2{font-family:var(--font-serif);font-size:40px;font-weight:700;line-height:1.35;color:var(--text);margin-bottom:24px}
.hero-h2 em{font-style:normal;color:var(--green)}
.hero-lead{font-size:15px;line-height:1.9;color:var(--text-2);margin-bottom:40px;max-width:420px}
.hero-lead strong{color:var(--text);font-weight:700}
.hero-cta-group{display:flex;align-items:center;gap:14px;margin-bottom:24px}
.btn-primary{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--green);color:white;
  font-size:15px;font-weight:700;font-family:var(--font-sans);
  padding:16px 32px;border-radius:var(--radius-sm);
  border:none;cursor:pointer;text-decoration:none;
  letter-spacing:.03em;transition:background .2s,transform .1s;
  box-shadow:0 4px 16px rgba(61,139,94,0.25);
}
.btn-primary:hover{background:var(--green-dim);transform:translateY(-1px)}
.btn-primary:active{transform:translateY(0)}
.btn-ghost{
  display:inline-flex;align-items:center;gap:6px;
  background:transparent;color:var(--text-3);
  font-size:14px;font-family:var(--font-sans);
  padding:16px 20px;border-radius:var(--radius-sm);
  border:1px solid var(--border);cursor:pointer;
  text-decoration:none;transition:all .2s;
}
.btn-ghost:hover{color:var(--text);border-color:rgba(0,0,0,0.2)}
.hero-trust{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-4)}
.hero-trust-dot{width:3px;height:3px;border-radius:50%;background:var(--text-4)}

/* ── HERO MOCK ── */
.hero-right{position:relative;z-index:1;padding:32px 0;display:flex;flex-direction:column;gap:14px}
.mock-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg)}
.mock-titlebar{display:flex;align-items:center;gap:7px;padding:12px 16px;background:var(--ivory);border-bottom:1px solid var(--border)}
.mock-dot{width:9px;height:9px;border-radius:50%}
.mock-tab-area{display:flex;gap:4px;margin-left:12px}
.mock-tab{font-size:11px;padding:4px 12px;border-radius:20px;cursor:pointer;font-weight:500}
.mock-tab.active{background:var(--green);color:white}
.mock-tab:not(.active){background:var(--ivory-2);color:var(--text-3)}
.mock-body{padding:20px}
.mock-field-label{font-size:13px;letter-spacing:.06em;color:var(--text-4);margin-bottom:6px;font-weight:500}
.mock-input-box{
  background:var(--ivory);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:12px 14px;
  font-size:14px;color:var(--text-2);font-family:var(--font-sans);
  line-height:1.7;margin-bottom:14px;max-height:100px;overflow-y:auto;
}
.mock-generate-btn{
  width:100%;background:var(--green);color:white;
  border:none;border-radius:var(--radius-sm);padding:14px;
  font-size:15px;font-weight:700;font-family:var(--font-sans);
  cursor:pointer;margin-bottom:14px;letter-spacing:.04em;
  position:relative;overflow:hidden;
  animation:btn-bounce 2s ease-in-out infinite;
}
@keyframes btn-bounce{
  0%,100%{transform:translateY(0)}
  20%{transform:translateY(-6px)}
  40%{transform:translateY(-2px)}
  60%{transform:translateY(-4px)}
  80%{transform:translateY(-1px)}
}
.mock-output-box{
  background:rgba(61,139,94,0.05);border:1px solid var(--green-border);
  border-radius:var(--radius-sm);padding:14px;
  font-size:14px;color:var(--text);font-family:var(--font-sans);
  line-height:1.8;max-height:140px;overflow-y:auto;
}
.mock-output-box strong{color:var(--text);font-weight:700}
.mock-output-footer{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 14px;border-top:1px solid var(--border);
  font-size:13px;color:var(--text-4);
}
.mock-badge-row{display:flex;gap:10px}
.metric-badge{
  flex:1;background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-md);padding:14px 16px;
  display:flex;align-items:center;gap:12px;box-shadow:var(--shadow-sm);
}
.metric-icon{
  width:36px;height:36px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.metric-icon.green{background:var(--green-bg)}
.metric-text{font-size:10px;color:var(--text-4);line-height:1.5}
.metric-text strong{display:block;font-size:13px;color:var(--text);font-weight:700}

/* ── スクロールバー ── */
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:rgba(0,0,0,0.03)}
::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.15);border-radius:2px}

/* ── SECTION COMMON ── */
section{padding:96px 48px}
.section-label{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--green);margin-bottom:20px;text-transform:uppercase}
.section-h2{font-family:var(--font-serif);font-size:34px;font-weight:700;line-height:1.4;margin-bottom:16px;color:var(--text)}
.section-sub{font-size:15px;color:var(--text-3);line-height:1.8;max-width:540px}

/* ── PAIN ── */
.pain{background:var(--ivory-2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.pain-inner{max-width:1080px;margin:0 auto}
.pain-header{text-align:center;margin-bottom:56px}
.pain-header .section-sub{margin:0 auto}
.pain-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:48px}
.pain-card{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:28px 26px;
  box-shadow:var(--shadow-sm);transition:box-shadow .25s,transform .25s;
}
.pain-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.pain-card-icon-wrap{
  width:44px;height:44px;background:var(--green-bg);
  border-radius:10px;display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;color:var(--green);
}
.pain-card-icon-wrap svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pain-card h3{font-size:15px;font-weight:700;color:var(--text);margin-bottom:8px}
.pain-card p{font-size:13px;color:var(--text-2);line-height:1.75}
.pain-note{
  text-align:center;font-size:14px;color:var(--text-3);
  padding:24px;background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-md);max-width:540px;margin:0 auto;
  box-shadow:var(--shadow-sm);
}
.pain-note strong{color:var(--text)}

/* ── FEATURES ── */
.features{background:var(--white)}
.features-inner{max-width:1080px;margin:0 auto}
.features-header{text-align:center;margin-bottom:64px}
.features-header .section-sub{margin:0 auto}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.feature-card{
  background:var(--ivory);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:32px 28px;
  position:relative;overflow:hidden;
  transition:transform .25s,box-shadow .25s;
}
.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.feature-card::before{
  content:'';position:absolute;top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--green),transparent);
  opacity:0;transition:opacity .25s;
}
.feature-card:hover::before{opacity:1}
.feature-icon{
  width:44px;height:44px;background:var(--green-bg);
  border-radius:10px;display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;color:var(--green);
}
.feature-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.feature-card h3{font-size:16px;font-weight:700;color:var(--text);margin-bottom:10px;line-height:1.4}
.feature-card p{font-size:13px;color:var(--text-2);line-height:1.75}

/* ── DEMO ── */
.demo{background:var(--ivory-2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.demo-inner{max-width:1080px;margin:0 auto}

/* ── PRICING ── */
.pricing{background:var(--white)}
.pricing-inner{max-width:800px;margin:0 auto}
.pricing-header{text-align:center;margin-bottom:56px}
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}
.plan-card{
  background:var(--ivory);border:1px solid var(--border);
  border-radius:var(--radius-xl);padding:36px 32px;
  position:relative;box-shadow:var(--shadow-sm);
}
.plan-card.recommended{
  background:var(--white);border-color:var(--green-border);
  box-shadow:0 0 0 3px rgba(61,139,94,0.08),var(--shadow-md);
}
.recommended-badge{
  position:absolute;top:-13px;left:50%;transform:translateX(-50%);
  background:var(--green);color:white;
  font-size:11px;font-weight:700;letter-spacing:.08em;
  padding:5px 18px;border-radius:20px;white-space:nowrap;
}
.plan-name{font-size:13px;font-weight:700;color:var(--text-3);letter-spacing:.1em;margin-bottom:16px}
.plan-price{display:flex;align-items:baseline;gap:4px;margin-bottom:8px}
.plan-price-num{font-size:44px;font-weight:700;color:var(--text);line-height:1}
.plan-price-period{font-size:13px;color:var(--text-4)}
.plan-desc{font-size:13px;color:var(--text-3);margin-bottom:28px;line-height:1.6}
.plan-divider{height:1px;background:var(--border);margin-bottom:24px}
.plan-features{list-style:none;display:flex;flex-direction:column;gap:10px;margin-bottom:32px}
.plan-feature{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:var(--text-2);line-height:1.5}
.plan-feature-check{
  width:18px;height:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-top:1px;font-size:10px;
}
.plan-feature-check.on{background:rgba(61,139,94,0.12);color:var(--green)}
.plan-feature-check.off{background:var(--ivory-3);color:var(--text-4)}
.plan-cta-primary{
  display:block;text-align:center;
  background:var(--green);color:white;
  font-size:14px;font-weight:700;font-family:var(--font-sans);
  padding:15px;border-radius:var(--radius-sm);
  text-decoration:none;letter-spacing:.03em;
  transition:background .2s;box-shadow:0 4px 12px rgba(61,139,94,0.2);
}
.plan-cta-primary:hover{background:var(--green-dim)}
.plan-cta-ghost{
  display:block;text-align:center;
  background:transparent;color:var(--text-3);
  font-size:14px;font-weight:500;font-family:var(--font-sans);
  padding:15px;border-radius:var(--radius-sm);
  border:1px solid var(--border);text-decoration:none;transition:all .2s;
}
.plan-cta-ghost:hover{color:var(--text);border-color:rgba(0,0,0,0.2)}
.pricing-note{text-align:center;font-size:12px;color:var(--text-4);line-height:1.7}
.plan-value-note{
  font-size:12px;color:var(--green);
  background:var(--green-bg);border:1px solid var(--green-border);
  border-radius:var(--radius-sm);padding:10px 14px;
  margin-bottom:28px;line-height:1.6;
}

/* ── FAQ ── */
.faq{background:var(--ivory-2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.faq-inner{max-width:720px;margin:0 auto}
.faq-header{text-align:center;margin-bottom:56px}
.faq-list{display:flex;flex-direction:column;gap:2px}
.faq-item{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-sm);
}
.faq-q{
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 24px;cursor:pointer;user-select:none;gap:16px;
}
.faq-q-text{font-size:14px;font-weight:500;color:var(--text);line-height:1.5}
.faq-icon{
  width:24px;height:24px;border-radius:50%;
  background:var(--ivory-2);display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:transform .25s,background .25s;
  font-size:14px;color:var(--text-3);
}
.faq-item.open .faq-icon{transform:rotate(45deg);background:var(--green);color:white}
.faq-a{display:none;padding:0 24px 22px;font-size:14px;color:var(--text-2);line-height:1.8}
.faq-item.open .faq-a{display:block}

/* ── CTA FINAL ── */
.cta-final{text-align:center;position:relative;overflow:hidden;background:var(--white)}
.cta-final-bg{
  position:absolute;inset:0;
  background:radial-gradient(ellipse 80% 100% at 50% 100%,rgba(61,139,94,0.06) 0%,transparent 65%);
  pointer-events:none;
}
.cta-final-inner{position:relative;z-index:1;max-width:680px;margin:0 auto}
.cta-final-label{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--green-bg);border:1px solid var(--green-border);
  border-radius:20px;padding:6px 16px;
  font-size:11px;font-weight:500;color:var(--green);
  letter-spacing:.07em;margin-bottom:28px;
}
.cta-final h2{font-family:var(--font-serif);font-size:36px;font-weight:700;line-height:1.4;margin-bottom:16px;color:var(--text)}
.cta-final p{font-size:15px;color:var(--text-3);line-height:1.85;margin-bottom:48px}
.cta-final-group{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:20px}
.cta-final-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--green);color:white;
  font-size:16px;font-weight:700;font-family:var(--font-sans);
  padding:18px 40px;border-radius:var(--radius-sm);
  text-decoration:none;letter-spacing:.03em;
  transition:background .2s,transform .1s;
  box-shadow:0 4px 20px rgba(61,139,94,0.25);
}
.cta-final-btn:hover{background:var(--green-dim);transform:translateY(-1px)}
.cta-final-trust{
  display:flex;align-items:center;justify-content:center;
  gap:20px;font-size:12px;color:var(--text-4);flex-wrap:wrap;
}
.cta-final-trust-item{display:flex;align-items:center;gap:5px}
.cta-final-sub{margin-top:16px;font-size:13px;color:var(--text-4)}
.cta-final-sub a{color:var(--green);text-decoration:none}
.cta-tagline{
  margin-top:48px;padding-top:48px;
  border-top:1px solid var(--border);
  font-size:13px;color:var(--text-4);font-style:italic;
}

/* ── FOOTER ── */
footer{background:var(--ivory-2);border-top:1px solid var(--border);padding:40px 48px 32px}
.footer-inner{max-width:1080px;margin:0 auto}
.footer-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:32px}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.footer-brand-mark{
  width:28px;height:28px;background:var(--green);border-radius:6px;
  display:flex;align-items:center;justify-content:center;
}
.footer-brand-mark svg{width:16px;height:16px;stroke:white;fill:none}
.footer-brand-name{font-size:13px;font-weight:700;color:var(--text)}
.footer-desc{font-size:12px;color:var(--text-4);line-height:1.7;max-width:280px}
.footer-links{display:flex;gap:28px}
.footer-links a{font-size:12px;color:var(--text-4);text-decoration:none;transition:color .2s}
.footer-links a:hover{color:var(--text-3)}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid var(--border);padding-top:24px;
}
.footer-copy{font-size:11px;color:var(--text-4)}
.footer-email a{font-size:11px;color:var(--text-4);text-decoration:none}

/* ── DIVIDER ── */
.h-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(61,139,94,0.2),transparent);margin:0 48px}

/* ── スティッキーCTA（モバイル用） ── */
.sticky-cta{
  display:none;
  position:fixed;
  bottom:0;left:0;right:0;
  z-index:99;
  background:rgba(247,248,246,0.95);
  backdrop-filter:blur(12px);
  border-top:1px solid var(--border);
  padding:12px 16px;
  text-align:center;
}
.sticky-cta .btn-primary{width:100%;padding:14px;font-size:15px;text-align:center;display:block;position:relative;overflow:hidden}
.sticky-cta .btn-primary::after{
  content:'';position:absolute;top:0;left:-100%;
  width:60%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.35),transparent);
  animation:sticky-shimmer 1.5s ease-in-out infinite;
}
@keyframes sticky-shimmer{
  0%{left:-60%}
  100%{left:110%}
}

/* ── RESPONSIVE ── */
@media(max-width:768px){
  .nav{padding:0 20px}
  .nav-links a:not(.nav-cta){display:none}
  .hero{grid-template-columns:1fr;padding:48px 20px;min-height:auto}
  .hero-left{padding:20px 0 0}
  .hero-right{display:block;padding:0}
  .hero-mock-section{display:block!important;padding:0 20px 64px;background:var(--white);border-top:1px solid var(--border)}
  .hero-mock-section .mock-badge-row{flex-direction:column}
  .hero-h2{font-size:32px}
  section{padding:64px 20px}
  .pain-cards{grid-template-columns:1fr;gap:12px}
  .features-grid{grid-template-columns:1fr;gap:16px}
  .pricing-grid{grid-template-columns:1fr;gap:32px}
  .plan-card.recommended{order:-1}
  .footer-top{flex-direction:column;gap:24px}
  .footer-links{flex-direction:column;gap:12px}
  .h-divider{margin:0 20px}
  .sticky-cta{display:block}
  footer{padding-bottom:80px}
}


/* ── デモ出力エリア ── */
.output-area { display: none; margin-top: 14px; }
.output-area.visible { display: block; }
.dict-badge {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dict-highlight {
  background: rgba(61,139,94,0.15);
  color: var(--green);
  border-radius: 3px;
  padding: 0 3px;
}
.scenario-btn {
  background: var(--ivory-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.scenario-btn:hover { border-color: var(--green-border); color: var(--text); }
.scenario-btn.active { background: var(--green-bg); border-color: var(--green-border); color: var(--green); font-weight: 600; }


/* ── トグルスイッチ ── */
.toggle-ui {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--ivory-3);
  border-radius: 10px;
  transition: background 0.25s;
  flex-shrink: 0;
}
.toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.dict-toggle-label input:checked + .toggle-ui {
  background: var(--green);
}
.dict-toggle-label input:checked + .toggle-ui::after {
  transform: translateX(16px);
}
