@charset "UTF-8";

:root {
    --color-bg: #ffffff;
    --color-bg-light: #f5f7fa;
    --color-text: #1a1a2e;
    --color-text-light: #64748b;
    --color-primary: #0f172a;
    --color-accent: #f97316;
    --color-accent-hover: #ea580c;
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-en), var(--font-jp);
    line-height: 1.8;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-width: 320px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s var(--easing);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a, .logo {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
}

#mainNav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

#mainNav a {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    position: relative;
}

#mainNav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s var(--easing);
}

#mainNav a:hover::after {
    width: 100%;
}

#mainNav a.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(15, 23, 42, 0.25);
    border-radius: 11px;
    color: var(--color-text-light);
}

#mainNav a.lang-link::after { display: none; }
#mainNav a.lang-link:hover { border-color: var(--color-accent); color: var(--color-accent); }

body.debug-mode #mainNav a.lang-link { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6); }

.rich-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLine 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.section {
    padding: 160px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 60px;
    color: var(--color-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lead-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.rich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.rich-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.6s var(--easing), box-shadow 0.6s var(--easing);
}

.rich-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--easing);
}

.rich-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 40px 32px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.card-content p {
    color: var(--color-text-light);
    font-size: 14px;
}

.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.page-title {
    position: relative;
    z-index: 10;
    color: #fff;
    font-size: 48px;
    letter-spacing: 0.1em;
}

.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    border-bottom: 1px solid #eaeaea;
    padding: 32px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.news-list .date {
    font-family: var(--font-en);
    color: var(--color-text-light);
    font-weight: 700;
}

.news-list .category {
    font-size: 11px;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.1em;
}

.news-list .news-title {
    font-size: 16px;
    font-weight: 700;
}

.document-list {
    list-style: none;
    margin-top: 40px;
}

.document-list li {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 4px;
    transition: background 0.3s;
}

.document-list li:hover {
    background: #eef2f6;
}

.document-list a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    display: block;
}

.document-list .deleted {
    background: transparent;
    border: 1px dashed #ccc;
}

.document-list .deleted-text {
    color: #999;
}

.document-list .doc-disabled {
    display: block;
    font-weight: 700;
    color: #9aa3b2;
    cursor: not-allowed;
}

.document-list .doc-disabled::after {
    content: '（準備中）';
    font-weight: 400;
    font-size: 12px;
    margin-left: 8px;
    color: #b6bdc7;
}

.rich-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 120px 0 40px;
}

.cta-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 100px;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 40px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--easing);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-legal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.8); }

.footer-grid {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    justify-content: space-between;
    gap: 40px;
    align-items: start;
    margin-bottom: 56px;
}

.footer-logo {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.footer-tagline {
    margin: 0 0 20px;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255,255,255,0.4);
}

