@charset "UTF-8";

:root {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

html[lang="ja"],
html[lang="ja"] body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.03em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6,
html[lang="ja"] .hero-title,
html[lang="ja"] .section-title {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  line-break: strict;
}

html[lang="ja"] .h1-line {
  display: inline-block;
  white-space: nowrap;
}

html[lang="ja"] .quote-wall-headline {
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 760px) {
  html[lang="ja"] .quote-wall-headline {
    font-size: clamp(16px, 4.2vw, 22px);
    white-space: normal;
  }
}

html[lang="ja"] .hero-copy h1 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: normal;
}

html[lang="ja"] .hero-copy h1 .h1-line {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  html[lang="ja"] .hero-copy h1 {
    font-size: clamp(26px, 7.4vw, 38px);
    line-height: 1.3;
  }
}

html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] .body,
html[lang="ja"] .lede {
  line-height: 1.78;
}

html[lang="ja"] .nav-logo,
html[lang="ja"] .nav-direct,
html[lang="ja"] .nav-signin,
html[lang="ja"] .nav-demo,
html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] textarea,
html[lang="ja"] select {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

html[lang="ja"] .btn-primary,
html[lang="ja"] .btn-secondary,
html[lang="ja"] .nav-demo,
html[lang="ja"] .footer-brand-cta {
  letter-spacing: 0.025em;
  white-space: normal;
}

@media (max-width: 640px) {
  html[lang="ja"],
  html[lang="ja"] body {
    line-height: 1.78;
    letter-spacing: 0.02em;
  }

  html[lang="ja"] h1,
  html[lang="ja"] h2 {
    line-height: 1.42;
  }
}

/* === Per-page hero h1 font-size overrides for Japanese =========================
   These pages render their hero h1 at sizes designed for English (~70–90px).
   With Japanese text wrapped in .h1-line { white-space: nowrap }, a single line
   can overflow the container. Bring them in line with the top page hero
   (clamp(30px, 3.8vw, 48px)), with a mobile fallback. */
html[lang="ja"] .uc-hero h1,
html[lang="ja"] .pricing-hero h1,
html[lang="ja"] .hero-header h1,
html[lang="ja"] .partner-hero h1 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: normal;
}

html[lang="ja"] .uc-hero h1 .h1-line,
html[lang="ja"] .pricing-hero h1 .h1-line,
html[lang="ja"] .hero-header h1 .h1-line,
html[lang="ja"] .partner-hero h1 .h1-line {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  html[lang="ja"] .uc-hero h1,
  html[lang="ja"] .pricing-hero h1,
  html[lang="ja"] .hero-header h1,
  html[lang="ja"] .partner-hero h1 {
    font-size: clamp(26px, 7.4vw, 38px);
    line-height: 1.3;
  }
}

/* === Setup/payload 型ヒーロー（SOSE / wall-of-love）の日本語向けサイズ =====
   英語ベースで payload に最大84px が割り当てられているが、日本語の長文は
   オーバーフローするため、payload を一段下げて自然に2〜3行に流す。 */
html[lang="ja"] .sose-hero-h1-payload,
html[lang="ja"] .wol-h1-payload {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

html[lang="ja"] .sose-hero-h1-setup,
html[lang="ja"] .wol-h1-setup {
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

html[lang="ja"] .speakable-headline-finding,
html[lang="ja"] .wol-h1 {
  letter-spacing: 0.01em;
  line-height: 1.35;
}

/* === features 配下の hero (.fp-h1) ===================================
   ローテーター付きh1。サイズだけ日本語向けに下げる。 */
html[lang="ja"] .fp-h1 {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* === セクション見出し（.h2-diptych の setup/payload）と principle-payoff
   英語ベースで payload 最大 76〜84px / principle 72px に設計されているが、
   日本語の長文では行が崩れるため統一サイズに下げる。 */
html[lang="ja"] .h2-payload {
  font-size: clamp(26px, 3.6vw, 46px) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
}

html[lang="ja"] .h2-setup {
  font-size: clamp(16px, 1.8vw, 22px) !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 10px !important;
}

html[lang="ja"] .principle-payoff {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  html[lang="ja"] .h2-payload {
    font-size: clamp(22px, 6vw, 32px) !important;
  }
  html[lang="ja"] .principle-payoff {
    font-size: clamp(22px, 6vw, 32px);
  }
}

/* === SOSE Webinar 見出し（h2-diptych を解いて単独h2にしたため独自指定） */
html[lang="ja"] .sose-webinar-h2 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 16px;
}

/* === Demo ハブ & フォームページ ============================================= */
.demo-page {
  background: #FAF7F2;
  padding: 96px 0 64px;
}

.demo-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.demo-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E5E0D8;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #252A4A;
  margin-bottom: 24px;
}

.demo-page .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E5097F;
}

