/*
 * company.css — /company/ 企業情報ページ専用スタイル (page-company.php)
 *
 * 共通: .jj-container / .jj-main / .jj-h2 / .jj-eyebrow / .jj-breadcrumb / .jj-btn(-primary)
 *       はテーマ共通 CSS (layout.css / components.css) を流用。
 * 本ファイルは company 固有 (.jj-co-*) のみを定義し、トークン (CSS 変数) は既存 tokens.css を参照。
 */

/* ---- section 共通余白 ---- */
.jj-co-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.jj-co-section-tinted {
    background: var(--jj-color-bg-tint, #f5f7fa);
}
.jj-co .jj-h2 {
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    text-align: center;
}

/* ---- 01 Hero ---- */
.jj-co-hero {
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(180deg, var(--jj-color-bg-tint, #eef2f7) 0%, #ffffff 100%);
}
.jj-co-hero .jj-eyebrow {
    letter-spacing: .12em;
}
.jj-co-hero-h1 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.25;
    margin: .35em 0 .4em;
}
.jj-co-hero-sub {
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    font-weight: 700;
    color: var(--jj-color-primary, #14305a);
    margin: 0 0 1rem;
}
.jj-co-hero-lede {
    max-width: 52rem;
    line-height: 1.9;
    margin: 0 0 1.75rem;
}

/* 実績バッジ */
.jj-co-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.6rem, 2vw, 1rem);
}
.jj-co-badge {
    background: #fff;
    border: 1px solid var(--jj-color-border, #d9e0ea);
    border-radius: 12px;
    padding: 1rem .75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20, 48, 90, .05);
}
.jj-co-badge-num {
    display: block;
    font-size: clamp(1.25rem, 3.2vw, 1.7rem);
    font-weight: 800;
    color: var(--jj-color-primary, #14305a);
    line-height: 1.2;
}
.jj-co-badge-label {
    display: block;
    font-size: .8rem;
    color: var(--jj-color-text-muted, #5a6678);
    margin-top: .35rem;
}

/* ---- カードグリッド (理念MV / 約束 / 拠点) ---- */
.jj-co-cards {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.jj-co-cards-3 { grid-template-columns: repeat(3, 1fr); }
.jj-co-cards-2 { grid-template-columns: repeat(2, 1fr); }
.jj-co-card {
    background: #fff;
    border: 1px solid var(--jj-color-border, #d9e0ea);
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 2px 10px rgba(20, 48, 90, .05);
}
.jj-co-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jj-color-primary, #14305a);
    margin: 0 0 .6rem;
}
.jj-co-card-body {
    line-height: 1.85;
    margin: 0;
}
.jj-co-mvv-note {
    max-width: 52rem;
    margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
    line-height: 1.9;
    color: var(--jj-color-text-muted, #5a6678);
}

/* 約束 番号バッジ */
.jj-co-promise {
    position: relative;
    padding-top: 2.6rem;
}
.jj-co-promise-num {
    position: absolute;
    top: 1rem;
    left: clamp(1.25rem, 3vw, 1.75rem);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--jj-color-primary, #14305a);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}

/* ---- 04 代表メッセージ (2カラム) ---- */
.jj-co-msg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.jj-co-msg {
    background: #fff;
    border: 1px solid var(--jj-color-border, #d9e0ea);
    border-radius: 14px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 2px 10px rgba(20, 48, 90, .05);
}
.jj-co-msg-head { margin-bottom: 1rem; }
.jj-co-msg-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--jj-color-primary, #14305a);
}
.jj-co-msg-kana { font-size: .9rem; font-weight: 600; color: var(--jj-color-text-muted, #5a6678); margin-left: .35em; }
.jj-co-msg-role { font-size: .85rem; color: var(--jj-color-text-muted, #5a6678); margin: .25rem 0 0; }
.jj-co-msg-lead {
    font-weight: 700;
    line-height: 1.8;
    border-left: 4px solid var(--jj-color-accent, #2f6fb0);
    padding-left: .9rem;
    margin: 0 0 1rem;
}
.jj-co-msg-body { line-height: 1.95; margin: 0 0 1rem; }
.jj-co-msg-body:last-child { margin-bottom: 0; }

/* ---- 05 会社概要テーブル ---- */
.jj-co-overview {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--jj-color-border, #d9e0ea);
    border-radius: 12px;
    overflow: hidden;
}
.jj-co-overview th,
.jj-co-overview td {
    text-align: left;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--jj-color-border, #e4e9f0);
    line-height: 1.7;
    vertical-align: top;
}
.jj-co-overview tr:last-child th,
.jj-co-overview tr:last-child td { border-bottom: 0; }
.jj-co-overview th {
    width: 12rem;
    background: var(--jj-color-bg-tint, #f5f7fa);
    font-weight: 700;
    color: var(--jj-color-primary, #14305a);
    white-space: nowrap;
}

/* ---- 06 ストーリー (縦タイムライン) ---- */
.jj-co-timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 50rem;
    position: relative;
}
.jj-co-timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: .4rem;
    bottom: .4rem;
    width: 2px;
    background: var(--jj-color-border, #d9e0ea);
}
.jj-co-timeline-item {
    position: relative;
    padding: 0 0 1.6rem 2.25rem;
}
.jj-co-timeline-item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .35rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--jj-color-primary, #14305a);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--jj-color-border, #d9e0ea);
}
.jj-co-timeline-item:last-child { padding-bottom: 0; }
.jj-co-timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: var(--jj-color-primary, #14305a);
}
.jj-co-timeline-body { line-height: 1.85; margin: 0; }

/* ---- 07 拠点 dl ---- */
.jj-co-loc-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: .5rem .9rem;
}
.jj-co-loc-dl dt {
    font-weight: 700;
    color: var(--jj-color-text-muted, #5a6678);
    font-size: .9rem;
}
.jj-co-loc-dl dd { margin: 0; line-height: 1.75; }

/* ---- 08 CTA ---- */
.jj-co-cta {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background: var(--jj-color-primary, #14305a);
    color: #fff;
    text-align: center;
}
.jj-co-cta-h { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 .75rem; color: #fff; }
.jj-co-cta-sub { max-width: 46rem; margin: 0 auto 1.5rem; line-height: 1.9; }
.jj-co-cta .jj-btn-primary { background: #fff; color: var(--jj-color-primary, #14305a); }

/* ---- responsive ---- */
@media (max-width: 768px) {
    .jj-co-badges { grid-template-columns: repeat(2, 1fr); }
    .jj-co-cards-3,
    .jj-co-cards-2,
    .jj-co-msg-grid { grid-template-columns: 1fr; }
    .jj-co-overview th { width: 8.5rem; }
}
