/* 默认显示（PC 上可见） */
.pc-visible {
    display: block;
}

/* PC 设备隐藏 */
.sp-visible {
    display: none !important;
}

/* 屏幕宽度小于 768px */
@media (max-width: 768px) {
    /* 手机设备隐藏 */
    .pc-visible {
        display: none;
    }
    /* 手机设备可见 */
    .sp-visible {
        display: block !important;
    }
    .sp-p-0{
        padding: 0;
    }
}

/* 通用样式 */
.b-blue{
    background-color:#5b9df5 !important;
}
.b-lb{
    background-color:#e7f7f9 !important;
}
.b-green{
    background-color:#48b87b !important;
}
.b-orange{
    background-color:#f59d2a !important;
}
.b-red{
    background-color:#e95e4e !important;
}
.c-f{
    color: #fff !important;
}
.c-3{
    color: #333;
}
.n-cr{
    color: red;
}
.w-100{
    width: 100% !important;
}
.w-60{
    width: 60% !important;
}
.w-50{
    width: 50% !important;
}
.fw-b5{
    font-weight: 500;
}
.fw-b{
    font-weight: bold !important;
}
.center-all-about{
    display: flex;
    display: -webkit-flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
}
.center-all{
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}
.center-all-up-down{
    display: flex;
    display: -webkit-flex;
    align-items: center;
}
.parent {
    display: flex;
    justify-content: flex-end;
}
.border-und{
    border-bottom: 1px solid #ccc;
}
/* 悬浮手 */
.cur-p{
    cursor: pointer;
}

/* 通用样式-end */

/* home-slide */
@media (max-width: 768px) {
    .cer-wvw{
        width: 70vw !important;
    }
    .text-content h1 {
        color: inherit;
        font-size: 4rem;
        margin-bottom: 1rem;
        font-weight: bold;
        letter-spacing: 10px;
    }
    .msx-pb30 {
        padding-bottom: 30px;
    }
}

@media (min-width: 769px) {
    .cer-wvw{
        width: 30vw !important;
    }
    .t-top-9{
        top: -9rem;
    }
    .text-content h1 {
        color: inherit;
        font-size: 5rem;
        margin-bottom: 1rem;
        font-weight: bold;
        letter-spacing: 10px;
    }
    .mil-lg60 {
        margin-bottom: 60px;
    }
    .mil-lg30 {
        margin-bottom: 30px;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    cursor: ew-resize;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: clip-path 0.3s ease;
}

.slider-img.left {
    z-index: 1;
}

.slider-img.right {
    clip-path: inset(0 0 0 50%);
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    z-index: 3;
    left: 50%;
    transition: left 0.3s ease;
}

.text-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mask {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: clip-path 0.3s ease;
}

.mask-left {
    clip-path: inset(0 50% 0 0);
    color: #353639;
    z-index: 5;
}

.mask-right {
    clip-path: inset(0 0 0 50%);
    color: white;
    z-index: 6;
}

.text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
}

.text-content p {
    font-size: 1.6rem;
    font-weight: bold;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.text-content .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid currentColor;
    background: transparent;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    pointer-events: auto;
}

.mask-left .text-content .button {
    background-color: #353639;
    color: white;
    border-color: white;
}
.mask-left .text-content .button:hover {
    background-color: white;
    color: #353639;
    border-color: #353639;
}

.mask-right .text-content .button {
    background-color: white;
    color: #353639;
    border-color: #353639;
}
.mask-right .text-content .button:hover {
    background-color: #353639;
    color: white;
    border-color: white;
}

.mil-hero-img-frame {
    position: absolute;
    z-index: 10;
    bottom: 40px;
    right: 40px;
    pointer-events: auto;
}
/* home-slide-end */

/* サービス･ソリューション */
.service-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-img img {
    height: auto;
    width: 100%;
    object-fit: contain;
}


