body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ======== 科目情報エリア（横並びレイアウト） ======== */
.subject-info {
    display: flex;
    align-items: center;
    gap: 100px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden; /* はみ出し防止 */
}


/* 左側（テキスト） */
.subject-text {
    flex: 1;
    padding-right: 20px;
}

.subject-info p {
    font-size: 16px;
    color: #666;
    flex-grow: 1; /* テキスト部分を広げる */
}


/* 右側（画像） */
.subject-image {
    flex-shrink: 0;
    width: 500px; /* 画像と同じサイズに */
    max-width: 500px;
}


.subject-image img {
    width: 100%; /* 画像の親要素の幅に合わせる */
    height: auto; /* 縦横比を維持 */
    border-radius: 8px;
    object-fit: cover;
}

.subject-info img {
    width: 500px; /* 画像の幅 */
    height: 350px; /* 画像の高さ */
    object-fit: cover; /* アスペクト比を維持しつつトリミング */
    border-radius: 8px;
    flex-shrink: 0; /* 画像が小さくならないようにする */
}


/* 「今すぐ始める！」ボタン */
.start-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.start-btn:hover {
    background-color: #0056b3;
}

/* ======== コンテンツ一覧（タイトルを1つのカードにまとめる） ======== */
.content-list {
    margin-top: 20px;
}
/* h2（コンテンツ一覧のタイトル）も80pxのマージンを揃える */
.content-list h2 {
    margin: 0 80px 10px; /* 左右に80pxのマージン、下に10pxの余白 */
    font-size: 18px;
    font-weight: 700;
}
.content-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	margin: 0 80px;  /* 左右にマージン追加 */
}

/* 各タイトル */
.content-link {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 0;
}

.content-title {
    font-size: 14px;
    font-weight: 500;
}

/* タイトルの区切り線 */
.content-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

/* ======== レスポンシブ対応 ======== */
@media (max-width: 768px) {
    .subject-info {
        flex-direction: column;
        text-align: center;
    }

    .subject-text {
        padding-right: 0;
    }

    .subject-image {
        max-width: 100%;
        margin-top: 15px;
    }
	.content-list h2 {
        margin: 0 20px 10px; /* モバイルではマージンを小さく */
        font-size: 16px;
    }
    .content-card {
        margin: 0 20px; /* モバイルではマージンを小さく */
    }

    .content-title {
        font-size: 13px;
    }
}



/* ======== 管理機能エリア ======== */
.admin-actions {
    background-color: #f5f5f5;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
    text-align: center;
}

.edit-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
}

.edit-btn:hover {
    background-color: #43A047;
}

.delete-btn {
    background-color: #E53935;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #D32F2F;
}
