/* ==========================================================
   STUDIO（service.stepforward-learning.com）の共通ヘッダー・フッターに
   WPテーマの見た目を寄せるための上書きCSS
   作成：2026-11-11  置き場所：/wp/wp-content/themes/stepforward/sf-common-2026-11.css
   読み込み：header.php の wp_head() の直後（style.css より後）
   値の出典：service.stepforward-learning.com/company の公開表示（2026-11-11実測）
   ========================================================== */

:root {
  --sf-blue: #0097d6;
  --sf-text: #333333;
  --sf-copy-bg: #212121;
  --sf-font: "Lato", "Noto Sans JP", sans-serif;
  --sf-grad-doc: linear-gradient(90deg, #11d0b0 0%, #008f8a 100%);
  --sf-grad-contact: linear-gradient(90deg, #45c6f7 0%, #0087d2 100%);
  --sf-grad-trial: linear-gradient(90deg, #ffbb00 0%, #ff7b00 100%);
}

/* ---------- ヘッダー：ロゴ（STUDIOは幅288px） ---------- */
@media (min-width: 769px) {
  .l-header .l-header__logo-img {
    width: 288px;
    height: auto;
  }
}

/* ---------- ヘッダー：ボタン3つ（色違いのグラデーション・丸い形） ---------- */
.l-header .l-headerBtn__btn.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 10px 22px 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--sf-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  transition: opacity .2s;
}
.l-header .l-headerBtn__btn.sf-btn:hover { opacity: .7; }
.l-header .l-headerBtn__btn.sf-btn .sf-btn__arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
/* PCだけ並べ直す（スマホは元のCSSどおり非表示のまま） */
@media (min-width: 769px) {
  .l-header .c-btn-group.l-header__btn { display: flex; justify-content: flex-end; gap: 12px; }
  .l-header .c-btn-group.l-header__btn .u-m-r-10 { margin-right: 0 !important; }
}

.sf-btn--doc     { background: var(--sf-grad-doc) !important; }
.sf-btn--contact { background: var(--sf-grad-contact) !important; }
.sf-btn--trial   { background: var(--sf-grad-trial) !important; }

/* 画面下の固定ボタン（WPだけにある）：大きさはそのまま、色と角だけ揃える */
.p-floating .l-headerBtn__btn.sf-btn { border-radius: 999px; }

/* スマホメニュー内の電話番号・受付時間：common.css の白文字が白地に乗って見えなかった（2026-11-11 修正） */
.l-nav .p-floating__telephone { color: var(--sf-blue) !important; }
.l-nav .p-floating__schedule  { color: var(--sf-text) !important; }

/* ---------- ヘッダー：メニュー行の書体 ---------- */
.l-header .l-nav__li-link { font-family: var(--sf-font); }
@media (min-width: 769px) {
  .l-header .l-nav__ul:not(.l-nav__ul--second) > .l-nav__li > .l-nav__li-link { font-weight: 600; }
}

/* ==========================================================
   フッター（STUDIOの Footer 部品を再現）
   ========================================================== */
.sf-footer {
  font-family: var(--sf-font);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.sf-footer a { color: #fff; text-decoration: none; }
.sf-footer a:hover { opacity: .7; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; }

.sf-footer__main { background: var(--sf-blue); padding: 40px 20px 0; }
.sf-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  column-gap: 32px;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}
.sf-footer .sf-footer__group { margin: 0 0 26px; }

/* 見出し（— 付き・16px太字） */
.sf-footer__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}
.sf-footer__head::before {
  content: "";
  flex: 0 0 14px;
  height: 2px;
  background: #fff;
}
.sf-footer .sf-footer__heads > li + li { margin-top: 14px; }

/* 下層（14px・右に ›） */
.sf-footer .sf-footer__sub { margin-top: 8px; }
.sf-footer__sub a {
  position: relative;
  display: block;
  padding: 4px 24px 4px 24px;
  font-size: 14px;
  line-height: 21px;
}
.sf-footer__sub a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

/* 理念ブロック */
.sf-footer__vision { margin-top: 10px; }
.sf-footer__vision-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}
.sf-footer__vision-head img { width: 56px; height: auto; }
.sf-footer__vision p { margin: 0; font-size: 14px; line-height: 1.55; }

/* 下段のリンク（サイトマップ｜受講約款｜…）
   .sf-footer ul{padding:0} に負けないよう .sf-footer を前に付ける（2026-11-11）。
   上の余白は列の下の余白で足りている（STUDIO 41px／こちら40px）。下はSTUDIO実測の32px */
.sf-footer .sf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0 32px;
}
.sf-footer__legal li { font-size: 12px; line-height: 18px; }
.sf-footer__legal li:not(:last-child) { border-right: 1px solid #fff; }
.sf-footer__legal a { display: block; padding: 0 16px; }

/* コピーライト帯 */
.sf-footer__copy {
  background: var(--sf-copy-bg);
  padding: 11px 20px;
  text-align: center;
}
.sf-footer__copy small { font-size: 12px; line-height: 18px; color: rgba(255,255,255,.85); }

/* ---------- スマホ（768px以下）：1列 ---------- */
@media (max-width: 768px) {
  .sf-footer__main { padding: 32px 28px 0; }
  .sf-footer__cols { grid-template-columns: 1fr; column-gap: 0; }
  .sf-footer .sf-footer__group { margin-bottom: 18px; }
  .sf-footer__sub a { padding: 3px 36px 3px 24px; font-size: 14px; }
  .sf-footer__sub a::after { right: 34px; }
  .sf-footer__vision { margin: 16px 0 12px; }
  .sf-footer__vision-head { font-size: 18px; }
  .sf-footer .sf-footer__legal { padding: 0 0 24px; row-gap: 14px; }
  .sf-footer__legal a { padding: 0 12px; }
}

/* ==========================================================
   /voices/ 一覧の下の申込み帯（STUDIO /studying-abroad の Contact を再現）
   写真：テーマ直下の sf-contact-bg.webp（STUDIOの同じ写真、2400x1600）
   ========================================================== */
.sf-contact {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 615px;
  padding: 72px max(20px, calc(50% - 540px));
  background: linear-gradient(90deg, rgba(0,40,70,.35) 0%, rgba(0,40,70,.05) 55%, rgba(0,0,0,0) 100%),
              url("sf-contact-bg.webp") center / cover no-repeat;
  font-family: var(--sf-font);
  color: var(--sf-text);
  text-align: center;
}
.sf-contact__card {
  width: 580px;
  max-width: 100%;
  padding: 44px 40px 40px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.sf-contact__en {
  margin: 0 0 8px;
  color: var(--sf-blue);
  font-family: "Lato", sans-serif;
  font-size: 56px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.2;
}
.sf-contact__title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}
.sf-contact__micro {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.sf-contact .sf-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  max-width: 100%;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 999px;
  box-shadow: 1px 3px 10px rgba(0,0,0,.2);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: opacity .2s;
}
.sf-contact .sf-contact__btn:hover { opacity: .7; }
.sf-contact .sf-contact__pdf {
  display: inline-block;
  margin-top: 4px;
  color: var(--sf-blue);
  font-size: 15px;
  text-decoration: none;
}
.sf-contact .sf-contact__pdf:hover { text-decoration: underline; }
.sf-sp { display: none; }

@media (max-width: 768px) {
  .sf-contact {
    display: block;
    min-height: 0;
    padding: 220px 16px 32px;
    background: #e8f5fc;
  }
  /* 写真は上の300pxだけ（STUDIOと同じ cover・60% 0%） */
  .sf-contact::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px;
    background: url("sf-contact-bg.webp") 60% 0% / cover no-repeat;
  }
  .sf-contact__card { position: relative; width: auto; padding: 32px 20px 28px; }
  .sf-contact__en { font-size: 36px; }
  .sf-contact__title { margin-bottom: 22px; font-size: 20px; }
  .sf-contact__micro { font-size: clamp(13px, 4vw, 16px); }
  .sf-contact .sf-contact__btn { height: 52px; font-size: 16px; }
  .sf-sp { display: inline; }
}

