/* =========================================================
   G-Force 共通ヘッダー・フッター（2026年11月リニューアル）
   ・クラス名はすべて gf- で始まる（既存のCSSと衝突させない）
   ・既存のCSS（custom.css など）より後に読み込む
   ・PC / タブレット（〜1180px）/ SP（〜960px）
   ========================================================= */

:root{--gfl-hd-h:80px}
@media (max-width:960px){:root{--gfl-hd-h:68px}}

/* ページ内リンクで飛んだとき、見出しがヘッダーに隠れないようにする */
html{scroll-padding-top:calc(var(--gfl-hd-h) + 16px)}

.gf-hd,.gf-ft{
  --gfl-navy:#0C1E3E;
  --gfl-ink:#141824;
  --gfl-mute:#5d6577;
  --gfl-line:#e5e7ee;
  --gfl-red:#E63946;
  --gfl-ease:cubic-bezier(.2,.8,.2,1);
  font-family:"Noto Sans JP",system-ui,sans-serif;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}
.gf-hd *,.gf-ft *{box-sizing:border-box}
.gf-hd ul,.gf-ft ul{list-style:none;margin:0;padding:0}
.gf-hd li,.gf-ft li{margin:0;padding:0}
.gf-hd a,.gf-ft a{text-decoration:none;color:inherit}
.gf-hd p,.gf-ft p,.gf-ft h4{margin:0}
.gf-hd img,.gf-ft img{display:block;max-width:none}
.gf-en{font-family:Inter,"Noto Sans JP",sans-serif;letter-spacing:.02em}
/* 既存の custom.css にある li・a の行間の指定を打ち消す（見本と同じ行間にする） */
.gf-hd li,.gf-ft li,.gf-hd a,.gf-ft a{line-height:1.8}
.gf-wrap{width:min(1080px,84%);margin:0 auto}
@media (max-width:960px){.gf-wrap{width:90%}}

/* =========================================================
   ヘッダー
   ========================================================= */
.gf-hd{position:fixed;top:0;left:0;right:0;z-index:1000;background:#fff;box-shadow:0 2px 14px rgba(12,30,62,.08)}
/* ログイン中の管理バーと重ならないように */
.admin-bar .gf-hd{top:32px}
@media screen and (max-width:782px){.admin-bar .gf-hd{top:46px}}
@media screen and (max-width:600px){.admin-bar .gf-hd{top:0}}
/* ヘッダーの高さぶんの余白（本文がヘッダーの下に隠れないように） */
.gf-hd-spacer{height:var(--gfl-hd-h)}

.gf-nav{position:relative;display:flex;align-items:center;width:100%;height:var(--gfl-hd-h);padding:0 22px}
.gf-logo{display:flex;align-items:center;flex-shrink:0}
.gf-logo img{height:29px;width:auto}

/* 既存の custom.css にある「* {position:relative}」の影響を打ち消す（サブメニューをヘッダー全幅で出すため） */
.gf-menu,.gf-menu>li{position:static}
.gf-menu{display:flex;align-self:stretch;margin-left:auto !important;gap:46px;font-size:15.5px;font-weight:700;color:var(--gfl-navy)}
.gf-menu>li{display:flex;align-items:center}
.gf-menu>li>a{position:relative;color:var(--gfl-navy);white-space:nowrap}
.gf-menu>li>a::after{content:"";position:absolute;left:0;bottom:-4px;width:100%;height:2px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .35s var(--gfl-ease)}
.gf-menu>li>a:hover::after{transform:scaleX(1);transform-origin:left}

/* サービスのサブメニュー */
.gf-has-sub>a{display:flex;align-items:center;gap:6px}
.gf-has-sub>a::before{content:"";order:2;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .3s}
.gf-has-sub:hover>a::before{transform:rotate(225deg) translateY(-2px)}
.gf-subbar{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--gfl-line);box-shadow:0 18px 30px -18px rgba(12,30,62,.25);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s,transform .3s var(--gfl-ease),visibility .25s}
.gf-has-sub:hover .gf-subbar,.gf-has-sub:focus-within .gf-subbar{opacity:1;visibility:visible;transform:none}
.gf-subbar-in{display:flex;justify-content:center;gap:14px;padding:16px 22px}
.gf-subbar a{display:flex;align-items:center;gap:14px;min-width:220px;padding:14px 22px;border-radius:14px;border:1px solid var(--gfl-line);color:var(--gfl-ink);transition:all .3s var(--gfl-ease)}
.gf-subbar img{height:26px;width:auto}
.gf-subbar span{margin-left:auto;font-size:12.5px;font-weight:500;color:var(--gfl-mute);white-space:nowrap}
.gf-subbar i{font-style:normal;font-weight:700;color:var(--gfl-red);transition:transform .3s}
.gf-subbar a:hover{border-color:var(--gfl-red);box-shadow:0 10px 22px -12px rgba(230,57,70,.5);transform:translateY(-2px)}
.gf-subbar a:hover i{transform:translateX(4px)}

