/*
Theme Name: SWELL Child - Premium Debt Consolidation
Theme URI: https://premium-debt-consolidation.com
Description: プレミアム優待倶楽部 債務整理おすすめ比較サイト用のSWELL子テーマ
Author: Premium Debt Team
Author URI: https://premium-debt-consolidation.com
Template: swell
Version: 1.0.0
Text Domain: swell-child-debt
*/

/* ==========================================================================
   Base Styles - 信頼感のある青と緑を基調としたデザイン
   ========================================================================== */

:root {
    --primary-color: #1e40af; /* 濃い青 */
    --primary-light: #dbeafe; /* 薄い青 */
    --primary-dark: #1e3a8a; /* より濃い青 */
    --secondary-color: #059669; /* 緑 */
    --secondary-light: #d1fae5; /* 薄い緑 */
    --secondary-dark: #047857; /* 濃い緑 */
    --lawyer-color: #2563eb; /* 弁護士用の青 */
    --lawyer-bg: #eff6ff; /* 弁護士用の背景色 */
    --shiho-color: #16a34a; /* 司法書士用の緑 */
    --shiho-bg: #f0fdf4; /* 司法書士用の背景色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --background-light: #f9fafb;
    --white: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

/* 基本レイアウト調整 */
body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    line-height: 1.8;
}

/* 見出しスタイル */
.entry-content h2 {
    padding: 0.8rem 0;
    border-bottom: 3px solid var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}

.entry-content h3 {
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 5px solid var(--primary-color);
    margin: 2rem 0 1.2rem;
    font-weight: 600;
    line-height: 1.5;
}

/* セクションタイトル */
h2.section-title {
    position: relative;
    padding: 1rem 0;
    margin: 2.5rem 0 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
}

/* 2行表示のタイトル */
.section-title-line1,
.section-title-line2 {
    display: block;
    line-height: 1.5;
}

