/* ==========================================
   草刈り業者比較ナビ - スマホファーストCSS
   ========================================== */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
    font-size: 16px;
    padding-bottom: 70px; /* 固定CTAボタンの高さ分 */
}

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

/* ==========================================
   ヘッダー
   ========================================== */
.header {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
}

/* ハンバーガーメニュー */
.hamburger {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.menu-close {
    text-align: right;
    padding: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.mobile-menu a:hover {
    background: #f5f5f5;
}

/* ==========================================
   固定CTAボタン（スマホ下部）
   ========================================== */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.fixed-cta a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

/* ==========================================
   コンテナ
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    background: white;
    padding: 30px 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4caf50;
}

h3 {
    font-size: 20px;
    color: #388e3c;
    margin: 20px 0 10px;
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 20px 0;
}

.hero-title {
    font-size: 26px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-image {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================
   ボタン
   ========================================== */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
    transition: all 0.3s;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,107,0.4);
}

.cta-button.primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.cta-button.large {
    font-size: 20px;
    padding: 20px 40px;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.cta-note {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-top: 12px;
}

.link-button {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s;
}

.link-button:hover {
    background: #388e3c;
}

.text-link {
    display: block;
    color: #2e7d32;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
}

.text-link:hover {
    text-decoration: underline;
}

/* ==========================================
   悩み・解決ボックス
   ========================================== */
.problem-box {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #f44336;
    margin: 20px 0;
}

.problem-list {
    list-style: none;
}

.problem-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 16px;
}

.problem-list li:before {
    content: "😰";
    position: absolute;
    left: 0;
}

.solution-box {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #4caf50;
    margin: 20px 0;
}

.solution-box h3 {
    margin-top: 0;
    color: #2e7d32;
}

/* ==========================================
   料金カード
   ========================================== */
.price-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.price-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card.featured {
    border-color: #ff6b6b;
    background: linear-gradient(to bottom, #fff5f5 0%, white 100%);
}

.price-card .badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.price-header {
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b6b;
    margin: 15px 0;
    line-height: 1.3;
}

.price-detail {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* ==========================================
   ランキングカード
   ========================================== */
.rank-card {
    background: white;
    border: 3px solid #4caf50;
    border-radius: 12px;
    padding: 25px 20px;
    margin: 25px 0;
    position: relative;
}

.rank-card.rank-1 {
    border-color: #ffd700;
    background: linear-gradient(to bottom, #fffef7 0%, white 100%);
}

.rank-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ff6b6b;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}

.rank-badge.silver {
    background: #c0c0c0;
}

.rank-badge.bronze {
    background: #cd7f32;
}

.rank-card h3 {
    font-size: 22px;
    margin: 10px 0;
}

.rank-price {
    background: #ff6b6b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    text-align: center;
}

.rank-image {
    margin: 20px 0;
    text-align: center;
}

.rank-features {
    list-style: none;
    margin: 20px 0;
}

.rank-features li {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

/* ==========================================
   画像ボックス
   ========================================== */
.image-box {
    margin: 30px 0;
    text-align: center;
}

.image-box img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* ==========================================
   リンクグリッド
   ========================================== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.link-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.link-card:hover {
    border-color: #4caf50;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.link-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.link-card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
    color: #2e7d32;
}

.link-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ==========================================
   最終CTA
   ========================================== */
.final-cta {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.final-cta h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 15px;
}

.final-cta-text {
    font-size: 18px;
    margin-bottom: 25px;
}

.final-cta .cta-note {
    color: rgba(255,255,255,0.9);
}

/* ==========================================
   フッター
   ========================================== */
.footer {
    background: #333;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #4caf50;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4caf50;
}

.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
    margin: 5px 0;
}

/* ==========================================
   タブレット以上
   ========================================== */
@media (min-width: 768px) {
    .site-title {
        font-size: 22px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .price-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   PC
   ========================================== */
@media (min-width: 1024px) {
    .fixed-cta {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .hamburger {
        display: none;
    }
}