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

main.company_main {
    width: 100vw;
    margin-top: 0;
    padding-bottom: 6vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ヒーロー画像（共通スタイルは common.css） */
.hero-page__illust {
    background-image: url(../image/company/company.webp);
    }

/* スクロールエフェクト（keyframes は common.css） */
.scroll_anime {
    animation: fx-bounce-up linear;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
    }

.service_cards .service_card:nth-of-type(odd).scroll_anime {
    animation-name: fx-slide-left;
    animation-range: entry 0% entry 60%;
    }

.service_cards .service_card:nth-of-type(even).scroll_anime {
    animation-name: fx-slide-right;
    animation-range: entry 0% entry 60%;
    }

.pillars .pillar:nth-of-type(odd).scroll_anime {
    animation-name: fx-slide-left;
    animation-range: entry 0% entry 60%;
    }

.pillars .pillar:nth-of-type(even).scroll_anime {
    animation-name: fx-slide-right;
    animation-range: entry 0% entry 60%;
    }

.philosophy.scroll_anime {
    animation-name: fx-zoom-rotate;
    animation-range: entry 0% entry 60%;
    transform-origin: center;
    }

@media (prefers-reduced-motion: reduce) {
    .scroll_anime {
        animation: none !important;
        opacity: 1;
        transform: none;
        }
    }

.company_inner {
    width: 80%;
    max-width: 1280px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.5vw;
    padding: 5vw 6vw 6vw;
    box-shadow: 0 0.5vw 2.5vw rgba(0, 160, 233, 0.10);
}

/* --- セクション見出し --- */
.sec {
    margin-bottom: 5vw;
}

.sec:last-child {
    margin-bottom: 0;
}

.sec_heading {
    font-size: 1.6vw;
    letter-spacing: 0.3vw;
    border-left: 0.4vw solid #00a0e9;
    padding-left: 1.2vw;
    margin: 0 0 2.2vw;
    line-height: 1.4;
}

.sec_heading span {
    display: block;
    font-size: 0.8vw;
    color: #00a0e9;
    letter-spacing: 0.3vw;
    font-weight: normal;
    margin-top: 0.4vw;
}

/* --- 法人理念 --- */
.philosophy {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf2 100%);
    border-radius: 2vw;
    padding: 6vw 5vw;
    text-align: center;
    box-shadow: 0 0.6vw 2.5vw rgba(0, 160, 233, 0.07);
    overflow: hidden;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8vw;
    height: 8vw;
    background: radial-gradient(circle at top left, #ffe100 0%, transparent 65%);
    opacity: 0.55;
    pointer-events: none;
}

.philosophy::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8vw;
    height: 8vw;
    background: radial-gradient(circle at bottom right, #ffe100 0%, transparent 65%);
    opacity: 0.55;
    pointer-events: none;
}

.philosophy p {
    font-size: 1.4vw;
    line-height: 2.6vw;
    letter-spacing: 0.3vw;
    margin: 0;
    position: relative;
    z-index: 1;
}

.philosophy p + p {
    margin-top: 2.5vw;
    padding-top: 2.5vw;
    position: relative;
}

.philosophy p + p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5vw;
    height: 0.18vw;
    background: #ffe100;
    border-radius: 1vw;
}

/* --- 事業の目的 --- */
.purpose {
    background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
    border-left: 0.4vw solid #ffe100;
    border-radius: 2vw;
    padding: 3.5vw 4vw;
    box-shadow: 0 0.6vw 2.5vw rgba(0, 160, 233, 0.07);
}

.purpose p {
    margin: 0;
    font-size: 1.15vw;
    line-height: 2.4vw;
    letter-spacing: 0.15vw;
    text-align: justify;
    color: #333;
}

/* --- 企業情報テーブル --- */
.info_table dl {
    display: flex;
    align-items: stretch;
    border-bottom: 1px dashed #cfe6f6;
    padding: 1.5vw 0.5vw;
    margin: 0;
}

.info_table dl:first-child {
    border-top: 1px dashed #cfe6f6;
}

