/*
Theme Name: Recruit Theme
Theme URI: https://example.com
Author: Recruit System
Description: 人材派遣向け求人サイト専用テーマ。TikTok風スライダーUI、ダークデザイン。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
License: Proprietary
Text Domain: recruit-theme
*/

/* ── リセット & ベース ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --rt-bg:       #0a0a0a;
    --rt-surface:  #111114;
    --rt-text:     #ffffff;
    --rt-text2:    rgba(255,255,255,0.7);
    --rt-accent:   #fe2c55;
    --rt-accent2:  #25f4ee;
    --rt-header-h: 56px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--rt-bg);
    color: var(--rt-text);
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    /* 求人スライダーページはoverflow:hiddenで全画面 */
}

body.has-recruit-slider {
    overflow: hidden;
    height: 100vh;
}

a { color: var(--rt-accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── サイトヘッダー ─────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--rt-header-h);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1rem;
}

.site-logo {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rt-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.site-logo::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent2));
    border-radius: 6px;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: .875rem;
    margin-left: auto;
}

.site-header nav a {
    font-size: .875rem;
    color: var(--rt-text2);
    transition: color .15s;
}
.site-header nav a:hover { color: var(--rt-text); text-decoration: none; }

/* ── メインコンテンツ ────────────────────────────────────── */
.site-main {
    min-height: 100vh;
}

/* 求人一覧ページ：ヘッダー分のパディング */
body.has-recruit-slider .site-main {
    padding-top: 0;
    padding-bottom: 0;
}

body.has-recruit-slider .site-footer {
    display: none;
}

body:not(.has-recruit-slider) .site-main {
    padding-top: var(--rt-header-h);
    padding-bottom: 3rem;
}

/* ── WordPress標準コンテンツ ────────────────────────────── */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── サイトフッター ─────────────────────────────────────── */
.site-footer {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: .8125rem;
    color: rgba(255,255,255,0.35);
}

/* ── ウィジェットなし ───────────────────────────────────── */
.no-results { padding: 3rem 1.25rem; text-align: center; color: var(--rt-text2); }

/* ── レスポンシブ ───────────────────────────────────────── */
@media (max-width: 640px) {
    .site-header nav { display: none; }
}

/* ── バナー固定表示（右下） ─────────────────────────── */
.recruit-fixed-banners {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 100;
}
.recruit-fixed-banner {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .15s, box-shadow .15s;
}
.recruit-fixed-banner:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.recruit-fixed-banner img {
    display: block;
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
}
@media (max-width: 768px) {
    .recruit-fixed-banners { bottom: 70px; right: .5rem; }
    .recruit-fixed-banner img { max-width: 120px; max-height: 60px; }
}

/* ── 求人個別ページ ──────────────────────────────── */
.recruit-single-wrap {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.recruit-single-hero img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.recruit-single-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .375rem;
}
.recruit-single-jobno {
    font-size: .8125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}
.recruit-single-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: .9rem;
}
.recruit-single-table th,
.recruit-single-table td {
    padding: .625rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    vertical-align: top;
}
.recruit-single-table th {
    width: 120px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}
.recruit-single-section {
    margin-bottom: 2rem;
}
.recruit-single-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    padding: .5rem .875rem;
    border-left: 4px solid var(--accent, #7c3aed);
    margin-bottom: .875rem;
}
.recruit-single-text {
    font-size: .9rem;
    line-height: 1.8;
    color: #cbd5e1;
}
.recruit-single-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.btn-apply {
    display: inline-block;
    background: var(--accent, #7c3aed);
    color: #fff;
    padding: .875rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: .9375rem;
}
.btn-back {
    display: inline-block;
    color: #94a3b8;
    padding: .875rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    font-size: .875rem;
}
