@charset "utf-8";

section {
    padding-right: 0!important;
}

.mv {
    aspect-ratio:  1925/609;
}

/* アンカーリンク */
.feature_guide_link {
    border-color: var(--chemical-dark-bg);
}

.feature_guide_link:hover {
    border-color: var(--chemical-dark-bg);
    background-color: var(--chemical-bright-bg);
    color: var(--text-color);
}

.feature_guide_link:hover .feature_guide_en {
    color: var(--orange);
}

.acs_header_eng {
    color: var(--bright-orange);
}

.acs_header_eng::before, .acs_header_eng::after {
    background-color: var(--orange);
}

.acs_title {
    color: white;
    letter-spacing: 1px;
}

.acs_title span {
    font-size: .85em;
    padding: 0 5px;
}

.acs_title_orange {
    color: var(--orange);
    font-size: 1.4em;
    text-shadow: 2px 2px 1px #797979;
}

.acs_header_catch {
    color: var(--bright-grey);
}



#chemicalstroke_special_section {
    /* background-color: var(--chemical-bright-bg); */
    padding: 80px 0;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    box-sizing: border-box;
}

#chemicalstroke_special_section * {
    box-sizing: border-box;
}

.content_maxwidth {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー部分（divに変更） --- */
.chemical_header {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.chemical_header_inner {
    display: flex;
    align-items: center;
    gap: 20px; /* タイトルと画像の距離 */
}

.chemical_header_text {
    text-align: right; /* テキストは画像寄り（右寄せ）に */
}

.chemical_title_en {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: var(--chemical-bg);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
}

.chemical_title_main {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

/* 編集者アイコン枠 */
.chemical_header_img_frame {
    width: 150px;
    height: auto;
    overflow: hidden;
    background-color: #fff;
}

.chemical_header_img {
    width: 100%;
    height: auto;
}

/* --- カードグリッド --- */
.chemical_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* --- カード本体 --- */
.chemical_card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e1e4e8; /* 枠線で区切る */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    height: 100%;
}

/* ホバー時は浮かせず、枠線と背景色で反応させる */
.chemical_card:hover {
    border-color: var(--chemical-bg);
    background-color: #fffcf8; /* ほんの少しオレンジがかった白へ */
}

/* 画像エリア */
.chemical_img_frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background-color: #eee;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.chemical_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ホバー時の画像ズーム */
.chemical_card:hover .chemical_img {
    transform: scale(1.05);
}

/* テキストエリア */
.chemical_content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 日付エリア */
.chemical_date_row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.chemical_date {
    font-size: 12px;
    color: #888;
    font-family: Arial, sans-serif;
    display: inline-flex;
    align-items: center;
}

/* 時計アイコン風の装飾 */
.chemical_date::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid #999;
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
    background: linear-gradient(to bottom, transparent 50%, #999 50%, #999 100%, transparent 100%) no-repeat center;
    background-size: 1px 4px;
}

/* 記事タイトル */
.chemical_article_title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s;
    margin-bottom: 20px;
    flex-grow: 1;
}

.chemical_card:hover .chemical_article_title {
    color: var(--chemical-bg);
    text-decoration: underline;
}

/* 矢印アイコン（右下に配置） */
.chemical_arrow_area {
    text-align: right;
}

.chemical_arrow_text {
    font-size: 12px;
    font-weight: bold;
    color: var(--chemical-bg);
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s;
}

.chemical_arrow_text::after {
    content: '→';
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s;
}

.chemical_card:hover .chemical_arrow_text::after {
    transform: translateX(5px);
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
    #chemicalstroke_special_section {
        padding: 50px 0;
    }
    .chemical_header_inner {
        flex-direction: column-reverse; /* スマホでは画像を上に */
        text-align: center;
        gap: 10px;
    }
    .chemical_header_text {
        text-align: center;
    }
    .chemical_title_main {
        font-size: 24px;
    }
    .chemical_header_img_frame {
        width: 60px;
        height: 60px;
    }
    .chemical_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .chemical_content {
        padding: 20px;
    }
    .chemical_article_title {
        font-size: 16px;
    }
}


.acs_source_section p {
    color: white;
}

.acs_source_section a {
    color: white;
}