.card-title {
    color: #262626;
    font-size: 1.5em;
    line-height: normal;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.small-desc {
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5em;
    color: #452c2c;
}

.small-desc {
    font-size: 1em;
}

.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 2em;
    height: 2em;
    overflow: hidden;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #6293c8, #384c6c);
    border-radius: 0 4px 0 32px;
}

.go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
}

.card {
    display: block;
    position: relative;
    max-width: 300px;
    max-height: 320px;
    background-color: #f2f8f9;
    border-radius: 10px;
    padding: 2em 1.2em;
    margin: 12px;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #c3e6ec, #a7d1d9);
    font-family: Arial, Helvetica, sans-serif;
}

.card:hover:before {
    transform: scale(28);
}

.card:hover .small-desc {
    transition: all 0.5s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.card:hover .card-title {
    transition: all 0.5s ease-out;
    color: #ffffff;
}

/* 蓝色调 */
.card-blue {
    background: linear-gradient(to bottom, #c3e6ec, #a7d1d9);
}
.card-blue .go-corner {
    background: linear-gradient(135deg, #5b9df5, #3a72d1);
}
.card-blue:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: linear-gradient(135deg, #5b9df5, #7daeee);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.35s ease-out;
}
/* 绿色调 */
.card-green {
    background: linear-gradient(to bottom, #c6ecd9, #a4dbc1);
}
.card-green .go-corner {
    background: linear-gradient(135deg, #48b87b, #2e8d61);
}
.card-green:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: linear-gradient(135deg, #48b87b, #64b98b);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.35s ease-out;
}
/* 橙色调 */
.card-orange {
    background: linear-gradient(to bottom, #ffe3c5, #fdd1a1);
}
.card-orange .go-corner {
    background: linear-gradient(135deg, #f59d2a, #e07c0e);
}
.card-orange:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: linear-gradient(135deg, #f59d2a, #efb05d);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.35s ease-out;
}
.service-h{
    height: 17rem;
}

/* サービス･ソリューション-end */

/* お問い合わせ内容 */
.form__group {
    position: relative;
    padding: 15px 0 0;
    width: 100%;
}

.form__field {
    font-family: inherit;
    width: 100%;
    resize: vertical;
    border: none;
    border-bottom: 1px solid #9b9b9b;
    outline: 0;
    font-size: 13px;
    color: #808080;
    padding: 11px 0;
    background: transparent;
    transition: border-color 0.2s;
}

.form__field::placeholder {
    color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
    font-size: 16px;
    cursor: text;
    top: 20px;
}

.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 15px;
    color: #9b9b9b;
    pointer-events: none;
}

.form__field:focus {
    padding-bottom: 6px;
    font-weight: 700;
    border-width: 1px;
    border-image: linear-gradient(to right, #008EDC, #5b9df5);
    border-image-slice: 1;
}

.form__field:focus ~ .form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 16px;
    color: #008EDC;
    font-weight: 700;
}

/* reset input */
.form__field:required, .form__field:invalid {
    box-shadow: none;
}

/* 単一選択 */
.radio-input {
    padding: 15px 0 0;
    display: flex;
    gap: 16px;
}

.radio-b {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-b__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-b__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #008EDC;
    transition: all 0.3s ease;
}

.radio-b__custom {
    position: relative;
    width: 26px;
    height: 26px;
    border: 1px solid #808080;
    border-radius: 0%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.radio-b__custom-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 10px;
    background: linear-gradient(
            0deg,
            rgb(0, 142, 220) 0%,
            rgb(173, 224, 253) 100%
    );
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.radio-b__input:checked + .radio-b__label .radio-b__custom-fill {
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
}

.radio-b__input:checked + .radio-b__label .radio-b__custom {
    border: none;
    transition: all 0.3s ease;
}

.radio-b__input:hover + .radio-b__label .radio-b__custom {
    transform: scale(0.85);
    color: linear-gradient(0deg, rgb(0, 142, 220) 0%, rgb(173, 224, 253) 100%);
}

.radio-b__text {
    font-size: 13px;
    color: #808080;
}
/* 単一選択end */
/* お問い合わせ内容-end */

/* 菜单悬浮展示 */
.mil-has-children-n {
    position: relative;
}

/* 初始隐藏 */
.mil-has-children-n > ul {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    display: block !important;
    top: 100%;
    left: -20px;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 999;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 3px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 悬停时显示子菜单 */
.mil-has-children-n:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 子菜单项 */
.mil-has-children-n ul li a {
    display: block !important;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}

.mil-has-children-n ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.mil-has-children-n ul li{
    margin-right: 0 !important;
}
/* 菜单悬浮展示 end */

.mil-blog-pagination .current {
    background-color: #006be9; /* 当前页高亮色 */
    color: #fff; /* 字体颜色 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
}
.site-wrapper {
    min-height: 100vh; /* 页面至少高为视口 */
    display: flex;
    flex-direction: column;
}

.site-wrapper-70 {
    min-height: 70vh; /* 页面至少高为视口 */
    display: flex;
    flex-direction: column;
}
main {
    flex: 1; /* 中间内容自动撑开 */
}

/* 可选：确保 footer 不压缩 */
footer {
    flex-shrink: 0;
}

/* 表格 */
.c-hr{
    margin: 3px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.border-right-1{
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.row-info {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    margin: 3px 0;
}
.row-info-re {
    display: flex;
    align-items: center;
    background: #daebfaad;
    margin: 3px 0;
}
/* 表格end */

.background-f {
    background: #ffffff;
}
.background-f-re {
    background: #ffffff50;
}
.info-suject {
    background: #f2f2f2;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.text-center{
    text-align:center!important
}

/* 企業情報卡片 */
.card-com {
    padding: 20px;
    width: 330px;
    min-height: 370px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 3px 3px 5px #dadadaa3, -3px -3px 5px #f6f6f6b5;
    transition: 0.3s;
}

.card-com:hover {
    translate: 0 -10px;
}
.card-com:hover .card-com-title {
    transition: all 0.5s ease-out;
    color: #006be9;
}

.card-com-title {
    font-size: 18px;
    font-weight: 600;
    color: #5b9df5;
    margin: 15px 0 0 10px;
}

.card-com-image {
    /*min-height: 170px;*/
    background-color: #fff;
    border-radius: 5px;
    box-shadow: inset 5px 5px 6px #c3c3c330, inset -5px -5px 6px #cfcfcf5c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-com-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}
.card-com-body {
    margin: 13px 0 0 10px;
    color: rgb(31, 31, 31);
    font-size: 15px;
}

.footer {
    float: right;
    margin: 28px 0 0 18px;
    font-size: 13px;
    color: #636363;
}

.by-name {
    font-weight: 700;
}
@media (max-width: 992px) {
    .card-com {
        flex: 1 1 calc(50% - 20px);
    }
}
/* ======================================================= */
/* 手机端布局调整 (屏幕小于 768px) */
/* ======================================================= */
@media (max-width: 768px) {

    /* 1. 调整父容器 (.row) */
    /* 确保容器内的卡片能正确堆叠 */
    .row {
        /* 如果外部的 .row 是 flex 容器，确保它是换行的 */
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 2. 调整卡片 (.card-com) 本身 */
    .card-com {
        /* 强制卡片占据 100% 宽度 */
        width: 100% !important;
        flex: 0 0 100%; /* 覆盖 col-4 或 flex: 1 */
        max-width: 100%;
        margin: 10px 0 !important; /* 清除左右 margin，增加垂直间距 */
        min-height: auto; /* 取消固定最小高度 */
        padding: 15px; /* 调整内边距 */
    }

    /* 3. 调整卡片内部：图片和文字左右分栏 */
    .card-com a {
        display: flex; /* 启用 Flexbox */
        flex-direction: row; /* 保持左右排列 */
        gap: 15px; /* 图片和文字之间的间距 */
        text-decoration: none;
    }

    /* 4. 调整图片区 (.card-com-image) */
    .card-com-image {
        /* 左侧图片占据约 30% - 40% 宽度，并保持固定宽高比 */
        flex: 0 0 120px; /* 固定宽度，例如 120px */
        height: 120px; /* 固定高度，保持正方形 */
        min-height: 120px;
        margin: 0 !important; /* 清除所有 margin */
    }

    /* 5. 调整文字区 (右边容器) */
    .card-com-body-wrapper {
        flex: 1; /* 占据剩余所有空间 */
        display: flex;
        flex-direction: column; /* 内部文字垂直堆叠 */
        justify-content: space-between; /* 确保底部 footer 在最下方 */
    }

    /* 6. 调整文字和标题样式 */
    .card-com-title {
        font-size: 16px;
        margin: 0; /* 清除原有 margin */
    }

    .card-com-body {
        font-size: 14px;
        margin: 5px 0 0 0; /* 调整 margin */
        line-height: 1.4;
        /* 限制内容行数，防止过长 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 最多显示 2 行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 7. 调整底部 (footer) */
    .footer {
        float: none; /* 取消浮动 */
        text-align: right; /* 保持右对齐 */
        margin: 5px 0 0 0;
        font-size: 13px;
    }

    /* 8. 隐藏 PC 端布局中用来占位的 col-4 */
    .row > .col-4[style*="width: 330px"] {
        display: none !important;
    }
}
/* 企業情報卡片 end */

/* ======================================================= */
/* 手机端菜单折叠：纯 CSS 手风琴 (Accordion) */
/* ======================================================= */
/* 1. 默认状态（PC 端） */
.company-menu-toggle-input,
.company-menu-toggle-label {
    display: none;
}
.company-menu-content {
    display: block;
    overflow: visible;
}

@media (max-width: 767px) {
    .company-menu-toggle-label {
        display: block !important;
        cursor: pointer;
        font-size: 23px;
        font-weight: bold;
        color: #333;
        padding-bottom: 8px;
        border-bottom: 1px solid #cce6ff;
        margin-bottom: 12px;
        position: relative;
    }
    .company-menu-toggle-input {
        display: none !important;
    }
    .company-menu-content {
        display: none;
        padding: 0;
    }

    .company-menu-toggle-label::after {
        content: "\f107";
        font-family: "Font Awesome 5 Pro", serif;
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 6px;
        font-size: 1em;
        transition: transform 0.3s;
    }

    .company-menu-toggle-input:checked ~ .company-menu-header .company-menu-toggle-label::after {
        transform: rotate(180deg);
    }

    .company-menu-toggle-input:checked ~ .company-menu-content {
        display: block;
    }

    #mySidebarFloating dt a.pc-visible {
        display: none !important;
    }
    .company-menu-header {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* sidebar 跟随页面滑动*/
.sliding-page {
    display: flex;
    gap: 100px;
    margin: 0 auto;
}

.lefty {
    flex: 1;
}
/* 整体 sidebar */

@media (max-width: 768px) {
    #mySidebarFloating {
        /*width: 271px;*/
        position: relative; /* 初始相对 */
        /*font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;*/
    }

}
@media (min-width: 769px) {
    #mySidebarFloating {
        width: 271px;
        position: relative; /* 初始相对 */
        /*font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;*/
    }
}

/*----样式----*/

/* dt 大菜单名称 */
#mySidebarFloating dt a {
    display: block;
    font-size: 23px;
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #cce6ff;
    margin-bottom: 12px;
}

/* dd 子菜单容器 */
#mySidebarFloating dd ul {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0 0 20px 0;
}

/* li 子菜单项 */
#mySidebarFloating dd li {
    margin-bottom: 10px;
}

/* 子菜单链接 */
#mySidebarFloating dd li a {
    color: #333; /* 默认黑色 */
    text-decoration: none;
    font-size: 15px;
    padding-bottom: 6px;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

/* hover 效果 */
#mySidebarFloating dd li a:hover {
    color: #007acc;
    border-bottom-color: #007acc;
}

/* 当前页面高亮 */
#mySidebarFloating dd li.current a {
    color: #007acc;
    border-bottom-color: #007acc;
    font-size: 17x;
    font-weight:500;
}
/* sidebar 跟随页面滑动 end*/
.mil-tags .mil-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    font-size: 12px;
    background: #eee;
    border-radius: 4px;
    color: #333;
}
#mySidebarFloating ul li.current a {
    color: #007BFF;
    font-weight: 600;
    border-bottom: 2px solid #007BFF;
}
.min-page {
    min-height: 500px;
}
.n-sidebar{
    padding: 2px 8px;
    display: block;
    font-size: 21px;
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
}
/* news 页面侧边栏独立样式 */
.news-sidebar .mil-tags .mil-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    font-size: 12px;
    background: #eee;
    border-radius: 4px;
    color: #333;
}

.news-sidebar ul li.current a {
    color: #FFF;
    font-weight: 600;
    border-bottom: 2px solid #007BFF;
}

.news-sidebar .min-page {
    min-height: 500px;
}

.news-sidebar .n-sidebar{
    padding: 2px 8px;
    display: block;
    font-size: 21px;
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
}

.news-sidebar .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.news-sidebar .tag-item a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 14px;
    color: #333;
    background-color: #f1f1f1;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-sidebar .tag-item a:hover {
    background-color: #d0eaff;
    color: #0078d4;
}

.news-sidebar .tag-item.current a {
    background-color: #0078d4;
    color: #fff;
    font-weight: bold;
}
.neswaa{
    padding-bottom: 3px !important;
}
#mySidebarFloating ul li.current a.neswaa {
    color: #FFF;
}

/* 布局重置：强制手机端为上下堆叠并调整顺序 */
@media (max-width: 768px) {

    .sliding-page {
        display: flex !important;
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
        gap: 0;
    }

    /* 侧边栏（筛选器）移动到最上方 */
    #mySidebarFloating {
        order: 1; /* 第一个显示 */
        width: 100% !important;
        position: relative !important;
        margin-bottom: 30px;
    }

    /* 主内容区（新闻列表）移动到下方 */
    .entry-content.lefty {
        order: 2; /* 第二个显示 */
        width: 100% !important;
        flex: none !important;
        float: none !important;
    }

    /* 隐藏 PC 端内容，显示 SP 端内容 */
    .news-sidebar .pc-visible {
        display: none !important;
    }
    .news-sidebar .sp-visible {
        display: block !important;
    }
    /* 隐藏 Radio Button */
    .news-filter-input {
        display: none;
    }
    /* Tab 容器样式 */
    .news-tabs-container {
        display: flex !important;
        justify-content: flex-start;
        gap: 30px;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        overflow-x: auto;
    }

    .tab-divider-line {
        display: block !important;
        width: 100%;
        height: 1px;
        background-color: #ddd;
        margin-bottom: 20px;
        position: relative;
        top: -1px;
    }

    /* Tab 按钮样式 */
    .news-tab {
        display: block;
        padding: 0 0 10px 0;
        color: #555;
        font-size: 17px;
        font-weight: 500;
        cursor: pointer;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    /* 默认隐藏两个内容区 */
    .news-sidebar .tab-content {
        display: none;
    }

    /* --- Tab 切换逻辑 --- */

    /* 激活 Tab 按钮样式 */
    #filter-tab-cat:checked ~ .news-tabs-container .tab-category,
    #filter-tab-tag:checked ~ .news-tabs-container .tab-tag {
        color: #007BFF;
        border-bottom: 3px solid #007BFF;
    }

    /* 显示 Tab 内容 */
    #filter-tab-cat:checked ~ .filter-content .category-content,
    #filter-tab-tag:checked ~ .filter-content .tag-content {
        display: block;
    }

    /* 修正手机端列表样式 */
    .news-sidebar .category-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .news-sidebar .category-content li a {
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #cce6ff;
        font-size: 15px;
        font-weight: normal;
        display: block;
    }
    /* 确保标签列表样式保持您原有的紧凑样式 */
    .news-sidebar .tag-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
    }
}
/* 布局重置：强制手机端为上下堆叠并调整顺序 end */

