@charset "utf-8";

/*
 * 作業環境測定ページ専用
 * SEO上の正しい見出し構造を保ちながら、PCの既存デザインとスマホ表示を整える。
 * 共通CSSは変更せず、このページ群だけに適用する。
 */

/* ---------- Header ---------- */
#header .sokutei-site-description {
    margin: 0;
    padding: 0;
    background-color: #0081d0;
    color: #fff;
    font-size: 10px;
    font-weight: normal;
    line-height: 15px;
}

#header .sokutei-site-logo {
    float: left;
    width: 370px;
    margin: 0;
    padding: 0;
}

#header .sokutei-site-logo img {
    display: block;
}

/* ---------- Main content ---------- */
#main {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.sokutei-side-heading,
.sokutei-side-subheading {
    margin: 0;
    padding: 0;
}

.sokutei-side-heading img,
.sokutei-side-subheading img {
    display: block;
}



/* ---------- Breadcrumb / local navigation ---------- */
#main .sokutei-breadcrumb {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 14px;
    color: #68726c;
    font-size: 12px;
    line-height: 1.6;
}

#main .sokutei-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

#main .sokutei-breadcrumb li {
    display: inline;
}

#main .sokutei-breadcrumb li + li:before {
    margin: 0 7px;
    color: #9aa59f;
    content: ">";
}

#main .sokutei-breadcrumb a {
    color: #21744a;
    text-decoration: none;
}

#main .sokutei-breadcrumb a:hover {
    text-decoration: underline;
}

#main .sokutei-local-nav {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: -8px 0 30px;
}

#main .sokutei-local-nav a {
    display: flex;
    box-sizing: border-box;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #bfdacb;
    border-radius: 4px;
    background: #fff;
    color: #17613c;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
}

#main .sokutei-local-nav a:after {
    margin-left: 7px;
    color: #31a56b;
    content: "▼";
    font-size: 10px;
}

#main .sokutei-local-nav a:hover {
    border-color: #5fb887;
    background: #f2faf5;
}

#main .sokutei-page-title {
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    margin: 0 0 24px;
    padding: 27px 24px 23px;
    border: 1px solid #a9d2ba;
    background: #e8f5ed;
    color: #155f3a;
    font-size: 27px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

#main .category {
    clear: both;
    margin-top: 38px;
}

#main .sokutei-section-title {
    display: block;
    clear: both;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 11px 14px 10px;
    border-left: 5px solid #27ad69;
    border-bottom: 1px solid #bad8c8;
    background: #f6fbf8;
    color: #214b37;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
}

#main .txt-wap {
    margin-top: 18px;
}

#main p {
    line-height: 1.8;
}

#main .img240r img {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    border: 1px solid #d8dfdb;
}

#main .sokutei-flow {
    margin-bottom: 0;
    text-align: center;
}

#main .sokutei-flow-image {
    display: block;
    width: 100%;
    max-width: 690px;
    height: auto;
    margin: 0 auto;
}

#main .page-up,
#main .page-back {
    clear: both;
    margin-top: 18px;
    font-size: 12px;
}

#main .page-up {
    text-align: right;
}

#main .page-back {
    margin: -8px 0 18px;
}

#main .page-up a,
#main .page-back a {
    color: #21744a;
    text-decoration: none;
}

#main .page-up a:hover,
#main .page-back a:hover {
    text-decoration: underline;
}

/* ---------- Large legal table ---------- */
.sokutei-table-note {
    display: none;
}

.sokutei-table-scroll {
    width: 100%;
    margin: 0 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sokutei-table-scroll > table {
    width: 100% !important;
    min-width: 690px;
    margin-bottom: 0 !important;
}

/* Certificate section: keep the existing body text, but separate guidance from contact information. */
#main .sokutei-cert-section .txt-wap {
    padding: 4px 0 0;
}

#main .sokutei-cert-section table.privacy2 {
    margin-top: 22px;
}

/* ---------- Certificate navigation ---------- */
.sokutei-cert-summary {
    float: right;
    box-sizing: border-box;
    width: 240px;
    margin: 0 0 15px 18px;
    padding: 12px;
    border: 1px solid #d5e4db;
    background: #fbfdfc;
}

.sokutei-cert-nav {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sokutei-cert-thumb {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    padding: 7px 5px 6px;
    border: 1px solid #cbd8d0;
    background: #fff;
    color: #17613c;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.sokutei-cert-thumb:hover {
    border-color: #28a967;
    background: #f2faf5;
    color: #155f3a;
}

.sokutei-cert-thumb img {
    display: block;
    width: 52px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 5px;
    border: 1px solid #c4ccc7;
}

.sokutei-cert-thumb span {
    display: block;
    font-size: 10px;
    line-height: 1.35;
}

.sokutei-cert-caption {
    margin: 9px 0 0 !important;
    color: #555;
    font-size: 11px;
    line-height: 1.5 !important;
    text-align: center;
}

#main .sokutei-cert-text {
    width: 430px;
}