/* 無料相談ボタン */
.gf-hd-btn{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;margin-left:46px;padding:16px 36px;border-radius:999px;background:var(--gfl-red);color:#fff !important;font-size:15.5px;font-weight:700;white-space:nowrap;box-shadow:0 8px 20px -6px rgba(230,57,70,.55);transition:transform .3s var(--gfl-ease)}
.gf-hd-btn:hover{transform:translateY(-2px)}
.gf-hd-btn svg{width:20px;height:20px;fill:#fff;flex-shrink:0}

/* ハンバーガー（SPのみ表示） */
.gf-burger{display:none}

@media (max-width:1180px){
  .gf-menu{gap:26px;font-size:14.5px}
  .gf-hd-btn{margin-left:26px;padding:14px 24px}
  .gf-subbar-in{flex-wrap:wrap}
  .gf-subbar a{min-width:0;flex:1 1 40%}
}

@media (max-width:960px){
  .gf-nav{padding:0 5%}
  .gf-logo img{height:21px}
  .gf-menu,.gf-hd-btn{display:none}
  .gf-burger,.gf-burger:hover,.gf-burger:focus,.gf-burger:active{display:block;margin-left:auto;padding:4px 6px;background:none;border:0;border-radius:0;box-shadow:none;outline-offset:2px;color:var(--gfl-ink);font-size:26px;line-height:1;cursor:pointer;position:relative}
  /* メニューを開いているときは「×」（閉じる）にする */
  .gf-nav.is-open .gf-burger{color:transparent}
  .gf-nav.is-open .gf-burger::before,.gf-nav.is-open .gf-burger::after{content:"";position:absolute;left:50%;top:50%;width:24px;height:3px;margin:-1.5px 0 0 -12px;border-radius:2px;background:var(--gfl-ink)}
  .gf-nav.is-open .gf-burger::before{transform:rotate(45deg)}
  .gf-nav.is-open .gf-burger::after{transform:rotate(-45deg)}

  /* メニューを開いたとき */
  .gf-nav.is-open .gf-menu{display:flex;flex-direction:column;align-self:auto;position:absolute;top:100%;left:0;right:0;margin:0 !important;padding:24px 6%;gap:26px;max-height:calc(100vh - var(--gfl-hd-h));overflow-y:auto;background:#fff;color:var(--gfl-ink);box-shadow:0 20px 30px -20px rgba(0,0,0,.2)}
  .gf-menu>li{display:block}
  .gf-subbar{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0}
  .gf-subbar-in{flex-direction:column;gap:8px;padding:12px 0 0}
  .gf-subbar a{min-width:0;padding:12px 14px}
  .gf-subbar img{height:20px}
}

/* =========================================================
   フッター
   ========================================================= */
.gf-ft{position:relative;overflow:hidden;display:block;padding:80px 0 30px;background:var(--gfl-navy);color:#fff;font-size:14px}
.gf-ft::before{content:"";position:absolute;inset:0;background:radial-gradient(700px 360px at 100% 0%,rgba(230,57,70,.18),transparent 60%),radial-gradient(600px 300px at 0% 100%,rgba(61,123,255,.14),transparent 60%);pointer-events:none}
.gf-ft .gf-wrap{position:relative}

/* サービスのカード */

/* 会社情報とメニュー */
.gf-ft-main{display:grid;grid-template-columns:1.1fr 1.6fr;gap:60px}
.gf-ft-logo img{height:28px;width:auto}
.gf-ft-lead{margin:18px 0 !important;font-size:17px;font-weight:900;line-height:1.6}
.gf-ft address{margin:0;font-style:normal;font-size:13px;line-height:1.9;color:rgba(255,255,255,.65)}
.gf-ft address a:hover{color:#fff}
.gf-ft-sns{display:flex;gap:12px;margin-top:22px !important}
.gf-ft-sns a{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.22);transition:all .3s}
.gf-ft-sns svg{width:18px;height:18px;fill:#fff}
.gf-ft-sns a:hover{background:var(--gfl-red);border-color:var(--gfl-red);transform:translateY(-2px)}

.gf-ft-nav{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px}
.gf-ft-nav h4{margin-bottom:16px !important;font:800 12px Inter,sans-serif;letter-spacing:.25em;color:rgba(255,255,255,.45)}
.gf-ft-nav ul{display:grid;gap:12px}
.gf-ft-nav li a{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:10px;font-weight:700;color:#fff;transition:color .3s,transform .3s var(--gfl-ease)}
.gf-ft-nav li a small{font-size:11px;font-weight:500;color:rgba(255,255,255,.45)}
.gf-ft-nav li a:hover{color:#ff8a93;transform:translateX(3px)}
.gf-ft-cta{display:inline-flex;align-items:center;gap:10px;margin-top:24px;padding:12px 22px;border-radius:999px;background:var(--gfl-red);color:#fff !important;font-size:13.5px;font-weight:700;white-space:nowrap;box-shadow:0 10px 24px -10px rgba(230,57,70,.8);transition:transform .3s}
.gf-ft-cta:hover{transform:translateY(-2px)}

/* コピーライト */
.gf-ft-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:56px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);font-size:12px;color:rgba(255,255,255,.5)}
.gf-ft-legal{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.gf-ft-legal a:hover{color:#fff}
.gf-ft-top{padding:8px 14px;border:1px solid rgba(255,255,255,.25);border-radius:999px;font:800 11px Inter,sans-serif;letter-spacing:.2em}
.gf-ft a.gf-ft-top{line-height:normal}

@media (max-width:1100px){
  .gf-ft-main{grid-template-columns:1fr;gap:44px}
}
@media (max-width:640px){
  .gf-ft{padding:60px 0 26px}
  .gf-ft-nav{grid-template-columns:1fr 1fr;gap:30px 20px}
  .gf-ft-nav>div:first-child{grid-column:1/-1}
  .gf-ft-bottom{flex-direction:column-reverse;align-items:flex-start}
}
