@charset "UTF-8";
/* ==========================================================================
   W2 Commerce 機能一覧ページ（/function/）
   - 本文はすべて .fx（#w2-function）の中に置く前提です。
   - クラス名はすべて「fx-」で始まります。既存サイトのクラスとは重なりません。
   - ブレークポイント：1000px（タブレット）／760px（スマートフォン）
   ========================================================================== */

/* ---------- デザイントークン ---------- */
.fx {
  --fx-blue: #1A5CCC;        /* ブランド青：見出し補助・リンク・枠線ボタン */
  --fx-blue-dark: #114299;   /* リンクのホバー */
  --fx-blue-tint: #EAF1FC;   /* 青の薄い面 */
  --fx-text: #1B2B4B;        /* 本文・見出し */
  --fx-text-sub: #4A5873;    /* 補足テキスト */
  --fx-text-desc: #33415C;   /* ポップアップの説明文 */
  --fx-bg-tint: #F3F7FD;     /* 帯背景（ページ上部・カテゴリ・FAQ） */
  --fx-line: #E1E8F2;        /* カード枠 */
  --fx-line-2: #DCE5F2;      /* チップ・区切り線 */
  --fx-navy: #1B2B4B;        /* 選択中チップ */
  --fx-cta: #C9500A;         /* CTA（オレンジ） */
  --fx-radius: 10px;

  color: var(--fx-text);
  background: #fff;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  padding-top: 80px;
}

/* ---------- スコープ内リセット（既存テーマの装飾を打ち消す） ----------
   :where() で詳細度を .fx 1つ分に抑え、下に書いた各パーツの指定が必ず勝つようにしています。 */
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
.fx :where(h1, h2, h3, p, ul, ol, li, dl, dd) { margin: 0; padding: 0; }
.fx :where(ul, ol) { list-style: none; }
.fx :where(h1, h2, h3) { border: 0; background: none; color: inherit; font-family: inherit; }
.fx h1::before, .fx h1::after, .fx h2::before, .fx h2::after, .fx h3::before, .fx h3::after { content: none; }
.fx :where(img) { max-width: 100%; }
.fx :where(button) { font-family: inherit; color: inherit; font-size: inherit; line-height: inherit; margin: 0; -webkit-appearance: none; appearance: none; }
.fx :where(a) { color: var(--fx-blue); }
.fx :where(a):hover { color: var(--fx-blue-dark); }
.fx [hidden] { display: none !important; }
.fx :focus-visible { outline: 2px solid var(--fx-blue); outline-offset: 2px; }

/* ---------- レイアウト ---------- */
.fx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.fx-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--fx-blue); }

/* 日本語を文節で改行する（対応ブラウザのみ。非対応ブラウザは通常の改行） */
.fx-phead__lead, .fx-sec__title, .fx-sec__lead { word-break: auto-phrase; }

/* ---------- ボタン ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; line-height: 1.3; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fx-btn--cta { background: var(--fx-cta); color: #fff; }
.fx .fx-btn--cta:hover { color: #fff; filter: brightness(1.08); }
.fx-btn--ghost { background: #fff; color: var(--fx-blue); border-color: var(--fx-blue); }
.fx .fx-btn--ghost:hover { background: var(--fx-blue-tint); color: var(--fx-blue); }
.fx-btn--sm { min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.fx-linkbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 0;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 15px; color: var(--fx-blue);
}
.fx-linkbtn:hover { text-decoration: underline; }

/* ---------- ページ見出し ---------- */
.fx-phead { background: var(--fx-bg-tint); border-bottom: 1px solid var(--fx-line); }
.fx-phead__in { padding-top: 40px; padding-bottom: 48px; text-align: center; }
.fx-phead__title { font-weight: 900; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.25; margin-top: 8px; letter-spacing: .02em; }
.fx-phead__lead { margin: 14px auto 0; max-width: 640px; font-size: 16px; color: var(--fx-text-sub); text-wrap: pretty;font-weight: bold; }

/* ---------- セクション共通 ---------- */
.fx-sec { padding: 72px 0; }
.fx-sec--tint { background: var(--fx-bg-tint); }
.fx-sec__head { max-width: 760px; }
.fx-sec__title { font-weight: 900; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; margin-top: 10px; text-wrap: balance; }
.fx-sec__lead { margin-top: 12px; color: var(--fx-text-sub); font-size: 15.5px; text-wrap: pretty; }