/* ---------- Certificate detail pages ---------- */
#main .sokutei-subpage-lead {
    margin: -10px 0 14px;
    color: #64716a;
    font-size: 13px;
}

#main .sokutei-cert-nav-detail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

#main .sokutei-cert-nav-detail .sokutei-cert-thumb {
    padding: 9px 6px 7px;
}

#main .sokutei-cert-nav-detail .sokutei-cert-thumb img {
    width: 58px;
}

#main .sokutei-cert-nav-detail .sokutei-cert-thumb span {
    font-size: 11px;
}

#main .sokutei-cert-nav-detail .is-current {
    border: 2px solid #299f63;
    background: #edf8f1;
    color: #155f3a;
    font-weight: bold;
}

#main .sokutei-cert-main {
    box-sizing: border-box;
    width: 100%;
    padding: 14px;
    border: 1px solid #d5dcd8;
    background: #f8faf9;
    text-align: center;
}

#main .sokutei-cert-main img {
    display: block;
    width: 600px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid #8d9690;
    background: #fff;
}

/* ---------- Contact block ---------- */
#main table.privacy2 {
    width: 100% !important;
}

/* ---------- Smartphone ---------- */
@media screen and (max-width: 760px) {
    html,
    body {
        min-width: 0 !important;
        width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    div#stage,
    #header,
    div#content,
    #gnavi,
    #foot01,
    #copyright {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }

    #header .sokutei-site-description {
        box-sizing: border-box;
        width: 100%;
        padding: 2px 10px;
        line-height: 1.5;
    }

    #header .sokutei-site-logo {
        float: none;
        box-sizing: border-box;
        width: 100%;
        padding: 8px 12px;
        background: #fff;
    }

    #header .sokutei-site-logo img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    #gnavi ul.menu {
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    #gnavi ul.menu li[class^="gmenu"] {
        box-sizing: border-box;
        width: 50% !important;
        height: 40px !important;
        background-size: 100% 40px !important;
        background-repeat: no-repeat !important;
    }

    #gnavi ul.menu li[class^="gmenu"] a {
        box-sizing: border-box;
        width: 100% !important;
        height: 40px !important;
        background-size: 100% 40px !important;
        background-repeat: no-repeat !important;
    }

    div#content {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 0 12px;
    }

    div#main {
        order: 1;
        float: none;
        box-sizing: border-box;
        width: 100%;
        margin: 20px 0 0;
        font-size: 14px;
        line-height: 1.75;
    }

    div#side {
        order: 2;
        float: none;
        width: 250px;
        max-width: 100%;
        margin: 28px auto 30px;
    }

    #content > .clear {
        order: 3;
    }


    #main .sokutei-breadcrumb {
        margin-bottom: 11px;
        font-size: 11px;
        line-height: 1.7;
    }

    #main .sokutei-breadcrumb li + li:before {
        margin: 0 5px;
    }

    #main .sokutei-local-nav {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: -5px 0 25px;
    }

    #main .sokutei-local-nav a {
        min-height: 44px;
        padding: 9px 10px;
        font-size: 14px;
    }

    #main .sokutei-page-title {
        min-height: 0;
        margin-bottom: 20px;
        padding: 20px 14px 18px;
        font-size: 22px;
        line-height: 1.45;
    }

    #main .category {
        margin-top: 28px;
    }

    #main .sokutei-section-title {
        padding: 10px 11px 9px;
        font-size: 18px;
        line-height: 1.5;
    }

    #main .txt-wap {
        margin-top: 16px;
    }

    #main .img240r,
    #main .txt430l,
    #main .sokutei-cert-text {
        float: none;
        box-sizing: border-box;
        width: 100%;
    }

    #main .img240r {
        margin: 0 0 17px;
        text-align: center;
    }

    #main .img240r img {
        width: 240px;
        max-width: 100%;
        margin: 0 auto;
    }

    #main ul.lstg {
        box-sizing: border-box;
        width: 100%;
    }

    .sokutei-table-note {
        display: block;
        margin: 0 0 7px !important;
        padding: 7px 9px;
        background: #f1f7f3;
        color: #4a6255;
        font-size: 12px;
        line-height: 1.5 !important;
    }

    .sokutei-table-scroll {
        box-sizing: border-box;
        width: 100%;
        padding-bottom: 6px;
        border-right: 1px solid #e2e2e2;
        border-left: 1px solid #e2e2e2;
    }

    #main .sokutei-flow-image {
        width: 100%;
        height: auto;
    }

    .sokutei-cert-summary {
        float: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto 20px;
        padding: 12px;
    }

    .sokutei-cert-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sokutei-cert-thumb img {
        width: 64px;
    }

    .sokutei-cert-thumb span {
        font-size: 11px;
    }

    #main .sokutei-subpage-lead {
        margin-top: -12px;
    }

    #main .sokutei-cert-nav-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 18px;
    }

    #main .sokutei-cert-main {
        padding: 8px;
    }

    #main table.privacy2,
    #main table.privacy2 tbody,
    #main table.privacy2 tr,
    #main table.privacy2 th,
    #main table.privacy2 td {
        display: block;
        box-sizing: border-box;
        width: 100% !important;
    }

    #main table.privacy2 th,
    #main table.privacy2 td {
        padding: 10px !important;
    }

    #main table.privacy2 .f-18 {
        font-size: 16px !important;
        line-height: 1.6;
    }

    /* The current footer content stays unchanged in this step; only make it fit mobile. */
    #footer {
        box-sizing: border-box;
        width: 100%;
    }

    #footer #foot01 {
        padding: 0 12px;
    }

    #footer .ftadd {
        float: none;
        width: 180px;
        max-width: 100%;
        margin: 0 auto 16px;
    }

    #footer .ftadd img {
        max-width: 100%;
        height: auto;
    }

    #footer .ftlink {
        display: flex;
        flex-wrap: wrap;
        box-sizing: border-box;
        width: 100%;
        justify-content: flex-start;
    }

    #footer .flbox {
        box-sizing: border-box;
        width: 50%;
        min-height: 0;
        margin: 0 0 18px;
        padding: 0 8px;
    }

    #copyright {
        box-sizing: border-box;
        padding: 8px 10px 12px;
        font-size: 10px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    #main .sokutei-page-title {
        font-size: 21px;
    }

    #main .sokutei-section-title {
        font-size: 17px;
    }

    #footer .flbox {
        width: 100%;
    }
}

