/* =========================
   Satsuma Official Footer (LP override)
   ・main.css の影響を打ち消して公式フッター寄せにする
   ・このファイルを footer.css として “丸ごと上書き”
========================= */

/* ---- base reset (footer only) ---- */
html body footer#footer {
  background: #757575;
  color: #fff;
  padding: 40px 0 30px;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

html body footer#footer,
html body footer#footer * {
  box-sizing: border-box;
}

html body footer#footer ul,
html body footer#footer li {
  list-style: none;
  margin: 0;
  padding: 0;
}

html body footer#footer img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* a の下線/疑似要素/色を main.css から取り戻す */
html body footer#footer a {
  color: #fff;
  text-decoration: none !important;
  font-weight: 700;
}

html body footer#footer a:hover,
html body footer#footer a:focus,
html body footer#footer a:active,
html body footer#footer a:visited {
  color: #fff;
  text-decoration: none !important;
}

html body footer#footer a:hover {
  opacity: 0.8;
}

/* 「外部リンクアイコン」等の疑似要素が出る場合を潰す */
html body footer#footer a::before,
html body footer#footer a::after {
  content: none !important;
}

/* <br class="sp"> 用（LP側に無い場合があるので保険） */
html body footer#footer .sp {
  display: none;
}

/* ---- layout (PC) ---- */
html body footer#footer #fTop {
  width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html body footer#footer #fLogo {
  margin: 0;
}

html body footer#footer #fTop p {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  font-weight: 700;
}

html body footer#footer #fNav {
  width: 960px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* メニュー側 */
html body footer#footer #fNav > ul:not(#sns) {
  width: 800px;
  display: flex;
  flex-wrap: wrap;
}

html body footer#footer #fNav > ul:not(#sns) > li {
  width: calc(100% / 6);
  padding: 4px 0;
}

html body footer#footer #fNav > ul:not(#sns) > li a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

/* WPの子階層が出てくるのを抑止（公式と同様に非表示運用なら） */
html body footer#footer #fNav > ul:not(#sns) li .children {
  display: none;
}

/* SNS（公式は右側に並ぶ） */
html body footer#footer #sns {
  width: 135px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}

html body footer#footer #sns li {
  margin: 0;
  padding: 0;
}

html body footer#footer #sns a {
  display: block;
  opacity: 1;
}

html body footer#footer #sns a:hover {
  opacity: 0.7;
}

html body footer#footer #sns img {
  width: 24px;
  height: 24px;
}

/* copyright */
html body footer#footer #copyright {
  text-align: center;
  margin: 50px 0 0;
  font-size: 14px;
  font-weight: 700;
}

html body footer#footer #copyright small {
  font-size: inherit;
}

/* pagetop（右上の丸） */
html body footer#footer #pagetop {
  position: absolute;
  right: 40px;
  top: 40px;
  width: 44px;
  margin: 0;
}

html body footer#footer #pagetop a {
  display: block;
}

html body footer#footer #pagetop img {
  width: 44px;
  height: 44px;
}

/* LP側に #go-page-top がある場合の保険（不要なら消してOK） */
html body footer#footer #go-page-top {
  display: none;
}

/* PCではフロートナビは出さない（公式もSPのみ） */
html body footer#footer #floatNav {
  display: none;
}

/* ---- responsive (SP) ---- */
@media (max-width: 768px) {
  html body footer#footer {
    padding: 30px 20px;
    text-align: center;
  }

  html body footer#footer .sp {
    display: block;
  }

  html body footer#footer #fTop,
  html body footer#footer #fNav {
    width: 100%;
  }

  html body footer#footer #fTop {
    display: block;
  }

  html body footer#footer #fTop #fLogo {
    margin-bottom: 20px;
  }

  html body footer#footer #fTop #fLogo img {
    width: 150px;
  }

  html body footer#footer #fTop p {
    font-size: 13px;
    line-height: 1.9;
  }

  html body footer#footer #fNav {
    border-top: 1px solid #292929;
    margin-top: 20px;
    display: block;
  }

  html body footer#footer #fNav > ul:not(#sns) {
    width: 100%;
    display: block;
  }

  html body footer#footer #fNav > ul:not(#sns) > li {
    width: auto;
    border-bottom: 1px solid #292929;
    padding: 0;
  }

  html body footer#footer #fNav > ul:not(#sns) > li a {
    display: block;
    padding: 10px;
    font-size: 14px;
  }

  /* SPはSNSを下へセンター配置（公式のSP寄せ） */
  html body footer#footer #sns {
    width: auto;
    margin: 30px auto 0;
    justify-content: center;
    gap: 14px;
  }

  html body footer#footer #copyright {
    font-size: 12px;
    margin-top: 30px;
  }

  html body footer#footer #pagetop {
    width: 32px;
    right: 20px;
    top: 20px;
  }

  /* SPだけフロートナビ表示 */
  html body footer#footer #floatNav {
    position: fixed;
    right: 0;
    bottom: 151px;
    z-index: 5;
    display: block;
  }

  html body footer#footer #floatNav li {
    margin-top: 1px;
  }

  html body footer#footer #floatNav li a {
    display: flex;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
  }

  html body footer#footer #floatNav li.tel a {
    background: #f39801;
  }

  html body footer#footer #floatNav li.line a {
    background: #06c755;
  }

  html body footer#footer #floatNav li a img {
    width: 24px;
  }
}
