/* ===================================================
   Araki Laboratory - 共通スタイルシート（新デザイン）
   Tailwind CSS と組み合わせて使用
   =================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 見出しフォント統一 ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif !important;
}

/* ==================== スクロールバー ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ==================== 背景パターン ==================== */
.bg-grid-pattern {
    background-image: radial-gradient(rgba(26, 92, 153, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}
.bg-grid-hero {
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* ==================== スライドショー ==================== */
.slideshow-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.slideshow-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    animation: fade 15s infinite;
}
.slideshow-wrap img:nth-child(1) { animation-delay: 0s; }
.slideshow-wrap img:nth-child(2) { animation-delay: 5s; }
.slideshow-wrap img:nth-child(3) { animation-delay: 10s; }

@keyframes fade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    28%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ==================== お知らせ行ホバー ==================== */
.news-row {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.15s ease;
}
.news-row:hover { transform: translateX(4px); }

/* ==================== ライトボックス ==================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s;
    font-weight: 300;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.5);
    padding: 6px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ==================== 業種カラー（就職ページ） ==================== */
.industry-title {
    font-size: 0.93em;
    font-weight: 700;
    color: #2d3748;
    margin: 22px 0 10px;
    padding: 8px 14px;
    border-left: 4px solid;
    background-color: #fafbfc;
    border-radius: 0 6px 6px 0;
}
.company-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.company-tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.86em;
    font-weight: 600;
    border: 1px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}
.company-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.title-metal       { border-left-color: #1a5c99; }
.tag-metal         { background-color: #f1f6fa; color: #1a5c99; border-color: #cce0f5; }
.title-machine     { border-left-color: #2e7d32; }
.tag-machine       { background-color: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.title-electronics { border-left-color: #6a1b9a; }
.tag-electronics   { background-color: #f3e5f5; color: #6a1b9a; border-color: #e1bee7; }
.title-it          { border-left-color: #283593; }
.tag-it            { background-color: #e8eaf6; color: #283593; border-color: #c5cae9; }
.title-consulting  { border-left-color: #00695c; }
.tag-consulting    { background-color: #e0f2f1; color: #00695c; border-color: #b2dfdb; }
.title-infra       { border-left-color: #c62828; }
.tag-infra         { background-color: #ffebee; color: #c62828; border-color: #ffcdd2; }
.title-finance     { border-left-color: #ad1457; }
.tag-finance       { background-color: #fce4ec; color: #ad1457; border-color: #f8bbd0; }
.title-food        { border-left-color: #ef6c00; }
.tag-food          { background-color: #fff3e0; color: #ef6c00; border-color: #ffe0b2; }

/* ==================== ロゴ 紺色フィルター ==================== */
.logo-navy {
    filter: brightness(0) saturate(100%) invert(18%) sepia(70%) saturate(700%) hue-rotate(195deg) brightness(80%);
}

/* ==================== line-clamp ==================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== スマホ対応 ==================== */
@media (max-width: 1024px) {
    .sidebar-fixed { display: none; }
    .main-offset { margin-left: 0 !important; }
}