.footer-links-title {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-links .dev-toggle {
    display: block;
    margin-top: 20px;
}

.disclaimer { margin: 0; }

.copyright { margin: 0; }

.copyright a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.copyright a:hover { color: rgba(255,255,255,0.8); }

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* =========================================================
   ARG 拡張スタイル
   ========================================================= */

:root {
    --color-debug-bg: #0a0a0f;
    --color-debug-panel: #14141c;
    --color-debug-text: #e2e8f0;
    --color-cipher-glow: #00ff88;
}

.site-main { display: block; }

/* ---------- グラスモーフィズム・パネル / フォーム ---------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    padding: 40px;
}

.form-row { margin-bottom: 24px; }

.form-row label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.form-control:focus {
    outline: 2px solid var(--color-accent);
    border-color: transparent;
}

.mono {
    font-family: var(--font-en), monospace;
    letter-spacing: 0.12em;
}

.btn-submit {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    height: 56px;
    padding: 0 40px;
    border-radius: 28px;
    background: var(--color-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: background 0.3s var(--easing), transform 0.3s var(--easing);
}

.btn-submit:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn-submit:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

.notice-box {
    border-left: 3px solid var(--color-accent);
    background: rgba(249, 115, 22, 0.06);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.7;
}

.error-box {
    border-left: 3px solid #dc2626;
    background: rgba(220, 38, 38, 0.08);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}

.breadcrumb {
    padding: 10px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 11px;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb .crumb-sep { margin: 0 8px; }

.breadcrumb .crumb-current { color: var(--color-text); font-weight: 700; }

body.debug-mode .breadcrumb { border-top-color: rgba(255, 255, 255, 0.1); }
body.debug-mode .breadcrumb a { color: rgba(226, 232, 240, 0.6); }
body.debug-mode .breadcrumb .crumb-current { color: var(--color-debug-text); }

.doc-data { list-style: none; }
.doc-data li { padding: 6px 0; border-bottom: 1px dashed rgba(15, 23, 42, 0.12); font-size: 14px; }
.doc-note { margin-top: 32px; color: var(--color-text-light); font-size: 13px; }

/* ---------- 適性検査 ---------- */
.quiz-item {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.quiz-item .q { font-weight: 700; margin-bottom: 12px; line-height: 1.6; }

.quiz-item label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
}

.quiz-item input[type="radio"] { margin-top: 5px; flex-shrink: 0; }

/* ---------- 画像キャリブレーション ---------- */
.upload-zone {
    border: 2px dashed rgba(15, 23, 42, 0.2);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 14px;
    transition: border-color 0.3s, background 0.3s;
}

.upload-zone.dragover { border-color: var(--color-accent); background: rgba(249, 115, 22, 0.05); }

.preview-wrap { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.preview-wrap figure { margin: 0; font-size: 11px; color: var(--color-text-light); text-align: center; }
.preview-wrap img,
.preview-wrap canvas {
    display: block;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 6px;
}

/* ---------- 管理コンソール：処理対象カード ---------- */
.target-card {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 14px;
    padding: 24px;
    background: rgba(220, 38, 38, 0.04);
    margin: 24px 0;
}

.target-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(1) contrast(1.1);
}

.target-meta .tag {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.target-meta .name { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.target-meta .mono { font-size: 12px; color: var(--color-text-light); }

/* ---------- チャット UI ---------- */
.countdown {
    font-family: var(--font-en), monospace;
    font-size: 30px;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 0.1em;
    margin: 24px 0 8px;
}

.chat-ui {
    max-width: 520px;
    margin: 16px 0 8px;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
}

.chat-ui .msg {
    align-self: flex-start;
    max-width: 82%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    animation: msgIn 0.3s var(--easing);
}

.chat-ui .msg.alert { background: rgba(220, 38, 38, 0.85); }

.chat-ui .msg .who {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-bottom: 2px;
    letter-spacing: 0.1em;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.lock-form { margin-top: 24px; max-width: 520px; }

/* ---------- X シェア ---------- */
.share-block { text-align: center; }

.btn-x {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    background: #000;
    color: #fff;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.3s;
}

.btn-x:hover { opacity: 0.82; }

/* =========================================================
   dev_mode（ダークモード / あぶり出し）
   ========================================================= */
.dev-toggle {
    display: inline-block;
    font-family: var(--font-en), monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.dev-toggle:hover { color: rgba(255, 255, 255, 0.4); }

.hidden-cipher {
    display: inline-block;
    color: transparent;
    user-select: none;
    font-family: var(--font-en), monospace;
    letter-spacing: 0.3em;
    transition: color 0.4s, text-shadow 0.4s;
}

body.debug-mode {
    background-color: var(--color-debug-bg);
    color: var(--color-debug-text);
}

body.debug-mode .glass-header {
    background: rgba(10, 10, 15, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.debug-mode .logo,
body.debug-mode .logo a,
body.debug-mode #mainNav a { color: var(--color-debug-text); }

body.debug-mode .section.bg-light,
body.debug-mode .bg-light { background-color: #101018; }

body.debug-mode .section-title,
body.debug-mode .card-content h3,
body.debug-mode .card-content p,
body.debug-mode .lead-text { color: var(--color-debug-text); }

body.debug-mode .rich-card,
body.debug-mode .glass-panel {
    background: rgba(30, 30, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-debug-text);
}

body.debug-mode .document-list li { background: var(--color-debug-panel); }
body.debug-mode .dev-toggle { color: var(--color-cipher-glow); }

body.debug-mode .form-control,
body.debug-mode select.form-control {
    background: #20202c;
    color: var(--color-debug-text);
    border-color: rgba(255, 255, 255, 0.28);
}

body.debug-mode .form-row label,
body.debug-mode .filter-bar .pg-clear { color: var(--color-debug-text); }
body.debug-mode .result-count { color: rgba(226, 232, 240, 0.75); }

/* ネイティブ <option> の視認性（ライト / ダーク） */
select.form-control option { color: #1a1a2e; background: #ffffff; }
select.form-control option:disabled { color: #9aa3b2; }
body.debug-mode select.form-control option { color: #e2e8f0; background: #20202c; }
body.debug-mode select.form-control option:disabled { color: #6b7280; }

body.debug-mode .hidden-cipher {
    color: var(--color-cipher-glow);
    text-shadow: 0 0 4px var(--color-cipher-glow),
                 0 0 12px var(--color-cipher-glow),
                 0 0 24px rgba(0, 255, 136, 0.6);
    user-select: text;
}

/* =========================================================
   クリア後グリッチ表現
   ========================================================= */
.glitch-layer { display: none; }

body.glitch {
    animation: glitchShake 2.4s infinite steps(2);
    overflow-x: hidden; /* 1px 揺らしで横スクロールバーが出ないように */
}

body.glitch .glitch-layer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    mix-blend-mode: screen;
    background: repeating-linear-gradient(0deg, rgba(249, 115, 22, 0.07) 0 2px, transparent 2px 4px);
    animation: scanlines 8s linear infinite;
}

body.glitch .glass-header,
body.glitch .site-main { animation: glitchClip 3s infinite steps(3); }

body.glitch .hero-title { position: relative; }

body.glitch .hero-title::before,
body.glitch .hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    mix-blend-mode: screen;
}

body.glitch .hero-title::before {
    color: #f97316;
    clip-path: inset(0 0 55% 0);
    animation: glitchShift 0.4s infinite steps(2);
}

body.glitch .hero-title::after {
    color: #38bdf8;
    clip-path: inset(50% 0 0 0);
    animation: glitchShift 0.55s infinite reverse steps(2);
}

@keyframes glitchShake {
    0%, 100% { transform: none; }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 1px); }
}

@keyframes glitchClip {
    0%, 100% { clip-path: inset(0 0 0 0); }
    33% { clip-path: inset(8% 0 3% 0); }
    66% { clip-path: inset(2% 0 12% 0); }
}

@keyframes glitchShift {
    0% { transform: translate(-3px, 0); }
    100% { transform: translate(3px, 2px); }
}

@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 100px; }
}

/* ---------- 社員データ 一覧 / 詳細 ---------- */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 24px 0;
}

.filter-bar .form-row { margin-bottom: 0; }
.filter-bar input { min-width: 240px; }
.filter-bar .pg-clear { align-self: center; font-size: 13px; color: var(--color-text-light); }

.result-count { font-size: 13px; color: var(--color-text-light); margin-bottom: 12px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.data-table th {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    background: rgba(15, 23, 42, 0.04);
    white-space: nowrap;
}

.data-table td { white-space: nowrap; }

.data-table td.note {
    white-space: normal;
    color: var(--color-text-light);
    min-width: 260px;
}

.data-table tbody tr:hover td { background: rgba(249, 115, 22, 0.05); }

.data-table .id-link {
    font-family: var(--font-en), monospace;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    text-decoration: none;
}

.data-table .id-link:hover { text-decoration: underline; }
.data-table .rating { font-family: var(--font-en), monospace; font-weight: 700; }
.data-table .row-special td { background: rgba(220, 38, 38, 0.06); }

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 13px;
}

.pagination a,
.pagination > span {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 19px;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--color-primary);
}

.pagination > span.current { background: var(--color-accent); color: #fff; border-color: transparent; }
.pagination > span.disabled { opacity: 0.35; }

.pagination form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 0;
    padding: 0;
}

.pagination input {
    width: 88px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 10px;
    font: inherit;
}

.pagination form .btn-submit { height: 38px; padding: 0 16px; }

.detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 24px;
    margin: 20px 0;
}

.detail-grid dt {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-light);
    letter-spacing: 0.06em;
}

.detail-grid dd { margin: 0; font-size: 15px; }

body.debug-mode .data-table { background: rgba(30, 30, 42, 0.6); color: var(--color-debug-text); }
body.debug-mode .data-table th { background: rgba(255, 255, 255, 0.04); color: var(--color-debug-text); }

body.debug-mode .pagination a,
body.debug-mode .pagination > span,
body.debug-mode .pagination input {
    color: var(--color-debug-text);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
    .detail-grid { grid-template-columns: 1fr; gap: 4px 0; }
    .detail-grid dd { margin-bottom: 14px; }
}

/* =========================================================
   コンテンツ幅・中央寄せ（サブページ本文）
   ========================================================= */
.content-section {
    max-width: 960px;          /* 本文カラムの基準幅 */
    margin-left: auto;
    margin-right: auto;
}

.content-section.is-wide {
    max-width: 1200px;         /* 表など横幅が必要なページ */
}

.content-section > .glass-panel {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   採用ページ（ランディング）
   ========================================================= */
.careers-hero { text-align: center; }

.careers-kicker {
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.careers-headline {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    margin: 14px 0 22px;
    color: var(--color-primary);
}

.careers-headline .big-zero { color: var(--color-accent); font-size: 1.25em; }
.careers-headline .excl { color: var(--color-accent); margin-left: 0.05em; }

.careers-lead { font-size: 18px; margin-bottom: 44px; }

.careers-window { margin: 0 0 48px; }

.careers-window img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 8px solid #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.careers-window figcaption {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 10px;
}

.careers-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    text-align: left;
}

.cpoint {
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 14px;
    padding: 24px;
}

.cpoint h3 { font-size: 16px; margin-bottom: 8px; color: var(--color-accent); }
.cpoint p { font-size: 14px; color: var(--color-text-light); }

.careers-voices { margin: 56px 0 48px; text-align: left; }

.careers-voices-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.voice-card {
    background: rgba(15, 23, 42, 0.03);
    border-radius: 14px;
    padding: 20px;
}

.voice-card p { font-size: 14px; line-height: 1.8; }
.voice-card .voice-meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-light);
    font-family: var(--font-en), monospace;
}

