/**
 * 会社概要ページ専用スタイル
 */

/* ==========================================================================
   変数
   ========================================================================== */

:root {
    --company-primary: #003c71;
    --company-primary-dark: #002a52;
    --company-primary-light: #0056a3;
    --company-accent: #e63312;
    --company-text: #333333;
    --company-text-light: #666666;
    --company-bg: #f5f7fa;
    --company-white: #ffffff;
    --company-border: #e0e0e0;
}

/* ==========================================================================
   ページ共通
   ========================================================================== */

.company-page {
    background: var(--company-white);
    padding-top: 80px;
}

.company-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ページヘッダー
   ========================================================================== */

.company-page .page-header-section {
    background: linear-gradient(135deg, var(--company-primary) 0%, var(--company-primary-light) 100%);
    padding: 50px 0;
    color: var(--company-white);
}

/* パンくずリスト */
.company-page .breadcrumb {
    margin-bottom: 15px;
    border-top: none !important;
    border-bottom: none !important;
}

.company-page .breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.company-page .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-page .breadcrumb-item:not(:last-child)::after {
    content: '>';
    color: rgba(255, 255, 255, 0.6);
}

.company-page .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.company-page .breadcrumb-item a:hover {
    color: var(--company-white);
}

.company-page .breadcrumb-item.current span {
    color: var(--company-white);
    font-weight: 500;
}

/* ページタイトル */
.company-page .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--company-white);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   会社情報セクション
   ========================================================================== */

.company-info-section {
    padding: 80px 0;
    background: var(--company-white);
}

.company-info-table {
    max-width: 800px;
    margin: 0 auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--company-primary);
}

.info-table tr {
    border-bottom: 1px solid var(--company-border);
}

.info-table th,
.info-table td {
    padding: 25px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.8;
}

.info-table th {
    width: 200px;
    background: var(--company-bg);
    color: var(--company-text);
    font-weight: 600;
}

.info-table td {
    background: var(--company-white);
    color: var(--company-text);
}

/* ==========================================================================
   事業所セクション
   ========================================================================== */

.office-section {
    padding: 80px 0;
    background: var(--company-bg);
}

.office-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--company-text);
    margin: 0 0 40px;
    padding-left: 15px !important;
    position: relative;
}

.office-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--company-primary);
    border-radius: 3px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.office-card {
    background: var(--company-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 60, 113, 0.15);
}

.office-card.office-headquarters {
    border: 2px solid var(--company-primary);
}

.office-card.office-headquarters .office-label {
    background: var(--company-primary);
}

.office-label {
    padding: 15px 20px;
    background: #3d4654;
    color: var(--company-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.office-content {
    padding: 25px;
}

.office-address {
    margin-bottom: 20px;
}

.company-page .postal-code {
    display: block;
    font-size: 0.9rem;
    color: var(--company-text-light);
    margin-bottom: 5px;
}

.company-page .address-text {
    font-size: 1rem;
    color: var(--company-text);
    line-height: 1.8;
    margin: 0;
}

.office-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-page .contact-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    padding: 4px 10px;
    background: var(--company-bg);
    color: var(--company-text);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.company-page .contact-value {
    font-size: 1rem;
    color: var(--company-text);
    text-decoration: none;
}

.company-page a.contact-value {
    color: var(--company-primary);
    transition: all 0.3s ease;
}

.company-page a.contact-value:hover {
    color: var(--company-accent);
}

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

.company-cta-section {
    padding: 80px 0;
    background: var(--company-white);
}

.company-cta-section .cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--company-primary) 0%, var(--company-primary-light) 100%);
    border-radius: 12px;
    padding: 50px 60px;
    color: var(--company-white);
}

.company-cta-section .cta-content {
    flex: 1;
}

.company-cta-section .cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.company-cta-section .cta-text {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.8;
}

.company-cta-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--company-white);
    color: var(--company-primary);
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 40px;
}

.company-cta-section .cta-button:hover {
    background: var(--company-accent);
    color: var(--company-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.company-cta-section .cta-button svg {
    transition: all 0.3s ease;
}

.company-cta-section .cta-button:hover svg {
    transform: translateX(5px);
}

/* ==========================================================================
   ユーティリティ
   ========================================================================== */

.sp-only {
    display: none;
}

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

@media screen and (max-width: 900px) {
    .office-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .company-page {
        padding-top: 70px;
    }
    
    .company-page .page-header-section {
        padding: 40px 0;
    }
    
    .company-page .page-title {
        font-size: 1.6rem;
    }
    
    .company-info-section {
        padding: 50px 0;
    }
    
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }
    
    .info-table th {
        padding-bottom: 8px;
    }
    
    .info-table td {
        padding-top: 8px;
        padding-bottom: 25px;
    }
    
    .office-section {
        padding: 50px 0;
    }
    
    .office-content {
        padding: 20px;
    }
    
    .company-cta-section {
        padding: 50px 0;
    }
    
    .company-cta-section .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .company-cta-section .cta-title {
        font-size: 1.25rem;
    }
    
    .company-cta-section .cta-text {
        font-size: 0.95rem;
    }
    
    .company-cta-section .cta-button {
        margin-left: 0;
        margin-top: 25px;
    }
    
    .sp-only {
        display: inline;
    }
}

@media screen and (max-width: 480px) {
    .company-page .breadcrumb-list {
        font-size: 0.75rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 12px 15px;
    }
    
    .office-label {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .contact-item {
        flex-wrap: wrap;
        gap: 8px;
    }
}
