/**
 * 事業者ディレクトリ スタイル
 */

/* パンくずリスト */
.expert-breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #999;
}

.breadcrumb-list a {
    color: #337ab7;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* アーカイブヘッダー */
.expert-archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.expert-archive-title {
    font-size: 28px;
    margin: 0 0 10px;
    color: #333;
}

.expert-archive-description {
    color: #666;
    margin: 0;
}

/* 検索フォーム */
.expert-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-submit {
    flex-shrink: 0;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #337ab7;
    color: #fff;
}

.btn-primary:hover {
    background: #286090;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #337ab7;
    border: 1px solid #337ab7;
}

.btn-outline:hover {
    background: #337ab7;
    color: #fff;
}

.btn-line {
    background: #06C755;
    color: #fff;
}

.btn-line:hover {
    background: #05a847;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* 検索結果件数 */
.expert-result-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 事業者カード */
.expert-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expert-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.expert-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expert-card-inner {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.expert-card-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.expert-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-card-content {
    flex: 1;
    min-width: 0;
}

.expert-card-header {
    margin-bottom: 10px;
}

.expert-card-types {
    margin-bottom: 8px;
}

.expert-type-badge {
    display: inline-block;
    background: #e7f3ff;
    color: #337ab7;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.expert-card-title {
    font-size: 18px;
    margin: 0 0 5px;
}

.expert-card-title a {
    color: #333;
    text-decoration: none;
}

.expert-card-title a:hover {
    color: #337ab7;
}

.expert-card-location {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 特徴タグ */
.expert-card-features,
.expert-features {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.expert-feature-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #555;
}

.expert-feature-free_consultation {
    background: #fff3cd;
    color: #856404;
}

.expert-feature-online {
    background: #d4edda;
    color: #155724;
}

.expert-feature-weekend,
.expert-feature-night {
    background: #cce5ff;
    color: #004085;
}

.expert-feature-nationwide {
    background: #f8d7da;
    color: #721c24;
}

/* カード情報 */
.expert-card-info {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.expert-card-info p {
    margin: 5px 0;
}

.expert-card-info i {
    width: 20px;
    color: #999;
}

.expert-card-problems {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.problems-label {
    font-weight: bold;
    margin-right: 5px;
}

.expert-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.expert-card-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.line-available-badge {
    background: #06C755;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
}

/* ページネーション */
.expert-pagination {
    margin-top: 30px;
    text-align: center;
}

.expert-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.expert-pagination a,
.expert-pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #337ab7;
}

.expert-pagination .current {
    background: #337ab7;
    color: #fff;
    border-color: #337ab7;
}

.expert-pagination a:hover {
    background: #f0f0f0;
}

/* 結果なし */
.expert-no-results {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.expert-no-results p {
    margin: 10px 0;
    color: #666;
}

/* 地域リンク */
.expert-area-links,
.expert-city-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.expert-area-links h2,
.expert-city-links h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.area-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.area-region h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.area-region ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.area-region li {
    margin: 5px 0;
}

.area-region a {
    color: #337ab7;
    text-decoration: none;
    font-size: 14px;
}

.area-region a:hover {
    text-decoration: underline;
}

.city-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-links-list li a {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.city-links-list li a:hover {
    background: #337ab7;
    color: #fff;
}

/* 事業者詳細ページ */
.expert-single-header {
    margin-bottom: 30px;
}

.expert-types {
    margin-bottom: 10px;
}

.expert-types a {
    text-decoration: none;
}

.expert-single-title {
    font-size: 32px;
    margin: 0 0 15px;
    color: #333;
}

.expert-location {
    color: #666;
}

.expert-location a {
    color: #337ab7;
    text-decoration: none;
}

.expert-single-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.expert-main-content {
    min-width: 0;
}

.expert-thumbnail {
    margin-bottom: 30px;
}

.expert-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.expert-section {
    margin-bottom: 30px;
}

.expert-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.expert-description-content {
    line-height: 1.8;
}

.expert-problems-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expert-problems-list li a {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f7ff;
    color: #337ab7;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.expert-problems-list li a:hover {
    background: #337ab7;
    color: #fff;
}

/* サイドバー（基本情報） */
.expert-sidebar {
    position: sticky;
    top: 20px;
}

.expert-info-card,
.expert-features-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.expert-info-card h3,
.expert-features-card h3 {
    font-size: 16px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.expert-info-list {
    margin: 0;
}

.expert-info-list dt {
    font-weight: bold;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}

.expert-info-list dt:first-child {
    margin-top: 0;
}

.expert-info-list dd {
    margin: 5px 0 0;
    font-size: 14px;
}

.expert-info-list a {
    color: #337ab7;
    text-decoration: none;
}

.expert-info-list a:hover {
    text-decoration: underline;
}

.expert-contact-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expert-contact-buttons .btn {
    display: block;
    text-align: center;
}

.btn-phone {
    background: #28a745;
    color: #fff;
}

.btn-phone:hover {
    background: #218838;
    color: #fff;
}

.btn-line-badge {
    display: block;
    text-align: center;
    background: #06C755;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.expert-features-detail {
    list-style: none;
    margin: 0;
    padding: 0;
}

.expert-features-detail li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.expert-features-detail li:last-child {
    border-bottom: none;
}

.expert-features-detail i {
    color: #28a745;
    margin-right: 8px;
}

/* 関連事業者 */
.expert-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    grid-column: 1 / -1;
}

.expert-related h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.related-experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-expert-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.related-expert-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.related-expert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-expert-info h3 {
    font-size: 14px;
    margin: 0 0 8px;
}

.related-expert-info a {
    color: #333;
    text-decoration: none;
}

.related-expert-info a:hover {
    color: #337ab7;
}

.related-expert-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.feature-mini {
    font-size: 10px;
    padding: 2px 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

/* ======================================
 * 都道府県ページ
 * ====================================== */

/* 業種フィルター */
.area-type-filter {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.area-type-filter h3 {
    font-size: 14px;
    margin: 0 0 12px;
    color: #333;
}

.type-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-filter-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.type-filter-list li a:hover {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}

.type-filter-list li.current a {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}

/* 市区町村リンク（都道府県ページ内） */
.area-city-links {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.area-city-links h3 {
    font-size: 14px;
    margin: 0 0 12px;
    color: #333;
}

.area-city-links .city-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-city-links .city-links-list li a {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.area-city-links .city-links-list li a:hover {
    background: #337ab7;
    color: #fff;
}

/* 業種別リンク（都道府県ページ下部） */
.area-type-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.area-type-links h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.type-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.type-link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.type-link-card:hover {
    border-color: #337ab7;
    background: #f0f7ff;
    color: #337ab7;
}

.type-link-card .type-name {
    font-size: 16px;
    font-weight: bold;
}

.type-link-card .type-arrow {
    font-size: 18px;
    color: #999;
}

.type-link-card:hover .type-arrow {
    color: #337ab7;
}

/* 他の都道府県リンク */
.other-areas-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.other-areas-links h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.other-areas-links .area-region li.current a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    pointer-events: none;
}

/* 悩み別ページ */
.problem-categories {
    margin-bottom: 30px;
}

.problem-categories h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

.problem-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.problem-categories-list li a {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.problem-categories-list li a:hover,
.problem-categories-list li.current a {
    background: #337ab7;
    color: #fff;
}

.problem-categories-list .count {
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
}

.expert-type-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.expert-type-filter h3 {
    font-size: 14px;
    margin: 0 0 10px;
}

.type-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-filter-list a {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.type-filter-list a:hover {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}

.related-problems {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.related-problems h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.related-problems-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-problems-list a {
    display: inline-block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.related-problems-list a:hover {
    background: #e0e0e0;
}

.related-problems-list .count {
    font-size: 12px;
    color: #666;
}

/* ======================================
 * 既存lawofficeデザイン踏襲スタイル
 * ====================================== */

/* 一覧ページ - カード */
.post-loop-wrap.expert-list {
    border: none;
    padding: 0;
}

.expert-card {
    border: 2px solid #ddd;
    margin-bottom: 30px;
    padding: 0;
    border-radius: 0;
}

.post-loop-wrap.expert-list .expert-card .post-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr auto;
    gap: 20px 30px;
    padding: 30px !important;
    align-items: stretch;
}

.post-loop-wrap.expert-list .expert-card .post-thumbnail {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    width: 280px !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
}

.expert-card .post-thumbnail img {
    width: auto;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.expert-card .post-sub-cont {
    grid-column: 2;
    grid-row: 1;
}

.expert-card .post-sub-cont .law_copy {
    background: #f8f9fa;
    padding: 15px;
    margin-top: 15px;
    line-height: 1.6;
    border-left: 4px solid #337ab7;
}

.expert-card hr.clear {
    display: none;
}

.expert-card .law-loop-contact {
    grid-column: 1 / -1;
    grid-row: 2;
}

.expert-card .title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border: none;
    clear: none;
}

.expert-card .title:before {
    content: none;
}

.expert-card .title a {
    color: #333;
    text-decoration: none;
}

.expert-card .title a:hover {
    color: #337ab7;
}

.expert-type-label {
    display: inline-block;
    background: #004986;
    color: #fff;
    padding: 4px 12px;
    font-size: 14px;
    margin-left: 10px;
    vertical-align: middle;
}

.expert-card .law_address {
    color: #666;
    margin-bottom: 10px;
}

/* 電話・相談予約ボタン（一覧） */
.law-loop-contact {
    border: 2px solid #f14b5a;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

.law-loop-contact .item {
    flex: 1;
    min-width: 200px;
}

.law-loop-contact p {
    margin-bottom: 0;
}

.law-loop-contact .loop-cont-text-01 {
    font-size: 16px;
    margin-bottom: 8px;
}

.law-loop-contact .loop-cont-text-02 {
    font-size: 36px;
    color: #f14b5a;
    line-height: 1.2;
}

.law-loop-contact .loop-cont-text-02 span {
    font-size: 24px;
}

.law-loop-contact .loop-cont-text-02 a {
    color: #f14b5a;
    text-decoration: none;
}

.law-loop-contact .loop-cont-text-03 {
    font-size: 14px;
    color: #666;
}

.law-loop-contact .loop-cont-text-03 span {
    font-weight: bold;
}

.law-loop-contact .btn-01 {
    margin-bottom: 10px;
}

.law-loop-contact .btn-01 a {
    display: block;
    background: linear-gradient(to bottom, #f19049, #ec6941);
    padding: 16px 20px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.law-loop-contact .btn-01 a:hover {
    opacity: 0.8;
}

.law-loop-contact .btn-01 i.fa {
    margin-left: 10px;
}

.law-loop-contact .btn-02 a {
    display: block;
    background: #337ab7;
    padding: 12px 20px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.law-loop-contact .btn-02 a:hover {
    opacity: 0.8;
}

.law-loop-contact .btn-02 i.fa {
    margin-left: 10px;
}

/* 対応地域・取扱い案件リスト */
.lucy-post-meta {
    margin-bottom: 10px;
}

.lucy-post-meta .post-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.lucy-post-meta .post-meta li {
    padding: 6px 15px;
    font-size: 13px;
}

.lucy-post-meta .bg-title {
    background: #505050;
    color: #fff;
}

.lucy-post-meta .law-area {
    background: #8fc31f;
    color: #fff;
}

.lucy-law_possible {
    margin-bottom: 10px;
}

.lucy-law_possible .law-possible-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.lucy-law_possible .law-possible-list li {
    display: inline-block;
    padding: 6px 12px;
    background: #004986;
    color: #fff;
    font-size: 12px;
}

.lucy-law_possible .bg-title {
    background: #505050 !important;
}

/* 詳細ページ */
.expert-single-article {
    padding: 0;
}

.expert-single-article .post-header {
    overflow: hidden;
    padding: 30px;
    background: #fff;
}

.expert-single-article .bx-slider {
    float: left;
    width: 520px;
    max-width: 100%;
}

.expert-single-article .expert-meta {
    margin-left: 540px;
}

.expert-single-article .expert-title {
    font-size: 28px;
    margin: 0 0 15px;
    clear: none;
}

.expert-single-article .office_name {
    color: #666;
    margin-bottom: 10px;
}

.expert-single-article .law_address {
    color: #666;
    margin-bottom: 15px;
}

.expert-single-article .law_copy {
    background: #f8f9fa;
    padding: 15px;
    margin-top: 15px;
    line-height: 1.6;
    border-left: 4px solid #337ab7;
}

/* 問い合わせセクション */
.law-contact {
    background: #f2f0e8;
    padding: 20px;
}

.law-contact .inner {
    width: 960px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 7px rgba(0,0,0,0.1);
}

.law-contact .item-wrap {
    font-size: 0;
    display: flex;
    flex-wrap: wrap;
}

.law-contact .item {
    display: inline-block;
    font-size: 14px;
    padding: 16px 42px 24px;
    text-align: center;
    vertical-align: top;
}

.law-contact .law-cont-01 {
    flex: 1;
    min-width: 280px;
}

.law-contact .law-cont-02 {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.law-contact .text-01 {
    font-weight: bold;
    margin-bottom: 8px;
}

.law-contact .text-02 {
    font-size: 36px;
    color: #f14b5a;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.1;
}

.law-contact .text-02 span {
    font-size: 28px;
}

.law-contact .text-02 a {
    color: #f14b5a;
    text-decoration: none;
}

.law-contact .text-03 {
    font-size: 14px;
}

.law-contact .text-03 span {
    font-weight: bold;
}

.law-contact .btn-01 a {
    display: block;
    background: linear-gradient(to bottom, #f19049, #ec6941);
    padding: 24px 20px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.law-contact .btn-01 a:hover {
    opacity: 0.8;
}

.law-contact .btn-01 i.fa {
    margin-left: 20px;
}

/* 事業者情報テーブル */
.expert-single-article .info-area table {
    width: 100%;
    border-collapse: collapse;
}

.expert-single-article .info-area th,
.expert-single-article .info-area td {
    padding: 12px;
    border: 1px solid #ddd;
}

.expert-single-article .info-area th {
    width: 160px;
    background: #f6f2ed;
    color: #333;
    font-weight: normal;
}

.expert-single-article .info-area a {
    color: #337ab7;
}

/* コンテンツセクション */
.expert-single-article .post-content {
    padding: 45px;
    overflow: hidden;
}

.expert-single-article .expert-section {
    margin-bottom: 40px;
}

.expert-single-article .expert-section h2 {
    background: #337ab7;
    color: #fff;
    padding: 12px 20px;
    position: relative;
    border-radius: 0;
    font-size: 18px;
    margin-bottom: 30px;
}

.expert-single-article .expert-section h2:after {
    content: '';
    display: block;
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-top: 10px solid #337ab7;
    border-bottom: 10px solid transparent;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
}

/* フッターフォーム */
.expert-single-article .post-footer {
    padding: 0;
}

/* フッター固定バー */
.law-footer,
.expert-footer-bar {
    width: 100%;
    padding: 20px 0;
    background: #494949;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.law-footer .wrap,
.expert-footer-bar .wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.law-footer .inner,
.expert-footer-bar .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.law-footer .law-title,
.expert-footer-bar .law-title {
    font-size: 18px;
    margin: 0;
    flex: 1;
}

.law-footer .law-tel,
.expert-footer-bar .law-tel {
    font-size: 28px;
    text-align: center;
    margin: 0;
}

.law-footer .law-tel a,
.expert-footer-bar .law-tel a {
    color: #fff;
    text-decoration: none;
}

.law-footer .law-btn,
.expert-footer-bar .law-btn {
    margin: 0;
}

.law-footer .law-btn a,
.expert-footer-bar .law-btn a {
    display: block;
    border-radius: 5px;
    background: linear-gradient(to bottom, #fdb745, #f39802);
    color: #fff;
    border: 1px solid #ddd;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
}

.law-footer .law-btn a:hover,
.expert-footer-bar .law-btn a:hover {
    opacity: 0.8;
}

/* bxSlider */
.expert-single-article .bx-wrapper {
    margin-bottom: 10px;
}

.expert-single-article .bx-wrapper .bx-viewport {
    box-shadow: none;
    border: none;
    left: 0;
}

.expert-single-article .bx-wrapper a {
    transition: none;
}

.expert-single-article #bx-pager {
    margin: 0 -3px;
    font-size: 0;
}

.expert-single-article #bx-pager a {
    padding: 0 3px;
    width: 33.3%;
    display: inline-block;
}

.expert-single-article #bx-pager img {
    width: 100%;
    height: auto;
}

/* 単独サムネイル（スライダーなしの場合） */
.expert-single-thumbnail {
    float: left;
    width: 520px;
    max-width: 100%;
}

.expert-single-thumbnail img {
    width: 100%;
    height: auto;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .expert-single-body {
        grid-template-columns: 1fr;
    }

    .expert-sidebar {
        position: static;
    }

    .expert-single-article .bx-slider,
    .expert-single-thumbnail {
        float: none;
        margin: 0 auto 20px;
    }

    .expert-single-article .expert-meta {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .expert-card-inner {
        flex-direction: column;
    }

    .expert-card-thumbnail {
        width: 100%;
        height: 200px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-field {
        min-width: 100%;
    }

    .expert-archive-title {
        font-size: 22px;
    }

    .expert-single-title {
        font-size: 24px;
    }

    .area-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 一覧カード */
    .post-loop-wrap.expert-list .expert-card .post-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        padding: 15px !important;
        gap: 15px !important;
    }

    .post-loop-wrap.expert-list .expert-card .post-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .post-loop-wrap.expert-list .expert-card .post-thumbnail img {
        width: 100% !important;
        height: auto !important;
    }

    .post-loop-wrap.expert-list .expert-card .post-sub-cont {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .post-loop-wrap.expert-list .expert-card .law-loop-contact {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .expert-card .title {
        font-size: 18px;
    }

    /* 電話ボタン */
    .law-loop-contact {
        padding: 15px;
        flex-direction: column;
    }

    .law-loop-contact .loop-cont-text-02 {
        font-size: 28px;
    }

    .law-loop-contact .item {
        min-width: 100%;
        margin-bottom: 15px;
    }

    /* 詳細ページ */
    .expert-single-article .post-header {
        padding: 15px;
    }

    .expert-single-article .post-content {
        padding: 20px 15px;
    }

    .expert-single-article .expert-title {
        font-size: 20px;
    }

    .expert-single-article .info-area table {
        display: block;
    }

    .expert-single-article .info-area tbody,
    .expert-single-article .info-area tr,
    .expert-single-article .info-area th,
    .expert-single-article .info-area td {
        display: block;
        width: 100%;
    }

    .expert-single-article .info-area th {
        width: 100%;
    }

    /* 問い合わせセクション */
    .law-contact .item {
        width: 100%;
        padding: 15px;
    }

    .law-contact .text-02 {
        font-size: 28px;
    }

    /* フッター固定バー */
    .law-footer .inner,
    .expert-footer-bar .inner {
        flex-direction: column;
        text-align: center;
    }

    .law-footer .law-title,
    .expert-footer-bar .law-title {
        font-size: 14px;
    }

    .law-footer .law-tel,
    .expert-footer-bar .law-tel {
        font-size: 24px;
    }

    /* 都道府県ページ */
    .type-links-grid {
        grid-template-columns: 1fr;
    }

    .area-type-filter,
    .area-city-links {
        padding: 15px;
    }

    .type-filter-list li a {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .area-links-grid {
        grid-template-columns: 1fr;
    }

    .expert-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .expert-card-actions .btn {
        text-align: center;
    }
}

/* ==========================================================================
   専門家詳細ページ - サイドバー非表示・全幅レイアウト
   ========================================================================== */

.single-expert .main-inner {
    margin-right: 0;
}

.single-expert #side {
    display: none;
}
