* { box-sizing: border-box; }

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 64px 30px;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c41230;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.term { margin: 4px 0 0; color: #666; }

.syllabus-card {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555;
  text-decoration: none;
  border: 0;
}

.syllabus-label { font-size: 0.78rem; font-weight: 600; line-height: 1; }

.syllabus-thumb {
  display: block;
  width: 46px;
  height: 59px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #d4d4d4;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  background: #fff;
}

.syllabus-card:hover .syllabus-label { color: #c41230; }
.syllabus-card:hover .syllabus-thumb { border-color: #aaa; }

.overview { margin: 14px 0 12px; line-height: 1.35; }
.overview p { margin: 0; }

.people {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 18px;
  width: 100%;
  margin: 0 0 18px;
}

.person {
  min-width: 0;
  text-align: center;
}

.photo-placeholder {
  width: 72px;
  height: 72px;
  margin: 0 auto 6px;
  background: #f4f4f4;
  border: 1px solid #dedede;
  border-radius: 50%;
}

.person strong,
.person span { display: block; }

.person strong {
  font-size: 0.8rem;
  line-height: 1.15;
  white-space: normal;
}

.person span {
  margin-top: 2px;
  color: #777;
  font-size: 0.7rem;
  line-height: 1.1;
}

.description {
  width: 100%;
  max-width: none;
  margin: 0 0 9px;
}

.student-note {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  color: #666;
  font-size: 0.92rem;
}

h2 { margin: 0 0 7px; font-size: 1.3rem; line-height: 1.15; font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 0.86rem; line-height: 1.14; }

th, td {
  padding: 3px 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;
}

th {
  padding-top: 3px;
  padding-bottom: 3px;
  color: #555;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #999;
}

th:first-child { width: 80px; }
th:nth-child(2) { width: 50px; }

footer {
  margin-top: 28px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .page { padding: 26px 20px 24px; }
  .top-header { gap: 14px; }
  h1 { font-size: 1.65rem; }
  .syllabus-card { gap: 6px; }
  .syllabus-label { font-size: 0.72rem; }
  .syllabus-thumb { width: 38px; height: 49px; }
  .overview { margin-top: 12px; }
  .people { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .photo-placeholder { width: 62px; height: 62px; }
  table { font-size: 0.8rem; line-height: 1.1; }
  th, td { padding: 2px 4px; }
  th:first-child { width: 66px; }
  th:nth-child(2) { width: 42px; }
}