/* Keep anchored headings comfortably below the top edge. */
#main .category[id] {
    scroll-margin-top: 14px;
}

/* ---------- Step 6: contact / related links / compact mobile footer ---------- */
.sokutei-related-title,
.sokutei-mobile-footer {
    display: none;
}

#main .sokutei-contact-card {
    box-sizing: border-box;
    width: 100%;
    margin: 22px 0 0;
    padding: 20px 18px;
    border: 1px solid #bfdacb;
    border-radius: 4px;
    background: #f7fbf8;
    text-align: center;
}

#main .sokutei-contact-card-detail {
    margin-top: 22px;
}

#main .sokutei-contact-title {
    margin: 0 0 7px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
}

#main .sokutei-contact-phone {
    margin: 0 0 5px;
    font-size: 27px;
    font-weight: bold;
    line-height: 1.25;
}

#main .sokutei-contact-phone a {
    color: #17613c;
    text-decoration: none;
}

#main .sokutei-contact-phone a:hover,
#main .sokutei-contact-phone a:focus {
    text-decoration: underline;
}

#main .sokutei-contact-hours {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

@media screen and (max-width: 760px) {
    /* info-kkと同じ考え方で、PCのサイドバーを本文後の関連リンクとして簡潔に見せる。 */
    .sokutei-related-title {
        display: block;
        box-sizing: border-box;
        width: 250px;
        max-width: 100%;
        margin: 0 auto 10px;
        padding: 8px 10px;
        border-left: 4px solid #0786c9;
        background: #eef8fd;
        color: #075f92;
        font-size: 17px;
        font-weight: bold;
        line-height: 1.4;
    }

    /* メインページだけ、法人向けサービス内の移動手段を関連リンクとして残す。 */
    #side.sokutei-main-side .sbox4g {
        display: block;
        width: 250px;
        max-width: 100%;
        margin: 0 auto;
    }

    #side.sokutei-main-side .sokutei-health-box,
    #side.sokutei-main-side .sokutei-related-links,
    #side.sokutei-main-side .sbox3 {
        display: none;
    }

    /* 証書詳細ページでは、スマホのサイドメニューは表示しない。 */
    #side.sokutei-detail-side {
        display: none;
    }

    #main .sokutei-contact-card {
        padding: 18px 12px;
    }

    #main .sokutei-contact-phone {
        font-size: 27px;
    }

    /* info-kkと同じく、スマホでは詳細なPC用フッターを省略する。 */
    #footer {
        padding-top: 0;
    }

    #footer #foot01 {
        display: none;
    }

    .sokutei-mobile-footer {
        display: block;
        box-sizing: border-box;
        width: 100%;
        padding: 18px 12px 14px;
        background: #f5f5f5;
        text-align: center;
    }

    .sokutei-mobile-footer-name {
        margin: 0 0 12px;
        color: #333;
        font-size: 13px;
        font-weight: bold;
        line-height: 1.55;
    }

    .sokutei-mobile-footer ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sokutei-mobile-footer li {
        display: inline-block;
        margin: 3px 4px;
        font-size: 12px;
        line-height: 1.5;
    }

    .sokutei-mobile-footer li + li:before {
        margin-right: 8px;
        color: #999;
        content: "|";
    }

    .sokutei-mobile-footer a {
        color: #17613c;
        text-decoration: none;
    }

    #copyright {
        box-sizing: border-box;
        width: 100% !important;
        padding: 9px 10px 12px;
        background: #f5f5f5;
        font-size: 10px;
        line-height: 1.5;
        text-align: center;
    }
}
