/* GRASPERS Systems 共通UI（ソノバデシステム ヒアリング・事例） */
body { margin: 0 !important; padding: 0 !important; background: #ececea; }
.gsu { --ink:#141414; --sub:#767676; --line:#e2e2e0; --bg:#ececea; --accent:#f67445; --accent-d:#e05f31; --ok:#2e7d32; --err:#c62828;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column; color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; font-size: 14px; line-height: 1.7; }
.gsu *, .gsu *::before, .gsu *::after { box-sizing: border-box; }
.gsu button, .gsu input, .gsu textarea, .gsu select { font-family: inherit; }
.gsu-hidden { display: none !important; }

/* ヘッダー */
.gsu-bar { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 8px 24px; background: #111; color: #fff; position: relative; }
.gsu-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent) 0 72px, rgba(255,255,255,.08) 72px); }
.gsu-brand { display: flex; align-items: center; gap: 12px; }
.gsu-brand__mark { width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; flex-shrink: 0; }
.gsu-brand__mark i { background: #fff; border-radius: 1px; }
.gsu-brand__mark i:nth-child(2) { background: var(--accent); }
.gsu-brand__mark i:nth-child(3) { background: rgba(255,255,255,.35); }
.gsu-brand__en { font-family: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 23px; letter-spacing: .14em; line-height: 1; margin: 0; }
.gsu-brand__en span { color: var(--accent); }
.gsu-brand__ja { font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.6); margin: 6px 0 0; line-height: 1; }
.gsu-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.gsu-nav a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; white-space: nowrap; }
.gsu-nav a:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.gsu-role { display: flex; align-items: center; gap: 12px; padding: 7px 24px; background: var(--accent); color: #fff; font-size: 12px; }
.gsu-role__badge { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 11px; padding: 2px 8px; border-radius: 3px; background: rgba(0,0,0,.25); }
.gsu-role__sub { opacity: .88; }
.gsu-role__link { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; padding: 3px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; }
.gsu-role__link:hover { background: #fff; color: var(--ink); }

/* 本文 */
.gsu-main { flex: 1; padding: 28px 24px 40px; }
.gsu-wrap { max-width: 1200px; margin: 0 auto; }
.gsu-grid2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.gsu-card { background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 20px; }
.gsu-card__ttl { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .12em; margin: 0 0 2px; }
.gsu-card__sub { font-size: 12px; color: var(--sub); margin: 0 0 18px; }
.gsu-sticky { position: sticky; top: calc(16px + var(--wp-admin--admin-bar--height, 0px)); }

/* フォーム */
.gsu-field { margin-bottom: 22px; }
.gsu-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; font-weight: 700; margin: 0 0 8px; white-space: nowrap; }
.gsu-req { flex-shrink: 0; white-space: nowrap; font-size: 10px; font-weight: 700; color: #fff; background: var(--err); padding: 1px 6px; border-radius: 3px; }
.gsu-opt { flex-shrink: 0; white-space: nowrap; font-size: 10px; font-weight: 700; color: #666; background: #eee; padding: 1px 6px; border-radius: 3px; }
.gsu-help { flex: 1 1 240px; min-width: 0; white-space: normal; font-size: 11px; color: var(--sub); font-weight: 400; line-height: 1.6; }
.gsu-input, .gsu-textarea { width: 100%; font-size: 15px; padding: 11px 13px; border: 1px solid #d3d3d0; border-radius: 6px; background: #fff; color: var(--ink); }
.gsu-input:focus, .gsu-textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.gsu-textarea { min-height: 260px; resize: vertical; line-height: 1.8; }
.gsu-textarea--prompt { min-height: 420px; font-family: ui-monospace, Menlo, Consolas, "Noto Sans JP", monospace; font-size: 12.5px; background: #fafaf8; }
.gsu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gsu-chip { position: relative; }
.gsu-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.gsu-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1.5px solid #d3d3d0; border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff; transition: .12s; cursor: pointer; user-select: none; }
.gsu-chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.gsu-chip input:checked + span { border-color: var(--ink); background: #111; color: #fff; }
.gsu-chip input:checked + span::before { background: #f2e33a; }
.gsu-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(246,116,69,.35); }
.gsu-seg { display: inline-flex; border: 1.5px solid #d3d3d0; border-radius: 8px; overflow: hidden; }
.gsu-seg label { position: relative; }
.gsu-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gsu-seg span { display: block; padding: 9px 22px; font-size: 14px; font-weight: 700; cursor: pointer; border-right: 1px solid #e5e5e2; }
.gsu-seg label:last-child span { border-right: 0; }
.gsu-seg input:checked + span { background: #111; color: #fff; }
.gsu-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gsu-file { border: 1.5px dashed #c9c9c6; border-radius: 10px; padding: 14px 10px; text-align: center; background: #fafaf8; cursor: pointer; transition: .15s; position: relative; min-height: 104px; display: flex; flex-direction: column; justify-content: center; }
.gsu-file:hover, .gsu-file.is-over { border-color: var(--ink); background: #f3f3f0; }
.gsu-file.is-set { border-style: solid; border-color: var(--ink); background: #fff; }
.gsu-file__no { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.gsu-file__name { font-size: 12px; font-weight: 700; word-break: break-all; margin-top: 4px; }
.gsu-file__hint { font-size: 10.5px; color: var(--sub); margin-top: 2px; }
.gsu-file__clear { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 20px; padding: 0; cursor: pointer; }
.gsu-sec { border: 1px solid #f3d6c8; background: #fff8f4; border-radius: 10px; padding: 16px 18px; }
.gsu-sec__ttl { font-weight: 700; font-size: 13px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.gsu-sec ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.gsu-sec li label { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; cursor: pointer; }
.gsu-sec li input { margin-top: 4px; accent-color: var(--accent); }
.gsu-sec li.is-fixed label { color: #555; cursor: default; }

/* ボタン */
.gsu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; font-size: 14px; font-weight: 700; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: .15s; white-space: nowrap; letter-spacing: .05em; }
.gsu-btn--accent { background: var(--accent); color: #fff; } .gsu-btn--accent:hover { background: var(--accent-d); }
.gsu-btn--dark { background: var(--ink); color: #fff; } .gsu-btn--dark:hover { opacity: .85; }
.gsu-btn--line { background: #fff; color: var(--ink); border-color: #cfcfcc; } .gsu-btn--line:hover { border-color: var(--ink); }
.gsu-btn--claude { background: #d97757; color: #fff; } .gsu-btn--claude:hover { background: #c4633f; }
.gsu-btn--block { width: 100%; height: 52px; font-size: 15px; }
.gsu-btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }
.gsu-btn:disabled { opacity: .45; cursor: not-allowed; }
.gsu-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.gsu-msg { font-size: 12.5px; padding: 10px 14px; border-radius: 6px; margin: 12px 0; line-height: 1.7; }
.gsu-msg--err { background: #fdecea; color: var(--err); }
.gsu-msg--ok { background: #e9f5ea; color: var(--ok); }
.gsu-msg--info { background: #f4f4f2; color: #555; }
.gsu-empty { text-align: center; color: var(--sub); padding: 28px 0; font-size: 13px; }

/* 履歴 */
.gsu-hist { list-style: none; margin: 0; padding: 0; }
.gsu-hist li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.gsu-hist__body { flex: 1; min-width: 0; }
.gsu-hist__name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsu-hist__meta { color: var(--sub); font-size: 11px; }
.gsu-tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #f2e33a; color: #3d3a00; margin: 2px 4px 0 0; }
.gsu-tag--gray { background: #eee; color: #555; }
.gsu-tag--php { background: #e7e5ff; color: #3c3489; }
.gsu-tag--html { background: #e1f5ee; color: #085041; }

/* 事例 */
.gsu-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gsu-filter button { border: 1.5px solid #d3d3d0; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ink); }
.gsu-filter button.is-on { background: #111; color: #fff; border-color: #111; }
.gsu-filter button b { font-weight: 500; color: var(--sub); margin-left: 4px; }
.gsu-filter button.is-on b { color: #bbb; }
.gsu-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gsu-work { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.gsu-work:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.gsu-work__img { aspect-ratio: 16 / 10; background: #222 center / cover no-repeat; position: relative; display: block; }
.gsu-work__img--none { display: grid; place-items: center; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 30px; letter-spacing: .1em; background: linear-gradient(135deg, #222, #3a3a3a); }
.gsu-work__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.gsu-work__cust { font-size: 11px; color: var(--sub); }
.gsu-work__ttl { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 2px 0 8px; }
.gsu-work__memo { font-size: 12px; color: #555; margin: 0 0 10px; }
.gsu-work__foot { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.gsu-work__url { font-size: 11px; color: var(--sub); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.gsu-work__url:hover { color: var(--ink); text-decoration: underline; }
.gsu-preview { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; margin: 4px 0 16px; }
.gsu-preview__img { aspect-ratio: 16 / 10; border-radius: 8px; background: #eee center / cover no-repeat; display: grid; place-items: center; color: #999; font-size: 12px; border: 1px solid var(--line); }

/* ログイン・トースト */
.gsu-center { flex: 1; display: grid; place-items: center; padding: 30px 20px; }
.gsu-login { width: 100%; max-width: 400px; }
.gsu-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 100001; background: #111; color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; font-family: "Noto Sans JP", sans-serif; }
.gsu-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.gsu-toast.is-err { background: #c62828; }

/* フッター */
.gsu-footer { background: #292929; color: #fff; letter-spacing: .08em; }
.gsu-footer__inner { max-width: 1480px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 22px; }
.gsu-footer__logo img { display: block; width: 120px; height: auto; }
.gsu-footer__place { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 500; line-height: 1.85; white-space: nowrap; letter-spacing: .05em; }
.gsu-footer__place a { color: #fff; text-decoration: none; }
.gsu-footer__credit { flex-shrink: 0; text-align: right; font-size: 10px; line-height: 1.9; letter-spacing: .03em; }
@media (max-width: 1360px) { .gsu-footer__logo { display: none; } .gsu-footer__place { padding-left: 0; border-left: 0; } }
@media (max-width: 1200px) { .gsu-footer__place { white-space: normal; } }
.gsu-footer__credit a, .gsu-footer__credit small { display: block; color: rgba(255,255,255,.55); font-size: 10px; }
.gsu-footer__credit a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }

@media (max-width: 1000px) {
  .gsu-grid2 { grid-template-columns: 1fr; }
  .gsu-sticky { position: static; }
  .gsu-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsu-footer__inner { flex-wrap: wrap; gap: 6px 18px; }
  .gsu-footer__place { flex-basis: 100%; padding-left: 0; border-left: 0; order: 3; }
}
@media (max-width: 640px) {
  .gsu-bar { flex-wrap: wrap; padding: 10px 14px; }
  .gsu-main { padding: 18px 12px 30px; }
  .gsu-card { padding: 18px; }
  .gsu-works, .gsu-files { grid-template-columns: 1fr; }
  .gsu-sec ul { grid-template-columns: 1fr; }
  .gsu-role__sub { display: none; }
  .gsu-preview { grid-template-columns: 1fr; }
}

/* ヒアリング：共通パスワード・注意書き */
.gst-pw { margin-top: 12px; padding: 14px 16px; background: #fafaf8; border: 1px solid #e6e6e3; border-radius: 8px; }
.gst-pw label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.gst-pw__row { display: flex; gap: 6px; }
.gst-pw__row .gsu-input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; }
.gst-pw__row .gsu-btn { flex-shrink: 0; height: auto; padding: 0 12px; font-size: 12px; }
.gst-note { font-size: 11.5px; line-height: 1.8; color: #777; margin: 8px 0 0; }
.gst-note--warn { color: #8a4b12; background: #fff7e6; border: 1px solid #f3dcb0; border-radius: 6px; padding: 8px 12px; margin-top: 10px; }
.gst-note--warn b { color: #b45309; }
.gst-secnote { display: block; font-size: 10.5px; line-height: 1.7; color: #9a6a3a; margin: 2px 0 4px 24px; }
.gsu-sec li.has-note { grid-column: 1 / -1; }

/* ヒアリング：社員用 実装マニュアル */
.gst-impl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 12px; background: #1a1a1a; color: #fff; border-radius: 10px; }
.gst-impl strong { display: block; font-size: 13px; margin-bottom: 3px; }
.gst-impl strong::before { content: "PDF"; display: inline-block; font-size: 9px; letter-spacing: .1em; background: var(--accent, #f67445); color: #fff; padding: 1px 6px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.gst-impl span { display: block; font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.7); }
.gst-impl .gsu-btn { flex-shrink: 0; background: #fff; color: #111; border-color: #fff; }
@media (max-width: 640px) { .gst-impl { flex-direction: column; align-items: stretch; } }
