/*
  企業情報 /corporate/ 関連ページ専用
  対象:
    /corporate/
    /corporate/message/
    /corporate/overview/
    /corporate/office/
    /corporate/recruit/
  スコープ: #corporate / #message_content / #overview / #office / #recruit
           .partnership-* / .homepage-items*
  読み込み: header.php（/corporate/ 配下のみ）
  更新: 2026年7月24日
*/

/* ============================================================
   代表ご挨拶 /corporate/message/
   ============================================================ */

/* ページメッセージコンテンツの名前 */
#page #message_content .name {
    text-align: right;
    font-size: 14px;
}

/* ページメッセージコンテンツのプロフィールタイトル */
#page #message_content .profile h3 {
    display: block;
    margin-bottom: 10px;
    position: relative;
    font-weight: bold;
}

/* ページメッセージコンテンツのプロフィールテキスト */
#page #message_content .profile p {
    line-height: 1.9;
}

/* ページメッセージコンテンツのプロフィールテキスト内スパン */
#page #message_content .profile p span {
    display: inline-block;
    margin: 0 1rem 0 0;
}

/* ページメッセージコンテンツのプロフィールタイトル内スパン */
#page #message_content .profile h3 span {
    display: inline-block;
    padding-right: 10px;
    background-color: #fff;
    font-weight: bold;
}

/* ページメッセージコンテンツのプロフィールタイトルの下線 */
#page #message_content .profile h3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background-color: #e6e6e5;
    z-index: -1;
}

/* ページメッセージコンテンツのプロフィールテキスト（フォントサイズ指定） */
#page #message_content .profile p {
    font-size: 14px;
}

/* メッセージコンテンツのブロック余白 */
#page #message_content .content_block {
    margin-bottom: 50px;
}


/* メッセージコンテンツ - プロフィール画像 */
#page #message_content .profile img {
    display: inline-block;
    padding-right: 70px;
    vertical-align: bottom;
}

/* メッセージコンテンツ - 右側ブロック */
#page #message_content .profile .right_block {
    display: inline-block;
    width: 320px;
    vertical-align: bottom;
}

/* ============================================================
   企業情報 /corporate/
   ============================================================ */

#page #corporate img {
    margin: 0 0 10px;
}

#corporate h5 {
    font-size: 1.2em;
    margin: 0 0 10px;
    font-weight: bold;
}

#corporate h5:before {
    content: "";
    display: inline-block;
    width: 19px;
    height: 18px;
    margin: 0 .5em 0 0;
    background: url(../img/corporate/arrow.png) center no-repeat;
    position: relative;
    bottom: -3px;
}

/* ============================================================
   会社概要 /corporate/overview/ （#overview）
   固定ページ本文内の基本テーブル・行動計画など
   ============================================================ */

#overview table {
    width: 100%;
}

/* 会社概要の先頭テーブル（名称・所在地・事業内容など） */
#overview table:nth-of-type(1) {
    margin: 0 0 60px;
}

#overview table:nth-of-type(1) th,
#overview table:nth-of-type(1) td {
    border: 1px solid #ddd;
    padding: 17px 25px;
}

#overview table:nth-of-type(1) th {
    background: #eaf3ea;
    text-align: left;
    width: 35%;
    vertical-align: top;
}

#overview table:nth-of-type(1) td ul li {
    background: url(../img/common/list-square.png) left center no-repeat;
    padding: 0 0 0 15px;
    margin: 0 0 10px;
}

#overview table:nth-of-type(1) td ul li:last-child {
    margin: 0;
}

/* 行動計画など、先頭以外のテーブル共通 */
#overview table {
    border-top: 2px solid #30ac77;
    margin-bottom: 30px;
}

#overview table th,
#overview table td {
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    line-height: 1.5;
}

#overview table th {
    color: #30ac77;
    width: 20%;
    text-align: left;
    vertical-align: top;
}

#overview table span {
    display: block;
    margin: 8px 0 0;
}

#overview p span {
    display: block;
}

#overview table a {
    color: #30ac77;
    text-decoration: underline;
}

/* パートナーシップ構築宣言・ホームページ掲載事項は本ファイル後半 */

/* ============================================================
   営業所一覧 /corporate/office/
   ============================================================ */

#office .clearfix:has(> img.fl) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    border-bottom: 1px solid #e6e6e5;
}

#office .clearfix:has(> img.fl) > img.fl {
    float: none;
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    min-height: 160px;
    max-height: 160px;
    align-self: flex-start;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
    display: block;
}

