/* Shared readable Japanese typography, loaded after page-specific styles. */
@font-face {
  font-family: "AgLeadi JP";
  src: url("assets/fonts/agleadi-jp.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --body-font: "AgLeadi JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --secondary: #465461;
}

body {
  font-family: var(--body-font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-weight: 800; line-height: 1.5; letter-spacing: .015em; }
strong, b { font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.45; }
.hero { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.hero-subtitle { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.7; }
.hero-text { font-size: 1.125rem; line-height: 1.9; }
.badge, .label { font-size: .9375rem; line-height: 1.7; }
.support-note, .trial-sample, .trial-value span { font-size: 1rem; line-height: 1.85; }
.trial-value { font-size: 1.0625rem; }
.section-heading h2, .ai-section h2, .final-cta h2 { font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.5; font-weight: 800; }
.section-heading p:not(.label) { font-size: 1.125rem; line-height: 1.9; }
.card h3, .feature-card h3, .usecase-card h3, .benefit-list h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.65; }
.card p, .feature-card p, .usecase-card p, .benefit-list p { font-size: 1.125rem; line-height: 1.9; }
.feature-card, .usecase-card, .card { padding: 28px; }
.feature-card span, .usecase-card span { flex-shrink: 0; }
.feature-conditions, .contact-privacy { font-size: 1rem; line-height: 1.85; }
.step-flow span, .trial-start-steps li > span { font-size: .9375rem; }
.step-flow h3, .trial-start-steps h3 { font-size: 1.25rem; line-height: 1.65; }
.step-flow p, .trial-start-steps p { font-size: 1.0625rem; line-height: 1.85; }
.check-list strong { font-size: 1.125rem; line-height: 1.8; }
.check-list span { font-size: 1.0625rem; line-height: 1.85; }

/* Navigation keeps all six items without compressing the text. */
.site-header { gap: 20px; }
.desktop-nav { font-size: 1rem; gap: 18px; white-space: nowrap; }
.login-link { font-size: 1rem; }
.header-actions { gap: 10px; }
.btn { font-size: 1.0625rem; line-height: 1.65; min-height: 48px; padding-inline: 18px; font-weight: 700; white-space: normal; }
.hero-buttons .btn { white-space: normal; min-width: 0; }
.mobile-menu { max-height: calc(100dvh - 72px); overflow-y: auto; }
.mobile-menu a { font-size: 1.125rem; line-height: 1.7; }
.logo strong { font-size: 1.375rem; }
.logo small { font-size: .75rem; }

/* Product illustrations: readable labels rather than miniature UI text. */
.mock-brand span, .mock-sidebar nav span { font-size: .875rem; line-height: 1.7; }
.mock-topbar { flex-wrap: wrap; gap: 10px; }
.mock-topbar > span { font-size: 1.125rem; }
.mock-topbar .mock-ai-label { font-size: .875rem; line-height: 1.7; }
.customer-card small, .detail-grid small, .mail-controls small, .status, .activity-header span { font-size: .9375rem; line-height: 1.7; }
.customer-card { flex-wrap: wrap; }
.customer-card > div { min-width: 0; }
.customer-card strong { font-size: 1.25rem; }
.detail-grid p, .activity-box ul { font-size: 1rem; line-height: 1.85; }
.activity-header { flex-wrap: wrap; }
.sales-preview figcaption strong { font-size: 1.125rem; line-height: 1.7; }
.sales-preview figcaption > span { font-size: .875rem; }
.deal-stages h3 { font-size: 1rem; }
.deal-card strong { font-size: 1rem; }
.deal-card p { font-size: .9375rem; line-height: 1.8; }
.deal-card small, .preview-footnote { font-size: .875rem; line-height: 1.8; }
.action-source small, .action-suggestion > span, .action-suggestion p { font-size: .9375rem; }
.action-source blockquote { font-size: 1.125rem; line-height: 1.8; }
.action-suggestion h3 { font-size: 1.25rem; line-height: 1.6; }
.action-approval strong { font-size: 1.0625rem; }
.action-approval span, .preview-cta small { font-size: .9375rem; line-height: 1.85; }
.preview-cta p { font-size: 1.125rem; }
.deal-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deal-stages > div { min-width: 0; }
.deal-card { padding: 14px 10px; }
.mail-controls p, .mail-result p { font-size: 1.0625rem; line-height: 1.85; }

/* Tables scroll inside their containers on small screens. */
.pricing-compare { max-width: 1200px; }
.pricing-table { min-width: 1160px; font-size: 1.0625rem; line-height: 1.8; }
.pricing-table thead strong { font-size: 1.0625rem; }
.pricing-limit-note h3 { font-size: 1.25rem; line-height: 1.7; }
.pricing-limit-note p { font-size: 1.0625rem; line-height: 1.9; }
.operations-table { min-width: 820px; font-size: 1.0625rem; line-height: 1.85; }
.operations-table caption { font-size: 1rem; }
.comparison-plan strong { font-size: 1.125rem; }
.comparison-plan span { font-size: 1rem; line-height: 1.85; }
.accordion summary { font-size: 1.125rem; line-height: 1.8; }
.accordion p { font-size: 1.125rem; line-height: 1.9; }
.contact-form { min-width: 0; }
.contact-form label, .contact-form input, .contact-form textarea { font-size: 1.125rem; }
.contact-form label { min-width: 0; }
.contact-form input, .contact-form textarea { min-width: 0; }
.contact-form .form-message { font-size: 1rem; }
.footer nav { font-size: 1rem; line-height: 1.85; }
.footer p { font-size: 1rem; line-height: 1.85; }
.footer small { font-size: .875rem; color: var(--secondary); }

/* Legal, company and document pages use the same body scale. */
.legal-content, .legal-hero-inner { max-width: 1000px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.5; }
.legal-hero p, .legal-card p, .legal-card li, .company-table { font-size: 1.125rem; line-height: 1.95; }
.legal-card h2 { font-size: 1.5rem; line-height: 1.6; font-weight: 700; }
.legal-meta { font-size: .9375rem; }
.terms-breadcrumb { font-size: 1rem; line-height: 1.8; }
.terms-toc h2 { font-size: 1.25rem; }
.terms-toc a, .terms-bottom-links { font-size: 1.0625rem; line-height: 1.85; }
.legal-card section + section { margin-top: 40px; padding-top: 34px; }

@media (max-width: 1400px) {
  .site-header { grid-template-columns: auto auto; }
  .desktop-nav, .header-actions { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  body.menu-open .mobile-menu { display: block; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 760px; }
  .hero-panel { max-width: 900px; width: 100%; }
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-preview-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(1.875rem, 7.8vw, 2.25rem); line-height: 1.5; letter-spacing: 0; }
  .hero-subtitle { font-size: 1.25rem; }
  .section-heading h2, .ai-section h2, .final-cta h2 { font-size: 1.75rem; line-height: 1.55; }
  .hero-buttons .btn { width: 100%; }
  .mobile-menu { max-height: calc(100dvh - 64px); }
  .app-frame, .mock-main { min-width: 0; }
  .card, .feature-card, .usecase-card { padding: 24px; }
  .pain-grid, .benefit-list, .step-flow, .trial-start-steps { grid-template-columns: minmax(0, 1fr); }
  .deal-stages { grid-template-columns: minmax(0, 1fr); }
  .deal-stages > div { grid-template-columns: minmax(0, 1fr); }
  .deal-card strong { font-size: 1rem; }
  .deal-card small { font-size: .875rem; }
  .deal-example, .action-example { padding: 20px; }
  .pricing-limit-note { padding: 24px 20px; }
  .contact-form { padding: 20px; }
  .contact-form .btn { padding-inline: 12px; }
  .legal-card { padding: 24px 20px; }
  .legal-card ul, .legal-card ol { padding-left: 1.15em; }
  .terms-toc { padding: 24px 20px; }
  .legal-hero h1 { font-size: 2rem; overflow-wrap: anywhere; }
}