/* P Mark / ISMS 页面图文布局修正 (屏幕小于 768px) */
@media (max-width: 768px) {
    .pmark-info {
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
        align-items: center !important;
    }

    .pmark-text {
        flex: none !important;
        width: 100%;
        order: 2;
        box-sizing: border-box;
    }
    .pmark-img {
        flex-shrink: 0 !important;
        width: 100%;
        text-align: center;
        order: 1;
    }
    .pmark-img img {
        width: 80% !important;
        max-width: 350px !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }

    .pmark-text .mil-mb30 {
        margin-bottom: 15px !important;
    }
    .pmark-text .mil-mb50 {
        margin-bottom: 25px !important;
    }
}
/* P Mark / ISMS 页面图文布局修正 (屏幕小于 768px)  end*/

/* DX图片 */
.responsive-centered-img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .responsive-centered-img {
        width: 100%;
    }
}
/* DX图片 end */

/* 集团公司列表响应式布局：PC (左A 右B) | 手机 (上B 下A) */
.responsive-item-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.responsive-item-wrapper .content-a {
    order: 2; /* PC 端顺序：2 */
}

.responsive-item-wrapper .content-b {
    order: 1; /* PC 端顺序：1 */
}

.responsive-item-wrapper .content-a {
    order: 1; /* PC: 左边 (文字) */
    padding-left: 15px;
    padding-right: 15px;
}

