/* 研修一覧ページ（旧 Trainings.jsx の MUI sx を CSS 化） */

.tr-list-header {
  text-align: center;
  margin-top: 32px;
  padding: 0 24px;
}

.tr-list-header .en {
  color: #33a9ae;
  font-weight: 400;
  font-size: 12px;
}

.tr-list-header h1 {
  font-weight: bold;
}

.tr-list-header .lead {
  margin-top: 16px;
  color: var(--color-text-strong);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .tr-list-header .en { font-size: 14px; }
}

.tr-list {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 900px) {
  .tr-list { padding: 40px 24px; }
}

.tr-category {
  background-color: #f7fbfb;
  border: 1px solid #dff0f0;
  border-radius: 10px;
  padding: 20px 16px;
}

@media (min-width: 600px) {
  .tr-category { padding: 28px 32px 24px; }
}

.tr-category__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #33a9ae;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tr-category__title svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (min-width: 900px) {
  .tr-category__title { font-size: 22px; }
}

.tr-category__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

@media (min-width: 900px) {
  .tr-category__meta { flex-direction: row; align-items: center; }
}

.tr-category__label {
  font-size: 12px;
  border-radius: 6px;
  padding: 3px 8px;
  background: #33a9ae;
  color: #fff;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
  display: inline-block;
}

.tr-category__meta .text {
  font-size: 12px;
  color: #555;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .tr-category__meta .text { font-size: 13px; }
}

.tr-category__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 600px) {
  .tr-category__items { grid-template-columns: 1fr 1fr; }
}

.tr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tr-row:hover {
  background-color: #f0fafa;
  border-color: #33a9ae;
  box-shadow: 0 2px 8px rgba(51, 169, 174, 0.12);
}

.tr-row .name {
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.55;
  flex: 1;
}

.tr-row svg { width: 20px; height: 20px; color: #33a9ae; flex-shrink: 0; }

@media (min-width: 900px) {
  .tr-row .name { font-size: 13.5px; }
}

/* 一覧下部の CTA フッター */
.tr-list-cta {
  background-color: #33a9ae;
  padding: 48px 0;
  text-align: center;
  margin-top: 32px;
}

.tr-list-cta .title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.tr-list-cta .sub {
  font-size: 14px;
  color: #fff;
  margin-bottom: 28px;
}

.tr-list-cta__buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 10%;
}

.tr-list-cta__buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 40px;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  width: 90%;
  transition: background-color 0.2s;
}

.tr-list-cta__buttons a:hover { background-color: rgba(255, 255, 255, 0.15); }
.tr-list-cta__buttons svg { width: 18px; height: 18px; }

@media (min-width: 600px) {
  .tr-list-cta__buttons { flex-direction: row; }
  .tr-list-cta__buttons a { width: auto; }
}

@media (min-width: 900px) {
  .tr-list-cta { padding: 56px 0; }
  .tr-list-cta .title { font-size: 21px; }
  .tr-list-cta .sub { font-size: 16px; }
}
