/*
Theme Name: 警備のMT コーポレートサイト
Theme URI: https://keibinomt.jp/
Author: MT TECHNICAL JAPAN株式会社
Author URI: https://keibinomt.jp/
Description: 警備のMT公式コーポレートサイト用WordPressテーマ。AI交通誘導警備システム KB-eye を中心とした次世代警備サービスの紹介サイト。
Version: 1.3.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keibinomt
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ============================================
   Base / Reset
   ============================================ */
:root {
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    :root {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
    color: #1a1a1a;
    line-height: 1.8;
    background-color: #fdfaf5;
    margin: 0;
    padding: 0;
}

html {
    margin-top: 0 !important;
}

/* Admin Bar Adjustments */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }

    html {
        margin-top: 0 !important;
    }

    body.admin-bar {
        /* When admin bar acts as fixed/absolute on mobile */
        position: relative;
    }
}

/* ============================================
   Shared Components
   ============================================ */
.container-custom {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-outline {
    border: 1px solid #1a1a1a;
    padding: 12px 36px;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }
}

@media (min-width: 769px) {
    .desktop-video {
        display: block;
    }

    .mobile-video {
        display: none;
    }
}

.headline-lg {
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

/* ============================================
   Video Wrapper (YouTube embed)
   ============================================ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   News Cards
   ============================================ */
.premium-news-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-news-card:hover {
    box-shadow: 0 30px 60px rgba(0, 78, 162, 0.12);
    transform: translateY(-8px);
    border-color: #004ea2;
}

/* ============================================
   Recruit Page Styles
   ============================================ */
.recruit-container {
    background: #fff;
    overflow: hidden;
}

.section-header {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    background: #fdfaf5;
}

.bg-watermark {
    position: absolute;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.bg-watermark.left {
    left: -5vw;
    top: 10%;
}

.bg-watermark.right {
    right: -5vw;
    bottom: 10%;
}

.hero-collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.hero-img-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-img-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-img-item:hover img {
    transform: scale(1.1);
}

/* Collage Layout */
.item-0 {
    grid-column: span 2;
}

.item-1 {
    grid-column: span 2;
}

.item-2 {
    grid-column: span 2;
}

.item-3 {
    grid-column: span 3;
}

.item-4 {
    grid-column: span 3;
}

.header-inner {
    position: relative;
    z-index: 10;
}

.section-subtitle {
    font-weight: 900;
    color: #004ea2;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.main-title {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.5;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

/* ============================================
   Job Offerings
   ============================================ */
.job-offerings {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.job-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.job-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.4s;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 40px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.detail-link {
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #004ea2;
}

/* ============================================
   Contact Section (Recruit)
   ============================================ */
.section-contact {
    padding: 100px 0;
    background: #fdfaf5;
    position: relative;
    text-align: center;
}

.contact-box {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
}

.contact-number {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: #004ea2;
    margin: 2rem 0;
}

.contact-number a {
    color: inherit;
    text-decoration: none;
}

.office-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.office-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.office-name {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.office-access {
    font-size: 0.85rem;
    color: #888;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* ============================================
   WordPress Specific Overrides
   ============================================ */

/* Remove default WP margins */
.entry-content,
.page .entry-content {
    margin: 0;
    padding: 0;
}

/* Admin bar spacing */
body.admin-bar header.fixed {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar header.fixed {
        top: 46px;
    }
}

/* ============================================
   Single Post Styles (Updated)
   ============================================ */

/* Content Typography */
.single-page-area .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    padding: 1.25rem 1.5rem;
    margin: 3.5rem 0 2rem;
    background: linear-gradient(to right, #fdfaf5, #fff);
    border-left: 6px solid #C99A2C;
    color: #1a1a1a;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border-radius: 0 8px 8px 0;
}

.single-page-area .entry-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    padding-bottom: 0.75rem;
    margin: 3rem 0 1.5rem;
    border-bottom: 3px solid #C99A2C;
    color: #1a1a1a;
    position: relative;
}

.single-page-area .entry-content h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 20%;
    height: 3px;
    background: #1a1a1a;
}

.single-page-area .entry-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid #1a1a1a;
    color: #333;
}

.single-page-area .entry-content p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.single-page-area .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f9f9f9;
    border-left: 4px solid #ddd;
    font-style: italic;
    color: #666;
}

/* Post Navigation (Enhanced) */
.post-navigation {
    margin-top: 5rem;
    border-top: 1px solid #eee;
    padding-top: 4rem;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 280px;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.post-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    width: 6px;
    height: 100%;
    background: #C99A2C;
    transition: all 0.3s;
    opacity: 0;
}

.post-navigation .nav-previous a::before {
    left: 0;
}

.post-navigation .nav-next a::before {
    right: 0;
}

.post-navigation a:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: transparent;
}

.post-navigation a:hover::before {
    opacity: 1;
}

.post-navigation .nav-subtitle {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.post-navigation a:hover .nav-subtitle {
    color: #C99A2C;
}

.post-navigation .nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-navigation .nav-previous a {
    align-items: flex-start;
    text-align: left;
    padding-left: 40px;
}

.post-navigation .nav-next a {
    align-items: flex-end;
    text-align: right;
    padding-right: 40px;
}

/* Screen reader text hide */

/* ============================================
   Mobile Overlay Menu
   ============================================ */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 99999;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 140px;
    overflow-y: auto;
}

#mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2rem;
}

#mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-nav-link.delay-100 {
    transition-delay: 0.3s;
}

#mobile-menu.active .mobile-nav-link.delay-200 {
    transition-delay: 0.35s;
}

#mobile-menu.active .mobile-nav-link.delay-300 {
    transition-delay: 0.4s;
}

#mobile-menu.active .mobile-nav-link.delay-400 {
    transition-delay: 0.45s;
}

#mobile-menu.active .mobile-nav-link.delay-500 {
    transition-delay: 0.5s;
}

#mobile-menu.active .mobile-nav-link.delay-600 {
    transition-delay: 0.55s;
}

.mobile-nav-en {
    color: var(--primary-gold, #d97706);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 0.25rem;
    font-family: 'Oswald', sans-serif;
}

.mobile-nav-jp {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.mobile-nav-footer {
    padding-top: 2rem;
    padding-bottom: 4rem;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

#mobile-menu.active .mobile-nav-footer {
    opacity: 1;
}

/* Hamburger Animation */
#site-header {
    z-index: 100000 !important;
    transition: all 0.3s ease !important;
}

#mobile-menu-toggle.active span:nth-child(1) {
    top: 50% !important;
    transform: rotate(45deg);
    background-color: #fff !important;
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    top: 50% !important;
    transform: rotate(-45deg);
    background-color: #fff !important;
}

body.menu-open #site-header {
    background: transparent !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.menu-open header img {
    filter: brightness(0) invert(1) !important;
}

body.menu-open .hidden.lg\:flex {
    opacity: 0;
    pointer-events: none;
}

/* Body Lock */
body.menu-open {
    overflow: hidden;
}