/*
Theme Name: ミニカー王国
Theme URI: https://chibikko.ftcgoods.com
Author: FTCグローバル縫製株式会社
Description: ミニカー王国キャンペーンサイト
Version: 2.0
*/

/* ===== リセット・基本 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif; background: #f5f5f5; color: #333; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== ヘッダー ===== */
.site-header {
    background: #1a56a0;
    padding: 0 12px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-hamburger {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; cursor: pointer; border: none;
    flex-shrink: 0;
}
.header-hamburger span {
    display: block; width: 20px; height: 2px;
    background: #fff; border-radius: 2px;
}
.site-logo {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.site-logo img {
    height: 38px; width: auto; max-width: 160px;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}
.site-logo .logo-emoji { font-size: 26px; line-height: 1; }
.site-logo .logo-text {
    color: #fff; font-size: 11px; font-weight: 900;
    line-height: 1; margin-top: 1px;
}
.header-obo-btn {
    background: #f5c800;
    color: #1a56a0;
    font-weight: 900; font-size: 14px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 2px solid #e0b000;
    display: flex; align-items: center; gap: 5px;
    flex-shrink: 0; cursor: pointer;
}

/* ===== ドロワーメニュー ===== */
.drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 300;
}
.drawer-overlay.open { display: block; }
.drawer-menu {
    position: fixed; top: 0; left: -280px;
    width: 280px; height: 100vh;
    background: #fff; z-index: 400;
    transition: left 0.3s ease;
    overflow-y: auto;
}
.drawer-menu.open { left: 0; }
.drawer-header {
    background: #1a56a0; color: #fff;
    padding: 16px; font-weight: 900; font-size: 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.drawer-close {
    background: none; border: none; color: #fff;
    font-size: 22px; cursor: pointer;
}
.drawer-menu ul { list-style: none; padding: 8px 0; }
.drawer-menu ul li a {
    display: block; padding: 14px 20px;
    font-size: 15px; font-weight: 700; color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.drawer-menu ul li a:hover { background: #f5f5f5; }

/* ===== タブナビ ===== */
/* ===== ナビタブ（スマホ・タブレット） ===== */
.site-nav {
    background: #fff;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 3px solid #f5c800;
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 4px 6px;
    text-decoration: none;
    color: #999;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s, background 0.15s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.site-nav a .nav-icon {
    font-size: 19px;
    line-height: 1;
    display: block;
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.site-nav a .nav-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: -0.3px;
}
.site-nav a:hover .nav-icon { transform: scale(1.15); }
.site-nav a.active {
    color: #1a56a0;
    border-bottom-color: #1a56a0;
}
.site-nav a.active .nav-icon { transform: scale(1.1); }
.site-nav a.active::before {
    content: '';
    position: absolute;
    bottom: -3px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    background: #1a56a0;
    border-radius: 50%;
}

/* ===== ナビタブ（PC 1024px以上）===== */
@media (min-width: 1024px) {
    .site-nav {
        justify-content: center;
        overflow-x: visible;
        padding: 0 40px;
    }
    .site-nav a {
        flex: none;
        flex-direction: row;
        gap: 6px;
        padding: 14px 20px 12px;
        font-size: 13px;
        min-width: auto;
    }
    .site-nav a .nav-icon {
        font-size: 16px;
    }
    .site-nav a .nav-label {
        font-size: 13px;
        letter-spacing: 0;
    }
    .site-nav a:hover {
        color: #1a56a0;
        background: #f5f8ff;
    }
    .site-nav a.active::before {
        width: 100%;
        height: 3px;
        bottom: -3px;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}

/* ===== ヒーロー ===== */
.hero-section { background: #1a56a0; position: relative; overflow: hidden; }
.hero-section img { width: 100%; display: block; position: relative; z-index: 1; }
.hero-bg-blur {
    display: none;
}
@media (min-width: 768px) {
    .hero-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-bg-blur {
        display: block;
        position: absolute;
        inset: -20px;
        background-size: cover;
        background-position: center;
        filter: blur(6px) brightness(0.85);
        z-index: 0;
        transform: scale(1.05);
    }
    .hero-section img {
        max-width: 1024px;
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
        position: relative;
        z-index: 1;
    }
}
.hero-placeholder {
    background: linear-gradient(135deg, #1a56a0 0%, #0d3a7a 60%);
    padding: 36px 20px 32px; text-align: center;
    position: relative; overflow: hidden;
    border-bottom: 4px solid #f5c800;
}
.hero-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245,200,0,0.2) 0%, transparent 60%);
}
.hero-placeholder .hero-icon { font-size: 44px; position: relative; }
.hero-placeholder h1 { color: #f5c800; font-size: 26px; font-weight: 900; margin: 10px 0 6px; position: relative; }
.hero-placeholder p { color: rgba(255,255,255,0.85); font-size: 14px; position: relative; }

/* ===== お知らせバー ===== */
.announce-bar {
    background: #0d3a7a; color: #fff;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    position: relative; cursor: pointer;
    min-height: 48px;
}
.announce-icon { font-size: 20px; flex-shrink: 0; }
.announce-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.announce-text { font-size: 13px; font-weight: 700; line-height: 1.4; }
.announce-sub { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* ===== カウンター ===== */
.counter-section {
    background: linear-gradient(120deg, #0d3a7a 0%, #1a56a0 60%, #1e6ab5 100%);
    display: flex;
    border-top: 3px solid #f5c800;
    border-bottom: 3px solid #f5c800;
}
.counter-item {
    flex: 1; text-align: center;
    padding: 12px 8px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.counter-item:last-child { border-right: none; }
.counter-number { font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.counter-label { font-size: 10px; color: rgba(255,255,255,0.8); margin-top: 3px; font-weight: 700; }

/* ===== ピックアップバー ===== */
.pickup-bar {
    background: #fff; padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #eee;
}
.pickup-label {
    background: #f5c800; color: #1a56a0;
    font-size: 11px; font-weight: 900;
    padding: 3px 8px; border-radius: 4px;
    white-space: nowrap;
}
.pickup-title { font-size: 13px; font-weight: 700; color: #333; flex: 1; }
.pickup-count {
    background: #f5c800; color: #1a56a0;
    font-size: 12px; font-weight: 900;
    padding: 2px 8px; border-radius: 10px;
    white-space: nowrap;
}
.pickup-arrow { color: #aaa; font-size: 16px; }

/* ===== フィルター ===== */
.filter-section {
    background: #fff;
    padding: 10px 14px 12px;
    border-bottom: 3px solid #f5c800;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.filter-row {
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row + .filter-row { margin-top: 8px; }
.filter-icon { font-size: 16px; flex-shrink: 0; }
.filter-label { font-size: 12px; font-weight: 900; color: #1a56a0; white-space: nowrap; flex-shrink: 0; }
.filter-btn {
    background: #f5f7fa; color: #666;
    border: 1.5px solid #e0e0e0;
    padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    white-space: nowrap; cursor: pointer;
    flex-shrink: 0; transition: all 0.15s;
    -webkit-appearance: none;
}
.filter-btn:active { transform: scale(0.95); }
.filter-btn.active {
    background: #1a56a0; color: #fff;
    border-color: #1a56a0;
    box-shadow: 0 2px 8px rgba(26,86,160,0.25);
}

/* ===== 投稿グリッド ===== */
.main-content { padding: 14px; }
.section-title {
    font-size: 14px; font-weight: 900;
    color: #1a56a0; margin-bottom: 10px;
}
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* カード：ポップデザイン */
.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0,0,0,0.12);
    border: 2.5px solid #e8e8e8;
    transition: transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.15s ease;
    cursor: pointer;
    position: relative;
}
.post-card:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}

/* カードの上部カラーバー（カードごとに色が変わる） */
.post-card:nth-child(6n+1) { border-top: 4px solid #ff6b6b; }
.post-card:nth-child(6n+2) { border-top: 4px solid #ffd93d; }
.post-card:nth-child(6n+3) { border-top: 4px solid #6bcb77; }
.post-card:nth-child(6n+4) { border-top: 4px solid #4d96ff; }
.post-card:nth-child(6n+5) { border-top: 4px solid #ff6b9d; }
.post-card:nth-child(6n+6) { border-top: 4px solid #c77dff; }

.post-card-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #fff;
}
/* イラストも同じ白背景・元比率表示 */
.post-card-thumb.illust-bg {
    object-fit: contain;
    background: #fff;
}
.post-card-thumb-placeholder {
    width: 100%; aspect-ratio: 3/2;
    background: linear-gradient(135deg, #f0f6ff, #e8f4ff);
    display: flex; align-items: center;
    justify-content: center; font-size: 40px;
}
.post-card-body {
    padding: 8px 10px 10px;
    background: #fff;
}
.post-card-title {
    font-size: 12px; font-weight: 900;
    line-height: 1.4; color: #222;
}
.post-card-meta {
    font-size: 10px; color: #aaa;
    margin-top: 4px; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
}
.post-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.post-card-tag {
    font-size: 10px; background: #f0f6ff;
    color: #1a56a0; padding: 2px 6px;
    border-radius: 4px; font-weight: 700;
}

/* ===== 空状態 ===== */
.empty-state { text-align: center; padding: 50px 20px; color: #aaa; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 10px; }
.empty-state p { font-size: 14px; line-height: 1.6; }

/* ===== CTAボタン ===== */
.cta-section {
    padding: 20px 16px 32px;
}
.cta-btn {
    display: flex; align-items: center;
    justify-content: center; gap: 10px;
    background: #1a56a0;
    color: #fff;
    font-weight: 900; font-size: 17px;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26,86,160,0.4);
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,86,160,0.45);
}
.cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(26,86,160,0.3);
}

/* ===== 固定ページ ===== */
.page-wrap {
    background: #fff; margin: 14px;
    border-radius: 10px; padding: 20px;
}
.page-wrap h1 {
    font-size: 20px; font-weight: 900;
    color: #1a56a0; margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f5c800;
}
.entry-content { font-size: 14px; line-height: 1.8; }

/* ===== お問い合わせフォーム ===== */
.wpcf7 p { margin-bottom: 12px; }
.wpcf7 label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #555; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%; padding: 10px 12px;
    border: 2px solid #ddd; border-radius: 8px;
    font-size: 15px; font-family: inherit;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: #1a56a0; }
.wpcf7 textarea { height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
    background: #1a56a0; color: #fff;
    font-weight: 900; font-size: 16px;
    border: none; cursor: pointer;
    padding: 14px; border-radius: 8px; width: 100%;
}

/* ===== 単一投稿 ===== */
.single-wrap { margin: 14px; }
.single-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.single-thumb img { width: 100%; }
.single-body { background: #fff; border-radius: 10px; padding: 16px; }
.single-title { font-size: 20px; font-weight: 900; color: #1a56a0; margin-bottom: 12px; }
.single-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.single-meta-item {
    background: #f0f6ff; color: #1a56a0;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
}
.single-content { font-size: 14px; line-height: 1.8; }

/* ===== 企業コメント ===== */
.company-desc-block {
    background: #f8faff;
    border-left: 4px solid #ff9500;
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    margin: 0 0 16px;
}
.company-desc-title {
    font-size: 12px; font-weight: 900;
    color: #ff9500; margin-bottom: 8px;
}
.company-desc-text {
    font-size: 13px; color: #555; line-height: 1.9;
}

/* ===== フッター ===== */
.site-footer {
    background: #1a56a0; color: #fff;
    text-align: center; padding: 24px 16px;
    margin-top: 20px;
}
.footer-company { font-size: 15px; font-weight: 900; color: #f5c800; margin-bottom: 8px; }
.footer-info { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,0.8); }
.footer-links { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 12px; text-decoration: underline; }
.footer-links a + a::before { content: '|'; margin-right: 8px; color: rgba(255,255,255,0.25); text-decoration: none; display: inline-block; }

/* ===== レスポンシブ ===== */
@media (min-width: 768px) {
    .site-header { padding: 0 24px; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .main-content, .cta-section { max-width: 900px; margin-left: auto; margin-right: auto; }
    .filter-section { max-width: 900px; margin-left: auto; margin-right: auto; }
}
