/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author: Vektor,Inc.
Author URI: https://www.vektor-inc.co.jp
Tags:
Version: 0.6.1
*/

/* =========================================================
   フッター 統合CSS（meiko風）標準部品 v4
   内容：ダーク化 ／ 全幅区切り線 ／ 最下部3カラム配置
   貼り場所：外観→カスタマイズ→追加CSS、または子テーマ style.css
   ※以前のフッターCSSは全部削除して、これ1つに置き換える
   ========================================================= */

/* --- フッター全体を濃いグレー＋白文字に --- */
.site-footer {
  background-color: #2b2f33; /* ダークグレー（好みで変更可） */
  color: #ffffff;
}

/* --- フッター内の文字・見出しを白に --- */
.site-footer p,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widgettitle {
  color: #ffffff;
}

/* --- リンクは薄いグレー、ホバーで白に --- */
.site-footer a {
  color: #cfd3d7;
}
.site-footer a:hover {
  color: #ffffff;
}

/* --- ウィジェットの区切り線などを暗背景になじませる --- */
.site-footer hr,
.site-footer .widget {
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- コピーライト部分も背景をなじませる --- */
.site-footer .site-footer-copyright {
  background-color: #2b2f33;
  color: #ffffff;
  border-top: none !important; /* 元の中央寄せ線を消す（全幅線を引き直すため） */
  position: relative;
}

/* --- コピーライト上の区切り線を画面の両端いっぱいに伸ばす --- */
.site-footer .site-footer-copyright::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;                /* 画面の横幅いっぱい */
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   最下部 3カラム配置（左：JA|EN ／ 中央：コピー ／ 右：Page top）
   ========================================================= */

/* 3つを横並びにする */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* 中央を“画面中央”に固定するため、左右を均等幅で確保 */
.footer-bottom__lang,
.footer-bottom__pagetop {
  flex: 1;
}
.footer-bottom__pagetop {
  text-align: right;       /* 右の要素は右寄せ */
}
.footer-bottom__copy {
  flex: 0 0 auto;          /* 中央は中身ぶんの幅 */
  text-align: center;
  white-space: nowrap;     /* コピーライトを改行させない */
}

/* リンクの色（ダーク背景向け） */
.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}
.footer-bottom__lang a:hover,
.footer-bottom__pagetop a:hover {
  opacity: 0.7;
}

/* JA|EN の区切り「|」を少し薄く */
.footer-bottom__lang span {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 4px;
}

/* Page top の矢印を丸で囲む */
.footer-bottom__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 0.85em;
}

/* スマホでは縦に積む */
@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom__lang,
  .footer-bottom__pagetop {
    flex: none;
    text-align: center;
  }
}