@charset "utf-8";
* {
    box-sizing: border-box;
}


/* メイン */
.container {
    width: auto;
    margin: 0;
    padding: 0 20px;
}

.intro {
    margin-bottom: 20px;
}

.intro h2 {
    margin-bottom: 8px;
    color: #245783;
}
.midashi{
	padding-left:10px;
	border-left:15px solid #ffcc00;
	font-size:100%;
}
/* 一覧表 */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.course-table {
    width: 100%;
    font-size: 85%;
    border-collapse: collapse;
    background: #fff;
}

.course-table th,
.course-table td {
    border: 1px solid #ddd;
    padding: 2px 2px;
    text-align: center;
    vertical-align: middle;
}

.course-table th {
    background: #245783;
    color: #fff;
    font-weight: normal;
    white-space: nowrap;
}

/* 講座名は左揃え */
.course-table td.title {
    text-align: left;
    min-width: 150px;
    font-weight: bold;
}

/* 行ごとの背景 */
.course-table tbody tr:nth-child(even) {
    background: #f3f7fb;
}

.course-table tbody tr:hover {
    background: #e8f2fc;
}
.wide_col{
    width: 40%;
}
/* 受講料 */
.fee {
    white-space: nowrap;
    /*font-size: 90%;*/
    font-weight: bold;
    color: #b83232;
}

/* 詳細ボタン */
.detail-button {
    display: inline-block;
    padding: 7px 14px;
    background: #245783;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

.detail-button:hover {
    background: #173d5d;
}
/* ボタン */
.button-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
}

.button-apply {
    background: #218838;
    color: white;
    font-weight: bold;
}

.button-apply:hover {
    background: #17692a;
}

.button-back {
    background: #245783;
    color: white;
}

.button-back:hover {
    background: #173d5d;
}


/* 講座がない場合 */
.no-courses {
    padding: 35px;
    background: #fff;
    text-align: center;
    border-radius: 6px;
}

/* 詳細カード */
.detail-card {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.course-title {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #245783;
    color: #245783;
    font-size: 26px;
}
.course-table {
     width: auto;
  }
/* 詳細表 */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th,
.detail-table td {
    padding: 14px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.detail-table th {
    width: 30%;
    background: #edf3f8;
    font-weight: bold;
}

.description {
    /*white-space: pre-wrap;*/
    overflow-wrap: anywhere;
}
.container {
        padding: 0;
}

/* スマートフォン */
@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }

    header h1 {
        font-size: 80%;
    }

    .course-table {
        min-width: 550px;
    }
    .course-table {
        width: 100%;
        font-size: 80%;
        border-collapse: collapse;
        background: #fff;
    }
    .detail-card {
        font-size: 80%;
    }
}
