/* トップページ専用スタイル */

.front-page {
    background-color: #f5f7fa;
}

/* 検索セクション */
.search-section {
    background: #f8f9fa;
    padding: 0 20px;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
}
.search-main .search-section {
    padding: 0;
}

.search-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #333;
}

.search-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    overflow-x: hidden;
}

.office-search-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.office-search-form .search-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.office-search-form .search-field {
    min-width: 0;
    box-sizing: border-box;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.search-field select,
.search-field input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-options-section {
    margin-bottom: 24px;
}

.options-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
    display: block;
}

.checkbox-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

.checkbox-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-column-languages {
    display: block;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.search-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.btn-search {
    background: #f97316;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background: #ea580c;
}

.search-icon {
    font-size: 1rem;
}

/* 登録事務所数バー */
.stats-bar {
    background: #fed7aa;
    padding: 16px 0;
    margin: 20px 0;
    border-top: 1px solid #fb923c;
    border-bottom: 1px solid #fb923c;
}

.stats-text {
    text-align: center;
    margin: 0;
    color: #92400e;
    font-size: 0.95rem;
}

.stats-text strong {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ea580c;
}

/* エリア検索セクション */
.region-search-section {
    padding: 32px 20px;
    background: #f8f9fa;
}

.region-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.section-title .icon {
    font-size: 1.25rem;
}

/* スマホ用プルダウン */
.region-select-mobile {
    display: none;
}

.region-select-mobile select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    cursor: pointer;
}

.region-select-mobile select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* デスクトップ用リスト */
.region-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.region-column {
    background: white;
}

.region-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #6b7280;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.prefecture-list {
    list-style: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.prefecture-list li {
    margin-bottom: 8px;
    pointer-events: none;
}

.prefecture-list li a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
}

.prefecture-list li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* コラム記事セクション */
.articles-section {
    padding: 32px 20px;
    background: #f5f7fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f97316;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #888;
}

.article-category {
    background: #fed7aa;
    color: #c2410c;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.article-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: none;
    border-left: none;
    padding: 0;
}

.article-title::before {
    content: none;
}

.article-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-more {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #f97316;
    border: 2px solid #f97316;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view-more:hover {
    background: #f97316;
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .region-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.8rem;
    }

    .search-form-wrapper {
        padding: 24px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .office-search-form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .office-search-form .search-row {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
    }

    .office-search-form .search-field {
        min-width: 0;
    }

    .checkbox-grid-wrapper {
        grid-template-columns: 1fr;
    }

    /* スマホでプルダウン表示、リスト非表示 */
    .region-select-mobile {
        display: block;
    }

    .region-columns {
        display: none;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .region-columns {
        grid-template-columns: 1fr;
    }
}

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