@charset "UTF-8";

/**
 * Guide PDF page specific CSS (ガイド PDF 専用スタイル)
 *
 * 対象:
 *  - /user_data/guide-pdf.php
 *
 * v2 のスタイルを元に、body#guide-pdf でスコープしています。
 * guide_common.css と組み合わせて使用します。
 */

/* ===============================
 * Guide PDF page specific styles
 * =============================== */

/* PC版とSP版の表示/非表示制御 */
body#guide-pdf .pc {
    display: block;
}

body#guide-pdf .sp {
    display: none;
}

body#guide-pdf li {
    list-style: none;
}

body#guide-pdf .table_wrap {
    margin-top: 50px;
}

body#guide-pdf .guide_frame h3 {
    font-size: 25px;
    font-weight: normal;
    color: #419901;
    border-bottom: none;
    margin: 20px 0;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-wrap: nowrap;
}

body#guide-pdf .guide_frame h3:before,
body#guide-pdf .guide_frame h3:after {
    border-top: 1px solid;
    content: "";
    width: 16em;
}

body#guide-pdf .guide_frame h3:before {
    margin-right: 1em;
}

body#guide-pdf .guide_frame h3:after {
    margin-left: 1em;
}

body#guide-pdf .guide_frame p {
    font-size: 16px;
    line-height: 1.6em;
}

body#guide-pdf h5.guide_midahi {
    color: #419901;
    border-bottom: 1px solid rgba(65, 153, 1, 0.2);
    font-size: 18px;
    font-weight: normal;
    padding-bottom: 8px;
}

body#guide-pdf table.pdf_detail_table {
    table-layout: fixed;
}

/* ===============================
 * guide-pdf page specific detail layout
 * =============================== */

body#guide-pdf .guide-pdf-title {
    display: block;
    margin: 30px auto 0;
}

body#guide-pdf .guide-pdf-intro-text {
    margin-top: 20px;
}

/* PDF判定テーブル - v2のインラインスタイルをCSSクラスで再現 */
/* v2では style="width:100%;margin-top:20px;" がテーブルに指定されている */
body#guide-pdf .guide-pdf-check-table {
    width: 100%;
    margin: 0px auto 20px auto;
    margin-top: 20px;
    border-left: 1px solid #ccc;
    border-collapse: collapse;
    text-align: left;
    display: table;
}

body#guide-pdf .guide-pdf-check-table th {
    padding: 8px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    color: #333;
    background-color: #f0f0f0;
    font-weight: normal;
    text-align: center;
}

body#guide-pdf .guide-pdf-check-table td {
    padding: 16px;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: #ffffff;
    position: relative;
    text-align: left;
}

/* v2では3列目と4列目には特別なスタイルがないが、デフォルトのテーブルスタイルが適用される */
body#guide-pdf .guide-pdf-check-table td:nth-child(3),
body#guide-pdf .guide-pdf-check-table td:nth-child(4) {
    padding: 16px;
    text-align: left;
}

body#guide-pdf .guide-pdf-check-header {
    border-top: 1px solid #ccc;
}

body#guide-pdf .guide-pdf-check-header th {
    background-color: #f0f0f0;
    text-align: center;
    width: 36%;
}

body#guide-pdf .guide-pdf-check-course-header {
    width: 100px;
}

body#guide-pdf .guide-pdf-check-icon {
    padding: 20px;
    text-align: center;
}

body#guide-pdf .guide-pdf-check-judge {
    padding: 20px 50px;
}

body#guide-pdf .guide-pdf-check-header td {
    padding: 8px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: #f0f0f0;
}

body#guide-pdf .guide-pdf-course-text {
    font-size: 14px;
}

body#guide-pdf .guide-pdf-course-text--mb {
    margin-bottom: 10px;
}

body#guide-pdf .pdf-detail-sp-table {
    width: 100%;
    margin-top: 20px;
}

body#guide-pdf .pdf-detail-sp-header {
    border-top: 1px solid #ccc;
}

body#guide-pdf .guide-pdf-warning {
    margin-top: 20px;
    text-align: left;
    font-size: 13px;
}

body#guide-pdf .guide-pdf-detail-heading {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

/* 詳細仕様テーブル - 一般的に見やすいレイアウト */
body#guide-pdf table.pdf_detail_table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    display: table;
}

body#guide-pdf table.pdf_detail_table th {
    padding: 12px 20px;
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
    text-align: left;
    border: 1px solid #ccc;
    width: 30%;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
    display: table-cell;
}

body#guide-pdf table.pdf_detail_table td {
    padding: 12px 20px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    color: #333;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: top;
    display: table-cell;
}

/* リンクのスタイル */
body#guide-pdf .pdf_detail_table a {
    color: #0066cc;
    text-decoration: none;
}

body#guide-pdf .pdf_detail_table a:hover {
    text-decoration: underline;
}

/* strongタグのスタイル */
body#guide-pdf .pdf_detail_table strong {
    font-weight: 600;
    color: #333;
}

body#guide-pdf .guide-pdf-word-break {
    word-break: break-all;
}

body#guide-pdf .guide-pdf-word-break-link {
    word-break: break-all;
}

/* Tag styles for guide-pdf */
body#guide-pdf .tag-style {
    border-radius: 6px;
    color: #FFF;
    margin: 3px;
}

body#guide-pdf .tag-style-black {
    background-color: #333;
    border: 2px solid #333;
}

body#guide-pdf .tag-style-orange {
    background-color: #ff8c00;
    border: 2px solid #ff8c00;
}

body#guide-pdf .tag-style-blue {
    background-color: #00f;
    border: 2px solid #00f;
}

body#guide-pdf .tag-style-green {
    background-color: #006700;
    border: 2px solid #006700;
}

