/* Quality assurance page (品質保証体制). */

/* Prevent any qa- descendant from busting the layout width.
   Applied to both qa-title-band-wrap (outside main) and qa-main-wrap +
   inner .ab-main since inside .ab-body-layout flex, a child can push it wider. */
.qa-title-band-wrap,
.qa-main-wrap,
.qa-main-wrap .ab-main {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;      /* modern; no scroll-container side effects */
    box-sizing: border-box;
}
@supports not (overflow-x: clip) {
    .qa-title-band-wrap,
    .qa-main-wrap,
    .qa-main-wrap .ab-main {
        overflow-x: hidden;
    }
}

.qa-main-wrap .qa-page-intro,
.qa-main-wrap .qa-section,
.qa-main-wrap .qa-cert-item,
.qa-main-wrap .qa-cert-row,
.qa-main-wrap .qa-cert-text,
.qa-main-wrap .qa-checklist,
.qa-main-wrap .qa-future,
.qa-main-wrap .qa-future-list,
.qa-main-wrap .qa-pt-table-wrap,
.qa-main-wrap .qa-org-chart {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.qa-main-wrap img,
.qa-title-band-wrap img { max-width: 100%; height: auto; }

/* Force long unbroken tokens (URLs, IDs, ISO codes) to wrap. */
.qa-title-band,
.qa-page-title,
.qa-section-title,
.qa-num-heading,
.qa-text,
.qa-intro-body,
.qa-cert-text p,
.qa-checklist-item,
.qa-future-text,
.qa-iso-table td,
.qa-pt-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.qa-pt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.qa-title-band-wrap {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 40px;
}

/* Header/breadcrumb/body share the same horizontal grid. */
.sn-breadcrumb-wrap,
.ab-body-layout {
    padding-right: 40px;
    padding-left: 40px;
}
.qa-title-band {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    background: #4DB1AF;
    color: #fff;
    font-size: 26px; font-weight: 700;
    line-height: 1.3;
    padding: 18px 48px 18px 28px;
    margin: 0;
}

.qa-page-intro {
    margin-bottom: 25px;
}
.qa-page-title {
    font-size: 22px; font-weight: 700; color: #008F8D;
    line-height: 1.6; margin: 0 0 18px;
}
.qa-intro-body { font-size: 15px; color: #333F50; line-height: 1.9; margin: 0; }

.qa-section { margin-bottom: 25px; }
.qa-section-title {
    font-size: 20px; font-weight: 700; color: #333F50;
    border-bottom: 2px solid #008F8DB2;
    padding-bottom: 2px;
    margin: 0 0 28px;
}

.qa-num-heading {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; color: #333F50;
    border-bottom: 2px solid #D1E8E7;
    padding: 0 12px;
    margin: 32px 0 18px;
    position: relative;
}

.qa-num-heading::before {
    --padding: 5px;
    content: "";
    background: #008F8D;
    width: 6px;
    height: calc(80% - var(--padding));
    position: absolute;
    left: 0;
    bottom: var(--padding);
}

.qa-num { color: #333F50; font-weight: 700; }
.qa-section .qa-cert-item:first-of-type .qa-num-heading { margin-top: 0; }

.qa-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: 16px; line-height: 24px;
    color: #061C3D;
    margin: 0 0 18px;
}

.qa-cert-item { margin-bottom: 25px; }
.qa-cert-row {
    display: flex; gap: 28px; align-items: flex-start;
}
.qa-cert-img {
    flex: 0 0 165px;
    width: 165px; height: auto;
    border: 2px solid #BFE3E2;
    border-radius: 12px;
    background: #fff;
}
.qa-cert-text { flex: 1; }
.qa-cert-text p {
    font-size: 15px; color: #333F50; line-height: 1.9;
    margin: 0 0 16px;
}
.qa-cert-text p:last-child { margin-bottom: 0; }

/* border-collapse: separate is required — collapse drops border-radius. */
.qa-iso-table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px; margin-top: 18px;
    table-layout: fixed;
}
.qa-iso-table th {
    background: #008F8D; color: #fff;
    font-weight: 700; padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #fff;
    width: 140px; white-space: nowrap;
}
.qa-iso-table tr:last-child th { border-bottom: none; }
.qa-iso-table td {
    padding: 10px 16px;
    border: 1px solid #D9E2EC;
    border-top: none;
    color: #333F50; line-height: 1.6;
    background: #fff;
}
.qa-iso-table tr:first-child td { border-top: 1px solid #D9E2EC; border-top-right-radius: 12px; }
.qa-iso-table tr:last-child td  { border-bottom-right-radius: 12px; }
.qa-link-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: #008F8D;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: 16px; line-height: 24px;
    text-decoration: none;
}
.qa-link-btn .icon-leave { flex: 0 0 24px; width: 24px; height: 24px; }
.qa-link-btn:hover { text-decoration: underline; }

.qa-checklist-intro {
    font-size: 15px; color: #333F50; line-height: 1.9;
    margin: 28px 0 18px;
}
.qa-checklist {
    background: #EBF5F0;
    border-radius: 10px;
    padding: 28px 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 32px;
}
.qa-checklist-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 700; color: #333F50;
    line-height: 1.5;
}
.qa-check-icon {
    flex: 0 0 24px;
    width: 24px; height: 24px;
}