/* 外枠の定義 */
.chemical-pickup-container {
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
    border: 2px solid #f28b50;
    border-top: 4px solid #f28b50;
    box-sizing: border-box;
    padding-bottom: 15px;
    /* 背景画像と透過レイヤーの重ね合わせ */
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../../../img/safety/corner/chemical-pickup-product01-bg.png');
    background-size: cover;
    background-position: center;
}

/* 左上のPickUpタグ */
.chemical-pickup-label {
    position: absolute;
    top: -38px;
    left: -2px;
    font-size: 42px;
    font-weight: bold;
    color: #f28b50;
    line-height: 1;
}

/* 背景画像を含むメインエリア */
.chemical-pickup-main {
    display: flex;
    padding: 10px 30px 0;
    gap: 50px;
    align-items: center;
}

/* 画像エリア */
.chemical-product-figure {
    flex: 0 0 230px;
    border: 1px solid #f28b50;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: auto;
}

.chemical-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* テキストエリア */
.chemical-product-body {
    flex: 1;
}

.chemical-catch-copy {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.chemical-product-title {
    font-size: 34px;
    font-weight: bold;
    color: #f28b50;
    margin: 0 0 15px 0;
    letter-spacing: 0.02em;
}

.chemical-product-text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ボタンの配置制御（既存のクラスに干渉しないように） */
.chemical-button-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
}

