/*
Theme Name: Hachidori pSEO Theme
Theme URI: https://solar-life.com/solar/subsidy/
Author: Hachidori Solar
Description: ハチドリソーラー補助金pSEO専用テーマ。市区町村ごとの補助金情報と投資回収シミュレーションを提供。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: hachidori-pseo
*/

/* =============================================================
   style.css — 全ページ共通ベース（リセット＋汎用＋ヘッダー＋モバイルメニュー）
   旧 style.css + common.css + site-header.css を統合
   ============================================================= */


/* ===== Minimal reset ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }


/* ===== 汎用コンテナ ===== */
.wp-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}
.wp-container--center { text-align: center; }
.wp-container--hero   { margin-top: 80px; }


/* ===== 404ページ ===== */
.error404-title {
    font-size: 48px;
    margin-bottom: 16px;
}
.error404-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0066cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 32px;
}
.error404-btn:hover {
    opacity: .85;
    text-decoration: none;
    color: #fff;
}


/* ===== 投稿メタ ===== */
.entry-meta {
    color: #888;
    font-size: .9rem;
    margin-top: 4px;
}


/* ===== ページトップボタン ===== */
#hpseo-pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2d9f93;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 900;
    display: none;
}
#hpseo-pagetop:hover {
    opacity: .85;
}


/* ===== 地図凡例カラー ===== */
.subsidy-map-legend .legend-hokkaido { background: #7B50B0; }
.subsidy-map-legend .legend-tohoku   { background: #3068B8; }
.subsidy-map-legend .legend-kanto    { background: #2898C8; }
.subsidy-map-legend .legend-chubu    { background: #258E78; }
.subsidy-map-legend .legend-kinki    { background: #558B30; }
.subsidy-map-legend .legend-chugoku  { background: #908228; }
.subsidy-map-legend .legend-shikoku  { background: #C86820; }
.subsidy-map-legend .legend-kyushu   { background: #C04858; }


/* =============================================================
   サイトヘッダー（旧 site-header.css）
   ============================================================= */
.hpseo-header {
    position: sticky; top: 0; z-index: 1000;
    background: #fdfdfd;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    height: 80px;
}
.hpseo-header__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; padding: 0 20px;
}
.hpseo-header__logo img {
    height: 40px; width: auto; display: block;
}
.hpseo-header__nav {
    display: flex; align-items: center; gap: 4px;
}
.hpseo-header__nav a {
    display: inline-flex; align-items: center;
    padding: 0 20px; height: 80px;
    font-size: 16px; font-weight: 500;
    color: #333; text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
    letter-spacing: .8px;
}
.hpseo-header__nav a:hover {
    background: #f0faf8; color: #2d9f93;
}
.hpseo-header__nav a.--cta {
    background: #d30f25; color: #fff;
    font-weight: 700; border-radius: 6px;
    height: 50px; padding: 0 20px; margin-left: 8px;
    font-size: 15px; letter-spacing: .75px;
    box-shadow: 0 2px 6px rgba(211,15,37,.3);
}
.hpseo-header__nav a.--cta:hover {
    background: #b80d20;
    box-shadow: 0 3px 10px rgba(211,15,37,.4);
}

/* Mobile menu button */
.hpseo-header__menuBtn {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 8px; font-size: 24px; color: #333;
}

/* Mobile menu overlay */
.hpseo-spMenu {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
}
.hpseo-spMenu.--open { display: block; }
.hpseo-spMenu__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.4);
}
.hpseo-spMenu__body {
    position: absolute; top: 0; left: 0;
    width: 280px; height: 100%;
    background: #fff; padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,.12);
}
.hpseo-spMenu__close {
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #666; margin-bottom: 16px;
}
.hpseo-spMenu__body a {
    display: block; padding: 12px 0;
    font-size: 15px; font-weight: 600;
    color: #333; text-decoration: none;
    border-bottom: 1px solid #eee;
}
.hpseo-spMenu__body a:hover { color: #2d9f93; }
.hpseo-spMenu__body a.--cta {
    background: #d30f25; color: #fff;
    text-align: center; border-radius: 6px;
    padding: 14px 0; margin-top: 12px; border-bottom: none;
}
.hpseo-spMenu__body a.--cta:hover { background: #b80d20; color: #fff; }

@media (max-width: 1000px) {
    .hpseo-header__nav { display: none; }
    .hpseo-header__menuBtn { display: block; }
}