.qa-pt-source {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: 16px; line-height: 24px;
    color: #061C3D;
    margin: 0 0 18px;
}
.qa-pt-table-wrap {
    overflow-x: auto; margin-bottom: 25px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.06);
    border-radius: 12px;
}
/* border-collapse: separate is required — collapse drops border-radius. */
.qa-pt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #EAECF0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px; min-width: 560px;
    table-layout: fixed;
}
.qa-pt-table th {
    background: #008F8D; color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: -0.02em;
    padding: 16px 24px; text-align: left;
    border: 1px solid #EAECF0;
}
.qa-pt-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #EAECF0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; font-size: 16px; line-height: 24px;
    color: #101828;
    vertical-align: top;
}
.qa-pt-table th:nth-child(1), .qa-pt-table td:nth-child(1) { width: 31.2%; }
.qa-pt-table th:nth-child(2), .qa-pt-table td:nth-child(2) { width: 31.2%; }
.qa-pt-table th:nth-child(3), .qa-pt-table td:nth-child(3) { width: 37.6%; }
.qa-pt-table tr:last-child td { border-bottom: none; }

.qa-org-chart { display: flex; justify-content: center; margin-top: 18px; }
.qa-org-chart img { max-width: 700px; width: 100%; height: auto; }

.qa-future { text-align: center; }
.qa-future-title {
    font-size: 36px; font-weight: 700; color: #008F8D;
    margin: 0 0 12px;
}
.qa-future-sub {
    font-size: 28px; font-weight: 700; color: #333F50;
    margin: 0 0 25px;
}
.qa-future-text {
    font-size: 15px; color: #333F50; line-height: 1.9;
    margin: 0 0 25px;
}
.qa-future-list {
    background: #EBF5F0;
    border-radius: 12px;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}

@media (max-width: 991px) {
    .qa-title-band-wrap,
    .sn-breadcrumb-wrap,
    .ab-body-layout {
        padding-right: 20px;
        padding-left: 20px;
    }
    .qa-title-band-wrap { margin-top: 20px; }
    .qa-title-band { font-size: 22px; padding: 16px 40px 16px 24px; }
    .qa-section { margin-bottom: 40px; }
    .qa-checklist { padding: 24px 28px; gap: 14px 24px; }
    .qa-future-list { padding: 26px 32px; }
    .qa-future-title { font-size: 30px; }
    .qa-future-sub   { font-size: 24px; }
}

@media (max-width: 900px) {
    .qa-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .qa-title-band { font-size: 20px; padding: 14px 28px 14px 20px; }

    .qa-page-intro { margin-bottom: 18px; }
    .qa-page-title { font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
    .qa-intro-body { font-size: 14px; line-height: 1.75; }

    .qa-section { margin-bottom: 32px; }
    .qa-section-title { font-size: 17px; margin: 0 0 20px; }
    .qa-num-heading { font-size: 15px; padding: 0 10px; margin: 24px 0 14px; gap: 8px; }
    .qa-text { font-size: 14px; line-height: 1.75; margin: 0 0 12px; }

    .qa-cert-item { margin-bottom: 28px; }
    .qa-cert-row  { flex-direction: column; gap: 18px; }
    .qa-cert-img  { flex: 0 0 auto; width: 140px; }
    .qa-cert-text p { font-size: 14px; line-height: 1.75; margin: 0 0 12px; }

    /* iso-table shrinks with table-layout:fixed; pt-table scrolls horizontally. */
    .qa-iso-table { font-size: 13px; table-layout: fixed; }
    .qa-iso-table th { padding: 8px 10px; width: 90px; min-width: 0; white-space: normal; word-break: break-word; }
    .qa-iso-table td { padding: 8px 10px; word-break: break-word; }
    .qa-pt-table  { font-size: 13px; }
    .qa-pt-table th, .qa-pt-table td { padding: 10px 12px; }
    .qa-pt-source { font-size: 13px; margin: 0 0 10px; }

    .qa-checklist { padding: 18px 20px; gap: 12px; border-radius: 8px; }
    .qa-checklist-item { font-size: 14px; gap: 10px; }
    .qa-checklist-intro { font-size: 14px; margin: 20px 0 14px; }
    .qa-check-icon { flex-basis: 20px; width: 20px; height: 20px; }

    .qa-future-title { font-size: 24px; }
    .qa-future-sub   { font-size: 20px; line-height: 1.4; margin: 0 0 14px; }
    .qa-future-text  { font-size: 14px; line-height: 1.75; margin: 0 0 18px; }
    .qa-future-list  { padding: 20px 24px; gap: 16px; border-radius: 10px; }

    .qa-link-btn { font-size: 14px; gap: 6px; }
    .qa-link-btn .icon-leave { flex: 0 0 20px; width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .qa-title-band-wrap,
    .sn-breadcrumb-wrap,
    .ab-body-layout {
        padding-right: 16px;
        padding-left: 16px;
    }
    .qa-title-band { font-size: 18px; padding: 12px 20px 12px 16px; }
    .qa-page-title { font-size: 17px; }
    .qa-section { margin-bottom: 28px; }
    .qa-section-title { font-size: 16px; margin: 0 0 16px; }
    .qa-num-heading { font-size: 14px; margin: 20px 0 12px; }
    .qa-cert-img  { width: 100%; max-width: 200px; }
    .qa-checklist { padding: 16px; }
    .qa-checklist-item { font-size: 13px; }
    .qa-future-title { font-size: 20px; }
    .qa-future-sub   { font-size: 18px; }
    .qa-future-list  { padding: 16px 18px; }
}
