/* エンジニアリングモール動画紹介（contents）ページ専用CSS */

.engineering-mall-page .engineering-mall-contents-content {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
}

.engineering-mall-page .engineering-mall-contents-content .container {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
}

@media (min-width: 600px) {
  .engineering-mall-page .engineering-mall-contents-content .container {
    width: 80%;
  }
}

.engineering-mall-page .engineering-mall-contents-content input#search {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  font-size: 16px;
}

.engineering-mall-page .engineering-mall-contents-content .video {
  text-align: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  width: 23%;
  box-sizing: border-box;
}

.engineering-mall-page .engineering-mall-contents-content .video img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.engineering-mall-page .engineering-mall-contents-content .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.engineering-mall-page .engineering-mall-contents-content .tag.teacher {
  display: inline-block;
  margin: 2px 6px 0 0;
  padding: 2px 6px;
  border: 1px solid #555;
  border-radius: 5px;
  font-size: .9rem;
}

.engineering-mall-page .engineering-mall-contents-content .video-content {
  padding: 16px;
}

.engineering-mall-page .engineering-mall-contents-content .video-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.engineering-mall-page .engineering-mall-contents-content .video-presenter {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid #007BFF;
}

.engineering-mall-page .engineering-mall-contents-content .video-presenter-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
  font-weight: 500;
}

.engineering-mall-page .engineering-mall-contents-content .video-presenter-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

@media (max-width: 1024px) {
  .engineering-mall-page .engineering-mall-contents-content .video {
    width: 48%;
  }
}

@media (max-width: 600px) {
  .engineering-mall-page .engineering-mall-contents-content .video {
    width: 100%;
  }
}

.engineering-mall-page .engineering-mall-contents-content .video-list,
.engineering-mall-page .engineering-mall-contents-content .php-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  min-height: clamp(300px, 5vw + 260px, 400px);
}

.engineering-mall-page .engineering-mall-contents-content .hidden {
  display: none;
}

.engineering-mall-page .engineering-mall-contents-content .tag-button {
  display: inline-block;
  padding: 6px 12px;
  margin: 5px 4px;
  border: 1px solid #888;
  border-radius: 20px;
  background: #f0f0f0;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

.engineering-mall-page .engineering-mall-contents-content .tag-button.active {
  background: #007BFF;
  color: #fff;
  border-color: #007BFF;
}

.engineering-mall-page .engineering-mall-contents-content .video-tags {
  margin-top: 5px;
  font-size: 12px;
  color: #666;
  text-align: right;
}

.engineering-mall-page .engineering-mall-contents-content .video-tag {
  display: inline-block;
  margin-right: 6px;
  background: #f3f3f3;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  color: #444;
}

.engineering-mall-page .engineering-mall-contents-content .archive-button {
  text-align: center;
  margin-top: 40px;
}

.engineering-mall-page .engineering-mall-contents-content .btn-archive {
  display: inline-block;
  background: #007BFF;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: background-color .3s;
}

.engineering-mall-page .engineering-mall-contents-content .btn-archive:hover {
  background-color: #0056b3;
  color: #fff !important;
}

.engineering-mall-page .engineering-mall-contents-content .container h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.engineering-mall-page .engineering-mall-contents-content .container h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0;
}

.engineering-mall-page .engineering-mall-contents-content .pagination {
  text-align: center;
  margin: 30px 0;
}

.engineering-mall-page .engineering-mall-contents-content .pagination button {
  padding: 8px 16px;
  margin: 0 10px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.engineering-mall-page .engineering-mall-contents-content .pagination .chev {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1;
}

/* タグ欄コンパクト化 */
.engineering-mall-page .engineering-mall-contents-content .filter-area {
  font-size: 13px;
  line-height: 1.2;
}

.engineering-mall-page .engineering-mall-contents-content .filter-area .tag-row {
  margin-bottom: 4px;
}

.engineering-mall-page .engineering-mall-contents-content .filter-area strong {
  font-size: .95em;
  margin-right: 6px;
}

.engineering-mall-page .engineering-mall-contents-content .filter-area .tag-button {
  font-size: .9em;
  padding: 2px 8px;
  margin: 2px 3px;
  border-radius: 14px;
  line-height: 1.1;
}

.engineering-mall-page .engineering-mall-contents-content .filter-area .tag-more {
  font-size: .85em;
  padding: 2px 8px;
  margin: 2px 3px;
  border-radius: 12px;
}

/* 固定セクション */
.engineering-mall-page .engineering-mall-contents-content .fixed-php-section {
  margin-top: 40px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

.engineering-mall-page .engineering-mall-contents-content #topmsg {
  margin-top: 15px;
  margin-bottom: 15px;
}

.engineering-mall-page .engineering-mall-contents-content #topmsg img {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.engineering-mall-page .engineering-mall-contents-content #topmsg details {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.engineering-mall-page .engineering-mall-contents-content #topmsg details > summary {
  font-size: 16px;
  user-select: none;
}

.engineering-mall-page .engineering-mall-contents-content #topmsg details > summary:hover {
  cursor: pointer;
  text-decoration: underline;
}

.engineering-mall-page .engineering-mall-contents-content #topmsg details a {
  display: inline-block;
  margin: 8px;
  padding: 8px;
  border: #555 1px solid;
  border-radius: 5px;
}