/* ==========================================================
   第5弾（2026-11-11）：固定バー（新）・SNS帯・法人のContact帯
   見本：STUDIOの部品「追従バー」／Footer部品の一番上の「SNS帯」／法人ページの #contact（2026-11-11 Live Preview 実測）
   ========================================================== */
.sf-page-top { display: block; height: 0; }

/* ---------- 固定バー：表示の切り替えは script.js が .js-floating--fixed を付け外しする ---------- */
.p-floating.sf-bar {
  box-sizing: border-box;
  left: 0;
  width: 100%;
  min-width: 0;
  padding: 8px 16px 12px;
  background: #fff;
  box-shadow: 0 -3px 12px rgba(0,0,0,.12);
  font-family: var(--sf-font);
  color: var(--sf-text);
  text-align: center;
  z-index: 50;
}
.p-floating.sf-bar.js-floating--fixed { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.p-floating.sf-bar.js-floating--fixed::before { content: none; }
.sf-bar .sf-bar__copy { margin: 0; color: var(--sf-text); font-size: 13px; font-weight: 700; line-height: 1.3; }
.sf-bar .sf-bar__row { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.sf-bar .sf-bar__btn {
  display: flex; align-items: center; justify-content: center;
  flex: 0 1 230px; height: 52px;
  border-radius: 48px; box-shadow: 0 3px 10px rgba(0,0,0,.2);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; line-height: 1.3;
  text-decoration: none; transition: opacity .25s;
}
.sf-bar .sf-bar__btn:hover, .sf-bar .sf-bar__top:hover { opacity: .8; }
.sf-bar .sf-bar__tel { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-left: 12px; text-decoration: none; }
.sf-bar .sf-bar__tel-num { display: flex; align-items: center; gap: 4px; color: #0e2c6e; font-size: 24px; font-weight: 700; letter-spacing: .5px; line-height: 1.3; }
.sf-bar .sf-bar__tel-icon { width: 24px; height: 24px; color: var(--sf-blue); }
.sf-bar .sf-bar__tel-time { color: #666; font-size: 11px; line-height: 1.3; }
.sf-bar .sf-bar__top { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; margin-left: 8px; border-radius: 999px; background: #0e2c6e; color: #fff; }
.sf-bar .sf-bar__top svg { width: 22px; height: 22px; }
/* バーが出ている間は、ページの一番下（©の帯）がバーに隠れないよう、バーの高さ分だけ body の下に余白（白いバーの裏に隠れる。STUDIOと同じやり方） */
body:has(.sf-bar.js-floating--fixed) { padding-bottom: 95px; }

@media (max-width: 840px) {
  .sf-bar .sf-bar__pc { display: none; }
}
@media (max-width: 540px) {
  .p-floating.sf-bar { padding: 8px 10px 10px; }
  .sf-bar .sf-bar__row { gap: 8px; }
  .sf-bar .sf-bar__btn { flex: 1 1 0; height: 54px; font-size: 17px; letter-spacing: .5px; }
}

/* ---------- SNS帯（フッターの上） ---------- */
.sf-sns {
  display: flex; justify-content: center;
  padding: 32px 20px;
  background: #f5f5f7;
  font-family: var(--sf-font); text-align: left;
}
.sf-sns .sf-sns__inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex: 0 1 1080px; }
.sf-sns .sf-sns__text { margin: 0; color: var(--sf-text); font-size: 20px; font-weight: 700; line-height: 1.5; }
.sf-sns .sf-sns__accent { display: block; color: #fe6f00; }
.sf-sns .sf-sns__list { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sf-sns .sf-sns__list li { margin: 0; padding: 0; }
.sf-sns .sf-sns__btn {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.10); transition: opacity .25s;
}
.sf-sns .sf-sns__btn:hover { opacity: .8; }
.sf-sns .sf-sns__btn svg { width: 32px; height: 32px; }
@media (max-width: 768px) {
  .sf-sns { padding: 28px 20px; }
  .sf-sns .sf-sns__inner { flex-direction: column; gap: 16px; }
  .sf-sns .sf-sns__text { font-size: 16px; text-align: center; }
  .sf-sns .sf-sns__list { gap: 14px; }
  .sf-sns .sf-sns__btn { width: 64px; height: 64px; }
  .sf-sns .sf-sns__btn svg { width: 28px; height: 28px; }
}

/* ---------- 法人ページの Contact（写真は右62%・左は紺） ---------- */
.sf-contact.sf-contact--corp {
  justify-content: flex-start;
  min-height: 648px;
  padding: 72px max(40px, calc(50% - 540px));
  background: #0e2c6e;
  overflow: hidden;
  text-align: left;
}
.sf-contact--corp::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 38%; width: 62%;
  background: url("/wp/wp-content/themes/stepforward/sf-contact-corp.webp") 50% 40% / cover no-repeat;
}
.sf-contact--corp::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, #0e2c6e 0%, #0e2c6e 38%, rgba(14,44,110,.55) 46%, rgba(14,44,110,0) 62%);
}
.sf-contact--corp .sf-contact__card { position: relative; z-index: 1; }
.sf-contact--corp .sf-contact__en { margin: 0; }
.sf-contact--corp .sf-contact__title { margin: 16px 0 0; font-size: 32px; line-height: 1.4; }
.sf-contact--corp .sf-contact__lead { margin: 16px 0 0; font-size: 16px; line-height: 1.6; }
.sf-contact--corp .sf-contact__btns { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; }
.sf-contact--corp .sf-contact__btn { width: auto; margin: 0; padding: 0 24px; }
.sf-contact--corp .sf-contact__btn--sub { padding: 0 22px; box-shadow: none; font-size: 16px; font-weight: 700; }
@media (max-width: 768px) {
  .sf-contact.sf-contact--corp { min-height: 0; padding: 220px 16px 32px; background: #e8f5fc; }
  .sf-contact--corp::before { bottom: auto; left: 0; width: 100%; height: 300px; background-position: 60% 0%; }
  .sf-contact--corp::after { background: linear-gradient(180deg, rgba(234,246,252,0) 0, rgba(234,246,252,0) 200px, #eaf6fc 300px); }
  .sf-contact--corp .sf-contact__title { font-size: 24px; }
  .sf-contact--corp .sf-contact__btns { align-items: stretch; }
  .sf-contact--corp .sf-contact__btn { height: 52px; padding: 0 16px; font-size: 16px; }
}
