/* ================================================================
   会社案内ページ専用スタイル (company.css)
   読み込み条件: is_page('company') || is_page_template('page-company.php')
   クラスプレフィックス: co-
   共通コンポーネント: pg-fv / pg-breadcrumb / pg-cta / pg-sp-bar / pg-faq / pg-table
================================================================ */

/* グローバルSP固定バーを非表示 */
body.company-page #sp-bar {
    display: none;
}

/* SP固定バー スライドアニメーション */
body.company-page .pg-sp-bar {
    transition: transform 0.35s ease;
}

/* ================================================================
   外枠ラッパー
================================================================ */
.co-wrap {
    overflow-x: hidden;
}

/* フェードイン（main.js の .visible クラスを使用） */
.co-wrap .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.co-wrap .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   紅葉園について
================================================================ */
.co-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.co-about-visual {
    border-radius: 8px;
    overflow: hidden;
}

.co-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

.co-about-placeholder {
    aspect-ratio: 4/3;
    width: 100%;
    background: linear-gradient(135deg, #e8f0ea 0%, #c9dccb 50%, #a8c7aa 100%);
    border-radius: 8px;
}

.co-about-content .section-label {
    text-align: left;
}

.co-about-content .section-title {
    text-align: left;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    margin-bottom: 1.25rem;
}

.co-about-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1em;
    color: var(--text-mid);
}

.co-about-body p:last-child {
    margin-bottom: 0;
}

/* 強みカード */
.co-str-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.co-str-card {
    background: #fff;
    border: 1px solid rgba(45,106,53,0.12);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.co-str-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.co-str-icon {
    width: 64px;
    height: 64px;
    background: #EAF2E7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-mid);
    margin: 0 auto 0.75rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.co-str-card:hover .co-str-icon {
    background: #d4e9cf;
}

.co-str-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 0.75rem;
}

.co-str-text {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin: 0;
}

/* ================================================================
   事業内容
================================================================ */
.co-biz-lead {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-mid);
}

.co-biz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.co-biz-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.25rem 1.5rem;
    border: 1px solid rgba(45,106,53,0.1);
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.co-biz-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.co-biz-icon {
    width: 56px;
    height: 56px;
    background: #EAF2E7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-mid);
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.co-biz-card:hover .co-biz-icon {
    background: #d4e9cf;
}

.co-biz-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 0.6rem;
}

.co-biz-text {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin: 0;
}

.co-biz-cta {
    margin-top: 1rem;
}

/* ================================================================
   対応エリア
================================================================ */
.co-area-body {
    max-width: 720px;
    margin: 0 auto 1.75rem;
}

.co-area-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1em;
    text-align: center;
}

.co-area-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.co-area-tag {
    background: var(--green);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
}

.co-area-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

/* ================================================================
   会社概要
================================================================ */
.co-profile-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.co-profile-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

/* ================================================================
   アクセス
================================================================ */
.co-access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.co-access-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1em;
}

.co-access-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-top: 1rem;
}

.co-access-address-icon {
    font-size: 1.1rem;
}

.co-map-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: #f0f4f1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-map-wrap iframe {
    width: 100%;
    height: 340px;
    display: block;
    border: none;
}

.co-map-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    width: 100%;
}

/* ================================================================
   初めての方へ（ステップフロー）
================================================================ */
.co-first-body {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.co-first-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1em;
    text-align: center;
}

.co-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.25rem;
    position: relative;
}

.co-step {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.25rem 1.5rem;
    border: 1px solid rgba(45,106,53,0.1);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.co-step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.co-step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.co-step-num {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--green);
    background: rgba(45,106,53,0.08);
    padding: 2px 10px;
    border-radius: 100px;
}

.co-step-icon {
    width: 56px;
    height: 56px;
    background: #EAF2E7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-mid);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.co-step:hover .co-step-icon {
    background: #d4e9cf;
}

.co-step-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 0.6rem;
}

.co-step-text {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin: 0;
}

.co-step-arrow {
    display: none;
}

/* ================================================================
   ギャラリー
================================================================ */
.co-gallery-lead {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-mid);
}

.co-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.co-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f4f1;
}

.co-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.co-gallery-item:hover .co-gallery-img {
    transform: scale(1.05);
}

.co-gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0ea 0%, #c8daca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* ================================================================
   レスポンシブ：タブレット（960px 以下）
================================================================ */
@media (max-width: 960px) {
    .co-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .co-about-content .section-label,
    .co-about-content .section-title {
        text-align: center;
    }

    .co-str-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .co-biz-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .co-access-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .co-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .co-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================
   レスポンシブ：スマートフォン（720px 以下）
================================================================ */
@media (max-width: 720px) {
    .co-str-cards {
        grid-template-columns: 1fr;
    }

    .co-biz-grid {
        grid-template-columns: 1fr;
    }

    .co-steps {
        grid-template-columns: 1fr;
    }

    .co-step {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.25rem;
    }

    .co-step-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .co-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .co-access-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   ユーティリティ
================================================================ */
.text-center { text-align: center !important; }
