/* =========================================================================
 * よくある質問 新デザイン（template/tobe/faq.php）2026-11-20
 *  テンプレートの先頭で読む（?tobe=1 のときだけ）。色・字・動きは css/tobe.css の変数（--pg-*）を使う
 *  クラスは .pgf- に閉じる。余白・見出し・ボタンは会社概要（tobe-about.css）、Q&A の形はサービス個別の FAQ（tobe-service.css の .pgs-faq）にそろえる
 *  スマホ（390px）が基本。1024px から左に分野の目次（追従）・右に質問の2列
 * ========================================================================= */
.pgf { --pgf-gut: 22px; --pgf-sec: 56px; --pgf-line: #dfe4ec; position: relative; display: block; background: #fff; color: var(--pg-ink); font-family: "Noto Sans JP", sans-serif; line-height: 1.7; letter-spacing: 0; font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.pgf *, .pgf *::before, .pgf *::after { box-sizing: border-box; }
:where(.pgf h1, .pgf h2, .pgf h3, .pgf p, .pgf ul, .pgf ol, .pgf li, .pgf figure) { margin: 0; padding: 0; }
.pgf ul, .pgf ol { list-style: none; }
.pgf a { color: inherit; text-decoration: none; }
.pgf h1::before, .pgf h1::after, .pgf h2::before, .pgf h2::after { content: none; }
.pgf a:focus-visible, .pgf summary:focus-visible { outline: 3px solid var(--pg-cyan); outline-offset: 3px; border-radius: 4px; }

.pgf-en { font-family: var(--pg-num); font-stretch: condensed; font-weight: 600; font-size: 14px; letter-spacing: .24em; color: #00879A; text-transform: uppercase; }
.pgf-hd { margin-bottom: 20px; }
.pgf-h2 { font-size: clamp(22px, 6vw, 28px); font-weight: 900; line-height: 1.4; letter-spacing: .02em; color: var(--pg-deep); margin-top: 6px !important; text-wrap: balance; }

/* パンくず */
.pgf-bc { padding: 12px var(--pgf-gut) 0; font-size: 11px; color: var(--pg-muted); line-height: 1.6; }
.pgf-bc a { color: var(--pg-muted); }

/* 冒頭 */
.pgf-hero { padding: 40px var(--pgf-gut) 40px; background: linear-gradient(180deg, #fff 0%, var(--pg-paper) 100%); }
.pgf-hero__ttl { font-size: 40px; font-weight: 900; line-height: 1.15; letter-spacing: .04em; color: var(--pg-deep); margin-top: 6px !important; }
.pgf-hero__lead { margin-top: 14px !important; font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--pg-navy); }
.pgf-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pgf-toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; background: #fff; border: 1px solid var(--pgf-line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--pg-deep); transition: border-color .2s, color .2s, transform .15s var(--pg-out); }
.pgf-toc a span { font-family: var(--pg-num); font-weight: 600; font-size: 14px; line-height: 1; color: #00879A; }
.pgf-toc a:active { transform: scale(.97); }
@media (hover: hover) { .pgf-toc a:hover { border-color: var(--pg-navy); color: var(--pg-navy); } }
.pgf-note { margin-top: 18px !important; font-size: 12px; line-height: 1.6; color: var(--pg-muted); }

/* 未確定の値（確認用表示だけ） */
.pgf-tbd { background: #ffe9a8; color: var(--pg-ink); padding: 0 3px; border-radius: 2px; font-weight: 700; }

/* 質問 */
.pgf-body { padding: 8px var(--pgf-gut) 0; }
.pgf-sec { padding: var(--pgf-sec) 0 0; scroll-margin-top: calc(var(--pg-hd, 60px) + 8px); }
.pgf-list { display: grid; gap: 10px; }
.pgf-i { background: #fff; border: 1px solid var(--pgf-line); border-radius: var(--pg-r); transition: border-color .2s; }
.pgf-i[open] { border-color: #c8d1de; }
.pgf-i summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 12px; align-items: start; padding: 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--pg-deep); -webkit-tap-highlight-color: transparent; }
.pgf-i summary::-webkit-details-marker { display: none; }
.pgf-i summary::after { content: ""; width: 9px; height: 9px; margin-top: 7px; border-right: 2px solid var(--pg-navy); border-bottom: 2px solid var(--pg-navy); transform: rotate(45deg); transition: transform .2s var(--pg-out); }
.pgf-i[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.pgf-qt { padding-top: 2px; }
.pgf-q, .pgf-al { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--pg-num); font-weight: 700; font-size: 16px; line-height: 1; }
.pgf-q { background: var(--pg-deep); color: #fff; }
.pgf-al { background: var(--pg-cyan); color: #fff; }
.pgf-a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 0 16px 18px; }
.pgf-a p { padding-top: 2px; font-size: 15px; line-height: 1.9; }
.pgf-a a { color: var(--pg-navy); font-weight: 700; border-bottom: 1px solid currentColor; }
@media (hover: hover) { .pgf-i summary:hover { color: var(--pg-navy); } .pgf-a a:hover { color: #00879A; } }

/* 末尾の相談 */
.pgf-ask { margin-top: 72px; padding: 56px var(--pgf-gut); background: var(--pg-paper); }
.pgf-ac { display: grid; gap: 20px; }
.pgf-ac__main { padding: 24px 20px; background: #fff; border-radius: var(--pg-r); }
.pgf-ac__t { font-size: 18px; font-weight: 900; color: var(--pg-deep); }
.pgf-ac__c { margin: 6px 0 18px !important; font-size: 14px; line-height: 1.7; color: var(--pg-ink); }
.pgf-ac__sub { display: grid; gap: 14px; padding: 0 4px; }
.pgf-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 26px; border-radius: 999px; background: var(--pg-orange); color: #fff !important; font-weight: 700; font-size: 16px; line-height: 1.35; letter-spacing: .04em; text-align: center; box-shadow: 0 10px 24px rgba(250,119,72,.32); transition: transform .2s var(--pg-out), box-shadow .2s; }
.pgf-btn::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.pgf-btn:active { transform: scale(.97); }
@media (hover: hover) { .pgf-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(250,119,72,.4); } }
.pgf-link { display: inline-block; font-size: 14px; font-weight: 700; color: var(--pg-navy); border-bottom: 1.5px solid; padding-bottom: 2px; }
.pgf-link::after { content: " →"; }

@media (min-width: 768px) {
  .pgf { --pgf-gut: 40px; }
}

@media (min-width: 1024px) {
  .pgf { --pgf-gut: max(48px, calc((100% - 1200px) / 2)); --pgf-sec: 72px; }
  .pgf-bc { padding-top: 16px; }
  .pgf-hero { padding: 72px var(--pgf-gut) 72px; }
  .pgf-hero__ttl { font-size: clamp(56px, 5.6vw, 76px); letter-spacing: .06em; }
  .pgf-hero__lead { font-size: 20px; margin-top: 18px !important; }
  .pgf-toc { margin-top: 36px; gap: 10px; }
  .pgf-toc a { min-height: 44px; padding: 8px 20px; font-size: 15px; }
  .pgf-h2 { font-size: 30px; }
  .pgf-hd { margin-bottom: 24px; }

  /* 分野の見出しを左・質問を右の2列 */
  .pgf-sec { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
  .pgf-sec .pgf-hd { position: sticky; top: calc(var(--pg-hd, 72px) + 32px); margin: 0; padding-top: 6px; border-top: 3px solid var(--pg-deep); }
  .pgf-sec .pgf-en { margin-top: 14px; }
  .pgf-list { gap: 12px; }
  .pgf-i summary { padding: 20px 24px; font-size: 16px; gap: 16px; grid-template-columns: 30px minmax(0, 1fr) 14px; }
  .pgf-a { padding: 0 24px 24px; gap: 16px; grid-template-columns: 30px minmax(0, 1fr); }
  .pgf-a p { font-size: 15.5px; max-width: 46em; }
  .pgf-q, .pgf-al { width: 30px; height: 30px; }

  .pgf-ask { margin-top: 112px; padding: 88px var(--pgf-gut); }
  .pgf-ac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .pgf-ac__main { padding: 36px 40px; }
  .pgf-ac__t { font-size: 22px; }
  .pgf-btn { width: auto; min-width: 280px; }
  .pgf-ac__sub { gap: 18px; }
  .pgf-link { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .pgf *, .pgf *::before, .pgf *::after { transition: none !important; }
}