body.debug-mode .careers-voices-title { color: var(--color-debug-text); }
body.debug-mode .voice-card { background: rgba(255, 255, 255, 0.05); }
body.debug-mode .voice-card p:not(.voice-meta) { color: var(--color-debug-text); }

.careers-cta { margin-top: 8px; }
.careers-note { font-size: 12px; color: var(--color-text-light); margin-top: 14px; }

.btn-lg { height: 64px; padding: 0 56px; font-size: 16px; border-radius: 32px; }

.btn-disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    pointer-events: none;
}

body.debug-mode .btn-disabled { background: #3a3a48 !important; color: rgba(255, 255, 255, 0.4) !important; }

body.debug-mode .careers-headline { color: var(--color-debug-text); }
body.debug-mode .careers-window img { border-color: #20202c; }
body.debug-mode .cpoint { background: rgba(249, 115, 22, 0.10); }

/* =========================================================
   適性検査ウィザード（一問＝一画面）
   ========================================================= */
.wizard { max-width: 620px; }

.wizard-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.wizard-progress span {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(15, 23, 42, 0.12);
    transition: background 0.3s var(--easing);
}

.wizard-progress span.on { background: var(--color-accent); }

.wizard-count {
    font-family: var(--font-en), monospace;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.wizard-q {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
}

.wizard-q.q5-noise { position: relative; }

.wizard-q.q5-noise::before,
.wizard-q.q5-noise::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

.wizard-q.q5-noise::before {
    color: #f97316;
    animation: q5NoiseBefore 3.4s infinite steps(1);
}

.wizard-q.q5-noise::after {
    color: #38bdf8;
    animation: q5NoiseAfter 3.4s infinite steps(1);
}

@keyframes q5NoiseBefore {
    0%, 89%, 100% { opacity: 0; }
    90% { opacity: 0.8; clip-path: inset(0 0 60% 0); transform: translate(-2px, 0); }
    92% { opacity: 0; }
    93% { opacity: 0.8; clip-path: inset(40% 0 20% 0); transform: translate(2px, 1px); }
    95% { opacity: 0; }
}

@keyframes q5NoiseAfter {
    0%, 91%, 100% { opacity: 0; }
    92% { opacity: 0.8; clip-path: inset(55% 0 0 0); transform: translate(2px, -1px); }
    94% { opacity: 0; }
    96% { opacity: 0.7; clip-path: inset(10% 0 50% 0); transform: translate(-2px, 0); }
    98% { opacity: 0; }
}

/* ---------- 採用試験：ウィザードのダークモード ---------- */
/* サイト本来の dev_mode（body.debug-mode）をそのまま使う。
   試験ウィザードのカード（どのステップでも）全体に反映する。 */
body.debug-mode .wizard {
    background: var(--color-debug-bg);
    color: var(--color-debug-text);
}

body.debug-mode .wizard .wizard-q,
body.debug-mode .wizard .wizard-count,
body.debug-mode .wizard p,
body.debug-mode .wizard label { color: var(--color-debug-text); }

body.debug-mode .wizard .form-control {
    background: #20202c;
    color: var(--color-debug-text);
    border-color: rgba(255, 255, 255, 0.28);
}

body.debug-mode .wizard .reset-link { color: rgba(226, 232, 240, 0.6); }
body.debug-mode .wizard .error-box { background: rgba(220, 38, 38, 0.15); }
body.debug-mode .wizard .wizard-progress span { background: rgba(255, 255, 255, 0.15); }
body.debug-mode .wizard .upload-zone { border-color: rgba(255, 255, 255, 0.25); color: var(--color-debug-text); }
body.debug-mode .wizard .notice-box { background: rgba(249, 115, 22, 0.1); color: var(--color-debug-text); }

/* ---------- 採用試験：Q6 ピースパズル ---------- */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-width: 420px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.4s var(--easing);
}

.puzzle-piece {
    aspect-ratio: 1;
    position: relative;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-image: var(--puzzle-img);
    background-size: 400% 200%;
    background-repeat: no-repeat;
}

.puzzle-piece.selected { outline: 3px solid var(--color-accent); outline-offset: -3px; z-index: 1; }

/* ダークモード中：画像を一切見せず、全断片が完全に同一の幾何学模様ノイズになる */
body.debug-mode .puzzle-piece {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.09) 0,
        rgba(255, 255, 255, 0.09) 4px,
        transparent 4px,
        transparent 10px
    );
    background-color: #0a0a0f;
}

