@charset "utf-8";

/* ============================================
   test.css
   test.html専用スタイル
   共通パーツ（header/footer/page-hero/pankuzu/
   contact/btn_contact/sp-br 等）は style.css を使用。

   本ファイルは other_style.css に定義されていた
   3列カード一覧（.cont_list / .list_box）・詳細ボタン
   （.btn_more）・本文テキスト（main_txt）関連のスタイルを
   移植したものです。
   other_style.css側の該当ルールは削除していないため、
   他ページで参照している場合はそのまま動作します。
   ============================================ */

/* 本文テキスト（.content p.main_txt は style.css に共通化済み） */

/* 3列カード一覧（検定一覧） */
.cont_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.cont_list .list_box {
    width: 32%;
    background-color: #EEE;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px 0px;
    border-radius: 5px;
    border: 2px solid #FFF;
    transition: 0.2s linear;
    margin: 0 4px 20px 4px;
}

.cont_list .list_box:hover {
    background-color: #FFF;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 5px 0px;
}

.content .list_box h3 {
    font-size: 16px;
    text-align: center;
    margin-top: 0px;
    padding-right: 0px;
    padding-left: 0px;
    color: #044760;
    background-color: #F9F9F9;
    border-bottom-color: #BBB;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;
    border-bottom-style: dotted;
}

.content .list_box p {
    font-size: 14px;
}

.cont_list .list_box img {
    width: 96%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* 「詳細を見る」ボタン（a.btn_more 基本形は style.css に共通化済み。
   ここでは検定一覧カード内での色違いバリエーションのみ定義） */
.list_box a.btn_more {
    text-align: center;
    text-decoration: none;
    color: #FFF;
    background-color: #002744;
    margin-bottom: 20px;
}

.list_box a.btn_more:hover {
    color: #002744;
    background-color: #FFF;
    border-top-color: #001F35;
    border-right-color: #001F35;
    border-bottom-color: #001F35;
    border-left-color: #001F35;
}

/* ============================================
   レスポンシブ（other_style.css の該当ブレークポイントを移植）
   ============================================ */
@media screen and (max-width: 1100px) {
    .cont_list {
        padding-top: 10px;
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media screen and (max-width: 560px) {
    .cont_list .list_box {
        width: 98%;
    }
}

/* ============================================
   検定詳細ページ（bt.html / lc.html・lcheck.html / to.html / tt.html）用スタイル
   other_style.css に定義されていた 2カラムレイアウト（.clm2）・
   種目比較表（.table_02 / .table_04）・料金表内パーツ（.th-wrap 等）・
   余白ユーティリティ（.mgb50）を移植したものです。
   ============================================ */

/* 2カラムレイアウト（画像＋本文） */
.clm2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin: 15px;
}

.clm2_a {
    flex: 1 1 300px;
}

.clm2_a img {
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px 0px;
}

@media screen and (max-width: 700px) {
    .clm2 {
        flex-direction: column;
        margin: 10px;
        gap: 10px;
    }
}

/* 種目・級別比較表（table_02） */
.content table.table_02 {
    width: 94%;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.content table.table_02 th,
.content table.table_02 td {
    border: solid 1px #E3E3E3;
    padding: 6px 4px;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
}

.content table.table_02 th {
    background: #fbfbfb;
    font-weight: normal;
}

.content table.table_02 th.midashi {
    background-color: #00365e;
    padding: 12px;
    font-size: 18px;
    color: #FFF;
    letter-spacing: 2px;
}

.content table.table_02 th[width] {
    white-space: nowrap;
}

@media screen and (max-width: 700px) {
    .content table.table_02 {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 96%;
    }
    .content table.table_02 th,
    .content table.table_02 td {
        font-size: 12px;
    }
}

/* テックテスト種目表（table_04） */
.content table.table_04 {
    width: 94%;
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.content table.table_04 th,
.content table.table_04 td {
    border: solid 1px #E3E3E3;
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
}

.content table.table_04 th {
    background: #fbfbfb;
    font-weight: normal;
}

.content table.table_04 th.midashi {
    background-color: #00365e;
    padding: 12px;
    font-size: 18px;
    color: #FFF;
    letter-spacing: 2px;
}

@media screen and (max-width: 700px) {
    .content table.table_04 {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 96%;
    }
    .content table.table_04 th,
    .content table.table_04 td {
        font-size: 12px;
    }
}

/* table_02 / table_04 内の折り返しテキスト用（種目説明など） */
.line1 {
    white-space: normal !important;
    line-height: 1.6;
    text-align: left;
    padding: 10px !important;
}

/* 開催日テーブルの月表示（table_01 th.month） */
.content table.table_01 th.month {
    white-space: nowrap;
    font-weight: bold;
}

/* 料金・受講時間表示パーツ（.th-wrap / .th-text / .price-wrap / .price-main の
   基本形は style.css に共通化済み。ここでは検定ページ固有の中央揃え
   モディファイアのみ定義） */
.th-text.th-center {
    align-items: center;
    text-align: center;
}

/* 余白ユーティリティ（.mgb50 は style.css に共通化済み） */

/* セクション区切り線（lesson-section-divider / camp-section-divider に準拠） */
.test-section-divider {
    height: 0;
    border: none;
    border-top: 1px solid #e8f0fa;
    margin: 0;
}

/* ============================================
   検定詳細ページ ヒーローヘッダー／本文グリッド
   fr.html（lesson.css）・ksc.html（camp.css）の
   .lesson-detail__* / .camp-detail__* を
   test.css用に移植したものです。
   ============================================ */

.test-detail__header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaf2fb;
}
.test-detail__badge {
    display: inline-block;
    background: #eaf2fb;
    color: #1E73BE;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.test-detail__title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.test-detail__en {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.content h3.test-detail__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eaf2fb;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    position: static;
    clear: none;
    letter-spacing: normal;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    padding: 10px 14px;
    border-left: 4px solid #0d4a8a;
}
.content h3.test-detail__heading::before {
    display: none;
}
.test-detail__heading i {
    color: #1E73BE;
    font-size: 14px;
}

@media screen and (max-width: 560px) {
    .test-detail__title {
        font-size: 20px;
    }
}

/* 画像＋本文グリッド */
.test-detail__grid {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}
.test-detail__media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.test-detail__media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.test-detail__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 画像＋比較表レイアウト用（bt.html: test-detail__body内にtest-compareを置く場合） */
.test-detail__grid--compare {
    grid-template-columns: 34% 1fr;
    align-items: stretch;
}
.test-detail__grid--compare .test-detail__body {
    justify-content: flex-start;
}
.test-detail__grid--compare .test-detail__heading {
    margin-top: 0;
}
.test-detail__body .test-compare__table {
    width: 100%;
}
.test-detail__body .test-compare__table th,
.test-detail__body .test-compare__table td {
    padding: 8px 6px;
    font-size: 12px;
    line-height: 1.5;
}
.test-detail__body .test-compare__label,
.test-detail__body .test-compare__table tbody th {
    width: 24%;
}
.test-detail__body .test-compare__head {
    padding: 10px 6px;
    font-size: 12px;
}
.test-detail__body .test-compare__head i {
    font-size: 15px;
    margin-bottom: 4px;
}
.test-detail__body .test-compare__head span {
    font-size: 10px;
}

@media screen and (max-width: 1000px) {
    .test-detail__grid--compare {
        grid-template-columns: 40% 1fr;
    }
}
.test-detail__desc p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin: 0 0 16px;
}
.test-detail__desc p:last-child {
    margin-bottom: 0;
}

/* 説明文中の小見出し（テックテストについて／受験資格 など） */
.content h3.test-detail__subhead {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    position: static;
    clear: none;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #0d4a8a;
    margin: 28px 0 12px;
    padding: 0 0 0 12px;
    border-left: 4px solid #1E73BE;
}
.content h3.test-detail__subhead::before {
    display: none;
}
.test-detail__desc .test-detail__subhead:first-child {
    margin-top: 0;
}

/* 受験資格リスト */
.test-detail__qual {
    list-style: none;
    margin: 0;
    padding: 0;
}
.test-detail__qual li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f7fafd;
    border: 1px solid #eaf2fb;
    border-radius: 8px;
    margin-bottom: 10px;
}
.test-detail__qual li:last-child {
    margin-bottom: 0;
}
.test-detail__qual-grade {
    flex: 0 0 auto;
    display: inline-block;
    background: #1E73BE;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.test-detail__qual-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

@media screen and (max-width: 560px) {
    .test-detail__desc .test-detail__subhead {
        font-size: 14px;
        margin: 20px 0 10px;
    }
    .test-detail__qual li {
        padding: 10px 12px;
        gap: 8px;
    }
    .test-detail__qual-grade {
        font-size: 11px;
        padding: 4px 9px;
    }
    .test-detail__qual-text {
        font-size: 12.5px;
    }
}

@media (max-width: 860px) {
    .test-detail__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .test-detail__media img {
        aspect-ratio: 16 / 9;
    }
    .test-detail__body {
        padding: 0 20px;
    }
}
@media screen and (max-width: 560px) {
    .test-detail__desc p {
        font-size: 13px;
        line-height: 1.8;
    }
}

/* ============================================
   検定情報エリア（料金・開催日・時間・種目など）
   fr.html の .lesson-times を移植したものです。
   ============================================ */
.test-times {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 0;
}
.content h3.test-times__title {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eaf2fb;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    position: static;
    clear: none;
    letter-spacing: normal;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 4px solid #0d4a8a;
}
.content h3.test-times__title::before {
    display: none;
}
.test-times__title i {
    color: #1E73BE;
    font-size: 16px;
}
.test-times .sub_txt {
    font-size: 13px;
    color: #555;
}
.test-times table.table_01,
.test-times table.table_02,
.test-times table.table_04 {
    width: 96%;
    margin: 0 auto 24px;
}

/* 背景を白にしたい場合のユーティリティ（camp-bg-white / lesson-bg-white 相当） */
.test-bg-white {
    background: #fff;
}

/* ============================================
   タブ切り替え（スキルチェック方式 / レッスンチェック方式）
   bt.html（バッジテスト）用
   ============================================ */
.test-tabs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.test-tab-nav {
    display: flex;
    gap: 12px;
    margin: 0 0 28px;
}

.test-tab-btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f4f8fc;
    border: 2px solid #eaf2fb;
    border-radius: 10px;
    padding: 14px 10px;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.test-tab-btn__main {
    font-size: 16px;
    font-weight: 700;
    color: #0d4a8a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.test-tab-btn__sub {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.06em;
}

.test-tab-btn:hover {
    background: #eaf2fb;
    border-color: #cfe0f2;
}

.test-tab-btn.is-active {
    background: #0d4a8a;
    border-color: #0d4a8a;
}

.test-tab-btn.is-active .test-tab-btn__main,
.test-tab-btn.is-active .test-tab-btn__main i {
    color: #fff;
}

.test-tab-btn.is-active .test-tab-btn__sub {
    color: #cfe0f2;
}

.test-tab-panel[hidden] {
    display: none;
}

.test-tab-panel {
    animation: testTabFadeIn 0.25s ease;
}

.test-tab-link {
    color: #1E73BE;
    text-decoration: underline;
    cursor: pointer;
}

@keyframes testTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 560px) {
    .test-tabs {
        padding: 0 10px;
    }
    .test-tab-nav {
        gap: 6px;
    }
    .test-tab-btn {
        padding: 10px 4px;
        border-radius: 8px;
    }
    .test-tab-btn__main {
        font-size: 12.5px;
        gap: 4px;
    }
    .test-tab-btn__sub {
        font-size: 9px;
    }
}

/* ============================================
   スキルチェック方式／レッスンチェック方式 比較表
   ============================================ */
.test-compare {
    margin: 4px 0 10px;
}

.test-compare__table {
    width: 96%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.test-compare__table th,
.test-compare__table td {
    border: solid 1px #E3E3E3;
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
}

.test-compare__label {
    width: 20%;
    background: #fbfbfb;
}

.test-compare__table tbody th {
    background: #fbfbfb;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    width: 20%;
}

.test-compare__table td {
    text-align: center;
    color: #444;
}

.test-compare__head {
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.test-compare__head i {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.test-compare__head span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.test-compare__head.is-skill {
    background: #f4bb2e;
    color: #4a2f06;
}

.test-compare__head.is-lesson {
    background: #ffefb0;
    color: #4a2f06;
}

@media screen and (max-width: 700px) {
    .test-compare__table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 96%;
    }
    .test-compare__table th,
    .test-compare__table td {
        font-size: 12px;
        white-space: normal;
    }
    .test-compare__label,
    .test-compare__table tbody th {
        width: auto;
        min-width: 90px;
    }
}

/* ================================================================
   検定一覧ページ (test.html) レイアウト
   lesson.html（lesson.css の .lesson-list-section / .lesson-card 系）
   のデザインを test.html 用に test- プレフィックスで移植したもの。
   ページ上部の .page-hero は共通パーツのため style.css を使用。
   ================================================================ */

/* ① セクション共通（見出し＋本文枠） */
.test-list-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}
.test-list-section__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0fa;
}
.test-list-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.test-list-section__en {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* セクション背景（薄水色帯） */
.test-bg-light {
    background: #f4f8fd;
}

/* ② 検定カードグリッド */
.test-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) {
    .test-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 560px) {
    .test-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* カード */
.test-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.test-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.test-card__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #c9ddf0;
}
.test-card__img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.test-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F59E0B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    z-index: 2;
    line-height: 1.4;
}
.test-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.test-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}
.test-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.test-card__tag {
    font-size: 11px;
    background: #eaf2fb;
    color: #1E73BE;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
}
.test-card__tagred {
    font-size: 11px;
    background: #ffeaea;
    color: #e23b3b;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
}
.test-card__desc {
    font-size: 14px !important;
    color: #555;
    margin: 4px 0 0;
    line-height: 1.55;
    flex: 1;
}
.test-card__btn {
    display: block;
    margin-top: 10px;
    background: #1E73BE;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.test-card__btn:hover {
    background: #155fa0;
    color: #fff;
    text-decoration: none;
}

/* ============================================
   スマホ専用 改行・文字サイズ調整
   ============================================ */
@media screen and (max-width: 560px) {
    .test-list-section__title {
        font-size: 17px;
        line-height: 1.4;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    .test-card__desc {
        font-size: 12px;
    }
}
@media screen and (max-width: 400px) {
    .test-list-section__title {
        font-size: 15px;
    }
}
