.bg_image {
    background-position: left !important;
}

.design_content .rich_font {
    margin-top: 80px;
    text-align: center;
    font-size: xx-large;
}

.about-flex {
    max-width: 1200px;
    width: 100%;
    display: flex;
    margin: auto;
    flex-direction: row;
    padding: 45px 20px;
}

.about-massage-img {
    margin-left: 50px;
}

.about-massage-text {
    width: 600px;
    margin: 0px auto;
}

.ceo_massage {
    padding-left: 50px;
}

.ceo_name {
    text-align: right;
}

.dc_content {
    width: 800px;
    margin: 0 auto;
    padding: 92px 0 92px;
}


/* ISO実績テーブルのスタイル */
.iso-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    line-height: 1.6;
    font-size: 15px;
}

.iso-table tr {
    border-bottom: 1px solid #eee;
    /* 行間の区切り線 */
}

.iso-table th {
    width: 200px;
    /* 日付エリアの幅 */
    padding: 20px 10px;
    text-align: left;
    vertical-align: top;
    color: #666;
    font-weight: normal;
    white-space: nowrap;
}

.iso-table td {
    padding: 20px 10px;
    vertical-align: top;
    color: #333;
}

.iso-table td strong {
    color: #000;
    display: inline-block;
    margin-bottom: 5px;
}

/* 全体のコンテナ */
.history-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    flex-direction: column !important;
}

/* 1. タイトルを上部に配置 */
.history-title {
    text-align: center;
    /* 中央寄せ */
    color: #2c5ba7;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}


/* 2. タイムライン全体の枠組み */
.history-container {
    position: relative;
    padding: 20px 0;
}

/* 中央のドットライン */
.history-container::before {
    content: "";
    position: absolute;
    left: 50%;
    /* 中央に配置 */
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dotted #ccc;
    transform: translateX(-50%);
    z-index: 1;
}

/* 各アイテムの並び */
.history-item {
    display: flex;
    flex-direction: column;
    /* 年号とコンテンツを縦に並べる */
    align-items: center;
    /* 中央揃え */
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* 年号のデザイン */
.history-year {
    background: #fff;
    padding: 0 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    /* カードとの隙間 */
    z-index: 3;
}

/* 3. 右側のコンテンツを「白いカード」にする */
.history-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    /* カードの最大幅 */
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* 影をつけて浮かす */
    text-align: center;
    /* テキストを中央寄せ */
    position: relative;
}

/* 日付のデザイン */
.history-date {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #2c5ba7;
    margin-bottom: 10px;
}

/* 本文のデザイン */
.history-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    /* 改行を反映させる */
}

/* 太字の強調 */
.bold-text {
    font-weight: bold;
}

.pdf-section {
    text-align: center;
}

.declaration {
    margin: 20px 0 40px 0;
}

.declaration span {
    border: none;
    background: linear-gradient(45deg, #2db2c3 20%, #79cb98 90%);
    color: #fff;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 1.8rem;
    display: inline-block;
    margin: 10px;
}

.declaration p {
    padding: 5px;
}

.declaration a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #41a5b6;
    /* 通常時はテーマ色で塗りつぶし */
    color: #ffffff;
    /* 文字色は白 */
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #41a5b6;
    /* ホバー時に枠線が出現してボタンがガタつくのを防ぐため、同色で枠線を設定 */
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    margin-top: 10px;
}

.declaration a:hover {
    background-color: #ffffff;
    /* 背景を白に */
    color: #41a5b6;
    /* 文字色をテーマ色に */
}

.p_contents {
    margin: 15px;
    text-align: center;
    margin-bottom: 24px;
}

/* 白抜きボタンの装飾 */
.p_contents a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #41a5b6;
    /* グラデーションの左側の色を採用 */
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #41a5b6;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

/* マウスカーソルを乗せた時の動き（背景が塗りつぶされる） */
.p_contents a:hover {
    background-color: #41a5b6;
    color: #ffffff;
}

.staff-table {
    width: auto;
    /* 100%に広がらないようにする */
    margin-left: 0;
    margin-right: auto;
    border-collapse: collapse;
}