.info_table dt {
    width: 25%;
    font-size: 1.1vw;
    color: #00a0e9;
    font-weight: bold;
    letter-spacing: 0.2vw;
}

.info_table dd {
    width: 75%;
    font-size: 1.1vw;
    line-height: 1.9vw;
    margin: 0;
    letter-spacing: 0.1vw;
}

/* --- 事業内容カード --- */
.service_cards {
    display: flex;
    gap: 2vw;
}

.service_card {
    flex: 1;
    background: #fff;
    padding: 3.5vw 2.8vw;
    border-radius: 1.5vw;
    position: relative;
    box-shadow: 0 0.5vw 2vw rgba(0, 160, 233, 0.08);
    overflow: hidden;
}

.service_card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5vw;
    height: 5vw;
    background: radial-gradient(circle at top right, #ffe100 0%, transparent 65%);
    opacity: 0.5;
    pointer-events: none;
}

.service_card .badge {
    display: inline-block;
    font-size: 0.78vw;
    letter-spacing: 0.4vw;
    color: #00a0e9;
    background: #fffbe0;
    padding: 0.5vw 1.2vw;
    border-radius: 2vw;
    margin-bottom: 1.4vw;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.service_card h4 {
    font-size: 1.5vw;
    letter-spacing: 0.2vw;
    margin: 0 0 1.4vw;
    padding-bottom: 1vw;
    position: relative;
    display: inline-block;
}

.service_card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5vw;
    height: 0.2vw;
    background: #ffe100;
    border-radius: 1vw;
}

.service_card p {
    font-size: 1vw;
    line-height: 1.9vw;
    margin: 0;
    letter-spacing: 0.1vw;
}

/* --- 支援方針 4本柱 --- */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
}

.pillar {
    position: relative;
    background: #fff;
    padding: 3.5vw 1.8vw 2.5vw;
    border-radius: 1.5vw;
    text-align: center;
    box-shadow: 0 0.4vw 1.8vw rgba(0, 160, 233, 0.07);
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 0.3vw;
    background: #ffe100;
    border-radius: 0 0 1vw 1vw;
}

.pillar_num {
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #00a0e9;
    font-size: 2vw;
    font-weight: bold;
    letter-spacing: 0.1vw;
    line-height: 1;
    margin: 0 auto 1.4vw;
    padding-bottom: 0.6vw;
    border-bottom: 0.18vw solid #ffe100;
    width: fit-content;
}

.pillar h5 {
    font-size: 1.2vw;
    letter-spacing: 0.2vw;
    margin: 0 0 0.8vw;
}

.pillar p {
    font-size: 0.9vw;
    line-height: 1.6vw;
    margin: 0;
    letter-spacing: 0.1vw;
}

/* --- 沿革タイムライン --- */
.timeline {
    position: relative;
    padding-left: 4vw;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.1vw;
    top: 0.4vw;
    bottom: 0.4vw;
    width: 0.15vw;
    background: #cfe6f6;
}

.timeline_item {
    position: relative;
    padding-bottom: 2.5vw;
}

.timeline_item:last-child {
    padding-bottom: 0;
}

.timeline_item::before {
    content: '';
    position: absolute;
    left: -3.4vw;
    top: 0.6vw;
    width: 1.2vw;
    height: 1.2vw;
    border-radius: 50%;
    background: #ffe100;
    box-sizing: border-box;
}

.timeline_item .year {
    font-size: 1.15vw;
    color: #00a0e9;
    font-weight: bold;
    letter-spacing: 0.2vw;
    margin: 0;
}

.timeline_item .desc {
    font-size: 1.05vw;
    line-height: 1.8vw;
    margin: 0.5vw 0 0;
    letter-spacing: 0.1vw;
}