/* 既存ボタンのスタイル維持しつつ微調整 */
.chemical-button-group .product_h_card_btn {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

/* アイコン（→）の付与（既存CSSにない場合） */
.chemical-button-group .product_h_card_btn::after {
    content: "→";
    margin-left: 8px;
    font-size: 1.1em;
}

/* ボタン色（既存のクラス名を利用） */
.chemical-button-group .btn_secondary {
    background-color: #f4f4f4;
    color: #f28b50;
}

.chemical-button-group .btn_primary {
    background-color: #f04e45;
    color: #fff;
}

/* レスポンシブ（768px以下で縦並び） */
@media (max-width: 768px) {
    .chemical-pickup-main {
        flex-direction: column;
        padding: 20px;
    }

    .chemical-product-figure {
        display: inline-block;
        flex: 0 0 auto;
        margin-right: auto;
        max-width: 200px;
        width: 100%;
    }

    .chemical-button-group {
        flex-direction: column;
        width: 100%;
    }

    .chemical-button-group .product_h_card_btn {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .chemical-product-title {
        font-size: 26px;
    }
    .chemical-img-fluid {
    max-width: 200px;
    }
}


/* バナーの外枠設定 */
.chemical-notice-container {
    max-width: 1000px;
    margin: 40px auto;
    box-sizing: border-box;
    /* 周囲のレイアウトに合わせて左右のpaddingを調整してください */
    padding: 0 20px; 
}

/* バナー本体（リンク要素） */
.chemical-notice-banner {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 2px solid var(--accent-orange); /* 全体を囲んで強調 */
    border-radius: 8px; /* 少し丸みを持たせる */
    padding: 20px 24px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

/* ホバー時のアクション（さらに浮き上がり、ボーダーが少し太く見えるような効果） */
.chemical-notice-banner:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 施行時期のタグ */
.chemical-notice-tag {
    background-color: var(--accent-orange);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 24px;
}

/* テキストエリア */
.chemical-notice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chemical-notice-title {
    font-size: 18px; /* 少し大きくして視認性アップ */
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.chemical-notice-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* 右側のアクション・矢印（ボタン風に独立させて目立たせる） */
.chemical-notice-action {
    background-color: var(--accent-orange);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    white-space: nowrap;
    margin-left: 24px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.chemical-notice-arrow {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.2s;
}

/* ホバー時に矢印を少し右へ動かす */
.chemical-notice-banner:hover .chemical-notice-arrow {
    transform: translateX(5px);
}

/* レスポンシブ対応（スマホ） */
@media (max-width: 768px) {
    .chemical-notice-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .chemical-notice-tag {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .chemical-notice-title {
        font-size: 16px;
    }

    .chemical-notice-subtitle {
        font-size: 13px;
    }

    .chemical-notice-action {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        justify-content: center; /* スマホではボタンを全幅にして中央揃え */
        box-sizing: border-box;
    }
}

.chemical-map-section {
    padding: 0;
}

#accident_case_section {
    background-color: var(--main-color);
}

/* --- ベース・マップ設定 --- */
.chemical-map-wrapper {
    max-width: 100%;
    margin: 0 auto;
    --accent-orange: #eb4e45; /* アクセントカラー定義 */
}

.chemical-map-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.chemical-map-desc {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* マップ画像のコンテナ（相対配置） */
.chemical-map-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* マップ画像自体の設定 */
.chemical-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* クリック可能なエリア（透明ボタン）の共通スタイル */
.chemical-map-area {
    position: absolute;
    display: block;
    cursor: pointer;
    /* デバッグ用：開発中はコメントアウトを解除するとエリアがピンクで見えます */
    /* background: rgba(255, 0, 150, 0.3); */
}

/* エリアホバー時の効果：マウスカーソルをポインターにし、薄く白い枠線を表示 */
.chemical-map-area:hover {
    outline: 2px solid #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* --- 各クリックエリアの配置設定（％指定でレスポンシブ対応） --- */
/* ご提示の画像を元に％の位置を調整してください */

/* 1. 配管接続部（左上のエリア） */
.chemical-area-1 {
    top: 17%;
    left: 1%;
    width: 20%;
    height: 9%;
}

/* 2. 化学薬品保管庫（右上のエリア） */
.chemical-area-2 {
    top: 17%;
    right: 1%;
    width: 25%;
    height: 9%;
}

/* 3. リチウムイオン電池エリア（中央下エリア） */
.chemical-area-3 {
    top: 70%;
    left: 43%;
    width: 20%;
    height: 9%;
}

/* 4. タンクローリー荷受エリア（左下エリア） */
.chemical-area-4 {
    top: 58%;
    left: 1%;
    width: 20%;
    height: 10%;
}

/* 5. 非定常作業（右下エリア） */
.chemical-area-5 {
    top: 59%;
    right: 1%;
    width: 24%;
    height: 8%;
}

/* --- モーダル（ポップアップ）設定（継承・微調整） --- */
.chemical-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

/* :target疑似クラスで、URLのハッシュとIDが一致した時に表示 */
.chemical-modal-overlay:target {
    opacity: 1;
    visibility: visible;
}

.chemical-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80%; /* 画面からはみ出ないように高さ制限 */
    overflow-y: auto; /* コンテンツが多い場合はスクロール */
    position: relative;
    border-top: 5px solid var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 閉じるボタン */
.chemical-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    text-decoration: none;
    line-height: 1;
}

.chemical-modal-close:hover {
    color: #333;
}

.chemical-modal-header {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 10px;
    padding-right: 30px;
}

.chemical-modal-loc {
    font-size: 13px;
    color: #555;
    background: #f4f6f9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.chemical-risk-list {
    margin: 0;
    padding-left: 20px;
}

.chemical-risk-list li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.chemical-risk-list li strong {
    display: block;
    color: #111;
    margin-bottom: 3px;
}


/*  */
.risk_map_section {
    margin: 0 0 3em;
    padding: 24px 0;
    background-color: #f4f6f9; /* 淡いグレー背景で区別 */
    border-radius: 8px;
}

.risk_map_title {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    width: 95%;
}

.risk_map_grid {
    display: grid;
    /* PC時は横幅に応じて2〜3列、スマホ時は1列に自動可変 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0 auto;
    width: 95%;
}

/* ▼ 各カードのデザイン ▼ */
.risk_map_card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px 40px 16px 16px; /* 右側に矢印用の余白を確保 */
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease-in-out;
}
/* ホバー時のアクション */
.risk_map_card:hover {
    border-color: var(--main-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 右端の矢印アイコン（CSSで描画） */
.risk_map_card::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--main-color);;
    border-right: 2px solid var(--main-color);;
    transition: right 0.2s ease;
}
.risk_map_card:hover::after {
    right: 12px; /* ホバー時に矢印が少し右へ動く */
}

/* ▼ テキストのデザイン ▼ */
.risk_card_heading {
    color: var(--main-color);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
}
.risk_card_text {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}