/* ヘッダーのお問い合わせボタン／モバイルの帯ボタン（2026-11） */
#header .header-extras { margin: 14px 0 0 !important; }
#header .he-text { text-align: right; }
#header .he-text .he-lead {
  margin: 0 0 6px; padding: 0;
  font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0;
  color: #666; text-transform: none;
}
#header .he-text h1.he-lead span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#header .he-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #d52b1e; color: #fff !important;
  border-radius: 999px; padding: 6px 20px 6px 6px; line-height: 1;
  box-shadow: 0 2px 6px rgba(213,43,30,.25);
  transition: background .2s;
}
#header .he-cta:hover { background: #b8241a; }
#header .he-cta .he-free {
  background: #fff; color: #d52b1e;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  border-radius: 999px; padding: 7px 10px;
}
#header .he-cta .he-main { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
#header .he-cta .he-main i { margin-right: 6px; }

/* モバイルの帯ボタン（PCでは非表示） */
.st-cta-bar { display: none; }

@media (max-width: 767px) {
  #top-bar { display: none; }
  #header > .container {
    display: flex !important; align-items: center; justify-content: space-between;
    padding-top: 10px; padding-bottom: 10px;
  }
  #header > .container::before, #header > .container::after { display: none; }
  #header #logo {
    float: none !important; width: auto !important; height: auto !important;
    margin: 0 !important; padding: 0 !important; line-height: 1 !important;
    text-align: left !important; flex: 0 1 auto;
  }
  #header #logo a { display: block !important; margin: 0 !important; }
  #header #logo a.standard-logo { display: none !important; }
  #header #logo img { width: 150px !important; height: auto !important; max-width: none; }
  #header .header-extras { display: block !important; float: none !important; width: auto !important; margin: 0 !important; flex: none; }
  /* 添え書きはモバイルでは画面外へ（トップの h1 は文書内に残す） */
  #header .he-text .he-lead {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
  }
  #header .he-cta {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0; border-radius: 8px; overflow: hidden; box-shadow: none; text-align: center;
  }
  #header .he-cta .he-free {
    background: #fff; border: 1.5px solid #d52b1e; border-bottom: none;
    border-radius: 8px 8px 0 0; font-size: 10px; padding: 4px 6px; letter-spacing: 0;
  }
  #header .he-cta .he-main { font-size: 12.5px; padding: 7px 10px; }
  #header .he-cta .he-long { display: none; }

  .st-cta-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 299;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .25s ease;
  }
  .st-cta-bar.is-on { transform: none; }
  .st-cta-bar .st-cta-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; font-weight: 700; color: #333; }
  .st-cta-bar .st-cta-txt small { display: block; font-size: 10.5px; font-weight: 600; color: #888; }
  .st-cta-bar .st-cta-btn {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    background: #d52b1e; color: #fff !important;
    font-size: 14px; font-weight: 700; line-height: 1;
    padding: 11px 16px; border-radius: 8px;
  }
  body.st-cta-on #gotoTop { bottom: 76px !important; }
}

/* Font Awesome 7 置き換えに伴う互換指定（テンプレート側の icon-* 向けの指定を引き継ぐ） */
.top-links li i.fa-angle-down { margin: 0 0 0 5px !important; }
#primary-menu ul li > a i.fa-angle-down:last-child { font-size: 12px; margin: 0 0 0 5px; }
#page-menu nav li a .fa-angle-down { margin-left: 5px; }
@media (max-width: 991px) {
  #primary-menu ul:not(.windows-mobile-menu) li > a i.fa-angle-down:last-child { display: none; }
  #primary-menu .container #primary-menu-trigger .fa-bars { display: none; }
}

/* フォームのチェックボックス（個人情報の同意など）のチェック記号を Font Awesome 7 に */
.checkbox-style:checked + .checkbox-style-3-label:before,
.radio-style:checked + .radio-style-3-label:before {
  content: "\f00c";
  font-family: "Font Awesome 7 Pro";
  font-weight: 900;
}