/* --- 仮データ表記 --- */
.placeholder {
    color: #98b6c9;
    font-size: 0.9em;
    margin-left: 0.5vw;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {

    main.company_main {
        margin-top: 0;
        padding-bottom: 8vw;
    }

    .company_inner {
        width: 92%;
        border-radius: 3vw;
        padding: 8vw 5vw 9vw;
    }

    .sec {
        margin-bottom: 10vw;
    }

    .sec_heading {
        font-size: 4.8vw;
        letter-spacing: 0.5vw;
        border-left-width: 1.2vw;
        padding-left: 3vw;
        margin-bottom: 5vw;
    }

    .sec_heading span {
        font-size: 2.4vw;
        letter-spacing: 0.6vw;
        margin-top: 1vw;
    }

    /* 理念 */
    .philosophy {
        padding: 10vw 5vw;
        border-radius: 4vw;
        box-shadow: 0 0.8vw 3vw rgba(0, 160, 233, 0.08);
    }

    .philosophy::before,
    .philosophy::after {
        width: 20vw;
        height: 20vw;
    }

    .philosophy p {
        font-size: 3.7vw;
        line-height: 7vw;
        letter-spacing: 0.4vw;
    }

    .philosophy p + p {
        margin-top: 5vw;
        padding-top: 5vw;
    }

    .philosophy p + p::before {
        width: 7vw;
        height: 0.5vw;
    }

    /* 事業の目的 */
    .purpose {
        padding: 8vw 6vw;
        border-radius: 4vw;
        border-left-width: 1vw;
    }

    .purpose p {
        font-size: 3.4vw;
        line-height: 6.4vw;
        letter-spacing: 0.2vw;
    }

    /* 企業情報 */
    .info_table dl {
        flex-direction: column;
        padding: 3.5vw 2vw;
    }

    .info_table dt {
        width: 100%;
        font-size: 3vw;
        margin-bottom: 1.5vw;
    }

    .info_table dd {
        width: 100%;
        font-size: 3.6vw;
        line-height: 6vw;
    }

    /* 事業内容 */
    .service_cards {
        flex-direction: column;
        gap: 4vw;
    }

    .service_card {
        padding: 7vw 5vw;
        border-radius: 3vw;
        box-shadow: 0 0.8vw 2.5vw rgba(0, 160, 233, 0.08);
    }

    .service_card::before {
        width: 14vw;
        height: 14vw;
    }

    .service_card .badge {
        font-size: 2.4vw;
        letter-spacing: 0.7vw;
        margin-bottom: 3vw;
        padding: 1.2vw 3vw;
        border-radius: 5vw;
    }

    .service_card h4 {
        font-size: 4.5vw;
        margin-bottom: 3vw;
        letter-spacing: 0.4vw;
        padding-bottom: 2.5vw;
    }

    .service_card h4::after {
        width: 7vw;
        height: 0.5vw;
    }

    .service_card p {
        font-size: 3.2vw;
        line-height: 5.8vw;
    }

    /* 支援方針 */
    .pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }

    .pillar {
        padding: 7vw 2.5vw 5vw;
        border-radius: 3vw;
        box-shadow: 0 0.6vw 2vw rgba(0, 160, 233, 0.08);
    }

    .pillar::before {
        height: 0.7vw;
        border-radius: 0 0 2vw 2vw;
    }

    .pillar_num {
        width: auto;
        height: auto;
        font-size: 6vw;
        margin: 0 auto 3vw;
        padding-bottom: 1.2vw;
        border-bottom-width: 0.5vw;
        box-shadow: none;
    }

    .pillar h5 {
        font-size: 3.6vw;
        letter-spacing: 0.4vw;
        margin-bottom: 1.5vw;
    }

    .pillar p {
        font-size: 2.8vw;
        line-height: 4.6vw;
    }

    /* 沿革 */
    .timeline {
        padding-left: 9vw;
    }

    .timeline::before {
        left: 2.5vw;
        width: 0.4vw;
    }

    .timeline_item {
        padding-bottom: 6vw;
    }

    .timeline_item::before {
        left: -7.6vw;
        top: 1.2vw;
        width: 3vw;
        height: 3vw;
    }

    .timeline_item .year {
        font-size: 3.5vw;
        letter-spacing: 0.4vw;
    }

    .timeline_item .desc {
        font-size: 3.2vw;
        line-height: 5.5vw;
        margin-top: 1.5vw;
    }
}
