/* =========================================================================
 * サイト共通のヘッダー・フッター（新LPに合わせた版）
 *
 * 記事ページ（導入事例・お役立ち資料・お知らせ）は旧LPのヘッダーのままで、
 * LPトップと見た目が違っていた。メニューも「機能一覧／事例紹介／お役立ち資料／
 * お問合せ」の4つだけで、料金プラン・モール出店・宅配買取・よくある質問が無く、
 * 記事を読んだ人がそこから先に進めなかった。
 *
 * LP本体の style.css は読み込めない。body / h1,h2,h3,p / ul,ol に
 * グローバルリセットを持っていて、記事本文（.rsc-prose）を壊すため。
 * そこでヘッダー・フッターに必要な分だけをここに写している。
 * 値はLPの style.css と同じ。変数名は、テーマ側の同名変数とぶつからないよう
 * --mc- を付けて分けている。
 *
 * LPのナビは1180px以下で消える。LPは縦1枚で回遊導線が要らないためだが、
 * 記事ページでは読んだあとに他へ移ってもらう必要がある。
 * そのためハンバーガーメニューを足した。JSを増やさずに済むよう、
 * チェックボックスで開閉している。
 * ========================================================================= */

:root {
  --mc-header-h: 72px;
  --mc-ink: #111226;
  --mc-violet: #8a4dff;
  --mc-line: #ece8f6;
  --mc-grad: linear-gradient(90deg, #ff2a6d 0%, #b43cff 50%, #1f7bff 100%);
}

/* ヘッダーは position:fixed なので、その高さぶんの余白を作る。
   body に padding を付ける方法は、テーマが body { padding: 0 } を
   インラインで後から当てていて効かない。空の要素で場所を取る。 */
.f-header__spacer { height: var(--mc-header-h); }

.f-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- ヘッダー ---------- */

.f-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--mc-header-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.f-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(1320px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.f-header__logo { flex: none; width: 196px; }
.f-header__logo img { display: block; width: 100%; }

.f-header__nav {
  display: flex;
  gap: 44px;
  margin-left: auto;
}

.f-header__nav a {
  color: var(--mc-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.f-header__nav a:hover { color: var(--mc-violet); }

.f-header__actions { display: flex; gap: 14px; }

/* ---------- ボタン ---------- */

.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.f-btn:hover { transform: translateY(-2px); }
.f-btn i { font-style: normal; font-size: 1.3em; line-height: 1; }

.f-btn--sm { min-height: 48px; padding: 0 34px; font-size: 14px; }

.f-btn--outline {
  color: var(--mc-ink);
  background: #fff;
  border: 1.5px solid var(--mc-ink);
}

.f-btn--outline:hover { background: #f5f5fa; }

.f-btn--fv {
  color: #fff;
  background: var(--mc-grad);
  box-shadow: 0 10px 24px rgba(140, 60, 255, .26);
}

.f-btn--fv:hover { box-shadow: 0 14px 30px rgba(140, 60, 255, .34); }
.f-btn--fv i { font-size: 1.1em; }

/* ---------- ハンバーガーメニュー ---------- */

/* チェックボックスは見せないが、キーボードで操作できるよう残す。
   display:none にするとフォーカスできなくなる。 */
.f-navtoggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.f-navbtn {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 10px;
  cursor: pointer;
}

/* 3本線。中央の線を span、上下を疑似要素で描く。 */
.f-navbtn span,
.f-navbtn span::before,
.f-navbtn span::after {
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--mc-ink);
  transition: transform .25s ease, opacity .2s ease;
}

.f-navbtn span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.f-navbtn span::before { content: ""; left: 0; transform: translateY(-7px); }
.f-navbtn span::after  { content: ""; left: 0; transform: translateY(7px); }

/* 開いているあいだは×に変える。 */
.f-navtoggle:checked ~ .f-header__inner .f-navbtn span { background: transparent; }
.f-navtoggle:checked ~ .f-header__inner .f-navbtn span::before { transform: rotate(45deg); }
.f-navtoggle:checked ~ .f-header__inner .f-navbtn span::after  { transform: rotate(-45deg); }

.f-navtoggle:focus-visible ~ .f-header__inner .f-navbtn {
  outline: 2px solid var(--mc-violet);
  outline-offset: 2px;
}

.f-navpanel {
  display: none;
  position: fixed;
  inset: var(--mc-header-h) 0 auto;
  max-height: calc(100vh - var(--mc-header-h));
  padding: 8px 0 24px;
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--mc-line);
  box-shadow: 0 16px 40px rgba(40, 30, 90, .12);
}

.f-navtoggle:checked ~ .f-navpanel { display: block; }

.f-navpanel__nav { display: flex; flex-direction: column; }

.f-navpanel__nav a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--mc-line);
  color: var(--mc-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.f-navpanel__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.f-navpanel__btns .f-btn { width: 100%; }

/* ---------- フッター ---------- */

.f-sitefoot {
  padding: 64px 0 72px;
  color: #fff;
  background: #232323;
}

.f-sitefoot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
}

.f-sitefoot__brand img {
  display: block;
  width: 230px;
  height: auto;
  filter: brightness(0) invert(1);
}

.f-sitefoot__brand p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.f-sitefoot__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 60px;
}

.f-sitefoot__nav ul {
  display: grid;
  gap: 30px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-sitefoot__nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.f-sitefoot__nav a:hover { color: #c9b8ff; }

.f-sitefoot__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.f-sitefoot__bottom small {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- レスポンシブ ---------- */

/* LPと同じ位置でナビを畳む。ここからハンバーガーに切り替える。 */
@media (max-width: 1180px) {
  .f-header__nav { display: none; }

  /* ナビが消えるぶん、ボタンとハンバーガーを右端に寄せる。 */
  .f-header__actions { margin-left: auto; }
  .f-navbtn { display: block; position: relative; margin-left: 0; }
}

@media (max-width: 900px) {
  .f-sitefoot__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --mc-header-h: 60px; }

  .f-wrap { width: calc(100% - 32px); }
  .f-header__inner { width: calc(100% - 28px); gap: 12px; }
  .f-header__logo { width: 148px; }

  /* 画面が狭いとボタン2つは並ばない。LPと同じく、資料請求だけを
     グラデーションのボタンにして残す。デモの導線はメニューの中にある。 */
  .f-header__actions .f-btn--fv { display: none; }
  .f-header__actions .f-btn--outline {
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    color: #fff;
    background: var(--mc-grad);
    font-size: 13px;
  }

  .f-sitefoot { padding: 48px 0 56px; }
  .f-sitefoot__brand img { width: 190px; }
  .f-sitefoot__nav { gap: 0 24px; }
  .f-sitefoot__nav ul { gap: 22px; }
  .f-sitefoot__nav a { font-size: 14.5px; }
}

