/*
Theme Name: Best of Zoo
Theme URI:
Author: Best of Zoo
Description: 合同会社Best of Zooコーポレートサイト用テーマ
Version: 1.0.0
Text Domain: best-of-zoo
*/

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

html,
html body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #4a7c59;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Section Common
   ======================================== */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.section-title--light {
    color: #fff;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    margin-top: 0;
    background: #1a1f2e url('images/background_track.png') center center / cover no-repeat;
    padding: 200px 20px 120px;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 35, 0.55);
}

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

.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    line-height: 1.6;
    color: #fff;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    line-height: 2;
}

.btn-primary {
    display: inline-block;
    background: #5a9e6f;
    color: #fff;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #4a8c5f;
}


/* ========================================
   Numbers Section
   ======================================== */
.numbers-section {
    padding: 80px 20px;
    background: #1a1f2e;
    text-align: center;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.number-item {
    padding: 20px;
}

.number-value {
    font-size: 52px;
    font-weight: 700;
    color: #5a9e6f;
    line-height: 1;
}

.number-unit {
    font-size: 18px;
    font-weight: 500;
    color: #5a9e6f;
    margin-left: 2px;
}

.number-label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ========================================
   Profile Section
   ======================================== */
.profile-section {
    padding: 100px 20px;
    background: #fff;
}

.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #4a7c59;
    margin-bottom: 6px;
}

.profile-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.profile-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.9;
}

.profile-quote {
    font-style: italic;
    color: #444 !important;
}

.profile-links {
    margin-top: 16px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a7c59;
    border: 1px solid #4a7c59;
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.profile-link:hover {
    background: #4a7c59;
    color: #fff;
}

.profile-link:hover .profile-link-icon {
    fill: #fff;
}

.profile-link-icon {
    width: 16px;
    height: 16px;
    fill: #4a7c59;
    transition: fill 0.3s;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    padding: 100px 20px;
    background: #f5f5f5;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 24px;
    border: 1px solid #e8e8e8;
}

.service-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #c8d8c8;
    margin-bottom: 12px;
    line-height: 1;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.service-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   Information Section
   ======================================== */
.information-section {
    padding: 100px 20px;
    background: #fff;
}

.info-list {
    max-width: 700px;
    margin: 0 auto 40px;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.info-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}

.info-link {
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
}

.info-link:hover {
    color: #4a7c59;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    padding: 100px 20px;
    background: #f5f5f5;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.news-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 30px 24px;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.news-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* Common: Section More & Secondary Button */
.section-more {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid #4a7c59;
    color: #4a7c59;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #4a7c59;
    color: #fff;
}

.no-posts {
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* ========================================
   Site Main (fallback)
   ======================================== */
.site-main {
    margin-top: 90px;
    padding: 60px 20px 80px;
    min-height: calc(100vh - 90px - 91px);
}

/* ========================================
   Single Post Page
   ======================================== */
.single-post {
    margin-top: 90px;
    padding: 60px 20px 80px;
    min-height: calc(100vh - 90px - 91px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.post-category {
    display: inline-block;
    background: #4a7c59;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 3px;
}

.post-date {
    font-size: 14px;
    color: #999;
}

.post-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.5;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-content {
    font-size: 15px;
    line-height: 2;
    color: #444;
    margin-bottom: 60px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a7c59;
}

.post-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 3px solid #4a7c59;
    padding: 16px 20px;
    margin: 24px 0;
    background: #f9f9f9;
    color: #555;
}

.post-nav {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   Archive Page
   ======================================== */
.archive-page {
    margin-top: 90px;
    padding: 60px 20px 80px;
    min-height: calc(100vh - 90px - 91px);
}

.archive-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.pagination {
    text-align: center;
    margin-bottom: 40px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #4a7c59;
    color: #fff;
    border-color: #4a7c59;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 80px 20px;
    background: #2d2d2d;
    text-align: center;
}

.contact-text {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 2;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 6px;
}

.contact-form-wrapper .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color 0.3s;
}

.contact-form-wrapper .wpcf7-form input[type="text"]:focus,
.contact-form-wrapper .wpcf7-form input[type="email"]:focus,
.contact-form-wrapper .wpcf7-form input[type="tel"]:focus,
.contact-form-wrapper .wpcf7-form textarea:focus {
    outline: none;
    border-color: #4a7c59;
}

.contact-form-wrapper .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7-form input[type="submit"] {
    display: inline-block;
    background: #4a7c59;
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background: #3d6a4b;
}

.contact-form-wrapper .wpcf7-form .wpcf7-response-output {
    border-color: #4a7c59;
    color: #ccc;
    margin: 20px 0 0;
}

.contact-form-wrapper .wpcf7-form .wpcf7-not-valid-tip {
    color: #e87c7c;
    font-size: 13px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #222;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #444;
    margin: 0 !important;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer p {
    color: #888;
    font-size: 13px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-section {
        padding: 140px 20px 60px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .profile-info {
        text-align: left;
    }

    .service-cards {
        grid-template-columns: 1fr 1fr;
    }

    .news-cards,
    .archive-cards {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .service-cards {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 20px;
    }

    .section-title {
        font-size: 22px;
    }
}
