/*
Theme Name: Busway Modern
Description: 株式会社バスウェイのためのモダンでレスポンシブなWordPressテーマ
Version: 1.0
Author: Busway Team
*/

/* Reset CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root Variables */
:root {
    --primary-color: #1e40af;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: url('/wp-content/uploads/tophero-bg.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    min-height: 220px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--white);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.25rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .header-content {
        position: relative;
    }

    .service-card,
    .contact-item {
        padding: 1.5rem;
        min-height: 220px;
        height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .services-section,
    .contact-section {
        padding: 2rem 0;
    }

    .service-card,
    .contact-item {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.py-4 {
    padding: 2rem 0;
}

.hidden {
    display: none;
} 

/* 安全管理体制カードのクリック感強調 */
a.service-card-link .service-card {
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
a.service-card-link:hover .service-card {
    background: #e3f2fd;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-8px) scale(1.03);
    border: 2px solid var(--primary-color);
} 
a.service-card-link,
a.service-card-link *,
a.service-card-link .service-card *,
a.service-card-link .service-card *:hover {
    text-decoration: none !important;
    color: inherit !important;
} 

/* Large Chartered Bus 専用スタイル */
.bus-info {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2.5rem 2rem;
}
.bus-info h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}
.bus-gallery {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.bus-image {
    width: 45%;
    max-width: 340px;
    border-radius: 8px;
    object-fit: cover;
    background: #e0e7ef;
}
.bus-details {
    margin-bottom: 2rem;
    background: #f4f8fb;
    border-radius: 8px;
    padding: 1.5rem 1rem;
}
.bus-details h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.bus-details ul {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
    list-style: disc inside;
    font-size: 1.05rem;
}
.bus-details p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.05rem;
}
.bus-spec {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.05rem;
}
.bus-spec th, .bus-spec td {
    border: 1px solid #bcd2e8;
    padding: 0.7rem 1.2rem;
    text-align: left;
}
.bus-spec th {
    background: #e6f0fa;
    width: 30%;
    font-weight: 600;
}
.bus-layout {
    text-align: center;
}
.layout-image {
    width: 80%;
    max-width: 500px;
    margin-top: 1rem;
    border-radius: 8px;
    background: #e0e7ef;
}
@media (max-width: 700px) {
    .bus-info {
        padding: 1rem 0.5rem;
    }
    .bus-gallery {
        flex-direction: column;
        gap: 1rem;
    }
    .bus-image, .layout-image {
        width: 100%;
        max-width: 100%;
    }
    .bus-details, .bus-spec {
        font-size: 0.98rem;
        padding: 1rem 0.5rem;
    }
} 

/* バス画像タブUI */
.bus-tab-area {
    margin: 2.5rem 0 1.5rem 0;
    background: #f8fafd;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    padding: 2rem 1rem;
}
.bus-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.bus-tab {
    background: #e6f0fa;
    color: var(--primary-color);
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 0.7rem 2.2rem;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.bus-tab.active {
    background: var(--primary-color);
    color: #fff;
}
.bus-tab-content {
    text-align: center;
}
.bus-tab-panel {
    display: none;
}
.bus-tab-panel img.bus-image, .bus-tab-panel img.layout-image {
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    background: #e0e7ef;
    margin: 0 auto;
    display: block;
}
@media (max-width: 700px) {
    .bus-tab-area {
        padding: 1rem 0.2rem;
    }
    .bus-tab {
        padding: 0.5rem 1rem;
        font-size: 0.98rem;
    }
    .bus-tab-panel img.bus-image, .bus-tab-panel img.layout-image {
        width: 100%;
        max-width: 100%;
    }
} 

/* バス画像カルーセル */
.bus-carousel-area {
    margin: 2.5rem 0 1.5rem 0;
    background: #f8fafd;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    padding: 2rem 1rem 1.2rem 1rem;
    text-align: center;
}
.bus-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}
.carousel-arrow {
    background: #e6f0fa;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}
.carousel-images {
    width: 90%;
    max-width: 500px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.carousel-image {
    display: none;
    width: 100%;
    border-radius: 8px;
    background: #e0e7ef;
    object-fit: cover;
    transition: opacity 0.3s;
    position: absolute;
    left: 0; top: 0;
}
.carousel-image.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 2;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}
.indicator {
    width: 13px;
    height: 13px;
    background: #bcd2e8;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}
.indicator.active {
    background: var(--primary-color);
}
.carousel-image-wrapper {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.carousel-image-wrapper.active {
    display: block;
    z-index: 2;
}
.carousel-image-wrapper img {
    width: 100%;
    height: 350px;
    max-height: 350px;
    min-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    background: #e0e7ef;
    display: block;
}
.carousel-caption {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(30,64,175,0.85);
    color: #fff;
    padding: 0.4em 1.2em;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    pointer-events: none;
    white-space: pre-line;
}
@media (max-width: 700px) {
    .bus-carousel-area {
        padding: 1rem 0.2rem 0.7rem 0.2rem;
    }
    .carousel-images {
        width: 100%;
        min-height: 120px;
    }
    .carousel-image-wrapper img {
        height: 180px;
        max-height: 180px;
        min-height: 120px;
    }
    .carousel-caption {
        font-size: 0.92rem;
        padding: 0.3em 0.7em;
    }
} 
.carousel-image-wrapper img[alt*="EDSS"] {
    object-fit: contain;
    background: #e0e7ef;
    display: block;
} 

.news-item {
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    cursor: pointer;
}
.news-item:hover {
    background: #e3f2fd;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transform: translateY(-8px) scale(1.03);
    border: 2px solid var(--primary-color);
} 

/* 投稿詳細ページ（single.php）用スタイル */
.post-content {
    max-width: 800px;
    margin: 3rem auto 2rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 60%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30,64,175,0.10);
    border: 1.5px solid #e0e7ef;
    position: relative;
}
.post-content h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    border-left: 6px solid var(--accent-color);
    padding-left: 1rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fff 80%, #fef6e4 100%);
    border-radius: 6px;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}
.post-meta::before {
    content: "";
    font-size: 1.1rem;
    margin-right: 0;
}
.post-body {
    line-height: 2.0;
    color: var(--text-dark);
    font-size: 1.13rem;
    letter-spacing: 0.01em;
}
.post-body h2, .post-body h3 {
    color: var(--primary-color);
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.post-body ul, .post-body ol {
    margin: 1.2rem 0 1.2rem 2rem;
    padding-left: 1.2rem;
}
.post-body li {
    margin-bottom: 0.5rem;
}
@media (max-width: 700px) {
    .post-content {
        padding: 1.2rem 0.5rem;
    }
    .post-content h1 {
        font-size: 1.5rem;
        padding-left: 0.7rem;
    }
    .post-body {
        font-size: 1rem;
    }
} 

.company-profile th { text-align:left; background:#f6f5f2; padding:6px 12px; }
.company-profile td { padding:6px 12px; }
.company-profile { border-collapse:collapse; margin-bottom:2em; }
.company-profile th, .company-profile td { border:1px solid #ddd; } 