* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18202a;
  background: #f6f7fb;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  padding: 34px 18px 26px;
  background: #ffffff;
  border-bottom: 1px solid #e6e8ef;
}

.site-header__inner,
.main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.site-lead {
  margin: 0;
  color: #546070;
  max-width: 780px;
}

.main {
  padding: 28px 0 46px;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 26px;
  background: #ffffff;
  border: 1px solid #e6e8ef;
  border-radius: 16px;
  color: #546070;
  font-size: 14px;
}

.rank-section {
  margin: 0 0 38px;
}

.rank-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rank-section__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.rank-section__note {
  margin: 4px 0 0;
  color: #667282;
  font-size: 14px;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.comic-card {
  background: #ffffff;
  border: 1px solid #e7eaf1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 30, 50, 0.06);
}

.comic-card__image-link {
  display: block;
  background: #eef1f6;
}

.comic-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

.comic-card__body {
  padding: 12px;
}

.comic-card__title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.comic-card__description {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.comic-card__score {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #334155;
}

.comic-card__score span {
  padding: 2px 7px;
  background: #f1f5f9;
  border-radius: 999px;
}

.comic-card__meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: #5f6b7a;
}

.comic-card__meta div {
  margin-bottom: 4px;
}

.comic-card__meta dt {
  display: inline;
  font-weight: 700;
}

.comic-card__meta dt::after {
  content: "：";
}

.comic-card__meta dd {
  display: inline;
  margin: 0;
}

.comic-card__actions {
  display: grid;
  gap: 8px;
}

.comic-card__button {
  display: block;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  background: #1f2937;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.comic-card__button--secondary {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #cbd5e1;
}

.site-footer {
  padding: 24px 0 40px;
  color: #667282;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .comic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .site-header__inner,
  .main,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .comic-card__body {
    padding: 10px;
  }
}

.genre-links-section {
  margin-bottom: 30px;
}

.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d9dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.genre-links a:hover {
  background: #f1f5f9;
}

.info-page {
  max-width: 920px;
}

.info-section {
  margin: 0 0 22px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e6e8ef;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(20, 30, 50, 0.04);
}

.info-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.info-section p {
  margin: 0 0 10px;
  color: #485465;
}

.info-lead {
  font-weight: 700;
  color: #1f2937 !important;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 14px;
}

.footer-links a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}
