﻿
/* ごあいさつ */
.greeting-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    background-image: url('../images/g2.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    padding: 40px 0;
}

.greeting-body {
    flex: 1;
    max-width: 600px;
    text-align: left;
    background: none;
    padding: 0;
}

    .greeting-body h3 {
        font-size: 22px;
        margin-top: 0;
        margin-bottom: 25px;
        color: var(--primary-color);
    }

    .greeting-body p {
        line-height: 1.8;
        margin-bottom: 25px;
    }

.signature {
    text-align: right;
    font-weight: normal;
    font-size: 22px;
    padding-right: 20px;
    font-family: "HG正楷書体-PRO", "HG正楷書体PRO", 'Noto Serif JP', serif;
}

.greeting-image {
    width: 35%;
    min-width: 280px;
    position: relative;
    z-index: 1;
}


/*  会社情報 */
.profile-table {
    width: 100%;
    border-collapse: collapse;
}

    .profile-table th,
    .profile-table td {
        padding: 20px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .profile-table th {
        width: 25%;
        background-color: var(--bg-light);
        font-weight: bold;
    }

/*  会社沿革 */
.timeline {
    position: relative;
    padding-left: 30px;
    
    gap: 40px;
    width: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 5px;
        width: 2px;
        background-color: var(--border-color);
    }

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -29px;
        top: 6px;
        width: 12px;
        height: 12px;
        background-color: var(--primary-color);
        border-radius: 50%;
    }

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
}

/* 基本理念 */
.philosophy-lead {
    margin-bottom: 30px;
}

.philosophy-pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pdf-card-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 5px solid #eb5757;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .pdf-card-link:hover {
        background-color: #ffffff;
        border-color: #eb5757;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.pdf-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.pdf-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pdf-card-num {
    font-size: 12px;
    color: #888888;
    font-weight: bold;
}

.pdf-card-title {
    font-size: 16px;
    font-weight: bold;
}



/* 営業所案内 */
.office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.office-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.office-address {
    font-size: 14px;
    margin-bottom: 15px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    border: 1px solid var(--border-color);
}

    .map-wrapper iframe {
        display: block;
    }

/* /////////////////////////////////////////////////////////////////
    レスポンシブ
   ///////////////////////////////////////////////////////////////// */
@media (max-width: 768px) {
    .page-header {
        height: 180px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .greeting-container {
        background-position: center bottom;
        background-size: contain;
    }

    .greeting-body {
        max-width: 100%;
        width: 100%;
        padding: 30px 25px;
    }

    .signature {
        padding-right: 0;
        font-size: 18px;
    }


    .greeting-image {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .timeline {
        background-position: center bottom;
        background-size: contain;
    }

    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-table th {
        background-color: transparent;
        padding-bottom: 5px;
        color: var(--primary-color);
        border-bottom: none;
    }

    .profile-table td {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    .office-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .philosophy-pdf-grid {
        grid-template-columns: 1fr;
    }

    .pdf-card-link {
        padding: 15px;
    }

    .pdf-card-title {
        font-size: 14px;
    }
}