/* 役職（th）と氏名（td）のテキストを確実に左寄せにする */
.staff-table th,
.staff-table td {
    text-align: left !important;
    /* テーマのCSSを上書きして確実に左寄せ */
    border: none;
    /* 画像を見る限り内部の罫線はないため消去 */
    vertical-align: middle;
    /* テキストの縦位置を中央に */
}

/* 役職名（th）の幅を固定して、氏名（td）の開始位置を縦にピシッと揃える */
.staff-table th {
    width: 10em;
    /* 「代表取締役社長」などが収まる幅を指定（調整してください） */
    font-weight: normal;
    /* 必要に応じて太字を解除 */
}


/* スマホ用のレスポンシブ設定 (1050px以下) */
@media screen and (max-width: 1050px) {


    .about-flex {
        padding: 50px 20px;
    }


    .about-massage-img {
        margin: 50px 0 100px 50px;
    }

    .iso-table th,
    .iso-table td {
        display: block;
        /* 縦並びにする */
        width: 100%;
        padding: 10px 0;
    }

    .iso-table th {
        border-bottom: none;
        padding-bottom: 0;
        font-weight: bold;
    }

    .iso-table td {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    .sp-only {
        display: none;
        /* スマホで日付の途中の改行を消す（1行で見せる） */
    }
}


/* スマホ対応：幅が狭い時はインデントを解除して自然な改行にする */
@media (max-width: 768px) {
    .iso_line {
        display: block;
        padding-left: 0 !important;
        margin-bottom: 10px;
    }

    .declaration {
        margin: 15px 0 30px 0;
        /* 全体的な上下の余白を少し縮小 */
    }

    .declaration p {
        font-size: 0.95rem;
        /* テキストを少しだけ小さく */
        padding: 3px 10px;
        /* 画面の両端ギリギリに文字が寄らないよう左右に余白を追加 */
    }


    .about-flex {
        flex-direction: column;
    }

    .about-massage-img {
        padding-top: 15px;
        margin: auto;
        max-width: 450px;
        width: 100%;
        height: auto;
    }

    .about-massage-text {
        width: 100%;
        padding: 40px 20px;
    }

    .ceo_massage {
        padding-left: 0px;
    }

}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 640px) {
    .history-content {
        width: 90%;
        padding: 15px;
    }

    .history-container::before {
        left: 20px;
        /* スマホ時はラインを左に寄せるのもアリ */
        transform: none;
    }

    .history-item {
        align-items: flex-start;
        /* 左寄せ */
        padding-left: 40px;
    }

    .history-year {
        margin-left: -10px;
    }

}


@media screen and (max-width: 480px) {

    .about-flex {
        flex-direction: column;
        padding: 15px;
    }

    .design_content .rich_font {
        margin-top: 40px;
        text-align: center;
        font-size: x-large;
    }

    .about-massage-img {
        padding-top: 15px;
        margin: auto;
        max-width: 300px;
        width: 100%;
        height: auto;
    }

    .about-massage-text {
        width: 100%;
        padding: 35px;
        font-size: 1.3rem;
    }


    /* タイトル（労務費見積り尊重宣言）の調整 */
    .declaration span {
        font-size: 1.5rem !important;
        /* 1.8remからスマホ向けのサイズへ縮小 */
        padding: 5px 10px;
    }

    /* 宣言文（本文）の調整 */
    .declaration p {
        font-size: 1rem;
        line-height: 1.6;
        /* スマホで読みやすいように行間を少し広げる */
    }

    /* ボタン共通の調整（塗りつぶしボタン・白抜きボタン） */
    .declaration a,
    .p_contents a {
        padding: 12px 10px;
        /* 左右の余白を30pxから10pxへ減らし、長い文字の折り返しを防ぐ */
        font-size: 1.2rem;
        /* ボタン内の文字サイズを少し小さくして1行に収めやすくする */
        width: 96%;
        /* 100%だと画面端に張り付く場合があるため、少しゆとりを持たせる */
    }

    /* 下部のボタン同士の余白調整 */
    .p_contents {
        margin: 10px auto;
        margin-bottom: 16px;
    }
}