/* --- 検索フォームエリア --- */
.search-area{
    padding: 20px 30px;
    background: #f8f8f8;
}
.filter-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: #E0E0E0 solid 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-head span{
    font-weight: bold;
    display: block;
    border-left: #0f218b solid 6px;
    padding: 0px 0px 0px 20px;
}
.filter-title span{
    font-weight: bold;
    padding: 0px 0px 0px 30px;
}
.sort-row .filter-title span{
    padding-left:20px;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    padding: 0 10px 0 0;
    border-radius: 4px;
    user-select: none;
    transition: all 0.2s;
}
.checkbox-group label:hover {
    border-color: #94a3b8;
}
.checkbox-group input:checked + span {
    font-weight: bold;
    color: #0f218b;
}

/* ソートセクション */
.sort-row select {
    padding: 6px 12px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}
.filter-title{
    width: 14%;
}
.checkbox-group{
    width: 86%;
}
.sort-row #sort-select{
    width: 15em;
}

/* --- コースレイアウト (既存構造準拠) --- */
.course_block {
    margin-bottom: 40px;
}
/* --- コース一覧のグリッドレイアウト（PC表示：横3つ並び） --- */
.course_list {
    display: grid;
    /* PCでは均等に3列で配置 */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.course_item {
    /* grid化に伴い固定幅(280px)指定を削除し、親要素にフィットさせます */
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    margin-top:0;
}

.course_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #0284c7;
}

.course_item a {
    display: flex;
    flex-direction: column;
    padding: 14px 15px;
    text-decoration: none;
    color: #334155;
    height: 100%;
    box-sizing: border-box;
}

/* --- レスポンシブ対応（スマホ表示：縦1列並び） --- */
@media screen and (max-width: 736px) {
    .search-area{
        padding: 10px;            
     }
    .course_list {
        /* スマホ画面では1列に切り替え */
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .filter-section{
        flex-direction: column;
        align-items:flex-start;
    }
    .filter-title,
    .sort-row #sort-select{
        width: 100%;
    }
    .filter-title span{
        padding: 0;
    }
}
.course_top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 6px;
}
.course_code {
    font-weight: bold;
    color: #475569;
}
.course_title {
    font-weight: bold;
    font-size: 0.92rem;
    margin: 4px 0 10px 0;
    line-height: 1.4;
    color: #1e293b;
    padding-right: 2em;
}
.course_item a{
    text-decoration: none !important;
}
.course_bottom {
    font-size: 0.85rem;
    color: #475569;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    margin-top: auto;
}
.course_details {
    margin: 2px 0;
}
.no-result {
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 1.05rem;
}
/* --- 現在の絞り込み条件表示エリア --- */
.active-filters-area {
    margin: 30px 0 0 0;
}
.active-filter-label {
    font-weight: bold;
    color: #0f172a;
}
.active-filter-tag {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f218b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}
.active-filter-badge{
    font-weight: bold;
}
/* --- ホバー時のテキスト下線を非表示にする設定 --- */
.course_item a,
.course_item a:hover,
.course_item:hover a,
.course_item:hover .course_title,
.course_item:hover .course_details {
    text-decoration: none !important;
}
.print{
    text-align: right;
    margin-top: 20px;
}
.print-btn{
    display: inline-block;
}
.print-btn button::after{
    content:"";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("/files/co/page/newcomer/common/icon-print.png");
    background-size:cover;
}
.print-btn button{
    color: #0f218b;
    font-weight: 500;
    font-size: 12px;
    margin: 0;
    padding: 8px 15px 8px 42px;
    text-align: center;
    background-color: #fff;
    border: solid 1px #0f218b;
    border-radius: 10px;
    position: relative;
}
.course{
    margin-top:40px;
}
@media print {
  .course_item>a:after,.gFootArea_toTop,.print-btn{
    display: none;
    }
  /* 用紙に収まるよう自動縮小する */
  html, body {
    zoom: 80%; /* 全体を80%に縮小（はみ出し具合に合わせて 70%〜90% で調整してください） */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* コースコードなどの長い英数字のテキストあふれを防止 */
  body * {
    word-break: break-all;
  }

  /* 印刷に不要なヘッダー・フッター・印刷ボタンを非表示 */
  header, footer, nav, button, .noprint {
    display: none !important;
  }

  /* ページの余白設定 */
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
}