/* ========================================
   作家名一覧（authors-list）ページ
   Figmaレイヤー名をClass名に使用
   ======================================== */

.blueskylib-authors-list {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------
   l-section-namesch-head（見出し＋五十音リンク）
   ---------------------------------------- */
.l-section-namesch-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.l-section-namesch-head .m-h2tit {
  margin-bottom: 24px;
}

.l-namesch-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.a-namesch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 30px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.21;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.a-namesch-link:hover {
  background: var(--color-card-bg);
  border-color: var(--color-primary);
  color: var(--color-link);
  text-decoration: none;
}

.a-namesch-link--current {
  background: var(--color-bg-catch);
  border-color: var(--color-primary);
  color: var(--color-primary);
  pointer-events: none;
}

.text-namesch-link {
  display: block;
}

/* ----------------------------------------
   l-section-namesch-body（作家一覧本文）
   ---------------------------------------- */
.l-section-namesch-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 80px;
  width: 100%;
  box-sizing: border-box;
}

/* ----------------------------------------
   m-h3tit（行見出し：あ行・か行…）
   デザイン: layout_C7DJ2X 1140x30、h3 layout_PZ5EHN 32x24、
   下線 layout_6Y30Y2  y:32で1px #000、style_BCTGYG 14px bold
   ---------------------------------------- */
.m-h3tit {
  position: relative;
  width: 100%;
  margin-top: 0;
  margin-bottom: 30px;
  padding: 0;
}

.l-section-namesch-body > .m-h3tit:first-child {
  margin-top: 0;
  margin-bottom: 30px;
}

.l-section-namesch-body > .m-h3tit:not(:first-child) {
  margin-top: 40px;
  margin-bottom: 30px;
}

.h3-h3tit {
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: var(--color-text);
  width: auto;
  min-width: 32px;
  height: auto;
}

/* デザイン: 下線はタイトル上端から32pxの位置（h3 24px + 間隔8px） */
.border-h3tit__under {
  display: block;
  width: 100%;
  height: 1px;
  margin: 8px 0 0;
  padding: 0;
  background: var(--color-black);
}

/* デザイン: タイトル(x:0) 20px幅、リスト(x:50) 990px幅＝タイトルとリストの間30px */
.l-author-list-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.l-author-list-wrapper:last-child {
  margin-bottom: 0;
}

.p-author-list-tit {
  flex-shrink: 0;
  margin: 0;
  padding-top: 1px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: var(--color-text);
  width: 20px;
  line-height: 24px;
}

.l-author-list {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 990px;
  padding-bottom: 0;
  box-sizing: border-box;
}

.border-autohr-list__under {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 20px;
  margin-bottom: 0;
  background: #CCCCCC;
}

.l-author-link {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

/* 作家名を視覚表示しない場合でもクリック領域を確保 */
.a-author-link:empty {
  min-width: 2.75em;
  min-height: 2.75em;
}

.a-author-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #F6F6F4;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.21;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.a-author-link:hover {
  background: #EEEEEE;
  color: var(--color-link);
  text-decoration: none;
}

.text-author-link {
  display: block;
}

/* ========================================
   レスポンシブ（authors-list）
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
  }

  .l-section-namesch-head {
    padding: 0 var(--gutter);
  }

  .l-section-namesch-body {
    padding: 32px var(--gutter) 60px;
  }

  .l-section-namesch-body > .m-h3tit:not(:first-child) {
    margin-top: 32px;
    margin-bottom: 24px;
  }

  .m-h3tit {
    margin-bottom: 24px;
  }

  .l-author-list-wrapper {
    gap: 20px;
  }

  .l-namesch-wrapper {
    gap: 12px;
  }

  .a-namesch-link {
    min-width: 80px;
    padding: 6px 20px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .l-section-namesch-head {
    padding: 0 var(--gutter);
  }

  .l-section-namesch-head .m-h2tit {
    margin-bottom: 16px;
  }

  .l-namesch-wrapper {
    gap: 8px;
    justify-content: space-between;
  }

  .a-namesch-link {
    min-width: 72px;
    padding: 6px 16px;
    font-size: 12px;
  }

  .l-section-namesch-body {
    padding: 24px var(--gutter) 48px;
  }

  .l-section-namesch-body > .m-h3tit:first-child {
    margin-bottom: 24px;
  }

  .l-section-namesch-body > .m-h3tit:not(:first-child) {
    margin-top: 28px;
    margin-bottom: 20px;
  }

  .m-h3tit {
    margin-bottom: 20px;
  }

  .h3-h3tit {
    font-size: 18px;
  }

  .border-h3tit__under {
    margin-top: 6px;
  }

  .l-author-list-wrapper {
    margin-bottom: 28px;
  }

  .l-author-list-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .l-author-list {
    max-width: none;
    width: 100%;
  }

  .p-author-list-tit {
    padding-top: 0;
    margin-bottom: 0;
    font-size: 18px;
  }

  .l-author-link {
    gap: 12px;
  }

  .a-author-link {
    padding: 8px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .l-section-namesch-head {
    padding: 0 16px;
  }

  .l-section-namesch-body {
    padding: 24px 16px 48px;
  }

  .a-namesch-link {
    min-width: 64px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .p-author-list-tit {
    font-size: 16px;
  }

  .a-author-link {
    padding: 6px 12px;
    font-size: 13px;
  }
}
