/* base.css ── グローバルリセット・基本要素（body, a, img, h1〜h4）・レスポンシブ基盤 */

/* =========================================================
   01 Global Reset
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: .025em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  letter-spacing: .03em;
}

p, ul, ol, figure, blockquote, pre {
  margin: 0;
}

::selection {
  background: rgba(210,190,80,.22);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid rgba(0,0,0,.24);
  outline-offset: 3px;
}

/* =========================================================
   02 Typography Emphasis
========================================================= */
.hero__lead {
  font-weight: 600;
}

.section__title,
.entry-content h2 {
  font-weight: 700;
}

/* =========================================================
   27 Responsive
========================================================= */
@media (max-width: 980px) {
  #shelves .card__icon {
    width: 92px;
    height: 92px;
  }

  #shelves .card__name {
    font-size: 24px;
  }

  #shelves .card__role {
    font-size: 15px;
  }
}

@media (max-width: 820px) {
  .shelves-2x2,
  .cards,
  .series-grid {
    grid-template-columns: 1fr !important;
  }

  .hero__inner {
    padding: 28px 20px 22px;
  }

  .archive .page-header,
  .archive .inside-article {
    padding: 22px 22px;
  }

  .archive .inside-article::before {
    top: 18px;
    bottom: 18px;
  }

  .archive .page-header h1 {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.32;
  }

  .archive .entry-title {
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
    line-height: 1.36;
  }

  .archive .archive-description,
  .archive .entry-summary,
  .archive .entry-summary p {
    font-size: 15px;
  }

  #shelves .card__tap {
    padding: 18px;
  }

  #shelves .card__icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  #shelves .card__name {
    font-size: 22px;
  }

  #shelves .card__role {
    font-size: 15px;
  }
}

@media (max-width: 680px) {
  .home .inside-article > .entry-header,
  .home .entry-header,
  .home h1.entry-title,
  .home .entry-title {
    padding-left: 20px;
  }

  .library-lobby {
    padding: 48px 16px 68px 20px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .site-title {
    font-size: 28px;
    line-height: 1.55;
    letter-spacing: .06em;
  }

  .subtitle,
  .hero__lead {
    font-size: 16px;
    line-height: 1.9;
  }

  .section {
    margin-top: 58px;
  }

  .section__title {
    font-size: 18px;
    padding-bottom: 10px;
  }

  .section__title::before,
  .section__title::after {
    display: none;
  }

  .section__desc {
    font-size: 14px;
  }

  .card {
    padding: 18px;
  }

  .card__top {
    gap: 12px;
  }

  .card__icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .card__name {
    font-size: 17px;
  }

  .card__role {
    font-size: 13px;
  }

  .card__inner > p,
  .card__inner > ul,
  .card__inner > ol,
  .lb-body > p,
  .lb-body > ul,
  .lb-body > ol,
  .entry-content p,
  .entry-content ul,
  .entry-content ol {
    font-size: var(--fz-body-sp);
    line-height: 2.0;
  }

  .lb-body h3,
  .lb-h3,
  .entry-content h3 {
    font-size: 18px;
  }

  .entry-content h2 {
    font-size: 21px;
    font-weight: 700;
  }

  .pill,
  .lb-pill {
    min-height: 38px;
    font-size: 12px;
    padding: 8px 14px;
  }

  .series-card {
    padding: 18px 18px 17px;
  }

  .series-card__title {
    font-size: 18px;
  }

  .series-card__desc {
    font-size: 14px;
  }

  .lobby-links {
    margin-top: 58px;
  }

  .talk {
    gap: 14px;
  }

  .talkline-wrap[data-align="left"] {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: 72px auto;
    column-gap: 10px;
    row-gap: 3px;
  }

  .talkline-wrap[data-align="right"] {
    grid-template-columns: minmax(0, 1fr) 72px;
    grid-template-rows: 72px auto;
    column-gap: 10px;
    row-gap: 3px;
  }

  .talkline__who {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }

  .talkline__avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .talkline__name {
    width: 72px;
    font-size: 13px;
    line-height: 1.15;
  }

  .talkline__say {
    min-height: 72px;
    font-size: 14px;
    line-height: 1.9;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .talkline-wrap[data-align="left"] .talkline__say::before,
  .talkline-wrap[data-align="right"] .talkline__say::before {
    top: 20px;
  }
}