#office .clearfix:has(> img.fl) > dl.fl {
    float: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#office dl {
    margin: 0;
}

#office .link-box {
    background: #ddd;
    padding: 1em 0 0 1em;
}

#office .link-box ul {
    border: none;
}

#office .link-box ul li {
    float: left;
    margin: 0 1em 1em 0;
}

#office .link-box ul li a {
    display: block;
    line-height: 13px;
    background: url(../img/icon/icon_list02.png) left center no-repeat;
    padding: 0 0 0 15px;
}

#tokyo,
#saitama,
#chiba,
#gunma,
#tochigi,
#kanagawa {
    padding: 20px 0 0;
}

#page #office dl dt {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 8px;
    padding: 6px 10px;
    color: #fff !important;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.45;
    background: linear-gradient(to right, #1a4080 0%, #62c4f0 50%, #2e6db5 100%) !important;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #bdbdbd;
}

#office dl dd {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.45;
}

#office dl dd span {
    display: block;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

#office dl dd span.office-address-main,
#office dl dd span.office-address-ban {
    display: block;
}

#office .clearfix:has(> img.fl) > .map {
    float: none;
    width: 208px;
    height: 160px;
    min-height: 160px;
    align-self: flex-start;
}

/* corporate recruit ---------------------------------------------- */

#page #recruit img {
    margin: 0 0 10px;
}

#recruit h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px;
    line-height: 1.3;
}

#recruit h5 {
    font-size: 1.2em;
    margin: 0 0 10px;
    font-weight: bold;
}

#recruit h5:before {
    content: "";
    display: inline-block;
    width: 19px;
    height: 18px;
    margin: 0 .5em 0 0;
    background: url(../img/corporate/recruit/arrow.png) center no-repeat;
    position: relative;
    bottom: -3px;
}

/* ============================================================
   会社概要追加ブロック（パートナーシップ・ホームページ掲載事項）
   ============================================================ */

/* ------------------------------------------------------------
   「パートナーシップ構築宣言」の公表について
   クラス: .partnership-*
   ------------------------------------------------------------ */

/* 宣言の導入文 */
.partnership-lead {
    line-height: 1.5;
}

/* ロゴ画像の中央寄せラッパー */
.partnership-logo {
    display: flex;
    justify-content: center;
}

/* パートナーシップ構築宣言ロゴ（img/corporate/partnership_logo.png） */
.partnership-logo img {
    width: 550px;
    max-width: 100%;
    height: auto;
    margin: -15px;
}

/* 宣言の説明文（#overview の外に配置） */
.partnership-desc {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ポータルサイト・当社宣言PDFへのリンク一覧 */
.partnership-links {
    line-height: 1.5;
}

.partnership-links a {
    color: #115fad;
    font-weight: bold;
}

.partnership-links li:first-child a {
    margin-bottom: 10px;
    display: inline-block;
}

/* リンク先頭の ▶ マーク */
.partnership-links__mark {
    color: #7bdcb5;
}

/* ------------------------------------------------------------
   「ホームページ掲載事項」（女性活躍・育児休業・賃金差異の公表表）
   クラス: .homepage-items*
   ※ 黒枠のシンプル表。#overview 既存テーブル（緑テーマ）とは別デザイン
   ------------------------------------------------------------ */

/* セクション全体 */
.homepage-items {
    margin: 40px 0 20px;
    color: #333;
}

/* タイトル行（左: 見出し / 右: 日付） */
.homepage-items__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* 「ホームページ掲載事項」見出し */
.homepage-items__title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 掲載日（例: 2026年7月23日） */
.homepage-items__date {
    font-size: 16px;
    color: #333;
}

/* ①〜④の各表キャプション */
.homepage-items__caption {
    margin: 0 0 8px;
    font-weight: bold;
    color: #333;
}

/* ①〜③の公表表（#overview 内でも緑枠スタイルを打ち消す） */
.homepage-items__table,
#overview .homepage-items__table {
    width: 100%;
    border-collapse: collapse;
    border-top: none;
    margin: 0 0 28px;
    color: #333;
}

.homepage-items__table td,
#overview .homepage-items__table td {
    border: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 12px;
    line-height: 1.5;
    color: #333;
    vertical-align: middle;
}

/* 左列（社員 / 男性 など） */
.homepage-items__table td:first-child,
#overview .homepage-items__table td:first-child {
    width: 25%;
    text-align: left;
}

/* 数値・割合列 */
.homepage-items__table td:not(:first-child),
#overview .homepage-items__table td:not(:first-child) {
    text-align: center;
}

