/*
Theme Name: 未来人材
Author: 未来人材
Author URI: https://miraijinzai.net
Description: 株式会社未来人材のオリジナルWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirai-jinzai
Tags: custom-template, business, corporate
*/

@charset "UTF-8";

/* =========================================
   Variables & Base Styles
   ========================================= */
:root {
    /* New Theme Colors based on Logo */
    /* ロゴの文字色に近い深みのある青緑色。信頼と知性を表現。 */
    --color-primary: #005B8F;
    /* ロゴのアイコン色に近い鮮やかな水色。先進性と未来感を表現。 */
    --color-secondary: #2CB4F3;
    /* テキスト色（濃いグレー） */
    --color-text-body: #333333;
    /* テキスト色（白） */
    --color-text-light: #FFFFFF;
    /* 明るい背景色（わずかに青みを入れたクリーンな白） */
    --color-bg-light: #F4FAFD;
    
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --header-height: 80px;
    --section-spacing: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text-body);
    line-height: 1.8;
    background-color: #fff;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* --- Utility Classes (for replacing inline styles) --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.container--narrow {
    max-width: 800px;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-20 { margin-top: 20px; }
.mt-60 { margin-top: 60px; }

/* List styles */
.list-disc {
    list-style: disc;
    padding-left: 20px;
}
.list-disc li {
    margin-bottom: 0.5rem;
}


/* --- Section Headings --- */
.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading .en {
    display: block;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-heading .ja {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0; /* Reset default margin */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); /* グラデーションで未来感を表現 */
    color: var(--color-text-light);
    font-weight: 700;
    border-radius: 4px; /* 少し丸みを帯びさせる */
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary)); /* ホバー時は逆方向のグラデーション */
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

.btn:hover {
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(44, 180, 243, 0.5); /* 水色の影 */
}

.btn:hover::before {
    width: 100%;
    opacity: 1;
}

/* Secondary Button (Outline style for contrast) */
.btn--secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-secondary);
}
.btn--secondary::before {
    background: var(--color-secondary);
}
.btn--secondary:hover {
    color: var(--color-primary);
    box-shadow: none;
}


/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}


/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Logo Style */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 140px; /* Adjust to fix header height */
    width: auto;
    display: block;
}

.gnav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.gnav__link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    color: var(--color-primary);
}

.gnav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

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

.gnav__link:hover::after {
    width: 100%;
}

/* Header CTA Button specific style */
.gnav__btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger i {
    font-size: 1.5rem;
    color: var(--color-primary);
}


/* =========================================
   Page Header (Lower Pages)
   ========================================= */
.page-header {
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    margin-top: -var(--header-height);
    background-color: var(--color-primary);
    overflow: hidden;
}

.page-header__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
/* オーバーレイを青系のグラデーションに変更 */
.page-header__bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 91, 143, 0.9), rgba(44, 180, 243, 0.7));
}

.page-header__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header__title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0;
}
.page-header__en {
    display: block;
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: #fff;
    padding-top: 80px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Footer Logo Style */
.footer__logo {
    margin-bottom: 30px;
}

.footer__logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1); /* ロゴを白くする */
}

