@charset "utf-8";

/* ==========================================================================
   company-detail.css (Non-Monotonous Modern Design - Refined)
   ========================================================================== */

:root {
    --primary-color: #0054a4;
    --primary-dark: #003d7a;
    --primary-light: #f0f5fc;
    --accent-bg: #f8fafc;
    --text-main: #2c3e50;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 0px;
    --radius-base: 0px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-detail {
    padding: 10px 0 120px;
    background: #ffffff;
    color: var(--text-main);
    font-feature-settings: "palt";
    line-height: 1.8;
}

.company-detail__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.company-detail__lead {
    font-size: 17px;
    color: #475569;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 32px;
    display: inline-block;
    width: 100%;
}

/* リード文のテキスト幅に合わせた青のアンダーライン */
.company-detail__lead p {
    display: inline-block;
    position: relative;
    padding-bottom: 32px;
    margin: 0 auto;
}

.company-detail__lead p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0px;
}

.company-detail__content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* 共通セクションヘッダー（英語のサブタイトル付き） */
.company-section__header {
    margin-bottom: 28px;
    text-align: center; /* 中央揃えにする */
    border-left: none;  /* 左側のボーダーを削除 */
    padding-left: 0;    /* 左側のパディングをリセット */
    position: relative;
}

/* パターンC：タイトルの上に小さな正方形のブロックを配置 */
.company-section__header::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    margin-bottom: 8px;
    border-radius: 0px;
}

.company-section__title {
    font-size: 22px;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.company-section__subtitle-en {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* バッジ共通 */
.company-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0px;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.company-badge--accent {
    background: #e2e8f0;
    color: #334155;
}

/* ==========================================================
   1. トピックス（アイキャッチ型の大きな訴求カード）
   ========================================================== */
.company-headline-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    padding: 44px;
    border-radius: 0px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
    align-items: center;
}

.company-headline-card__media img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: block;
    transition: var(--transition-smooth);
}

.company-headline-card__media img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.company-headline-card__caption {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}

.company-headline-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.company-headline-card__body p {
    margin-bottom: 1.2em;
    color: #475569;
    font-size: 15px;
}

.company-headline-card__body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   2. 主な事業・サービス紹介
   ========================================================== */
.company-service-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    align-items: start;
}

/* 画像がない場合のスタイル（1カラムに自動変更）および修飾クラス対応 */
.company-service-card--no-image,
.company-service-card:not(:has(.company-service-card__img)) {
    grid-template-columns: 1fr;
}

.company-service-card:hover {
    box-shadow: 0 16px 36px rgba(0, 84, 164, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.company-service-card__img img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: block;
}

.company-service-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.company-service-card__body {
    font-size: 15px;
    color: #475569;
}

.company-service-card__body p {
    margin-bottom: 1.2em;
}

/* 強調テキスト（赤文字の代替） */
.company-text-highlight {
    color: #e53e3e;
    font-weight: 600;
}

.company-list {
    margin: 16px 0 20px 20px;
    list-style: disc;
}

.company-list li {
    margin-bottom: 8px;
    color: #334155;
}

/* ==========================================================
   3. パートナー募集（アクセント背景の別格デザイン）
   ========================================================== */
.company-section--accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e6effa 100%);
    padding: 56px;
    border-radius: 0px;
    border: 1px solid #cce0fc;
    box-shadow: 0 8px 24px rgba(0, 84, 164, 0.04);
}

.company-section--accent .company-section__title {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.company-partner-box {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
}

.company-partner-lead {
    font-size: 15px;
    color: #334155;
    margin-bottom: 24px;
    font-weight: 500;
}

.company-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.company-feature-item {
    background: #ffffff;
    padding: 20px 18px;
    border-radius: 0px;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.company-feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* 数字とタイトルをまとめるヘッダー */
.company-feature-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

/* 数字を主張させすぎず、すっきりと配置 */
.company-feature-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.05em;
}

/* タイトル */
.company-feature-title {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 説明文 */
.company-feature-text {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.company-partner-desc {
    font-size: 14px;
    color: #475569;
    margin: 0;
}

.company-partner-box__img img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: block;
}

/* ==========================================================
   4. 会社沿革（タイムライン風テーブル）
   ========================================================== */
.company-history-wrap {
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.company-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.company-history-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.company-history-table tr:hover {
    background-color: #ffffff;
}

.company-history-table tr:last-child {
    border-bottom: none;
}

.company-history-table th {
    width: 180px;
    padding: 22px 24px 22px 12px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
    position: relative;
}

/* タイムラインのドット装飾（直角デザインに合わせて四角形に変更） */
.company-history-table th::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border: 2px solid #ffffff;
    border-radius: 0px;
    box-shadow: 0 0 0 1px var(--border-color);
}

.company-history-table td {
    padding: 22px 12px 22px 24px;
    color: #334155;
}

.company-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: right;
}

/* ==========================================================
   5. 会社概要・拠点情報
   ========================================================== */
.company-profile-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 44px;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    align-items: start;
}

/* 画像がない場合のスタイル（1カラムに自動変更）および修飾クラス対応 */
.company-profile-card--single,
.company-profile-card--no-image,
.company-profile-card:not(:has(.company-profile-card__media)) {
    grid-template-columns: 1fr;
}

.company-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

/* 2つ目以降の店舗名用クラス（インラインスタイルの代替） */
.company-profile-name--sub {
    margin-top: 24px;
}

.company-profile-type {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 24px;
}

.company-address-box {
    background: var(--accent-bg);
    padding: 24px;
    border-radius: 0px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.company-address-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.company-address-text {
    font-size: 14px;
    color: #334155;
    margin: 0;
    line-height: 1.6;
}

.company-tel {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

.company-contact-heading {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 6px;
}

.company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s;
    padding-bottom: 1px;
}

.company-link:hover {
    opacity: 0.7;
}

.company-profile-card__media img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: block;
}

.company-profile-caption {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}

/* ==========================================================
   レスポンシブ対応 (タブレット・スマホ)
   ========================================================== */
@media (max-width: 900px) {
    .company-headline-card,
    .company-service-card,
    .company-partner-box,
    .company-profile-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .company-section--accent {
        padding: 32px;
    }

    .company-feature-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .company-detail {
        padding: 12px 0 80px;
    }

    .company-detail__inner {
        padding: 0 16px;
    }

    .company-detail__lead {
        font-size: 15px;
        margin-bottom: 15px;
        text-align: left;
    }

    .company-detail__lead p {
        display: block;
    }

    .company-detail__lead p::after {
        left: 0;
        width: 100%;
    }

    .company-detail__content {
        gap: 48px;
    }

    /* ▼ スマホ表示時に「トピックス」のテキストを画像より上に変更する指定 */
    .company-headline-card {
        display: flex;
        flex-direction: column;
    }
    .company-headline-card__body {
        order: 1;
    }
    .company-headline-card__media {
        order: 2;
    }
    /* ▲ 変更ここまで */

    .company-history-wrap {
        padding: 24px;
    }

    .company-history-table th,
    .company-history-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        white-space: normal;
    }

    .company-history-table th::after {
        display: none;
    }

    .company-history-table th {
        padding-top: 16px;
        color: var(--primary-color);
        font-size: 14px;
    }

    .company-history-table td {
        padding-bottom: 16px;
        font-size: 14px;
    }

    .company-history-table tr {
        display: block;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
    }
}