/* ====================================
   会社概要セクション
==================================== */

/* ====================================
   会社概要ページ専用設定
==================================== */
/* PC表示時：ヘッダー（ロゴ＋メニュー）分の余白を確保 */
body.page-template-page-company,
body.page-template-page-company-php {
    padding-top: 180px !important;
    background-color: var(--color-bg, #f5f5f5);
    /* 制作実績ページに合わせる */
}

/* メインセクション */
.company-section {
    padding: 30px 0 80px;
    /* 制作実績ページと同様の上余白 */
    background-color: transparent;
    /* 背景色はbodyに任せる */
    margin-top: 0;
    border-top: none;
}

.company-container {
    max-width: 800px;
    /* 制作実績ページより少し狭いくらいでOK */
    margin: 0 auto;
    width: 100%;
}

/* タイトルエリア（制作実績ページのデザインを踏襲） */
.section-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--color-black, #333);
    text-align: center;
    /* pf-titleと同じにするため、特別なスペーシングやフォント指定を削除 */
}

/* 説明文 */
.company-concept {
    font-size: 16px;
    margin: 0 0 40px 0;
    color: var(--color-black, #333);
    font-weight: 500;
    text-align: center;
}

/* 情報テーブル（制作実績ページのpf-info-sectionに合わせる） */
.company-info-wrapper {
    background: var(--color-white, #fff);
    /* 白背景 */
    padding: 30px;
    border-radius: 8px;
    /* 角丸 */
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    /* 軽く影をつける */
}

.company-section .info-list {
    margin: 0;
}

.company-section .info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.company-section .info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.company-section .info-row:first-child {
    padding-top: 0;
}

.company-section .info-row dt {
    flex: 0 0 140px;
    /* 制作実績は180pxだが会社概要は項目名短いので詰める */
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black, #333);
}

.company-section .info-row dd {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: var(--color-gray, #666);
    /* 少しグレーに */
    line-height: 1.8;
}

.company-section .info-row dd a {
    color: var(--color-black, #333);
    text-decoration: underline;
}

.company-section .info-row dd a:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* 戻るボタン */
.back-link-container {
    text-align: center;
    margin-top: 60px;
}

.back-link {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    background: #fff;
    font-size: 14px;
}

.back-link:hover {
    background: #333;
    color: #fff;
}


/* ====================================
   レスポンシブ対応 (会社概要)
==================================== */
@media (max-width: 768px) {

    /* 会社概要ページ専用（ヘッダー被り防止） */
    body.page-template-page-company,
    body.page-template-page-company-php {
        padding-top: 90px !important;
    }

    .company-section {
        padding: 30px 0 60px 0;
    }

    .section-title {
        font-size: 22px;
        /* pf-title SP版に合わせる */
        margin-bottom: 20px;
    }

    .company-concept {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .company-info-wrapper {
        padding: 20px;
    }

    .company-section .info-row {
        flex-direction: column;
        padding: 12px 0;
    }

    .company-section .info-row dt {
        flex: none;
        margin-bottom: 5px;
        font-size: 13px;
        color: #666;
        /* dtの色を少し薄くするか、pf詳細に合わせるならそのまま */
    }

    .company-section .info-row dd {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
        /* pf-title SP小画面版に合わせる */
    }
}

/* ====================================
   ルビ（ふりがな）調整
==================================== */
ruby {
    /* ブラウザ標準の表示に戻す */
    font-size: 16px;
    /* 本文サイズ */
    line-height: 1.5;
    vertical-align: text-bottom;
}

rt {
    font-size: 0.6em;
    color: #888;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
}