@charset "utf-8";
/* group.css — グループ共通ヘッダー/フッター（BP統一：SPは 879px 以下） */

/* ===============================
   グループ共通ヘッダー/フッター 基本設定
================================= */

/* 共通フォント（gHeader / gFooter 配下） */
#gFooter,
#gHeader {
  font: 13px/1.231 arial, helvetica, clean, "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
}

/* リセット（gStyle スコープ内） */
.gStyle li,
.gStyle ol,
.gStyle p,
.gStyle ul {
  font-size: 100%;
  font-style: normal;
  font-weight: 400;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
.gStyle img { border: 0; vertical-align: bottom; }
.gStyle ol, .gStyle ul { list-style: none; }

/* ベースカラー */
div.gStyle {
  background-color: #fff;
  color: #000;
  line-height: 1.5;
}

/* 共通幅（中央寄せ・上限 1460px） */
div.gStyle div.gStyleIn {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* gStyle 内のリンク（色・下線を明示） */
.gStyle a {
  color: #0072BA !important;
  font-size: 14px;
  text-decoration: underline !important;
}
.gStyle a:hover { text-decoration: underline !important; }

/* ===============================
   gHeader（グループ共通ヘッダー）
================================= */
div#gHeader {
  border-top: 2px solid #0072ba;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
}

/* gHeader 内行（右寄せ運用のまま） */
#gHeader .gStyleIn { justify-content: flex-end; }

/* ロゴ */
div#gHeader p.groupLogo { margin: 4px 0; }
#gHeader .groupLogo img {
  width: 121px;
  height: 16px;
}

/* ===============================
   gFooter（グループ共通フッター）
================================= */
div#gFooter {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

div#gFooter p.groupLogo {
  margin: 0;
  flex-shrink: 0;
  width: 200px;
}
div#gFooter p.groupLogo img {
  width: 181px !important;
  height: 24px !important;
  max-width: none !important;
}

/* フッター右側リンク群 */
div#gFooter div#gFooterGroups { text-align: right; }
div#gFooter div#gFooterGroups p { margin: 0 0 7px; }
div#gFooter div#gFooterGroups ul { line-height: 1; }
div#gFooter div#gFooterGroups ul li {
  display: inline;
  border-left: 1px solid #ccc;
  margin: 0 0 0 9px;
  padding: 0 0 0 9px;
}
div#gFooter div#gFooterGroups ul li.first {
  border: 0;
  margin-left: 0;
  padding: 0;
}
div#gFooter div#gFooterGroups ul li a { white-space: nowrap; }

/* clearfix（レガシー互換） */
div#gFooter, div#gHeader { zoom: 1; }
div#gFooter:after, div#gHeader:after {
  content: ".";
  display: block;
  height: 0;
  line-height: 0;
  visibility: hidden;
  clear: both;
}

/* site-footer__logo 調整（既存テーマ連携） */
.site-footer__logo {
  padding-right: 20px;
  display: inline-block;
  width: auto;
}

/* ===============================
   レスポンシブ（BP統一）
================================= */

/* SP：879px 以下 */
@media screen and (max-width: 879px) {
  #gHeader { display: none; }

  div.gStyle div.gStyleIn {
    width: 100%;
    margin: 0;
    text-align: center;
    justify-content: center;
    padding: 0 16px;
  }

  .site-footer__logo { padding-right: 0; }

  #gFooterGroups { float: none; display: none; }

  div#gFooter {
    font-size: 12px;
    text-align: center;
  }

  div#gFooter p.groupLogo {
    float: none;
    display: inline-block;
    margin: 0 auto;
    flex-shrink: 0;
  }

  div#gFooter p.groupLogo img {
    width: 181px !important;
    height: 24px !important;
  }

  #copyrightBlock {
    margin-bottom: 10px;
    font-size: 8pt;
  }
}

/* ===============================
   グローバル a 初期化（必要なら維持）
   ※ .gStyle a を打ち消さないため上で !important 済み
================================= */
a {
  color: inherit;
  text-decoration: none;
}

/* 変形後も中身が見切れないように */
#js-site-header, #gHeader { overflow: visible; }
