@charset "UTF-8";

/**
 * Guide course comparison tables (共通CSS)
 *
 * 対象:
 *  - /user_data/guide.php
 *  - /user_data/guide_huyou.php
 *  - /user_data/guide_jidou.php
 *  - /user_data/guide_sakusei.php
 *
 * v2 の inline CSS（table#course_hikaku, table#course_case, .course_title, .hikaku_title, .align-left）
 * を外部ファイル化し、各ページの body id でスコープしています。
 */

/* 左寄せユーティリティ */
body#guide .align-left,
body#guide-huyou .align-left,
body#guide-jidou .align-left,
body#guide-sakusei .align-left {
    display: block; /* インライン要素だと text-align が効かないため */
    text-align: left;
}

/* 各コース早見表（course_hikaku） */
body#guide table#course_hikaku,
body#guide-huyou table#course_hikaku,
body#guide-jidou table#course_hikaku,
body#guide-sakusei table#course_hikaku {
    display: table;
    width: 100%;
}

body#guide table#course_hikaku td,
body#guide-huyou table#course_hikaku td,
body#guide-jidou table#course_hikaku td,
body#guide-sakusei table#course_hikaku td {
    text-align: center;
    font-size: 13px;
}

/* 作りたい本の使用例からコースを選ぶ（course_case） */
body#guide table#course_case,
body#guide-huyou table#course_case,
body#guide-jidou table#course_case,
body#guide-sakusei table#course_case {
    display: table;
    width: 100%;
}

body#guide table#course_case td,
body#guide-huyou table#course_case td,
body#guide-jidou table#course_case td,
body#guide-sakusei table#course_case td,
body#guide table#course_case th,
body#guide-huyou table#course_case th,
body#guide-jidou table#course_case th,
body#guide-sakusei table#course_case th {
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
}

/* 見出しセル／行見出し */
body#guide table#course_hikaku .course_title,
body#guide-huyou table#course_hikaku .course_title,
body#guide-jidou table#course_hikaku .course_title,
body#guide-sakusei table#course_hikaku .course_title,
body#guide table#course_case .course_title,
body#guide-huyou table#course_case .course_title,
body#guide-jidou table#course_case .course_title,
body#guide-sakusei table#course_case .course_title {
    background: #99cc33;
    color: #fff;
    font-weight: bold;
    border: 1px solid #fff;
    font-size: 14px;
}

body#guide table#course_hikaku .hikaku_title,
body#guide-huyou table#course_hikaku .hikaku_title,
body#guide-jidou table#course_hikaku .hikaku_title,
body#guide-sakusei table#course_hikaku .hikaku_title,
body#guide table#course_case .hikaku_title,
body#guide-huyou table#course_case .hikaku_title,
body#guide-jidou table#course_case .hikaku_title,
body#guide-sakusei table#course_case .hikaku_title {
    font-weight: bold;
    background: #fafafa;
    font-size: 13px;
    text-align: center;
}
body#guide .course-case-course-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

body#guide .course-case-course {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1.4;
}
/* guide.php SP 専用早見表カード */
body#guide .course-hikaku-sp {
    display: none;
}

