/* ========================================
   共通スタイル（TOP / 作品名一覧 共通）
   ======================================== */

:root {
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-text: #000000;
  --color-link: #0073B5;
  --color-primary: #1976D2;
  --color-primary-dark: #135EB9;
  --color-gray: #666666;
  --color-border: #BBBBBB;
  --color-bg-catch: #D1E9FC;
  --color-bg-footer: #E3F2FD;
  --color-card-bg: #F6F6F4;
  --max-width: 1200px;
  --gutter: 120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-rounded: 'M PLUS Rounded 1c', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.21;
  color: var(--color-text);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   l-breadcrumbs / m-breadcrumbs
   ---------------------------------------- */
.l-breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.m-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.a-breadcrumbs-link {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-gray);
}

.a-breadcrumbs-link:hover {
  color: var(--color-link);
}

/* ----------------------------------------
   l-header（共通・一覧ページ等で使用）
   ---------------------------------------- */
.l-header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid #E5E5E1;
}

.boder-header__under {
  display: block;
  width: 100%;
  height: 1px;
  background: #E5E5E1;
}

.l-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.l-header-catch {
  width: 100%;
  padding: 0;
  background: var(--color-bg-catch);
}

.l-header-catch .l-header-inner {
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.p-header-catch {
  margin: 0;
  font-size: 12px;
  line-height: 1.21;
  color: var(--color-text);
}

.l-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 4px 0;
}

.m-sitetit {
  display: flex;
  align-items: center;
  color: inherit;
  margin-left: -16px;
}

.m-sitetit:hover {
  text-decoration: none;
  color: inherit;
}

.m-sitetit__logo {
  width: 60px;
  height: 60px;
  display: block;
}

.m-sitetit__text {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.43;
  letter-spacing: 0.03em;
  color: #1976D2;
  margin: 0;
}

.l-header-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-right: 120px;
}

.a-heder-menu-link {
  font-size: 16px;
  line-height: 1.21;
  color: var(--color-text);
}

.a-heder-menu-link:hover {
  color: var(--color-link);
}

.m-schbox {
  display: flex;
  align-items: center;
  width: 344px;
  max-width: 100%;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-white);
}

.m-schbox-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 15px;
  border: none;
  font-size: 14px;
  color: var(--color-text);
}

.m-schbox-input::placeholder {
  color: var(--color-gray);
}

.btn-sch {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-fa-search {
  width: 30px;
  height: 27px;
  display: block;
}

/* ----------------------------------------
   l-footer（共通）
   ---------------------------------------- */
.l-footer {
  margin-top: auto;
  width: 100%;
  min-height: 460px;
  padding: 30px 0 0;
  background: var(--color-bg-footer);
}

.l-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.p-footer-tit {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.11;
  letter-spacing: 0.025em;
  color: var(--color-primary);
}

.l-footer-navi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 40px 0;
}

.l-footer-navi-link {
  width: 91px;
}

.l-footer-navi-link:nth-child(2) {
  width: 92px;
}

.l-footer-navi-link:nth-child(3) {
  width: 84px;
}

.text-footer-navi-tit {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.21;
  color: #000000;
}

.l-footer-navi-link-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.l-footer-navi-link-list li {
  margin: 0;
}

.a-footer-navi-link-text {
  font-size: 12px;
  line-height: 2;
  color: #0073B5;
}

.l-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 30px;
  min-height: 100px;
  box-sizing: border-box;
  background: #1976D2;
}

.a-footer-menu-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21;
  color: #FFFFFF;
}

.a-footer-menu-text:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ----------------------------------------
   l-section-book（共通・他ページでも使用）
   ---------------------------------------- */
.l-section-book {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 0 80px;
  width: 100%;
  box-sizing: border-box;
}

.m-h2tit {
  margin-bottom: 30px;
}

.h2-h2tit {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.21;
  color: var(--color-text);
}

.border-h2tit__under {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 11px;
  background: var(--color-black);
}

/* 5列×200px + 4×50px = 1200px（右端余白なし） */
.l-booklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 35px 50px;
}

/* ----------------------------------------
   l-paging（ページング）共通
   ---------------------------------------- */
.l-paging {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.l-paging--top {
  margin-top: 0;
  margin-bottom: 24px;
}

.l-paging-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.a-paging-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1.21;
  color: var(--color-text);
  background: var(--color-card-bg);
  border: 1px solid transparent;
  border-radius: 2px;
}

.a-paging-link:hover {
  background: #EEEEEE;
  color: var(--color-link);
}

.a-paging-link.is-current {
  background: var(--color-white);
  border-color: var(--color-border);
  font-weight: 700;
  pointer-events: none;
}

.text-paging-ellipsis {
  padding: 0 4px;
  font-size: 14px;
  color: var(--color-text);
}

/* ----------------------------------------
   書籍カード（l-bookcard / m-bookcard）共通
   ---------------------------------------- */
.l-bookcard {
  width: 200px;
  flex-shrink: 0;
}