.puzzle-piece .piece-mark {
    position: absolute;
    bottom: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: var(--font-en), monospace;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

/* ダークモード中は焼き込み数字も含め一切非表示 */
body.debug-mode .piece-mark { display: none; }

/* 完全に揃った状態：枠線を落として継ぎ目を目立たなくする（テキストでの正誤表示はしない） */
.puzzle-grid.is-complete { box-shadow: 0 0 0 2px var(--color-accent); }
.puzzle-grid.is-complete .puzzle-piece { cursor: default; }

/* リセットリンク（グリッチ画面） */
.reset-link {
    font-family: var(--font-en), monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    text-decoration: none;
}
.reset-link:hover { color: var(--color-accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.debug-mode .nav-toggle span { background: var(--color-debug-text); }

@media (max-width: 768px) {
    .header-inner {
        position: relative;
        height: 64px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        gap: 0;
    }
    .nav-toggle { display: flex; }
    #mainNav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 12px 0 20px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }
    #mainNav.nav-open ul { display: flex; }
    #mainNav ul li { text-align: center; }
    #mainNav ul a { display: block; padding: 12px 0; }
    #mainNav ul a.lang-link { display: inline-flex; margin: 4px auto 0; }
    body.debug-mode #mainNav ul { background: rgba(10, 10, 15, 0.97); }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
    .footer-bottom { text-align: center; }
    .footer-legal-row {
        flex-direction: column;
        gap: 16px;
    }
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================================
   フッター「ブリスくん」マスコット（常時表示、クリックで管理者モードへ）
   ========================================================= */
.bris-mascot {
    display: inline-block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background-image: url('/img/bris-kun.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    /* スプライトは26コマ（0-17=通常表情、18-25=悲しい表情の最後8コマ）。
       常時ループでは悲しい表情を混ぜないよう0-17のみ再生する。 */
    animation: brisIdle 3.6s steps(18) infinite;
    opacity: 0.85;
    transition: opacity 0.3s, animation-duration 0.3s;
}

.bris-mascot:hover,
.bris-mascot:focus-visible {
    opacity: 1;
    animation-duration: 1.4s;
}

@keyframes brisIdle {
    from { background-position: 0 0; }
    to { background-position: -576px 0; }
}

/* =========================================================
   管理者モード：候補者一覧 / 最終関門
   ========================================================= */
.target-card.compact {
    padding: 16px 20px;
    justify-content: space-between;
}

.target-card.self-card { border-color: rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.05); }

.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.candidate-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.03);
}

.candidate-name { flex: 1; font-size: 14px; }
.candidate-status { font-size: 11px; color: var(--color-text-light); }

.btn-reject {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 15px;
    background: transparent;
    color: #dc2626;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-reject:hover { background: #dc2626; color: #fff; }

.pin-form { margin: 20px 0 0; max-width: 320px; }

body.debug-mode .candidate-row { background: rgba(255, 255, 255, 0.05); }
body.debug-mode .candidate-name,
body.debug-mode .candidate-status { color: var(--color-debug-text); }

/* ---------- 最終関門：暗転演出 ---------- */
.admin-blackout {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.1s var(--easing);
    pointer-events: none;
}

.admin-blackout.is-fading { opacity: 0; }

.admin-alert {
    color: #dc2626;
    font-size: 13px;
    letter-spacing: 0.06em;
}

/* ---------- 一瞬だけ表示されるトースト通知（偽合格の差し戻し文言） ---------- */
.admin-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 12px);
    max-width: calc(100% - 32px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
    z-index: 10000;
    pointer-events: none;
}

.admin-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }