@import url("theme.css");

.home-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 4px; }
.home-head h1 { font-size: 30px; margin: 0; }
.welcome {
  margin-top: 32px;
  padding: 0 0 32px;
}
.welcome p { margin: 0; }
.welcome p + p { margin-top: 16px; }
.welcome > p:first-child { max-width: 620px; font-size: clamp(20px, 3vw, 26px); line-height: 1.5; letter-spacing: -0.025em; }
.welcome-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.welcome-contact .btn { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.copy-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 14px;
  text-align: center;
  z-index: 20;
}
.copy-notice:empty { display: none; }
.course-list { display: grid; gap: 8px; margin-top: 28px; }
.course-search { margin: 20px 0 12px; }
.course-search h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.course-search input {
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  opacity: 1;
}
.course-search input::placeholder { color: var(--muted); opacity: 1; }
.course {
  appearance: none;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.15s, background 0.15s;
}
.course:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-2); }
.course:disabled { opacity: 1; cursor: default; }
.course-label { font-size: 13px; color: var(--muted); }
.course-name { font-weight: 600; }
.homepage main { max-width: 920px; padding-top: 12px; padding-inline: clamp(20px, 5vw, 48px); }
.homepage .home-head { margin: 0; min-height: 44px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.homepage .home-head h1 { font-size: 20px; line-height: 1.2; letter-spacing: -0.035em; }
.homepage .theme-toggle { border-radius: 50%; }
.homepage .course-list { gap: 8px; margin-top: 0; }
.homepage .course {
  position: relative;
  padding: 14px 40px 14px 16px;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.homepage .course-label { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; }
.homepage .course-name { font-size: 16px; font-weight: 500; line-height: 1.5; }
.homepage a.course:not(.resource-feature)::after { content: '↗'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.homepage a.course:not(.resource-feature) .course-label { color: var(--accent); }
.homepage a.course:hover { background: var(--surface-2); border-color: var(--accent); }
.homepage .resource-feature {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--accent-soft);
}
.homepage .resource-feature:hover { background: var(--accent-soft); color: var(--accent); }
.homepage .resource-feature .course-name { font-weight: 600; }
.resource-arrow { font-size: 23px; color: var(--accent); }
.homepage .course-search { margin: 44px 0 12px; }
.homepage .course-search h2 { margin-bottom: 20px; font-size: clamp(27px, 4vw, 34px); letter-spacing: -0.04em; line-height: 1.2; }
.search-field { position: relative; }
.search-field svg { position: absolute; width: 20px; height: 20px; left: 16px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; pointer-events: none; }
.homepage .course-search input { padding: 15px 16px 15px 48px; border: 0; border-radius: 6px; background: var(--surface); }
.homepage .site-footer { margin-top: 56px; text-align: left; font-size: 12px; }
.site-footer { margin-top: 48px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .course { transition: none; }
}
