/**
 * Right Brothers 求人サイトテーマ メインスタイルシート
 *
 * @package RB_Jobs_Theme
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --accent-color: #FFD835;
    --accent-hover: #f0c929;
    --primary-color: #000000;
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-light: #666666;
    --border-color: #eeeeee;
    --header-bg-color: #ffffff;
    --footer-bg-color: #000000;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--header-bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: var(--primary-color);
}

.custom-logo-link {
    display: block;
    max-width: 180px;
}

.custom-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-description {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: var(--text-light);
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--accent-color);
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 25px 0;
    color: var(--primary-color);
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin: 0 0 40px 0;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ============================================
   Sections
   ============================================ */
.latest-jobs-section,
.features-section,
.categories-section {
    padding: 80px 0;
}

.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* ============================================
   Jobs Grid
   ============================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.job-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.job-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.job-card:hover .job-card-image img {
    transform: scale(1.05);
}

.job-card-content {
    padding: 25px;
    cursor: pointer;
    user-select: none;
}

/* プラグインの求人カードにも適用 */
.rb-job-card-content {
    cursor: pointer;
    user-select: none;
}

.job-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.job-card-title a {
    color: var(--primary-color);
}

.job-card-company {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
    font-weight: 500;
}

.job-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.job-meta-item {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-card-link {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.job-card-link:hover {
    color: var(--accent-color);
}

/* ============================================
   Features Grid
   ============================================ */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--primary-color);
}

.feature-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Categories Grid
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.category-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
}

.cta-section .btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 20px 0;
    margin-bottom: 30px;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* ============================================
   Posts & Pages
   ============================================ */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 28px;
    margin: 40px 0 20px 0;
}

.entry-content h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.entry-content p {
    margin: 0 0 20px 0;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Pagination
   ============================================ */
.pagination,
.posts-pagination {
    margin-top: 60px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--footer-bg-color);
    color: #ffffff;
    margin-top: auto;
}

.footer-widgets {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding: 30px 0;
}

.footer-navigation {
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

.site-info {
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.copyright a {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 .page-header {
    border: none;
}

.error-404-search,
.error-404-links {
    margin: 40px auto;
    max-width: 600px;
}

.error-404-links ul {
    list-style: none;
    padding: 0;
}

.error-404-links li {
    margin: 10px 0;
}

/* ============================================
   Search Form
   ============================================ */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 20px auto;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-submit {
    padding: 12px 24px;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--accent-hover);
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card.animate-in,
.feature-item.animate-in,
.category-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.job-card {
    opacity: 0;
}

.job-card.animate-in {
    opacity: 1;
}

/* Loading state */
body:not(.loaded) .hero-section,
body:not(.loaded) .latest-jobs-section {
    opacity: 0;
}

body.loaded .hero-section {
    animation: fadeInUp 0.8s ease-out forwards;
}

body.loaded .latest-jobs-section {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* ============================================
   Utility Classes
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 40px;
    }

    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .site-branding {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }

    .main-navigation {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 15px 0;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-widget-area {
        grid-template-columns: 1fr;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cta-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