.footer__address {
    font-style: normal;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer__map iframe {
    width: 100%;
    height: 300px;
    border: none;
    /* 地図の色味を青系に合わせて調整 */
    filter: grayscale(100%) brightness(90%) contrast(120%) hue-rotate(200deg);
    border-radius: 4px;
}

.footer__copy {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    font-family: var(--font-en);
    opacity: 0.7;
}


/* =========================================
   Responsive Design (Common)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-spacing: 80px;
    }

    .section-heading .ja {
        font-size: 1.8rem;
    }

    .logo img {
        height: 100px;
    }

    .hamburger {
        display: block;
    }

    .gnav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        padding: 80px 40px;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .gnav.active {
        right: 0;
    }

    .gnav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .gnav__link {
        font-size: 1.2rem;
        display: block;
    }
    
    .page-header {
        height: 250px;
    }
    .page-header__title {
        font-size: 1.8rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */

/* --- Top Page (index.html) --- */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    margin-top: -var(--header-height);
}
.hero__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* ヒーロー画像のオーバーレイも青系グラデーションに変更 */
    background-image: linear-gradient(to right, rgba(0, 91, 143, 0.8), rgba(44, 180, 243, 0.5)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.hero__content { max-width: 800px; }
.hero__title { font-size: 4rem; color: #fff; line-height: 1.2; margin-bottom: 30px; }
.hero__title span { color: var(--color-secondary); display: block; }
.hero__lead { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }

.news__list { max-width: 800px; margin: 0 auto; }
.news__item { border-bottom: 1px solid #eee; }
.news__link { display: flex; align-items: baseline; padding: 20px 0; gap: 30px; }
.news__link:hover { color: var(--color-secondary); padding-left: 10px; }
.news__date { font-family: var(--font-en); font-weight: 700; color: var(--color-primary); font-size: 0.9rem; }
.news__title { flex: 1; font-weight: 500; }

.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; }
.service-card {
    background: #fff; padding: 40px; border-radius: 8px; /* 角丸を強く */
    box-shadow: 0 10px 30px rgba(0, 91, 143, 0.1); /* 青系の影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-secondary);
    height: 100%;
    display: block;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 91, 143, 0.2); border-top-color: var(--color-primary); }
.service-card__icon { font-size: 3rem; color: var(--color-secondary); margin-bottom: 20px; transition: color 0.3s; }
.service-card:hover .service-card__icon { color: var(--color-primary); }
.service-card__title { font-size: 1.5rem; margin-bottom: 15px; }
.service-card__text { color: var(--color-text-body); }

@media (max-width: 768px) {
    .hero__title { font-size: 2.5rem; }
    .news__link { flex-direction: column; gap: 5px; }
}


/* --- Company Page (company.html) --- */
.company-info { display: flex; gap: 60px; align-items: flex-start; }
.company-info__img { flex: 1; height: 450px; background-size: cover; background-position: center; border-radius: 8px; box-shadow: 20px 20px 0 var(--color-secondary); }
.company-info__text { flex: 1; }
.company-info__lead { font-size: 1.6rem; line-height: 1.5; }

.company-overview { max-width: 900px; margin: 0 auto; }
.company-overview__lead { font-size: 1.1rem; line-height: 1.9; text-align: center; }

.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.policy-card { background: #fff; padding: 40px 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.policy-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 91, 143, 0.15); }
.policy-card__icon { font-size: 3rem; color: var(--color-secondary); margin-bottom: 20px; }
.policy-card__title { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 15px; }
.policy-card__text { color: var(--color-text-body); line-height: 1.7; }

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

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 20px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.company-table th { width: 30%; color: var(--color-primary); font-weight: 700; background-color: #fff; }

@media (max-width: 768px) {
    .company-info { flex-direction: column; }
    .company-info__img { width: 100%; height: 300px; box-shadow: 10px 10px 0 var(--color-secondary); }
    .policy-grid { grid-template-columns: 1fr; }
    .company-table th, .company-table td { display: block; width: 100%; }
    .company-table th { padding-bottom: 5px; border-bottom: none; }
    .company-table td { padding-top: 5px; padding-bottom: 25px; }
}


/* --- Business Page (business.html) --- */
.business-intro-title { font-size: 1.8rem; }
.business-detail { display: flex; gap: 60px; align-items: center; }
.business-detail:nth-child(even) { flex-direction: row-reverse; }
.business-detail__img { flex: 1; height: 400px; background-size: cover; background-position: center; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.business-detail__content { flex: 1; }
.business-detail__title { font-size: 1.8rem; margin-bottom: 25px; display: flex; align-items: center; }
.business-detail__title i { color: var(--color-secondary); margin-right: 15px; font-size: 2.2rem; }

.performance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; }
.performance-card { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-left: 4px solid var(--color-secondary); }
.performance-card__title { font-size: 1.4rem; color: var(--color-primary); margin-bottom: 20px; }
.performance-card__list { list-style: none; padding: 0; }
.performance-card__list li { padding-left: 25px; margin-bottom: 12px; position: relative; }
.performance-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-secondary); font-weight: 700; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
.faq-item__question { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 15px; font-weight: 700; }
.faq-item__answer { color: var(--color-text-body); line-height: 1.8; margin-bottom: 0; }

@media (max-width: 768px) {
    .business-detail, .business-detail:nth-child(even) { flex-direction: column; gap: 30px; }
    .business-detail__img { width: 100%; height: 250px; }
    .performance-grid { grid-template-columns: 1fr; }
}


/* --- Inquiry Page (inquiry.html) --- */
.form-group { margin-bottom: 30px; }
.form-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--color-primary); }
.form-label span.required { color: #e74c3c; font-size: 0.8rem; margin-left: 5px; background: #ffeaea; padding: 2px 6px; border-radius: 4px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 4px; font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s; background-color: #fdfdfd; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(44, 180, 243, 0.1); background-color: #fff; }
.form-textarea { height: 180px; resize: vertical; }
.form-select { height: 56px; cursor: pointer; }

/* Contact Form 7 スタイル */
.contact-form .wpcf7 { margin: 0; }
.contact-form .wpcf7-form p { margin-bottom: 30px; }
.contact-form .wpcf7-form label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--color-primary); }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fdfdfd;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="url"]:focus,
.contact-form input[type="number"]:focus,
.contact-form input[type="date"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(44, 180, 243, 0.1);
    background-color: #fff;
}
.contact-form textarea { height: 180px; resize: vertical; }
.contact-form select { height: 56px; cursor: pointer; }
.contact-form .wpcf7-submit {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text-light);
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
}
.contact-form .wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(44, 180, 243, 0.5);
}
.contact-form .wpcf7-spinner { margin-left: 10px; }
.contact-form .wpcf7-not-valid-tip { color: #e74c3c; font-size: 0.9rem; margin-top: 5px; display: block; }
.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-mail-sent-ok,
.contact-form .wpcf7-mail-sent-ng {
    border: none;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}
.contact-form .wpcf7-validation-errors { background: #fff3cd; color: #856404; }
.contact-form .wpcf7-mail-sent-ok { background: #d4edda; color: #155724; }
.contact-form .wpcf7-mail-sent-ng { background: #f8d7da; color: #721c24; }
.contact-form .wpcf7-response-output { margin-top: 20px !important; }
.contact-form .wpcf7 .ajax-loader { display: inline-block; margin-left: 10px; vertical-align: middle; }

/* 必須マーク */
.contact-form .wpcf7-form .required { color: #e74c3c; font-size: 0.8rem; margin-left: 5px; background: #ffeaea; padding: 2px 6px; border-radius: 4px; }



/* --- Recruit Page (recruit.html) --- */
.recruit-hero .page-header__bg::after {
    /* 採用ページは少し明るく、希望を感じさせるグラデーション */
    background: linear-gradient(to right, rgba(0, 91, 143, 0.6), rgba(44, 180, 243, 0.4));
}
.recruit-hero p { color: #fff; }
.recruit-message { max-width: 800px; margin: 0 auto; }
.recruit-message__title { font-size: 2rem; margin-bottom: 35px; line-height: 1.4; }

.recruit-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.member-card { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.member-card__img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.member-card:hover .member-card__img { transform: scale(1.08); }
.member-card__info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(to top, rgba(0, 57, 90, 0.95), transparent); color: #fff; }
.member-card__role { font-size: 0.9rem; opacity: 0.9; margin-bottom: 5px; font-family: var(--font-en); }
.member-card__name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0; color: #fff; }

.position-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.position-card { background: #fff; padding: 40px 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border-top: 4px solid var(--color-secondary); }
.position-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 91, 143, 0.15); }
.position-card__icon { font-size: 3rem; color: var(--color-secondary); margin-bottom: 20px; }
.position-card__title { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 15px; line-height: 1.5; }
.position-card__desc { color: var(--color-text-body); line-height: 1.7; }

.culture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.culture-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.culture-card:hover { transform: translateY(-3px); }
.culture-card__icon { font-size: 2.5rem; color: var(--color-secondary); margin-bottom: 15px; }
.culture-card__title { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 12px; }
.culture-card__text { color: var(--color-text-body); line-height: 1.7; font-size: 0.95rem; }

.process-flow { max-width: 700px; margin: 0 auto; }
.process-step { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 25px; }
.process-step__number { flex-shrink: 0; width: 50px; height: 50px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; font-family: var(--font-en); }
.process-step__title { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 10px; }
.process-step__desc { color: var(--color-text-body); line-height: 1.7; margin-bottom: 0; }

@media (max-width: 768px) {
    .position-list, .culture-grid { grid-template-columns: 1fr; }
}


/* --- Blog / Archive Page (index.php) --- */
.blog-list { display: flex; flex-direction: column; gap: 40px; }
.blog-item { background: #fff; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 91, 143, 0.15); }
.blog-item__thumbnail { width: 100%; height: 300px; overflow: hidden; }
.blog-item__thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-item:hover .blog-item__thumbnail img { transform: scale(1.05); }
.blog-item__content { padding: 30px; }
.blog-item__date { display: inline-block; font-family: var(--font-en); font-weight: 700; color: var(--color-secondary); font-size: 0.9rem; margin-bottom: 15px; }
.blog-item__title { font-size: 1.6rem; margin-bottom: 15px; }
.blog-item__title a { color: var(--color-primary); transition: color 0.3s; }
.blog-item__title a:hover { color: var(--color-secondary); }
.blog-item__excerpt { color: var(--color-text-body); line-height: 1.8; margin-bottom: 20px; }
.blog-item__more { display: inline-flex; align-items: center; gap: 8px; color: var(--color-secondary); font-weight: 700; transition: gap 0.3s; }
.blog-item__more:hover { gap: 12px; }
.no-posts { text-align: center; padding: 60px 20px; color: #999; }
.pagination { margin-top: 60px; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: 10px 15px; margin: 0 5px; background: #fff; border: 2px solid #eee; border-radius: 4px; color: var(--color-primary); transition: all 0.3s; }
.pagination a:hover { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

@media (max-width: 768px) {
    .blog-item__thumbnail { height: 200px; }
    .blog-item__content { padding: 20px; }
    .blog-item__title { font-size: 1.3rem; }
}


/* --- Single Post Page (single.php) --- */
.post-date { display: block; font-family: var(--font-en); font-weight: 700; color: var(--color-secondary); font-size: 1rem; margin-top: 15px; }
.post-content { font-size: 1.05rem; line-height: 1.9; }
.post-content h2 { font-size: 1.8rem; margin-top: 50px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 3px solid var(--color-secondary); }
.post-content h3 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 20px; }
.post-content h4 { font-size: 1.3rem; margin-top: 30px; margin-bottom: 15px; }
.post-content p { margin-bottom: 1.8rem; }
.post-content img { border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.post-content ul, .post-content ol { margin-bottom: 1.8rem; padding-left: 30px; }
.post-content li { margin-bottom: 0.8rem; }
.post-content blockquote { border-left: 4px solid var(--color-secondary); padding-left: 20px; margin: 30px 0; color: #666; font-style: italic; }

.page-links { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; text-align: center; }
.page-links-title { font-weight: 700; color: var(--color-primary); margin-right: 10px; }
.page-links a { display: inline-block; padding: 5px 12px; margin: 0 5px; background: #fff; border: 2px solid #eee; border-radius: 4px; color: var(--color-primary); transition: all 0.3s; }
.page-links a:hover { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.page-links > span:not(.page-links-title) { display: inline-block; padding: 5px 12px; margin: 0 5px; background: var(--color-primary); color: #fff; border-radius: 4px; }

.post-navigation { margin-top: 60px; padding-top: 40px; border-top: 2px solid #eee; }
.post-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.post-nav-item a { display: block; padding: 20px; background: #fff; border: 2px solid #eee; border-radius: 8px; transition: all 0.3s; }
.post-nav-item a:hover { border-color: var(--color-secondary); box-shadow: 0 5px 15px rgba(44, 180, 243, 0.2); }
.post-nav-item .nav-subtitle { display: block; font-size: 0.9rem; color: var(--color-secondary); font-weight: 700; margin-bottom: 8px; font-family: var(--font-en); }
.post-nav-item .nav-title { display: block; color: var(--color-primary); font-weight: 500; }
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }
.back-to-list { text-align: center; }

@media (max-width: 768px) {
    .post-nav-links { grid-template-columns: 1fr; gap: 20px; }
    .post-nav-prev, .post-nav-next { text-align: left; }
}


/* --- 404 Error Page (404.php) --- */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404__number { font-size: 8rem; font-weight: 700; color: var(--color-secondary); line-height: 1; margin-bottom: 30px; font-family: var(--font-en); }
.error-404__message { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; color: #666; }
.error-404__actions { margin-bottom: 60px; }
.error-404__search h3 { font-size: 1.3rem; margin-bottom: 30px; color: var(--color-primary); }
.error-404__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; }
.error-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; background: #fff; border: 2px solid #eee; border-radius: 8px; color: var(--color-primary); font-weight: 500; transition: all 0.3s; }
.error-link:hover { border-color: var(--color-secondary); background: var(--color-bg-light); color: var(--color-secondary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(44, 180, 243, 0.2); }
.error-link i { font-size: 1.5rem; }

@media (max-width: 768px) {
    .error-404__number { font-size: 5rem; }
    .error-404__links { grid-template-columns: 1fr; }
}