/**
 * 事務所拠点表示用スタイル
 */

/* 拠点がある事務所セクション */
.offices-with-locations-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

/* 装飾付き見出し（サブエリア用） */
.section-title-decorated {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem 0;
}

.section-title-decorated .title-main {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-title-decorated .title-sub {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding: 0 2rem;
}

.section-title-decorated .title-sub::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, #1976d2 50%, #4caf50 50%);
    border-radius: 4px;
}

.section-title-decorated .title-sub::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, #1976d2 50%, #4caf50 50%);
    border-radius: 4px;
}

/* 枠線付き見出し（サブエリア用） */
.section-title-with-border {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.section-title-with-border .accent-text {
    color: #1976d2;
    font-weight: 600;
}

.section-title-with-border .main-text {
    font-size: 1.2rem;
    font-weight: 700;
}

/* 拠点目次ボックス */
.location-index-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.location-index-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.location-index-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.location-index-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.location-index-list li:last-child {
    border-bottom: none;
}

.location-index-list a {
    color: #1976d2;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-index-list a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* 拠点一覧表示 */
.office-locations-list {
    background-color: #f9f9f9;
    border-top: 2px solid #1976d2;
    padding: 1rem;
    margin: 1rem 0;
}

/* カード全体の改善 */
.law-office-card-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.law-office-card-vertical .law-office-header {
    flex-shrink: 0;
}

.law-office-card-vertical .office-locations-list {
    flex-grow: 1;
    margin-bottom: 0;
}

.law-office-card-vertical .law-office-actions-improved {
    margin-top: auto;
}

.office-locations-list h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #1976d2;
    font-weight: 600;
}

.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.locations-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ddd;
    font-size: 0.875rem;
}

.locations-list li:last-child {
    border-bottom: none;
}

.locations-list strong {
    color: #333;
    font-weight: 600;
}

.location-address {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* カード内での調整 */
.law-office-card-vertical .office-locations-list {
    margin-top: auto;
}

/* 改善されたアクションボタンレイアウト */
.law-office-actions-improved {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.law-office-actions-improved .btn-primary,
.law-office-actions-improved .btn-official {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #ff6b00;
    border-color: #ff6b00;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.law-office-actions-improved .btn-primary:hover,
.law-office-actions-improved .btn-official:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

.law-office-actions-improved .detail-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.law-office-actions-improved .detail-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* サブエリアページ用スタイル */
.sub-area-locations-inline {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.sub-area-locations-inline h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.sub-area-locations-inline .locations-list {
    font-size: 0.8rem;
}

.sub-area-locations-inline .locations-list li {
    padding: 0.25rem 0;
}

/* コンパクトな拠点表示 */
.sub-area-locations-compact {
    background-color: #f0f7ff;
    border-left: 3px solid #1976d2;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

.sub-area-locations-compact .locations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 0.25rem;
}

.sub-area-locations-compact .locations-header i {
    font-size: 0.875rem;
}

.sub-area-locations-compact .locations-content {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

/* 都道府県ページ用コンパクト表示 */
.office-locations-compact-prefecture {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.office-locations-compact-prefecture .locations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
    font-weight: 600;
    white-space: nowrap;
}

.office-locations-compact-prefecture .locations-header i {
    font-size: 1rem;
}

.office-locations-compact-prefecture .locations-content {
    color: #555;
    line-height: 1.4;
}

/* メインセクション見出し */
.section-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1976d2;
    position: relative;
}

.section-title-main::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #4caf50;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .location-index-list {
        grid-template-columns: 1fr;
    }
    
    .office-locations-list {
        padding: 0.75rem;
    }
    
    .locations-list {
        font-size: 0.8rem;
    }
}