/* public/css/signup-help.css — 入会フォーム (index.html) の「その場で問い合わせ」。js/signup-help.js と対 */
.sh-fab { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
    border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #1a5f4a 0%, #2d8a6e 100%); box-shadow: 0 8px 22px rgba(26, 95, 74, .35);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.sh-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.sh-fab:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .sh-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26, 95, 74, .42); } }
.sh-fab.is-nudge { animation: shNudge 1.6s ease 2; }
@keyframes shNudge { 0%, 100% { transform: none; } 20% { transform: translateY(-6px); } 40% { transform: none; } 60% { transform: translateY(-3px); } }
body.gate-locked .sh-fab, body.sh-open .sh-fab { display: none; }
body.test-mode .sh-fab { right: auto; left: 16px; }      /* テストモードの案内パネル (右下) と重ならないように */

.sh-tip { position: fixed; right: 16px; bottom: 78px; z-index: 900; max-width: 260px; padding: 10px 34px 10px 14px; border-radius: 14px; background: #fff; color: #1e293b;
    font-size: .82rem; line-height: 1.6; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); border: 1px solid #d9e8e1; cursor: pointer; }
.sh-tip b { color: #1a5f4a; }
.sh-tip-close { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border: 0; background: none; color: #94a3b8; font-size: 18px; cursor: pointer; }
body.test-mode .sh-tip { right: auto; left: 16px; }
body.sh-open .sh-tip { display: none; }

.sh-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: flex-end; }
.sh-backdrop[hidden] { display: none; }
.sh-panel { width: 100%; max-width: 440px; max-height: min(92vh, 760px); max-height: min(92dvh, 760px); margin: 0 16px 16px; display: flex; flex-direction: column;
    background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; animation: shIn .22s ease; }
@keyframes shIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sh-head { flex-shrink: 0; display: flex; align-items: flex-start; gap: 10px; padding: 16px 12px 12px 20px; background: linear-gradient(135deg, #1a5f4a 0%, #2d8a6e 100%); color: #fff; }
.sh-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.sh-head p { margin: 2px 0 0; font-size: .78rem; opacity: .92; line-height: 1.5; }
.sh-head-text { flex: 1; min-width: 0; }
.sh-close { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.sh-close:focus-visible, .sh-chip:focus-visible, .sh-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sh-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 20px 20px; }

.sh-label { display: block; margin: 0 0 6px; font-size: .82rem; font-weight: 700; color: #334155; }
.sh-label small { font-weight: 400; color: #64748b; margin-left: 4px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sh-chip { min-height: 40px; padding: 6px 14px; border: 1.5px solid #cfe2da; border-radius: 999px; background: #fff; color: #1a5f4a; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.sh-chip[aria-pressed="true"] { background: #1a5f4a; border-color: #1a5f4a; color: #fff; }
.sh-field { margin: 0 0 12px; }
.sh-input { display: block; width: 100%; padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; line-height: 1.6; }
.sh-input:focus { outline: none; border-color: #1a5f4a; box-shadow: 0 0 0 4px rgba(26, 95, 74, .12); }
.sh-input.is-error { border-color: #ef4444; background: #fef2f2; }
textarea.sh-input { min-height: 112px; resize: vertical; }
.sh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-filled { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #f0f7f4; border: 1px solid #d9e8e1; font-size: .84rem; color: #334155; display: flex; align-items: center; gap: 10px; }
.sh-filled-text { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.sh-filled-text b { color: #0f172a; }
.sh-link { border: 0; background: none; padding: 8px 4px; color: #1a5f4a; font: inherit; font-size: .8rem; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.sh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sh-attach { margin: 0 0 12px; font-size: .78rem; color: #64748b; }
.sh-attach summary { cursor: pointer; padding: 6px 0; }
.sh-attach pre { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .76rem; color: #475569; }
.sh-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: .82rem; color: #334155; line-height: 1.6; cursor: pointer; }
.sh-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #1a5f4a; flex-shrink: 0; }
.sh-consent a { color: #1a5f4a; }
.sh-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .84rem; line-height: 1.6; }
.sh-error[hidden] { display: none; }
.sh-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #1a5f4a 0%, #2d8a6e 100%); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; box-shadow: 0 4px 14px rgba(26, 95, 74, .3); }
.sh-btn[disabled] { opacity: .6; cursor: default; box-shadow: none; }
.sh-btn.is-sub { background: #fff; color: #1a5f4a; border: 1.5px solid #1a5f4a; box-shadow: none; }
.sh-btn.is-busy::before { content: ''; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: shSpin .8s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
.sh-foot { margin: 10px 0 0; font-size: .76rem; color: #64748b; text-align: center; line-height: 1.6; }

.sh-done { text-align: center; padding: 8px 0 4px; }
.sh-done-mark { width: 60px; height: 60px; margin: 4px auto 10px; border-radius: 50%; background: #e8f5e9; color: #1a5f4a; font-size: 30px; line-height: 60px; font-weight: 700; }
.sh-done h3 { margin: 0 0 6px; font-size: 1.1rem; color: #0f172a; }
.sh-done p { margin: 0 0 8px; font-size: .88rem; color: #334155; line-height: 1.7; overflow-wrap: anywhere; }
.sh-done .sh-id { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #f0f7f4; color: #1a5f4a; font-weight: 700; letter-spacing: .04em; }
.sh-done .sh-btn { margin-top: 12px; }

@media (max-width: 640px) {
    .sh-fab { right: 12px; bottom: 12px; padding: 0 16px 0 12px; }
    /* 画面の一番下までスクロールしたとき、「次へ進む」「入会金を支払う」に丸いボタンが重ならないよう余白を取る */
    .main-content { padding-bottom: 88px; }
    .sh-tip { right: 12px; bottom: 72px; }
    .sh-backdrop { justify-content: center; }
    .sh-panel { max-width: none; margin: 0; max-height: 94vh; max-height: 94dvh; border-radius: 20px 20px 0 0; }
    .sh-body { padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .sh-head { padding: 14px 10px 12px 16px; }
}
@media (max-width: 340px) { .sh-row { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .sh-fab, .sh-panel { animation: none !important; transition: none; } }
