/* =========================================================
   cta.css — 問い合わせ導線の追加スタイル（2026-09）
   ヒーロー直下CTA / 中間CTAバンド / スマホ固定バー / PC追従ボタン / ヘッダー体験ボタン
   既存の赤 #e94346・オレンジ #faa838・クリーム #fef2e1 に合わせる。
   小さい文字を載せる面は少し深い赤 --cta-red-deep（白文字で 4.5:1 を満たす）。
   ========================================================= */
:root {
  --cta-red: #e94346;        /* 大きな文字・アイコン用（既存ブランド赤） */
  --cta-red-deep: #d93a3d;   /* 小さな白文字を載せる面用（白 4.54:1） */
  --cta-red-hover: #f25a5d;
  --cta-red-text: #b8302f;   /* クリーム地・白地の小さなリンク用（5.4:1） */
  --cta-orange: #faa838;
  --cta-cream: #fef2e1;
  --cta-ink: #333;
  --cta-ink-soft: #5a5652;
  --cta-green: #008e06;
  --cta-shadow: rgba(213, 186, 186, 0.55);  /* 既存ボタンの影 #d5baba8c と同値 */
  --cta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 共通ボタン（既存 .cta-btn a の丸ピルを踏襲） ---------- */
.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0.7em 1.6em;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 6px 6px 0 var(--cta-shadow);
  transition: transform 0.25s var(--cta-ease), box-shadow 0.25s var(--cta-ease), background-color 0.2s;
}
.cta-pill:link, .cta-pill:visited { text-decoration: none; }
.cta-pill:hover, .cta-pill:focus-visible {
  transform: translateY(-3px);
  box-shadow: 8px 9px 0 var(--cta-shadow);
  text-decoration: none;
}
.cta-pill:active { transform: translateY(0); box-shadow: 3px 3px 0 var(--cta-shadow); }
.cta-pill:focus-visible { outline: 3px solid #1b6ec2; outline-offset: 3px; }
.cta-pill--primary { background: var(--cta-red); color: #fff; }
.cta-pill--primary:link, .cta-pill--primary:visited { color: #fff; }
.cta-pill--primary:hover, .cta-pill--primary:focus-visible { background: var(--cta-red-hover); color: #fff; }
.cta-pill--secondary { background: #fff; color: var(--cta-red-text); border: 2px solid var(--cta-red); }
.cta-pill--secondary:link, .cta-pill--secondary:visited { color: var(--cta-red-text); }
.cta-pill--secondary:hover, .cta-pill--secondary:focus-visible { background: #fff5f5; color: var(--cta-red-text); }
.cta-pill .fas { font-size: 0.95em; }

/* ---------- ヒーロー直下CTA ---------- */
.hero-cta {
  background: #fff;
  padding: 28px 0 30px;
  color: var(--cta-ink);
}
.hero-cta__inner { text-align: center; }
.hero-cta__title {
  margin: 0 0 0.35em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cta-ink);
  text-wrap: balance;
}
.hero-cta__title em {
  font-style: normal;
  color: var(--cta-red);
}
.hero-cta__sub {
  margin: 0 0 1.1em;
  font-size: 0.95rem;
  color: var(--cta-ink-soft);
}
.hero-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px 22px;
  margin: 0 0 0.6em;
}
.hero-cta__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 400px;
  min-width: 0;
}
.hero-cta__action .cta-pill { width: 100%; }
.hero-cta__note {
  margin: 0.55em 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cta-ink-soft);
}
.hero-cta__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 0.9em auto 0;
  padding: 0;
  max-width: 900px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.hero-cta__proof li { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; }
.hero-cta__proof .fas { color: var(--cta-green); }
.hero-cta__proof b { color: var(--cta-red-text); }
.hero-cta__phone {
  margin: 1em 0 0;
  font-size: 0.95rem;
  color: var(--cta-ink-soft);
}
.hero-cta__phone a {
  font-weight: 700;
  font-size: 1.25em;
  color: var(--cta-ink);
  text-decoration: none;
  white-space: nowrap;
}
.hero-cta__phone a .fas { color: var(--cta-red); margin-right: 0.2em; font-size: 0.85em; }
.hero-cta__phone small { display: inline-block; margin-left: 0.4em; }

/* ---------- 中間CTAバンド ---------- */
.cta-band {
  background: var(--cta-cream);
  padding: 34px 0 36px;
  text-align: center;
  color: var(--cta-ink);
}
.cta-band__lead {
  margin: 0 0 0.9em;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}
.cta-band__lead strong { color: var(--cta-red); }
.cta-band .cta-pill { min-width: min(100%, 420px); }
.cta-band__free {
  margin: 0.7em 0 0;
  font-size: 0.85rem;
  color: var(--cta-ink-soft);
}
.cta-band__free b { color: var(--cta-red-text); }
.cta-band__alt {
  margin: 0.9em 0 0;
  font-size: 0.9rem;
  color: var(--cta-ink-soft);
}
.cta-band__alt a { color: var(--cta-red-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cta-band__alt a[href^="tel:"] { text-decoration: none; }

/* ---------- ヘッダー内・スマホ用「無料体験」ボタン ---------- */
.hd-trial { display: none; }

/* ---------- スマホ固定バー ---------- */
.cta-sticky {
  display: none;
}

/* ---------- PC追従ボタン ---------- */
.cta-float {
  display: none;
}

/* ---------- 既存要素の微調整 ---------- */
.main-visual img { height: auto; }
.main-visual picture { display: block; }

/* =========================================================
   PC / タブレット（768px〜）
   ========================================================= */
@media screen and (min-width: 768px) {
  .cta-float {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 9990;
    padding: 12px 22px 11px;
    border-radius: 40px;
    background: var(--cta-red-deep);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(217, 58, 61, 0.35);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.3s var(--cta-ease), transform 0.3s var(--cta-ease), background-color 0.2s;
  }
  .cta-float.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .cta-float:hover, .cta-float:focus-visible { background: var(--cta-red-hover); color: #fff; text-decoration: none; transform: translateY(-2px); }
  .cta-float:focus-visible { outline: 3px solid #1b6ec2; outline-offset: 3px; }
  .cta-float small { font-size: 0.78rem; font-weight: 700; opacity: 1; }
  .cta-float .fas { margin-right: 0.35em; }
}

/* =========================================================
   スマホ（〜767px）
   ========================================================= */
@media screen and (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  #gototop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* ヘッダー：ハンバーガーの左に体験ボタンを常時表示 */
  .page-header .site-title { width: auto; flex: 1 1 0; min-width: 0; padding-right: 6px; }
  .page-header .tagline { line-height: 1.35; }
  .hd-trial {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: 8px;
    padding: 6px 11px;
    border-radius: 8px;
    background: var(--cta-red-deep);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(217, 58, 61, 0.3);
  }
  .hd-trial small { display: block; font-size: 0.68rem; font-weight: 700; }
  .hd-trial:hover, .hd-trial:focus-visible { color: #fff; background: var(--cta-red-hover); text-decoration: none; }

  /* ヒーロー直下CTA */
  .hero-cta { padding: 22px 0 24px; }
  .hero-cta__title { font-size: 1.2rem; }
  .hero-cta__sub { font-size: 0.88rem; }
  .hero-cta__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-cta__action { flex: 1 1 auto; }
  .cta-pill { font-size: 1.1rem; min-height: 60px; padding: 0.6em 1.1em; white-space: normal; }
  .hero-cta__proof { justify-content: flex-start; gap: 4px 16px; font-size: 0.86rem; text-align: left; }
  .hero-cta__proof li { white-space: normal; }
  .hero-cta__phone { font-size: 0.9rem; }
  .hero-cta__phone small { display: block; margin: 0.2em 0 0; }

  /* 中間CTAバンド */
  .cta-band { padding: 28px 0 30px; }
  .cta-band__lead { font-size: 1.05rem; }
  .cta-band .cta-pill { width: 100%; min-width: 0; }

  /* 固定バー */
  .cta-sticky {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
    transform: translateY(110%);
    transition: transform 0.3s var(--cta-ease);
  }
  .cta-sticky.is-on { transform: translateY(0); }
  .cta-sticky__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 4px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--cta-ink);
    text-align: center;
    text-decoration: none;
  }
  .cta-sticky__item .fas { font-size: 1.15rem; color: var(--cta-red); }
  .cta-sticky__item:hover, .cta-sticky__item:focus-visible { color: var(--cta-ink); text-decoration: none; background: #fff5f5; }
  .cta-sticky__item--trial {
    flex: 1.7 1 0;
    margin: 6px 6px;
    border-radius: 12px;
    background: var(--cta-red-deep);
    color: #fff;
    font-size: 0.95rem;
    gap: 1px;
  }
  .cta-sticky__item--trial .fas { color: #fff; font-size: 1.05rem; }
  .cta-sticky__item--trial small { display: block; font-size: 0.7rem; font-weight: 700; }
  .cta-sticky__item--trial:hover, .cta-sticky__item--trial:focus-visible { background: var(--cta-red-hover); color: #fff; }
  .cta-sticky__item:focus-visible { outline: 3px solid #1b6ec2; outline-offset: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-pill, .cta-float, .cta-sticky { transition: none; }
  .cta-pill:hover, .cta-float:hover { transform: none; }
}

/* ---------- お問い合わせページ：無料体験へのショートカット ---------- */
.contact-shortcut {
  margin: 0 auto 2.2em;
  padding: 24px 18px 22px;
  max-width: 720px;
  border-radius: 14px;
  background: var(--cta-cream);
  text-align: center;
  color: var(--cta-ink);
}
.contact-shortcut__lead { margin: 0 0 0.8em; font-size: 1.05rem; line-height: 1.5; }
.contact-shortcut .cta-pill { min-width: min(100%, 400px); }
/* 下層ページ共通CSSの a { color / underline } より強い指定で打ち消す */
.contact-shortcut a.cta-pill--primary,
.contact-shortcut a.cta-pill--primary:link,
.contact-shortcut a.cta-pill--primary:visited,
.contact-shortcut a.cta-pill--primary:hover,
.contact-shortcut a.cta-pill--primary:focus { color: #fff; text-decoration: none; }
.contact-shortcut a.cta-pill--primary:hover,
.contact-shortcut a.cta-pill--primary:focus { background: var(--cta-red-hover); }
.contact-shortcut .contact-shortcut__tel a,
.contact-shortcut .contact-shortcut__tel a:link,
.contact-shortcut .contact-shortcut__tel a:visited { color: var(--cta-ink); text-decoration: none; }
.cta-nobr { white-space: nowrap; }
.contact-shortcut__note { margin: 0.7em 0 0; font-size: 0.85rem; color: var(--cta-ink-soft); }
.contact-shortcut__note b { color: var(--cta-red-text); }
.contact-shortcut__tel { margin: 0.9em 0 0; font-size: 0.95rem; color: var(--cta-ink-soft); }
.contact-shortcut__tel a { font-weight: 700; font-size: 1.2em; color: var(--cta-ink); text-decoration: none; white-space: nowrap; }
.contact-shortcut__tel a .fas { color: var(--cta-red); margin-right: 0.2em; font-size: 0.85em; }
@media screen and (max-width: 767px) {
  .contact-shortcut { padding: 20px 14px 18px; }
  .contact-shortcut .cta-pill { width: 100%; min-width: 0; }
  .contact-shortcut__tel small { display: block; margin-top: 0.2em; }
}