@media screen and (max-width: 767px) {
    body#guide .wrapper {
        width: 100%;
        max-width: 100%;
    }

    body#guide .guide_frame h3.title {
        width: 100%;
        font-size: 22px;
        white-space: normal;
        padding: 20px 0;
        margin: 0 auto 20px;
        height: 100px;
        overflow: hidden;
    }

    body#guide .guide_frame h3.title:before,
    body#guide .guide_frame h3.title:after {
        width: 4em;
    }

    body#guide h5.guide_midahi {
        font-size: 16px;
        margin: 0 0 12px;
        padding-bottom: 6px;
    }

    body#guide .guide_flexbox_top {
        margin: 12px 0 24px;
    }

    body#guide .course-box-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0 8px;
        box-sizing: border-box;
    }

    body#guide .course-box-margin {
        margin: 0;
    }

    body#guide .course-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        border: 2px solid #99cc33;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
        box-shadow: none;
        box-sizing: border-box;
    }

    body#guide .course-box h4 {
        margin: 0;
        padding: 12px 14px;
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
        background: #419901;
        color: #fff;
    }

    body#guide .course-box h4 .tag-style {
        vertical-align: middle;
    }

    body#guide .course-box p {
        margin: 14px 0 10px;
        font-size: 14px;
        text-align: center;
        color: #419901;
    }

    body#guide .course-box-list .huyou-image,
    body#guide .course-box-list img.course-image {
        display: block;
        width: 90%;
        height: auto;
        margin: 0 auto 10px;
    }

    body#guide .course-box-action,
    body#guide .next-step {
        padding: 0 12px 14px;
    }

    body#guide .next-step {
        margin-top: auto;
    }

    body#guide .course-box-action a,
    body#guide .next-step a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        line-height: 1.5;
        font-weight: bold;
        border-radius: 4px;
        text-align: center;
        text-decoration: none;
        background: #ff8c00;
        border: 1px solid #ff8c00;
        color: #fff;
        box-sizing: border-box;
    }

    body#guide .course-box-action {
        padding-bottom: 12px;
    }

    body#guide .course-box-action a {
        margin: 0;
        background: #419901;
        border-color: #419901;
    }

    body#guide table#course_hikaku {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        margin: 0 auto;
        border: 1px solid #ccc;
    }

    body#guide table#course_hikaku td {
        padding: 8px 4px;
        font-size: 11px;
        line-height: 1.45;
        border: 1px solid #ccc;
        word-break: break-word;
        overflow-wrap: anywhere;
        background-color: #fff;
    }

    body#guide table#course_hikaku .course_title {
        font-size: 11px;
        line-height: 1.35;
    }

    body#guide table#course_hikaku .hikaku_title {
        font-size: 11px;
        line-height: 1.35;
    }

    body#guide table#course_hikaku td.cell-width-25 {
        width: 25%;
    }

    body#guide table#course_hikaku a {
        font-size: 11px;
        line-height: 1.4;
    }

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

    body#guide .course-hikaku-card {
        border: 1px solid #d9e7c7;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    body#guide .course-hikaku-card h6 {
        margin: 0;
        padding: 12px;
        background: #99cc33;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        text-align: center;
        line-height: 1.5;
    }

    body#guide .course-hikaku-card h6 .tag-style {
        display: inline-block;
        margin-left: 4px;
        vertical-align: middle;
    }

    body#guide .course-hikaku-card-image {
        margin: 0;
        padding: 12px;
        text-align: center;
        border-top: 1px solid #eee;
    }

    body#guide .course-hikaku-card-image a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 16px;
        border: 1px solid #419901;
        border-radius: 20px;
        color: #419901;
        font-weight: bold;
        text-decoration: none;
    }

    body#guide .course-hikaku-card dl {
        margin: 0;
    }

    body#guide .course-hikaku-card dl > div {
        display: grid;
        grid-template-columns: 116px 1fr;
        border-top: 1px solid #eee;
    }

    body#guide .course-hikaku-card dt,
    body#guide .course-hikaku-card dd {
        margin: 0;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.6;
    }

    body#guide .course-hikaku-card dt {
        background: #fafafa;
        font-weight: bold;
        color: #333;
    }

    body#guide .course-hikaku-card dd {
        word-break: break-word;
    }

    body#guide .course-hikaku-card-note {
        display: inline-block;
        margin-top: 4px;
        font-size: 11px;
        color: #666;
    }

    body#guide .responsive-table tbody tr {
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 16px;
    }

    body#guide .responsive-table td {
        align-items: stretch;
        min-height: 44px;
    }

    body#guide .responsive-table td::before {
        width: 38%;
        min-width: 110px;
        padding: 12px 10px;
        margin-right: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    body#guide table#course_case td,
    body#guide table#course_case th {
        font-size: 12px;
    }

    body#guide table#course_case td:not(.hikaku_title) {
        padding: 12px 10px;
    }

    body#guide table#course_case.responsive-table {
        width: 100%;
        border-collapse: collapse;
    }

    body#guide table#course_case.responsive-table tbody tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        border: 1px solid #cfcfcf;
        border-radius: 0;
        overflow: hidden;
        background: #fff;
    }

    body#guide table#course_case.responsive-table td {
        display: flex;
        align-items: stretch;
        min-height: 68px;
        padding: 0;
        border-top: 1px solid #cfcfcf;
        font-size: 13px;
        line-height: 1.6;
        text-align: left;
        background: #fff;
    }

    body#guide table#course_case.responsive-table td.hikaku_title {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 52px;
        padding: 14px 12px;
        border-top: none;
        background: #99cc33;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        line-height: 1.5;
        text-align: center;
    }

    body#guide table#course_case.responsive-table td.hikaku_title::before {
        content: none;
    }

    body#guide table#course_case.responsive-table td:not(.hikaku_title)::before {
        content: attr(data-label);
        display: flex;
        align-self: stretch;
        justify-content: center;
        align-items: center;
        width: 38%;
        min-width: 148px;
        padding: 14px 12px;
        margin-right: 0;
        background: #f3f3f3;
        border-right: 1px solid #cfcfcf;
        box-sizing: border-box;
        font-size: 12px;
        font-weight: bold;
        line-height: 1.5;
        color: #333;
        text-align: center;
    }

    body#guide table#course_case.responsive-table td:not(.hikaku_title) {
        padding-right: 12px;
    }

    body#guide table#course_case.responsive-table td[data-label="入稿可能なコース"] {
        align-items: center;
    }

    body#guide .course-case-course-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    body#guide table#course_case.responsive-table .course-case-cell-content,
    body#guide table#course_case.responsive-table .course-case-course-group,
    body#guide table#course_case.responsive-table td[data-label="入稿可能なコース"] > .course-case-course {
        margin-left: 8px;
    }

    body#guide .course-case-course {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        line-height: 1.4;
    }

    body#guide .course-case-cell-content {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.6;
    }

    body#guide table#course_case.responsive-table td[data-label="入稿可能なコース"] .tag-style {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 2px;
        padding: 1px 4px;
        line-height: 1;
        vertical-align: middle;
    }

    body#guide table#course_case.responsive-table td .align-left {
        text-align: left;
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    body#guide .guide_frame h3.title:before,
    body#guide .guide_frame h3.title:after {
        width: 4em;
    }

    body#guide .guide_flexbox_top {
        margin: 10px 0 20px;
    }

    body#guide .course-box-list {
        gap: 12px;
        padding: 0 20px;
    }

    body#guide .course-box h4 {
        font-size: 15px;
        padding: 10px 12px;
    }

    body#guide .course-box p {
        font-size: 14px;
    }

    body#guide .course-box-list .huyou-image,
    body#guide .course-box-list img.course-image {
        width: 90%;
    }

    body#guide .course-box-action a,
    body#guide .next-step a {
        font-size: 12px;
    }

    body#guide .course-box-action,
    body#guide .next-step {
        padding: 0 40px 12px;
    }

    body#guide .course-box-action a,
    body#guide .next-step a {
        padding: 10px 12px;
    }

    body#guide table#course_hikaku td {
        padding: 6px 3px;
        font-size: 10px;
        line-height: 1.4;
    }

    body#guide table#course_hikaku .course_title,
    body#guide table#course_hikaku .hikaku_title,
    body#guide table#course_hikaku a {
        font-size: 10px;
    }

    body#guide table#course_hikaku .course_title .tag-style {
        display: inline-block;
        margin: 0 1px;
        vertical-align: middle;
    }

    body#guide .responsive-table td::before {
        width: 42%;
        min-width: 96px;
        font-size: 11px;
        padding: 10px 8px;
    }

    body#guide table#course_case.responsive-table td {
        min-height: 62px;
        font-size: 12px;
    }

    body#guide table#course_case.responsive-table td.hikaku_title {
        min-height: 48px;
        padding: 12px 10px;
        font-size: 13px;
    }

    body#guide table#course_case.responsive-table td:not(.hikaku_title)::before {
        width: 36%;
        min-width: 136px;
        padding: 40px 3px;
        font-size: 11px;
    }

    body#guide .course-case-course-group {
        gap: 3px;
    }

    body#guide .course-case-course {
        gap: 1px;
    }

    body#guide .course-case-cell-content {
        line-height: 1.5;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    body#guide .wrapper {
        width: 100%;
        max-width: 980px;
        margin: 0 auto;
        padding: 0 16px;
        box-sizing: border-box;
    }

    body#guide .guide_flexbox,
    body#guide .guide_flexbox_top {
        width: 100%;
        left: 0;
        transform: none;
    }

    body#guide .guide_flexbox_top {
        margin: 12px 0 24px;
    }

    body#guide .course-box-margin {
        margin: 0;
    }

    body#guide .course-box-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0 8px;
        box-sizing: border-box;
    }

    body#guide .course-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        border: 2px solid #99cc33;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
        box-shadow: none;
        box-sizing: border-box;
    }

    body#guide .course-box h4 {
        margin: 0;
        padding: 12px 14px;
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
        background: #419901;
        color: #fff;
    }

    body#guide .course-box h4 .tag-style {
        vertical-align: middle;
    }

    body#guide .course-box p {
        margin: 14px 0 10px;
        font-size: 14px;
        text-align: center;
        color: #419901;
    }

    body#guide .course-box-list .huyou-image,
    body#guide .course-box-list img.course-image {
        display: block;
        width: 90%;
        height: auto;
        margin: 0 auto 10px;
    }

    body#guide .course-box-action,
    body#guide .next-step {
        padding: 0 12px 14px;
    }

    body#guide .next-step {
        margin-top: auto;
    }

    body#guide .course-box-action a,
    body#guide .next-step a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        line-height: 1.5;
        font-weight: bold;
        border-radius: 4px;
        text-align: center;
        text-decoration: none;
        background: #ff8c00;
        border: 1px solid #ff8c00;
        color: #fff;
        box-sizing: border-box;
    }

    body#guide .course-box-action {
        padding-bottom: 12px;
    }

    body#guide .course-box-action a {
        margin: 0;
        background: #419901;
        border-color: #419901;
    }

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

    body#guide table#course_hikaku,
    body#guide table#course_case {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    body#guide table#course_hikaku td,
    body#guide table#course_case td,
    body#guide table#course_case th {
        font-size: 11px;
        padding: 6px 4px;
        word-break: break-word;
    }

    body#guide table#course_hikaku .course_title,
    body#guide table#course_hikaku .hikaku_title,
    body#guide table#course_hikaku a {
        font-size: 11px;
        line-height: 1.35;
    }

    body#guide .responsive-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    body#guide .responsive-table thead {
        display: table-header-group;
    }

    body#guide .responsive-table tbody tr {
        display: table-row;
        flex-direction: unset;
        border: none;
        margin-bottom: 0;
    }

    body#guide .responsive-table td {
        display: table-cell;
        flex-direction: unset;
        align-items: unset;
        min-height: 0;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        border-top: 1px solid #ccc;
    }

    body#guide .responsive-table td::before {
        content: none;
        display: none;
    }

    body#guide .responsive-table td.hikaku_title::before {
        content: none;
    }

    body#guide table#course_case.responsive-table td:not(.hikaku_title)::before {
        content: none;
        display: none;
    }
}

