/* =============================================
   LEAD TOTAL SUPPORT GROUP — stg2 デザインシステム
   コンセプト: フォレストグリーン × ゴールド、企業の信頼と成長
============================================= */
:root {
  --c-forest:      #16281c;
  --c-forest-deep: #0d1a11;
  --c-forest-mid:  #1e3524;
  --c-forest-line: rgba(255,255,255,.1);
  --c-gold:        #b8935a;
  --c-gold-light:  #d4b783;
  --c-gold-deep:   #96773f;
  --c-cream:       #f7f4ec;
  --c-cream-2:     #efe9dc;
  --c-white:       #ffffff;
  --c-ink:         #1a2018;
  --c-sub:         #5c6358;
  --c-line:        #e2ddd0;

  --ff-display: 'Noto Sans JP', sans-serif;
  --ff-serif:   'Noto Serif JP', serif;
  --ff-latin:   'Cormorant Garamond', serif;
  --ff-sans:    'Noto Sans JP', sans-serif;

  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* =============================================
   TOP BAR
============================================= */
.ld-topbar {
  background: var(--c-forest-deep);
  color: rgba(255,255,255,.75);
  font-size: 12px;
}
.ld-topbar__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.ld-topbar__sns {
  display: flex; gap: 20px;
}
.ld-topbar__sns a {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.ld-topbar__sns a:hover { color: var(--c-gold-light); }
.ld-topbar__tels {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.ld-topbar__tels a {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; line-height: 1.4;
  color: rgba(255,255,255,.8);
}
.ld-topbar__tel-label {
  font-size: 10px; color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}
.ld-topbar__tel-num {
  font-family: var(--ff-sans); font-weight: 700; font-size: 13px;
  color: #fff; transition: color .2s;
}
.ld-topbar__tels a:hover .ld-topbar__tel-num { color: var(--c-gold-light); }
.ld-topbar__tel--free .ld-topbar__tel-num { color: var(--c-gold-light); }

/* =============================================
   MAIN HEADER
============================================= */
.ld-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.ld-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 40px;
  display: flex; align-items: center; gap: 32px;
}
.ld-header__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.ld-header__logo-img { width: 38px; height: 38px; object-fit: contain; }
.ld-header__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.ld-header__logo-main {
  font-family: var(--ff-latin); font-size: 22px; font-weight: 700;
  color: var(--c-forest); letter-spacing: .04em;
}
.ld-header__logo-sub {
  font-family: var(--ff-sans); font-size: 9px; font-weight: 700;
  letter-spacing: .18em; color: var(--c-gold-deep);
}
.ld-header__nav { flex: 1; overflow: hidden; }
.ld-header__nav-list {
  display: flex; gap: 0; list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap; justify-content: flex-end;
}
.ld-header__nav-list li { position: relative; }
.ld-header__nav-list > li + li { border-left: 1px solid var(--c-line); }
.ld-header__nav-list > li > a {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 18px;
  font-size: 13px; font-weight: 700; color: var(--c-ink);
  text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.ld-header__nav-list > li > a span {
  font-family: var(--ff-latin); font-size: 9px; font-weight: 400;
  letter-spacing: .1em; color: var(--c-sub); margin-top: 2px;
}
.ld-header__nav-list > li > a:hover { color: var(--c-gold-deep); }
.ld-header__cta {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; flex-shrink: 0;
  background: var(--c-forest); color: #fff;
  font-size: 13px; font-weight: 700;
  text-decoration: none; border-radius: 3px;
  transition: background .2s;
}
.ld-header__cta:hover { background: var(--c-gold-deep); }

/* ハンバーガー */
.ld-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; background: none; border: none; padding: 0;
  flex-shrink: 0; z-index: 901;
}
.ld-hamburger span { display: block; height: 2px; background: var(--c-forest); transition: all .3s; }
.ld-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ld-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ld-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SP ドロワー */
.ld-drawer {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(320px, 85vw);
  background: var(--c-forest);
  z-index: 899; overflow-y: auto;
  transition: right .35s var(--ease);
  padding: 24px 24px 100px;
}
.ld-drawer.is-open { right: 0; }
.ld-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 12px;
  border-bottom: 1px solid var(--c-forest-line);
}
.ld-drawer__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ld-drawer__logo img { width: 32px; }
.ld-drawer__logo span { font-family: var(--ff-latin); font-size: 15px; color: #fff; font-weight: 700; }
.ld-drawer__close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  position: relative; cursor: pointer;
}
.ld-drawer__close span {
  position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px;
  background: #fff;
}
.ld-drawer__close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.ld-drawer__close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.ld-drawer__nav-list { list-style: none; margin: 0; padding: 0; }
.ld-drawer__nav-list li { border-bottom: 1px solid var(--c-forest-line); }
.ld-drawer__nav-list a {
  display: block; padding: 14px 4px;
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 700;
}
.ld-drawer__contact { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.ld-drawer__tel {
  display: block; text-align: center; padding: 14px;
  background: rgba(255,255,255,.08); border: 1px solid var(--c-gold);
  color: var(--c-gold-light); font-family: var(--ff-sans); font-weight: 700; font-size: 18px;
  text-decoration: none; border-radius: 3px;
}
.ld-drawer__btn {
  display: block; text-align: center; padding: 14px;
  background: var(--c-gold); color: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none; border-radius: 3px;
}
.ld-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 898; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ld-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .ld-header__nav { display: none; }
  .ld-header__cta { display: none; }
  .ld-hamburger { display: flex; }
  .ld-topbar__tels { gap: 12px; }
  .ld-topbar__tel-label { display: none; }
}
@media (max-width: 640px) {
  .ld-topbar__inner { padding: 8px 20px; }
  .ld-topbar__sns span { display: none; }
  .ld-header__inner { padding: 12px 20px; }
  .ld-header__logo-main { font-size: 19px; }
}

/* =============================================
   FOOTER
============================================= */
.ld-footer { background: var(--c-forest); color: rgba(255,255,255,.75); }
.ld-footer__top { background: var(--c-forest-deep); border-bottom: 1px solid var(--c-forest-line); }
.ld-footer__top-inner {
  max-width: 1280px; margin: 0 auto; padding: 20px 40px;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 20px;
}
.ld-footer__contact-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); text-decoration: none; font-size: 12px;
}
.ld-footer__contact-item svg { flex-shrink: 0; color: var(--c-gold-light); }
.ld-footer__contact-item small { display: block; color: rgba(255,255,255,.45); font-size: 10px; margin-top: 2px; }
.ld-footer__tel-label { display: block; font-size: 10px; color: rgba(255,255,255,.5); }
.ld-footer__tel-num { font-family: var(--ff-sans); font-weight: 700; font-size: 15px; color: #fff; }

.ld-footer__main {
  max-width: 1280px; margin: 0 auto; padding: 56px 40px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.ld-footer__brand { }
.ld-footer__logo-img { width: 40px; margin-bottom: 10px; }
.ld-footer__logo-text { display: flex; flex-direction: column; margin-bottom: 14px; }
.ld-footer__logo-main { font-family: var(--ff-latin); font-size: 22px; font-weight: 700; color: #fff; }
.ld-footer__logo-sub { font-size: 9px; letter-spacing: .16em; color: var(--c-gold-light); }
.ld-footer__tagline { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.55); }

.ld-footer__office-name {
  font-family: var(--ff-serif); font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--c-gold);
  display: inline-block;
}
.ld-footer__office-name span { font-size: 11px; color: var(--c-gold-light); font-weight: 400; margin-left: 4px; }
.ld-footer__office-addr { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.ld-footer__office-addr a { color: rgba(255,255,255,.75); }
.ld-footer__office-link { font-size: 12px; color: var(--c-gold-light); text-decoration: none; }
.ld-footer__office-link:hover { color: #fff; }

.ld-footer__sitemap-title {
  font-family: var(--ff-latin); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; color: var(--c-gold); margin-bottom: 14px;
}
.ld-footer__sitemap ul { list-style: none; margin: 0; padding: 0; }
.ld-footer__sitemap li { border-bottom: 1px solid var(--c-forest-line); }
.ld-footer__sitemap a {
  display: block; padding: 9px 0; font-size: 13px;
  color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s;
}
.ld-footer__sitemap a:hover { color: var(--c-gold-light); }

.ld-footer__bottom {
  border-top: 1px solid var(--c-forest-line);
  text-align: center; padding: 18px 20px;
  font-size: 11px; color: rgba(255,255,255,.4);
}

/* SP固定CTA */
.ld-mobile-cta { display: none; }
@media (max-width: 768px) {
  .ld-footer__top-inner { grid-template-columns: 1fr 1fr; }
  .ld-footer__main { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .ld-mobile-cta {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9999;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px; background: rgba(13,26,17,.96); backdrop-filter: blur(8px);
    border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.3);
  }
  .ld-mobile-cta a {
    display: flex; align-items: center; justify-content: center;
    min-height: 46px; border-radius: 4px; font-size: 13px; font-weight: 700; text-decoration: none;
  }
  .ld-mobile-cta__tel { background: var(--c-gold); color: #fff; }
  .ld-mobile-cta__form { background: #fff; color: var(--c-forest); }
  body.home .site-content, body.front-page .site-content { padding-bottom: 76px; }
}
@media (max-width: 480px) {
  .ld-footer__top-inner, .ld-footer__main { grid-template-columns: 1fr; }
}

/* === コントラスト改善（WCAG AA） === */
:root{--c-gold-deep:#7a5f2c}
body .ld-header__logo-sub,body .fp2-eyebrow,body .fp2-nl-card__title,body .fp2-office__role,body .fp2-news-col time{color:#7a5f2c!important}
body .fp2-news-col a:not(.fp2-news-col__more){color:#6b5226!important}
body .fp2-news-col p{color:#5c6358!important}
body .ld-drawer__btn,body .fp2-worry-cta a,body .fp2-nl-cta__btn,body .fp2-nl-cta__btn:hover,body .fp2-office--gold .fp2-office__cta,body .fp2-office--gold .fp2-office__cta:hover,body .fp2-news-col--news .fp2-news-col__head,body .fp2-role--self .fp2-role__badge{color:#16281c!important}
body .ld-footer small,body .ld-footer__top small,body .ld-footer p{color:rgba(255,255,255,.72)}
/* 閉じているドロワー内にキーボードフォーカスが入らないようにする */
.ld-drawer[aria-hidden="true"]{visibility:hidden;transition:visibility 0s linear .4s}
.ld-drawer[aria-hidden="false"]{visibility:visible;transition:visibility 0s}

/* モバイル固定CTAの電話ボタン: 金色背景に濃色文字でコントラスト確保 */
body .ld-mobile-cta__tel{color:#16281c!important}

/* ヘッダー上部バー: どの画面幅でも「岡山本社/姫路支店」ラベルを表示（どちらの番号か分かるように） */
body .ld-topbar__tel-label{display:block!important;color:rgba(255,255,255,.75)!important;white-space:nowrap}

/* SPメニュー展開中は、ヘッダー側ハンバーガー(z-index:901)がドロワー(899)に重なるため隠す。閉じるはドロワー内の×を使う */
body .ld-hamburger.is-open{visibility:hidden}