/* ---------- 選定時によくいただくご質問 ---------- */
.fx-asked-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; margin-top: 32px; }
.fx-asked {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius);
  padding: 20px 22px 14px; cursor: pointer; transition: border-color .15s;
}
.fx-asked:hover { border-color: var(--fx-blue); }
.fx-asked__no { font-weight: 700; font-size: 13px; color: var(--fx-blue); }
.fx-asked__q { font-size: 17.5px; font-weight: 700; line-height: 1.5; }
.fx-asked__link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--fx-blue); }
.fx-asked__link svg { width: 15px; height: 15px; }

/* ---------- カテゴリ絞り込み ---------- */
.fx-filters { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--fx-line-2); border-bottom: 1px solid var(--fx-line-2); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--fx-line-2);
  background: #fff; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: border-color .15s;
}
.fx-chip:hover { border-color: var(--fx-navy); }
.fx-chip[aria-pressed="true"] { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }

.fx-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; }
.fx-result__l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fx-result__count { font-size: 15px; color: var(--fx-text-sub); }
.fx-result__count strong { font-size: 22px; color: var(--fx-text); margin-right: 4px; }
.fx-result__legend { font-size: 12.5px; color: var(--fx-text-sub); }

/* ---------- 機能カード ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; margin-top: 12px; }
.fx-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); transition: border-color .15s;
}
.fx-card:hover { border-color: var(--fx-blue); }
.fx-card--nodetail:hover { border-color: var(--fx-line); }
.fx-card__top { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 18px 18px 0; }
.fx-card__cat { font-size: 12px; font-weight: 700; color: var(--fx-text-sub); }
.fx-badge { margin-left: auto; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.fx-badge--asked { background: #EAF1FC; color: #1A4FAE; }
.fx-badge--popular { background: #FDEEE4; color: #A8400A; }
.fx-card__main, .fx-card__static { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; padding: 12px 18px 64px; }
.fx-card__name { font-size: 17px; font-weight: 700; line-height: 1.5; }
.fx-card__name button { display: inline; padding: 0; background: none; border: 0; text-align: left; font-weight: inherit; cursor: pointer; }
.fx-card__name button::after { content: ""; position: absolute; inset: 0; border-radius: var(--fx-radius); } /* カード全体をクリック可能にする */
.fx-card__name button:focus-visible { outline: none; }
.fx-card__name button:focus-visible::after { outline: 2px solid var(--fx-blue); outline-offset: 2px; }
.fx-card__catch { font-size: 13.5px; color: var(--fx-text-sub); line-height: 1.65; }
.fx-card__more { position: absolute; left: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--fx-blue); pointer-events: none; }
.fx-card__more svg { width: 15px; height: 15px; }
.fx-card__wp { position: absolute; left: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; font-weight: 700; text-decoration: none; }
.fx .fx-card__wp { color: var(--fx-text-sub); }
.fx .fx-card__wp:hover { color: var(--fx-blue); text-decoration: underline; }
.fx-card__wp svg { width: 14px; height: 14px; }
.fx-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 資料でさらに詳しく ---------- */
.fx-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 14px; margin-top: 24px; }
.fx-doc { display: flex; align-items: center; gap: 20px; padding: 16px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); }
.fx-doc__img { flex: none; display: block; width: 208px; height: 117px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); object-fit: cover; }
.fx-doc__body { flex: 1; min-width: 0; }
.fx-doc__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--fx-blue); }
.fx-doc__title { margin-top: 2px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.fx-doc__sub { margin-top: 2px; font-size: 13px; color: var(--fx-text-sub); }
.fx-doc .fx-btn { margin-top: 10px; min-height: 42px; padding: 0 18px; font-size: 14px; }
.fx-reqdoc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 14px; padding: 18px 24px; background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); }
.fx-reqdoc__t { font-size: 15px; font-weight: 700; }
.fx-reqdoc__t span { display: block; font-size: 13px; font-weight: 400; color: var(--fx-text-sub); }
.fx-reqdoc__r { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fx-tel { font-size: 13px; color: var(--fx-text-sub); }
.fx-tel strong { margin: 0 4px; font-size: 17px; color: var(--fx-text); }

/* ---------- よくある質問 ---------- */
.fx-faq { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin-top: 28px; }
.fx-faq__item { background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); }
.fx-faq__q { font-size: 16px; font-weight: 700; line-height: 1.7; }
.fx-faq__q button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 18px 22px; background: none; border: 0; text-align: left; cursor: pointer; font-weight: 700; }
.fx-faq__mark { font-weight: 900; color: var(--fx-blue); }
.fx-faq__q svg { flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--fx-blue); transition: transform .2s; }
.fx-faq__q button[aria-expanded="true"] svg { transform: rotate(180deg); }
.fx-faq__a { padding: 0 22px 20px 50px; font-size: 15px; color: var(--fx-text-sub); }