html[lang="ja"] .demo-h1 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: #252A4A;
  margin: 0 0 20px;
}

html[lang="ja"] .demo-lede {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.78;
  color: #4A5570;
  max-width: 640px;
  margin: 0 auto 56px;
}

.demo-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.demo-choice {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E5E0D8;
  border-radius: 16px;
  padding: 40px 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.demo-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px -20px rgba(37, 42, 74, 0.18);
  border-color: #E5097F;
}

.demo-choice-eyebrow {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E5097F;
  margin-bottom: 16px;
}

html[lang="ja"] .demo-choice-title {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: #252A4A;
  margin: 0 0 16px;
}

html[lang="ja"] .demo-choice-desc {
  font-size: 14.5px;
  line-height: 1.78;
  color: #4A5570;
  margin: 0 0 28px;
  flex-grow: 1;
}

.demo-choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #E5097F;
}

.demo-choice-cta .btn-arrow {
  transition: transform 0.18s ease;
}

.demo-choice:hover .btn-arrow {
  transform: translateX(3px);
}

.demo-form-card {
  background: #fff;
  border: 1px solid #E5E0D8;
  border-radius: 16px;
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.demo-form-card .hs-form-frame {
  min-height: 320px;
}

.demo-back {
  margin-top: 32px;
  text-align: center;
}

html[lang="ja"] .demo-back a {
  display: inline-block;
  font-size: 14px;
  color: #4A5570;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

html[lang="ja"] .demo-back a:hover {
  color: #252A4A;
  border-bottom-color: #252A4A;
}

@media (max-width: 760px) {
  .demo-page {
    padding: 64px 0 48px;
  }
  .demo-choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .demo-choice {
    padding: 28px 24px;
  }
  .demo-form-card {
    padding: 28px 20px;
  }
}

/* === SOSE Hero リードカード：HubSpot dev-mode 埋め込みフォームを
   既存の .sose-field / .sose-leadcard-submit の見た目に合わせる。 */
.sose-hubspot-form .hs-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.sose-hubspot-form .hs-form-field > label,
.sose-hubspot-form .hs-form-field > label > span:first-child {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #252A4A;
  letter-spacing: 0.02em;
  opacity: 0.7;
  text-transform: uppercase;
}

.sose-hubspot-form .hs-input {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid rgba(37, 42, 74, 0.16);
  border-radius: 8px;
  background: #FAF7F2;
  color: #252A4A;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.sose-hubspot-form .hs-input:focus {
  border-color: #E5097F;
  background: #fff;
}

.sose-hubspot-form .hs-input::placeholder {
  color: rgba(37, 42, 74, 0.42);
}

.sose-hubspot-form textarea.hs-input {
  min-height: 96px;
  resize: vertical;
}

.sose-hubspot-form .hs-button {
  width: 100%;
  padding: 14px 24px;
  margin-top: 8px;
  background: #E5097F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sose-hubspot-form .hs-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(229, 9, 127, 0.45);
}

.sose-hubspot-form .hs_error_rollup,
.sose-hubspot-form .hs-error-msgs,
.sose-hubspot-form .hs-error-msg {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: #E5097F;
  font-size: 12px;
}

.sose-hubspot-form .legal-consent-container,
.sose-hubspot-form .hs-richtext {
  font-size: 12px;
  color: #4A5570;
  margin-top: 12px;
  line-height: 1.6;
}

.sose-hubspot-form .legal-consent-container a {
  color: #E5097F;
}

.sose-hubspot-form .submitted-message {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #252A4A;
  background: #FAF7F2;
  border: 1px solid #E5E0D8;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.78;
}

/* === SOSE Webinar セクション（navy背景）の HubSpot 埋め込みフォーム ===
   元の sose-webinar-form-row の白系・透過スタイルを HubSpot 出力に適用 */
.sose-webinar-hubspot-form .hs-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sose-webinar-hubspot-form .hs-form-field label,
.sose-webinar-hubspot-form .hs-form-field label > span,
.sose-webinar-hubspot-form .hs-form-field legend,
.sose-webinar-hubspot-form .hs-field-desc {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sose-webinar-hubspot-form .hs-form-field .hs-form-required,
.sose-webinar-hubspot-form .hs-form-field label .hs-form-required {
  color: #FEBD3B !important;
  margin-left: 2px;
}

.sose-webinar-hubspot-form .hs-field-desc {
  text-transform: none;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 2px;
}

.sose-webinar-hubspot-form .hs-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}

.sose-webinar-hubspot-form .hs-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.sose-webinar-hubspot-form .hs-input:focus {
  border-color: #E5097F;
  background: rgba(255, 255, 255, 0.1);
}

.sose-webinar-hubspot-form textarea.hs-input {
  min-height: 80px;
  resize: vertical;
}

.sose-webinar-hubspot-form .hs-button {
  width: 100%;
  padding: 14px 24px;
  margin-top: 8px;
  background: #E5097F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sose-webinar-hubspot-form .hs-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(229, 9, 127, 0.55);
}

.sose-webinar-hubspot-form .hs_error_rollup,
.sose-webinar-hubspot-form .hs-error-msgs,
.sose-webinar-hubspot-form .hs-error-msg {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: #FEBD3B;
  font-size: 12px;
}

.sose-webinar-hubspot-form .legal-consent-container,
.sose-webinar-hubspot-form .hs-richtext {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
  line-height: 1.6;
}

.sose-webinar-hubspot-form .legal-consent-container a {
  color: #FEBD3B;
}

.sose-webinar-hubspot-form .submitted-message {
  margin-top: 8px;
  padding: 16px 20px;
  background: rgba(254, 189, 59, 0.14);
  border: 1px solid rgba(254, 189, 59, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
}

/* === SOSE フォーム周辺マージン詰め =====================================
   HubSpot 埋め込みコンテナと前後テキスト（サブ／fineprint）の余白を縮める。 */
html[lang="ja"] .sose-leadcard-form-sub {
  margin-bottom: 12px !important;
}

html[lang="ja"] .sose-hubspot-form {
  margin: 0 !important;
}

html[lang="ja"] .sose-hubspot-form form,
html[lang="ja"] .sose-hubspot-form fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html[lang="ja"] .sose-hubspot-form .hs-form-field:first-of-type {
  margin-top: 0;
}

html[lang="ja"] .sose-hubspot-form .hs-form-field:last-of-type {
  margin-bottom: 4px;
}

html[lang="ja"] .sose-leadcard-fineprint {
  margin-top: 10px !important;
}

/* webinar 側：label と fineprint をフォームに密着させる */
html[lang="ja"] .sose-webinar-form-label {
  margin-bottom: 8px;
}

html[lang="ja"] .sose-webinar-hubspot-form {
  margin: 0 !important;
}

html[lang="ja"] .sose-webinar-hubspot-form form,
html[lang="ja"] .sose-webinar-hubspot-form fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html[lang="ja"] .sose-webinar-hubspot-form .hs-form-field:first-of-type {
  margin-top: 0;
}

html[lang="ja"] .sose-webinar-hubspot-form .hs-form-field:last-of-type {
  margin-bottom: 4px;
}

html[lang="ja"] .sose-webinar-form-fineprint {
  margin-top: 10px;
}

@media (max-width: 640px) {
  html[lang="ja"] .sose-hero-h1-payload,
  html[lang="ja"] .wol-h1-payload,
  html[lang="ja"] .fp-h1 {
    font-size: clamp(24px, 6.4vw, 34px);
    line-height: 1.35;
  }
}

/* === Pricing page SP overflow fixes ===================================
   Astro生成CSSが [data-astro-cid-*] 属性セレクタで高い詳細度を持つため、
   !important で上書きする必要がある。 */
@media (max-width: 767px) {
  html[lang="ja"] .pricing-hero h1 .h1-line {
    white-space: normal !important;
    display: inline !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
  html[lang="ja"] .pricing-hero h1 {
    font-size: clamp(22px, 6.6vw, 32px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
  .mobile-cta-bar,
  .mobile-cta-bar * {
    box-sizing: border-box !important;
  }
  .compare-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}
