/**
 * 都道府県別ページスタイル
 */

/* ヘッダーセクション */
.prefecture-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB66B 50%, #FF8E53 100%);
    padding: 80px 0 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.prefecture-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.05) 35px,
        rgba(255, 255, 255, 0.05) 70px
    );
}

.prefecture-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.prefecture-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.prefecture-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* コンテンツレイアウト */
.prefecture-content-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.prefecture-main {
    flex: 1;
}

.prefecture-sidebar {
    width: 320px;
}

/* セクションタイトル */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FF6B6B;
}

/* 市区町村グリッド */
.cities-section {
    margin-bottom: 60px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.city-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.city-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.city-card-link {
    display: block;
    padding: 15px;
    text-decoration: none;
}

.city-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.city-arrow {
    color: #FF6B6B;
    font-size: 18px;
    font-weight: bold;
}

/* 業者グリッド */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vendor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vendor-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.vendor-card-link {
    display: block;
    text-decoration: none;
}

.vendor-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

.vendor-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.placeholder-text {
    color: #9ca3af;
    font-size: 14px;
}

.vendor-content {
    padding: 20px;
}

.vendor-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #FF6B6B;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.vendor-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.vendor-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* もっと見るボタン */
.more-vendors-section {
    text-align: center;
    margin-top: 40px;
}

.more-vendors-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.more-vendors-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* サイドバーウィジェット */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B6B;
}

/* 検索フィルター */
.search-filters .sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* おすすめ記事 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-article {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sidebar-article-link:hover {
    color: #FF6B6B;
}

.sidebar-article-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-content {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-article-date {
    font-size: 12px;
    color: #999;
}

/* 関連都道府県グリッド */
.prefectures-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prefecture-link-item {
    display: inline-block;
    padding: 8px 15px;
    background: #f3f4f6;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.prefecture-link-item:hover {
    background: #FF6B6B;
    color: #fff;
}

/* 地域検索ウィジェット */
.area-search-widget-wrapper {
    margin-bottom: 30px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .prefecture-content-layout {
        flex-direction: column;
    }
    
    .prefecture-sidebar {
        width: 100%;
    }
    
    .prefecture-title {
        font-size: 28px;
    }
    
    .prefecture-description {
        font-size: 16px;
    }
    
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .vendors-grid {
        grid-template-columns: 1fr;
    }
}