body#guide-pdf .tag-style-red {
    background-color: #f00;
    border: 2px solid #f00;
}

body#guide-pdf .small-font {
    font-size: 13px;
}

body#guide-pdf .extra-small-font {
    font-size: 11px;
}

/* Responsive styles */
@media screen and (max-width: 767px) {
    /* SP版では、PC版を非表示、SP版を表示 */
    body#guide-pdf .pc {
        display: none;
    }

    body#guide-pdf .sp {
        display: block;
    }

    body#guide-pdf .guide_frame h3 {
        font-size: 22px;
        line-height: 1.4;
        padding: 18px 0 14px;
        white-space: normal;
        text-align: center;
        margin: 16px 0 12px;
    }

    body#guide-pdf .guide_frame h3::before,
    body#guide-pdf .guide_frame h3::after {
        width: 0.2em;
    }

    body#guide-pdf .guide-pdf-title,
    body#guide-pdf .guide_img_title {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    body#guide-pdf .guide-pdf-intro-text {
        margin: 12px 0 16px;
        font-size: 14px;
        line-height: 1.8;
    }

    body#guide-pdf .pdf-detail-sp-table {
        width: 100%;
        margin: 0 0 20px;
        border-collapse: collapse;
        table-layout: fixed;
        background: #fff;
        border: 1px solid #d9d9d9;
    }

    body#guide-pdf .pdf-detail-sp-header td {
        padding: 12px 10px;
        background: #f7f7f7;
        text-align: center;
        border-bottom: 1px solid #d9d9d9;
    }

    body#guide-pdf .pdf-detail-sp-table th,
    body#guide-pdf .pdf-detail-sp-table td {
        padding: 12px 10px;
        border-bottom: 1px solid #d9d9d9;
        vertical-align: middle;
        font-size: 14px;
        line-height: 1.6;
    }

    body#guide-pdf .pdf-detail-sp-table th {
        width: 32%;
        background: #f0f0f0;
        text-align: center;
        font-weight: normal;
    }

    body#guide-pdf .pdf-detail-sp-table tr:last-child th,
    body#guide-pdf .pdf-detail-sp-table tr:last-child td {
        border-bottom: none;
    }

    body#guide-pdf .guide-pdf-course-text {
        font-size: 14px;
        line-height: 1.7;
    }

    body#guide-pdf .guide-pdf-course-text--mb {
        margin-bottom: 6px;
    }

    body#guide-pdf .guide-pdf-warning {
        margin-top: 12px;
        margin-bottom: 18px;
        font-size: 12px;
        line-height: 1.7;
        text-align: left;
    }

    body#guide-pdf .guide-pdf-detail-heading {
        margin-top: 24px;
        margin-bottom: 12px;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.3;
    }

    body#guide-pdf table.pdf_detail_table {
        width: 100%;
        margin: 0;
        border: none;
        border-collapse: separate;
        border-spacing: 0 10px;
        table-layout: auto;
        background: transparent;
    }

    body#guide-pdf table.pdf_detail_table tr {
        display: block;
        margin: 0;
    }

    body#guide-pdf table.pdf_detail_table th,
    body#guide-pdf table.pdf_detail_table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    body#guide-pdf table.pdf_detail_table th {
        padding: 10px 12px;
        border: 1px solid #cfcfcf;
        border-bottom: none;
        background: #e9e9e9;
        color: #333;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.5;
        text-align: left;
    }

    body#guide-pdf table.pdf_detail_table td {
        padding: 12px;
        border: 1px solid #cfcfcf;
        background: #fff;
        color: #333;
        font-size: 13px;
        line-height: 1.8;
        text-align: left;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    body#guide-pdf .pdf_detail_table strong {
        display: inline-block;
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1.5;
    }

    body#guide-pdf .guide-pdf-word-break,
    body#guide-pdf .guide-pdf-word-break-link {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    body#guide-pdf .pc {
        display: block;
    }

    body#guide-pdf .sp {
        display: none;
    }

    body#guide-pdf .guide_frame h3:before,
    body#guide-pdf .guide_frame h3:after {
        width: 8em;
    }

    body#guide-pdf .guide-pdf-title {
        max-width: 100%;
        height: auto;
    }

    body#guide-pdf .guide-pdf-check-table {
        width: 100%;
        table-layout: fixed;
    }

    body#guide-pdf .guide-pdf-check-table th,
    body#guide-pdf .guide-pdf-check-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    body#guide-pdf .guide-pdf-check-header td:first-child {
        width: 20%;
    }

    body#guide-pdf .guide-pdf-check-header th:nth-child(2) {
        width: 38%;
    }

    body#guide-pdf .guide-pdf-check-header th:nth-child(3) {
        width: 24%;
    }

    body#guide-pdf .guide-pdf-check-course-header {
        width: 18%;
    }

    body#guide-pdf .guide-pdf-check-icon,
    body#guide-pdf .guide-pdf-check-judge {
        padding: 10px 8px;
        text-align: center;
    }

    body#guide-pdf .guide-pdf-check-icon img {
        display: block;
        width: auto;
        max-width: min(100%, 170px);
        height: auto;
        margin: 0 auto;
    }

    body#guide-pdf .guide-pdf-check-judge img {
        display: block;
        width: auto;
        max-width: min(100%, 300px);
        height: auto;
        margin: 0 auto;
    }

    body#guide-pdf .guide-pdf-course-text {
        font-size: 12px;
    }

    body#guide-pdf table.pdf_detail_table th {
        width: 28%;
        padding: 10px 12px;
        font-size: 13px;
    }

    body#guide-pdf table.pdf_detail_table td {
        padding: 10px 12px;
        font-size: 13px;
        word-break: break-word;
    }
}