.section-title-line1 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.section-title-line2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* 番号付きセクション */
.numbered-section {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.section-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .numbered-section {
        padding-left: 50px;
    }
    
    .section-number {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

h2.section-title::before,
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
}

h2.section-title::before {
    width: 100px;
    background-color: var(--primary-color);
}

h2.section-title::after {
    width: 60px;
    bottom: -3px;
    background-color: var(--secondary-color);
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-questions {
    margin-bottom: 1.5rem;
}

.hero-question {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-weight: 600;
}

.hero-message {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.hero-stats {
    margin-top: 2rem;
}

.office-count {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--white);
    padding: 1.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.office-count-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.office-count-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.office-count-number strong {
    font-size: 2.2rem;
}

/* ==========================================================================
   事務所カード
   ========================================================================== */

.law-office-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.law-office-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 弁護士事務所のスタイル */
.law-office-card--lawyer {
    background-color: var(--lawyer-bg);
    border-color: var(--lawyer-color);
    border-width: 2px;
}

.law-office-card--lawyer .office-type-badge {
    background-color: var(--lawyer-color);
    color: var(--white);
}

/* 司法書士事務所のスタイル */
.law-office-card--shiho {
    background-color: var(--shiho-bg);
    border-color: var(--shiho-color);
    border-width: 2px;
}

.law-office-card--shiho .office-type-badge {
    background-color: var(--shiho-color);
    color: var(--white);
}

.office-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.law-office-header {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1rem;
}

.law-office-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.law-office-info {
    flex: 1;
}

.law-office-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.law-office-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.law-office-name a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   債務整理カテゴリセクション
   ========================================================================== */

.debt-category-section {
    margin: 3rem 0;
}

.debt-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.debt-category-item {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.debt-category-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.debt-category-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.debt-category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================================================
   運営会社情報ヘッダー
   ========================================================================== */

.company-info-header {
    background-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-info-header .l-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.company-info-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .hero-question {
        font-size: 1rem;
    }
    
    .office-count {
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .office-count-label {
        font-size: 1rem;
    }
    
    .office-count-number {
        font-size: 1.5rem;
    }
    
    .office-count-number strong {
        font-size: 1.8rem;
    }
    
    .law-office-header {
        flex-direction: column;
    }
    
    .law-office-logo {
        width: 150px;
    }
    
    .debt-category-grid {
        grid-template-columns: 1fr;
    }
    
    .company-info-header {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .company-info-text {
        font-size: 0.75rem;
    }
    
    /* CTAセクションの調整 */
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* 運営会社セクションの調整 */
    .trust-cta-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trust-cta-right {
        order: 2;
    }
    
    .trust-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .trust-cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   ボタンスタイル
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   評価・レビュー
   ========================================================================== */

.rating-stars {
    color: #facc15;
    font-size: 1.2rem;
}

.rating-score {
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */

.breadcrumb {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* ==========================================================================
   事務所ロゴセクション
   ========================================================================== */

.office-logo-section {
    margin: 3rem 0;
}

.office-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.office-logo-item {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 120px;
}

.office-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.office-logo-item--lawyer {
    border-color: var(--lawyer-color);
    background-color: var(--lawyer-bg);
}

.office-logo-item--lawyer:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.office-logo-item--shiho {
    border-color: var(--shiho-color);
    background-color: var(--shiho-bg);
}

.office-logo-item--shiho:hover {
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.office-logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* ==========================================================================
   記事セクション
   ========================================================================== */

.articles-section {
    margin: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.article-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-card__category:hover {
    background-color: var(--primary-dark);
}

.article-card__date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card__title a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-card__title a:hover {
    color: var(--primary-color);
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.articles-more {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================================
   口コミセクション
   ========================================================================== */

.reviews-section {
    margin: 4rem 0;
}

.review-list {
    margin-top: 2rem;
}

.review-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-office-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.review-office-name a {
    color: var(--primary-color);
    text-decoration: none;
}

.review-office-name a:hover {
    text-decoration: underline;
}

.review-author {
    color: var(--text-secondary);
}

.review-age {
    background-color: var(--background-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.review-debt-type {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.review-content {
    color: var(--text-primary);
    line-height: 1.8;
}

/* トップページの口コミ文字前の空白を修正 */
.reviews-section .review-content p:first-child {
    margin-top: 0;
}
.reviews-section .review-content {
    text-align: left;
}

/* ==========================================================================
   CTAセクション
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 4rem 0;
    text-align: center;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   運営会社セクション
   ========================================================================== */

.trust-cta-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background-color: var(--background-light);
}

.trust-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-cta-title {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.trust-cta-title strong {
    display: block;
    font-weight: 700;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

.trust-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gold {
    background-color: #FFD700;
    color: var(--text-primary);
}

.btn-gold:hover {
    background-color: #E6C200;
}

.btn-blue {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-blue:hover {
    background-color: var(--primary-dark);
}

.company-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
}

.company-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.stock-code {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   その他サービスセクション
   ========================================================================== */

.other-services-section {
    margin: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-service {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   相談料バッジ
   ========================================================================== */

.consultation-badge {
    display: inline-block;
    background-color: var(--success-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-2 { margin-left: 1rem; }
.mr-2 { margin-right: 1rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* ==========================================================================
   Sub Area Styles - サブエリアページ用スタイル
   ========================================================================== */

/* サブエリアページヘッダー */
.sub-area-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.sub-area-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* サブエリア導入文セクション */
.sub-area-intro-section {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.sub-area-intro-section h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.sub-area-intro-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sub-area-intro-section ul {
    list-style: none;
    padding-left: 0;
}

.sub-area-intro-section li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.sub-area-intro-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* エリア会社セクション（折りたたみ式） */
.area-companies-section {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.area-companies-section h3 {
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-weight: 700;
}

.companies-list-open {
    display: block;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.company-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.company-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-item--consultation {
    border-color: var(--secondary-color);
}

.company-item--office {
    border-color: var(--primary-light);
}

.company-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
}

.company-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
}

.company-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.company-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.company-badge--consultation {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
}

.company-badge--office {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* サブエリアコンテンツ */
.sub-area-content {
    margin: 3rem 0;
}

/* 事務所セクション */
.offices-section {
    margin-top: 4rem;
}

.offices-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

/* 事務所カード */
.office-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.office-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.office-card--consultation-available {
    border-color: var(--secondary-color);
}

.office-card__consultation-badge,
.office-card__office-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    border-radius: 0 12px 0 12px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.office-card__consultation-badge {
    background-color: var(--secondary-color);
    color: var(--white);
}

.office-card__office-badge {
    background-color: var(--primary-color);
    color: var(--white);
}

.office-consultation-badge-area,
.office-office-badge-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.office-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.office-card__logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.office-card__info {
    flex: 1;
}

.office-card__name {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.office-card__name a {
    text-decoration: none;
    color: inherit;
}

.office-card__name a:hover {
    text-decoration: underline;
}

.office-card__firm {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.office-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.office-card__features {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.office-card__features h4 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
}

.office-card__cta-button {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-official {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-official:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.office-card__offices {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.office-card__offices h4 {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.office-list {
    display: grid;
    gap: 1rem;
}

.office-item {
    padding: 1rem;
    background-color: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.office-card__detail-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.office-card__detail-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.office-card__detail-link a:hover {
    text-decoration: underline;
}

/* エリアレビューセクション */
.area-reviews-section {
    margin-top: 4rem;
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 12px;
}

.area-reviews-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.area-reviews-list {
    display: grid;
    gap: 1.5rem;
}

.review-office-link {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.review-office-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.area-reviews-more {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.office-review-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.office-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.office-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* エリアトピックセクション */
.area-topics-section {
    margin-top: 4rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
}

.area-topics-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.area-topics-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.topic-link-simple {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.topic-link-simple:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .sub-area-page-title {
        font-size: 1.5rem;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .office-card__header {
        flex-direction: column;
    }
    
    .office-card__logo {
        width: 100px;
    }
    
    .btn-official {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .area-reviews-section {
        padding: 2rem;
    }
}

/* ==========================================================================
   法律事務所ランキングスタイル
   ========================================================================== */

.office-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: ranking-counter;
}

.office-ranking-item {
    position: relative;
    counter-increment: ranking-counter;
    padding-left: 0;
    margin-bottom: 30px;
}

.office-ranking-item .law-office-card {
    position: relative;
    padding-top: 50px;
}

.office-ranking-item::before {
    content: counter(ranking-counter);
    position: absolute;
    left: 15px;
    top: 15px;
    width: 45px;
    height: 45px;
    background-color: #ff6b35;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

/* ランキング1位～3位の特別スタイル */
.office-ranking-item:nth-child(1)::before {
    background-color: #ffd700;
    color: #333;
}

.office-ranking-item:nth-child(2)::before {
    background-color: #c0c0c0;
    color: #333;
}

.office-ranking-item:nth-child(3)::before {
    background-color: #cd7f32;
    color: #fff;
}

/* おすすめ事務所のスタイル */
.office-ranking-item.office-recommended {
    position: relative;
}

.law-office-card--recommended {
    border: 3px solid #ff8c00;
    background-color: #fffaf5;
}

.recommended-label {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #ff8c00;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 15;
}

/* 番号を非表示にする */
.office-ranking-item.office-recommended::before {
    display: none;
}

/* オフィスタイプバッジ追加スタイル */
.office-type-badge--lawyer {
    background-color: #e8f4f8;
    color: #0066cc;
}

.office-type-badge--shiho {
    background-color: #fff3e6;
    color: #ff6b35;
}

/* ヘッダー内の基本情報スタイル */
.office-header__basic-info {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.office-header__basic-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.basic-info-content .info-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.basic-info-content .info-item:last-child {
    margin-bottom: 0;
}

/* オンライン相談バッジ */
.office-header__online-consultation {
    margin-top: 15px;
}

.online-consultation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e6f7ff;
    color: #0066cc;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.online-consultation-badge i {
    font-size: 16px;
}

/* CTAボタンスタイル */
.btn-official-debt {
    background-color: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 16px;
    border: none;
    max-width: 400px;
    margin: 0 auto;
}

.btn-official-debt:hover {
    background-color: #e55a2b;
    color: #fff;
}

/* 詳細リンクスタイル */
.office-detail-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

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

/* 口コミ結果バッジ */
.review-result {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.review-result--resolved {
    background-color: #d1fae5;
    color: #047857;
}

.review-result--in_progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.review-result--considering {
    background-color: #fef3c7;
    color: #92400e;
}

.review-result--not_proceeded {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 認証済みバッジ */
.review-verified {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #fbbf24;
    color: #78350f;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 導入文・記事エリアのスタイル調整 */
.office-intro {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.office-intro-content {
    background-color: transparent !important;
    padding: 0 !important;
}

/* CTA画像のスタイル */
.cta-image-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.cta-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* CTAボタンコンテナのセンタリング */
.office-header__button-wrapper {
    text-align: center;
}

/* PR表記の調整 */
.pr-disclaimer-wrapper {
    text-align: right;
    margin-top: 10px;
}

.pr-disclaimer {
    display: inline-block;
}

/* 口コミ写真グリッド（1枚対応） */
.review-photos {
    margin-top: 15px;
}

.review-photos-grid {
    text-align: left;
}

.review-photo-link {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.review-photo-link:hover {
    opacity: 0.8;
}

.review-photo-thumb {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 写真モーダル */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.photo-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.photo-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.photo-modal-close:hover,
.photo-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* 都道府県ページの追加スタイル */
.area-intro-section {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.available-offices-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.available-offices-info h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.sub-area-links {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.sub-area-links-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.sub-area-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-area-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 10px;
    background-color: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.sub-area-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* サブエリアページのスタイル修正 */
.sub-area-intro-section,
.sub-area-intro-content {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin: 20px 0;
}

.sub-area-intro-section h2,
.sub-area-intro-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
}

/* 都道府県ページの事務所画像センタリング */
.area-page-header .company-image,
.single-area .company-image {
    display: block;
    margin: 0 auto;
}

/* サブエリアページの事務所画像サイズ修正 */
.office-card__logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* サブエリアのCTA画像センタリング */
.office-card__cta-image {
    text-align: center;
    margin: 20px 0;
}

.office-card__cta-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* サブエリアのCTAボタンをオレンジ色に */
.office-card__cta-button .btn-official {
    background-color: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 16px;
    border: none;
    max-width: 400px;
    margin: 0 auto;
}

.office-card__cta-button .btn-official:hover {
    background-color: #e55a2b;
    color: #fff;
}

/* 事務所ページのレイアウトを縦表示に変更 */
@media (min-width: 768px) {
    .office-header__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .office-header__left {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .office-header__type {
        margin-bottom: 15px;
    }
    
    .office-header__logo {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .office-header__info {
        text-align: left;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* ランキング数字の位置を上に調整 */
.office-ranking-item::before {
    top: 5px;
}

.office-ranking-item .law-office-card {
    padding-top: 40px;
}

/* おすすめ事務所の調整 */
.office-ranking-item.office-recommended .law-office-card {
    padding-top: 50px;
}

.law-office-card--recommended .office-type-badge {
    position: relative;
    top: 15px;
}

/* モバイル表示での調整 */
@media (max-width: 768px) {
    .recommended-label {
        font-size: 12px;
        padding: 4px 12px;
        top: -12px;
        left: 15px;
    }
    
    .law-office-card--recommended {
        border-width: 2px;
    }
}

/* 口コミ投稿フォームの装飾 */
.review-form-container {
    background-color: #f8f9fa;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.review-form-container h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.review-form .required {
    color: #e74c3c;
    font-weight: bold;
}

.review-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.review-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.review-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.review-form .description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.review-form .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
}

.review-form .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.review-form .form-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* 口コミ収集元別の色分け */
.review-item--internet_research {
    border-left: 5px solid #3B82F6;
    background-color: #EFF6FF;
}

.review-item--photo_verified {
    border-left: 5px solid #10B981;
    background-color: #F0FDF4;
}

.review-item--office_provided {
    border-left: 5px solid #F97316;
    background-color: #FFF7ED;
}

.review-item--direct_post {
    border-left: 5px solid #FCD34D;
    background-color: #FEFCE8;
}

/* 運営企業紹介のSP対応 */
@media (max-width: 767px) {
    .trust-cta-split {
        flex-direction: column;
    }
    
    .trust-cta-left {
        margin-bottom: 30px;
        order: 1;
    }
    
    .trust-cta-right {
        order: 2;
    }
}

/* 口コミ収集元説明セクション */
.review-source-explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.review-source-explanation p {
    font-weight: 700;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 18px;
    text-align: center;
}

.review-source-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.review-source-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-source-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: currentColor;
}

.review-source-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.review-source-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: white;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.review-source-item--internet {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.review-source-item--internet::before {
    background-color: #3B82F6;
}

.review-source-item--internet .review-source-badge {
    background-color: #3B82F6;
}

.review-source-item--internet .review-source-badge::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.review-source-item--photo {
    background-color: #F0FDF4;
    color: #10B981;
}

.review-source-item--photo::before {
    background-color: #10B981;
}

.review-source-item--photo .review-source-badge {
    background-color: #10B981;
}

.review-source-item--photo .review-source-badge::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
}

.review-source-item--office {
    background-color: #FFF7ED;
    color: #F97316;
}

.review-source-item--office::before {
    background-color: #F97316;
}

.review-source-item--office .review-source-badge {
    background-color: #F97316;
}

.review-source-item--office .review-source-badge::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
}

.review-source-item--direct {
    background-color: #FEFCE8;
    color: #FCD34D;
}

.review-source-item--direct::before {
    background-color: #FCD34D;
}

.review-source-item--direct .review-source-badge {
    background-color: #FCD34D;
}

.review-source-item--direct .review-source-badge::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z'/%3E%3C/svg%3E");
}

.review-source-item strong {
    font-size: 14px;
}

@media (max-width: 768px) {
    .review-source-explanation {
        padding: 25px 20px;
    }
    
    .review-source-list {
        grid-template-columns: 1fr;
    }
    
    .review-source-item {
        font-size: 14px;
    }
}

/* サブエリアのバッジ重なり修正 */
@media (max-width: 768px) {
    .office-card__consultation-badge,
    .office-card__office-badge {
        position: static;
        margin-bottom: 15px;
    }
    
    .office-consultation-badge-area,
    .office-office-badge-area {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* 口コミソースラベルの修正 */
.review-source-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.review-source-label--internet_research {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.review-source-label--photo_verified {
    background-color: #F0FDF4;
    color: #10B981;
}

.review-source-label--office_provided {
    background-color: #FFF7ED;
    color: #F97316;
}

.review-source-label--direct_post {
    background-color: #FEFCE8;
    color: #FACC15;
}

/* 全ページCTAスタイル統一 */
.btn-official,
.btn-official-debt,
.office-card__cta-button .btn-official,
.law-office-actions .btn-official-debt {
    background-color: #ff6b35 !important;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    margin: 0 auto;
}

.btn-official:hover,
.btn-official-debt:hover,
.office-card__cta-button .btn-official:hover,
.law-office-actions .btn-official-debt:hover {
    background-color: #e55a2b !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* CTA画像必須表示 */
.cta-image-wrapper,
.office-card__cta-image {
    display: block !important;
    text-align: center;
    margin: 20px 0;
}

.cta-image,
.office-card__cta-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 事務所ページ完全縦表示 */
.office-header__content {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
}

.office-header__left {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.office-header__type {
    margin-bottom: 15px;
    display: block;
}

.office-header__logo {
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.office-header__info {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* 都道府県ページの縦表示とセンタリング */
.law-office-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.law-office-header {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    width: 100%;
}

.law-office-logo {
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
}

.law-office-info {
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.law-office-card .company-image {
    display: block;
    margin: 0 auto;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .office-header__logo,
    .law-office-logo {
        max-width: 150px;
    }
}

/* ショートコード用スタイル */
.shortcode-law-office-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shortcode-office-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.shortcode-office-logo {
    max-width: 120px;
    height: auto;
}

.shortcode-office-info {
    flex: 1;
}

.shortcode-office-name {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.shortcode-office-name a {
    color: #1e40af;
    text-decoration: none;
}

.shortcode-office-name a:hover {
    text-decoration: underline;
}

.shortcode-office-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.shortcode-office-type-badge--lawyer {
    background-color: #e8f4f8;
    color: #0066cc;
}

.shortcode-office-type-badge--shiho {
    background-color: #fff3e6;
    color: #ff6b35;
}

.shortcode-office-ratings {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.shortcode-rating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shortcode-rating-item:last-child {
    margin-bottom: 0;
}

.shortcode-rating-label {
    font-weight: 600;
    font-size: 14px;
    min-width: 140px;
}

.shortcode-rating-count {
    font-size: 12px;
    color: #6b7280;
    margin-left: 5px;
}

.shortcode-office-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.shortcode-detail-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9fafb;
    border-radius: 6px;
}

.shortcode-detail-label {
    font-weight: 600;
    font-size: 14px;
    min-width: 100px;
    color: #4b5563;
}

.shortcode-detail-value {
    font-size: 14px;
    color: #1f2937;
}

.shortcode-office-cta {
    text-align: center;
    margin-top: 20px;
}

/* ショートコード口コミスタイル */
.shortcode-reviews-list {
    margin: 20px 0;
}

.shortcode-review-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.shortcode-review-header {
    margin-bottom: 15px;
}

.shortcode-review-office {
    font-weight: 600;
    margin-bottom: 8px;
}

.shortcode-review-office a {
    color: #1e40af;
    text-decoration: none;
}

.shortcode-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
}

.shortcode-review-author {
    font-weight: 600;
    color: #1f2937;
}

.shortcode-review-rating {
    margin-bottom: 12px;
}

.shortcode-review-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 12px;
}

.shortcode-review-date {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
}

/* 編集部評価スライド表 */
.editor-ratings-table {
    overflow-x: auto;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.editor-ratings-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.editor-ratings-table th,
.editor-ratings-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.editor-ratings-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #1f2937;
    position: sticky;
    left: 0;
    z-index: 1;
}

.editor-ratings-table th:first-child {
    background-color: #f8f9fa;
    min-width: 200px;
}

.editor-ratings-table .rating-cell {
    text-align: center;
    min-width: 120px;
}

.editor-ratings-table .office-name {
    font-weight: 600;
    color: #1e40af;
}

.editor-ratings-table .office-name a {
    text-decoration: none;
    color: inherit;
}

.editor-ratings-table .office-name a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .shortcode-office-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shortcode-office-details {
        grid-template-columns: 1fr;
    }
    
    .editor-ratings-table {
        font-size: 14px;
    }
    
    .editor-ratings-table th,
    .editor-ratings-table td {
        padding: 10px;
    }
}

/* 債務整理検索フォーム */
.debt-search-container {
    margin: 30px 0;
}

.debt-search-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.search-form-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #1e40af;
}

.search-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.search-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
}

.sort-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #1e40af;
    background-color: #eff6ff;
}

.radio-option input,
.checkbox-option input {
    margin-right: 10px;
    cursor: pointer;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

/* Select2カスタムスタイル */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 45px;
    padding: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #1e40af;
    border: none;
    color: white;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}

.search-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-reset {
    background-color: #6b7280;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background-color: #4b5563;
}

/* 検索結果 */
.debt-search-results {
    min-height: 200px;
}

.results-loading {
    text-align: center;
    padding: 50px;
    color: #6b7280;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e40af;
}

.no-results {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: #6b7280;
}

/* 都道府県対応数バッジ */
.prefecture-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #059669;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.search-result-card {
    position: relative;
    margin-bottom: 20px;
}

.consultation-count {
    margin-top: 5px;
    font-size: 14px;
    color: #6b7280;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    background-color: #1e40af;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .debt-search-form {
        padding: 20px;
    }
    
    .sort-options,
    .filter-group {
        grid-template-columns: 1fr;
    }
}