.responsive-item-wrapper .content-b {
    order: 2; /* PC: 右边 (图片) */
    padding-left: 15px;
    padding-right: 15px;
}

/* 手机端样式 (屏幕宽度小于 992px，以匹配 col-lg-9/3 的断点) */
@media (max-width: 992px) {

    .responsive-item-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
    }

    /* 元素 B (图片) 移动到上方 */
    .responsive-item-wrapper .content-b {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* 元素 A (文字) 移动到下方 */
    .responsive-item-wrapper .content-a {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    .responsive-item-wrapper > [class*="col-lg-"] {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .responsive-item-wrapper .center-all {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .responsive-item-wrapper .center-all .col-md-4,
    .responsive-item-wrapper .center-all .col-lg-12 {
        width: auto !important;
        max-width: 100%;
    }
}
/* 手机端样式 end */
/* 三棱锥动画尺寸调整 (屏幕小于 768px) */
@media (max-width: 768px) {

    .mil-s-3 {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    #pyramidCanvas {
        width: 100% !important;
        height: 100% !important;
    }
}
/* 三棱锥动画尺寸调整end */

/* ================ 会社沿革时间轴 ================ */

/* 最终时间轴样式 (完美居中和堆叠修正) */
.timeline {
    position: relative;
    width: 660px;
    max-width: 90%;
    margin: 20px auto;
    padding: 1em 0;
    list-style-type: none;
}

/* 时间轴中线 */
.timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: " ";
    display: block;
    width: 4px;
    height: 100%;
    margin-left: -2px;
    background: #c0c0c0;
    background: linear-gradient(
            to bottom,
            rgba(80, 80, 80, 0) 0%,
            #c0c0c0 8%,
            #c0c0c0 92%,
            rgba(80, 80, 80, 0) 100%
    );
    z-index: 5;
}

/* 列表项和圆点 */
.timeline li {
    padding: 1.5em 0;
    position: relative;
    z-index: 10;
}

/* 圆点 (li:before) */
.timeline li:before {
    content: " ";
    position: absolute;
    top: 50%;
    left: 50%;

    display: block;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);

    background: #fff;
    border-radius: 10px;
    border: 4px solid #007acc;
    z-index: 15;
}

.timeline li:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
/* 左右两侧容器 (PC) */
.direction-l,
.direction-r {
    position: relative;
    width: 300px;
    box-sizing: border-box;
}

.direction-l {
    float: left;
    text-align: right;
}

.direction-r {
    float: right;
}

.flag-wrapper {
    position: relative;
    display: inline-block;
}

.flag {
    position: relative;
    display: inline;
    background: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 600;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 移除原始模板中的圆点伪元素，改用 li:before */
.direction-l .flag:before,
.direction-r .flag:before {
    content: none;
}


/* 箭头颜色 */
.direction-l .flag:after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    height: 0;
    width: 0;
    margin-top: -8px;
    border: solid transparent;
    border-left-color: #fff;
    border-width: 8px;
    pointer-events: none;
    z-index: 16; /* 确保箭头在圆点之上 */
}

.direction-r .flag:after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    height: 0;
    width: 0;
    margin-top: -8px;
    border: solid transparent;
    border-right-color: #fff;
    border-width: 8px;
    pointer-events: none;
    z-index: 16; /* 确保箭头在圆点之上 */
}

