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

/* ヒーローセクション */
.company-hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 100px 5%;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.company-hero .hero-content {
    flex: 1;
    padding-right: 20px;
    z-index: 2;
}

.company-hero .hero-image {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.company-hero .hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.company-hero h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.company-hero h2 {
    font-size: 2rem;
    color: #0f4c81;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.company-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* 会社概要テーブル */
.company-info-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.company-table th, .company-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.company-table th {
    background-color: #0f4c81;
    color: white;
    font-weight: 500;
    width: 30%;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table tr:hover td {
    background-color: #f5f9ff;
}

/* 理念セクション */
.philosophy {
    background-color: #f9f9f9;
    padding: 80px 5%;
}

.philosophy-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.philosophy-text {
    flex: 1;
}

.philosophy-image {
    flex: 1;
    text-align: center;
}

.philosophy-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-text h3 {
    font-size: 1.8rem;
    color: #0f4c81;
    margin-bottom: 20px;
    font-weight: 500;
}

.philosophy-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* 資格セクション */
.qualifications {
    padding: 80px 5%;
    background-color: white;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.qualification-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.qualification-icon {
    font-size: 2.5rem;
    color: #0f4c81;
    margin-bottom: 20px;
}

.qualification-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.qualification-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.qualification-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.qualification-type {
    background-color: #0f4c81;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* サービス地域セクション */
.service-area {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.area-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.area-map {
    flex: 1;
    text-align: center;
}

.area-map img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.area-text {
    flex: 1;
}

.area-text h3 {
    font-size: 1.8rem;
    color: #0f4c81;
    margin-bottom: 20px;
    font-weight: 500;
}

.area-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.area-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
}

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

.area-list li i {
    color: #0f4c81;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* お問い合わせバナー */
.contact-banner {
    padding: 60px 5%;
    background-color: #0f4c81;
    text-align: center;
}

.contact-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-banner h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-banner .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-banner .primary-btn {
    background-color: white;
    color: #0f4c81;
}

.contact-banner .primary-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.float-in {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.parallax-image {
    transition: transform 0.5s ease;
}

.pop-in {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pop-in:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .company-hero {
        flex-direction: column;
        padding: 80px 5%;
    }

    .company-hero .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .philosophy-content,
    .area-content {
        flex-direction: column;
    }

    .philosophy-text,
    .area-text {
        order: 2;
    }

    .philosophy-image,
    .area-map {
        order: 1;
        margin-bottom: 30px;
    }

    .qualifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .company-hero h1 {
        font-size: 2.5rem;
    }

    .company-hero h2 {
        font-size: 1.6rem;
    }

    .company-table th,
    .company-table td {
        padding: 12px 15px;
    }

    .company-table th {
        width: 35%;
    }

    .qualification-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .company-hero h1 {
        font-size: 2rem;
    }

    .company-hero h2 {
        font-size: 1.4rem;
    }

    .company-hero p {
        font-size: 1rem;
    }

    .company-table {
        margin: 20px 0;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .company-table td {
        padding-top: 5px;
    }

    .qualifications-grid {
        grid-template-columns: 1fr;
    }
}