/* 
   Teppanyaki Recruitment Platform - Portal Style Styles
   Inspiration: valueplus-next.jp
*/

:root {
    /* Color Palette - Portal Style, Clean but Premium */
    --c-bg: #f5f6f8;
    --c-bg-white: #ffffff;
    --c-text-main: #333333;
    --c-text-muted: #666666;
    
    /* Accents (Teppanyaki Gold/Black) */
    --c-primary: #b8860b; /* Goldenrod / Dark Gold */
    --c-primary-hover: #d4af37;
    --c-black: #1a1a1a;
    --c-border: #e0e0e0;
    
    /* Job Badges */
    --c-badge-spot: #4caf50;
    --c-badge-part: #2196f3;
    --c-badge-full: #9c27b0;
    
    /* Typo */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Shippori Mincho', serif;
    
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: var(--font-base);
    background-color: var(--c-bg);
    color: var(--c-text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--c-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--c-primary-hover);
}

.btn-search {
    background: var(--c-black);
    color: white;
    padding: 0.8rem 2rem;
}

.btn-search:hover {
    background: #333;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
    font-weight: bold;
}
.btn-outline:hover {
    background: var(--c-primary);
    color: white;
}
.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
    background: var(--c-bg-white);
    border-bottom: 2px solid var(--c-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
    background: var(--c-black);
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 24px;
}

.header-top-links a {
    margin-left: 1.5rem;
    color: #ccc;
}

.header-top-links a:hover {
    color: var(--c-primary);
}

.employer-link {
    color: var(--c-primary) !important;
    font-weight: bold;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-black);
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-black);
}

.nav-item .icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.nav-item:hover {
    color: var(--c-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--c-black);
}

/* --- Hero / Main Visual --- */
.main-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
}

.mv-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-chip {
    display: inline-block;
    background: var(--c-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.mv-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.text-left {
    text-align: left !important;
}

.mv-sub {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin-top: 15px;
}

.mv-content h2 {
    color: white;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.quick-search {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input,
.search-form select {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-base);
}

/* --- Layout --- */
.layout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* --- Service Banners --- */
.service-banners {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.banner {
    flex: 1;
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spot-banner {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.career-banner {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.banner h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.banner p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Sections --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-primary);
    color: var(--c-black);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--c-primary);
}
.section-header .section-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 5px;
}
.more-link {
    color: var(--c-primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Job Cards (Portal Style) --- */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: var(--c-bg-white);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-color: var(--c-primary);
}

.job-card-link {
    display: block;
    padding: 20px;
}

.job-card-inner {
    display: flex;
    gap: 20px;
}

.job-image {
    width: 200px;
    flex-shrink: 0;
}
.job-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.job-details {
    flex: 1;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}
.tag.area { background: #eee; color: #555; }
.tag.occ { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.tag.spot { background: var(--c-badge-spot); color: white; }
.tag.part { background: var(--c-badge-part); color: white; }
.tag.full { background: var(--c-badge-full); color: white; }

.job-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--c-black);
    line-height: 1.4;
}
.job-card:hover .job-title {
    color: var(--c-primary);
    text-decoration: underline;
}

.job-summary {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    list-style: none;
    font-size: 0.85rem;
    border-top: 1px dashed var(--c-border);
    padding-top: 10px;
}

.job-meta li {
    display: flex;
    margin-bottom: 5px;
}

.meta-label {
    width: 60px;
    color: var(--c-primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* --- Sidebar Widgets --- */
.widget {
    background: var(--c-bg-white);
    border: 1px solid var(--c-border);
    border-top: 4px solid var(--c-black);
    border-radius: 4px;
    margin-bottom: 30px;
}

.widget-title {
    padding: 15px;
    background: #fcfcfc;
    border-bottom: 1px solid var(--c-border);
    font-size: 1.1rem;
    font-weight: 700;
}

.widget-content {
    padding: 15px;
}

.highlight-widget {
    background: #fff3e0;
    border-top: 4px solid #ff9800;
}
.highlight-widget h3 {
    color: #e65100;
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding: 15px 15px 0 15px;
}
.highlight-widget p {
    font-size: 0.9rem;
    padding: 0 15px 15px 15px;
    margin-bottom: 0;
}
.highlight-widget a {
    margin: 0 15px 15px 15px;
    width: calc(100% - 30px);
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
}
.check-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px;
    cursor: pointer;
}

.link-list {
    list-style: none;
    padding: 15px;
}
.link-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--c-border);
    padding-bottom: 10px;
}
.link-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.link-list a {
    color: var(--c-text-main);
    display: block;
    position: relative;
    padding-left: 15px;
    font-size: 0.9rem;
}
.link-list a::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-size: 0.7rem;
    top: 3px;
}
.link-list a:hover {
    color: var(--c-primary);
}

/* --- Search Tags Section --- */
.search-category-section {
    margin-top: 50px;
    background: var(--c-bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--c-text-main);
}
.badge-link:hover {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}

/* --- Area Search Full Width --- */
.area-search {
    background: var(--c-bg-white);
    padding: 60px 0;
    border-top: 1px solid var(--c-border);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.area-block h4 {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--c-black);
}

.area-block ul {
    list-style: none;
}
.area-block li {
    margin-bottom: 8px;
}
.area-block a {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}
.area-block a:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
    background: var(--c-black);
    color: white;
    padding: 60px 0 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.footer-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.sns-links a {
    display: inline-block;
    margin-right: 15px;
    color: #ccc;
    font-size: 0.9rem;
}
.sns-links a:hover {
    color: var(--c-primary);
}

.footer-links {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-nav-col h4 {
    margin-bottom: 15px;
    color: var(--c-primary);
    font-size: 1.1rem;
}
.footer-nav-col ul {
    list-style: none;
}
.footer-nav-col li {
    margin-bottom: 10px;
}
.footer-nav-col a {
    color: #aaa;
    font-size: 0.9rem;
}
.footer-nav-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (min-width: 769px) {
    .sp-only {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .layout-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        order: -1; /* Move search up on mobile */
    }
    .job-card-inner {
        flex-direction: column;
    }
    .job-image {
        width: 100%;
    }
    .job-image img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
    
    .header-nav { display: none; }
    .menu-toggle { display: flex; }
    
    .header-top {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    .header-catchphrase {
        display: none;
    }
    .header-top-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .header-top-links a {
        margin-left: 0;
    }
    
    .main-visual {
        height: auto;
        padding: 60px 0;
    }
    .mv-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    .mv-sub {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 15px;
    }

    .search-form {
        flex-direction: column;
    }
    .service-banners {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .more-link {
        align-self: flex-end;
    }
    
    .job-title {
        font-size: 1.05rem;
    }
    .job-image img {
        height: 180px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