/* 描述框 */
.desc {
    margin: 1em 0 0 0;
    font-size: 0.9em;
    line-height: 1.5em;
    padding: 10px;
    border-radius: 4px;
    position: relative; /* 关键：赋予 desc 堆叠上下文 */
    z-index: 6; /* 确保高于中线 z-index: 5 */
}

.direction-r .desc {
    margin: 1em 0 0 0;
}

/* ================ Timeline Media Queries (Mobile) ================ */

@media screen and (max-width: 660px) {
    .timeline {
        width: 100%;
        padding: 4em 10px 1em 10px;
    }

    /* 轴线移动到左侧 */
    .timeline:before {
        left: 20px;
        margin-left: 0;
    }

    /* 左右元素改为单列堆叠 */
    .direction-l,
    .direction-r {
        float: none;
        width: 100%;
        text-align: left;
        padding-left: 40px; /* 增加左侧内边距 */
    }

    /* 圆点定位到左侧轴线 */
    .timeline li:before {
        left: 12px; /* 覆盖 left: 50% */
        transform: translate(-50%, -50%); /* 保持居中计算 */
    }


    .flag-wrapper {
        text-align: left;
        padding-left: 10px;
    }

    .flag {
        box-shadow: none;
    }

    /* 箭头 (after) 调整为指向下方 (手机端单列) */
    .direction-l .flag:after,
    .direction-r .flag:after {
        left: 30px; /* 箭头移动到左侧轴线右边 */
        top: 100%;
        right: auto;
        margin-left: 0;
        margin-top: 0;
        border-bottom-color: transparent;
        border-top-color: #fff;
        z-index: 16;
    }

    .desc {
        margin: 1em 10px 0 10px; /* 修正 margin, 确保描述框不贴边 */
    }
}
/* ================ 会社沿革时间轴 end ================ */