/* ---------- SP下部固定バー（760px以下のみ表示） ---------- */
.fx-spbar { display: none; }

/* ---------- 機能詳細ポップアップ（<dialog>） ---------- */
.fx-modal {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0;
  width: min(760px, calc(100% - 48px)); max-width: none; height: fit-content; max-height: min(88vh, 860px);
  background: #fff; color: var(--fx-text); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(5, 20, 60, .65);
}
.fx-modal[open] { display: flex; flex-direction: column; animation: fx-pop .22s ease; }
.fx-modal::backdrop { background: rgba(15, 31, 61, .55); }
@keyframes fx-pop { from { opacity: 0; transform: translateY(3%); } to { opacity: 1; transform: none; } }
.fx-modal__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 28px; border-bottom: 1px solid var(--fx-line); }
.fx-modal__head .fx-badge { margin-left: 4px; }
.fx-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: var(--fx-bg-tint); color: var(--fx-text); cursor: pointer; }
.fx-x svg { width: 18px; height: 18px; }
.fx-modal__body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px 30px; }
.fx-modal__title { font-size: 28px; font-weight: 900; line-height: 1.4; }
.fx-modal__catch { margin-top: 8px; font-size: 15.5px; font-weight: 700; color: var(--fx-blue); }
.fx-modal__desc { margin-top: 16px; font-size: 15px; color: var(--fx-text-desc); }
.fx-modal__box { margin-top: 20px; padding: 18px 22px; background: var(--fx-bg-tint); border-radius: var(--fx-radius); }
.fx-modal__boxtitle { font-size: 15px; font-weight: 700; color: var(--fx-blue); }
.fx-issues { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fx-issues li { display: flex; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--fx-text); }
.fx-issues li::before { content: "▶"; flex: none; font-size: 10px; line-height: 24px; color: var(--fx-blue); }
.fx-modal__sec { margin-top: 24px; }
.fx-modal__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--fx-text-sub); white-space: nowrap; }
.fx-rel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fx-rel button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--fx-line-2); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.fx-rel button:hover { border-color: var(--fx-blue); color: var(--fx-blue); }
.fx-rel svg { flex: none; width: 14px; height: 14px; color: var(--fx-blue); }
.fx-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px 16px 20px; border-top: 1px solid var(--fx-line); background: #FBFCFE; }

/* ポップアップ表示中は背面のスクロールを止める */
html.fx-lock, html.fx-lock body { overflow: hidden; }

/* ---------- 1000px以下 ---------- */
@media (max-width: 1000px) {
  .fx-docs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 760px以下（スマートフォン） ---------- */
@media (max-width: 760px) {
  .fx {
    padding-top: 45px;
  }
  .fx-wrap { padding: 0 16px; }
  .fx-phead__in { padding-top: 24px; padding-bottom: 28px; }
  .fx-phead__lead { font-size: 15px; }
  .fx-sec { padding: 52px 0; }
  .fx-asked { padding: 16px 18px 10px; }
  .fx-asked__q { font-size: 16.5px; }
  .fx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
  .fx-chip { flex: none; }
  .fx-btn { width: 100%; }
  .fx-more .fx-btn { width: auto; }
  .fx-doc { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }
  .fx-doc__img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .fx-doc .fx-btn { width: 100%; }
  .fx-reqdoc { padding: 18px; }
  .fx-faq__a { padding-left: 22px; }
  .fx-spbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--fx-line);
  }
  body.fx-has-spbar { padding-bottom: 80px; } /* 固定バーでフッター末尾が隠れないようにする */
  .fx-modal { width: calc(100% - 20px); max-height: 90vh; border-radius: 18px; }
  .fx-modal__head { padding-left: 18px; }
  .fx-modal__body { padding: 22px 18px; }
  .fx-modal__title { font-size: 23px; }
  .fx-modal__box { padding: 16px; }
  .fx-modal__foot { padding: 12px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx *, .fx-modal[open] { animation: none !important; transition: none !important; }
}
