/* ============================================================
   sus-posts.css - 記事ページ用カスタムスタイル
   ============================================================ */

/* imgs ---------------------------- */

.post-normalize .img--block {
    margin-bottom: 30px;
}

.post-normalize .img--block img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* 2列グリッド */
.post-normalize .img--block.multi--img {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-normalize .img--block.multi--img.two--imgs > div {
    width: 48.5%;
}

/* キャプション */
.post-normalize .caption {
    color: #666;
    margin-top: 8px;
    line-height: 1.4 !important;
    font-size: 0.85em;
    display: block;
    width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* 関連情報リンクリスト */
.post-normalize .link--list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.post-normalize .link--list li a {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    color: #333;
}

.post-normalize .link--list li a::before {
    position: absolute;
    top: 6px;
    left: 0;
    content: "";
    vertical-align: middle;
    width: 4px;
    height: 1px;
    border: 4px solid transparent;
    border-left: 7px solid #ffd500;
}

.post-normalize .link--list li a:hover {
    text-decoration: underline;
}

/* レスポンシブ：640px以下で縦一列 + センター寄せ */
@media screen and (max-width: 640px) {
    .post-normalize .img--block.multi--img.two--imgs > div {
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .post-normalize .img--block.multi--img.two--imgs > div img {
        max-width: 680px;
        width: 100%;
    }
}

/* 関連情報 h3見出し */
.post-normalize .related-info-heading {
    font-size: 1em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.5em;
    padding: 0;
    border: none;
    background: none;
}

/* 関連情報リスト（矢印なし）
   #sustainability で親スタイルの padding-left: 2.5em を上書き */
#sustainability .post-normalize .related-info-list {
    list-style: none;
    padding-left: 1em;
    margin: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}

#sustainability .post-normalize .related-info-list li a {
    color: #00a1d1;
    text-decoration: none;
    font-size: 1em;
    word-break: break-all;
    overflow-wrap: break-word;
}

#sustainability .post-normalize .related-info-list li a:hover {
    text-decoration: underline;
}

/* 1枚画像 センター寄せ */
.post-normalize .img--block.one--img {
    margin: 0 auto 30px;
    width: fit-content;
    max-width: 100%;
}

.post-normalize .img--block.one--img img {
    display: block !important;
    max-width: 100%;
}

.post-normalize .img--block.one--img.img-w680 {
    max-width: 680px;
}

/* ============================================================
   カードアイキャッチ：アスペクト比3:2固定 + object-fit cover
   ============================================================ */
.btn-card-1 a.img {
    display: block;
    overflow: hidden;
    width: 100%;
    line-height: 0;
}

.btn-card-1 a.img img {
    aspect-ratio: 3 / 2;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* ============================================================
   品質管理ページ用スタイル
   ============================================================ */

/* qualityListBox: dt→h3.cap-bdrbtm-a スタイル */
.post-normalize .quality-dt {
    margin-top: 2em;
    margin-bottom: 0.4em;
    font-size: 1em;
    font-weight: 700;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #ccc;
}

.post-normalize .quality-dd {
    margin-top: 0.3em;
    margin-bottom: 1em;
}

/* 品質管理テーブル */
.post-normalize table.quality-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

.post-normalize table.quality-table th,
.post-normalize table.quality-table td {
    padding: 0.6em 1em;
    vertical-align: top;
}

.post-normalize table.quality-table + table.quality-table {
    margin-top: 2em;
}

/* ============================================================
   テーブル見出し（アンダーラインなし）・注釈リスト
   ============================================================ */
.post-normalize .table-heading {
    font-size: 1em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.5em;
    padding: 0;
    border: none;
    background: none;
}

.post-normalize .table-note {
    list-style: none !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin: 0.4em 0 1.5em;
}

.post-normalize .table-note li {
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0 !important;
    list-style: none !important;
}

/* テーブル1: margin-bottom を打ち消し */
.post-normalize .quality-table-first {
    margin-bottom: 0 !important;
}

/* テーブル内liのmargin-bottom打ち消し */
.post-normalize .quality-table li {
    margin-bottom: 0 !important;
}

/* テーブル2・3: thを上下センター（vertical-align:topを上書き） */
.post-normalize table.quality-table th {
    vertical-align: middle !important;
}

/* グループ環境負荷データ dl/dt/dd */
.post-normalize .group-dl {
    margin: 1em 0;
}

.post-normalize .group-dl dt {
    font-weight: 700;
    margin-top: 1em;
    margin-bottom: 0.3em;
}

.post-normalize .group-dl dd {
    margin-left: 0;
}

.post-normalize .group-dl li {
    margin-bottom: 0 !important;
}

/* 画像下キャプションリスト（list-styleあり・小文字） */
.post-normalize .img-caption-list {
    margin: 0.3em 0 1em;
    padding-left: 1em !important;
}

.post-normalize .img-caption-list li {
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

/* ============================================================
   datsutanso: フロー図スタイル
   ============================================================ */
.post-normalize .flow-ctn {
    position: relative;
    width: 100%;
    max-width: 690px;
    background: #fff6da;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.post-normalize .flow-ctn:last-of-type {
    margin-bottom: 20px;
}

.post-normalize .flow-ctn::after {
    position: absolute;
    bottom: -70px;
    left: calc(50% - 50px);
    content: "";
    width: 0;
    height: 0;
    border-left: solid 50px transparent;
    border-right: solid 50px transparent;
    border-top: solid 35px #ffe88a;
    border-bottom: solid 35px transparent;
    z-index: 10;
}

.post-normalize .flow-ctn:last-of-type::after {
    display: none;
}

.post-normalize .flow-ctn h4 {
    font-size: 1em;
    font-weight: normal;
    margin: 15px 0 5px;
    padding: 0;
    color: #555;
    border: none;
    background: none;
}

.post-normalize .flow-ctn ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.post-normalize .flow-ctn li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px !important;
    padding: 10px;
    background: #ffe58c;
    overflow: hidden;
}