/* 动画定义：bggradient */

@keyframes bggradient {
    0% {
        background-position: 0% 50%; /* 从左侧中间开始 */
    }
    100% {
        background-position: 100% 50%; /* 移动到右侧中间 */
    }
}

/* 兼容旧的 Webkit 浏览器 */
@-webkit-keyframes bggradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
/* 动画定义：bggradient end */

/* partner 選ばれる理由 */
.reason{
    background: #ecf2f5;
    padding-top: 0;
}
.reason__list{
    margin-top: 30px;
}
.reason__item{
    margin-bottom: 30px;
}
.reason__item__head{
    display: flex;
    padding: 0 20px;
}
.reason__item__num{
    font-family: "Crimson Text", serif;
    display: inline-block;
    color: #006be9;
    font-size: 4rem;
    padding-right: 16px;
    position: relative;
    font-style: italic;
}
.reason__item__num::after{
    position: absolute;
    content: '';
    right: -57px;
    top: 60px;
    width: 99px;
    height: 1px;
    background: #006be9;
    transform: rotate(-50deg);
}
.reason__item__ttl{
    padding-top: 69px;
}
.reason__item__ttl .ttl1{
    color: #006be9;
    font-size: 2.2rem;
    line-height: 1.2;
}
.reason__item__ttl .ttl2{
    font-size: 1.5rem;
    line-height: 1.77;
    margin-top: 10px;
}
.reason__item__main{
    max-width: 1100px;
    width: 100%;
    margin: 15px auto 0;
}
.reason__item__img{
    max-width: 480px;
    width: 100%;
    margin: 0 auto 15px;
}
.reason__item__txt{
    font-size: 1.5rem;
    line-height: 2;
}
.reason__item__txt span{
    background: #b2faff;
    font-weight: 600;
}
.reason__catch{
    text-align: center;
    font-size: 2rem;
    line-height: 1.65;
    margin-bottom: 20px;
}
.reason .cv__catch{
    color: #006be9;
    text-align: center;
    font-size: 1.8rem;
}