/* ④ 男女の賃金差異表（2列・左列幅広め） */
.homepage-items__table--wage td:first-child,
#overview .homepage-items__table--wage td:first-child {
    width: 50%;
}

/* ------------------------------------------------------------
   スマホ（max-width: 979px）
   ------------------------------------------------------------ */

@media screen and (max-width: 979px) {
    .partnership-logo img {
        width: 100%;
        margin: 0;
    }

    .homepage-items__title {
        font-size: 1.6rem;
    }

    .homepage-items__date {
        font-size: 1.3rem;
    }

    .homepage-items__caption {
        font-size: 1.2rem;
    }

    .homepage-items__table td,
    #overview .homepage-items__table td {
        padding: 0.8rem;
        font-size: 1.1rem;
    }
}

/* ============================================================
   スマホ（max-width: 979px）— message / overview / office / corporate
   ============================================================ */

@media screen and (max-width: 979px) {
/* message -------------------------------------- */
    #page #message_content .content_block {
        margin-bottom: 3rem;
    }
    #page #message_content .name {
        font-size: 1.2rem;
    }
    #message_content .profile img {
        display: block;
        float: left;
        width: 25%;
    }
    #message_content .profile .right_block {
        float: right;
        width: 72%;
    }
    #page #message_content .profile h3 {
        line-height: 1.5;
    }
    #page #message_content .profile p {
        font-size: 1.1rem;
    }
    /* overview -------------------------------------- */
    #overview table:nth-of-type(1) {
        margin: 0 0 5rem;
    }
    #overview table th,
    #overview table td {
        padding: 1rem;
        font-size: 1.1rem;
    }
    #overview table:nth-of-type(1) th {
        width: 35%;
        vertical-align: top;
    }
    #overview table:nth-of-type(1) td ul li {
        background: url(../img/common/list-square.png) left top .3rem no-repeat;
        font-size: 1.1rem;
    }
    /* パートナーシップ・ホームページ掲載事項のスマホ用は本ファイル前半の @media */
    /* office -------------------------------------- */
    /* 営業所一覧（SP）
       - 1行目: 写真(160px) + 店舗情報を横並び
       - 2行目: 地図を全幅表示
       - dt は青グラデーション帯（style.css と同様） */
    #office .link-box {
        padding: 1rem 1rem 0;
    }
    #office .link-box ul {
        display: block;
        margin: 0;
        border: none;
    }
    #office .link-box ul li {
        float: left;
        width: 32%;
        margin: 0 2% 3% 0;
    }
    #office .link-box ul li:nth-of-type(3n) {
        margin: 0 0 3%;
    }
    #tokyo,
    #saitama,
    #chiba,
    #gunma,
    #tochigi,
    #kanagawa {
        padding: 1rem 0 0;
    }
    #office .clearfix:has(> img.fl) {
        /* 写真・テキスト・地図をコンパクトに配置 */
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: .6rem;
        margin: 0 0 1rem;
        padding-bottom: .8rem;
    }
    #office .clearfix:has(> img.fl) > img.fl {
        float: none;
        flex: 0 0 160px;
        width: 160px;
        max-width: 160px;
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        align-self: flex-start;
        object-fit: contain;
        object-position: center;
        background: #f5f5f5;
        margin: 0;
    }
    #office .clearfix:has(> img.fl) > dl.fl {
        /* 写真右側の余白を使って店舗名・住所を表示 */
        float: none;
        flex: 1 1 calc(100% - 160px - .6rem);
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        overflow: visible;
    }
    #office dl dt {
        /* 店舗名の青帯（文字のみ／背景グラデーション） */
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 .5rem;
        padding: .5rem .65rem;
        color: #fff;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.4;
        background: linear-gradient(to right, #1a4080 0%, #62c4f0 50%, #2e6db5 100%);
        border: 2px solid #fff;
        box-shadow: 0 0 0 1px #bdbdbd;
    }
    #office dl dd {
        margin: 0 0 .35rem;
        line-height: 1.5;
        font-size: 1.5rem;
    }
    #office dl dd span {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    #office .clearfix:has(> img.fl) > .map {
        /* 地図は次の行で全幅表示 */
        clear: both;
        float: none;
        flex: 0 0 100%;
        display: block;
        width: 100%;
        height: auto;
        min-height: 160px;
        margin: 0;
    }

    /* corporate ---------------------------------------------- */
    #page #corporate img {
        width: 100%;
    }
    /* corporate recruit ---------------------------------------------- */
    #page #recruit img {
        width: 100%;
    }
}
