
body {
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

/*h2 {
  text-align: center;
  color: #2c3e50;
}*/




/* キャッチの部分 */

.catch-section {
  position: relative;
  width: 100vw;
  padding: 90px 20px 60px 20px;
  color: white;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1f3a93 0%, #4a90e2 60%, #a0cfff 100%);
}

/* 背景模様（薄いSVG）を最も下に */
.catch-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></linearGradient></defs><rect width="200" height="200" fill="url(%23g)"/><circle cx="100" cy="100" r="90" fill="none" stroke="%23ffffff" stroke-opacity="0.03" stroke-width="20"/></svg>') repeat;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* 波紋をその上に出す（テキストの下） */
.catch-section .ripple {
  position: absolute;
  border: 2px solid rgba(100,100,100,0.3);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  animation: ripple 10s infinite ease-in-out;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.05;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }
}


/* キャッチテキスト等を前面に */
.catch-overlay {
  position: relative;
  z-index: 2;
}

/*.catch-overlay {
   background: none;        
  text-shadow: none;       
}*/



.catch-copy {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 20px;
  display: inline-block;
 /* white-space: nowrap;*/
}

.catch-copy span,
.catch-lead span {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.catch-lead {
  font-size: 1.05em;
  line-height: 1.8;
}

.section {
  background: #fff;
  padding: 20px;
  margin: 40px auto;
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 横スクロール */
.scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  max-width: 100%;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  min-width: max-content;
}

.scroll-padding {
  flex: 0 0 40px; /* ✅ 必要に応じて調整可能：20〜40px程度が自然 */
}

.book-card {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.title {
  font-weight: bold;
  margin-top: 8px;
  font-size: 1em;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

.author {
  font-size: 0.9em;
  color: #555;
  margin-top: 4px;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  text-align: center;
}

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #3498db;
  color: #fff;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}




.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}



.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fff;
  border-left: 4px solid #3498db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 6px;
}

.news-text {
  font-size: 1rem;
  color: #333;
  flex: 1;
}

.news-text .date {
  font-weight: bold;
  margin-right: 6px;
}

.news-link,
.news-link-placeholder {
  font-size: 0.9rem;
  color: #3498db;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 12px;
  min-width: 8em; /* ✅ 横幅をそろえるため */
  text-align: right;
}

.news-link-placeholder {
  visibility: hidden; /* ⛳ 見えないけどスペースは確保 */
}

.news-link:hover {
  text-decoration: underline;
}

/* 更新情報一覧リンク用フッター */
.news-list-footer {
  text-align: center;       /* 中央寄せ */
  margin-top: 20px;         /* 上とのスペース */
}

/* リンクのスタイル */
.news-list-link {
  color: #3498db;           /* サイトのアクセントカラーに合わせる */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.news-list-link:hover {
  color: #287bb5;           /* ホバーで濃いめの色に */
  text-decoration: underline;
}

/*ボタンについて*/

.button-wrapper {
  text-align: center;
  margin: 40px 0;
}

.all-books-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.all-books-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  
}


/* デフォルトはPC想定：PC改行を表示、SP改行は隠す */
.br-pc { display: inline; }
.br-sp { display: none; }

/* スマホで反転：SP改行を表示、PC改行は隠す */
@media (max-width: 768px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
}

/* スマホだけ .catch-lead を左寄せ（PCは今のまま） */
@media (max-width: 768px) {
  .catch-lead {
    text-align: left !important;   /* 親の text-align:center を上書き */
    margin-inline: 0 !important;   /* 中央寄せ用の auto マージンを無効化 */
    max-width: none;                /* 60ch 等の制限がある場合は解除 */
    width: 100%;                    /* 画面幅いっぱいに */
    display: block;                 /* 念のためブロック化 */
  }
  /* 必要なら左右余白を少し確保（任意） */
  .catch-section { padding-left: 16px; padding-right: 16px; }
}

/* 見出し（キャッチコピー）は従来どおり中央のままにしたい場合（任意） */
.catch-copy { text-align: center; }

/* ドラッグ用：ネイティブの横パンはJSで制御、縦は許可 */
#scrollContainer {
  touch-action: pan-y;         /* 横方向はJS、縦スクロールは許可 */
  -webkit-overflow-scrolling: touch;
  user-select: none;           /* 文字選択防止 */
  cursor: grab;
}
#scrollContainer.dragging {
  cursor: grabbing;
}