/* partner 選ばれる理由 end */
@media (max-width: 992px) {
    .mil-text-pad {
        padding: 0;
    }
}

/* ========== 主页用的背景 ========== */
.section-bg-wrapper {
    width: 100%;
    background-repeat: no-repeat;
}

.bg-style-1 {
    background-size: contain;
    background-position: left top;
}

.bg-style-2 {
    background-size: contain;
    background-position: right center;
}

/* ========== 其他页面用的背景 ========== */
.section-bg-full {
    position: relative;
}

.section-bg-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: var(--bg-image);
    background-repeat: no-repeat;
    z-index: -1;
}

.bg-full-1::before {
    background-size: contain;
    background-position: left top;
}

.bg-full-2::before {
    background-size: contain;
    background-position: right center;
}
/* ============================ */

@media (min-width: 769px) {
    .cer-sc23 {
        position: relative;
        overflow: visible;
    }
    .cer-sc23 img {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        position: relative;
        border-radius: 3px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .cer-sc23 img:hover {
        transform: scale(1.7) translateY(-10px) !important;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        filter: brightness(1.05);
    }
}




/* 1. 默认隐藏错误文案 */
.mil-error-msg {
    display: none;
    color: #ff0000; /* 红色 */
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

/* 2. 只有当 Form 有了 'is-submitted' 类，且 Input 不合法时，才显示后面跟着的错误文案 */
.is-submitted input:invalid ~ .mil-error-msg,
.is-submitted textarea:invalid ~ .mil-error-msg,
.is-submitted select:invalid ~ .mil-error-msg,
.is-submitted input[type="checkbox"]:invalid ~ .form-check-label {
    /* 针对checkbox的特殊处理，或者在checkbox容器下加error-msg */
    display: block;
}

/* 3. 让输入框本身也变红 */
.is-submitted input:invalid,
.is-submitted textarea:invalid {
    border-color: #ff0000 !important;
    background-color: #fff0f0;
}

/* 针对 Checkbox 没勾选时的特殊报错 (根据你代码的结构) */
.is-submitted input[type="checkbox"]:invalid + label {
    color: #ff0000;
}
/* 1. 选项文字变红 */
.is-submitted input[type="radio"]:invalid + label .radio-b__text {
    color: #ff0000 !important;
}

/* 2. 选项圆圈变红 */
.is-submitted input[type="radio"]:invalid + label .radio-b__custom {
    border-color: #ff0000 !important;
    /* 如果你想让圆圈背景也变淡红，可以加下面这行 */
    /* background-color: #fff0f0; */
}
