@charset "UTF-8";
/*
Theme Name: K-navi v3
Theme URI: https://k-navi.peaks-inc.co.jp/
Author: Peaks Inc.
Description: 軽貨物ドライバー向けポータルサイト v3。
Version: 3.0.3
*/

/* -----------------------------------------------------------
   1. 全ページ共通の基本設定
----------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #1e293b;
    line-height: 1.8;
    background-color: #f8fafc;
}

.container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 0 60px; 
    position: relative;
    z-index: 5;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: 0.3s; }

/* -----------------------------------------------------------
   2. トップページ（Heroセクション）
----------------------------------------------------------- */
.hero-v3 {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    min-height: 80vh; 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg-visual {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/wp-content/uploads/2026/03/driver1_11zon.jpg') no-repeat center center / cover;
    opacity: 0.20;
    z-index: 1;
}

/* --- 以下のブロックを丸ごと入れ替え --- */

.hero-flex-layout {
    display: flex;
    width: 100%;
    align-items: center;
    /* ★ space-between から center に変更：これで真ん中に集まります */
    justify-content: center; 
    /* ★ テキストとボタンの間の距離。ここを 80px〜150px で変えると寄せ具合が変わります */
    gap: 300px; 
}

.hero-text-side { 
    /* ★ flex: 1 から変更。ボタンを中央に寄せるために幅をコンテンツに合わせます */
    flex: 0 1 auto; 
    max-width: 850px; 
    text-align: left; 
}

.badge {
    background: rgba(243, 156, 18, 0.15); 
    padding: 8px 16px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 700; color: #f39c12;
    margin-bottom: 25px; display: inline-block; border: 2px solid #f39c12;
}

.main-title {
    font-size: 3.5rem !important; 
    line-height: 1.25 !important; 
    font-weight: 900 !important;
    color: #ffffff !important; 
    margin: 0 0 24px 0 !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.main-title .highlight { color: #f39c12 !important; }

.hero-subtext {
    font-size: 1.45rem !important; 
    line-height: 1.7 !important;
    color: #cbd5e1 !important; 
    font-weight: 500 !important; 
    max-width: 800px;
}

/* ★ボタンを縦に並べる設定 */
.hero-tool-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
    flex: 0 0 auto;
}

.tool-square-btn {
    background: #ffffff !important; 
    width: 280px !important;
    aspect-ratio: 1.1 / 1 !important;
    border-radius: 24px !important; 
    display: flex !important; 
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
    padding: 24px !important; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    border-bottom: 8px solid #e2e8f0 !important; 
    transition: 0.3s;
}
.tool-square-btn:hover { transform: translateX(-10px); }

.tool-square-btn .icon { font-size: 3.5rem; margin-bottom: 12px; }
.tool-square-btn h3 { font-size: 1.4rem !important; color: #003366 !important; margin: 0 0 5px !important; font-weight: bold !important; }
.tool-square-btn p { font-size: 0.9rem !important; color: #64748b !important; text-align: center !important; margin: 0 !important; }

/* --- 入れ替えここまで --- */
/* -----------------------------------------------------------
   3. 記事一覧セクション（省略なし）
----------------------------------------------------------- */
.home-posts { padding: 100px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 50px; color: #003366; font-size: 2.2rem; font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.post-item { border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; transition: 0.4s; background: #fff; }
.post-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: #f39c12; }
.post-thumb { height: 200px; background: #f8fafc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-content { padding: 25px; }
.post-content h4 { margin: 0 0 12px; font-size: 1.25rem; color: #1e293b; }
.post-content time { font-size: 0.85rem; color: #94a3b8; }

/* スマホ対応 */
@media (max-width: 1024px) {
    .hero-flex-layout { flex-direction: column; text-align: center; gap: 40px; }
    .hero-tool-grid { flex-direction: row; justify-content: center; width: 100%; }
    .tool-square-btn { width: 45% !important; max-width: 300px !important; }
}
@media (max-width: 640px) {
    .hero-tool-grid { flex-direction: column; align-items: center; }
    .tool-square-btn { width: 100% !important; }
    .main-title { font-size: 2.2rem !important; }
}

/* 「もっと見る」ボタンのデザイン追加 */
.btn-v3-outline {
    background: transparent;
    border: 2px solid #003366;
    color: #003366;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-v3-outline:hover { background: #003366; color: #fff; transform: translateY(-3px); }
.btn-v3-outline.is-open { border-color: #f39c12; color: #f39c12; }

.more-posts-container { width: 100%; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 記事ページ（single.php）専用スタイル --- */

.post-header-v3 {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    padding: 100px 0 60px;
    color: #fff;
    margin-bottom: 60px;
}

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

.post-category {
    background: #f39c12;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.post-title-v3 {
    font-size: 2.8rem !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    margin: 0 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.post-layout-flex {
    display: flex;
    gap: 60px;
    align-items: start;
}

.post-article-v3 {
    flex: 1;
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1000px; /* 本文は広すぎると読みづらいため制限 */
}

.post-visual-v3 {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

/* 本文内の装飾 */
.entry-content-v3 h2 {
    font-size: 1.8rem;
    color: #003366;
    border-bottom: 4px solid #f39c12;
    padding-bottom: 10px;
    margin: 60px 0 30px;
}

.entry-content-v3 h3 {
    font-size: 1.4rem;
    color: #001f3f;
    border-left: 6px solid #003366;
    padding-left: 15px;
    margin: 40px 0 20px;
}

.entry-content-v3 p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 30px;
    color: #334155;
}

/* 記事下のバナー */
.footer-calc-banner {
    display: block;
    background: #001f3f;
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    transition: 0.3s;
}

.footer-calc-banner:hover {
    background: #f39c12;
    transform: scale(1.02);
}

/* サイドバー */
.post-sidebar-v3 {
    width: 320px;
    position: sticky;
    top: 40px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.side-tool-link {
    display: block;
    padding: 15px;
    background: #f8fafc;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #003366;
}

@media (max-width: 1024px) {
    .post-layout-flex { flex-direction: column; }
    .post-sidebar-v3 { width: 100%; position: static; }
}

/* --- 黒ナンバー取得ガイド専用（イエロー調整版） --- */

/* 1. 全体幅と背景の微調整 */
.page-id-476 .entry-content {
    max-width: 850px !important;
    margin: 40px auto !important;
    background: #fff !important;
    padding: 30px !important;
    border-radius: 12px !important;
}

/* 2. 見出し2（H2）をサイトカラーのイエローに変更 */
.page-id-560 .entry-content h2 {
    background: #fff9e6 !important; /* 極めて薄いイエロー */
    border-left: 8px solid #f39c12 !important; /* 濃いオレンジイエロー */
    padding: 15px 20px !important;
    color: #334155 !important;
    font-size: 1.5rem !important;
    margin: 45px 0 20px !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.03) !important;
}

/* 3. 見出し3（H3）の下線も調整 */
.page-id-560 .entry-content h3 {
    border-bottom: 2px solid #ffd700 !important; /* ゴールド */
    padding-bottom: 8px !important;
    color: #003366 !important;
}

/* 4. チェックリストのアイコンカラー */
.page-id-560 .entry-content ul {
    border: 2px solid #fef3c7 !important; /* 薄いイエロー枠 */
    padding: 25px 25px 25px 50px !important;
    list-style: none !important;
    background: #fff !important;
}

.page-id-560 .entry-content ul li::before {
    content: "✅" !important; /* チェックマーク */
    position: absolute !important;
    margin-left: -35px !important;
}