/* 狭いPC帯（1024〜1231px）: PC見た目を保ちつつ固定幅起因の崩れを防ぐ */
@media screen and (min-width: 1024px) and (max-width: 1231px) {
    body#guide .guide_frame {
        width: 100%;
        max-width: 980px;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    body#guide .guide_flexbox,
    body#guide .guide_flexbox_top {
        width: 100%;
        left: 0;
        transform: none;
    }

    body#guide .guide_flexbox_top {
        margin: 80px 0 24px;
    }

    body#guide .course-box-margin {
        margin: 0;
    }

    body#guide .course-box-list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        padding: 0 8px;
        box-sizing: border-box;
    }

    body#guide .course-box {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        width: auto;
        margin: 0;
    }

    body#guide .course-box-list .huyou-image,
    body#guide .course-box-list img.course-image,
    body#guide .course-box-list img {
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 7px auto;
    }

    body#guide .course-box-action {
        margin-top: auto;
    }

    body#guide .course-box-action a {
        display: block;
        width: 100px;
        margin: 0 10px 0 auto;
        padding: 10px 0;
        text-align: center;
        box-sizing: border-box;
    }

    body#guide .next-step {
        margin: 20px 7px 0;
    }

    body#guide .next-step a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 16px;
        margin: 0;
        text-align: center;
    }
}

/* course-box-list: CTA 下の説明動画 */
body#guide .course-box-video {
    padding: 0 12px 14px;
    box-sizing: border-box;
}

body#guide .course-box .youtube-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

body#guide .course-box .youtube-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (min-width: 1024px) and (max-width: 1231px) {
    body#guide .next-step {
        padding-bottom: 8px;
    }

    body#guide .course-box-video {
        padding: 0 7px 14px;
    }
}

/* 1232px 以上: v2 正本レイアウト（static_pages.css）に動画追加分のみ */
@media screen and (min-width: 1232px) {
    body#guide .course-box {
        width: 350px;
        box-sizing: border-box;
    }

    body#guide .course-box-list .huyou-image {
        width: 350px;
        height: 225px;
        max-width: 100%;
        margin: 7px auto;
    }

    body#guide .course-box-list img.course-image,
    body#guide .course-box-list img {
        width: 200px;
        height: 225px;
        max-width: 100%;
        margin: 7px auto;
    }

    body#guide .next-step a {
        padding: 10px 16px;
    }

    body#guide .course-box-video {
        padding: 0 7px 14px;
        margin: 0 7px 14px;
        box-sizing: border-box;
    }
}














