@charset "utf-8";
/* CSS Document */

.bg-title.title-cad { background-color: #c62024; }
.bg-title.title-dpf { background-color: #0a327d; }
.bg-title.title-dtf { background-color: #19202d; }
.bg-title.title-tool { background-color: #1c6118; }
.thumbnail-width {
    max-width: 206px;
    }
    @media (min-width: 992px) {
    .thumbnail-width {
        max-width: 169px;
    }
}
.tag-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    }
    @media (min-width: 576px) {
      .tag-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}
.tag-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 3px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}
.tag-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}
.tag-box span {
    margin-top: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}
input[type="checkbox"]:checked + .tag-box {
    border: 2px solid #c62024;
    background-color: #fff0f0;
}
.badge.bg-bf {
    margin-bottom: 8px;
    padding: 8px 6px 9px 6px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    background-color: #6e6e6e;
    letter-spacing: 1px;
    border-radius: 4px;
}
.bg-series {
    margin-bottom: 2px;
    padding: 8px 10px 9px 10px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    border-radius: 999px;
}
.bg-series.series-cad {
    color: #fff;
    background-color: #c62024;
}
.bg-series.series-dpf {
    color: #fff;
    background-color: #0a327d;
}
.bg-series.series-dtf {
    color: #fff;
    background-color: #19202d;
}
.bg-series.series-tool {
    color: #fff;
    background-color: #1c6118;
}
.product-item a { color: #0c68f0; } /* 背景色とのコントラスト比を 4.68:1 に */
.dtf-link {
    padding: 8px 12px;
    display: block;
    font-weight: bold;
    text-decoration: none;
    background-color: #f8f9fa;
    border: 1px solid #19202d;
    transition: background-color 0.3s, color 0.3s;
}
.dtf-link:hover {
    color: #fff;
    background-color: #19202d;
}

/* リンクラッパーを .container と同じ横幅＆ガターに合わせる */
.dtf-link-wrapper{
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 576px){ .dtf-link-wrapper{ max-width: 540px; } }
@media (min-width: 768px){ .dtf-link-wrapper{ max-width: 720px; } }
@media (min-width: 992px){ .dtf-link-wrapper{ max-width: 960px; } }
@media (min-width: 1200px){ .dtf-link-wrapper{ max-width: 1140px; } }
@media (min-width: 1400px){ .dtf-link-wrapper{ max-width: 1320px; } }

.dtf-link-wrapper > a {
    color: #19202d;
}

/* accordion custom */
    /* コンポーネント作用域：.accordion-custom 内のみ */
    .accordion-custom .accordion-item { border: none; background: transparent; }

    /* 見出しボタン：右寄せ・リンク風 */
    .accordion-custom .accordion-button{
        background: none;
        color: #0c68f0;               /* リンク色 */
        padding: 0.3rem 0.5rem 0.5rem;
        margin-bottom: 1rem;
        font-weight: normal;
        box-shadow: none;
        border: none;
        justify-content: flex-end;    /* 右寄せ */
        width: 100%;
    }
    .accordion-custom .accordion-button:hover{
        background: #e8f1f9;          /* hover背景 */
        color: #0a58ca;
        text-decoration: underline;
    }

    /* 青い矢印（caret）と回転アニメーション */
    .accordion-custom .accordion-button::after{
      margin-left: 0.4em;
      transform: scale(0.7) rotate(0deg);
      transition: transform 0.2s ease-in-out;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%230c68f0' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .accordion-custom .accordion-button:not(.collapsed)::after{
        transform: scale(0.7) rotate(180deg); /* 開いたら上向き */
    }

    /* 開いた状態にもhover背景を適用 */
    .accordion-custom .accordion-button:not(.collapsed):hover{
        background: #e8f1f9;
        color: #0a58ca;
        text-decoration: underline;
    }

    /* 本文の左右は親containerと揃える */
    .accordion-custom .accordion-body{ padding: .75rem 0; }
    .accordion-custom .table{ margin-bottom: 0; }
/* accordion custom ここまで */

/* print */
@media print {
    .print-wrap {
        break-inside: avoid;
        page-break-inside: avoid;
        display: block;
        padding-top: 10mm;
    }
    .product-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    h3 {
        page-break-after: avoid;
        break-after: avoid;
    }
    .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .row > [class*="col-"] {
        flex: 0 0 auto !important;
    }
    .col-md-6 {
        width: 50% !important;
    }
    .col-lg-3 {
        width: 25% !important;
    }
    .col-lg-9 {
        width: 75% !important;
    }
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    .bg-title.title-cad,
    .bg-title.title-dpf,
    .bg-title.title-dtf,
    .bg-title.title-tool {
        color: #000 !important;
        background-color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .badge {
        border: 1px solid black !important;
        color: black !important;
        background-color: transparent !important;
    }
}