/* ヒラケル運営管理・広告管理のレイアウト（PC 専用。左メニュー 1：内容 9） */
:root {
  --hk-side-bg: #111214; --hk-side-text: #c9cbd1; --hk-side-muted: #7c8089;
  --hk-accent: #d20e76; --hk-accent-text: #fff;            /* ロゴのピンク */
  --hk-accent-light: #ea8fbf; --hk-accent-pale: #f3bfda;    /* ロゴの淡いピンク（黒地の文字・枠） */
  --hk-bg: #f4f5f7; --hk-card: #fff; --hk-border: #e6e8ec; --hk-text: #1d1f24;
}
html, body { height: 100%; }
body.hk-admin { margin: 0; min-width: 1280px; background: var(--hk-bg); color: var(--hk-text);
  font-family: 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; font-size: 14px; }
.hk-shell { display: grid; grid-template-columns: minmax(220px, 1fr) 9fr; min-height: 100vh; }
.hk-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--hk-side-bg); color: var(--hk-side-text); padding: 20px 14px; overflow: hidden; }
.hk-brand { display: block; color: var(--hk-accent-light); font-weight: 700; font-size: 18px; text-decoration: none; padding: 4px 10px 10px; }
.hk-nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #33363c transparent; }  /* メニューだけをスクロールし、ログイン中のメールとログアウトは常に下に表示 */
.hk-nav-group { color: var(--hk-side-muted); font-size: 11px; letter-spacing: .08em; margin: 16px 10px 6px; }
.hk-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--hk-side-text); text-decoration: none; margin-bottom: 2px; line-height: 1.3; }
.hk-nav-item:hover { background: #1f2126; color: #fff; }
.hk-nav-item.active { background: var(--hk-accent); color: var(--hk-accent-text); font-weight: 700; }
.hk-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hk-account { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 10px 14px; border-bottom: 1px solid #2a2c31; margin-bottom: 6px; }
.hk-account-email { width: 100%; color: #fff; font-size: 12px; overflow-wrap: anywhere; line-height: 1.5; }
.hk-account-label { display: block; color: var(--hk-side-muted); font-size: 11px; }
.hk-logout { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--hk-accent-pale); text-decoration: none; padding: 5px 9px; border: 1px solid #4a3340; border-radius: 6px; font-size: 12px; }
.hk-logout:hover { background: var(--hk-accent); border-color: var(--hk-accent); color: #fff; }
.hk-logout .hk-icon { width: 14px; height: 14px; }
.hk-main { min-width: 0; display: flex; flex-direction: column; }
.hk-top { display: flex; align-items: center; justify-content: space-between; background: var(--hk-card); border-bottom: 1px solid var(--hk-border); padding: 18px 28px; position: sticky; top: 0; z-index: 10; }
.hk-page-title { font-size: 20px; font-weight: 700; margin: 0; }
.hk-top-right { color: #6b6f78; font-size: 13px; }
.hk-content { padding: 20px 28px 40px; }
.hk-content > .container, .hk-content > .container-fluid { max-width: none; padding: 0; }
/* 内容の部品：カード・表を参考デザインに寄せる */
.hk-content .card { border: 1px solid var(--hk-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.hk-content .table { background: var(--hk-card); }
.hk-content .table thead th, .hk-content .table-light th { background: #f8f9fb; color: #5b606a; font-weight: 700; }
.hk-content .table-responsive, .hk-content > .table, .hk-content form + .table { border-radius: 12px; }
.hk-content .btn-primary, .btn-hk { background: var(--hk-accent); border-color: var(--hk-accent); color: #fff; }
.hk-content .btn-primary:hover, .btn-hk:hover, .btn-hk:focus { background: #b00b62; border-color: #b00b62; color: #fff; }
.hk-content a:not(.btn):not(.hk-nav-item) { color: #b00b62; }
.form-control:focus, .form-select:focus { border-color: var(--hk-accent-light); box-shadow: 0 0 0 .2rem rgba(210, 14, 118, .15); }
.hk-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.hk-kpi .card-body { padding: 18px 20px; }
.hk-kpi-label { color: #6b6f78; font-size: 13px; }
.hk-kpi-value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.hk-kpi-sub { font-size: 12px; color: #6b6f78; }
.hk-up { color: #1f9d55; } .hk-down { color: #d64545; }

/* ログイン画面（手順1：メールアドレスとパスワード、手順2：確認コード6桁）。ロゴ・左の帯は出さず、中央に配置 */
.hk-auth-body { background: var(--hk-bg); }
.hk-auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.hk-auth-title { color: var(--hk-accent); font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.hk-auth-card { width: 440px; background: var(--hk-card); border: 1px solid var(--hk-border); border-radius: 16px; padding: 28px 36px 28px; box-shadow: 0 4px 24px rgba(16, 24, 40, .06); }
.hk-steps { list-style: none; display: flex; gap: 18px; padding: 0 0 16px; margin: 0 0 20px; border-bottom: 1px solid var(--hk-border); font-size: 12px; }
.hk-steps li { display: flex; align-items: center; gap: 6px; color: #9aa0aa; }
.hk-steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #cfd3da; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.hk-steps li.active { color: var(--hk-text); font-weight: 700; }
.hk-steps li.active span { background: var(--hk-accent); border-color: var(--hk-accent); color: #fff; }
.hk-steps li.done span { border-color: var(--hk-accent-light); color: var(--hk-accent); }
.hk-auth-note { margin-top: 16px; font-size: 12px; color: #8a8f99; }
.hk-auth-h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.hk-auth-lead { color: #6b6f78; font-size: 13px; margin-bottom: 22px; }
.hk-auth-card a { color: #b00b62; }
.hk-otp { display: none; gap: 8px; margin-bottom: 18px; }
.hk-otp-on .hk-otp { display: flex; }
.hk-otp-on .hk-otp-fallback { display: none; }
.hk-otp-box { width: 100%; min-width: 0; height: 60px; text-align: center; font-size: 28px; font-weight: 700; border: 1px solid #cfd3da; border-radius: 10px; outline: none; }
.hk-otp-box:focus { border-color: var(--hk-accent); box-shadow: 0 0 0 .2rem rgba(210, 14, 118, .15); }

.btn-outline-hk { color: var(--hk-accent); border-color: var(--hk-accent); background: #fff; }
.btn-outline-hk:hover, .btn-outline-hk:focus { color: #fff; background: var(--hk-accent); border-color: var(--hk-accent); }
.hk-auth-sub { border-top: 1px solid var(--hk-border); margin-top: 20px; padding-top: 16px; }
/* ログアウトは左メニューの最下部（2026-11-03）。ログイン中のメールは題名の下 */
.hk-account { padding: 0 10px 14px; border-bottom: 1px solid #2a2c31; margin-bottom: 6px; }
.hk-side-foot { border-top: 1px solid #2a2c31; padding-top: 12px; margin-top: 10px; }
.hk-side-foot .hk-logout { display: flex; justify-content: center; padding: 9px 10px; font-size: 13px; }
.hk-side-foot .hk-logout .hk-icon { width: 16px; height: 16px; }
