/* ==========================================================================
   Embit LP 共通スタイル
   3枚のLP（desk / line / flow）で共有する土台。
   各ページ固有の配色・レイアウトは、各 index.html 内の <style> に置く。
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Meiryo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { text-decoration: none; }
button { font-family: inherit; }
table { border-collapse: separate; border-spacing: 0; }

/* 横スクロール防止（広告LPでの崩れ対策） */
body { overflow-x: hidden; }

/* --- アクセシビリティ --- */
:focus-visible { outline: 3px solid #149C8F; outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- HubSpot フォーム埋め込み枠 --- */
/* HubSpot側のCSSが効くため、ここでは器と最低限の見た目だけ整える */
.hs-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
}
.hs-form-wrap .hs-form-field { margin-bottom: 16px; }
.hs-form-wrap label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #16233a;
}
.hs-form-wrap input[type="text"],
.hs-form-wrap input[type="email"],
.hs-form-wrap input[type="tel"],
.hs-form-wrap select,
.hs-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #16233a;
  border: 1px solid #d6dae1;
  border-radius: 8px;
  background: #fff;
}
.hs-form-wrap textarea { min-height: 120px; resize: vertical; }
.hs-form-wrap .hs-button,
.hs-form-wrap input[type="submit"] {
  width: 100%;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #149C8F;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s ease;
}
.hs-form-wrap .hs-button:hover,
.hs-form-wrap input[type="submit"]:hover { background: #0F857A; }
.hs-form-wrap .hs-error-msg,
.hs-form-wrap .hs-error-msgs label {
  color: #d64545;
  font-size: 13px;
  font-weight: 500;
}
.hs-form-wrap .hs-form-required { color: #d64545; }

/* フォーム未設定時 / JS無効時のフォールバック */
.hs-form-fallback {
  font-size: 14px;
  line-height: 1.9;
  color: #5b6778;
  text-align: center;
}

/* --- 自作フォーム（embit-form → HubSpot送信API） --- */
.embit-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .embit-form .field-row { grid-template-columns: 1fr; }
}
/* 必須／任意バッジ（ラベル横の小さいピル） */
.embit-form label .req,
.embit-form label .opt {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 4px;
  vertical-align: 2px;
}
.embit-form label .req { color: #fff; background: #d64545; }
.embit-form label .opt { color: #5b6778; background: #eceef2; }
.embit-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #5b6778;
}
.embit-form .consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #149C8F;
}
.embit-form .consent a { color: #0e7d80; font-weight: 700; text-decoration: underline; }

/* 選択肢グループ（ラジオ／複数選択チェック） */
.embit-form .choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.embit-form .choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #16233a;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}
.embit-form .choice input {
  width: 16px;
  height: 16px;
  accent-color: #149C8F;
  cursor: pointer;
}

.embit-form-msg { display: none; border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.7; margin-top: 12px; }
.embit-form-msg.is-error   { display: block; background: #fdecec; color: #b3271e; }
.embit-form-msg.is-success { display: block; background: #eaf7f4; color: #0c6a5e; }
.embit-form-msg.is-pending { display: none; }

.embit-form-thanks {
  display: none;
  text-align: center;
  padding: 12px 8px;
}
.embit-form-thanks .thanks-title {
  font-size: 18px;
  font-weight: 900;
  color: #16233a;
  margin-bottom: 8px;
}
.embit-form-thanks .thanks-body {
  font-size: 14px;
  line-height: 1.9;
  color: #5b6778;
}
.embit-form button[type="submit"]:disabled { opacity: .6; cursor: default; }

/* --- 印刷時は追従CTAを消す --- */
@media print {
  .sticky-cta { display: none !important; }
}

/* --- モーション配慮 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
