/* forBiz 従業員画面の見た目（画面デザイン案に合わせる）。body.forbiz のときだけ有効。 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500&family=Noto+Serif+JP:wght@500;700&display=swap');
body.forbiz, html:has(body.forbiz) { background: #0d1524 !important; }
body.forbiz { color: #e8edf5; font-family: 'Noto Sans JP', sans-serif; }
body.forbiz .app { background: #0d1524; max-width: 430px; margin: 0 auto; min-height: 100vh; box-shadow: none; }
body.forbiz .app-header, body.forbiz .ehon-fab { display: none !important; }
body.forbiz .content { padding: 28px 22px 40px; background: transparent; }
body.forbiz .fb-title { margin: 8px 0 0; font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 25px; line-height: 1.5; letter-spacing: 0.03em; color: #e8edf5; }
body.forbiz .fb-card { margin-top: 22px; padding: 16px; background: #131f38; border: 1px solid #2a3a58; border-top: 2px solid #cdb078; color: #d5deec; font-size: 14px; line-height: 1.8; }
body.forbiz .fb-note { font-size: 12px; color: #b9c6dc; line-height: 1.7; margin-top: 10px; }
body.forbiz .fb-top { display: flex; justify-content: space-between; font-size: 12px; color: #b9c6dc; margin-bottom: 6px; }
body.forbiz .fb-btn { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 14px 16px; text-align: center; font-size: 15px; line-height: 20px; text-decoration: none; margin-top: 22px; background: #cdb078; color: #0d1524; border: 1px solid #cdb078; font-weight: 500; cursor: pointer; border-radius: 0; font-family: inherit; }
body.forbiz .fb-btn-ghost { background: transparent; color: #cdb078; }
body.forbiz .fb-btn:disabled { opacity: .5; }
body.forbiz .fb-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid #2a3a58; font-size: 15px; }
body.forbiz .event-puzzle-row { border-bottom: 1px solid #2a3a58; color: #e8edf5; }
body.forbiz .event-puzzle-row a.challenge-link { color: #cdb078; }
body.forbiz .ai-note { color: #b9c6dc; }

/* 既存部品（参加登録・同意・座学の設問など）を、同じ配色にそろえる */
body.forbiz .detail-card, body.forbiz .card { background: #131f38; border: 1px solid #2a3a58; border-top: 2px solid #cdb078; border-radius: 0; box-shadow: none; color: #d5deec; }
body.forbiz .detail-card h3, body.forbiz .detail-card p, body.forbiz .detail-card label, body.forbiz .detail-card span { color: inherit; }
body.forbiz .ai-label span { color: #cdb078; }
body.forbiz .field label { color: #b9c6dc; font-size: 12px; }
body.forbiz input[type=text], body.forbiz input[type=email], body.forbiz input[type=password], body.forbiz textarea, body.forbiz select { background: #0d1524; color: #e8edf5; border: 1px solid #2a3a58; border-radius: 0; }
body.forbiz .hint-text { color: #b9c6dc; }
body.forbiz .btn-primary, body.forbiz .ej-gate-btn { background: #cdb078; color: #0d1524; border: 1px solid #cdb078; border-radius: 0; box-shadow: none; font-weight: 500; }
body.forbiz .btn-secondary { background: transparent; color: #cdb078; border: 1px solid #cdb078; border-radius: 0; box-shadow: none; }
body.forbiz .ej-step { background: #131f38; color: #b9c6dc; border-radius: 0; }
body.forbiz .ej-step.done { background: #cdb078; color: #0d1524; }
body.forbiz .ej-step.current { background: transparent; color: #cdb078; border: 1px solid #cdb078; }
body.forbiz .ej-gate-eyebrow { color: #b9c6dc; }
body.forbiz .spinner { border-color: #2a3a58; border-top-color: #cdb078; }

body.forbiz .fb-card > .fb-row:first-child { border-top: none; }
body.forbiz .consent-box { background: #0d1524; border: 1px solid #2a3a58; color: #d5deec; }
body.forbiz .fb-card .field label { color: #b9c6dc; }

/* 入力欄の幅・余白をそろえる（メール・パスワード欄が細くなる不具合の修正） */
body.forbiz input[type=text], body.forbiz input[type=email], body.forbiz input[type=password], body.forbiz textarea, body.forbiz select { width: 100%; box-sizing: border-box; padding: 14px 12px; font-size: 16px; font-family: inherit; }

/* ご担当者・運営のコンソール画面（PC・スマホ両対応）。body に forbiz と console を付ける */
body.forbiz.console .app { max-width: 1040px; }
body.forbiz.console .app-header { display: block !important; background: #0a111e; color: #e8edf5; border-radius: 0; border-bottom: 1px solid #2a3a58; padding: 18px 22px; }
body.forbiz.console .app-header::after, body.forbiz.console .header-mascot { display: none !important; }
body.forbiz.console .app-header h1 { font-family: 'Noto Serif JP', serif; font-size: 20px !important; color: #e8edf5; }
body.forbiz.console .app-header p, body.forbiz.console .app-header .back-link { color: #b9c6dc; }
body.forbiz.console .content { padding: 20px 22px 40px; }
body.forbiz.console .event-list-btn { background: #131f38; color: #d5deec; border: 1px solid #2a3a58; border-radius: 0; }
body.forbiz.console .event-list-btn.active { background: transparent; color: #cdb078; border-color: #cdb078; }
body.forbiz.console .bar-row .bar-track { background: #2a3a58; border-radius: 0; }
body.forbiz.console .bar-row .bar-fill { background: #cdb078; border-radius: 0; }
body.forbiz.console .bar-row .bar-label, body.forbiz.console .bar-row .bar-value { color: #b9c6dc; }
body.forbiz.console table th, body.forbiz.console table td { color: #d5deec; }
body.forbiz.console .bar-track { background: #2a3a58; }
@media (min-width: 720px) { body.forbiz.console .content { display: block; } }
@media (max-width: 480px) { body.forbiz.console .content { padding: 14px 14px 32px; } body.forbiz.console .btn { width: 100%; box-sizing: border-box; } }

/* ご担当者画面のタブ：スマホでも横に並べ、はみ出す分は横スクロールにする */
body.forbiz.console #tabs { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
body.forbiz.console #tabs .btn { width: auto !important; flex: 0 0 auto; white-space: nowrap; margin-top: 0; }

/* 運営の画面（イベント一覧・会社詳細・イベント詳細・トップ）。既存の色の変数を、ダークの配色に置き換える */
body.forbiz.console { --gray: #b9c6dc; --border: #2a3a58; --card: #131f38; --dark: #e8edf5; --navy: #cdb078; --primary: #cdb078; --coral: #cdb078; --coral-dark: #b89b62; --shadow: none; --line: #2a3a58; }
body.forbiz.console a { color: #cdb078; }
body.forbiz.console .app-header .back-link { color: #b9c6dc; }
body.forbiz.console .btn { border-radius: 0; box-shadow: none; font-family: inherit; }
body.forbiz.console .btn-primary { background: #cdb078; color: #0d1524; border: 1px solid #cdb078; }
body.forbiz.console .btn-primary:hover { background: #b89b62; }
body.forbiz.console .btn-secondary { background: transparent; color: #cdb078; border: 1px solid #cdb078; }
body.forbiz.console .btn-secondary:hover { border-color: #e3cc98; }
body.forbiz.console .detail-card h2, body.forbiz.console .detail-card h3, body.forbiz.console .section-title { color: #e8edf5; font-family: 'Noto Serif JP', serif; }
body.forbiz.console .breadcrumb, body.forbiz.console .ai-note, body.forbiz.console .hint-text { color: #b9c6dc; }
body.forbiz.console input[type=number], body.forbiz.console input[type=date], body.forbiz.console input[type=datetime-local], body.forbiz.console input[type=url], body.forbiz.console input[type=tel] { background: #0d1524; color: #e8edf5; border: 1px solid #2a3a58; border-radius: 0; width: 100%; box-sizing: border-box; padding: 12px; font-size: 16px; font-family: inherit; color-scheme: dark; }
body.forbiz.console table.companies-table th, body.forbiz.console table.companies-table td,
body.forbiz.console table.events-table th, body.forbiz.console table.events-table td,
body.forbiz.console table.analytics-table th, body.forbiz.console table.analytics-table td { border-bottom: 1px solid #2a3a58; }
body.forbiz.console table.companies-table th, body.forbiz.console table.events-table th, body.forbiz.console table.analytics-table th { color: #b9c6dc; }
body.forbiz.console .puzzle-mini-row, body.forbiz.console .company-block { border-bottom-color: #2a3a58; }
body.forbiz.console .join-code-box canvas { background: #fff; padding: 10px; box-sizing: content-box; }
body.forbiz.console .report-stat { background: #0d1524; border: 1px solid #2a3a58; color: #d5deec; }
body.forbiz.console .admin-menu-card { background: #131f38; border: 1px solid #2a3a58; border-radius: 0; box-shadow: none; color: #e8edf5; }
body.forbiz.console .admin-menu-card:hover { border-color: #cdb078; }
body.forbiz.console .admin-menu-card .badge { background: transparent; border: 1px solid #cdb078; color: #cdb078; border-radius: 0; }
body.forbiz.console .admin-menu-card .info h3 { font-family: 'Noto Serif JP', serif; color: #e8edf5; }
body.forbiz.console .admin-menu-card .chevron { color: #cdb078; }
body.forbiz.console .top-bottom-nav { background: #0a111e; border: 1px solid #2a3a58; border-radius: 0; box-shadow: none; }
body.forbiz.console .top-nav-item { color: #8fa0bd; }
body.forbiz.console .top-nav-item.active { color: #cdb078; }
body.forbiz.console .top-nav-fab { background: #cdb078; box-shadow: none; border-radius: 0; }
body.forbiz.console .top-nav-fab svg path { stroke: #0d1524; }
body.forbiz.console .edit-company-link, body.forbiz.console .delete-company-link, body.forbiz.console .delete-event-link { font-size: 13px; }
@media (max-width: 480px) { body.forbiz.console .app-header { padding: 14px 14px; } body.forbiz.console .app-header h1 { font-size: 17px !important; } body.forbiz.console .join-code-text { font-size: 22px; letter-spacing: 3px; } }

/* 運営画面の修正（スマホ）：横並びの欄のボタンが幅いっぱいにならない／日付欄のはみ出し／数値の表示 */
body.forbiz.console .field[style*="display:flex"] .btn, body.forbiz.console .field[style*="display: flex"] .btn { width: auto !important; flex: 0 0 auto; margin-top: 0; }
body.forbiz.console input[type=date], body.forbiz.console input[type=datetime-local], body.forbiz.console input[type=time] { min-width: 0; max-width: 100%; display: block; min-height: 48px; }
body.forbiz.console .report-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; margin-top: 8px; }
body.forbiz.console .report-stat .label { font-size: 12px; color: #b9c6dc; white-space: nowrap; }
body.forbiz.console .report-stat .value { font-size: 15px; color: #e8edf5; word-break: break-all; text-align: right; }
body.forbiz .toast { background: #cdb078; color: #0d1524; border-radius: 0; box-shadow: 0 6px 18px rgba(0,0,0,.5); font-weight: 500; bottom: 88px; }
body.forbiz.console .report-stat, body.forbiz.console .report-stat span { text-decoration: none !important; border-bottom: none; }
body.forbiz.console .rep-mail { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 12px; margin-top: 8px; background: #0d1524; border: 1px solid #2a3a58; }
body.forbiz.console .rep-mail-label { font-size: 12px; color: #b9c6dc; white-space: nowrap; text-decoration: none; }
body.forbiz.console .rep-mail-value { font-size: 15px; color: #e8edf5; word-break: break-all; text-align: right; text-decoration: none; }

/* 運営の残り画面（ユーザー一覧・謎データ一覧・匿名集計・IP） */
body.forbiz.console table.users-table th, body.forbiz.console table.users-table td,
body.forbiz.console table.puzzles-table th, body.forbiz.console table.puzzles-table td { border-bottom: 1px solid #2a3a58; color: #d5deec; }
body.forbiz.console table.users-table th, body.forbiz.console table.puzzles-table th { color: #b9c6dc; }
body.forbiz.console .role-admin-tag { background: transparent; color: #cdb078; border: 1px solid #cdb078; border-radius: 0; }
body.forbiz.console .channel-tag { background: transparent; color: #b9c6dc; border: 1px solid #2a3a58; border-radius: 0; }
body.forbiz.console .ip-chip { background: transparent; color: #cdb078; border: 1px solid #2a3a58; border-radius: 0; }
body.forbiz.console .ip-item { border-bottom-color: #2a3a58; }
body.forbiz.console .ip-item-title { color: #e8edf5; }
body.forbiz.console .ip-item-meta { color: #b9c6dc; }
body.forbiz.console .ip-badge { border-radius: 0; }
body.forbiz.console .btn-link { color: #cdb078; }
body.forbiz.console .users-table-wrap, body.forbiz.console .puzzles-table-wrap { overflow-x: auto; }
body.forbiz.console .form-error { color: #e5796f; }
body.forbiz.console .test-tag { display: inline-block; font-size: 11px; color: #cdb078; border: 1px solid #cdb078; padding: 0 6px; margin-left: 6px; line-height: 18px; }

/* ログイン・参加コード入力画面（スマホ幅。ヘッダーは残して暗い帯にする） */
body.forbiz.fb-shell .app-header { display: block !important; background: #0a111e; color: #e8edf5; border-radius: 0; border-bottom: 1px solid #2a3a58; padding: 18px 22px; }
body.forbiz.fb-shell .app-header::after, body.forbiz.fb-shell .header-mascot { display: none !important; }
body.forbiz.fb-shell .app-header h1 { font-family: 'Noto Serif JP', serif; font-size: 20px !important; color: #e8edf5; }
body.forbiz.fb-shell .app-header p, body.forbiz.fb-shell .app-header .back-link { color: #b9c6dc; }
body.forbiz.fb-shell .content { padding: 20px 22px 40px; }
body.forbiz.fb-shell .ai-box { background: #131f38; border: 1px solid #2a3a58; border-top: 2px solid #cdb078; border-radius: 0; color: #d5deec; }
body.forbiz.fb-shell .ai-box .ai-label, body.forbiz.fb-shell .ai-label span { color: #cdb078; }
body.forbiz.fb-shell .ai-note, body.forbiz.fb-shell .hint-text { color: #b9c6dc; }
body.forbiz.fb-shell .tab-btn { background: #131f38; color: #b9c6dc; border: 1px solid #2a3a58; border-radius: 0; }
body.forbiz.fb-shell .tab-btn.active { background: transparent; color: #cdb078; border-color: #cdb078; }
body.forbiz.fb-shell a { color: #cdb078; }
body.forbiz.fb-shell .btn { border-radius: 0; box-shadow: none; font-family: inherit; }
body.forbiz.fb-shell input[type=number], body.forbiz.fb-shell input[type=tel], body.forbiz.fb-shell input[type=date] { background: #0d1524; color: #e8edf5; border: 1px solid #2a3a58; border-radius: 0; width: 100%; box-sizing: border-box; padding: 14px 12px; font-size: 16px; font-family: inherit; }
body.forbiz.fb-shell .toast { bottom: 28px; }
body.forbiz .jbc-code-input { font-size: 28px; font-weight: 500; letter-spacing: 6px; text-align: center; text-transform: uppercase; padding: 16px 10px; }
/* リンク色の指定が、金色の背景のボタンの文字色を上書きしないようにする */
html body.forbiz a.btn-primary, html body.forbiz a.ej-gate-btn, html body.forbiz a.fb-btn:not(.fb-btn-ghost) { color: #0d1524; }
html body.forbiz a.btn-secondary, html body.forbiz a.fb-btn-ghost { color: #cdb078; }

/* iPhoneの日時欄: 幅が枠からはみ出す・文字が中央寄りになる問題の対処（2026-10-01）。
   appearance:none だけだと値が表示されなくなるため、値の表示部分に高さを与える */
body.forbiz input[type=datetime-local], body.forbiz input[type=date], body.forbiz input[type=time] { -webkit-appearance: none; appearance: none; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; display: block; text-align: left; }
body.forbiz input[type=datetime-local]::-webkit-date-and-time-value, body.forbiz input[type=date]::-webkit-date-and-time-value, body.forbiz input[type=time]::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; margin: 0; }

/* iPhoneは、16px未満の入力欄にさわると画面が拡大され、そのまま戻らず右がはみ出す。入力欄は16px以上にする（2026年10月1日） */
body.forbiz input, body.forbiz textarea, body.forbiz select { font-size: 16px; }
