/*
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.1.3
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;
    }
}

/* ==========================================================================
   Sango Theme CSS Integration - 記事装飾スタイル
   SangoテーマのCSS from style-old.css and entry-option.css
   ========================================================================== */

/* ボックス装飾 - Box Decorations */
/* box6 - 点線ボーダー青背景 */
.l-main .box6,
.entry-content .box6,
.p-entry__body .box6 {
  margin: 2em 0;
  padding: 1.5em 1em;
  border: dashed 2px #6bb6ff;
  background: #edf6ff;
}

/* box28 - タイトル付きボックス（水色） */
.l-main .box28,
.entry-content .box28,
.p-entry__body .box28 {
  margin: 2em 0;
}

.l-main .box28 .box-title,
.entry-content .box28 .box-title,
.p-entry__body .box28 .box-title {
  display: inline-block;
  line-height: 1.5;
  padding: 5px 9px 3px;
  border-radius: 5px 5px 0 0;
  background: #62c1ce;
  color: #fff;
  font-size: 17px;
}

.l-main .box28 .box-content,
.entry-content .box28 .box-content,
.p-entry__body .box28 .box-content {
  padding: 1.3em 1em;
  border: solid 3px #62c1ce;
}

/* box30 - タイトル付きボックス（青背景） */
.l-main .box30,
.entry-content .box30,
.p-entry__body .box30 {
  margin: 2em 0;
  padding: 0 15px 10px;
  background: #edf6ff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.l-main .box30 .box-title,
.entry-content .box30 .box-title,
.p-entry__body .box30 .box-title {
  margin: 0 -15px 15px;
  padding: 8px 4px;
  background: #5fc2f5;
  color: #fff;
  font-size: 1.2em;
  text-align: center;
  line-height: 1.5;
}

.l-main .box30 .box-title:before,
.entry-content .box30 .box-title:before,
.p-entry__body .box30 .box-title:before {
  padding-right: 4px;
  /* デフォルト: Unicodeチェックマーク（フォールバック） */
  content: "✓";
  font-family: inherit;
  font-weight: bold;
}

/* Font Awesome読み込み時のみアイコンに切り替え */
.fa-loaded .l-main .box30 .box-title:before,
.fa-loaded .entry-content .box30 .box-title:before,
.fa-loaded .p-entry__body .box30 .box-title:before,
body[class*="fa-"] .l-main .box30 .box-title:before,
body[class*="fa-"] .entry-content .box30 .box-title:before,
body[class*="fa-"] .p-entry__body .box30 .box-title:before {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  content: "\f00c";
}

.l-main .box30 p,
.entry-content .box30 p,
.p-entry__body .box30 p {
  margin: 0 0 5px;
}

/* sng-box 共通スタイル */
.l-main .sng-box,
.entry-content .sng-box,
.p-entry__body .sng-box {
  margin: 2em 0;
}

.l-main .sng-box p,
.entry-content .sng-box p,
.p-entry__body .sng-box p {
  margin: 0;
  padding: 0;
}

.l-main .sng-box .say,
.entry-content .sng-box .say,
.p-entry__body .sng-box .say {
  margin-bottom: 0;
}

.l-main .sng-box .faceicon,
.entry-content .sng-box .faceicon,
.p-entry__body .sng-box .faceicon {
  padding-right: 20px;
}

/* SWELLのコンテンツコンテナに対応 */
.l-main .sng-box > *:first-child,
.entry-content .sng-box > *:first-child,
.p-entry__body .sng-box > *:first-child {
  margin-top: 0;
}

/* ボックス内の箇条書きの線を消す */
.l-main .sng-box ul,
.l-main .sng-box ol,
.entry-content .sng-box ul,
.entry-content .sng-box ol,
.p-entry__body .sng-box ul,
.p-entry__body .sng-box ol {
  margin: 5px 0;
  padding: 0 0 0 1.4em;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* ボタンスタイル - Button Styles */
/* SWELLのコンテナに対応 */
.l-main .btn,
.l-footer .btn,
.entry-content .btn,
.p-entry__body .btn {
  margin: 0.5em 0.5em 0.5em 0;
  text-decoration: none;
}

.l-main a.btn:hover,
.l-footer a.btn:hover,
.entry-content a.btn:hover,
.p-entry__body a.btn:hover {
  text-decoration: none;
}

.l-main .btn,
.l-main .btn-wrap a,
.entry-content .btn,
.entry-content .btn-wrap a,
.p-entry__body .btn,
.p-entry__body .btn-wrap a {
  border-radius: var(--wp--custom--rounded--small, 4px);
}

/* 両方のパターンに対応 */
.l-main .btn.normal,
.l-main .btn-normal,
.l-main .btn-normal a,
.entry-content .btn.normal,
.entry-content .btn-normal,
.entry-content .btn-normal a,
.p-entry__body .btn.normal,
.p-entry__body .btn-normal,
.p-entry__body .btn-normal a {
  font-size: 18px;
  line-height: 1.7;
  padding: 0.4em 1.3em;
  text-decoration: none;
  vertical-align: middle;
  transition: var(--wp--custom--transition--default, all 0.3s ease);
  border-radius: var(--wp--custom--rounded--medium, 6px);
  display: inline-block;
  font-weight: bold;
  color: #fff;
  background-color: #ff6b35;
}

.l-main .btn.normal:hover,
.l-main .btn-normal:hover,
.l-main .btn-normal a:hover,
.entry-content .btn.normal:hover,
.entry-content .btn-normal:hover,
.entry-content .btn-normal a:hover,
.p-entry__body .btn.normal:hover,
.p-entry__body .btn-normal:hover,
.p-entry__body .btn-normal a:hover {
  background-color: #b83f15;
}

/* キーボードナビゲーション対応 */
.l-main .btn.normal:focus-visible,
.l-main .btn-normal:focus-visible,
.l-main .btn-normal a:focus-visible,
.entry-content .btn.normal:focus-visible,
.entry-content .btn-normal:focus-visible,
.entry-content .btn-normal a:focus-visible,
.p-entry__body .btn.normal:focus-visible,
.p-entry__body .btn-normal:focus-visible,
.p-entry__body .btn-normal a:focus-visible {
  outline: 3px solid #d94d1a;
  outline-offset: 2px;
  background-color: #b83f15;
}

/* アウトラインボタン */
.l-main .btn-outline,
.entry-content .btn-outline,
.p-entry__body .btn-outline {
  background-color: transparent !important;
  /* WCAG AA準拠: より濃いオレンジ */
  color: #c44218 !important;
  border: 2px solid #c44218 !important;
  padding: 10px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: all 0.3s ease;
}

.l-main .btn-outline:hover,
.entry-content .btn-outline:hover,
.p-entry__body .btn-outline:hover {
  background-color: #c44218 !important;
  color: #fff !important;
}

.l-main .btn-outline:focus-visible,
.entry-content .btn-outline:focus-visible,
.p-entry__body .btn-outline:focus-visible {
  outline: 3px solid #c44218;
  outline-offset: 2px;
  background-color: #c44218 !important;
  color: #fff !important;
}

/* 色装飾 - Color Utilities */
/* コンテンツ内でのみ適用（衝突回避） */
/* WCAG AA準拠: 4.5:1以上のコントラスト比 */
.l-main .orange,
.entry-content .orange,
.p-entry__body .orange {
  color: #c7510d; /* 4.53:1 */
}

.l-main .green,
.entry-content .green,
.p-entry__body .green {
  color: #2d7a2d; /* 4.56:1 */
}

.l-main .blue,
.entry-content .blue,
.p-entry__body .blue {
  color: #0066b3; /* 4.51:1 */
}

.l-main .red,
.entry-content .red,
.p-entry__body .red {
  color: #c9302c; /* 4.52:1 */
}

.l-main .silver,
.entry-content .silver,
.p-entry__body .silver {
  color: #6c757d; /* 4.54:1 */
}

/* 蛍光マーカー - Highlight Markers (scoped versions moved to line ~3620) */

/* ラベルテキスト */
.l-main .labeltext,
.entry-content .labeltext,
.p-entry__body .labeltext {
  display: inline-block;
  margin-right: 5px;
  padding: 5px;
  color: #fff;
  font-size: 0.9em;
  font-weight: bold;
  line-height: 1;
}

/* 画像サイズ調整 */
.l-main img.img_so_small,
.entry-content img.img_so_small,
.p-entry__body img.img_so_small {
  max-width: 250px;
}

.l-main img.img_small,
.entry-content img.img_small,
.p-entry__body img.img_small {
  max-width: 100%;
  width: 350px;
}

.l-main img.img_border,
.entry-content img.img_border,
.p-entry__body img.img_border {
  border: solid 3px #eaedf2;
}

/* シャドウ効果 */
/* コンテンツ内でのみ適用（SWELLのimg.shadowとの衝突回避） */
.l-main .shadow,
.l-main .wp-block-sgb-btn .shadow,
.entry-content .shadow,
.entry-content .wp-block-sgb-btn .shadow,
.p-entry__body .shadow,
.p-entry__body .wp-block-sgb-btn .shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.l-main .bigshadow,
.l-main .wp-block-sgb-btn .bigshadow,
.entry-content .bigshadow,
.entry-content .wp-block-sgb-btn .bigshadow,
.p-entry__body .bigshadow,
.p-entry__body .wp-block-sgb-btn .bigshadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 3Dボタンエフェクト - cubic1 */
.l-main .cubic1,
.entry-content .cubic1,
.p-entry__body .cubic1 {
  display: inline-block;
  padding: 0.5em 1em;
  border-bottom: solid 4px rgba(0, 0, 0, 0.27);
  border-radius: 3px;
  color: #fff;
}

.l-main .cubic1:active,
.entry-content .cubic1:active,
.p-entry__body .cubic1:active {
  border-bottom: none;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  -webkit-transform: translateY(4px);
  -ms-transform: translateY(4px);
  transform: translateY(4px);
}

/* 背景色ユーティリティ - Background Color Utilities */
.l-main .blue-bc,
.entry-content .blue-bc,
.p-entry__body .blue-bc {
  background: #4f9df4;
}

.l-main .red-bc,
.entry-content .red-bc,
.p-entry__body .red-bc {
  background: #f88080;
}

.l-main .green-bc,
.entry-content .green-bc,
.p-entry__body .green-bc {
  background: #90d581;
}

/* スペース調整 */
/* コンテンツ内でのみ適用 */
.l-main .smallspace,
.entry-content .smallspace,
.p-entry__body .smallspace {
  margin: 1em 0 !important;
}

.l-main .nospace,
.entry-content .nospace,
.p-entry__body .nospace {
  margin: 0 !important;
}

/* フォントサイズ調整 */
/* コンテンツ内でのみ適用（意図しない要素への影響を回避） */
.l-main .small,
.entry-content .small,
.p-entry__body .small {
  font-size: 0.75em;
}

.l-main .big,
.entry-content .big,
.p-entry__body .big {
  font-size: 1.3em;
}

.l-main .sobig,
.entry-content .sobig,
.p-entry__body .sobig {
  font-size: 2.3em;
}

.l-main .noborder,
.entry-content .noborder,
.p-entry__body .noborder {
  border: none;
}

/* END Sango Theme CSS Integration */

/* ==========================================================================
   Universal Button Focus States - キーボードナビゲーション対応
   全てのボタンバリアントにfocus-visible適用
   ========================================================================== */

/* 既存ボタンバリアントへのfocus-visible追加 */
.btn-official:focus-visible,
.btn-official-debt:focus-visible,
.office-card__cta-button .btn-official:focus-visible,
.law-office-actions .btn-official-debt:focus-visible {
  outline: 3px solid #ff6b35;
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:focus-visible,
.review-form .btn-primary:focus-visible {
  outline: 3px solid var(--primary-color, #1e40af);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-reset:focus-visible {
  outline: 3px solid #6b7280;
  outline-offset: 2px;
  background-color: #4b5563;
}

.btn-load-more:focus-visible {
  outline: 3px solid #1e40af;
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* 汎用ボタンフォーカススタイル（未定義ボタン用） */
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a[class*="btn"]:focus-visible:not(.btn-normal):not(.btn-outline):not(.btn-official):not(.btn-official-debt):not(.btn-primary):not(.btn-reset):not(.btn-load-more) {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

/* END Universal Button Focus States */

/* ==========================================================================
   CTA Shortcode Styles - 法律事務所CTAボタンスタイル
   ========================================================================== */

.law-office-cta {
    background: #fff;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

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

.law-office-cta .cta-image-wrapper {
    margin-bottom: 20px;
}

.law-office-cta .cta-image {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.law-office-cta .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.law-office-cta .cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #1e40af);
    margin: 0;
    line-height: 1.4;
}

.law-office-cta .cta-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.law-office-cta .phone-icon {
    font-size: 1.4rem;
}

.law-office-cta .phone-number {
    color: var(--primary-color, #1e40af);
    text-decoration: none;
    transition: color 0.3s ease;
}

.law-office-cta .phone-number:hover {
    color: var(--primary-dark, #1e3a8a);
    text-decoration: underline;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
    .law-office-cta {
        padding: 20px;
    }

    .law-office-cta .cta-title {
        font-size: 1.3rem;
    }

    .law-office-cta .cta-phone {
        font-size: 1.1rem;
    }

    .law-office-cta .cta-image {
        max-width: 200px;
    }
}

/* END CTA Shortcode Styles */

/*================================================
  Sango Theme Additional CSS - Accordion, Colors, Lists
  ================================================*/

/*
 * Sango color variables are used with inline fallbacks below
 * to preserve WordPress Global Styles and user customizations
 */

/* ========================================
   Accordion Styles
   ======================================== */
.l-main .accordion,
.entry-content .accordion,
.p-entry__body .accordion {
    margin: 0.5em 0;
    font-size: 0.95em;
}

.l-main .accordion label,
.entry-content .accordion label,
.p-entry__body .accordion label {
    display: block;
    position: relative;
    padding: 13px 37px 13px 14px;
    font-weight: bold;
    border: solid 1px #c1c1c1;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px;
    color: #333;
}

.l-main .accordion label:after,
.entry-content .accordion label:after,
.p-entry__body .accordion label:after {
    content: "+";
    font-family: "Quicksand", sans-serif;
    position: absolute;
    right: 14px;
    top: 17px;
    top: calc(50% - 7.5px);
    line-height: 15px;
    font-size: 23px;
    font-weight: normal;
    color: #c1c1c1;
}

.l-main .accordion label:hover,
.entry-content .accordion label:hover,
.p-entry__body .accordion label:hover {
    background: #efefef;
}

.l-main .accordion_input,
.entry-content .accordion_input,
.p-entry__body .accordion_input {
    /* Visually hide but keep in accessibility tree for keyboard users */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.l-main .accordion_content,
.entry-content .accordion_content,
.p-entry__body .accordion_content {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.8s;
}

.l-main .accordion_input:checked ~ .accordion_content,
.entry-content .accordion_input:checked ~ .accordion_content,
.p-entry__body .accordion_input:checked ~ .accordion_content {
    height: auto;
    padding: 0.7em 0;
    opacity: 1;
    overflow: visible;
}

.l-main .accordion_input:checked + label,
.entry-content .accordion_input:checked + label,
.p-entry__body .accordion_input:checked + label {
    background: #efefef;
}

.l-main .accordion_input:checked + label:after,
.entry-content .accordion_input:checked + label:after,
.p-entry__body .accordion_input:checked + label:after {
    content: "-";
}

/* Accessibility: Focus states for accordion */
.l-main .accordion_input:focus-visible + label,
.entry-content .accordion_input:focus-visible + label,
.p-entry__body .accordion_input:focus-visible + label,
.l-main .accordion label:focus-visible,
.entry-content .accordion label:focus-visible,
.p-entry__body .accordion label:focus-visible {
    outline: 3px solid #62c1ce;
    outline-offset: 2px;
}

/* ========================================
   Color Utility Classes
   Support both hyphen and underscore variants for legacy content
   ======================================== */
.l-main .main-c,
.l-main .main_c,
.entry-content .main-c,
.entry-content .main_c,
.p-entry__body .main-c,
.p-entry__body .main_c {
    color: var(--wp--preset--color--sango-main, #62c1ce);
}

.l-main .main-bc,
.l-main .main_bc,
.entry-content .main-bc,
.entry-content .main_bc,
.p-entry__body .main-bc,
.p-entry__body .main_bc {
    background-color: var(--wp--preset--color--sango-main, #62c1ce);
    color: #252525; /* Ensure readable contrast on colored backgrounds */
}

.l-main .accent-c,
.l-main .accent_c,
.entry-content .accent-c,
.entry-content .accent_c,
.p-entry__body .accent-c,
.p-entry__body .accent_c {
    color: var(--wp--preset--color--sango-accent, #ffb03f);
}

.l-main .accent-bc,
.l-main .accent_bc,
.entry-content .accent-bc,
.entry-content .accent_bc,
.p-entry__body .accent-bc,
.p-entry__body .accent_bc {
    background-color: var(--wp--preset--color--sango-accent, #ffb03f);
    color: #252525; /* Ensure readable contrast on colored backgrounds */
}

.l-main .pastel-c,
.l-main .pastel_c,
.entry-content .pastel-c,
.entry-content .pastel_c,
.p-entry__body .pastel-c,
.p-entry__body .pastel_c {
    color: var(--wp--preset--color--sango-pastel, #ffe4e1);
}

.l-main .pastel-bc,
.l-main .pastel_bc,
.entry-content .pastel-bc,
.entry-content .pastel_bc,
.p-entry__body .pastel-bc,
.p-entry__body .pastel_bc {
    background-color: var(--wp--preset--color--sango-pastel, #ffe4e1);
    color: #252525; /* Ensure readable contrast on colored backgrounds */
}

/* ========================================
   List Styles - li-check
   ======================================== */
.l-main .li-check li,
.entry-content .li-check li,
.p-entry__body .li-check li {
    position: relative;
    list-style-type: none !important;
    padding: 0.5em 0 0.5em 2em;
    line-height: 1.5;
}

.l-main .li-check ul,
.entry-content .li-check ul,
.p-entry__body .li-check ul {
    position: relative;
    padding: 1em 0.5em 1em 2.5em;
    border: solid 2px #ffb03f;
}

.l-main .li-check li:before,
.entry-content .li-check li:before,
.p-entry__body .li-check li:before {
    position: absolute;
    left: 1em;
    color: #ffb03f;
    content: "✓";  /* Unicode fallback */
}

/* Font Awesome override when FA is loaded */
.fa-loaded .l-main .li-check li:before,
.fa-loaded .entry-content .li-check li:before,
.fa-loaded .p-entry__body .li-check li:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00c";
}

/* Nested list adjustments - チェックマーク位置調整 */
.l-main .sng-box .li-check li:before,
.entry-content .sng-box .li-check li:before,
.p-entry__body .sng-box .li-check li:before,
.l-main .box-content .li-check li:before,
.entry-content .box-content .li-check li:before,
.p-entry__body .box-content .li-check li:before,
.l-main .li-check li li:before,
.entry-content .li-check li li:before,
.p-entry__body .li-check li li:before {
    left: 0.3em;
}

/* ========================================
   Sango List Wrapper
   ======================================== */
.l-main .sango-list,
.entry-content .sango-list,
.p-entry__body .sango-list {
    /* Base styling for sango-list wrapper - typically used with li-check, li-chevron etc */
    margin: 1em 0;
}

/* ========================================
   Highlighter Marker Styles (keiko_*)
   ======================================== */
.l-main .keiko_blue,
.entry-content .keiko_blue,
.p-entry__body .keiko_blue {
    background: linear-gradient(transparent 50%, rgba(107, 182, 255, 0.24) 50%);
}

.l-main .keiko_yellow,
.entry-content .keiko_yellow,
.p-entry__body .keiko_yellow {
    background: linear-gradient(transparent 50%, rgba(255, 252, 107, 0.69) 50%);
}

.l-main .keiko_green,
.entry-content .keiko_green,
.p-entry__body .keiko_green {
    background: linear-gradient(transparent 50%, rgba(151, 232, 154, 0.69) 50%);
}

.l-main .keiko_red,
.entry-content .keiko_red,
.p-entry__body .keiko_red {
    background: linear-gradient(transparent 50%, rgba(255, 88, 88, 0.24) 50%);
}

/* ========================================
   Sango Table Styles
   ======================================== */

/* 全てのテーブルに基本スタイルを適用 */
.l-main table,
.entry-content table,
.p-entry__body table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

/* テーブルのキャプション */
.l-main table caption,
.entry-content table caption,
.p-entry__body table caption {
    padding: 0.5em;
    font-weight: bold;
    text-align: left;
    caption-side: top;
    color: #333;
}

/* テーブルヘッダー（th） */
.l-main table th,
.entry-content table th,
.p-entry__body table th {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    font-weight: bold;
    text-align: left;
    color: #333;
}

/* テーブルセル（td） */
.l-main table td,
.entry-content table td,
.p-entry__body table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    color: #555;
}

/* 偶数行の背景色 */
.l-main table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
.p-entry__body table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* ホバー効果 */
.l-main table tbody tr:hover,
.entry-content table tbody tr:hover,
.p-entry__body table tbody tr:hover {
    background-color: #f0f8ff;
}

/* モバイル対応: 横スクロール */
@media only screen and (max-width: 768px) {
    .l-main table,
    .entry-content table,
    .p-entry__body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 12px;
    }

    .l-main table th,
    .entry-content table th,
    .p-entry__body table th,
    .l-main table td,
    .entry-content table td,
    .p-entry__body table td {
        padding: 8px 10px;
    }
}

/* ========================================
   Responsive Table Styles (.tb-responsive専用)
   ======================================== */
/* モバイル: 横スクロール可能 */
.l-main table.tb-responsive,
.entry-content table.tb-responsive,
.p-entry__body table.tb-responsive {
    display: block;
    overflow-x: auto;
    width: 100%;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* タブレット以上: 通常のテーブル表示 */
@media only screen and (min-width: 769px) {
    .l-main table.tb-responsive,
    .entry-content table.tb-responsive,
    .p-entry__body table.tb-responsive {
        display: table;
        overflow-x: visible;
        width: auto;
        border: 2px solid #e0e0e0;
        white-space: normal;
    }
}

/* ========================================
   Paragraph Spacing Fix
   ======================================== */
/* ページ本文の段落間に適切な余白を追加 */
.l-main .page-description p,
.entry-content .page-description p,
.p-entry__body .page-description p,
.l-main p,
.entry-content p,
.p-entry__body p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

/* 最初の段落の上マージンを削除 */
.l-main .page-description p:first-child,
.entry-content .page-description p:first-child,
.p-entry__body .page-description p:first-child {
    margin-top: 0;
}

/* 最後の段落の下マージンを削除 */
.l-main .page-description p:last-child,
.entry-content .page-description p:last-child,
.p-entry__body .page-description p:last-child {
    margin-bottom: 0;
}

/* END Sango Additional CSS */