.l-bookcard-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.l-bookcard-link:hover,
.l-bookcard-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.l-bookcard-link:hover .m-bookcard,
.l-bookcard-link:focus-visible .m-bookcard {
  border-color: var(--color-primary, #0073B5);
  box-shadow: 0 4px 12px rgba(0, 115, 181, 0.15);
}

.l-bookcard-link:hover .h3-bookcard-tit,
.l-bookcard-link:focus-visible .h3-bookcard-tit {
  color: var(--color-primary, #0073B5);
}

.m-bookcard {
  width: 200px;
  height: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.l-bookcard-hero {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 191px;
  height: 170px;
  padding: 10px 6px 6px;
  display: flex;
  flex-direction: column;
}

.l-bookcard-hero--beige {
  background: #F1F1E9;
}

.l-bookcard-hero--mint {
  background: #E7F8EF;
}

.l-bookcard-hero--pink {
  background: #FDF2F4;
}

.l-bookcard-hero--green {
  background: #E8F8E7;
}

.l-bookcard-hero--peach {
  background: #FDF5F2;
}

.l-bookcard-hero--sand {
  background: #F1EDE9;
}

.l-bookcard-hero--sky {
  background: #E6F7F9;
}

.l-bookcard-hero--cyan {
  background: #E7F8F8;
}

.l-bookcard-hero--lavender {
  background: #FDF2F9;
}

.l-bookcard-hero--mint2 {
  background: #E6F9F2;
}

.l-bookcard-hero--olive {
  background: #EDF1E9;
}

.l-bookcard-hero--blue {
  background: #E6EEF9;
}

.l-bookcard-tit {
  position: relative;
  margin-bottom: 0;
}

.h3-bookcard-tit {
  margin: 0 0 10px 0;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.21;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.border-bookcard-tit__under {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 184px;
  height: 1px;
  background: var(--color-white);
}

.text-bookcard-ndc {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.21;
  color: var(--color-text);
}

.p-bookcard-author {
  margin: 11px 0 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.21;
  color: var(--color-text);
}

.p-bookcard-blurb {
  position: absolute;
  left: 8px;
  top: 184px;
  width: 176px;
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.54;
  color: var(--color-text);
}

.p-bookcard-intro {
  margin: 10px 0 0;
  width: 180px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text);
}

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

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

  .l-booklist {
    justify-content: flex-start;
    gap: 24px 24px;
  }

  .l-bookcard {
    width: calc(33.333% - 20px);
    max-width: 220px;
  }

  .m-bookcard {
    width: 100%;
    max-width: 220px;
    height: 280px;
    min-height: 280px;
    overflow: hidden;
  }

  .l-bookcard-hero {
    width: calc(100% - 8px);
    max-width: 204px;
    height: 160px;
  }

  .p-bookcard-blurb {
    top: 164px;
  }

  .h3-bookcard-tit {
    font-size: 15px;
  }

  .p-bookcard-author {
    font-size: 14px;
  }

  .text-bookcard-ndc {
    font-size: 10px;
  }

  .p-bookcard-blurb {
    font-size: 12px;
  }

  .p-footer-tit {
    font-size: 18px;
  }

  .a-footer-menu-text {
    font-size: 13px;
  }
}

/* 狭い画面では左右に余白を付与・ヘッダー等のレスポンシブ（共通、top.html除く） */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .boder-header__under {
    display: none;
  }

  .m-sitetit__logo {
    width: 40px;
    height: 40px;
  }

  .l-header-inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .l-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 12px;
  }

  .m-schbox {
    display: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .l-header-menu {
    justify-content: center;
    margin-right: 0;
    gap: 0;
  }

  .a-heder-menu-link {
    font-size: 14px;
    padding: 5px 5px;
    /*background: var(--color-bg-catch);*/
    border-radius: 4px;
  }

  .l-breadcrumbs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .l-footer {
    padding: 24px 20px 0;
    min-height: auto;
  }

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

  .l-footer-navi {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 0;
  }

  .l-footer-navi-link {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .l-footer-navi-link:nth-child(2),
  .l-footer-navi-link:nth-child(3) {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .l-footer-menu {
    flex-direction: column;
    gap: 16px;
    padding: 24px var(--gutter);
    min-height: auto;
  }

  .a-footer-menu-text {
    font-size: 12px;
  }

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

  .l-booklist {
    gap: 24px;
    justify-content: flex-start;
  }

  .l-bookcard {
    width: 100%;
    max-width: 160px;
  }

  .m-bookcard {
    max-width: 280px;
    width: 100%;
    height: auto;
    min-height: 200px;
    overflow: hidden;
  }

  .l-bookcard-hero {
    max-width: none;
    width: calc(100% - 8px);
    height: 140px;
    overflow: hidden;
  }

  .p-bookcard-blurb {
    top: 154px;
    width: calc(100% - 16px);
    max-width: none;
    font-size: 11px;
  }

  .border-bookcard-tit__under {
    width: 100%;
    max-width: none;
  }

  .p-bookcard-intro {
    width: 100%;
    max-width: none;
    font-size: 11px;
  }

  .h3-bookcard-tit {
    font-size: 14px;
  }

  .p-bookcard-author {
    font-size: 13px;
  }

  .text-bookcard-ndc {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .m-sitetit__text {
    font-size: 18px;
  }
}